/* The owner panel (agency/panel/): the builder's light look, phone first. */
:root { --bg: #f5f5f7; --card: #fff; --ink: #0b0d12; --muted: #5b6170; --rule: rgba(0,0,0,.09); --blue: #2f6fe5; --hot: #e5432f; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 15px/1.45 system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
[hidden] { display: none !important; }
.top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--rule); }
.top b { font-size: 17px; }
.back { text-decoration: none; font-size: 14px; }
.range { margin-left: auto; display: flex; background: var(--bg); border-radius: 10px; padding: 3px; }
.range button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.range button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 600; }
main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 760px) { main { grid-template-columns: minmax(0, 1fr); padding: 12px; } }
.card { background: var(--card); border-radius: 16px; padding: 18px; border: 1px solid var(--rule); min-width: 0; }
.card.wide { grid-column: 1 / -1; }
h2 { font-size: 16px; margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.tile { background: var(--bg); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.tile span { font-size: 13px; color: var(--muted); }
.tile b { font-size: 26px; font-variant-numeric: tabular-nums; }
.tile small { font-size: 12px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.none { color: var(--muted); padding: 10px 0; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 8px; }
.bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar i { width: 100%; max-width: 34px; min-height: 2px; background: #c9d6f5; border-radius: 4px 4px 0 0; }
.bar.hot i { background: var(--blue); }
.bar span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.bars.days .bar i { background: var(--blue); }
.rank { list-style: none; display: grid; gap: 8px; counter-reset: r; }
.rank li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; overflow: hidden; counter-increment: r; }
.rank li::before { content: counter(r); color: var(--muted); width: 18px; flex: none; position: relative; z-index: 1; }
.rank li span { flex: 1; position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank li b { position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.rank li i { position: absolute; inset: 0 auto 0 0; background: #e6edfc; border-radius: 8px; }
.team-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.team-head h2 { margin: 0; }
.week-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.week-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule); background: #fff; font-size: 18px; }
.duty { margin: 6px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.who { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, #fff); border: 1px solid color-mix(in srgb, var(--c) 40%, #fff); font-size: 14px; }
.who::before, .dot { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }
.cal-wrap { overflow-x: auto; margin: 0 -18px; }
.cal th:first-child { padding-left: 18px; }
.cal { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; }
.cal thead th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.cal th, .cal td { border-bottom: 1px solid var(--rule); padding: 8px 6px; vertical-align: top; text-align: left; }
.cal thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.cal thead th small { display: block; font-size: 18px; color: var(--ink); }
.cal .today { background: #f0f4fe; }
.who-cell { position: sticky; left: 0; z-index: 1; background: #fff; width: 130px; font-weight: 600; white-space: nowrap; }
.who-cell .dot { margin-right: 6px; }
.who-cell small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 15px; }
.who-cell .x { position: absolute; right: 4px; top: 8px; border: 0; background: none; color: var(--muted); font-size: 12px; opacity: .5; }
.cal td { cursor: pointer; min-width: 84px; }
.cal td:hover .add { opacity: 1; }
.add { display: block; text-align: center; color: var(--muted); opacity: 0; font-size: 18px; }
@media (hover: none) { .add { opacity: .35; } }
.shift { display: block; width: 100%; margin-bottom: 4px; padding: 6px 4px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--c) 18%, #fff); border-left: 4px solid var(--c); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: left; white-space: nowrap; }
.team-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline input:not([type=color]), dialog input { padding: 9px 11px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.inline input[type=color] { width: 42px; height: 40px; border: 1px solid var(--rule); border-radius: 10px; padding: 2px; background: #fff; }
.team-acts button, .dlg-acts button { padding: 10px 16px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; }
button.ghost { background: #fff; color: var(--ink); border: 1px solid var(--rule); }
button.danger { background: #fff; color: var(--hot); border: 1px solid var(--rule); margin-right: auto; }
.err { margin: 16px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--rule); }
dialog { margin: auto; border: 0; border-radius: 16px; padding: 22px; width: min(400px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.4); }
dialog form { display: grid; gap: 14px; }
dialog h3 { font-size: 17px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.dlg-acts { display: flex; gap: 8px; }
/* what guests said (panel.js) */
.fb { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.fb li { padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.04); }
.fb b { color: #c99a3b; letter-spacing: .05em; } .fb span { font-size: 13px; opacity: .7; } .fb p { margin: 6px 0 0; }
