/* Portal shell — login screen, sidebar nav, iframe stage. Portal Phase 1 (2026-08-06).
   Loaded after tokens.css + shared.css. Deliberately its own small vocabulary (.shell-*)
   rather than reusing omd.css/transaction.css's component classes — this page has a genuinely
   different layout (sidebar + iframe stage) from either module, so there's nothing real
   to share beyond the tokens already shared. */
:root{ --panel-hi: #22262f; }

html, body{ margin:0; padding:0; height:100%; }
body{
  background:var(--bg); color:var(--text); font-family:var(--sans);
  height:100vh; overflow:hidden;
}

/* ---------- login screen ---------- */
#shellGate{ display:flex; align-items:center; justify-content:center; min-height:100vh; }
.shell-gate-card{
  width:100%; max-width:400px; background:var(--panel); border:1px solid var(--line);
  border-radius:14px; padding:36px 32px 30px; box-shadow:0 20px 60px -20px rgba(0,0,0,0.5);
}
.shell-gate-mark{
  width:40px; height:40px; border-radius:10px; margin-bottom:18px;
  background:linear-gradient(135deg, var(--cashier), var(--audit));
  display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-weight:700; font-size:15px; color:#0d1013;
}
.shell-gate-eyebrow{font-family:var(--mono); font-size:11px; color:var(--text-dim); letter-spacing:1.2px; text-transform:uppercase; margin-bottom:6px;}
.shell-gate-card h1{font-size:21px; font-weight:700; margin:0 0 6px;}
.shell-gate-card p.sub{color:var(--text-dim); font-size:13px; line-height:1.55; margin:0 0 24px;}
.shell-gate-error{
  display:none; align-items:flex-start; gap:8px; margin-top:14px; padding:10px 12px;
  background:rgba(229,98,106,0.1); border:1px solid rgba(229,98,106,0.35); border-radius:8px;
  color:#f0a7ac; font-size:12.5px; line-height:1.5;
}
.shell-gate-error.show{ display:flex; }

/* ---------- signed-in shell ---------- */
#shellApp{ display:none; height:100vh; }
#shellApp.show{ display:flex; }

.shell-sidebar{
  width:220px; flex:0 0 auto; background:var(--panel); border-right:1px solid var(--line);
  padding:20px 14px; display:flex; flex-direction:column; height:100vh; box-sizing:border-box;
}
.shell-brand{ font-family:var(--mono); font-size:12px; font-weight:700; letter-spacing:0.5px; color:var(--text); padding:0 8px 18px; }
.shell-brand span{ color:var(--text-dim); font-weight:400; display:block; font-size:10.5px; margin-top:2px; }

.shell-nav{ flex:1 1 auto; overflow-y:auto; }
.shell-nav-btn{
  width:100%; text-align:left; background:transparent; border:none; border-radius:8px;
  color:var(--text-dim); padding:10px 12px; font-family:var(--sans); font-size:13px; cursor:pointer;
  margin-bottom:3px; display:flex; align-items:center; gap:9px;
}
.shell-nav-btn:hover{ background:var(--panel-hi); color:var(--text); }
.shell-nav-btn.active{ background:var(--panel-hi); color:var(--text); box-shadow:inset 0 0 0 1px var(--region); }
.shell-nav-btn.soon{ cursor:default; color:var(--text-faint); opacity:0.65; }
.shell-nav-btn.soon:hover{ background:transparent; color:var(--text-faint); }
.shell-nav-tag{
  margin-left:auto; font-family:var(--mono); font-size:8.5px; text-transform:uppercase; letter-spacing:0.4px;
  color:var(--text-faint); border:1px solid var(--line); border-radius:99px; padding:1px 6px;
}
.shell-nav-sep{ border:none; border-top:1px solid var(--line-soft); margin:12px 4px; }
.shell-nav-label{ font-family:var(--mono); font-size:10px; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.8px; padding:0 12px; margin:4px 0 6px; }

.shell-who{ border-top:1px solid var(--line-soft); padding-top:12px; margin-top:8px; }
.shell-who-row{ display:flex; align-items:center; gap:8px; padding:0 8px; margin-bottom:8px; }
.shell-who-avatar{
  width:26px; height:26px; border-radius:50%; flex:0 0 auto; display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:11px; font-weight:700; color:#0d1013; background:var(--region);
}
.shell-who-meta{ min-width:0; }
.shell-who-name{ font-size:12px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shell-who-role{ font-family:var(--mono); font-size:9.5px; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.4px; }
.shell-signout-btn{
  width:100%; background:transparent; border:1px solid var(--line); color:var(--text-dim); padding:8px 12px;
  border-radius:7px; font-family:var(--sans); font-size:12px; cursor:pointer;
}
.shell-signout-btn:hover{ border-color:var(--neg); color:var(--neg); }

.shell-stage{ flex:1 1 auto; height:100vh; position:relative; overflow:hidden; }
.shell-stage iframe{ width:100%; height:100%; border:none; display:block; }
.shell-placeholder{
  display:flex; align-items:center; justify-content:center; height:100%; text-align:center;
  padding:40px; color:var(--text-dim); font-family:var(--sans);
}
.shell-placeholder h1{ color:var(--text); font-size:19px; margin:0 0 8px; }
.shell-placeholder p{ font-size:13.5px; line-height:1.6; max-width:420px; }
.shell-placeholder .tag{
  display:inline-block; margin-bottom:14px; font-family:var(--mono); font-size:10px; text-transform:uppercase;
  letter-spacing:0.6px; color:var(--region); border:1px solid var(--region); border-radius:99px; padding:3px 10px;
}
