:root{--bg:#f5f7fa;--panel:#fff;--text:#172033;--muted:#687286;--line:#dfe4ec;--accent:#2563eb;--accent2:#1d4ed8;--danger:#c62828;--shadow:0 12px 28px rgba(18,30,55,.10);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{font-size:15px}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}.brand{font-weight:800;color:var(--text);text-decoration:none;letter-spacing:-.02em}.brand small{font-weight:600;color:var(--muted);margin-left:.35rem}.public-header,.admin-header{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 max(24px,5vw);justify-content:space-between}.header-actions{display:flex;align-items:center;gap:10px}.header-actions form{margin:0}.public-shell{max-width:1180px;margin:auto;padding:72px 28px}.hero-copy{max-width:700px;margin-bottom:44px}.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:800;color:#66758d}.hero-copy h1,.dashboard-title h1,.auth-card h1{font-size:clamp(34px,4vw,58px);line-height:1.02;letter-spacing:-.045em;margin:12px 0 14px}.hero-copy p,.dashboard-title p,.auth-card p{color:var(--muted);line-height:1.65}.model-grid,.admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:22px}.model-card,.admin-model-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.model-cover,.admin-cover{aspect-ratio:16/9;background:#e9edf4;display:grid;place-items:center;overflow:hidden}.model-cover img,.admin-cover img{width:100%;height:100%;object-fit:cover}.cover-placeholder,.admin-cover span{font-size:36px;font-weight:800;color:#97a3b7}.model-card-body,.admin-model-meta{padding:20px}.model-card h2,.admin-model-card h2{margin:4px 0;font-size:21px;letter-spacing:-.02em}.model-card p,.admin-model-card p{color:var(--muted);margin:6px 0 18px}.button{border:0;border-radius:10px;min-height:42px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:750;text-decoration:none;cursor:pointer;transition:.15s ease}.button.primary{background:var(--accent);color:white}.button.primary:hover{background:var(--accent2)}.button.secondary{background:#eef2f7;color:#273249}.button.ghost{background:transparent;color:#3d4960;border:1px solid var(--line)}.button.danger{background:#fff0f0;color:#a81d1d;border:1px solid #f2cccc}.button.compact{min-height:36px;padding:0 12px;font-size:13px}.button.full{width:100%;margin-top:8px}.is-disabled{opacity:.45;pointer-events:none}.text-link{color:var(--accent);text-decoration:none}.empty-state{padding:28px;background:#fff;border:1px dashed #cbd3df;border-radius:14px;color:var(--muted)}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(440px,100%);background:white;border:1px solid var(--line);border-radius:20px;padding:32px;box-shadow:var(--shadow)}.auth-card h1{font-size:34px}.auth-card label,.modal label,.inspector label,.scene-inspector label{display:grid;gap:7px;font-weight:700;font-size:12px;color:#445067;margin:16px 0}.auth-card input,.modal input,.inspector input,.inspector select,.inspector textarea,.scene-inspector input{width:100%;border:1px solid #cfd6e1;background:#fff;border-radius:9px;min-height:42px;padding:9px 11px;color:var(--text);outline:none}.auth-card input:focus,.modal input:focus,.inspector input:focus,.inspector select:focus,.inspector textarea:focus,.scene-inspector input:focus{border-color:#7aa2fa;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.auth-card .button{width:100%;margin:8px 0 16px}.dashboard{max-width:1200px;margin:auto;padding:54px 28px}.dashboard-title{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:34px}.dashboard-title h1{font-size:42px}.dashboard-title p{margin-bottom:0}.admin-model-card{display:flex;flex-direction:column}.model-status{display:inline-flex;width:max-content;font-size:11px;font-weight:800;border-radius:999px;padding:5px 9px;margin-bottom:6px}.model-status.published{background:#e7f8ee;color:#147a3e}.model-status.draft{background:#eef1f5;color:#596476}.card-actions{display:flex;gap:8px;flex-wrap:wrap}.flash-stack{position:fixed;top:16px;right:16px;z-index:10000;display:grid;gap:8px}.flash{background:#fff;border:1px solid var(--line);padding:12px 16px;border-radius:10px;box-shadow:var(--shadow)}.flash.error{border-color:#f0c3c3;color:#a91e1e}.modal{border:0;border-radius:18px;padding:0;width:min(520px,calc(100% - 32px));box-shadow:0 30px 70px rgba(0,0,0,.25)}.modal::backdrop{background:rgba(10,18,31,.55)}.modal form{padding:24px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start}.modal-head h2{margin:5px 0;font-size:26px}.icon-button{border:0;background:#eff2f6;border-radius:9px;width:38px;height:38px;font-size:23px;cursor:pointer}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.form-error{color:#b42318;font-size:13px;min-height:18px}

/* Editor */
.editor-page{overflow:hidden;background:#10141b}.editor-app{height:100vh;display:grid;grid-template-columns:250px minmax(0,1fr) 310px;grid-template-rows:58px minmax(0,1fr);grid-template-areas:"top top top" "left view right";background:#111720}.editor-topbar{grid-area:top;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:0 12px;z-index:20}.editor-back{width:34px;height:34px;display:grid;place-items:center;text-decoration:none;color:#374157;border-radius:8px;background:#f1f3f7;font-size:20px}.property-name-input{font-size:15px;font-weight:800;border:1px solid transparent;border-radius:8px;padding:7px 9px;min-width:190px;max-width:310px}.property-name-input:focus{outline:0;border-color:#cad3e2;background:#f8fafc}.mode-switch{display:flex;background:#eef1f5;border-radius:9px;padding:3px;margin-left:auto}.mode-switch button{border:0;background:transparent;border-radius:7px;padding:7px 12px;color:#657187;font-weight:700;cursor:pointer}.mode-switch button.active{background:white;color:#1f2b42;box-shadow:0 1px 4px rgba(0,0,0,.08)}.save-state{font-size:12px;color:#3f7b54;min-width:78px}.editor-top-actions{display:flex;gap:6px;align-items:center}.editor-sidebar{background:#fff;z-index:10;overflow:auto}.editor-sidebar.left{grid-area:left;border-right:1px solid var(--line);padding:14px 12px}.editor-sidebar.right{grid-area:right;border-left:1px solid var(--line);padding:16px 14px}.panel-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.12em;font-weight:850;color:#59677d;margin:4px 3px 10px}.panel-heading small{letter-spacing:0;font-weight:600;color:#a0a9b8}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tool-card{border:1px solid #dde3ec;background:#fbfcfe;border-radius:11px;min-height:90px;padding:10px 8px;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;cursor:grab}.tool-card:hover,.tool-card.active{border-color:#7aa2fa;background:#f3f7ff}.tool-icon{height:29px;min-width:29px;border-radius:8px;background:#edf2f9;display:grid;place-items:center;font-size:15px;font-weight:900;color:#43516a;margin-bottom:4px}.tool-card strong{font-size:12px}.tool-card small{font-size:10px;color:#818b9c}.scenes-section{border-top:1px solid var(--line);margin-top:18px;padding-top:15px}.mini-action{border:0;background:transparent;color:var(--accent);font-size:11px;font-weight:800;cursor:pointer}.scene-list{display:grid;gap:6px}.scene-row{border:1px solid transparent;background:#f6f8fb;border-radius:9px;padding:8px;display:grid;grid-template-columns:42px 1fr;gap:9px;align-items:center;cursor:pointer;text-align:left}.scene-row.active{background:#edf4ff;border-color:#a9c4ff}.scene-row img{width:42px;height:30px;object-fit:cover;border-radius:5px}.scene-row strong{font-size:12px;display:block}.scene-row small{font-size:10px;color:var(--muted)}.editor-viewport{grid-area:view;position:relative;min-width:0;overflow:hidden;background:#0c1118}.editor-viewport a-scene,.tour-app a-scene{display:block;width:100%;height:100%;position:relative}.editor-viewport .a-canvas,.tour-app .a-canvas{outline:none}.viewer-loading,.tour-loading{position:absolute;inset:0;z-index:15;background:#111720;color:white;display:flex;align-items:center;justify-content:center;gap:11px}.viewer-loading.is-hidden,.tour-loading.is-hidden{opacity:0;pointer-events:none;transition:opacity .25s}.spinner{width:25px;height:25px;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.placement-hint{position:absolute;z-index:8;top:16px;left:50%;transform:translateX(-50%);background:rgba(13,19,30,.88);color:#fff;padding:9px 14px;border-radius:9px;font-size:12px;pointer-events:none}.area-toolbar{position:absolute;z-index:8;top:16px;left:50%;transform:translateX(-50%);background:#fff;border-radius:10px;padding:6px;display:flex;gap:6px;align-items:center;box-shadow:var(--shadow)}.area-toolbar[hidden]{display:none}.area-toolbar button{border:0;border-radius:7px;background:#eff2f7;padding:7px 10px;cursor:pointer;font-size:11px;font-weight:700}.area-toolbar .primary-mini{background:var(--accent);color:white}.area-toolbar span{font-size:11px;color:var(--muted);padding:0 6px}.viewer-controls{position:absolute;right:14px;bottom:14px;display:flex;gap:6px;z-index:8}.viewer-controls button{width:38px;height:38px;border:0;border-radius:9px;background:rgba(255,255,255,.94);box-shadow:0 4px 12px rgba(0,0,0,.16);font-size:17px;cursor:pointer}.inspector-empty{text-align:center;color:var(--muted);padding:70px 10px 24px}.empty-icon{font-size:34px}.inspector-empty h3{color:#354157;margin-bottom:7px}.inspector-empty p{font-size:12px;line-height:1.5}.inspector-title{display:flex;justify-content:space-between;align-items:start}.inspector-title h2{font-size:19px;margin:5px 0 12px}.danger-icon{border:0;background:#fff1f1;color:#a62121;border-radius:8px;width:36px;height:36px;cursor:pointer}.inspector label,.scene-inspector label{margin:11px 0}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.subheading{font-size:10px;letter-spacing:.12em;font-weight:850;color:#607087;border-top:1px solid var(--line);padding-top:14px;margin-top:15px}.field-help{font-size:11px;line-height:1.45;color:#8791a2}.scene-inspector{margin-top:18px}.scene-inspector .subheading{margin-bottom:12px}.toast{position:fixed;z-index:10001;bottom:22px;left:50%;transform:translate(-50%,20px);background:#111827;color:white;padding:10px 14px;border-radius:9px;opacity:0;pointer-events:none;transition:.2s;box-shadow:var(--shadow);font-size:13px}.toast.show{opacity:1;transform:translate(-50%,0)}.editor-app.preview{grid-template-columns:0 minmax(0,1fr) 0}.editor-app.preview .editor-sidebar{visibility:hidden}.editor-app.preview #saveViewButton,.editor-app.preview #publishButton{display:none}.editor-app.preview #editorVrButton{display:inline-flex!important}.editor-app.preview .tool-card{pointer-events:none}

/* Public tour */
.tour-page{overflow:hidden;background:#0b1018}.tour-app{height:100vh;display:grid;grid-template-rows:56px minmax(0,1fr);position:relative}.tour-header{background:rgba(255,255,255,.97);display:flex;align-items:center;padding:0 14px;gap:14px;z-index:10;border-bottom:1px solid var(--line)}.tour-header strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tour-back{text-decoration:none;color:#526079;font-weight:700;font-size:13px}.tour-actions{margin-left:auto;display:flex;gap:7px}.tour-scene-nav{position:absolute;z-index:8;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:7px;max-width:calc(100% - 32px);overflow-x:auto;padding:6px;background:rgba(15,22,34,.72);backdrop-filter:blur(10px);border-radius:12px}.tour-scene-nav button{border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.09);color:white;border-radius:8px;min-height:36px;padding:0 11px;white-space:nowrap;cursor:pointer}.tour-scene-nav button.active{background:white;color:#1d293d}.tour-loading{top:56px}

@media(max-width:900px){.public-shell{padding:42px 18px}.dashboard-title{align-items:flex-start;flex-direction:column}.editor-app{grid-template-columns:210px minmax(0,1fr);grid-template-areas:"top top" "left view"}.editor-sidebar.right{display:none}.editor-top-actions .button.ghost{display:none}.property-name-input{max-width:180px}.mode-switch{margin-left:auto}.save-state{display:none}}@media(max-width:650px){.public-header{padding:0 18px}.public-shell{padding-top:34px}.model-grid{grid-template-columns:1fr}.editor-page{overflow:auto}.editor-app{height:auto;min-height:100vh;display:block}.editor-topbar{position:sticky;top:0;height:auto;min-height:58px;flex-wrap:wrap;padding:8px}.editor-sidebar.left{display:none}.editor-viewport{height:calc(100vh - 72px)}.mode-switch{order:3;width:100%;justify-content:center}.tour-header strong{display:none}.tour-actions .secondary{display:none}}

/* Inspector range controls: live size/opacity editing. */
.range-control-group{display:grid;gap:12px;margin:11px 0 14px}.inspector label.range-control{margin:0;gap:7px}.range-control-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.range-control-head output{min-width:48px;text-align:right;color:#1f2b42;font-variant-numeric:tabular-nums;font-size:12px;font-weight:800}.inspector input.inspector-range{appearance:auto;width:100%;min-height:26px;height:26px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;accent-color:var(--accent);cursor:pointer}.inspector input.inspector-range:focus{border:0;box-shadow:none;outline:2px solid rgba(37,99,235,.18);outline-offset:2px}.inspector input.inspector-range:disabled{opacity:.55;cursor:not-allowed}

/* Ambient music controls in the admin editor. */
.music-inspector{padding-bottom:8px}.music-file-status{margin:2px 0 10px;color:var(--muted);font-size:11px;line-height:1.4;overflow-wrap:anywhere}.scene-inspector label.music-check{display:flex;align-items:center;gap:9px;margin:12px 0;font-size:12px;color:#445067;cursor:pointer}.scene-inspector label.music-check input{width:17px;height:17px;min-height:0;margin:0;padding:0;accent-color:var(--accent)}.scene-inspector label.music-check span{font-weight:700}.scene-inspector label.music-volume{display:grid;gap:7px;margin:12px 0}.scene-inspector input.inspector-range{appearance:auto;width:100%;min-height:26px;height:26px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;accent-color:var(--accent);cursor:pointer}.scene-inspector input.inspector-range:focus{border:0;box-shadow:none;outline:2px solid rgba(37,99,235,.18);outline-offset:2px}.scene-inspector input.inspector-range:disabled{opacity:.55;cursor:not-allowed}


/* =========================================================
   Sferia360 · identidad monocromática elegante
   Paleta: #0B0B0F #1F1F24 #2E2E34 #4A4A50 #A1A1AA #E5E5E7
   ========================================================= */
:root{
  --bg:#0B0B0F;
  --panel:#1F1F24;
  --surface:#2E2E34;
  --text:#F4F4F5;
  --muted:#A1A1AA;
  --line:#3D3D44;
  --accent:#E5E5E7;
  --accent2:#FFFFFF;
  --danger:#E06464;
  --danger-bg:#2A1719;
  --success:#79C28D;
  --shadow:0 18px 42px rgba(0,0,0,.34);
  color-scheme:dark;
}
html,body{background:var(--bg);color:var(--text)}
body{
  background:
    radial-gradient(circle at 78% -10%,rgba(255,255,255,.055),transparent 32%),
    radial-gradient(circle at 15% 110%,rgba(255,255,255,.035),transparent 30%),
    var(--bg);
}
::selection{background:#D8D8DC;color:#0B0B0F}
a{color:inherit}
.brand{color:var(--text)}
.brand small{color:#7F7F89}
.brand-lockup{display:inline-flex;align-items:center;gap:10px;min-width:0}
.brand-mark{width:38px;height:38px;object-fit:contain;flex:0 0 auto}
.brand-word{font-size:20px;line-height:1;font-weight:850;letter-spacing:-.045em;color:#F4F4F5}
.brand-word>span{color:#9A9AA3;font-weight:720}
.public-header,.admin-header{
  height:68px;
  background:rgba(11,11,15,.92);
  border-bottom:1px solid #2B2B31;
  backdrop-filter:blur(16px);
  padding:0 max(24px,5vw);
}
.public-header-note{
  color:#777781;
  font-size:10px;
  font-weight:750;
  letter-spacing:.16em;
  white-space:nowrap;
}
.public-shell{
  max-width:1180px;
  position:relative;
  isolation:isolate;
  padding:76px 28px 34px;
}
.public-shell::before{
  content:"";
  position:absolute;
  z-index:-2;
  width:520px;
  height:520px;
  right:-110px;
  top:10px;
  border:1px solid rgba(229,229,231,.08);
  border-radius:50%;
  box-shadow:
    inset 0 0 0 72px rgba(255,255,255,.012),
    inset 0 0 0 145px rgba(255,255,255,.008);
  opacity:.72;
  pointer-events:none;
}
.public-shell::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:330px;
  height:330px;
  right:-10px;
  top:112px;
  background:url("../img/sferia360-mark.png") center/contain no-repeat;
  opacity:.045;
  filter:grayscale(1);
  pointer-events:none;
}
.hero-copy{max-width:740px;margin-bottom:46px}
.eyebrow{color:#A6A6AF;letter-spacing:.18em}
.hero-copy h1,.dashboard-title h1,.auth-card h1{
  color:#F5F5F6;
  letter-spacing:-.05em;
}
.hero-copy h1{font-size:clamp(38px,4.8vw,64px);line-height:.98}
.hero-accent{color:#AFAFB7}
.hero-copy p,.dashboard-title p,.auth-card p{color:#94949E}
.hero-copy p{max-width:650px;font-size:15px}
.hero-copy strong{color:#D4D4D8}
.model-grid,.admin-grid{gap:20px}
.model-card,.admin-model-card{
  background:linear-gradient(180deg,#18181D,#121216);
  border:1px solid #313138;
  border-radius:16px;
  box-shadow:0 12px 30px rgba(0,0,0,.16);
  transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
@media (hover:hover) and (pointer:fine){
  .model-card:hover,.admin-model-card:hover{
    border-color:#52525B;
    transform:translateY(-2px);
    box-shadow:0 18px 42px rgba(0,0,0,.24);
  }
}
.model-cover,.admin-cover{background:#17171C;border-bottom:1px solid #2B2B31}
.model-cover img,.admin-cover img{filter:saturate(.92) contrast(1.02)}
.cover-placeholder,.admin-cover span{color:#777781}
.model-card-body,.admin-model-meta{padding:18px 18px 19px}
.model-card h2,.admin-model-card h2{color:#F4F4F5;font-size:19px}
.model-card p,.admin-model-card p{color:#8B8B95;margin:5px 0 16px}
.button{
  border:1px solid transparent;
  border-radius:9px;
  font-weight:780;
  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .12s ease;
}
.button:active{transform:translateY(1px)}
.button.primary{background:#E5E5E7;color:#111115;border-color:#F0F0F1}
.button.primary:hover{background:#FFFFFF;color:#09090B}
.button.secondary{background:#29292F;color:#ECECEF;border-color:#3B3B43}
.button.secondary:hover{background:#34343B;border-color:#4B4B54}
.button.ghost{background:#151519;color:#D1D1D6;border-color:#3A3A42}
.button.ghost:hover{background:#202026;border-color:#52525B}
.button.danger{background:#2B171A;color:#F19797;border-color:#5E2A30}
.button.danger:hover{background:#351A1E;border-color:#7A333B}
.text-link{color:#CACAD0}
.text-link:hover{color:#FFF}
.empty-state{
  background:#151519;
  border:1px dashed #3C3C44;
  color:#96969F;
}
.public-footer{
  margin-top:56px;
  padding:20px 0 8px;
  border-top:1px solid #24242A;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:#71717A;
  font-size:11px;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.brand-footer .brand-mark{width:28px;height:28px}
.brand-footer .brand-word{font-size:16px}

/* Auth */
.auth-page{
  background:
    radial-gradient(circle at 50% -10%,rgba(255,255,255,.08),transparent 34%),
    #0B0B0F;
}
.auth-card{
  background:linear-gradient(180deg,#17171C,#111115);
  border:1px solid #35353C;
  box-shadow:0 28px 70px rgba(0,0,0,.42);
}
.auth-brand{margin-bottom:28px}
.auth-brand .brand-mark{width:48px;height:48px}
.auth-brand .brand-word{font-size:26px}
.auth-card label,.modal label,.inspector label,.scene-inspector label{color:#B7B7BF}
.auth-card input,.modal input,.inspector input,.inspector select,.inspector textarea,.scene-inspector input{
  border-color:#3A3A42;
  background:#121216;
  color:#F1F1F2;
}
.auth-card input:focus,.modal input:focus,.inspector input:focus,.inspector select:focus,.inspector textarea:focus,.scene-inspector input:focus{
  border-color:#777781;
  box-shadow:0 0 0 3px rgba(229,229,231,.09);
}
.auth-card input::placeholder,.modal input::placeholder,.inspector input::placeholder{color:#696973}

/* Dashboard */
.dashboard{position:relative}
.dashboard-title h1{font-size:44px}
.model-status.published{background:#17241B;color:#88D29B}
.model-status.draft{background:#29292F;color:#A5A5AD}
.card-actions{gap:8px}
.flash{
  background:#1D1D22;
  border-color:#404048;
  color:#EFEFF0;
  box-shadow:var(--shadow);
}
.flash.error{background:#2A1719;border-color:#663139;color:#F5A6A6}

/* Dialogs */
.modal{
  color:var(--text);
  background:#17171C;
  border:1px solid #36363D;
  box-shadow:0 32px 80px rgba(0,0,0,.55);
}
.modal::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}
.modal-head h2{color:#F5F5F6}
.icon-button{background:#29292F;color:#D6D6DA;border:1px solid #3A3A42}
.form-error{color:#F08C8C}

/* Editor */
.editor-page{background:#08080B}
.editor-app{
  background:#0A0A0D;
  grid-template-columns:250px minmax(0,1fr) 310px;
  grid-template-rows:60px minmax(0,1fr);
}
.editor-topbar{
  background:#101014;
  border-bottom:1px solid #2D2D33;
  color:#F2F2F3;
  padding:0 12px;
}
.editor-back{
  color:#D7D7DB;
  background:#202025;
  border:1px solid #303038;
}
.editor-back:hover{background:#2A2A30}
.editor-brand{
  display:flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color:#EFEFF1;
  flex:0 0 auto;
}
.editor-brand img{width:29px;height:29px;object-fit:contain}
.editor-brand span{font-size:14px;font-weight:850;letter-spacing:-.04em}
.editor-brand em{font-style:normal;color:#92929C;font-weight:700}
.topbar-divider{width:1px;height:24px;background:#313138;flex:0 0 auto}
.property-name-input{
  color:#F0F0F2;
  background:transparent;
  border-color:transparent;
  min-width:165px;
}
.property-name-input:hover{background:#17171C}
.property-name-input:focus{border-color:#44444C;background:#17171C}
.mode-switch{background:#202025}
.mode-switch button{color:#8D8D97}
.mode-switch button.active{background:#34343B;color:#F4F4F5;box-shadow:none}
.save-state{color:#7FC28E}
.editor-sidebar{background:#101014;color:#E8E8EA}
.editor-sidebar.left{border-right:1px solid #2B2B31}
.editor-sidebar.right{border-left:1px solid #2B2B31}
.panel-heading{color:#8E8E98}
.panel-heading small{color:#666670}
.tool-card{
  border-color:#2E2E35;
  background:#17171C;
  color:#EDEDEF;
}
.tool-card:hover,.tool-card.active{border-color:#62626C;background:#24242A}
.tool-icon{background:#29292F;color:#DADADF}
.tool-card small{color:#7E7E88}
.scenes-section{border-top-color:#29292F}
.mini-action{color:#C8C8CE}
.scene-row{background:#17171C;color:#E7E7E9}
.scene-row:hover{background:#202026}
.scene-row.active{background:#2B2B31;border-color:#62626A}
.scene-row small{color:#85858E}
.editor-viewport{background:#050507}
.viewer-loading,.tour-loading{background:#0B0B0F;color:#F2F2F3}
.spinner{border-color:rgba(255,255,255,.16);border-top-color:#EAEAEC}
.placement-hint{background:rgba(11,11,15,.92);border:1px solid #36363D}
.area-toolbar{background:#17171C;border:1px solid #35353D;box-shadow:var(--shadow)}
.area-toolbar button{background:#2A2A30;color:#E4E4E7}
.area-toolbar .primary-mini{background:#E5E5E7;color:#0B0B0F}
.area-toolbar span{color:#9A9AA3}
.viewer-controls button{
  background:rgba(20,20,24,.9);
  color:#F2F2F3;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 6px 16px rgba(0,0,0,.3);
  backdrop-filter:blur(10px);
}
.viewer-controls button:hover{background:#29292F}
.inspector-empty{color:#80808A}
.inspector-empty h3{color:#E0E0E3}
.inspector-title h2{color:#F3F3F4}
.danger-icon{background:#2B171A;color:#F09696;border:1px solid #5A292E}
.subheading{color:#8E8E98;border-top-color:#29292F}
.field-help{color:#777781}
.inspector-advanced{color:#AFAFB6}
.inspector-advanced summary{cursor:pointer;color:#C5C5CB}
.toast{background:#E5E5E7;color:#0D0D11;box-shadow:var(--shadow)}
.range-control-head output{color:#D8D8DC}
.inspector input.inspector-range,.scene-inspector input.inspector-range{accent-color:#DADADC}
.inspector input.inspector-range:focus,.scene-inspector input.inspector-range:focus{
  outline-color:rgba(229,229,231,.22);
}
.music-file-status{color:#81818B}
.scene-inspector label.music-check{color:#B8B8C0}
.scene-inspector label.music-check input{accent-color:#DADADC}

/* Public tour */
.tour-page{background:#050507}
.tour-app{grid-template-rows:58px minmax(0,1fr)}
.tour-header{
  background:rgba(12,12,16,.94);
  color:#EFEFF1;
  border-bottom:1px solid #2B2B31;
  backdrop-filter:blur(14px);
}
.tour-back{
  color:#CFCFD4;
  background:#202025;
  border:1px solid #303038;
  border-radius:8px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  font-size:17px;
}
.tour-brand{display:flex;align-items:center;gap:6px;text-decoration:none;color:#EEE}
.tour-brand img{width:28px;height:28px;object-fit:contain}
.tour-brand span{font-size:14px;font-weight:850;letter-spacing:-.04em}
.tour-brand em{font-style:normal;color:#92929C;font-weight:700}
.tour-divider{width:1px;height:22px;background:#303038}
.tour-header strong{color:#E9E9EB}
.tour-scene-nav{
  background:rgba(10,10,14,.76);
  border:1px solid rgba(255,255,255,.12);
}
.tour-scene-nav button{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.13);color:#E7E7EA}
.tour-scene-nav button.active{background:#E5E5E7;color:#111115;border-color:#E5E5E7}
.tour-loading{top:58px}

@media(max-width:900px){
  .public-header-note{display:none}
  .editor-brand span{display:none}
  .topbar-divider{display:none}
}
@media(max-width:650px){
  .brand-mark{width:34px;height:34px}
  .brand-word{font-size:18px}
  .public-shell::before,.public-shell::after{display:none}
  .public-footer{align-items:flex-start;flex-direction:column}
  .editor-brand{display:none}
  .tour-brand span,.tour-divider{display:none}
  .tour-brand img{width:30px;height:30px}
}

/* ===== Sferia360 landing, login and user dashboard refresh ===== */
body.landing-page,
body.sferia-login-page,
body.user-dashboard-page{
  background:
    radial-gradient(circle at 50% -12%, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(180deg, rgba(28,28,33,.16), rgba(11,11,15,.1)),
    #0B0B0F;
  color:#E5E5E7;
}
body.landing-page::before,
body.sferia-login-page::before,
body.user-dashboard-page::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,.015) 20%, transparent 40%, rgba(255,255,255,.015) 62%, transparent 100%);
  opacity:.5;
}
.landing-header{
  position:sticky;top:0;z-index:30;
  height:92px;display:flex;align-items:center;justify-content:space-between;
  gap:18px;padding:0 clamp(28px,4vw,42px);
  background:rgba(8,8,11,.84);backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.landing-brand{display:flex;align-items:center;gap:12px;color:#F3F3F4;min-width:240px}
.landing-brand .brand-mark{width:54px;height:54px;object-fit:contain}
.landing-brand .brand-word{font-size:31px;line-height:1}
.landing-brand small{display:block;color:#8A8A92;margin:4px 0 0;font-size:9px;letter-spacing:.35em;text-transform:uppercase}
.landing-nav{display:flex;align-items:center;gap:34px;justify-content:center;flex:1}
.landing-nav a{color:#A3A3AB;text-decoration:none;font-weight:600;position:relative;padding:10px 0}
.landing-nav a.active,.landing-nav a:hover{color:#FFFFFF}
.landing-nav a.active::after,.landing-nav a:hover::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:99px;background:#E5E5E7}
.landing-header-actions{display:flex;align-items:center;gap:14px;min-width:240px;justify-content:flex-end}
.landing-search{width:40px;height:40px;border:1px solid rgba(255,255,255,.12);border-radius:999px;display:grid;place-items:center;text-decoration:none;color:#ECECEE;background:rgba(255,255,255,.03)}
.landing-top-button{min-width:118px}
.landing-main{max-width:1680px;margin:0 auto;padding:26px 30px 40px}
.landing-hero{text-align:center;padding-top:14px}
.landing-overline{font-size:13px;letter-spacing:.42em;color:#9797A1;margin:0 0 18px}
.landing-hero h1{margin:0;font-size:clamp(56px,6vw,96px);line-height:.92;letter-spacing:-.055em;color:#FBFBFC}
.landing-lead{margin:22px auto 0;max-width:860px;color:#A5A5AE;font-size:18px;line-height:1.6}
.landing-cta{margin-top:28px;min-width:186px;height:58px;font-size:22px;border-radius:18px}
.landing-mini-copy{margin-top:18px;color:#8C8C95;letter-spacing:.2em;text-transform:uppercase;font-size:13px}
.hero-gallery{margin-top:28px;display:grid;grid-template-columns:1.1fr .8fr 1.5fr .8fr 1.1fr;gap:24px;align-items:end}
.hero-panel{position:relative;border:1px solid rgba(255,255,255,.08);border-radius:26px;background:rgba(255,255,255,.02);overflow:hidden;box-shadow:0 18px 44px rgba(0,0,0,.34)}
.hero-panel-media{min-height:360px;background:linear-gradient(180deg,#24242B,#131318);background-size:cover;background-position:center;filter:saturate(.85) brightness(.82)}
.hero-panel-media.placeholder::after,.welcome-hero-image::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02)), radial-gradient(circle at center, rgba(255,255,255,.08), transparent 55%)}
.hero-panel-side{min-height:470px;display:flex;align-items:flex-end}
.hero-panel-mid.small{transform:translateY(40px)}
.hero-panel-mid .hero-panel-media{min-height:320px}
.hero-panel-center .hero-panel-media{min-height:390px}
.hero-panel-copy,.hero-panel-tag{position:absolute;left:22px;right:22px;bottom:24px;text-align:left;color:#D7D7DB;font-size:14px;line-height:1.8;letter-spacing:.08em;text-transform:uppercase;text-shadow:0 2px 16px rgba(0,0,0,.55)}
.hero-panel-tag{text-align:right;left:auto;width:auto}
.hero-360-ring{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:170px;height:92px;border:2px solid rgba(255,255,255,.7);border-radius:50%;display:grid;place-items:center;color:#FFF;font-size:40px;font-weight:800;letter-spacing:-.04em;background:rgba(0,0,0,.16);backdrop-filter:blur(4px);box-shadow:0 0 0 14px rgba(255,255,255,.05)}
.landing-features{margin-top:44px;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.landing-feature-card{padding:26px;border-radius:22px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.012));text-align:left;box-shadow:0 12px 30px rgba(0,0,0,.24)}
.landing-feature-icon{font-size:34px;color:#EFEFF2;line-height:1;margin-bottom:14px}
.landing-feature-card h2{margin:0 0 10px;font-size:32px;letter-spacing:-.04em;color:#FAFAFB}
.landing-feature-card p{margin:0;color:#A1A1AA;line-height:1.7}
.landing-footer-copy{margin:36px auto 0;text-align:center;color:#7A7A83;font-size:12px;letter-spacing:.42em;padding-top:22px;border-top:1px solid rgba(255,255,255,.06);max-width:760px}

.sferia-login-shell{min-height:100vh;display:grid;place-items:center;position:relative;padding:42px}
.sferia-login-shell::before,
.sferia-login-shell::after{content:"";position:absolute;border:1px solid rgba(255,255,255,.09);border-radius:50%;pointer-events:none}
.sferia-login-shell::before{left:-180px;bottom:-240px;width:920px;height:920px;box-shadow:inset 0 0 0 72px rgba(255,255,255,.018)}
.sferia-login-shell::after{right:-140px;top:-140px;width:720px;height:720px;box-shadow:inset 0 0 0 58px rgba(255,255,255,.018)}
.sferia-login-card-wrap{width:min(100%,560px);position:relative;z-index:1}
.sferia-login-card{padding:44px 42px 34px;border-radius:28px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(180deg,rgba(24,24,29,.92),rgba(13,13,17,.94));box-shadow:0 26px 72px rgba(0,0,0,.42);text-align:center}
.login-brand-center{display:flex;flex-direction:column;gap:14px;align-items:center;color:#FAFAFB}
.login-brand-center .brand-mark{width:92px;height:92px;object-fit:contain}
.login-brand-center .brand-word{font-size:58px;letter-spacing:-.055em}
.login-tagline{margin:0;color:#A0A0A8;font-size:12px;letter-spacing:.42em}
.sferia-login-card h1{margin:28px 0 10px;font-size:58px;letter-spacing:-.05em;color:#FFFFFF;line-height:1}
.login-subtitle{margin:0 0 24px;color:#A2A2AB;line-height:1.55;font-size:16px}
.sferia-field{display:block;position:relative;margin-top:16px}
.sferia-field input{width:100%;height:74px;border-radius:18px;border:1px solid rgba(255,255,255,.1);background:rgba(15,15,18,.7);color:#F4F4F5;padding:0 62px;font-size:18px;outline:none}
.sferia-field input::placeholder{color:#8A8A93}
.sferia-field input:focus{border-color:#74747D;box-shadow:0 0 0 4px rgba(229,229,231,.08)}
.field-icon,.field-toggle{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;color:#D7D7DB}
.field-icon{left:22px;font-size:22px}
.field-toggle{right:20px;width:36px;height:36px;border-radius:999px;border:0;background:transparent;cursor:pointer;font-size:20px}
.login-submit{width:100%;height:64px;margin-top:22px;border-radius:18px;font-size:28px;font-weight:800}
.login-back-link{display:inline-block;margin-top:24px;color:#ACACB4;text-decoration:none;padding:0 16px;position:relative}
.login-back-link::before,.login-back-link::after{content:"";position:absolute;top:50%;width:120px;height:1px;background:rgba(255,255,255,.12)}
.login-back-link::before{right:100%;margin-right:14px}.login-back-link::after{left:100%;margin-left:14px}
.login-scene-note,.login-corner-copy{position:absolute;color:#9999A1;letter-spacing:.3em;text-transform:uppercase;font-size:14px;line-height:2.1;z-index:0}
.login-scene-note::after{content:"";display:block;width:52px;height:2px;background:rgba(255,255,255,.22);margin-top:12px}
.note-left{left:76px;top:88px;text-align:left}
.note-right{right:76px;bottom:116px;text-align:right}
.login-corner-copy{left:76px;bottom:34px;letter-spacing:0;text-transform:none;line-height:1.4;font-size:14px}
.login-corner-copy small{display:block;color:#7D7D86;font-size:12px}

.user-dashboard{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:100vh;background:#0B0B0F}
.user-sidebar{padding:30px 18px 26px;border-right:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:26px;background:linear-gradient(180deg,#0E0E12,#0B0B0F)}
.sidebar-brand{display:flex;flex-direction:column;align-items:flex-start;gap:12px;color:#FAFAFB;padding:10px 14px}
.sidebar-brand .brand-mark{width:78px;height:78px;object-fit:contain}
.sidebar-brand .brand-word{font-size:58px;line-height:.95;letter-spacing:-.05em}
.sidebar-brand small{color:#A4A4AC;letter-spacing:.32em;font-size:10px;text-transform:uppercase}
.user-sidebar-nav,.user-sidebar-bottom{display:flex;flex-direction:column;gap:10px}
.user-sidebar-bottom{margin-top:auto;padding-top:20px;border-top:1px solid rgba(255,255,255,.08)}
.nav-link{display:flex;align-items:center;gap:16px;width:100%;min-height:60px;padding:0 18px;border-radius:18px;border:1px solid transparent;background:transparent;color:#D4D4D8;text-decoration:none;font-size:18px;cursor:pointer;text-align:left}
.nav-link span{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.04);font-size:18px;color:#EBEBED}
.nav-link.active,.nav-link:hover,.nav-link-button:hover{background:linear-gradient(90deg,rgba(255,255,255,.08),rgba(255,255,255,.03));border-color:rgba(255,255,255,.08);color:#FFF}
.nav-link-button{font:inherit}
.sidebar-logout-form{margin:0}
.user-content{padding:0 26px 34px}
.user-topbar{height:88px;display:flex;align-items:center;justify-content:flex-end;border-bottom:1px solid rgba(255,255,255,.08)}
.user-profile{display:flex;align-items:center;gap:18px}
.notif-button{width:42px;height:42px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:#F1F1F3}
.profile-chip{display:flex;align-items:center;gap:14px;padding:10px 0 10px 14px}
.profile-avatar{width:44px;height:44px;border-radius:999px;background:rgba(255,255,255,.1);display:grid;place-items:center;color:#FFF;font-weight:800}
.profile-copy strong{display:block;color:#FAFAFB;font-size:20px}
.profile-copy span{display:block;color:#9999A2;font-size:15px;margin-top:2px}
.profile-caret{color:#B8B8BF;font-size:16px}
.welcome-panel{padding:30px 0 0}
.welcome-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.welcome-head h1{margin:0;font-size:72px;line-height:.95;letter-spacing:-.055em;color:#FAFAFB}
.welcome-head p{margin:12px 0 0;color:#A2A2AB;font-size:22px}
.welcome-date{color:#B0B0B7;font-size:18px;padding-top:18px}
.welcome-hero{display:grid;grid-template-columns:1fr 1.45fr auto;gap:22px;align-items:stretch;padding:22px;border-radius:26px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(23,23,28,.9),rgba(14,14,18,.9));box-shadow:0 18px 44px rgba(0,0,0,.3)}
.welcome-overline{display:block;color:#B3B3BB;font-size:14px;letter-spacing:.42em;margin-bottom:22px}
.welcome-hero-copy h2{margin:0;color:#FAFAFB;font-size:66px;line-height:.94;letter-spacing:-.05em}
.welcome-hero-copy p{margin:20px 0 0;color:#ACACB4;font-size:18px;line-height:1.55;max-width:420px}
.welcome-cta{margin-top:30px;height:62px;font-size:22px;border-radius:18px;min-width:240px}
.welcome-hero-image{position:relative;border-radius:22px;overflow:hidden;min-height:310px;background:
  linear-gradient(90deg, rgba(9,9,12,.55), rgba(9,9,12,.14)),
  linear-gradient(135deg, rgba(49,52,59,.45), rgba(11,11,15,.1)),
  url('/static/img/sferia360-mark.png') center/200px no-repeat,
  radial-gradient(circle at center, rgba(255,255,255,.08), rgba(255,255,255,.02) 45%, rgba(0,0,0,.22));}
.welcome-hero-tag{align-self:stretch;display:flex;flex-direction:column;justify-content:center;color:#D1D1D5;letter-spacing:.42em;font-size:14px;line-height:2.2;text-align:left;border-left:1px solid rgba(255,255,255,.08);padding-left:22px;text-transform:uppercase}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}
.stat-card{display:flex;align-items:center;gap:18px;padding:22px;border-radius:22px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(22,22,27,.95),rgba(14,14,18,.95));box-shadow:0 12px 30px rgba(0,0,0,.22)}
.stat-icon{width:82px;height:82px;border-radius:18px;background:rgba(255,255,255,.04);display:grid;place-items:center;color:#F3F3F4;font-size:34px}
.stat-card strong{display:block;color:#FFFFFF;font-size:52px;line-height:1}
.stat-card span{display:block;color:#B4B4BC;font-size:20px;margin-top:8px}
.tour-listing{margin-top:26px}
.tour-listing-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.tour-listing-head h2{margin:0;color:#FAFAFB;font-size:32px;letter-spacing:-.04em}
.tour-listing-actions{display:flex;align-items:center;gap:14px}
.tour-search{display:flex;align-items:center;gap:10px;width:min(100%,360px);height:54px;padding:0 16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);border-radius:16px;color:#C7C7CD}
.tour-search input{background:transparent;border:0;outline:none;color:#F5F5F6;width:100%}
.tour-search input::placeholder{color:#8F8F98}
.tour-view-all{display:flex;align-items:center;gap:8px;color:#E2E2E5;text-decoration:none}
.tour-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.tour-card{border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(22,22,27,.96),rgba(14,14,18,.96));box-shadow:0 16px 36px rgba(0,0,0,.28)}
.tour-card-cover{position:relative;aspect-ratio:16/10;background:#17171C}
.tour-card-cover img{width:100%;height:100%;object-fit:cover;display:block}
.tour-cover-fallback{display:grid;place-items:center;width:100%;height:100%;font-size:48px;color:#7E7E88}
.tour-card-menu{position:absolute;right:14px;top:14px;width:42px;height:42px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(16,16,20,.7);color:#FFF}
.tour-card-body{padding:16px 16px 18px}
.tour-card-body h3{margin:0;color:#F8F8F9;font-size:20px;line-height:1.2}
.tour-card-body p{margin:10px 0 12px;color:#A8A8B1;line-height:1.5;min-height:44px}
.tour-status{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 14px;border-radius:999px;font-size:14px;font-weight:700;margin-bottom:14px}
.tour-status::before{content:"";width:10px;height:10px;border-radius:50%;background:currentColor;opacity:.95}
.tour-status.published{background:#17241B;color:#8AD39E}
.tour-status.draft{background:#29292F;color:#B1B1B8}
.tour-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.user-empty-state{padding:30px}
.modal-dark{background:#17171C;border:1px solid #36363D;color:#F2F2F4;border-radius:24px;box-shadow:0 32px 80px rgba(0,0,0,.55)}
.help-modal{width:min(100%,430px)}
.help-card{padding:0}
.help-lines{padding:4px 0 10px}
.help-lines p{margin:0 0 14px;color:#C8C8CF;font-size:16px;line-height:1.6}
.help-lines strong{color:#FFF}

@media (max-width: 1440px){
  .landing-nav{gap:24px}
  .hero-gallery{grid-template-columns:1fr .7fr 1.3fr .7fr 1fr;gap:16px}
  .welcome-head h1{font-size:56px}
  .welcome-hero-copy h2{font-size:52px}
  .stat-card strong{font-size:40px}
  .tour-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 1120px){
  .landing-header{flex-wrap:wrap;height:auto;padding-top:18px;padding-bottom:18px}
  .landing-nav{order:3;width:100%;justify-content:flex-start;overflow:auto;padding-bottom:4px}
  .hero-gallery{grid-template-columns:1fr;}
  .hero-panel-mid.small{transform:none}
  .landing-features{grid-template-columns:repeat(2,1fr)}
  .user-dashboard{grid-template-columns:1fr}
  .user-sidebar{border-right:0;border-bottom:1px solid rgba(255,255,255,.08)}
  .user-sidebar-nav,.user-sidebar-bottom{flex-direction:row;flex-wrap:wrap}
  .user-sidebar-bottom{margin-top:0}
  .welcome-hero{grid-template-columns:1fr}
  .welcome-hero-tag{border-left:0;padding-left:0;border-top:1px solid rgba(255,255,255,.08);padding-top:16px;line-height:1.8}
  .stats-grid{grid-template-columns:1fr}
  .tour-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 760px){
  .landing-main{padding:20px 16px 30px}
  .landing-hero h1{font-size:44px}
  .landing-lead{font-size:15px}
  .landing-features{grid-template-columns:1fr}
  .sferia-login-shell{padding:20px}
  .note-left,.note-right,.login-corner-copy{display:none}
  .login-brand-center .brand-word{font-size:42px}
  .sferia-login-card h1{font-size:42px}
  .sferia-field input{height:62px;font-size:16px}
  .user-content{padding:0 14px 24px}
  .welcome-head{flex-direction:column}
  .welcome-head h1{font-size:40px}
  .welcome-head p{font-size:18px}
  .tour-listing-head,.tour-listing-actions{flex-direction:column;align-items:stretch}
  .tour-grid{grid-template-columns:1fr}
}

/* ===== Portada final Sferia360 ===== */
body.landing-page-final{
  min-height:100%;
  background:#08090D;
  color:#F6F6F7;
}
body.landing-page-final::before{display:none}
.landing-final-screen{
  min-height:100vh;
  min-height:100svh;
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-rows:auto 1fr;
  background-image:url('../img/sferia360-landing-bg.png');
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
}
.landing-final-screen::before{display:none}
.landing-final-header{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:10px clamp(26px,3vw,64px);
  background:transparent;
  border:0;
  box-shadow:none;
  backdrop-filter:none;
}
.landing-final-brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#F6F6F7;
  text-decoration:none;
}
.landing-final-brand .brand-mark{width:44px;height:44px;object-fit:contain}
.landing-final-brand .brand-word{font-size:28px;line-height:1;letter-spacing:-.045em}
.landing-final-login{
  min-width:102px;
  min-height:42px;
  height:42px;
  border-radius:12px;
  font-size:15px;
  padding:0 18px;
}
.landing-final-main{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-rows:1fr auto auto;
  align-items:start;
  min-height:0;
  padding:clamp(22px, 2.8vw, 36px) clamp(24px,3vw,60px) clamp(20px,2.2vw,26px);
}
.landing-final-copy{
  max-width:min(720px, 88vw);
  margin:0 auto;
  text-align:center;
  padding-top:clamp(18px, 3vh, 44px);
}
.landing-final-overline{
  margin:0 0 14px;
  color:#A4A4AD;
  font-size:clamp(10px,.8vw,13px);
  letter-spacing:.42em;
}
.landing-final-copy h1{
  margin:0;
  font-size:clamp(48px,5.25vw,78px);
  line-height:.92;
  letter-spacing:-.055em;
  font-weight:820;
  color:#FAFAFB;
}
.landing-final-lead{
  margin:16px auto 0;
  color:#B0B0B7;
  font-size:clamp(14px,1.05vw,18px);
  line-height:1.55;
}
.landing-final-cta{
  margin-top:22px;
  min-width:180px;
  min-height:50px;
  border-radius:15px;
  font-size:17px;
}
.landing-final-mini{
  margin:12px 0 0;
  color:#8E8E96;
  font-size:clamp(9px,.72vw,11px);
  letter-spacing:.24em;
  text-transform:uppercase;
}
.landing-final-features{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
  margin-top:clamp(24px, 3vh, 42px);
}
.landing-final-card{
  display:flex;
  align-items:flex-start;
  gap:16px;
  min-height:136px;
  padding:24px 26px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(16,17,22,.68), rgba(12,13,18,.74));
  box-shadow:0 10px 26px rgba(0,0,0,.24);
  backdrop-filter:blur(2px);
}
.landing-final-icon{
  flex:0 0 auto;
  width:52px;height:52px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  display:grid;place-items:center;
  color:#F2F2F4;
  font-size:22px;
  background:rgba(255,255,255,.02);
}
.landing-final-card h2{
  margin:0 0 8px;
  color:#FAFAFB;
  font-size:18px;
  line-height:1.15;
}
.landing-final-card p{
  margin:0;
  color:#AFAFB7;
  font-size:14px;
  line-height:1.55;
}
.landing-final-tagline{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  margin-top:14px;
  color:#7E7E86;
  font-size:11px;
  letter-spacing:.36em;
  text-transform:uppercase;
}
.landing-final-tagline span{
  display:block;
  width:min(10vw, 90px);
  height:1px;
  background:rgba(255,255,255,.18);
}
@media (max-width:1200px){
  .landing-final-copy{padding-top:12px;max-width:min(680px, 90vw)}
  .landing-final-copy h1{font-size:clamp(44px,6vw,68px)}
  .landing-final-features{grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px;}
}
@media (max-width:760px){
  body.landing-page-final{overflow:auto}
  .landing-final-screen{min-height:100svh;background-position:center center}
  .landing-final-header{padding:12px 16px}
  .landing-final-brand .brand-mark{width:36px;height:36px}
  .landing-final-brand .brand-word{font-size:24px}
  .landing-final-login{min-width:90px;min-height:38px;height:38px;font-size:14px;padding:0 14px}
  .landing-final-main{padding:10px 14px 20px;grid-template-rows:auto auto auto}
  .landing-final-copy{padding-top:6px;width:min(94vw, 520px)}
  .landing-final-overline{font-size:9px;letter-spacing:.28em;margin-bottom:10px}
  .landing-final-copy h1{font-size:clamp(36px,10.4vw,50px);line-height:.96}
  .landing-final-lead{font-size:13px;line-height:1.45}
  .landing-final-lead br{display:none}
  .landing-final-cta{margin-top:18px;min-width:150px;min-height:44px;font-size:15px}
  .landing-final-mini{font-size:8px;letter-spacing:.16em}
  .landing-final-features{grid-template-columns:1fr;gap:12px;margin-top:18px}
  .landing-final-card{min-height:0;padding:18px 18px;border-radius:16px}
  .landing-final-icon{width:44px;height:44px;font-size:18px}
  .landing-final-tagline{gap:12px;font-size:9px;letter-spacing:.22em;margin-top:12px;padding-bottom:2px}
}
@media (max-height:780px) and (min-width:900px){
  .landing-final-header{padding-top:8px;padding-bottom:8px}
  .landing-final-copy{padding-top:8px}
  .landing-final-copy h1{font-size:clamp(42px,4.5vw,64px)}
  .landing-final-lead{margin-top:12px;font-size:15px}
  .landing-final-cta{margin-top:16px;min-height:44px}
  .landing-final-mini{margin-top:10px}
  .landing-final-features{margin-top:18px}
  .landing-final-card{padding:18px 22px;min-height:120px}
}

/* ===== Ajuste compacto del login ===== */
body.sferia-login-page{
  min-height:100svh;
  overflow:hidden;
}
body.sferia-login-page .app-shell{
  min-height:100svh;
}
.sferia-login-shell{
  min-height:100svh;
  height:100svh;
  padding:20px 24px;
  overflow:hidden;
  display:grid;
  place-items:center;
  align-items:center;
  justify-items:center;
}
.sferia-login-shell::before,
.sferia-login-shell::after{
  opacity:.65;
}
.sferia-login-shell::before{
  left:-120px;
  bottom:-180px;
  width:700px;
  height:700px;
  box-shadow:inset 0 0 0 52px rgba(255,255,255,.016);
}
.sferia-login-shell::after{
  right:-90px;
  top:-100px;
  width:560px;
  height:560px;
  box-shadow:inset 0 0 0 42px rgba(255,255,255,.016);
}
.sferia-login-card-wrap{
  width:min(100%, 470px);
  max-width:470px;
}
.sferia-login-card{
  padding:28px 28px 22px;
  border-radius:24px;
  box-shadow:0 20px 52px rgba(0,0,0,.36);
}
.login-brand-center{
  gap:10px;
}
.login-brand-center .brand-mark{
  width:68px;
  height:68px;
}
.login-brand-center .brand-word{
  font-size:44px;
}
.login-tagline{
  font-size:10px;
  letter-spacing:.34em;
}
.sferia-login-card h1{
  margin:18px 0 8px;
  font-size:clamp(34px, 4vw, 44px);
  line-height:.98;
}
.login-subtitle{
  margin:0 0 18px;
  font-size:15px;
  line-height:1.45;
}
.sferia-field{
  margin-top:12px;
}
.sferia-field input{
  height:58px;
  border-radius:16px;
  padding:0 54px;
  font-size:15px;
}
.field-icon{
  left:18px;
  font-size:18px;
}
.field-toggle{
  right:16px;
  width:32px;
  height:32px;
  font-size:17px;
}
.login-submit{
  height:54px;
  margin-top:16px;
  border-radius:16px;
  font-size:18px;
}
.login-back-link{
  margin-top:18px;
  font-size:14px;
}
.login-back-link::before,.login-back-link::after{
  width:88px;
}
.login-scene-note, .login-corner-copy{
  font-size:12px;
  line-height:1.85;
}
.note-left{
  left:68px;
  top:72px;
}
.note-right{
  right:68px;
  bottom:82px;
}
.login-corner-copy{
  left:68px;
  bottom:24px;
}
@media (max-width: 980px){
  body.sferia-login-page{overflow:auto;}
  .sferia-login-shell{height:auto; min-height:100svh; padding:18px 16px; overflow:hidden;}
  .sferia-login-card-wrap{max-width:430px;}
  .note-left,.note-right,.login-corner-copy{display:none;}
}
@media (max-width: 560px){
  .sferia-login-card-wrap{width:min(100%, 390px);}
  .sferia-login-card{padding:22px 20px 18px; border-radius:20px;}
  .login-brand-center .brand-mark{width:56px; height:56px;}
  .login-brand-center .brand-word{font-size:36px;}
  .login-tagline{font-size:9px; letter-spacing:.24em;}
  .sferia-login-card h1{font-size:32px; margin-top:14px;}
  .login-subtitle{font-size:13px; margin-bottom:14px;}
  .sferia-field input{height:52px; padding:0 46px; font-size:14px;}
  .field-icon{left:15px; font-size:16px;}
  .field-toggle{right:13px; width:28px; height:28px; font-size:15px;}
  .login-submit{height:48px; font-size:17px;}
  .login-back-link{font-size:13px;}
  .login-back-link::before,.login-back-link::after{width:56px;}
}
@media (max-height: 760px) and (min-width: 981px){
  .sferia-login-shell{padding:14px 20px;}
  .sferia-login-card-wrap{max-width:440px;}
  .sferia-login-card{padding:24px 24px 18px;}
  .login-brand-center .brand-mark{width:60px; height:60px;}
  .login-brand-center .brand-word{font-size:38px;}
  .sferia-login-card h1{font-size:36px; margin:14px 0 6px;}
  .login-subtitle{font-size:14px; margin-bottom:12px;}
  .sferia-field input{height:52px;}
  .login-submit{height:48px; margin-top:14px;}
  .note-left{top:54px;}
  .note-right{bottom:68px;}
  .login-corner-copy{bottom:18px;}
}

/* ===== Ajuste fino del login: logo/título/usuario ===== */
.login-brand-center .brand-mark{
  width:60px;
  height:60px;
}
.login-brand-center .brand-word{
  font-size:40px;
}
.sferia-login-card h1{
  font-size:clamp(29px, 3.2vw, 36px);
  font-weight:760;
  letter-spacing:-.045em;
  margin:16px 0 8px;
}
@media (max-width:560px){
  .login-brand-center .brand-mark{width:50px; height:50px;}
  .login-brand-center .brand-word{font-size:32px;}
  .sferia-login-card h1{font-size:28px; font-weight:740;}
}
@media (max-height:760px) and (min-width:981px){
  .login-brand-center .brand-mark{width:54px; height:54px;}
  .login-brand-center .brand-word{font-size:34px;}
  .sferia-login-card h1{font-size:31px; font-weight:750;}
}

/* ===== Panel de usuario: escala normal de escritorio ===== */
body.user-dashboard-page{
  overflow-x:hidden;
  background:#0B0B0F;
}
.user-dashboard{
  grid-template-columns:230px minmax(0,1fr);
  min-height:100vh;
}
.user-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:18px 12px 16px;
  gap:18px;
  overflow:hidden;
}
.sidebar-brand{
  flex-direction:row;
  align-items:center;
  gap:10px;
  padding:6px 10px 14px;
}
.sidebar-brand .brand-mark{
  width:42px;
  height:42px;
}
.sidebar-brand .brand-word{
  font-size:30px;
  line-height:1;
}
.sidebar-brand small{display:none}
.user-sidebar-nav,.user-sidebar-bottom{gap:6px}
.user-sidebar-bottom{padding-top:12px}
.nav-link{
  min-height:46px;
  padding:0 12px;
  border-radius:12px;
  gap:10px;
  font-size:14px;
}
.nav-link span{
  width:28px;
  height:28px;
  border-radius:9px;
  font-size:14px;
}
.user-content{
  min-width:0;
  padding:0 20px 24px;
}
.user-topbar{
  height:62px;
}
.user-profile{gap:10px}
.notif-button{
  width:36px;
  height:36px;
}
.profile-chip{gap:9px;padding:6px 0 6px 8px}
.profile-avatar{width:34px;height:34px;font-size:13px}
.profile-copy strong{font-size:14px}
.profile-copy span{font-size:11px}
.profile-caret{font-size:13px}
.welcome-panel{padding-top:18px}
.welcome-head{
  margin-bottom:12px;
  align-items:center;
}
.welcome-head h1{
  font-size:clamp(32px,3vw,44px);
  line-height:1;
  letter-spacing:-.04em;
}
.welcome-head p{
  margin-top:6px;
  font-size:15px;
}
.welcome-date{
  padding-top:0;
  font-size:13px;
}
.welcome-hero{
  grid-template-columns:minmax(260px,.9fr) minmax(300px,1.35fr) 82px;
  gap:14px;
  padding:16px;
  border-radius:18px;
  min-height:210px;
}
.welcome-overline{
  font-size:9px;
  letter-spacing:.32em;
  margin-bottom:10px;
}
.welcome-hero-copy h2{
  font-size:clamp(30px,2.7vw,40px);
  line-height:.98;
}
.welcome-hero-copy p{
  margin-top:10px;
  font-size:14px;
  line-height:1.4;
}
.welcome-cta{
  margin-top:15px;
  min-width:160px;
  height:42px;
  min-height:42px;
  border-radius:11px;
  font-size:14px;
}
.welcome-hero-image{
  min-height:178px;
  border-radius:14px;
}
.welcome-hero-tag{
  padding-left:14px;
  font-size:9px;
  letter-spacing:.28em;
  line-height:2;
}
.stats-grid{
  gap:12px;
  margin-top:12px;
}
.stat-card{
  min-height:86px;
  gap:12px;
  padding:12px 16px;
  border-radius:15px;
}
.stat-icon{
  width:52px;
  height:52px;
  border-radius:12px;
  font-size:22px;
}
.stat-card strong{
  font-size:32px;
}
.stat-card span{
  margin-top:3px;
  font-size:14px;
}
.tour-listing{
  margin-top:18px;
}
.tour-listing-head{
  gap:12px;
  margin-bottom:12px;
}
.tour-listing-head h2{
  font-size:23px;
}
.tour-listing-actions{gap:10px}
.tour-search{
  width:260px;
  height:40px;
  border-radius:11px;
  padding:0 12px;
  font-size:13px;
}
.tour-view-all{font-size:13px}
.tour-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.tour-card{
  border-radius:15px;
}
.tour-card-cover{
  aspect-ratio:16/8.5;
}
.tour-card-menu{
  right:9px;
  top:9px;
  width:32px;
  height:32px;
  border-radius:9px;
  font-size:11px;
}
.tour-card-body{
  padding:11px 12px 12px;
}
.tour-card-body h3{
  font-size:15px;
}
.tour-card-body p{
  margin:5px 0 8px;
  min-height:0;
  font-size:11px;
  line-height:1.35;
}
.tour-status{
  min-height:26px;
  padding:0 9px;
  margin-bottom:8px;
  font-size:10px;
}
.tour-status::before{
  width:7px;
  height:7px;
}
.tour-card-actions{gap:7px}
.tour-card-actions .button.compact{
  min-height:32px;
  padding:0 10px;
  font-size:11px;
  border-radius:8px;
}
@media (max-width:1360px){
  .user-dashboard{grid-template-columns:210px minmax(0,1fr)}
  .sidebar-brand .brand-word{font-size:27px}
  .tour-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .welcome-hero{grid-template-columns:minmax(230px,.85fr) minmax(260px,1.2fr) 72px}
}
@media (max-width:1050px){
  .user-dashboard{grid-template-columns:190px minmax(0,1fr)}
  .sidebar-brand .brand-word{font-size:24px}
  .sidebar-brand .brand-mark{width:36px;height:36px}
  .nav-link{font-size:13px}
  .welcome-date{display:none}
  .welcome-hero{grid-template-columns:1fr 1.1fr}
  .welcome-hero-tag{display:none}
  .tour-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:780px){
  .user-dashboard{display:block}
  .user-sidebar{
    position:relative;
    height:auto;
    padding:12px;
    overflow:visible;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .sidebar-brand{padding-bottom:8px}
  .user-sidebar-nav,.user-sidebar-bottom{
    flex-direction:row;
    flex-wrap:wrap;
  }
  .user-sidebar-bottom{margin-top:0;border-top:0;padding-top:0}
  .nav-link{width:auto;min-width:120px;flex:1}
  .user-content{padding:0 12px 20px}
  .user-topbar{height:54px}
  .welcome-head{align-items:flex-start}
  .welcome-head h1{font-size:30px}
  .welcome-head p{font-size:13px}
  .welcome-hero{grid-template-columns:1fr;padding:14px;min-height:0}
  .welcome-hero-image{display:none}
  .welcome-hero-copy h2{font-size:30px}
  .stats-grid{grid-template-columns:repeat(3,1fr);gap:8px}
  .stat-card{padding:10px;min-height:72px}
  .stat-icon{width:40px;height:40px;font-size:17px}
  .stat-card strong{font-size:25px}
  .stat-card span{font-size:11px}
  .tour-listing-head{align-items:stretch}
  .tour-listing-actions{flex:1}
  .tour-search{width:100%}
}
@media (max-width:560px){
  .profile-copy{display:none}
  .welcome-head h1{font-size:27px}
  .stats-grid{grid-template-columns:1fr}
  .stat-card{min-height:64px}
  .tour-listing-head,.tour-listing-actions{flex-direction:column;align-items:stretch}
  .tour-grid{grid-template-columns:1fr}
}

/* ===== Banner hero con imagen arquitectónica ===== */
.welcome-hero-image{
  background-image:url('/static/img/dashboard-hero-generic.jpg');
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
}
.welcome-hero-image::after{
  display:none;
}

/* ===== Super Admin Sferia360 ===== */
body.superadmin-page,
body.superadmin-login-page{
  background:#0B0B0F;
  color:#E5E5E7;
}
body.superadmin-page{overflow:auto}
.sa-app{
  min-height:100vh;
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  background:#0B0B0F;
}
.sa-sidebar{
  min-height:100vh;
  position:sticky;
  top:0;
  align-self:start;
  display:flex;
  flex-direction:column;
  padding:24px 14px 20px;
  border-right:1px solid #25252B;
  background:#0E0E12;
}
.sa-brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  padding:4px 12px 24px;
  text-decoration:none;
  color:#F7F7F8;
}
.sa-brand img{width:58px;height:58px;object-fit:contain}
.sa-brand strong{font-size:28px;line-height:1;letter-spacing:-.05em}
.sa-brand strong span{color:#A7A7B0;font-weight:650}
.sa-brand small{font-size:9px;letter-spacing:.28em;color:#AFAFB7}
.sa-nav{display:flex;flex-direction:column;gap:8px}
.sa-nav a,
.sa-sidebar-bottom a,
.sa-sidebar-bottom button{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:46px;
  padding:0 14px;
  border:1px solid transparent;
  border-radius:12px;
  background:transparent;
  color:#D8D8DC;
  text-decoration:none;
  font:inherit;
  cursor:pointer;
  width:100%;
  text-align:left;
}
.sa-nav a span,
.sa-sidebar-bottom a span,
.sa-sidebar-bottom button span{width:24px;text-align:center;color:#CFCFD5}
.sa-nav a.active,.sa-nav a:hover,.sa-sidebar-bottom a:hover,.sa-sidebar-bottom button:hover{
  background:#1B1B21;
  border-color:#33333A;
  color:#FFF;
}
.sa-sidebar-bottom{
  margin-top:auto;
  padding-top:18px;
  border-top:1px solid #25252B;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.sa-sidebar-bottom form{margin:0}
.sa-content{padding:22px 24px 34px;min-width:0}
.sa-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:4px 0 18px;
}
.sa-topbar h1{margin:0;font-size:34px;line-height:1;letter-spacing:-.045em;color:#FAFAFB}
.sa-topbar p{margin:7px 0 0;color:#92929C}
.sa-profile{display:flex;align-items:center;gap:10px}
.sa-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#29292F;color:#FFF;font-weight:800}
.sa-profile strong,.sa-profile span{display:block}.sa-profile span{font-size:12px;color:#8E8E97;margin-top:2px}
.sa-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:4px 0 16px}
.sa-stats article{
  display:flex;align-items:center;gap:14px;
  min-height:92px;padding:16px 18px;
  border:1px solid #2D2D34;border-radius:14px;
  background:linear-gradient(180deg,#17171C,#121216);
}
.sa-stat-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:#24242A;color:#ECECEF;font-size:20px}
.sa-stats strong{display:block;font-size:28px;color:#FFF;line-height:1}.sa-stats span{display:block;margin-top:5px;color:#A3A3AC;font-size:13px}
.sa-panel{
  border:1px solid #2D2D34;
  border-radius:16px;
  background:linear-gradient(180deg,#16161B,#111115);
  overflow:hidden;
}
.sa-panel-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:18px 20px 14px;
}
.sa-panel-head.compact{padding-bottom:12px}
.sa-panel-head h2{margin:0;color:#FAFAFB;font-size:22px;letter-spacing:-.035em}
.sa-panel-head p{margin:5px 0 0;color:#8E8E98;font-size:13px}
.sa-panel-actions{display:flex;align-items:center;gap:10px}
.sa-search{height:42px;min-width:250px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #303038;border-radius:10px;background:#111115;color:#AAAAB3}
.sa-search input{width:100%;border:0;outline:0;background:transparent;color:#F0F0F2}
.sa-search input::placeholder{color:#74747D}
.sa-table-wrap{overflow:auto;border-top:1px solid #26262C}
.sa-table{width:100%;border-collapse:collapse;min-width:680px}
.sa-table th,.sa-table td{padding:11px 14px;text-align:left;border-bottom:1px solid #24242A;font-size:13px;vertical-align:middle}
.sa-table th{color:#A6A6AF;font-size:11px;font-weight:700;background:#1C1C22;letter-spacing:.03em}
.sa-table td{color:#CFCFD5}.sa-table td strong{color:#F3F3F5;font-weight:700}.sa-table td small{display:block;color:#7E7E88;margin-top:3px}
.sa-status{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700}
.sa-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.sa-status.active{background:#17251B;color:#80D294}.sa-status.inactive{background:#29292F;color:#A1A1A9}.sa-status.draft{background:#2B2920;color:#D8B768}
.sa-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sa-mini-btn{
  min-height:30px;padding:0 9px;border:1px solid #37373F;border-radius:8px;background:#202026;color:#DADADF;font:inherit;font-size:11px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center
}
.sa-mini-btn:hover{background:#2B2B31}.sa-mini-btn.danger{background:#271719;border-color:#4B272C;color:#E69A9A}.sa-mini-btn.link{color:#E8E8EA}
.sa-owner-select{max-width:170px;width:100%;height:32px;border:1px solid #34343B;border-radius:8px;background:#17171C;color:#DCDCE0;padding:0 8px;font-size:11px}
.sa-empty-cell{text-align:center!important;color:#81818A!important;padding:28px!important}
.sa-lower-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);gap:14px;margin-top:14px}
.sa-tours-wrap{max-height:410px}
.sa-settings form{padding:0 20px 20px;display:grid;gap:12px}
.sa-settings label,.sa-dialog label{display:grid;gap:6px;color:#B8B8C0;font-size:12px;font-weight:650}
.sa-settings input,.sa-dialog input{
  width:100%;height:42px;border:1px solid #34343B;border-radius:10px;background:#111115;color:#F3F3F4;padding:0 12px;outline:0
}
.sa-settings input:focus,.sa-dialog input:focus{border-color:#6B6B74;box-shadow:0 0 0 3px rgba(229,229,231,.06)}
.sa-settings .button{justify-self:start}
.sa-form-message{min-height:18px;color:#87CC97;font-size:12px}.sa-form-message.error{color:#E18B8B}
.sa-dialog{width:min(460px,calc(100vw - 30px));padding:0;border:1px solid #36363D;border-radius:16px;background:#17171C;color:#F2F2F4;box-shadow:0 28px 70px rgba(0,0,0,.55)}
.sa-dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}
.sa-dialog form{padding:20px;display:grid;gap:13px}
.sa-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:2px}.sa-dialog-head small{color:#8F8F98;letter-spacing:.18em}.sa-dialog-head h2{margin:4px 0 0;font-size:22px}.sa-dialog-head button{border:1px solid #37373F;background:#25252B;color:#DDDDE1;width:34px;height:34px;border-radius:9px;cursor:pointer;font-size:20px}
.sa-dialog label small{color:#777781;font-weight:500}.sa-check{display:flex!important;grid-template-columns:auto 1fr;align-items:center;gap:8px!important}.sa-check input{width:16px;height:16px}.sa-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}

.sa-login-shell{min-height:100svh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 10%,rgba(255,255,255,.05),transparent 30%),#0B0B0F}
.sa-login-card{width:min(400px,100%);padding:28px;border:1px solid #35353C;border-radius:18px;background:#151519;box-shadow:0 28px 70px rgba(0,0,0,.42)}
.sa-login-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#F6F6F7}.sa-login-brand img{width:46px;height:46px}.sa-login-brand span{font-size:26px;font-weight:850;letter-spacing:-.045em}.sa-login-brand em{font-style:normal;color:#A6A6AE;font-weight:700}
.sa-login-badge{margin-top:18px;color:#A8A8B0;font-size:10px;letter-spacing:.25em}.sa-login-card h1{margin:8px 0 5px;font-size:30px;letter-spacing:-.04em}.sa-login-card>p{margin:0 0 18px;color:#8F8F98}
.sa-login-field{display:grid;gap:6px;margin-top:12px;color:#B7B7BF;font-size:12px;font-weight:650}.sa-login-field input{height:46px;border:1px solid #34343B;border-radius:10px;background:#0F0F13;color:#F1F1F2;padding:0 12px;outline:0}.sa-login-submit{width:100%;margin-top:18px}.sa-login-back{display:block;text-align:center;margin-top:16px;color:#92929B;text-decoration:none;font-size:12px}

@media(max-width:1100px){.sa-app{grid-template-columns:190px minmax(0,1fr)}.sa-stats{grid-template-columns:repeat(2,1fr)}.sa-lower-grid{grid-template-columns:1fr}.sa-panel-actions{flex-wrap:wrap;justify-content:flex-end}.sa-search{min-width:210px}}
@media(max-width:760px){.sa-app{display:block}.sa-sidebar{position:relative;min-height:auto;border-right:0;border-bottom:1px solid #25252B}.sa-brand{padding-bottom:14px}.sa-nav,.sa-sidebar-bottom{flex-direction:row;flex-wrap:wrap}.sa-sidebar-bottom{margin-top:12px}.sa-nav a,.sa-sidebar-bottom a,.sa-sidebar-bottom button{width:auto}.sa-content{padding:16px}.sa-topbar{align-items:center}.sa-stats{grid-template-columns:1fr 1fr}.sa-panel-head{align-items:stretch;flex-direction:column}.sa-panel-actions{justify-content:stretch}.sa-search{min-width:0;flex:1}.sa-lower-grid{grid-template-columns:1fr}}
@media(max-width:520px){.sa-stats{grid-template-columns:1fr}.sa-topbar h1{font-size:28px}.sa-profile{display:none}.sa-panel-actions{flex-direction:column}.sa-search,.sa-panel-actions .button{width:100%}}

/* ===== Errores de producción ===== */
.error-page{min-height:100svh;background:#0B0B0F;color:#F2F2F4}
.error-shell{min-height:100svh;display:grid;place-items:center;padding:24px}
.error-card{width:min(460px,100%);padding:32px;border:1px solid #303038;border-radius:18px;background:#151519;text-align:center;box-shadow:0 28px 70px rgba(0,0,0,.38)}
.error-brand{display:inline-flex;align-items:center;gap:9px;color:#F4F4F5;text-decoration:none;font-size:22px;font-weight:800}
.error-brand img{width:38px;height:38px}.error-brand span span{color:#A6A6AE}
.error-code{margin-top:24px;color:#8F8F98;font-size:13px;font-weight:800;letter-spacing:.22em}
.error-card h1{margin:8px 0 8px;font-size:30px;letter-spacing:-.04em}.error-card p{margin:0 auto 22px;max-width:360px;color:#9A9AA3;line-height:1.55}
.error-card .button{display:inline-flex}
