/* Footway Design System dark theme, v3.22.0 (design.footway.com). */
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #0a0a0a;
  --surface: #000;
  --foreground: #f5f5f5;
  --secondary: #d8d8d8;
  --muted: #a3a3a3;
  --panel-border: #3a3a3a;
  --border: #555;
  --divider: #2f2f2f;
  --primary: #be64ff;
  --primary-bright: #e6c4ff;
  --success: #9df3bf;
  --warning: #f7dc9c;
  --danger: #ffb0a8;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  background: var(--page);
  color: var(--foreground);
  font: 15px/1.45 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, input, textarea { border-radius: 0; appearance: none; }
button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 42px; padding: 9px 14px; border: 1px solid var(--border);
  background: var(--surface); color: var(--secondary);
  font: 700 12px/1.35 var(--mono); cursor: pointer;
}
button:hover:enabled, summary:hover { color: var(--foreground); background: #242424; }
button[aria-busy=true] { cursor:progress; opacity:.7; }
button:disabled { color: #858585; border-color: var(--divider); cursor: default; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary-bright); outline-offset: 3px;
}
[data-icon] .icon { flex: none; width: 18px; height: 18px; }
button.quiet { background: transparent; border-color: transparent; }
button.icon-only { width: 42px; padding: 0; }
button.primary { background:#251529; color:var(--primary-bright); border-color:var(--primary); text-transform:uppercase; }
button.primary:hover:enabled { background:#39213f; color:#f4e6ff; }
button[aria-pressed=true], button[aria-expanded=true] { color: var(--primary-bright); border-color: var(--primary); background: #281734; }
button.danger { color: var(--danger); border-color: #794740; background: #281514; }
button.danger:hover:enabled { background: #472421; }
button.attention { color: var(--warning); border-color: #836e43; }
.mast { display: flex; align-items: center; gap: 18px; min-height: 62px; padding: 8px clamp(16px, 3vw, 48px); border-bottom: 1px solid var(--panel-border); background: var(--surface); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font: 700 17px/1.2 var(--mono); letter-spacing: -.055em; }
.product-mark { display: grid; place-items: center; width: 29px; height: 29px; color: var(--primary-bright); background: #291834; box-shadow: inset 0 0 0 1px #76528f; }
.crumb, #currentRoom { color: var(--muted); font: 700 13px/1.35 var(--mono); }
#currentRoom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-tools { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.status { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--secondary); font: 700 12px var(--mono); text-transform: capitalize; }
.status::before { content: ""; width: 9px; height: 9px; border-radius:50%; border:1px solid var(--muted); background: #ffffff18; }
.status[data-state=connected]::before { background:#3ce68c50; border-color:#3ce68c; }
.status:is([data-state=connecting],[data-state=rejoining],[data-state=reconnecting],[data-state=signalReconnecting])::before { background: #ffcd3c; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(16px,3vw,48px); border-bottom: 1px solid var(--panel-border); background: #181818; color: var(--secondary); }
.banner[data-kind=error] { color: var(--danger); background: #291514; }
.banner[data-kind=warn] { color: var(--warning); background: #262014; }
.banner[data-kind=ok] { color: var(--success); }
.workspace { flex: 1; min-width: 0; padding: clamp(12px,2vw,32px); display: flex; justify-content: center; align-items: stretch; gap: 16px; }
.call { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: center; }
.room { width: 100%; min-width: 0; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.tiles[data-cols="1"] { grid-template-columns: minmax(0,1fr); width: min(100%, calc((100dvh - 218px) * 1.7778)); margin-inline:auto; }
.tiles[data-cols="3"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--panel-border); background: #111; }
body[data-idle=false] .call:not(.focused) .tiles[data-count="2"] .media { aspect-ratio:4/3; }
.tile.speaking { border-color: #3ce68c; box-shadow: inset 0 0 0 1px #3ce68c; }
.media { width: 100%; position: relative; aspect-ratio: 16 / 9; min-height: 80px; max-height: calc(100dvh - 208px); background: #090909; }
.media video { position: absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.tile[data-kind=camera] .media video { object-fit:cover; }
.stage .tile[data-kind=camera] .media video { object-fit: contain; }
.tile.local[data-kind=camera] .media video { transform:scaleX(-1); }
.tile:not(.live) video, .tile.live:not(.loading) .avatar { visibility:hidden; }
.media-message { color:var(--secondary); font-size:13px; }
.tile[data-kind=screen] .monogram .icon { width:42%; height:42%; }
.stage .tile[data-kind=screen] footer { position:relative; background:#111; text-shadow:none; padding:3px 8px; border-top:1px solid var(--divider); }
.stage .tile[data-kind=screen] .media { max-height:calc(100dvh - 232px); }
.avatar, .empty {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
  background-color: #141215;
  background-image: linear-gradient(140deg, #30233660, transparent 60%), radial-gradient(#ffffff12 .7px, transparent .8px);
  background-size: 100% 100%, 12px 12px;
}
.avatar { position:absolute; inset:0; }
.monogram { display: grid; place-items: center; width: clamp(48px,6.3vw,100px); aspect-ratio: 1; border-radius: 50%; color: var(--primary-bright); background: #37273f; font: 700 clamp(20px,2.2vw,36px)/1 var(--mono); letter-spacing:-.045em; }
[data-tone="neutral"] .avatar { background-color: #141414; background-image: radial-gradient(#ffffff12 .7px, transparent .8px); background-size:12px 12px; }
[data-tone="neutral"] .monogram { background:#333; color:#eee; }
.tile footer { position:absolute; bottom:0; left:0; right:0; display:flex; align-items:center; gap:8px; padding:8px 12px; color:#fff; background:linear-gradient(transparent,#000c); text-shadow:0 1px 3px #000; font:700 13px/1.4 var(--mono); }
.tile .name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tile .badges { color:var(--secondary); font:12px system-ui,sans-serif; }
.tile .pin { margin-left:auto; width:38px; min-height:36px; padding:5px; background:#0008; border-color:#ffffff38; color:#fff; }
.tile .pin[aria-pressed=true] { color:var(--primary-bright); border-color:var(--primary); }
.tile .filmstrip-toggle { margin-left:auto; min-height:35px; padding:6px 9px; font-size:11px; color:#fff; background:#0009; border-color:#ffffff4d; }
.tile .filmstrip-toggle:not([hidden]) + .pin { margin-left:0; }
.focused.strip-hidden .room { display:block; }
.focused.strip-hidden .stage { width:min(100%, calc((100dvh - 202px) * 1.7778)); margin-inline:auto; }
.focused.strip-hidden #tiles { display:none; }
.tile .pin .icon { width:15px; }
.focused .room { display:grid; grid-template-columns:minmax(0,1fr) clamp(155px,17vw,235px); gap:12px; }
.focused .tiles { width:100%; display:flex; flex-direction:column; justify-content:flex-start; align-self:center; min-width:0; max-height:calc(100dvh - 180px); overflow-y:auto; }
.focused .tiles .tile { flex-shrink:0; }
.focused .stage { align-self:center; min-width:0; }
.focused .tiles .tile footer { padding:4px 6px; gap:4px; font-size:11px; }
.focused .tiles .tile .badges { display:none; }
.focused .tiles .monogram { width:42px; font-size:17px; }
.empty { min-height:260px; max-height:60dvh; aspect-ratio:16/9; width:100%; color:var(--muted); }
.mic-check { position:absolute; top:12px; left:12px; display:flex; align-items:center; gap:8px; padding:6px 9px; font:700 11px var(--mono); color:var(--secondary); background:#000d; }
.mic-check meter { appearance:none; width:48px; height:5px; border:0; background:var(--divider); }
.mic-check meter::-webkit-meter-bar { background:var(--divider); height:5px; border:0; border-radius:0; }
.mic-check meter::-webkit-meter-optimum-value { background:var(--success); } .mic-check meter::-moz-meter-bar { background:var(--success); }
.empty .monogram .icon { width:38%; height:38%; }
body[data-idle=true] { background-image:linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px); background-size:16px 16px; }
body[data-idle=true] .workspace { margin:auto; width: min(1160px,100%); flex:none; align-items:center; justify-content:space-between; gap:clamp(22px,5vw,84px); padding:32px clamp(16px,4vw,64px); }
body[data-idle=true] .room { position:relative; border:1px solid var(--panel-border); background:#111; }
body[data-idle=true] .empty { min-height:0; max-height:none; padding-bottom:30px; }
body[data-idle=true] .tiles { display:block; width:100%; }
body[data-idle=true] .tile { border:0; } body[data-idle=true] .tile footer { display:none; }
body[data-idle=true] #currentRoom, body[data-idle=true] .crumb { display:none; }
.preview-tools { position:absolute; bottom:14px; left:0; right:0; display:flex; justify-content:center; gap:8px; }
.preview-tools button { background: #080808e8; color:var(--foreground); }
.precall { flex:0 1 290px; min-width:0; display:grid; }
.precall h1 { margin:0 0 30px; font:700 clamp(30px,3.5vw,52px)/1.12 var(--mono); letter-spacing:-.07em; overflow-wrap:anywhere; }
.field { display:grid; gap:6px; margin:0 0 7px; color:var(--secondary); font:700 12px/1.45 var(--mono); }
input,select,textarea { min-width:0; width:100%; min-height:44px; border:1px solid var(--border); background:var(--surface); padding:10px 12px; }
input::placeholder,textarea::placeholder { color: var(--muted); }
.precall .primary { min-height:46px; margin-top:14px; flex-direction:row-reverse; justify-content:space-between; }
.dock { position:sticky; bottom:0; z-index:3; display:flex; align-items:center; justify-content:center; gap:16px; min-height:76px; padding:12px clamp(12px,3vw,48px); border-top:1px solid var(--panel-border); background:var(--surface); }
.control-group { display:flex; align-items:center; gap:6px; }
.dock .control-group + .control-group { border-left:1px solid var(--panel-border); padding-left:16px; }
#count,#unread { font-size:.88em; }
#unread { padding:1px 4px; background:var(--primary); color:#171020; }
.side-panel { flex:0 0 clamp(245px,23vw,360px); min-width:0; padding:16px; border:1px solid var(--panel-border); background:var(--surface); align-self:stretch; overflow:hidden; display:flex; flex-direction:column; }
.side-panel h2:focus { outline:none; }
.side-panel > header, dialog > header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
h2, h3 { font-family:var(--mono); font-weight:700; letter-spacing:-.04em; }
h2 { font-size:20px; margin:0; }
h3 { font-size:14px; margin:0 0 14px; }
.invite-tools { margin-top:12px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.invite-tools button { font-size:11px; min-height:35px; }
#inviteStatus { color:var(--muted); font-size:12px; }
#people { margin:18px 0 0; padding:0; list-style:none; }
#people li { display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--divider); }
#people li .monogram { width:34px; font-size:13px; flex:none; }
#people li .person-copy { min-width:0; overflow-wrap:anywhere; }
#people li small { display:block; color:var(--muted); font-size:12px; }
dialog { width:min(480px,calc(100% - 24px)); max-height:min(84dvh,750px); border:1px solid var(--border); padding:20px 24px 24px; color:var(--foreground); background:#111; }
dialog::backdrop { background:#000a; }
.device-settings { padding:18px 0 10px; border-top:1px solid var(--divider); margin-top:12px; }
.device-error { padding:8px 10px; border-left:2px solid var(--danger); color:var(--danger); background:#281514; font-size:13px; }
.shortcuts > div { display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; font-size:13px; }
kbd { font:700 11px var(--mono); color:var(--secondary); }
.view-settings { border-top:1px solid var(--divider); padding:18px 0 12px; }
.check-field { display:flex; align-items:center; gap:10px; margin:12px 0; color:var(--secondary); }
.check-field input { width:18px; height:18px; min-height:0; padding:0; appearance:auto; accent-color:var(--primary); }
#fullScreen { padding-inline:0; }
.device-settings .field { margin-bottom:14px; }
select { appearance:auto; font:15px system-ui,sans-serif; }
.hint, #emptyText { font:13px/1.5 system-ui,sans-serif; color:var(--muted); }
#diag { border-top:1px solid var(--divider); }
summary { cursor:pointer; padding:14px 0; color:var(--secondary); font:700 12px var(--mono); }
pre { max-height:145px; overflow:auto; overflow-wrap:anywhere; white-space:pre-wrap; color:var(--muted); font-size:11px; }
#chart { width:100%; height:auto; margin-top:12px; }
@media (min-width:521px) {
  .call:not(.focused) .tiles[data-cols="3"] { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .call:not(.focused) .tiles[data-cols="3"] > .tile { grid-column:span 2; }
  .call:not(.focused) .tiles[data-cols="3"] > .tile:nth-last-child(2):nth-child(3n+1) { grid-column:2/span 2; }
  .call:not(.focused) .tiles[data-cols="3"] > .tile:last-child:nth-child(3n+1) { grid-column:3/span 2; }
}
.call:not(.focused) .tiles[data-count="3"] { grid-template-columns:repeat(4,minmax(0,1fr)); }
.call:not(.focused) .tiles[data-count="3"] > .tile { grid-column:span 2; }
.call:not(.focused) .tiles[data-count="3"] > .tile:last-child { grid-column:2/span 2; }
@media (max-width:1000px) {
  .dock { gap:8px; } .dock .control-group+.control-group { padding-left:8px; }
  .dock button { padding-inline:9px; }
}
@media (max-width:760px) {
  .mast { min-height:52px; gap:10px; padding:5px 12px; } .brand { font-size:15px; gap:8px; }
  .header-tools { gap:8px; } #settingsToggle { font-size:0; width:38px; padding:0; gap:0; }
  #currentRoom,.crumb { display:none; }
  body[data-idle=true] .workspace { flex-direction:column; align-items:stretch; width:min(560px,100%); gap:22px; padding:24px 16px; }
  .precall { flex:auto; } .precall h1 { margin-bottom:18px; }
  .workspace { gap:8px; padding:10px; }
  .side-panel { position:fixed; z-index:4; inset:60px 10px 12px; box-shadow:0 4px 40px #000d; overflow:auto; }
  .tiles { gap:6px; }
  .focused .room { display:flex; flex-direction:column; gap:8px; }
  .focused .stage { width:100%; }
  .focused .tiles { display:flex; flex-direction:row; justify-content:flex-start; overflow-x:auto; }
  .focused .tiles .tile { width:132px; }
  .dock { flex-wrap:wrap; padding:8px; gap:6px; min-height:64px; }
  .control-group { gap:4px; }
  .dock button { min-width:40px; min-height:40px; gap:5px; padding:6px 8px; font-size:11px; }
  .dock .control-group+.control-group { border-left:0; padding-left:0; }
}
@media (max-width:520px) {
  .dock { justify-content:space-evenly; }
  .dock .control-group { display:contents; }
  .dock button { flex-direction:column; padding:4px 2px; min-width:42px; font-size:10px; border-color:transparent; background:transparent; }
  .dock .danger { color:var(--danger); } #count { display:none; }
  .dock button[data-icon=mic-off] span,.dock button[data-icon=mic] span { font-size:0; }
  .dock button[data-icon=mic-off] span::after { content:"Mic off"; font-size:10px; }
  .dock button[data-icon=mic] span::after { content:"Mic on"; font-size:10px; }
  .tile footer { padding:4px 6px; font-size:10px; }
  .tile .badges { display:none; }
  .tiles[data-cols="3"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-idle=false] #currentRoom { display:block; color:var(--secondary); font-size:11px; }
  .header-tools { gap:3px; }
  .side-panel { bottom:8px; }
}
@media(max-width:520px) and (orientation:portrait) {
  .call:not(.focused) .tiles[data-count="2"] { display:grid; grid-template-columns:minmax(0,1fr); width:100%; }
  body[data-idle=false] .call:not(.focused) .tiles[data-count="2"] .media { aspect-ratio:16/9; max-height:calc((100dvh - 178px)/2); }
  .call:not(.focused) .tiles[data-count="1"] .media { aspect-ratio:4/3; }
  .monogram { width:58px; font-size:23px; }
  .status { font-size:11px; } .preview-tools { bottom:10px; } .preview-tools button { min-height:34px; padding:5px 9px; }
}
