:root { --ground:#F3F5F7; --card:#FFFFFF; --ink:#151A21; --muted:#56606D; --line:#DDE2E8; --soft:#EEF1F4; --accent:#7A1F5C; --warn:#8A3F06; --warnbg:#FFF1E0; --warnline:#F0C48A; --ok:#1D3FA8; --okbg:#E6EEFF; --bad:#9B1C1C; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ground); color: var(--ink); font-family: Inter, system-ui, -apple-system, sans-serif; -webkit-text-size-adjust: 100%; }
button, input, select { font-family: inherit; font-size: 16px; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1 { margin: 4px 0 0; font-size: 28px; line-height: 1.2; }
h2 { margin: 0; font-size: 20px; }
p { margin: 0; line-height: 1.45; }
.muted { color: var(--muted); } .small { font-size: 13px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input[type=text], input[type=password] { height: 50px; border: 1px solid #B9C1CB; border-radius: 12px; padding: 0 14px; background: var(--card); color: var(--ink); width: 100%; }
.btn { min-height: 48px; padding: 0 16px; border: 1px solid #B9C1CB; border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 600; }
.btn.go { border: 0; background: var(--accent); color: #fff; }
.btn.big { min-height: 56px; font-size: 18px; width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { border: 0; background: none; color: var(--ink); text-decoration: underline; min-height: 44px; padding: 0 4px; font-size: 15px; }
.err { color: var(--bad); font-weight: 600; min-height: 22px; font-size: 15px; }
.pill { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 12px; background: #E4E8ED; color: #3D4652; white-space: nowrap; }
.pill.ok { background: var(--okbg); color: var(--ok); } .pill.warn { background: var(--warnbg); color: var(--warn); }
.notice { background: var(--warnbg); border: 1px solid var(--warnline); border-radius: 14px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.toast[hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 15px; font-weight: 600; max-width: 90vw; z-index: 9; }
/* phone app */
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
#app header { padding: 18px 20px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
#app header .top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; }
#app main { flex: 1; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.center { text-align: center; align-items: center; padding-top: 28px; }
.center p { max-width: 330px; color: var(--muted); }
/* owner screen */
#owner { max-width: 1200px; margin: 0 auto; padding: clamp(16px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.gate { max-width: 460px; margin: 6vh auto 0; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.scroll { overflow-x: auto; }
.grid { display: grid; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--soft); font-size: 15px; grid-template-columns: minmax(150px, 1.2fr) 100px 130px minmax(300px, 2fr) minmax(300px, 1.8fr); min-width: 1040px; }
.grid.th { font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px 0; }
.codebox { background: var(--okbg); border: 1px solid #B6C7F5; border-radius: 14px; padding: 16px 18px; }
.codebox .code { font-size: 30px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
/* hours */
.hrow { display: grid; grid-template-columns: 1.15fr 1fr 1fr .85fr; white-space: nowrap; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--soft); font-size: 15px; align-items: center; font-variant-numeric: tabular-nums; }
.hrow.th { font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 0; }
.hrow.total { font-weight: 700; border-bottom: 0; font-size: 17px; }
.num { text-align: right; } .bad { color: var(--bad); font-weight: 600; } .star { color: var(--accent); font-weight: 700; margin-left: 2px; }
/* the owner screen's header: the same look as the staff screens (serif title, quiet tabs that scroll sideways on a phone) */
.ohead { display: flex; flex-direction: column; gap: 6px; }
.obar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.obar .brand { font-size: 13px; font-weight: 600; }
.ohead h1 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 32px; letter-spacing: -.01em; margin: 0; }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 14px; }
.tabs { display: flex; gap: 2px; margin-top: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .btn { flex: 0 0 auto; min-height: 46px; padding: 0 14px; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.tabs .btn:hover { color: var(--ink); }
.tabs .btn.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.tabs .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.person { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--card); }
.person .hrow { grid-template-columns: 150px 110px 110px 90px minmax(120px, 1fr); }
[data-tpbox] select { padding: 0 8px; min-width: 62px; }
/* count (owner) */
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 14px; }
.sched.cnt { min-width: 1040px; } .sched.cnt th, .sched.cnt td { text-align: left; padding: 8px 8px; vertical-align: top; } .sched.cnt .n { text-align: right; font-weight: 600; }
.sched.cnt tbody th { white-space: normal; min-width: 220px; } .sched.cnt tr.look { background: #FFF8EC; } .sched.cnt .acts { min-width: 300px; }
/* stations */
.cell .st { display: block; font-size: 11px; font-weight: 500; opacity: .8; line-height: 1.1; padding-bottom: 3px; }
.ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 18px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.ticks .did { color: var(--ink); } .ticks .did span[aria-hidden] { color: var(--ok); font-weight: 700; }
.stn { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--soft); padding-top: 14px; }
textarea { font-family: inherit; font-size: 15px; line-height: 1.45; border: 1px solid #B9C1CB; border-radius: 12px; padding: 10px 14px; background: var(--card); color: var(--ink); width: 100%; max-width: 720px; resize: vertical; }
.task { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px; border: 1px solid #B9C1CB; border-radius: 12px; background: var(--card); color: var(--ink); font-size: 16px; text-align: left; }
.task .box { flex: 0 0 26px; height: 26px; border: 2px solid #8A93A0; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: transparent; font-weight: 700; }
.task.on { background: var(--okbg); border-color: #B6C7F5; } .task.on .box { background: var(--ok); border-color: var(--ok); color: #fff; }
/* schedule */
.srow { display: grid; grid-template-columns: 1.1fr 1.7fr .7fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--soft); font-size: 15px; align-items: center; font-variant-numeric: tabular-nums; }
.srow.two { grid-template-columns: 1fr auto; } .srow.today { font-weight: 700; } .srow.total { font-weight: 700; border-bottom: 0; font-size: 17px; }
.chips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 4px 0 6px; }
.chip { min-height: 48px; border: 1px solid #B9C1CB; border-radius: 10px; background: var(--card); color: var(--ink); font-weight: 600; font-size: 13px; padding: 2px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.chip span { font-weight: 400; font-size: 11px; color: var(--muted); } .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; } .chip.on span { color: #fff; }
.sched { border-collapse: collapse; width: 100%; min-width: 1000px; font-size: 14px; font-variant-numeric: tabular-nums; }
.sched th, .sched td { padding: 5px 4px; border-bottom: 1px solid var(--soft); text-align: center; }
.sched thead th { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.sched thead th:first-child { text-align: left; }
.sched tbody th { text-align: left; font-weight: 600; white-space: nowrap; padding-right: 10px; } .sched .num { text-align: right; }
.sched .foot th, .sched .foot td { font-weight: 700; border-bottom: 0; padding-top: 10px; }
.sched.floor { min-width: 760px; } .sched.floor tbody th { font-weight: 400; color: var(--muted); }
.cell { width: 100%; min-height: 38px; border: 0; border-radius: 8px; padding: 0 6px; font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--ink); }
.cell.am, .key.am { background: #FFE9A8; } .cell.pm, .key.pm { background: #BDD8FF; } .cell.all, .key.all { background: #BEEBBE; }
.cell.off { background: none; color: #8A93A0; font-weight: 400; } .cell:hover { outline: 2px solid var(--ink); }
.key { display: inline-block; width: 16px; height: 16px; border-radius: 4px; margin-left: 10px; }
details summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 8px 0; }
input[type=time], select { height: 46px; border: 1px solid #B9C1CB; border-radius: 12px; padding: 0 12px; background: var(--card); color: var(--ink); max-width: 100%; }
.rcvpic { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; background: #fff; }
/* availability table */
table.av td { white-space: nowrap; font-size: 14px; }
table.av td.avoff { color: var(--muted); }
table.av td.avany { font-weight: 600; }
table.av td.avhrs { font-weight: 600; }
/* announcements */
.antext { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.45; }
.andown .antext { color: var(--muted); }
.anopt { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 4px; font-size: 15px; font-weight: 500; }
.anopt input { width: 20px; height: 20px; accent-color: var(--accent); }
.anpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 12px; }
.news { border: 2px solid var(--accent); }
.newsrow { border-top: 1px solid var(--soft); padding-top: 10px; } .newsrow .antext { font-size: 15px; }
/* the staff home screen */
#app header.home { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0 12px; padding: 18px 20px 16px; }
#app header.home .date { font-size: 13px; color: var(--muted); }
#app header.home h1 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 30px; letter-spacing: -.01em; margin-top: 2px; }
#app header.home .today { flex: 0 0 100%; font-size: 16px; font-weight: 600; margin-top: 8px; line-height: 1.35; }
.clockpill { display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; }
.clockpill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ct { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0; }
.btn.dark { border: 0; background: var(--ink); color: #fff; }
.news .from { color: var(--accent); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 112px; padding: 14px 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tile:active { background: var(--soft); }
.tile .ico { color: #3D4652; display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; }
.tile .ico svg { width: 26px; height: 26px; stroke-width: 1.7; }
.tile .tt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile .t { font-weight: 700; font-size: 16px; line-height: 1.2; }
.tile .s { font-size: 13px; line-height: 1.3; color: var(--muted); }
.tile .badge { position: absolute; top: 13px; right: 12px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 9px; background: var(--warnbg); color: var(--warn); }
.tile.off { background: transparent; border-style: dashed; border-color: #C4CBD4; }
.tile.off .ico, .tile.off .t { color: var(--muted); }
.tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 80px; padding: 16px 16px 16px 18px; background: var(--accent); border: 0; color: #fff; }
.tile.wide:active { background: #651A4C; }
.tile.wide .ico { color: #fff; width: 30px; height: 30px; flex-basis: 30px; } .tile.wide .ico svg { width: 30px; height: 30px; }
.tile.wide .tt { flex: 1; } .tile.wide .t { font-size: 19px; } .tile.wide .s { color: #F3DDEA; font-size: 14px; }
.tile.wide .chev { display: grid; place-items: center; color: #F3DDEA; }
.tiles > :last-child:nth-child(even) { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 72px; }
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.footnote { text-align: center; padding: 4px 0 8px; }
/* the bar at the bottom of the staff screens (nav.js) */
.tabbar[hidden] { display: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 500; line-height: 1.2; -webkit-tap-highlight-color: transparent; }
.tabbar a.on { color: var(--ink); font-weight: 700; }
body.hasbar #app { padding-bottom: calc(63px + env(safe-area-inset-bottom)); }
body.hasbar .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
body.hasbar a.linkbtn[href="/"] { display: none !important; }
#owner h2 { font-size: 18px; }
.gate h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 26px; letter-spacing: -.01em; }
