:root {
  --ink: #17333a;
  --muted: #687f85;
  --muted-2: #91a3a7;
  --line: #dce7e9;
  --line-strong: #c7d7da;
  --paper: #ffffff;
  --canvas: #f2f7f8;
  --navy: #052f38;
  --navy-2: #08414c;
  --navy-3: #0b5360;
  --teal: #14aaa8;
  --teal-2: #0d8f91;
  --cyan: #62d7d2;
  --green: #29a86b;
  --amber: #e9a83e;
  --red: #d85c62;
  --blue: #3f8fd0;
  --violet: #806fd2;
  --shadow-sm: 0 4px 14px rgba(17, 56, 65, .07);
  --shadow: 0 18px 48px rgba(13, 53, 62, .13);
  --shadow-lg: 0 28px 90px rgba(4, 37, 44, .24);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --sidebar: 252px;
  --topbar: 74px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(20, 170, 168, .22); }

/* Brand */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: white;
}
.brand-lockup > div:last-child,
.mobile-brand > div:last-child { display: grid; line-height: 1; }
.brand-lockup strong,
.mobile-brand strong { font-size: 18px; letter-spacing: .08em; }
.brand-lockup small,
.mobile-brand small { margin-top: 5px; font-size: 8px; letter-spacing: .17em; opacity: .66; }
.brand-lockup--light { color: white; }
.brand-orbit {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(105, 228, 220, .48);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, rgba(95, 226, 219, .35), rgba(6, 62, 72, .15) 48%, rgba(4, 40, 48, .9));
  box-shadow: inset 0 0 0 5px rgba(20, 186, 181, .06), 0 0 24px rgba(30, 204, 197, .17);
  overflow: hidden;
}
.brand-orbit::before,
.brand-orbit::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 16px;
  border: 1px solid rgba(105, 228, 220, .54);
  border-radius: 50%;
  transform: rotate(18deg);
}
.brand-orbit::after { transform: rotate(-54deg); opacity: .62; }
.brand-orbit span { z-index: 1; font-size: 12px; font-weight: 900; letter-spacing: -.05em; color: #e9ffff; }
.brand-orbit i {
  position: absolute;
  z-index: 2;
  width: 6px;
  height: 6px;
  top: 7px;
  right: 7px;
  border-radius: 50%;
  background: #78f1e8;
  box-shadow: 0 0 10px #78f1e8;
}
.brand-orbit--large { width: 78px; height: 78px; }
.brand-orbit--large span { font-size: 21px; }
.brand-orbit--large i { width: 9px; height: 9px; top: 12px; right: 13px; }
.brand-orbit--large::before, .brand-orbit--large::after { width: 104px; height: 28px; }

/* Buttons and controls */
.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.btn--primary { color: white; background: linear-gradient(135deg, var(--teal), var(--teal-2)); box-shadow: 0 8px 18px rgba(13, 143, 145, .22); }
.btn--primary:hover { box-shadow: 0 11px 24px rgba(13, 143, 145, .29); }
.btn--ghost { color: var(--ink); background: white; border-color: var(--line); }
.btn--ghost:hover { border-color: #a9c9cc; box-shadow: var(--shadow-sm); }
.btn--soft { color: var(--teal-2); background: #eaf7f7; border-color: #cdebea; }
.btn--danger { color: #b73d45; background: #fff0f1; border-color: #f5cfd2; }
.btn--dark { color: white; background: var(--navy); }
.btn--small { min-height: 34px; padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.btn--wide { width: 100%; min-height: 49px; }
.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  cursor: pointer;
}
.kebab { border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--muted); }

input, textarea, select {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: white;
  outline: 0;
  transition: border-color .16s, box-shadow .16s;
}
input, select { height: 43px; padding: 0 12px; }
textarea { min-height: 92px; padding: 11px 12px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 170, 168, .13); }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 750; color: #344f55; }
label small { float: right; color: var(--muted); font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field-stack { display: grid; gap: 14px; }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}
.checkbox-row input { width: 18px; height: 18px; padding: 0; margin: 2px 0 0; accent-color: var(--teal); flex: 0 0 auto; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 42px; height: 24px; border-radius: 999px; background: #c5d3d5; transition: .2s; position: relative; }
.switch i::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; background: white; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + i { background: var(--teal); }
.switch input:checked + i::after { transform: translateX(18px); }

/* Boot and authentication */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 30px;
  color: white;
  background: radial-gradient(circle at 50% 34%, #0b6470, #052f38 45%, #031f26);
  text-align: center;
}
.boot-screen h1 { margin: 4px 0 0; font-size: 25px; }
.boot-screen p { margin: 0; color: rgba(255,255,255,.66); }
.app-ready .boot-screen { display: none; }
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(400px, .75fr); background: white; }
.auth-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  color: white;
  background:
    radial-gradient(circle at 20% 18%, rgba(54, 210, 201, .28), transparent 28%),
    linear-gradient(145deg, rgba(3, 39, 47, .96), rgba(5, 74, 84, .9)),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(132, 236, 228, .08) 119px 120px),
    repeating-linear-gradient(0deg, transparent 0 118px, rgba(132, 236, 228, .06) 119px 120px);
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: 22% -12% -22% 18%;
  border: 1px solid rgba(96, 231, 222, .16);
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(105, 233, 224, .17) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(105, 233, 224, .14) 50%, transparent 50.3%);
  transform: perspective(900px) rotateX(62deg) rotateZ(-12deg);
  box-shadow: 0 0 100px rgba(43, 196, 189, .12);
}
.auth-visual::after {
  content: "360°";
  position: absolute;
  right: -45px;
  bottom: 18px;
  color: rgba(255,255,255,.035);
  font-size: 210px;
  font-weight: 900;
  letter-spacing: -.08em;
}
.auth-visual__inner { position: relative; z-index: 2; display: flex; min-height: 100vh; flex-direction: column; padding: 42px clamp(38px, 7vw, 110px); }
.auth-copy { max-width: 700px; margin: auto 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--cyan); font-size: 11px; font-weight: 850; letter-spacing: .17em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.auth-copy h1 { max-width: 680px; margin: 20px 0; font-size: clamp(38px, 4.3vw, 69px); line-height: 1.03; letter-spacing: -.045em; }
.auth-copy p { max-width: 610px; margin: 0; color: rgba(234, 253, 252, .72); font-size: 17px; line-height: 1.7; }
.auth-feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.auth-feature-row > div { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.78); font-size: 12px; }
.auth-feature-row b { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(102,229,221,.28); border-radius: 9px; color: var(--cyan); background: rgba(57,190,183,.09); }
.auth-panel { display: grid; place-items: center; min-height: 100vh; padding: 34px; }
.auth-panel__body { width: min(100%, 410px); }
.mobile-brand { display: none; align-items: center; gap: 11px; margin-bottom: 45px; color: var(--navy); }
.mobile-brand .brand-orbit { background: var(--navy); }
.auth-form { display: grid; gap: 17px; }
.step-pill { display: inline-flex; justify-self: start; padding: 6px 10px; border-radius: 999px; color: var(--teal-2); background: #eaf7f7; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.auth-form h2 { margin: 3px 0 -7px; font-size: 31px; letter-spacing: -.03em; }
.auth-form > p { margin: 0 0 4px; color: var(--muted); line-height: 1.6; }
.auth-note { text-align: center; font-size: 11px; }
.form-error { padding: 11px 13px; border: 1px solid #f0c7cb; border-radius: 10px; color: #a43c44; background: #fff2f3; font-size: 12px; line-height: 1.45; }
.mini-checks { display: grid; gap: 7px; margin-top: 3px; }
.mini-checks span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.mini-checks i { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-style: normal; font-size: 10px; }
.mini-checks .fail i { background: var(--red); }

/* Main studio layout */
.studio { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 24px 17px 16px;
  color: white;
  background:
    radial-gradient(circle at 10% 4%, rgba(44, 191, 183, .21), transparent 24%),
    linear-gradient(180deg, var(--navy-2), var(--navy) 52%, #03262d);
  box-shadow: 9px 0 35px rgba(7, 42, 49, .1);
}
.sidebar .brand-lockup { padding: 0 10px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-nav { display: grid; gap: 6px; margin-top: 24px; }
.side-nav a { display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; color: rgba(236, 255, 253, .66); font-size: 13px; font-weight: 680; transition: .17s; }
.side-nav a span { display: grid; width: 23px; height: 23px; place-items: center; font-size: 16px; color: rgba(125, 230, 223, .7); }
.side-nav a:hover { color: white; background: rgba(255,255,255,.06); }
.side-nav a.active { color: white; background: linear-gradient(90deg, rgba(27,184,179,.3), rgba(27,184,179,.11)); box-shadow: inset 3px 0 0 var(--cyan); }
.side-nav a.active span { color: var(--cyan); }
.sidebar__foot { display: grid; gap: 13px; margin-top: auto; }
.storage-mini { padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.035); }
.storage-mini span { display: flex; justify-content: space-between; color: rgba(255,255,255,.55); font-size: 10px; }
.storage-mini b { color: white; }
.storage-mini i { display: block; height: 4px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.storage-mini em { display: block; width: 3%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.side-help { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; color: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.035); text-align: left; cursor: pointer; }
.side-help > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: var(--cyan); background: rgba(97,215,210,.12); font-weight: 800; }
.side-help div, .user-chip div { display: grid; min-width: 0; }
.side-help b, .user-chip b { font-size: 11px; }
.side-help small, .user-chip small { margin-top: 3px; color: rgba(255,255,255,.45); font-size: 9px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px 7px 0; border-top: 1px solid rgba(255,255,255,.08); }
.user-chip > span { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 10px; color: var(--navy); background: linear-gradient(145deg, #80ece4, #3fc5bf); font-size: 12px; font-weight: 900; }
.user-chip div { flex: 1; }
.user-chip button { width: 31px; height: 31px; border: 0; color: rgba(255,255,255,.5); background: transparent; cursor: pointer; }
.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  height: var(--topbar);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.breadcrumb { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; }
.breadcrumb span::after { content: "/"; margin-left: 11px; color: #b1c0c3; }
.breadcrumb b { color: var(--ink); }
.topbar__actions { display: flex; gap: 9px; }
.page { min-height: calc(100vh - var(--topbar)); padding: 28px 30px 44px; outline: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 23px; }
.page-head h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.page-head__actions { display: flex; gap: 9px; }
.mobile-only { display: none; }
.sidebar-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(1, 26, 31, .55); backdrop-filter: blur(2px); }

/* Dashboard */
.welcome-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  min-height: 190px;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 30px 34px;
  color: white;
  border-radius: 20px;
  background:
    radial-gradient(circle at 75% 40%, rgba(72, 218, 209, .24), transparent 24%),
    linear-gradient(120deg, #073a44, #0b5b65);
  box-shadow: var(--shadow);
}
.welcome-banner::before { content: ""; position: absolute; inset: 0; opacity: .18; background: repeating-linear-gradient(90deg, transparent 0 92px, rgba(255,255,255,.11) 93px 94px), repeating-linear-gradient(0deg, transparent 0 92px, rgba(255,255,255,.08) 93px 94px); transform: perspective(700px) rotateX(65deg) translateY(50%); }
.welcome-banner__copy { position: relative; z-index: 1; align-self: center; }
.welcome-banner h1 { max-width: 610px; margin: 8px 0 10px; font-size: clamp(26px, 3vw, 42px); line-height: 1.08; letter-spacing: -.04em; }
.welcome-banner p { max-width: 600px; margin: 0 0 20px; color: rgba(235,255,253,.7); line-height: 1.6; }
.welcome-banner__visual { position: relative; min-height: 140px; }
.pano-orb { position: absolute; width: 250px; height: 125px; top: 50%; left: 50%; transform: translate(-50%,-50%); border: 1px solid rgba(107,236,227,.4); border-radius: 50%; box-shadow: inset 0 0 55px rgba(61,211,201,.18), 0 0 70px rgba(33,176,170,.13); }
.pano-orb::before, .pano-orb::after { content: ""; position: absolute; inset: 13px 45px; border: 1px solid rgba(107,236,227,.3); border-radius: 50%; }
.pano-orb::after { inset: -25px 86px; transform: rotate(90deg); }
.pano-orb span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 31px; font-weight: 900; color: #a2fff6; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.stat-card__icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: var(--teal-2); background: #e9f7f7; font-size: 19px; }
.stat-card:nth-child(2) .stat-card__icon { color: var(--blue); background: #ebf3fb; }
.stat-card:nth-child(3) .stat-card__icon { color: var(--violet); background: #f0edfb; }
.stat-card:nth-child(4) .stat-card__icon { color: var(--green); background: #eaf7f0; }
.stat-card:nth-child(5) .stat-card__icon { color: var(--amber); background: #fff5e4; }
.stat-card b { display: block; overflow: hidden; font-size: 23px; letter-spacing: -.03em; text-overflow: ellipsis; }
.stat-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 15px; }
.panel-head a, .panel-head button.link-button { border: 0; color: var(--teal-2); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.recent-list { display: grid; }
.recent-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 13px 17px; border-bottom: 1px solid #edf2f3; cursor: pointer; }
.recent-row:last-child { border-bottom: 0; }
.recent-row:hover { background: #f8fbfb; }
.recent-thumb { width: 76px; height: 47px; overflow: hidden; border-radius: 8px; background: #d9e5e7; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-row__copy { min-width: 0; }
.recent-row__copy b { display: block; overflow: hidden; margin-bottom: 5px; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.recent-row__copy span { color: var(--muted); font-size: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-draft { color: #8b6c20; background: #fff5d8; }
.status-review { color: #4a6caf; background: #edf3ff; }
.status-published { color: #288159; background: #e8f7ef; }
.status-private { color: #677d83; background: #edf2f3; }
.activity-list { display: grid; padding: 4px 17px 10px; }
.activity-item { position: relative; display: grid; grid-template-columns: 31px 1fr; gap: 11px; padding: 13px 0; }
.activity-item:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 45px; bottom: -2px; width: 1px; background: var(--line); }
.activity-item > span { z-index: 1; display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: var(--teal-2); background: #e9f7f7; font-size: 12px; }
.activity-item p { margin: 0; color: #40585d; font-size: 11px; line-height: 1.45; }
.activity-item time { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.workflow-mini { display: grid; gap: 10px; padding: 15px 17px 18px; }
.workflow-mini div { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 9px; }
.workflow-mini b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: var(--teal-2); background: #eaf7f7; font-size: 10px; }
.workflow-mini span { font-size: 11px; }

/* Cards, grids and tables */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.search-box { position: relative; flex: 1; max-width: 380px; }
.search-box span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 35px; }
.toolbar__filters { display: flex; gap: 9px; }
.toolbar select { width: auto; min-width: 138px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card, .tour-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow-sm); transition: transform .17s, box-shadow .17s, border-color .17s; }
.project-card:hover, .tour-card:hover { transform: translateY(-3px); border-color: #bbd6d8; box-shadow: var(--shadow); }
.project-card__cover, .tour-card__cover { position: relative; height: 152px; overflow: hidden; background: linear-gradient(135deg, #0b5360, #052f38); }
.project-card__cover img, .tour-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.project-card:hover img, .tour-card:hover img { transform: scale(1.035); }
.project-card__cover::after, .tour-card__cover::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(3,30,36,.58)); }
.card-badge { position: absolute; z-index: 2; top: 12px; left: 12px; }
.card-menu { position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 9px; color: white; background: rgba(3,34,40,.55); backdrop-filter: blur(8px); cursor: pointer; }
.project-card__body, .tour-card__body { padding: 16px; }
.project-card h3, .tour-card h3 { margin: 0 0 7px; font-size: 15px; letter-spacing: -.015em; }
.project-card p, .tour-card p { display: -webkit-box; min-height: 35px; overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #edf2f3; color: var(--muted); font-size: 10px; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.empty-state { display: grid; justify-items: center; padding: 66px 24px; border: 1px dashed #bfd0d3; border-radius: 18px; background: rgba(255,255,255,.62); text-align: center; }
.empty-state__icon { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 20px; color: var(--teal-2); background: #e9f7f7; font-size: 28px; }
.empty-state h2 { margin: 17px 0 7px; font-size: 19px; }
.empty-state p { max-width: 440px; margin: 0 0 18px; color: var(--muted); line-height: 1.55; font-size: 12px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 12px 15px; color: var(--muted); background: #f7fafb; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.data-table td { padding: 13px 15px; border-bottom: 1px solid #edf2f3; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #fbfdfd; }
.table-title { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.table-title img { width: 58px; height: 36px; object-fit: cover; border-radius: 7px; background: #dce8e9; }
.table-title div { display: grid; }
.table-title small { margin-top: 3px; color: var(--muted); }

/* Media */
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.media-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.media-card__image { position: relative; aspect-ratio: 2/1; overflow: hidden; background: #dce8e9; }
.media-card__image img { width: 100%; height: 100%; object-fit: cover; }
.media-card__image span { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; border-radius: 7px; color: white; background: rgba(4,39,46,.72); font-size: 9px; }
.media-card__body { padding: 11px 12px; }
.media-card b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.media-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.upload-dropzone { display: grid; min-height: 235px; place-items: center; padding: 25px; border: 2px dashed #b9cdd0; border-radius: 18px; background: rgba(255,255,255,.68); text-align: center; cursor: pointer; transition: .18s; }
.upload-dropzone.dragover { border-color: var(--teal); background: #ecf8f8; transform: scale(1.005); }
.upload-dropzone span { display: grid; width: 64px; height: 64px; place-items: center; margin: 0 auto 14px; border-radius: 19px; color: var(--teal-2); background: #e4f5f5; font-size: 27px; }
.upload-dropzone h3 { margin: 0 0 6px; }
.upload-dropzone p { margin: 0; color: var(--muted); font-size: 11px; }
.upload-progress { display: grid; gap: 8px; margin-top: 14px; }
.upload-progress__bar { height: 8px; overflow: hidden; border-radius: 999px; background: #e5edef; }
.upload-progress__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--cyan)); transition: width .2s; }
.upload-progress small { color: var(--muted); }

/* Editor */
.page--editor { padding: 0; height: calc(100vh - var(--topbar)); overflow: hidden; }
.editor {
  display: grid;
  height: 100%;
  grid-template-columns: 245px minmax(320px, 1fr) 310px;
  background: #e7eff0;
}
.editor-panel { min-width: 0; overflow: auto; background: white; }
.editor-panel--left { border-right: 1px solid var(--line); }
.editor-panel--right { border-left: 1px solid var(--line); }
.editor-panel__head { position: sticky; top: 0; z-index: 4; display: flex; min-height: 55px; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.editor-panel__head h2 { margin: 0; font-size: 13px; }
.scene-list { display: grid; gap: 7px; padding: 11px; }
.scene-row { position: relative; display: grid; grid-template-columns: 65px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; }
.scene-row:hover { background: #f5f9f9; }
.scene-row.active { border-color: #a9d9d8; background: #ecf8f7; }
.scene-row img { width: 65px; height: 41px; object-fit: cover; border-radius: 7px; background: #dce8e9; }
.scene-row__copy { min-width: 0; }
.scene-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.scene-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.scene-row__start { position: absolute; top: 3px; left: 3px; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: white; background: var(--teal); font-size: 8px; }
.editor-stage { position: relative; min-width: 0; overflow: hidden; background: #0a2e35; }
.editor-viewer { position: absolute; inset: 0; }
.editor-toolbar { position: absolute; z-index: 8; left: 50%; top: 14px; display: flex; gap: 6px; padding: 6px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(4,34,40,.72); box-shadow: 0 10px 28px rgba(0,0,0,.2); backdrop-filter: blur(12px); transform: translateX(-50%); }
.editor-toolbar button { display: inline-flex; height: 34px; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 8px; color: rgba(255,255,255,.8); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.editor-toolbar button:hover, .editor-toolbar button.active { color: white; background: rgba(67,207,198,.19); }
.editor-toolbar button.danger:hover { background: rgba(221,89,96,.22); }
.editor-status { position: absolute; z-index: 8; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 9px; color: rgba(255,255,255,.78); background: rgba(4,34,40,.72); backdrop-filter: blur(12px); font-size: 9px; }
.editor-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.editor-status.unsaved i { background: var(--amber); }
.editor-coordinates { position: absolute; z-index: 8; right: 14px; bottom: 14px; padding: 7px 10px; border-radius: 9px; color: rgba(255,255,255,.72); background: rgba(4,34,40,.72); backdrop-filter: blur(12px); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.editor-mode-hint { position: absolute; z-index: 9; left: 50%; bottom: 55px; padding: 10px 14px; border-radius: 10px; color: #083e47; background: #b8fff8; box-shadow: var(--shadow); transform: translateX(-50%); font-size: 11px; font-weight: 750; }
.inspector { padding-bottom: 30px; }
.inspector-section { padding: 15px; border-bottom: 1px solid var(--line); }
.inspector-section h3 { margin: 0 0 13px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.inspector-section .field-stack { gap: 11px; }
.inspector-tabs { position: sticky; top: 55px; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 7px; border-bottom: 1px solid var(--line); background: white; }
.inspector-tabs button { height: 34px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }
.inspector-tabs button.active { color: var(--teal-2); background: #eaf7f7; }
.hotspot-list { display: grid; gap: 7px; }
.hotspot-list-item { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.hotspot-list-item.active { border-color: var(--teal); background: #edf9f8; }
.hotspot-list-item > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--teal-2); background: #eaf7f7; }
.hotspot-list-item b { display: block; font-size: 10px; }
.hotspot-list-item small { color: var(--muted); font-size: 8px; }
.mobile-editor-tabs { display: none; }

/* Custom WebGL panorama */
.s360-viewer { position: relative; overflow: hidden; min-height: 260px; background: #072d34; outline: 0; touch-action: none; user-select: none; }
.s360-viewer:focus-visible { box-shadow: inset 0 0 0 3px rgba(99, 225, 217, .65); }
.s360-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.s360-canvas:active { cursor: grabbing; }
.s360-hotspot-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.s360-hotspot { position: absolute; left: 0; top: 0; display: grid; width: 42px; height: 42px; place-items: center; padding: 0; color: white; border: 0; border-radius: 50%; background: rgba(8, 70, 78, .88); box-shadow: 0 5px 19px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.72); pointer-events: auto; cursor: pointer; transition: scale .17s, background .17s; }
.s360-hotspot:hover { scale: 1.12; background: var(--teal-2); }
.s360-hotspot-pulse { position: absolute; inset: -7px; border: 1px solid rgba(107,238,229,.58); border-radius: 50%; animation: hotspot-pulse 2.2s infinite; }
.s360-hotspot-icon { position: relative; z-index: 2; display: grid; place-items: center; width: 100%; height: 100%; font-size: 15px; font-weight: 900; }
.s360-hotspot-label { position: absolute; left: 50%; top: calc(100% + 8px); max-width: 180px; padding: 6px 8px; color: white; border-radius: 7px; background: rgba(3,31,37,.82); font-size: 9px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, -4px); transition: .16s; backdrop-filter: blur(9px); }
.s360-hotspot:hover .s360-hotspot-label, .s360-hotspot:focus .s360-hotspot-label { opacity: 1; transform: translate(-50%, 0); }
.s360-hotspot--scene, .s360-hotspot--navigation { background: rgba(10, 145, 145, .9); }
.s360-hotspot--equipment { background: rgba(47, 113, 161, .9); }
.s360-hotspot--maintenance { background: rgba(211, 137, 36, .92); }
.s360-hotspot--inspection { background: rgba(43, 151, 97, .92); }
.s360-hotspot--education { background: rgba(114, 91, 190, .92); }
.s360-loading, .s360-error { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 25px; color: white; background: radial-gradient(circle, #0d505a, #062e35); text-align: center; }
.s360-loading strong, .s360-error strong { font-size: 13px; }
.s360-error span { max-width: 420px; color: rgba(255,255,255,.65); font-size: 11px; }
.s360-spinner { width: 35px; height: 35px; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hotspot-pulse { 0%,100% { transform: scale(.88); opacity: .9; } 65% { transform: scale(1.35); opacity: 0; } }

/* Analytics / settings */
.analytics-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; }
.chart-card { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.chart-card h2 { margin: 0 0 3px; font-size: 14px; }
.chart-card > p { margin: 0 0 19px; color: var(--muted); font-size: 10px; }
.bar-chart { display: grid; min-height: 220px; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 10px; padding: 20px 8px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(0deg, transparent 0 47px, #edf2f3 48px 49px); }
.bar-chart div { display: grid; height: 100%; align-items: end; justify-items: center; gap: 8px; }
.bar-chart i { width: min(38px, 70%); min-height: 5px; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, var(--cyan), var(--teal-2)); }
.bar-chart span { padding-bottom: 8px; color: var(--muted); font-size: 8px; }
.top-tour-list { display: grid; gap: 8px; }
.top-tour-list > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf2f3; }
.top-tour-list b { font-size: 11px; }
.top-tour-list small { display: block; margin-top: 4px; color: var(--muted); }
.top-tour-list strong { color: var(--teal-2); }
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
.settings-nav { align-self: start; display: grid; gap: 5px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.settings-nav button { display: flex; min-height: 39px; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; font-size: 11px; font-weight: 700; }
.settings-nav button.active { color: var(--teal-2); background: #eaf7f7; }
.settings-card { border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.settings-card__head { padding: 17px 19px; border-bottom: 1px solid var(--line); }
.settings-card__head h2 { margin: 0 0 5px; font-size: 15px; }
.settings-card__head p { margin: 0; color: var(--muted); font-size: 10px; }
.settings-card__body { display: grid; gap: 17px; padding: 19px; }
.server-checks { display: grid; gap: 9px; }
.server-check { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.server-check > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 11px; }
.server-check.fail > span { background: var(--amber); }
.server-check b { font-size: 11px; }
.server-check small { color: var(--muted); font-size: 9px; }
.danger-zone { padding: 15px; border: 1px solid #f0cdd0; border-radius: 12px; background: #fff7f7; }
.danger-zone h3 { margin: 0 0 5px; color: #a73f46; font-size: 12px; }
.danger-zone p { margin: 0 0 11px; color: #886166; font-size: 10px; line-height: 1.5; }

/* Modals, menus, toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(3, 30, 36, .58); backdrop-filter: blur(5px); animation: fade-in .16s ease; }
.modal { width: min(100%, 560px); max-height: min(90vh, 850px); overflow: auto; border-radius: 19px; background: white; box-shadow: var(--shadow-lg); animation: modal-in .18s ease; }
.modal--wide { width: min(100%, 760px); }
.modal--xl { width: min(100%, 980px); }
.modal__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.modal__head h2 { margin: 0; font-size: 17px; }
.modal__head button { width: 34px; height: 34px; border: 0; border-radius: 9px; color: var(--muted); background: #f0f5f5; cursor: pointer; font-size: 20px; }
.modal__body { padding: 19px; }
.modal__foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 13px 19px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.confirm-copy { color: var(--muted); line-height: 1.65; font-size: 12px; }
.context-menu { position: fixed; z-index: 120; min-width: 175px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); }
.context-menu button { display: flex; width: 100%; min-height: 34px; align-items: center; gap: 9px; padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; text-align: left; font-size: 11px; }
.context-menu button:hover { background: #f1f7f7; }
.context-menu button.danger { color: #b8444b; }
.toast-region { position: fixed; z-index: 200; right: 18px; bottom: calc(18px + var(--safe-bottom)); display: grid; gap: 9px; width: min(360px, calc(100vw - 36px)); pointer-events: none; }
.toast { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: white; background: rgba(5, 48, 57, .94); box-shadow: var(--shadow); backdrop-filter: blur(12px); animation: toast-in .25s ease; pointer-events: auto; }
.toast > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--navy); background: var(--cyan); font-weight: 900; }
.toast.error > span { color: white; background: var(--red); }
.toast.warning > span { color: white; background: var(--amber); }
.toast b { display: block; font-size: 11px; }
.toast small { display: block; margin-top: 3px; color: rgba(255,255,255,.63); font-size: 9px; line-height: 1.4; }
.toast button { border: 0; color: rgba(255,255,255,.55); background: transparent; cursor: pointer; }
.workflow-steps { display: grid; gap: 10px; }
.workflow-step { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.workflow-step > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg, var(--teal), var(--navy-3)); font-weight: 900; }
.workflow-step h3 { margin: 1px 0 4px; font-size: 12px; }
.workflow-step p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.publish-summary { display: grid; grid-template-columns: 1fr 220px; gap: 18px; }
.confidentiality-list { display: grid; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfb; }
.share-box { display: grid; gap: 10px; align-content: start; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #f8fbfb; }
.qr-preview { display: grid; width: 150px; height: 150px; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr); gap: 1px; padding: 8px; margin: 0 auto; background: white; box-shadow: 0 5px 18px rgba(13,48,56,.1); }
.qr-preview i { background: transparent; }
.qr-preview i.on { background: #092f37; }
.code-box { position: relative; padding: 11px; border: 1px solid var(--line); border-radius: 9px; color: #3f5c63; background: white; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }

/* Public tour viewer */
.public-viewer-page { overflow: hidden; color: white; background: #031f25; }
.public-tour { min-height: 100vh; }
.public-loading { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 13px; padding: 24px; background: radial-gradient(circle at 50% 42%, #0d5964, #052f38 48%, #021a1f); text-align: center; }
.public-loading strong { font-size: 16px; }
.public-loading small { color: rgba(255,255,255,.56); }
.tour-viewer-shell { position: fixed; inset: 0; overflow: hidden; }
.tour-panorama { position: absolute; inset: 0; }
.tour-header { position: absolute; z-index: 20; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; min-height: 77px; padding: calc(13px + var(--safe-top)) 20px 13px; background: linear-gradient(rgba(2,25,30,.82), transparent); pointer-events: none; }
.tour-header > * { pointer-events: auto; }
.tour-brand { display: flex; align-items: center; gap: 9px; justify-self: start; }
.tour-brand .brand-orbit { width: 36px; height: 36px; }
.tour-brand .brand-orbit span { font-size: 10px; }
.tour-brand > div:last-child { display: grid; }
.tour-brand b { font-size: 12px; }
.tour-brand small { color: rgba(255,255,255,.56); font-size: 7px; letter-spacing: .14em; }
.tour-title { display: grid; justify-items: center; min-width: 0; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.tour-title strong { max-width: min(520px, 50vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.tour-title small { margin-top: 4px; color: rgba(255,255,255,.66); font-size: 9px; }
.tour-header__actions { display: flex; justify-self: end; gap: 7px; }
.viewer-button, .viewer-controls button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 11px; color: white; background: rgba(3,37,44,.55); backdrop-filter: blur(10px); cursor: pointer; }
.viewer-controls { position: absolute; z-index: 20; right: 18px; top: 50%; display: grid; gap: 6px; transform: translateY(-50%); }
.viewer-controls button { width: 38px; height: 38px; font-size: 17px; }
.viewer-controls button:hover, .viewer-button:hover { background: rgba(11,121,124,.75); }
.scene-drawer { position: absolute; z-index: 22; left: 50%; bottom: calc(16px + var(--safe-bottom)); width: min(760px, calc(100vw - 130px)); transform: translateX(-50%); }
.scene-drawer__toggle { display: none; }
.public-scene-list { display: flex; justify-content: center; gap: 9px; overflow-x: auto; padding: 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; background: rgba(3,31,37,.7); box-shadow: 0 15px 40px rgba(0,0,0,.28); backdrop-filter: blur(14px); scrollbar-width: none; }
.public-scene-list::-webkit-scrollbar { display: none; }
.public-scene { position: relative; display: grid; flex: 0 0 128px; grid-template-rows: 62px auto; overflow: hidden; padding: 0; color: white; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.06); cursor: pointer; text-align: left; }
.public-scene.active { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(98,215,210,.15); }
.public-scene img { width: 100%; height: 62px; object-fit: cover; }
.public-scene span { overflow: hidden; padding: 7px 8px; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.public-watermark { position: absolute; z-index: 18; right: 17px; bottom: 19px; color: rgba(255,255,255,.4); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; }
.viewer-hint { position: absolute; z-index: 18; left: 18px; bottom: 24px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 9px; color: rgba(255,255,255,.72); background: rgba(3,31,37,.52); font-size: 9px; backdrop-filter: blur(8px); animation: hint-fade 6s forwards; }
.preview-banner { position: absolute; z-index: 25; left: 50%; top: calc(80px + var(--safe-top)); padding: 7px 11px; border-radius: 8px; color: #233a14; background: #d8f6b4; box-shadow: var(--shadow); transform: translateX(-50%); font-size: 9px; font-weight: 850; letter-spacing: .05em; }
.public-state-card { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; padding: 30px; color: var(--ink); background: radial-gradient(circle at 50% 25%, #0d5964, #052f38 52%, #021a1f); text-align: center; }
.public-state-card > * { width: min(100%, 420px); }
.public-state-card .brand-orbit { margin: 0 auto 16px; }
.public-state-card h1 { margin: 8px 0 9px; color: white; font-size: 27px; }
.public-state-card p { margin: 0 0 18px; color: rgba(255,255,255,.65); line-height: 1.6; }
.public-state-card form { display: grid; gap: 13px; padding: 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.95); box-shadow: var(--shadow-lg); text-align: left; }
.hotspot-card { position: fixed; z-index: 60; left: 50%; bottom: 120px; width: min(410px, calc(100vw - 32px)); padding: 19px; color: var(--ink); border: 1px solid rgba(255,255,255,.45); border-radius: 17px; background: rgba(255,255,255,.95); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); transform: translateX(-50%); animation: card-up .2s ease; }
.hotspot-card > button, .tour-info-panel > button { position: absolute; top: 10px; right: 10px; width: 31px; height: 31px; border: 0; border-radius: 8px; color: var(--muted); background: #edf3f3; cursor: pointer; font-size: 20px; }
.hotspot-card > span { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: var(--teal-2); background: #e9f7f7; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.hotspot-card h2 { margin: 11px 35px 7px 0; font-size: 18px; }
.hotspot-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 11px; }
.hotspot-card a { margin-top: 14px; }
.tour-info-panel { position: fixed; z-index: 70; top: 0; right: 0; width: min(420px, 100vw); height: 100%; overflow: auto; padding: calc(34px + var(--safe-top)) 28px 34px; color: var(--ink); background: rgba(255,255,255,.97); box-shadow: -16px 0 50px rgba(2,28,34,.25); backdrop-filter: blur(18px); animation: panel-in .2s ease; }
.tour-info-panel h2 { margin: 18px 35px 10px 0; font-size: 25px; }
.tour-info-panel p { color: var(--muted); line-height: 1.7; }
.tour-info-panel #tour-info-meta { display: grid; gap: 9px; margin-top: 20px; }
.tour-info-panel #tour-info-meta div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes card-up { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes panel-in { from { transform: translateX(18px); opacity: 0; } }
@keyframes hint-fade { 0%,65% { opacity: 1; } 100% { opacity: 0; } }

/* Responsive */
@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .editor { grid-template-columns: 220px minmax(300px, 1fr) 285px; }
}
@media (max-width: 980px) {
  :root { --sidebar: 228px; }
  .auth-screen { grid-template-columns: 1fr 390px; }
  .auth-visual__inner { padding-inline: 38px; }
  .auth-copy h1 { font-size: 42px; }
  .auth-feature-row { grid-template-columns: 1fr; gap: 8px; }
  .dashboard-grid, .analytics-grid { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 190px minmax(280px, 1fr) 270px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  :root { --topbar: 65px; }
  .mobile-only { display: inline-grid; }
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; width: min(290px, 84vw); padding-top: calc(24px + var(--safe-top)); }
  .sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .topbar { padding: 0 15px; }
  .breadcrumb span { display: none; }
  .breadcrumb b { font-size: 13px; }
  .topbar__actions .btn b { display: none; }
  .topbar__actions .btn { width: 40px; padding: 0; }
  .page { padding: 20px 15px 35px; }
  .page-head { align-items: flex-start; }
  .welcome-banner { grid-template-columns: 1fr; padding: 25px; }
  .welcome-banner__visual { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { grid-template-columns: repeat(3, 1fr); }
  .settings-nav button { justify-content: center; }
  .settings-nav button span:last-child { display: none; }
  .page--editor { height: calc(100vh - var(--topbar)); padding: 0; }
  .editor { position: relative; display: block; }
  .editor-stage { position: absolute; inset: 0; }
  .editor-panel { position: absolute; z-index: 12; left: 0; right: 0; bottom: 0; max-height: 57%; border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -15px 45px rgba(3,35,42,.25); transform: translateY(105%); transition: transform .22s ease; }
  .editor-panel.mobile-open { transform: translateY(0); }
  .editor-panel__head { min-height: 50px; }
  .editor-panel--right { left: 0; }
  .mobile-editor-tabs { position: absolute; z-index: 14; left: 50%; bottom: calc(12px + var(--safe-bottom)); display: flex; gap: 7px; padding: 6px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(4,34,40,.8); backdrop-filter: blur(12px); transform: translateX(-50%); }
  .mobile-editor-tabs button { height: 36px; padding: 0 12px; color: white; border: 0; border-radius: 9px; background: transparent; font-size: 10px; font-weight: 750; }
  .mobile-editor-tabs button.active { background: var(--teal-2); }
  .editor-status { bottom: 65px; }
  .editor-coordinates { bottom: 65px; }
  .editor-toolbar { top: 10px; max-width: calc(100% - 18px); overflow-x: auto; justify-content: start; }
  .editor-toolbar button { flex: 0 0 auto; }
}
@media (max-width: 650px) {
  .auth-screen { display: block; min-height: 100vh; background: linear-gradient(180deg, #063b45 0 190px, white 190px); }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; align-items: start; padding: calc(28px + var(--safe-top)) 20px 30px; }
  .auth-panel__body { width: 100%; }
  .mobile-brand { display: flex; height: 100px; color: white; }
  .auth-form { padding: 24px 20px; border-radius: 20px; background: white; box-shadow: var(--shadow); }
  .field-row { grid-template-columns: 1fr; }
  .page-head { display: grid; }
  .page-head__actions { width: 100%; }
  .page-head__actions .btn { flex: 1; }
  .stat-grid { gap: 10px; }
  .stat-card { grid-template-columns: 37px 1fr; gap: 9px; padding: 13px; }
  .stat-card__icon { width: 37px; height: 37px; }
  .stat-card b { font-size: 19px; }
  .stat-card small { font-size: 9px; }
  .card-grid, .media-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { max-width: none; }
  .toolbar__filters { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar select { width: 100%; min-width: 0; }
  .publish-summary { grid-template-columns: 1fr; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .modal--wide, .modal--xl { width: 100%; }
  .tour-header { grid-template-columns: 1fr auto; padding-inline: 12px; }
  .tour-title { position: absolute; top: calc(72px + var(--safe-top)); left: 50%; width: calc(100% - 110px); transform: translateX(-50%); }
  .tour-title strong { max-width: 100%; }
  .viewer-controls { right: 10px; }
  .scene-drawer { left: 10px; right: 10px; bottom: calc(10px + var(--safe-bottom)); width: auto; transform: none; }
  .scene-drawer__toggle { display: flex; width: 100%; height: 43px; align-items: center; justify-content: space-between; padding: 0 13px; color: white; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(3,31,37,.78); backdrop-filter: blur(12px); }
  .scene-drawer__toggle span { font-size: 11px; font-weight: 800; }
  .scene-drawer__toggle b { margin-left: auto; margin-right: 9px; color: var(--cyan); }
  .scene-drawer.open .scene-drawer__toggle { border-radius: 12px 12px 0 0; }
  .scene-drawer.open .scene-drawer__toggle i { transform: rotate(180deg); }
  .public-scene-list { display: none; justify-content: start; padding: 8px; border-radius: 0 0 12px 12px; }
  .scene-drawer.open .public-scene-list { display: flex; }
  .public-scene { flex-basis: 112px; grid-template-rows: 55px auto; }
  .public-scene img { height: 55px; }
  .public-watermark { right: 12px; bottom: 66px; }
  .viewer-hint { bottom: 66px; }
  .hotspot-card { bottom: calc(72px + var(--safe-bottom)); }
  .settings-nav { overflow-x: auto; grid-template-columns: repeat(5, minmax(94px, 1fr)); }
  .server-check { grid-template-columns: 24px 1fr; }
  .server-check small { grid-column: 2; }
}
@media (max-width: 430px) {
  .page { padding-inline: 12px; }
  .topbar { padding-inline: 10px; }
  .welcome-banner { padding: 22px 19px; }
  .welcome-banner h1 { font-size: 27px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { display: block; }
  .stat-card__icon { margin-bottom: 10px; }
  .recent-row { grid-template-columns: 64px minmax(0,1fr); }
  .recent-thumb { width: 64px; }
  .recent-row > .status-pill { display: none; }
  .editor-toolbar button span:last-child { display: none; }
  .editor-toolbar button { width: 35px; padding: 0; justify-content: center; }
  .editor-coordinates { display: none; }
}
