:root {
  color-scheme: light;
  --ink: #172321;
  --muted: #64706d;
  --paper: #f5f3ec;
  --surface: #ffffff;
  --line: #d8ddd8;
  --brand: #147d70;
  --brand-dark: #0d5d54;
  --brand-soft: #dff2ec;
  --accent: #e5a02d;
  --danger: #b53d3d;
  --shadow: 0 22px 60px rgba(27, 46, 42, .14);
  --radius: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); font: 16px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, input[type="file"] { touch-action: manipulation; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(20,125,112,.35); outline-offset: 2px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mobile-only { display: none; }
.app-shell { min-height: 100dvh; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand strong { display: block; font: 760 1.25rem/1.05 Georgia, serif; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .74rem; }
.brand-mark { position: relative; display: block; width: 42px; height: 42px; border-radius: 13px; background: var(--ink); }
.brand-mark i { position: absolute; width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; }
.brand-mark i:nth-child(1) { left: 9px; top: 21px; }
.brand-mark i:nth-child(2) { left: 23px; top: 9px; }
.brand-mark i:nth-child(3) { left: 25px; top: 26px; background: var(--accent); border-color: var(--accent); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; height: 1px; background: rgba(255,255,255,.65); transform-origin: left; }
.brand-mark::before { width: 20px; left: 14px; top: 23px; transform: rotate(-42deg); }
.brand-mark::after { width: 15px; left: 15px; top: 26px; transform: rotate(18deg); }

.button, .tool, .text-button, .icon-button, .mode-switch button, .mobile-actions button { border: 0; cursor: pointer; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 12px; font-weight: 720; transition: transform .15s ease, background .15s ease; }
.button:active, .tool:active, .icon-button:active { transform: translateY(1px); }
.button.primary { background: var(--brand); color: white; }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { background: var(--ink); color: white; }
.button.ghost { background: transparent; border: 1px solid var(--line); }
.button.danger { background: #fae5e5; color: var(--danger); }
.button.large { min-height: 54px; padding: 0 24px; }
.button.compact { min-height: 40px; padding: 0 14px; font-size: .86rem; }
.button.full { width: 100%; }
.text-button { padding: 7px 2px; color: var(--brand-dark); background: transparent; font-weight: 700; }
.text-button.danger { color: var(--danger); }
.icon-button { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: transparent; font-size: 1.35rem; }
.icon-button:hover { background: rgba(22,35,33,.06); }
.eyebrow { margin: 0 0 7px; color: var(--brand-dark); font-size: .69rem; font-weight: 820; letter-spacing: .15em; }

.home-view { min-height: 100dvh; padding: calc(20px + var(--safe-top)) clamp(20px, 5vw, 76px) calc(22px + var(--safe-bottom)); overflow: hidden; }
.home-header, .home-footer { display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: auto; }
.home-main { display: grid; grid-template-columns: minmax(330px, .9fr) minmax(420px, 1.1fr); gap: clamp(36px, 7vw, 110px); max-width: 1340px; margin: clamp(70px, 10vh, 140px) auto 60px; align-items: center; }
.hero-copy h1 { max-width: 680px; margin: 0; font: 540 clamp(3rem, 5.8vw, 6.4rem)/.94 Georgia, serif; letter-spacing: -.055em; }
.hero-copy > p:not(.eyebrow) { max-width: 600px; margin: 28px 0 0; color: #4f5c59; font-size: clamp(1.03rem, 1.4vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-visual { min-width: 0; }
.sample-map { position: relative; min-height: 480px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 36px; background: #172f2b; box-shadow: var(--shadow); }
.sample-grid { position: absolute; inset: 0; opacity: .44; background-image: linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle at center,#000,transparent 78%); }
.sample-map::before { content: ""; position: absolute; width: 55%; aspect-ratio: 1; left: 13%; top: 12%; border: 1px solid rgba(223,242,236,.2); border-radius: 44% 56% 61% 39%; transform: rotate(-18deg); box-shadow: 0 0 80px rgba(20,125,112,.32) inset; }
.sample-map::after { content: ""; position: absolute; width: 30%; aspect-ratio: 1; right: 7%; bottom: -4%; border-radius: 50%; background: rgba(229,160,45,.09); filter: blur(2px); }
.sample-map svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(223,242,236,.45); stroke-width: 2; stroke-dasharray: 7 9; }
.demo-dot { position: absolute; display: grid; width: 44px; height: 44px; place-items: center; border: 4px solid rgba(255,255,255,.78); border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 850; box-shadow: 0 0 0 9px rgba(229,160,45,.14); }
.dot-one { left: 18%; top: 54%; }.dot-two { left: 58%; top: 36%; }.dot-three { left: 68%; top: 72%; }
.sample-label { position: absolute; z-index: 2; padding: 7px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: rgba(255,255,255,.08); color: #eef8f5; font-size: .72rem; backdrop-filter: blur(10px); }
.sample-label.one { left: 11%; top: 69%; }.sample-label.two { left: 64%; top: 27%; }.sample-label.three { left: 76%; top: 80%; }
.principle { display: flex; justify-content: center; gap: 12px; margin: 19px 0 0; color: var(--muted); font-size: .82rem; }.principle b { color: var(--accent); }
.recent-section { grid-column: 1 / -1; margin-top: 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; font: 500 2rem/1.1 Georgia, serif; }
.recent-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.recent-card, .project-row { border: 1px solid var(--line); background: rgba(255,255,255,.67); }
.recent-card { display: grid; grid-template-columns: 96px 1fr; min-height: 112px; padding: 10px; border-radius: 17px; cursor: pointer; text-align: left; }
.recent-thumb { width: 96px; height: 90px; overflow: hidden; border-radius: 11px; background: #dfe4e0; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-meta { min-width: 0; padding: 11px 13px; }
.recent-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta span { display: block; margin-top: 5px; color: var(--muted); font-size: .79rem; }
.empty-recent { grid-column: 1 / -1; padding: 28px; border: 1px dashed #c8cec9; border-radius: 16px; color: var(--muted); text-align: center; }
.home-footer { padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

.editor-view { height: 100dvh; overflow: hidden; background: #eceeea; }
.editor-header { position: relative; z-index: 20; display: grid; grid-template-columns: auto minmax(160px,1fr) auto auto; min-height: calc(66px + var(--safe-top)); padding: var(--safe-top) 14px 0; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.project-identity { min-width: 0; }
.project-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-identity span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .7rem; }
.project-identity span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #44a569; }
.project-identity span[data-state="dirty"]::before { background: var(--accent); }
.project-identity span[data-state="saving"]::before { background: #5992bd; }
.mode-switch { display: flex; padding: 4px; border-radius: 12px; background: #edf0ed; }
.mode-switch button { min-height: 36px; padding: 0 17px; border-radius: 9px; background: transparent; font-weight: 730; font-size: .8rem; }
.mode-switch button.active { background: white; box-shadow: 0 2px 8px rgba(17,36,32,.09); }
.header-actions { display: flex; align-items: center; gap: 7px; }
.editor-body { display: grid; grid-template-columns: 248px minmax(0,1fr) 342px; height: calc(100dvh - 66px - var(--safe-top)); }
.project-sidebar, .inspector { position: relative; z-index: 11; min-width: 0; overflow: auto; background: var(--surface); }
.project-sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.sidebar-heading, .inspector-heading { display: flex; align-items: start; justify-content: space-between; padding: 20px 18px 11px; }
.sidebar-heading h2, .inspector-heading h2 { margin: 0; font: 500 1.45rem/1.1 Georgia, serif; }
.sidebar-heading small { display: block; margin-top: 5px; color: var(--muted); font-size: .7rem; }
.search-box { padding: 0 14px 12px; }
.search-box input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f6f7f5; }
.hotspot-list { flex: 1; overflow: auto; padding: 3px 9px 12px; }
.hotspot-list-empty { padding: 24px 10px; color: var(--muted); font-size: .83rem; text-align: center; }
.hotspot-list-item { display: grid; grid-template-columns: 34px 1fr; width: 100%; min-height: 54px; padding: 7px 9px; align-items: center; gap: 8px; border: 0; border-radius: 11px; background: transparent; cursor: pointer; text-align: left; }
.hotspot-list-item:hover, .hotspot-list-item.active { background: var(--brand-soft); }
.list-marker { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: .7rem; font-weight: 800; }
.list-copy { min-width: 0; }.list-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }.list-copy span { color: var(--muted); font-size: .69rem; text-transform: capitalize; }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--line); }
.workspace { position: relative; min-width: 0; overflow: hidden; background: #29312f; }
.scene-breadcrumbs { position: absolute; z-index: 9; left: 14px; top: 67px; display: flex; max-width: calc(100% - 28px); min-height: 34px; padding: 4px 7px; align-items: center; gap: 3px; overflow-x: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(17,27,25,.76); color: #dce5e1; backdrop-filter: blur(12px); }
.scene-breadcrumbs button { min-height: 26px; padding: 2px 7px; border: 0; border-radius: 6px; background: transparent; color: white; cursor: pointer; font-size: .72rem; white-space: nowrap; }
.scene-breadcrumbs button:hover { background: rgba(255,255,255,.12); }.scene-breadcrumbs button:disabled { color: #b8c7c2; cursor: default; }.scene-breadcrumbs span { color: #82918c; }
.workspace-toolbar { position: absolute; z-index: 10; top: 13px; left: 50%; display: flex; max-width: calc(100% - 24px); padding: 5px; justify-content: space-between; gap: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(17,27,25,.82); color: white; transform: translateX(-50%); box-shadow: 0 8px 30px rgba(0,0,0,.2); backdrop-filter: blur(14px); }
.tool-group { display: flex; gap: 4px; }
.tool { min-height: 38px; padding: 0 12px; border-radius: 9px; background: transparent; color: inherit; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.tool:hover, .tool.active { background: rgba(255,255,255,.14); }
.tool.square { width: 38px; padding: 0; font-size: 1.1rem; }
.zoom-output { display: grid; min-width: 48px; place-items: center; color: #dce5e1; font-size: .72rem; }
.image-viewport { position: absolute; inset: 0; overflow: hidden; user-select: none; touch-action: none; cursor: crosshair; }
.image-viewport.pan-mode, .editor-view.explore .image-viewport { cursor: grab; }
.image-viewport.panning { cursor: grabbing; }
.image-canvas { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; transform-origin: center; will-change: transform; }
.image-canvas > img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.hotspot-layer { position: absolute; inset: 0; }
.hotspot-marker { --marker: var(--accent); position: absolute; display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 3px solid white; border-radius: 50%; background: var(--marker); color: #16211f; cursor: pointer; font-size: .78rem; font-weight: 850; box-shadow: 0 4px 18px rgba(0,0,0,.3),0 0 0 7px color-mix(in srgb,var(--marker) 20%,transparent); transform: translate(-50%,-50%) scale(var(--inverse-zoom,1)); touch-action: none; }
.hotspot-marker[data-style="point"] { width: 24px; height: 24px; font-size: 0; }
.hotspot-marker[data-style="circle"] { background: rgba(255,255,255,.12); color: white; }
.hotspot-marker[data-style="icon"] { font-size: 0; }.hotspot-marker[data-style="icon"]::after { content: "+"; font-size: 1.25rem; }
.hotspot-marker.active { outline: 4px solid rgba(255,255,255,.5); outline-offset: 4px; }
.hotspot-marker.has-child::after { content: "↳"; position: absolute; right: -7px; bottom: -7px; display: grid; width: 18px; height: 18px; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--brand-dark); color: white; font-size: .7rem; line-height: 1; }
.hotspot-marker[data-style="icon"].has-child::after { content: "↳"; font-size: .7rem; }
.hotspot-marker::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; }
.hotspot-marker.pulse { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 4px 18px rgba(0,0,0,.3),0 0 0 4px rgba(229,160,45,.2)}50%{box-shadow:0 4px 18px rgba(0,0,0,.3),0 0 0 12px rgba(229,160,45,0)} }
.add-hint { position: absolute; left: 50%; bottom: 21px; padding: 8px 13px; border-radius: 10px; background: rgba(17,27,25,.78); color: white; font-size: .73rem; transform: translateX(-50%); pointer-events: none; backdrop-filter: blur(10px); }
.empty-canvas { position: absolute; z-index: 3; left: 50%; top: 50%; display: grid; width: min(430px,calc(100% - 36px)); gap: 8px; color: white; transform: translate(-50%,-50%); text-align: center; }.empty-canvas span { color: #c0cbc7; font-size: .82rem; }.empty-canvas .button { width: min(300px,100%); margin: 10px auto 0; }
.inspector { border-left: 1px solid var(--line); }
.inspector-empty { display: grid; height: 100%; padding: 28px; place-content: center; color: var(--muted); text-align: center; }.inspector-empty > span { color: var(--brand); font-size: 2.5rem; }.inspector-empty strong { margin-top: 8px; color: var(--ink); }.inspector-empty p { max-width: 240px; margin: 7px auto; font-size: .83rem; }
.hotspot-form { padding-bottom: 35px; }
.hotspot-form > label, .hotspot-form > .form-grid, .hotspot-form > details { margin: 0 18px 13px; }
label > span { display: block; margin-bottom: 5px; color: #44514e; font-size: .72rem; font-weight: 760; }
input, textarea, select { width: 100%; border: 1px solid #cfd5d0; border-radius: 9px; background: white; color: var(--ink); }
input, select { min-height: 42px; padding: 8px 10px; }
textarea { resize: vertical; padding: 9px 10px; }
.form-grid { display: grid; gap: 9px; }.form-grid.two { grid-template-columns: 1fr 1fr; }
details { border-top: 1px solid var(--line); }
details summary { padding: 15px 0 12px; cursor: pointer; font-size: .8rem; font-weight: 800; }
details > label, details > .form-grid, details > .relation-builder, details > .relation-list, details > button { margin-bottom: 10px; }
.file-control input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-control em { display: block; padding: 10px; overflow: hidden; border: 1px dashed #bdc7c0; border-radius: 9px; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.relation-builder { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.relation-builder label:last-of-type, .relation-builder button { grid-column: 1/-1; }
.relation-chip { display: flex; padding: 8px 9px; align-items: center; justify-content: space-between; gap: 7px; border-radius: 8px; background: #f0f3f0; font-size: .7rem; }.relation-chip button { border: 0; background: transparent; color: var(--danger); cursor: pointer; }
.child-scene-box { padding: 13px; border: 1px solid #d7ddd8; border-radius: 12px; background: #f3f6f3; }.child-scene-box p { margin: 0 0 12px; color: var(--muted); font-size: .78rem; }.child-scene-box.linked { display: grid; gap: 7px; }.child-scene-box.linked strong { color: var(--brand-dark); }.child-scene-box.linked span { color: var(--muted); font-size: .72rem; }.child-scene-box .text-button { justify-self: center; }
.danger-zone { display: flex; margin: 23px 18px 0; gap: 8px; }.danger-zone > * { flex: 1; }
.editor-view.explore .editor-only, .editor-view.explore .project-sidebar, .editor-view.explore .inspector { display: none !important; }
.editor-view.explore .editor-body { grid-template-columns: 1fr; }
.editor-view.explore .workspace-toolbar { left: auto; right: 13px; transform: none; }

.dialog, .content-dialog { max-width: min(560px,calc(100vw - 28px)); padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.dialog.wide { width: min(720px,calc(100vw - 28px)); }
.dialog::backdrop, .content-dialog::backdrop { background: rgba(12,23,21,.64); backdrop-filter: blur(5px); }
.dialog > form { margin: 0; }
.dialog-heading { display: flex; padding: 23px 25px 15px; align-items: start; justify-content: space-between; }.dialog-heading h2 { margin: 0; font: 500 1.8rem/1.1 Georgia,serif; }
.dialog form > label { display: block; margin: 0 25px 14px; }
.dialog-actions { display: flex; padding: 17px 25px 23px; justify-content: end; gap: 8px; }
.drop-zone { display: grid !important; min-height: 155px; padding: 26px; place-items: center; border: 1.5px dashed #abb8b1; border-radius: 14px; background: #f4f7f4; text-align: center; cursor: pointer; }.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }.drop-zone strong { color: var(--brand-dark); }.drop-zone span { margin: 0; color: var(--muted); font-weight: 500; }.drop-zone em { max-width: 100%; overflow: hidden; color: var(--ink); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.toggle-row { display: flex !important; align-items: center; gap: 10px; }.toggle-row input { width: 22px; min-height: 22px; }.toggle-row span { margin: 0; }
.project-list { max-height: 60vh; overflow: auto; padding: 0 22px 24px; }.project-row { display: grid; grid-template-columns: 68px 1fr auto; width: 100%; margin: 8px 0; padding: 8px; align-items: center; gap: 12px; border-radius: 13px; text-align: left; cursor: pointer; }.project-row img { width: 68px; height: 54px; border-radius: 8px; object-fit: cover; }.project-row small { color: var(--muted); }.project-row .delete-project { width: 40px; height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--danger); cursor: pointer; }
.guide-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 25px 28px; list-style: none; counter-reset: steps; }.guide-steps li { position: relative; min-height: 125px; padding: 18px 18px 16px 54px; border-radius: 14px; background: #eff4f0; }.guide-steps li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 16px; top: 17px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--brand); color: white; font-weight: 800; }.guide-steps b,.guide-steps span { display:block; }.guide-steps span { margin-top: 5px; color: var(--muted); font-size: .8rem; }
.content-dialog { width: min(570px,calc(100vw - 22px)); max-height: min(82vh,800px); overflow: visible; }
.content-close { position: absolute; z-index: 2; right: 10px; top: 10px; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: rgba(17,30,27,.72); color: white; cursor: pointer; font-size: 1.25rem; }
.content-card { max-height: min(82vh,800px); overflow: auto; padding: 28px; }
.content-card .category { color: var(--brand-dark); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.content-card h2 { margin: 5px 45px 12px 0; font: 500 2rem/1.08 Georgia,serif; }.content-card .lead { color: #394642; font-size: 1.05rem; }.content-card .long-copy { white-space: pre-wrap; }.content-card img,.content-card video { display: block; width: 100%; max-height: 420px; margin: 17px 0; border-radius: 13px; object-fit: contain; background: #edf0ed; }.content-card audio { width: 100%; margin: 14px 0; }.content-card .external-link,.content-card .relation-link,.content-card .path-button,.content-card .enter-scene-button { display: flex; width: 100%; min-height: 44px; margin-top: 8px; padding: 10px 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--brand-dark); text-decoration: none; font-weight: 760; cursor: pointer; }.content-card .enter-scene-button { min-height: 58px; margin: 18px 0; border-color: var(--brand); background: var(--brand); color: white; }.content-card .enter-scene-button span { font-size: .74rem; font-weight: 650; }.content-card .enter-scene-button b::after { content: "  →"; }.content-card .question-box { margin: 18px 0; padding: 16px; border-radius: 13px; background: #f3efe4; }.content-card .question-box button { margin-top: 9px; border: 0; background: transparent; color: var(--brand-dark); cursor: pointer; font-weight: 760; }.content-card .answer { margin-top: 9px; padding-top: 9px; border-top: 1px solid #d9d1bd; white-space: pre-wrap; }.content-card .relations-heading { margin: 20px 0 8px; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }.path-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(22px + var(--safe-bottom)); max-width: calc(100vw - 30px); padding: 11px 15px; border-radius: 11px; background: #14231f; color: white; opacity: 0; pointer-events: none; transform: translate(-50%,20px); transition: opacity .2s,transform .2s; box-shadow: var(--shadow); font-size: .82rem; }.toast.show { opacity: 1; transform: translate(-50%,0); }
.mobile-actions { position: fixed; z-index: 40; top: calc(60px + var(--safe-top)); right: 10px; display: grid; min-width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }.mobile-actions button { min-height: 44px; padding: 0 11px; border-radius: 8px; background: transparent; text-align: left; }.mobile-actions button:hover { background: #edf1ee; }

@media (max-width: 1100px) {
  .editor-body { grid-template-columns: 220px minmax(0,1fr) 310px; }
  .header-actions .button.ghost { display: none; }
  .home-main { gap: 44px; }
}
@media (max-width: 900px) {
  .mobile-only { display: grid; }
  .home-main { grid-template-columns: 1fr; margin-top: 68px; }.hero-copy h1 { max-width: 760px; }.hero-visual { max-width: 700px; }.sample-map { min-height: 410px; }.recent-grid { grid-template-columns: 1fr 1fr; }
  .editor-header { grid-template-columns: auto minmax(100px,1fr) auto auto; }.header-actions > .button { display: none; }.mode-switch button { padding: 0 10px; }
  .editor-body { grid-template-columns: 1fr; }
  .project-sidebar { position: absolute; z-index: 30; left: 0; top: calc(66px + var(--safe-top)); bottom: 0; width: min(330px,87vw); visibility: hidden; pointer-events: none; box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .2s ease,visibility 0s linear .2s; }.project-sidebar.open { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
  .inspector { position: absolute; z-index: 31; left: 0; right: 0; bottom: 0; max-height: min(72dvh,690px); visibility: hidden; pointer-events: none; border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 50px rgba(0,0,0,.22); transform: translateY(105%); transition: transform .22s ease,visibility 0s linear .22s; }.inspector.open { visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
  .inspector-empty { display: none; }.hotspot-form { padding-bottom: calc(25px + var(--safe-bottom)); }
  .workspace-toolbar { left: 12px; right: 12px; width: auto; transform: none; }.editor-view.explore .workspace-toolbar { left: 12px; }
  .scene-breadcrumbs { top: 73px; left: 12px; max-width: calc(100% - 24px); }
}
@media (max-width: 650px) {
  .home-view { padding-inline: 16px; }.home-header .brand small { display: none; }.home-main { margin-top: 55px; }.hero-copy h1 { font-size: clamp(2.65rem,14vw,4.1rem); }.hero-actions > * { width: 100%; }.sample-map { min-height: 330px; border-radius: 25px; }.principle { gap: 6px; font-size: .69rem; }.recent-grid { grid-template-columns: 1fr; }.recent-section { margin-top: 55px; }.home-footer { gap: 15px; align-items: start; }
  .editor-header { gap: 4px; padding-inline: 5px; }.project-identity strong { font-size: .83rem; }.project-identity span { font-size: .62rem; }.mode-switch button { min-height: 34px; padding: 0 8px; font-size: .7rem; }.workspace-toolbar { flex-wrap: wrap; justify-content: center; }.tool { padding-inline: 9px; }.add-hint { display: none; }
  .dialog-heading { padding-inline: 18px; }.dialog form > label { margin-inline: 18px; }.dialog-actions { padding-inline: 18px; }.guide-steps { grid-template-columns: 1fr; padding-inline: 18px; }.form-grid.two { grid-template-columns: 1fr; }.content-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
