/* fonts kept on this site (vendor/fonts, SIL Open Font License), so visitors don't touch Google */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(vendor/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(vendor/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(vendor/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(vendor/fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url(vendor/fonts/silkscreen-latin-400-normal.woff2) format('woff2'); }

:root {
  --bg: #17141f; --panel: #1e1a28; --panel-2: #262132; --line: #352f45; --text: #f1eef8; --muted: #a9a3b8;
  --accent: #f2c14e; --danger: #d0483c; --good: #3fae6a;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 "Inter", system-ui, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.app { display: grid; grid-template-columns: 1fr 360px; height: 100vh; }
.stage { position: relative; min-width: 0; }
#office { width: 100%; height: 100%; display: block; }
.stage-hint { position: absolute; left: 16px; bottom: 10px; margin: 0; font-size: 12px; color: var(--muted); }
.tooltip { position: absolute; pointer-events: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; max-width: 220px; z-index: 5; }

.panel { display: flex; flex-direction: column; gap: 10px; min-height: 0; background: var(--panel); border-left: 1px solid var(--line); padding: 16px 0; }
.panel-head { padding: 0 16px; }
h1 { font: 400 18px "Silkscreen", monospace; letter-spacing: .04em; margin: 0; }
h1 span { color: var(--accent); }
.panel-head p { margin: 2px 0 0; font-size: 12px; }
h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.section { padding: 0 16px; }
.section.grow { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.banner { margin: 0 16px; padding: 8px 10px; border-radius: 8px; background: #3a3220; color: #f6dc9a; font-size: 12px; }
.count { background: var(--accent); color: #1a1420; border-radius: 9px; padding: 0 6px; font-size: 11px; }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
/* status colours (classes, not inline styles, so the site's security policy can forbid inline styles) */
.dot.s-available { background: #3fae6a; }
.dot.s-busy, .dot.s-call { background: #d0483c; }
.dot.s-break, .dot.s-away { background: #f2a33a; }
.dot.s-off { background: #8d8a99; }
.dot.s-meeting { background: #6f8fd6; }
.me-bar { display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; }
.me-label { font-weight: 600; }
select, input, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; }
.me-bar select { background: transparent; }
select option { background: var(--panel-2); }
button.small { padding: 4px 10px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; }
button.small:hover { border-color: #4a4460; }
.me-bar .small { margin-left: auto; }
.me-bar { flex-wrap: wrap; }
.me-bar .go-to { margin-left: auto; font-size: 13px; max-width: 120px; }
.me-bar .small:not([hidden]) + .go-to { margin-left: 0; }
.linkish { background: none !important; border: 0 !important; color: var(--accent); padding: 0 4px !important; text-decoration: underline; }

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.people button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; text-align: left; }
.people button:hover, .people button.on { border-color: var(--accent); }
.pname { font-weight: 600; }
.people .muted { margin-left: auto; font-size: 12px; }
.badge { background: var(--accent); color: #1a1420; border-radius: 9px; padding: 0 6px; font-size: 11px; font-weight: 700; }

.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.chat-head h2 { margin: 0; }
.chat-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.messages { flex: 1; min-height: 120px; overflow-y: auto; list-style: none; margin: 0; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 85%; padding: 6px 9px; border-radius: 9px; background: var(--panel-2); align-self: flex-start; }
.msg.mine { align-self: flex-end; background: #2f3b5a; }
.msg .meta { font-size: 11px; color: var(--muted); }
.msg .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.day { align-self: center; font-size: 11px; color: var(--muted); }
.chat-form { display: flex; gap: 6px; margin-top: 6px; }
.chat-form input { flex: 1; min-width: 0; }
.chat-form button, .primary { background: var(--accent); color: #1a1420; border: 0; border-radius: 7px; padding: 6px 14px; font-weight: 600; }
.danger { background: var(--danger); color: #fff; border: 0; border-radius: 7px; padding: 6px 14px; font-weight: 600; }

.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 26vh; overflow-y: auto; }
.note { background: #fff3a8; color: #1a1420; border-radius: 3px; padding: 8px 10px; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.note .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.note .meta { font-size: 11px; opacity: .75; margin-top: 4px; }
.note .linkish { color: #6b4b00; }
.panel-foot { margin-top: auto; padding: 0 16px; display: flex; justify-content: space-between; font-size: 12px; }
.panel-foot a { color: var(--muted); }

.call-bar { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--accent); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.5); z-index: 20; }
.call-bar button { border-radius: 7px; padding: 6px 12px; border: 1px solid var(--line); background: var(--panel); }
.call-bar .primary { background: var(--good); color: #fff; border: 0; }

.call-bar { left: calc((100% - 360px) / 2); max-width: calc(100% - 392px); flex-wrap: wrap; justify-content: center; }
.call-bar button { white-space: nowrap; }
@media (max-width: 820px) { .call-bar { left: 12px; right: 12px; max-width: none; transform: none; } }
.call-bar button:disabled { opacity: .5; cursor: default; }
.call-bar button.on { border-color: var(--accent); color: var(--accent); }
.room-bar { border-color: #6f8fd6; }
.room-bar:not([hidden]) ~ .call-bar:not([hidden]), .call-bar:not([hidden]) ~ .room-bar:not([hidden]) { top: 70px; }

/* your status note, and the pop-up and sound switches under it */
.me-note { flex: 1 0 100%; min-width: 0; font-size: 13px; padding: 5px 8px; }
.alert-tools { display: flex; align-items: center; gap: 8px; margin: -4px 16px 0; font-size: 12px; flex-wrap: wrap; }
.alert-tools .linkish { margin-left: auto; font-size: 12px; }
.people .pnote { display: block; font-size: 12px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people .who { min-width: 0; flex: 1; }
.people .who + .muted { margin-left: 0; }
.tooltip .tnote { font-style: italic; }

/* someone's shared screen, over the floor */
.screen-view { position: absolute; right: 14px; bottom: 34px; width: min(46%, 560px); background: #0d0b12; border: 1px solid var(--accent); border-radius: 10px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.5); z-index: 6; display: flex; flex-direction: column; }
.screen-view.big { inset: 10px; width: auto; }
.screen-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--panel-2); font-size: 13px; }
.screen-head span { margin-right: auto; font-weight: 600; }
.screen-view video { width: 100%; flex: 1; min-height: 0; background: #000; display: block; object-fit: contain; }

.dlg { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; width: min(420px, calc(100vw - 32px)); padding: 16px; }
.dlg::backdrop { background: rgba(0,0,0,.55); }
.dlg h2 { font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--text); }
.dlg textarea { width: 100%; resize: vertical; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.dlg-foot button:not(.primary) { background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px; }

.sign-in { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(15,12,22,.92); z-index: 30; padding: 16px; }
.card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; }
.card > div { display: grid; gap: 8px; }
.card p { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 14px; z-index: 40; max-width: calc(100vw - 32px); }

@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 45vh 1fr; height: auto; min-height: 100vh; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .stage-hint { display: none; }
}
