/* Sheena & Co AI Headquarters: styles. Colors and fonts come only from the Sheena Gutierrez brand board:
   cream, butter, pink, gold, brown, black; Ivy Presto (logo and headings), Inter Bold (labels), Proxima Nova (body). */

:root {
  /* brand board colors */
  --cream: #FFFAF4;
  --butter: #FEF5B1;
  --pink: #FAC9E4;
  --gold: #BA9661;
  --brown: #43302E;
  --black: #121111;
  /* working names used through this file */
  --cream-2: #F7EEE2;
  --paper: #FFFAF4;
  --card: rgba(255, 250, 244, 0.92);
  --rose: #FAC9E4;
  --rose-2: #BA9661;
  --rose-ink: #43302E;
  --gold-2: #FEF5B1;
  --gold-soft: #FEF8D4;
  --ink: #121111;
  --ink-2: #43302E;
  --muted: #786965;
  --line: rgba(186, 150, 97, 0.32);
  --green: #BA9661;
  --amber: #FAC9E4;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(67, 48, 46, 0.10), 0 2px 6px rgba(67, 48, 46, 0.06);
  /* brand board fonts only */
  --serif: "Ivy Presto", "IvyPresto Headline", "Ivy Presto Headline", serif;
  --sans: "Proxima Nova", sans-serif;
  --label: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(250, 201, 228, 0.40) 0%, transparent 60%),
    radial-gradient(900px 600px at 0% 30%, rgba(254, 245, 177, 0.45) 0%, transparent 55%),
    var(--cream);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose-ink); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brown); color: var(--cream); padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }
.ic { width: 18px; height: 18px; flex: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: 0.01em; }

/* ---------- layout ---------- */
.app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "top top" "side main";
  gap: 18px;
  padding: 14px 18px 18px;
  min-height: 100vh;
}
.topbar { grid-area: top; }
.sidebar { grid-area: side; }
.main { grid-area: main; min-width: 0; outline: none; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 18px;
  background: var(--card); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 26px; padding: 10px 18px;
  box-shadow: var(--shadow);
}
.brandmark { display: flex; align-items: center; gap: 14px; flex: none; }
.brandmark .logo { height: 42px; width: auto; display: block; }
.brandmark .sep { width: 1px; height: 30px; background: var(--line); }
.brandmark .title { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.05; color: var(--ink-2); white-space: nowrap; }
.nav { display: flex; flex: none; gap: 2px; margin: 0 auto; background: rgba(255,255,255,0.7); border: 1px solid var(--line); padding: 5px; border-radius: 999px; }
.nav button { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; color: var(--ink-2); font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.nav button:hover { background: rgba(250, 201, 228, 0.45); }
.nav button.active { background: var(--brown); color: var(--cream); }
.badge { background: var(--rose); color: var(--rose-ink); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 8px; }
.nav button.active .badge { background: var(--gold-2); color: var(--ink); }
.searchbtn { display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,0.8); border: 1px solid var(--line); color: var(--muted); text-align: left; }
.searchbtn span { flex: 1; }
.searchbtn kbd, .palette kbd { font-family: var(--label); font-size: 11px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 7px; padding: 2px 7px; color: var(--muted); }
.iconbtn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.8); border: 1px solid var(--line); }
.iconbtn .pip { position: absolute; top: -3px; right: -3px; background: var(--brown); color: var(--cream); font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--rose), var(--gold-2)); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; color: var(--ink); border: 2px solid var(--cream); box-shadow: var(--shadow); flex: none; }
.avatar { position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 14px; align-self: start; position: sticky; top: 14px; }
.profile { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.profile .avatar { width: 62px; height: 62px; font-size: 22px; }
.profile strong { font-family: var(--serif); font-weight: 400; font-size: 18px; display: block; }
.profile small { color: var(--muted); display: block; }
.profile .script { font-family: var(--serif); color: var(--gold); font-size: 22px; line-height: 1.1; }
.menu { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; text-align: left; transition: background .2s; }
.menu button:hover { background: rgba(250, 201, 228, 0.4); }
.menu button.active { background: var(--rose); color: var(--ink); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 8px 6px; }
.quote { border-radius: var(--radius); padding: 22px 20px; min-height: 150px; background: linear-gradient(160deg, var(--pink), var(--butter)); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: flex-end; }
.quote p { font-family: var(--serif); font-size: 22px; line-height: 1.2; margin: 0; color: var(--ink-2); }
.quote .star { color: var(--brown); margin-top: 10px; }
.quote .star svg { width: 18px; height: 18px; display: block; }

/* ---------- shared cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card h3, .col h3 { font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 4px 16px; }
.pagehead h1 { font-size: 34px; line-height: 1.1; }
.pagehead p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--cream-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.sample { background: var(--pink); color: var(--brown); border-color: var(--gold); }
.chip.real { background: var(--butter); color: var(--brown); border-color: var(--gold); }
.chip.warn { background: var(--pink); color: var(--brown); border-color: var(--brown); }
.chip.gold { background: var(--butter); color: var(--brown); border-color: var(--gold); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: rgba(67, 48, 46, .3); flex: none; }
.dot.on { background: var(--gold); box-shadow: 0 0 0 3px rgba(186, 150, 97, .25); }
.dot.wait { background: var(--pink); border: 1.5px solid var(--brown); box-shadow: 0 0 0 3px rgba(250, 201, 228, .5); }
.dot.off { background: rgba(67, 48, 46, .3); }
.empl { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.mini { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--brown); border: 2px solid var(--cream); box-shadow: 0 1px 4px rgba(67,48,46,.18); flex: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--brown); color: var(--cream); font-weight: 700; }
.btn.ghost { background: rgba(255,255,255,.8); color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.foot { margin: 22px 6px 6px; color: var(--muted); font-size: 12.5px; }

/* ---------- office ---------- */
.office { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.mapcard { background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 10px; overflow: hidden; }
.map { position: relative; aspect-ratio: 1000 / 980; width: 100%; border-radius: 22px; background: radial-gradient(60% 55% at 50% 49%, #FFFAF4 0%, #FEEEF0 58%, #FDE4ED 100%); overflow: hidden; }
.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.links line { stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .75; vector-effect: non-scaling-stroke; animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }

.orb { position: absolute; left: 50%; top: 49.1%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 45%, #FFFAF4 0%, #FEF5B1 52%, #E4D08F 100%); box-shadow: 0 0 0 10px rgba(254, 245, 177, .6), 0 0 50px 18px rgba(186, 150, 97, .4); animation: breathe 5s ease-in-out infinite; z-index: 3; }
@keyframes breathe { 50% { box-shadow: 0 0 0 14px rgba(254,245,177,.55), 0 0 70px 26px rgba(186,150,97,.5); } }
.orb .in { padding: 8%; }
.orb .spark { color: var(--gold); line-height: 1; }
.orb .spark svg { width: 22px; height: 22px; display: block; margin: 0 auto; }
.orb h2 { font-size: clamp(15px, 1.9vw, 24px); letter-spacing: 0.08em; margin-top: 4px; }
.orb p { margin: 4px 0 0; font-size: clamp(10px, 1vw, 13px); color: var(--ink-2); }
.orb .count { margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: clamp(9px, .9vw, 12px); white-space: nowrap; }

.room { position: absolute; left: var(--x); top: var(--y); width: 24%; transform: translate(-50%, -50%); z-index: 2; }
.room-art { width: 100%; }
.room-art svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 10px 14px rgba(67, 48, 46, .16)); }
.room-label { position: absolute; left: 50%; top: -2%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; width: max-content; max-width: 96%; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 14px; padding: 7px 10px; box-shadow: var(--shadow); text-align: left; z-index: 5; transition: transform .2s, box-shadow .2s; }
.room-label:hover, .room.sel .room-label { transform: translateX(-50%) translateY(-2px); box-shadow: 0 12px 26px rgba(67, 48, 46, .2); border-color: var(--gold); }
.rl-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--butter); color: var(--brown); flex: none; }
.rl-ic .ic { width: 16px; height: 16px; }
.rl-txt { display: flex; flex-direction: column; min-width: 0; }
.rl-txt strong { font-family: var(--serif); font-weight: 400; font-size: clamp(11px, 1.25vw, 15px); line-height: 1.1; }
.rl-txt small { color: var(--muted); font-size: clamp(8.5px, .85vw, 11px); line-height: 1.15; }
.rl-meta { display: flex; align-items: center; gap: 6px; font-size: clamp(8.5px, .85vw, 11px); color: var(--ink-2); margin-top: 3px; white-space: nowrap; }
.rl-chev { color: var(--muted); }
.rl-chev .ic { width: 14px; height: 14px; }

/* people in the rooms (their arms and legs are moved by app.js) */
.person.sel .fig { filter: drop-shadow(0 0 3px rgba(186, 150, 97, .95)); }
.person:hover .fig { filter: brightness(1.07); }
.person .alert { animation: alertpulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes alertpulse { 50% { transform: scale(1.18); } }
.orb.pulse { animation: orbpulse .9s ease-out; }
@keyframes orbpulse { 0% { box-shadow: 0 0 0 10px rgba(254,245,177,.6), 0 0 50px 18px rgba(186,150,97,.4); } 35% { box-shadow: 0 0 0 20px rgba(254,245,177,.8), 0 0 90px 34px rgba(186,150,97,.65); } 100% { box-shadow: 0 0 0 10px rgba(254,245,177,.6), 0 0 50px 18px rgba(186,150,97,.4); } }
.person { cursor: pointer; }
.person .shadow { fill: rgba(67, 48, 46, .22); }
.person .ring { fill: none; stroke: var(--gold); stroke-width: 2; opacity: .85; transform-origin: center; transform-box: fill-box; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.person .tagwrap { opacity: 0; transition: opacity .15s; pointer-events: none; }
.person:hover .tagwrap, .person:focus-visible .tagwrap, .person.sel .tagwrap { opacity: 1; }
.person .tagwrap rect { fill: var(--brown); }
.person .tagwrap text { fill: var(--cream); font: 700 9.5px var(--sans); text-anchor: middle; }
.person .stateflag { fill: var(--pink); }
.open-desk { fill: none; stroke: var(--rose-ink); stroke-width: 1.2; stroke-dasharray: 3 3; }
.open-desk-t { fill: var(--rose-ink); font: 700 9px var(--sans); text-anchor: middle; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 8px 4px; color: var(--muted); font-size: 12.5px; align-items: center; }
.legend .item { display: inline-flex; align-items: center; gap: 6px; }

/* right column */
.rightcol { display: flex; flex-direction: column; gap: 14px; }
.today h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.today .date { color: var(--muted); font-size: 13px; font-family: var(--sans); }
.greet { font-family: var(--serif); font-size: 32px; line-height: 1.1; color: var(--ink-2); margin: 8px 0 2px; }
.today p { margin: 0 0 12px; color: var(--muted); }
.stat { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.stat .si { width: 34px; height: 34px; border-radius: 50%; background: var(--rose); color: var(--rose-ink); display: grid; place-items: center; flex: none; }
.stat b { margin-left: auto; font-size: 12px; background: var(--butter); color: var(--brown); border: 1px solid var(--gold); padding: 2px 8px; border-radius: 999px; }
.live-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.live-row .t { flex: 1; min-width: 0; }
.live-row .t b { display: block; font-size: 13.5px; }
.live-row .t span { color: var(--muted); font-size: 13px; }
.live-row .ago { color: var(--muted); font-size: 12px; white-space: nowrap; }
.minimap { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-top: 10px; }
.minimap button { display: flex; align-items: center; gap: 8px; text-align: left; font-size: 12.5px; padding: 4px 6px; border-radius: 8px; }
.minimap button:hover { background: rgba(250, 201, 228,.4); }
.minimap i { width: 14px; height: 14px; transform: rotate(45deg) skew(10deg, 10deg); border-radius: 3px; flex: none; border: 1px solid var(--gold); }

/* ---------- team ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.ecard { text-align: left; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s; }
.ecard:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(67,48,46,.16); }
.ecard .top { display: flex; align-items: center; gap: 12px; }
.ecard .face { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: var(--brown); border: 3px solid var(--cream); box-shadow: var(--shadow); flex: none; }
.ecard h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: 0; text-transform: none; }
.ecard .role { color: var(--muted); font-size: 13px; }
.ecard p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sync { margin-top: 16px; }
.sync .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.sync ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- tasks ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.col h3 { font-size: 17px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.task { display: block; width: 100%; text-align: left; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; margin-bottom: 8px; box-shadow: 0 2px 6px rgba(67,48,46,.08); }
.task.static { cursor: default; display: block; text-align: left; overflow-wrap: anywhere; }
.task.static .status { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.task.static .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.task:hover { border-color: var(--rose-2); }
.task b { display: block; font-size: 13.5px; margin-bottom: 8px; }
.task .meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.empty { color: var(--muted); font-size: 13px; padding: 6px 2px; }

/* ---------- approvals ---------- */
.pipe { display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 44px minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr); gap: 14px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--brown); color: var(--cream); display: grid; place-items: center; font-weight: 800; }
.step .gate { font-size: 13px; }
.step .gate small { display: block; font-family: var(--label); color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }

/* ---------- calendar ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 16px; padding: 10px; min-height: 190px; }
.day.today { background: var(--cream); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(250, 201, 228,.6); }
.day h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; }
.day h4 span { color: var(--muted); font-weight: 600; }
.ev { background: var(--butter); border: 1px solid rgba(186, 150, 97, .6); border-radius: 10px; padding: 6px 8px; margin-bottom: 6px; font-size: 12px; }
.ev b { display: block; }
.ev small { color: var(--muted); }
.ev.rose { background: var(--pink); border-color: rgba(186, 150, 97, .6); }
.ev.key { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.keydates { display: grid; gap: 10px; margin-top: 14px; }
.kd { display: flex; align-items: center; gap: 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.kd .when { font-family: var(--serif); font-size: 20px; min-width: 96px; }
.kd small { display: block; color: var(--muted); }

/* ---------- brain, brand ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cat b.num { font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1; display: block; margin: 6px 0; }
.cat .meter { height: 6px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.cat .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--gold)); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.promptbox { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 10px 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; font-size: 13.5px; }
.sw { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.sw div { width: 112px; }
.sw i { display: block; height: 62px; border-radius: 14px; border: 1px solid var(--line); box-shadow: inset 0 0 0 3px rgba(255,255,255,.4); }
.sw small { display: block; margin-top: 4px; font-size: 12px; }
.sw small span { color: var(--muted); }
.list { margin: 8px 0 0; padding-left: 20px; }
.list li { margin: 4px 0; }
.planned { max-width: 760px; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(67, 48, 46, .3); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: #fffaf4; border-left: 1px solid var(--line); box-shadow: -18px 0 40px rgba(67, 48, 46, .2); z-index: 40; transform: translateX(105%); transition: transform .28s ease; overflow: auto; padding: 22px; }
.drawer.open { transform: none; }
.drawer .close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); display: grid; place-items: center; }
.drawer h2 { font-size: 28px; margin: 6px 0 4px; }
.drawer .lead { color: var(--muted); margin: 0 0 14px; }
.drawer h4 { margin: 18px 0 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--label); }
.drawer p { margin: 0 0 6px; }
.drawer .face { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 32px; border: 4px solid var(--cream); box-shadow: var(--shadow); }
.drawer .listbtn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.drawer .listbtn:hover { border-color: var(--rose-2); }
.callout { background: rgba(254, 245, 177, .65); border: 1px solid rgba(186, 150, 97, .6); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-top: 10px; }

/* ---------- palette ---------- */
.palette { position: fixed; inset: 0; background: rgba(67, 48, 46, .38); z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.palette[hidden], .scrim[hidden] { display: none; }
.palette-box { width: min(620px, 92vw); background: #fffaf4; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(67, 48, 46, .3); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-input input { flex: 1; border: 0; background: none; font: inherit; font-size: 16px; outline: none; color: var(--ink); }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: 52vh; overflow: auto; }
.palette-list li button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: left; }
.palette-list li button:hover, .palette-list li button.hot { background: rgba(250, 201, 228,.45); }
.palette-list small { color: var(--muted); display: block; font-size: 12.5px; }
.palette-list .kind { margin-left: auto; font-family: var(--label); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.palette-head { padding: 8px 12px 2px; font-family: var(--label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--brown); color: var(--cream); padding: 10px 16px; border-radius: 999px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 80; font-weight: 600; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- sales dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi small { color: var(--muted); display: block; }
.kpi b.num { font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1; display: block; margin: 8px 0 4px; }
.goalbar { height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin-top: 8px; border: 1px solid var(--line); }
.goalbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--gold)); }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 700 10px var(--sans); fill: var(--muted); paint-order: stroke; stroke: var(--cream); stroke-width: 3px; stroke-linejoin: round; }
.chart .bar { fill: var(--gold); }
.chart .bar.part { fill: var(--pink); stroke: var(--gold); stroke-width: 1.2; }
.chart .goalline { stroke: var(--brown); stroke-dasharray: 5 4; stroke-width: 1.3; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.hrow { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; margin: 9px 0; font-size: 13.5px; }
.meter { height: 6px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--gold)); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; color: var(--muted); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td .meter { margin-top: 5px; max-width: 320px; }
.tbl .n { text-align: right; white-space: nowrap; }
@media (max-width: 820px) { .hrow { grid-template-columns: 110px 1fr auto; } .tbl { font-size: 12.5px; } }

/* ---------- login gate ---------- */
body.gated .app, body.gated .skip { display: none; }
.login-gate { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; z-index: 200; overflow: auto;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(250, 201, 228, 0.55) 0%, transparent 60%),
    radial-gradient(900px 600px at 0% 30%, rgba(254, 245, 177, 0.6) 0%, transparent 55%),
    var(--cream); }
.login-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 26px 24px; text-align: center; }
.login-logo { height: 54px; width: auto; max-width: 100%; display: block; margin: 0 auto 8px; }
.login-title { font-family: var(--serif); font-size: 26px; margin-bottom: 6px; }
.login-sub { color: var(--muted); margin: 6px 0 16px; }
.login-form { display: grid; gap: 12px; text-align: left; }
.login-form label { display: grid; gap: 4px; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.login-form input[type=email], .login-form input[type=password], .login-form input[type=text], .login-form input[type=file] { font: inherit; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 15px; color: var(--ink); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; width: 100%; }
.login-form label.check { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: none; }
.login-form .btn { justify-content: center; padding: 11px 14px; }
.login-form .btn[disabled] { opacity: .6; cursor: default; }
.login-msg { min-height: 1.3em; margin: 0; font-size: 13.5px; color: var(--brown); }
.login-msg.good { color: var(--ink-2); background: rgba(254, 245, 177, .65); border: 1px solid rgba(186, 150, 97, .6); border-radius: 12px; padding: 8px 10px; }
.login-msg:not(:empty):not(.good) { background: rgba(250, 201, 228, .55); border: 1px solid var(--gold); border-radius: 12px; padding: 8px 10px; }
.linkbtn { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; justify-self: center; }
.signed { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.signed small { color: var(--muted); }
.formrow { display: grid; gap: 10px; max-width: 420px; margin-top: 10px; }
.formrow input { font: inherit; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; width: 100%; }
.formrow label { display: grid; gap: 4px; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.formrow label input { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 400; font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 1560px) {
  .brandmark .logo { height: 38px; }
  .nav button { padding: 9px 12px; }
  .searchbtn { min-width: 0; }
  .searchbtn span, .searchbtn kbd { display: none; }
  .searchbtn { width: 42px; height: 42px; padding: 0; justify-content: center; }
}
@media (max-width: 1280px) {
  .office { grid-template-columns: 1fr; }
  .rightcol { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .searchbtn { min-width: 0; }
  .searchbtn span { display: none; }
}
@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; grid-template-areas: "top" "side" "main"; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr; }
  .quote, .profile { display: none; }
  .menu { display: flex; flex-wrap: wrap; gap: 4px; }
  .menu button { width: auto; }
  .menu hr { display: none; }
  .topbar { flex-wrap: wrap; }
  .nav { order: 5; width: 100%; overflow-x: auto; margin: 0; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { grid-template-columns: 40px 1fr; }
  .two, .sync .cols { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .map { aspect-ratio: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 12px; background: transparent; }
  .links { display: none; }
  .orb { position: static; transform: none; width: 220px; margin: 0 auto; grid-column: 1 / -1; }
    .room { position: relative; left: auto; top: auto; transform: none; width: 100%; }
  .room-label { position: relative; left: auto; top: auto; transform: none; margin: 0 auto 6px; }
  .room-label:hover, .room.sel .room-label { transform: translateY(-2px); }
  .board { grid-template-columns: 1fr; }
  .brandmark { flex-direction: column; align-items: flex-start; gap: 4px; }
  .brandmark .sep { display: none; }
  .brandmark .title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
