/* Same tokens as lanirsoft-web/static/style.css. */
:root { --ink: #1d2433; --muted: #5b6475; --line: #e3e6ec; --accent: #0f7b6c; --bg: #fbfbf9; --card: #ffffff; --error: #b3261e; }
@media (prefers-color-scheme: dark) {
  :root { --ink: #e8eaee; --muted: #a3aab8; --line: #2c3240; --accent: #4fc3b0; --bg: #14171d; --card: #1b1f27; --error: #f2b8b5; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
header, main { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
main { padding-top: 12px; padding-bottom: 40px; }
.brand { font-weight: 700; font-size: 1.15rem; }
.muted { color: var(--muted); }
.error { color: var(--error); }
button { font: inherit; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
button.signout { background: transparent; color: var(--accent); margin-top: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.card h2 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 4px 0; }
.card.soon { opacity: .75; }
a { color: var(--accent); }
a.card.link { color: inherit; text-decoration: none; display: block; }
a.card.link:hover, a.card.link:focus-visible { border-color: var(--accent); }
h2 { font-size: 1.15rem; margin: 24px 0 8px; }
.list { padding-left: 18px; margin: 0; }
.list li { margin: 6px 0; }
.app-head h3 { margin: 0; font-size: 1.05rem; }
.app-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pct { font-size: 1.6rem; font-weight: 700; }
.small { font-size: .875rem; }
.tag { display: inline-block; font-size: .8rem; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; margin-left: 6px; }
.due-late { color: var(--error); }
details { margin-top: 16px; }
summary { cursor: pointer; font-weight: 600; }

/* Office view (CEO 2026-11-04): a dark "office floor", whatever the system theme. CSS only, no images. */
main:has(> .office:not([hidden])) { max-width: 1180px; }
.office { --o-bg: #0d1120; --o-floor: #141a2e; --o-desk: #1d2440; --o-ink: #e6ebff; --o-dim: #8a93b8; --o-on: #3ef0b4; --o-err: #ff6b8a;
  background: radial-gradient(1200px 500px at 50% -10%, #1b2550 0%, var(--o-bg) 60%); color: var(--o-ink);
  margin: 0 -20px; padding: 12px 20px 28px; border-radius: 0 0 16px 16px; }
.office a { color: var(--o-on); }
.office h2 { color: var(--o-dim); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 22px 0 10px; }
.o-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.o-top h1 { margin: 4px 0; }
.o-live { font-size: .85rem; color: var(--o-dim); border: 1px solid #2a3358; border-radius: 999px; padding: 2px 10px; }
.o-live.on { color: var(--o-on); border-color: #1f6f5a; box-shadow: 0 0 12px #3ef0b433; }
.o-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin-top: 10px; }
.o-stat { background: #121833; border: 1px solid #263063; border-radius: 12px; padding: 10px 14px; box-shadow: inset 0 0 18px #4f6bff14; }
.o-num { display: block; font-size: 1.9rem; font-weight: 800; color: #9fb4ff; text-shadow: 0 0 14px #6f8bff66; }
.o-lbl { font-size: .8rem; color: var(--o-dim); }
.o-floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(165px, 100%), 1fr)); gap: 12px;
  background: repeating-linear-gradient(90deg, #ffffff06 0 1px, transparent 1px 40px), repeating-linear-gradient(0deg, #ffffff06 0 1px, transparent 1px 40px), var(--o-floor);
  border: 1px solid #222a4a; border-radius: 14px; padding: 12px; }
.o-desk { --hue: #6f8bff; background: #11162b; border: 1px solid #252e52; border-radius: 12px; padding: 10px; transition: border-color .3s, box-shadow .3s; }
.o-desk.is-working { border-color: var(--hue); box-shadow: 0 0 18px color-mix(in srgb, var(--hue) 35%, transparent); }
.hue-0 { --hue: #ff7a59; } .hue-1 { --hue: #3ef0b4; } .hue-2 { --hue: #5cc8ff; } .hue-3 { --hue: #ff5c8a; }
.hue-4 { --hue: #ffc94d; } .hue-5 { --hue: #b48cff; } .hue-6 { --hue: #7ee36b; } .hue-7 { --hue: #ff9de2; }
.o-scene { position: relative; height: 92px; }
.o-screen { position: absolute; left: 50%; top: 4px; width: 64px; height: 40px; transform: translateX(-50%); background: #070a16;
  border: 3px solid #2b3459; border-radius: 6px; padding: 6px 6px 0; overflow: hidden; }
.o-line { display: block; height: 4px; margin-bottom: 5px; border-radius: 2px; background: #2b3459; width: 60%; }
.o-line:nth-child(2) { width: 85%; } .o-line:nth-child(3) { width: 40%; }
.is-working .o-screen { border-color: var(--hue); box-shadow: 0 0 14px color-mix(in srgb, var(--hue) 55%, transparent); }
.is-working .o-line { background: var(--hue); animation: o-type 1.6s steps(6) infinite; }
.is-working .o-line:nth-child(2) { animation-delay: .4s; } .is-working .o-line:nth-child(3) { animation-delay: .8s; }
.o-agent { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); width: 40px; height: 40px; }
.o-head { position: absolute; left: 10px; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #f1c9a5; box-shadow: inset 0 6px 0 var(--hue); }
.o-body { position: absolute; left: 4px; top: 18px; width: 32px; height: 20px; border-radius: 10px 10px 4px 4px; background: var(--hue); }
.is-working .o-agent { animation: o-bob .9s ease-in-out infinite; }
.o-desk:not(.is-working) .o-agent { filter: saturate(.35) brightness(.75); }
.o-table { position: absolute; left: 6px; right: 6px; bottom: 0; height: 16px; border-radius: 6px; background: #2a3260; box-shadow: 0 4px 0 #1a2042; }
.o-zz { position: absolute; right: 14px; top: 34px; font-size: .75rem; color: var(--o-dim); animation: o-zz 2.4s ease-in-out infinite; }
.o-name { margin: 8px 0 0; font-weight: 700; text-align: center; }
.o-role { margin: 0; font-size: .75rem; color: var(--o-dim); text-align: center; }
.o-doing { margin: 8px 0 0; font-size: .8rem; text-align: center; border-radius: 8px; padding: 4px 6px; background: #1a2142; color: var(--o-dim);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.is-working .o-doing { color: #0b0f1d; background: var(--hue); font-weight: 600; }
.o-last { margin: 6px 0 0; font-size: .72rem; color: var(--o-dim); text-align: center; overflow-wrap: anywhere; }
.o-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; margin-top: 8px; }
.o-panel { background: #11162b; border: 1px solid #252e52; border-radius: 12px; padding: 4px 14px 12px; }
.o-list { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.o-list li { padding: 6px 0; border-bottom: 1px solid #1f2747; overflow-wrap: anywhere; }
.o-list li:last-child { border-bottom: 0; }
.o-list .muted { color: var(--o-dim); }
.office .tag { border-color: #2a3358; color: var(--o-dim); }
.office .tag.on { color: var(--o-on); border-color: #1f6f5a; }
.office button.signout { color: var(--o-on); border-color: var(--o-on); }
@media (max-width: 520px) {
  .o-floor, .o-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; }
  .o-stats { padding: 0; }
  .o-desk { padding: 8px 6px; }
  .o-name { font-size: .9rem; }
  .o-num { font-size: 1.5rem; }
}
@keyframes o-type { 0% { width: 10%; } 100% { width: 90%; } }
@keyframes o-bob { 50% { transform: translateX(-50%) translateY(-2px); } }
@keyframes o-zz { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: .9; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .office * { animation: none !important; } }
