@font-face{font-family:'Staatliches';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/Staatliches-Regular.ttf') format('truetype');}
@font-face{font-family:'Gerbera';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/Gerbera.ttf') format('truetype');}
@font-face{font-family:'Gerbera';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/Gerbera-Bold.ttf') format('truetype');}
@font-face{font-family:'Arvo';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/Arvo-Regular.ttf') format('truetype');}
@font-face{font-family:'Arvo';font-style:italic;font-weight:400;font-display:swap;src:url('/assets/fonts/Arvo-Italic.ttf') format('truetype');}

:root{
  --teal-950:#001c26;
  --teal-700:#06394a;
  --teal-600:#c49c48;
  --gold-700:#06394a;
  --gold-600:#c49c48;
  --gold-500:#C49C48;
  --gold-300:#d4b36a;
  --gold-soft:#d4b36a;
  --line-gold:rgba(196,156,72,.45);
  --on-deep:rgba(255,255,255,.86);
  --on-deep-muted:rgba(255,255,255,.72);
  --ease:cubic-bezier(.22,1,.36,1);
  --white:#FFFFFF;
  --cream:#ffffff;
  --paper-cool:#EBEEE7;
  --ink:#333333;
  --line:#d5dcd9;
  --danger:#B5482F;
  --success:#3E8E6F;
  --font-display:'Staatliches','Arial Narrow',sans-serif;
  --font-body:'Gerbera',system-ui,-apple-system,sans-serif;
  --font-quote:'Arvo',Georgia,serif;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{background:var(--teal-950); color:var(--ink); font-family:var(--font-body); -webkit-font-smoothing:antialiased;}
h1,h2,h3{font-family:var(--font-display); font-weight:400; letter-spacing:.06em; text-transform:uppercase; margin:0;}
a{color:inherit;}
::selection{background:var(--gold-500); color:var(--teal-950);}
:focus-visible{outline:2px solid var(--gold-500); outline-offset:3px;}
@media (prefers-reduced-motion:reduce){*{transition:none!important; animation:none!important;}}
button{font-family:inherit; cursor:pointer;}

.screen{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; background:var(--teal-950) url('/assets/ornaments/mandala-spear.svg') no-repeat center 42%/min(980px,150vw); position:relative;}
.screen::before{content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 50% 40%, rgba(0,28,38,.35), var(--teal-950) 72%); pointer-events:none;}
.screen .card{position:relative; width:100%; max-width:412px; background:var(--white); border-radius:0; padding:42px 38px 36px;
  box-shadow:0 20px 50px rgba(0,0,0,.4); border:1px solid var(--line-gold);}
.wordmark{display:flex; flex-direction:column; align-items:center; gap:12px; margin-bottom:6px;}
.wordmark img.seal{width:84px; height:84px;}
.wordmark img.word{width:170px; height:auto;}
.wordmark h1{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);}
.wordmark p{font-family:var(--font-body); font-size:11px; letter-spacing:.24em; text-transform:uppercase; color:var(--gold-600); margin:2px 0 0; font-weight:700;}
.form{margin-top:28px; display:flex; flex-direction:column; gap:16px;}
.field label{display:block; font-family:var(--font-body); font-weight:700; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#5a6266; margin-bottom:6px;}
.field input{width:100%; padding:12px 13px; border:1px solid var(--line); border-radius:0; background:var(--cream); font-family:var(--font-body); font-size:14px; color:var(--ink);}
.field input:focus{outline:none; border-color:var(--gold-500); background:#fff;}
.btn{margin-top:6px; width:100%; padding:13px; border:none; border-radius:2px; background:var(--gold-500); color:var(--teal-950); font-family:var(--font-display); font-size:16px; letter-spacing:.12em; text-transform:uppercase; transition:background .15s ease;}
.btn{letter-spacing:.12em;}
.btn:hover{background:var(--gold-soft);}
.btn:active{transform:translateY(1px);}
.btn:disabled{opacity:.6; cursor:default;}
.error-msg{background:#FBEAE4; border:1px solid rgba(181,72,47,.35); color:var(--danger); font-family:var(--font-body); font-size:12.5px; padding:10px 12px; border-radius:2px;}
.foot{margin-top:18px; text-align:center; font-family:var(--font-body); font-size:11.5px; color:#5a6266;}

.app-shell{min-height:100vh; background:var(--paper-cool);}
.topbar{display:flex; align-items:center; justify-content:space-between; padding:18px 40px; border-bottom:1px solid var(--line); background:var(--white);}
.topbar .brand{display:flex; align-items:center; gap:10px;}
.topbar .brand img{width:26px; height:26px;}
.topbar .brand span{font-family:var(--font-display); font-size:16px; letter-spacing:.1em; color:var(--teal-700);}
.topbar .who{font-family:var(--font-body); font-size:13px; color:#5a6266;}
.topbar .signout{background:none; border:1px solid var(--line); border-radius:2px; padding:7px 14px; font-family:var(--font-body); font-weight:700; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--teal-700);}
.topbar .signout:hover{border-color:var(--gold-500); color:var(--gold-700);}
.content{padding:40px; max-width:720px; margin:0 auto;}
.content h2{font-size:22px; color:var(--teal-700); margin-bottom:10px;}
.content p{font-family:var(--font-body); color:#5a6266; font-size:14px; line-height:1.6;}

/* ============================================================
   Client portal — persistent left sidebar shell
   ============================================================ */
.sidebar-shell{min-height:100vh; background:var(--paper-cool); display:flex;}
.sidebar{width:250px; height:100%; flex-shrink:0; background:var(--teal-950); border-right:1px solid var(--line-gold); display:flex; flex-direction:column; padding:26px 20px;}
.sidebar-brand{display:flex; flex-direction:column; align-items:flex-start; gap:12px; margin-bottom:30px; text-decoration:none;}
.sidebar-brand img.seal{width:64px; height:64px;}
.sidebar-brand img.word{width:150px; height:auto; display:block;}
.sidebar-brand .tag{font-family:var(--font-body); font-weight:700; font-size:10.5px; letter-spacing:.24em; text-transform:uppercase; color:var(--gold-500); margin-top:-4px;}
.sidebar-nav{display:flex; flex-direction:column; gap:4px;}
.sidebar-nav a{display:flex; align-items:center; gap:12px; padding:11px 13px; border-radius:0; font-family:var(--font-display); font-weight:400; letter-spacing:.14em; text-transform:uppercase; font-size:15px; color:var(--on-deep-muted); text-decoration:none; border:1px solid transparent; transition:color .2s var(--ease);}
.sidebar-nav a svg{width:17px; height:17px; flex-shrink:0;}
.sidebar-nav a:hover{color:var(--gold-500);}
.sidebar-nav a.active{background:transparent; border-color:var(--line-gold); color:var(--gold-500);}
.nav-badge{width:8px; height:8px; border-radius:50%; background:var(--gold-500); margin-left:auto; flex-shrink:0; box-shadow:0 0 0 2px rgba(196,156,72,.35);}
.sidebar-spacer{flex:1;}
.sidebar-foot{border-top:1px solid rgba(255,255,255,.14); padding-top:16px; margin-top:16px;}
.sidebar-foot .name{font-family:var(--font-body); font-weight:700; font-size:13px; color:var(--cream);}
.sidebar-foot .meta{font-family:var(--font-body); font-size:11px; color:#9fb0b5; margin-top:2px; margin-bottom:14px;}
.sidebar-foot .signout{width:100%; background:none; border:1px solid rgba(255,255,255,.22); border-radius:2px; padding:9px; font-family:var(--font-body); font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:#e3e9ea;}
.sidebar-foot .signout:hover{border-color:var(--gold-500); color:var(--gold-300);}
.main-area{flex:1; min-width:0;}
.main-content{padding:40px;}
.page-head{margin-bottom:30px; padding-bottom:0;}
.page-head::after{content:''; display:block; height:34px; width:280px; max-width:80%; margin-top:16px; background:url('/assets/ornaments/rule-spear-wheel.svg') left center/contain no-repeat;}
.page-head h2{font-size:clamp(1.9rem,1.4rem + 1.6vw,2.6rem); line-height:1.02; letter-spacing:.04em; color:var(--teal-700); margin-bottom:8px;}
.page-head p{font-family:var(--font-body); color:#5a6266; font-size:14px;}
/* Narrow screens: the menu STAYS AT THE SIDE (never a bar across the top) —
   it just shrinks to a slim icon-only strip so the page keeps its room. */
@media (max-width:860px){
  .sidebar{width:62px; padding:16px 6px; align-items:center; position:sticky; top:0; height:100vh; align-self:flex-start; overflow-y:auto;}
  .sidebar-brand{margin-bottom:22px; align-items:center; justify-content:center;}
  .sidebar-brand img.word, .sidebar-brand .tag{display:none;}
  .sidebar-brand img.seal{width:46px; height:46px;}
  .sidebar-nav{align-items:center;}
  .sidebar-nav a span{display:none;}
  .sidebar-nav a{padding:11px; justify-content:center; position:relative;}
  .nav-badge{position:absolute; top:5px; right:5px; margin-left:0;}
  .sidebar-foot{border-top:none; padding-top:0; margin-top:12px; width:100%;}
  .sidebar-foot .name, .sidebar-foot .meta{display:none;}
  .sidebar-foot .signout{width:100%; padding:8px 0; font-size:9px; letter-spacing:0;}
  .main-content{padding:26px 16px;}
}

/* Phones only: here the menu goes back to a compact bar across the top,
   because a side strip would squeeze a phone-width page too much.
   "Phone" = a narrow screen, or a touch device held sideways (short height). */
@media (max-width:600px), (max-height:500px) and (pointer:coarse){
  .sidebar-shell{flex-direction:column;}
  .sidebar{width:100%; height:auto; position:static; align-self:auto; overflow:visible; flex-direction:row; flex-wrap:wrap; align-items:center; padding:14px 18px; gap:12px 16px;}
  .sidebar-brand{margin-bottom:0; flex-direction:row; align-items:center; gap:10px; justify-content:flex-start;}
  .sidebar-brand img.seal{width:40px; height:40px;}
  .sidebar-brand img.word{display:block; width:110px;}
  .sidebar-brand .tag{display:none;}
  .sidebar-nav{flex-direction:row; flex-wrap:wrap; gap:4px; align-items:stretch;}
  .sidebar-nav a{padding:9px; justify-content:flex-start;}
  .sidebar-spacer{display:none;}
  .sidebar-foot{margin-left:auto; display:flex; align-items:center; width:auto; margin-top:0;}
  .sidebar-foot .signout{width:auto; padding:8px 14px; font-size:11px; letter-spacing:.05em;}
  .main-content{padding:26px 20px;}
}

/* shared client-portal components */
.card{background:var(--white); border:1px solid var(--line); border-radius:0; padding:22px 26px; margin-bottom:20px; break-inside:avoid;}
.card h3{font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; font-family:var(--font-body); font-weight:700; color:#5a6266; margin-bottom:14px;}
.section-head{display:flex; align-items:baseline; justify-content:space-between; margin:30px 0 14px;}
.section-head:first-child{margin-top:0;}
.section-head h3{font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; font-family:var(--font-body); font-weight:700; color:#5a6266;}
.lib-row{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 0; border-bottom:1px solid var(--line);}
.lib-row:last-child{border-bottom:none; padding-bottom:2px;}
.lib-row .t{font-family:var(--font-body); font-weight:700; font-size:14px; color:var(--ink);}
.lib-row .kind{font-family:var(--font-body); font-size:11px; color:#5a6266; margin-top:2px; text-transform:uppercase; letter-spacing:.04em;}
.lib-row.locked .t{color:#5a6266;}
.lock-badge{display:flex; align-items:center; gap:6px; font-family:var(--font-body); font-weight:700; font-size:11px; color:#5a6266; flex-shrink:0;}
.lock-badge svg{width:13px; height:13px;}
.empty{font-family:var(--font-body); color:#5a6266; font-size:13px; padding:14px 0;}
.open-btn{display:inline-block; background:none; border:1px solid var(--line); border-radius:2px; padding:6px 12px; font-family:var(--font-body); font-weight:700; font-size:11.5px; color:var(--teal-700); text-decoration:none; flex-shrink:0;}
.open-btn:hover{border-color:var(--gold-500); color:var(--gold-700);}

/* ---- Steve Shiva brand: buttons are Staatliches, uppercase, tracked; the primary action is the gold button ---- */
body .open-btn, body .task-btn, body .add-btn, body .task-mini, body .signout{font-family:var(--font-display); font-weight:400; text-transform:uppercase; letter-spacing:.1em;}
body .open-btn{font-size:13.5px; padding:7px 13px;}
body .task-btn{font-size:15px; padding:10px 18px;}
body .task-mini{font-size:13px; padding:5px 12px;}
body .add-btn{font-size:14px;}
body .task-btn:not(.secondary){background:var(--gold-500); border-color:var(--gold-500); color:var(--teal-950);}
body .task-btn:not(.secondary):hover, body .add-btn:hover, body .msg-composer button:hover{background:var(--gold-soft); border-color:var(--gold-soft);}
body .task-btn.secondary:hover, body .task-mini:hover, body .open-btn:hover{border-color:var(--gold-500); color:var(--gold-700);}
body .task-btn:active, body .add-btn:active, body .open-btn:active{transform:translateY(1px);}
