/* Live office: a daylight floor plan on the left, the owner's live panel on the right; stacks on phones. */
:root {
  color-scheme: light;
  --bg: #EDF0F5; --card: #FFFFFF; --line: #DCE2EC; --ink: #1C2333; --muted: #5D6880;
  --accent: #3C58D6; --honey: #E3A13A; --good: #1E9A61; --warn: #C27F10; --bad: #D24646; --info: #3C7BD6;
  --display: "Sora", "Segoe UI", system-ui, sans-serif; --body: "Figtree", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body.of { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 14px; }
.of .wrap { max-width: 1900px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 16px; }
.of header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.of .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.of .hex { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; flex: none; }
.of h1 { font-family: var(--display); font-size: 24px; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.of .sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.of .head-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.of .live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--good); background: #E3F5EC; border: 1px solid #BFE6D1; padding: 8px 14px; border-radius: 99px; }
.of .live.off { color: var(--warn); background: #FBF0DC; border-color: #F0D9A8; }
.of .live i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: of-pulse 1.6s infinite; }
@keyframes of-pulse { 0% { box-shadow: 0 0 0 0 rgba(30,154,97,0.45); } 70% { box-shadow: 0 0 0 9px rgba(30,154,97,0); } 100% { box-shadow: 0 0 0 0 rgba(30,154,97,0); } }
.of .btn { font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; text-decoration: none; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; }
.of .btn:hover { border-color: #B8C2D6; }
.of .btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.of .btn:focus-visible, .of input:focus-visible { outline: 3px solid #9DB0F0; outline-offset: 2px; }
.of .main { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.of .stage { flex: 1 1 100%; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.of .scroller { overflow-x: auto; border-radius: 12px; }
.of canvas { display: block; width: 100%; min-width: 1100px; height: auto; cursor: pointer; border-radius: 12px; }
.of .hint { color: var(--muted); font-size: 13px; padding: 10px 6px 2px; margin: 0; line-height: 1.5; }
.of aside { flex: 1 1 100%; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; align-items: start; }
.of .card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.of .card h2 { font-family: var(--display); font-size: 16px; margin: 0 0 12px; letter-spacing: -0.01em; }
.of .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.of .stat { background: #F5F7FB; border: 1px solid #E6EAF2; border-radius: 12px; padding: 10px 12px; }
.of .stat b { display: block; font-family: var(--display); font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.of .stat span, .of .trio span { font-size: 12.5px; color: var(--muted); }
.of .big { margin: 0 0 8px; } .of .big b { font-family: var(--display); font-size: 30px; } .of .big span { color: var(--muted); }
.of .bar3 { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: #E6EAF2; }
.of .bar3 i:nth-child(1) { background: var(--good); } .of .bar3 i:nth-child(2) { background: #8DB3EA; } .of .bar3 i:nth-child(3) { background: var(--bad); }
.of .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.of .trio b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.of .t-good { color: var(--good); } .of .t-info { color: var(--info); } .of .t-bad { color: var(--bad); }
.of .small { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.of .check { margin-top: 14px; border-top: 1px solid #EDF0F5; padding-top: 12px; }
.of .check label { font-weight: 700; font-size: 13.5px; display: block; margin-bottom: 6px; }
.of .check .row { display: flex; gap: 8px; }
.of .check input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
.of .ins { margin: 0 0 10px; font-size: 15px; line-height: 1.4; font-weight: 600; }
.of .bars { display: flex; align-items: flex-end; gap: 3px; height: 72px; background: #F5F7FB; border: 1px solid #E6EAF2; border-radius: 10px; padding: 8px; }
.of .bars i { flex: 1; background: #B9C8F0; border-radius: 3px 3px 0 0; min-height: 2px; }
.of .bars i.top { background: var(--accent); }
.of .barlab { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 4px 2px 0; }
.of .who { display: flex; gap: 12px; align-items: center; }
.of .avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; font-size: 18px; background: var(--ink); }
.of .who strong { font-family: var(--display); font-size: 16px; display: block; line-height: 1.2; }
.of .who small { color: var(--muted); font-size: 13px; }
.of .task { margin-top: 12px; background: #F5F7FB; border: 1px solid #E6EAF2; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.of .feed, .of .typos { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.of .feed li, .of .typos li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid #EDF0F5; font-size: 14px; line-height: 1.4; }
.of .feed li:first-child, .of .typos li:first-child { border-top: 0; }
.of .feed i { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }
.of .feed time { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.of .typos s { color: var(--bad); text-decoration-thickness: 1px; } .of .typos b { color: var(--good); font-weight: 600; }
.of .typos li { flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.of .tablebox { overflow-x: auto; max-height: 320px; overflow-y: auto; }
.of table.users { width: 100%; border-collapse: collapse; font-size: 13px; }
.of table.users th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 6px; border-bottom: 1px solid #EDF0F5; position: sticky; top: 0; background: #fff; }
.of table.users td { padding: 7px 6px; border-bottom: 1px solid #F2F4F8; vertical-align: top; }
.of table.users small { display: block; color: var(--muted); }
.of .legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); padding: 8px 6px 0; }
.of .legend span { display: inline-flex; align-items: center; gap: 6px; }
.of .legend i { width: 9px; height: 9px; border-radius: 50%; }
.of .d-good { background: var(--good); } .of .d-info { background: var(--info); } .of .d-warn { background: var(--warn); } .of .d-bad { background: var(--bad); }
.of .empty { color: var(--muted); font-size: 13px; }
.of .d-sq { background: #F08A24; border-radius: 2px !important; }
