@font-face{font-family:Ubuntu;src:url('/assets/UbuntuSans-400.ttf')}@font-face{font-family:Ubuntu;src:url('/assets/UbuntuSans-700.ttf');font-weight:700}
:root{--ink:#153b57;--muted:#536c7e;--blue:#1261a0;--teal:#087f83;--line:#d6e2e8;--paper:#f4f8fa}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 Ubuntu,Arial,sans-serif}button,input,select,textarea{font:inherit}a{color:var(--blue)}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #b8cbd5;border-radius:6px;background:white;color:var(--ink);padding:10px 16px;cursor:pointer;text-decoration:none;min-height:44px}button:hover,.button:hover{background:#e7f2f5}button.primary,.button.primary{background:var(--blue);color:white;border-color:var(--blue)}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid #d39000;outline-offset:3px}.danger{color:#a72d3e}h1,h2,h3,p{margin:0 0 14px}h1{font-size:32px;line-height:1.15;letter-spacing:-.6px}h2{font-size:22px}h3{font-size:18px}.eyebrow{text-transform:uppercase;letter-spacing:1.6px;font-size:13px;font-weight:700;color:var(--teal)}.muted,small{color:var(--muted)}small{font-size:14px}.shell{max-width:1440px;margin:auto;padding:36px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.page-head p{margin:8px 0 0;color:var(--muted)}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.home{max-width:1120px;margin:6vh auto;padding:32px}.home-logo{width:260px;height:110px;object-fit:contain;object-position:left;margin-bottom:32px}.module-links{margin:36px 0;display:grid;grid-template-columns:1fr 1fr;gap:28px}.module{background:white;border-top:4px solid var(--teal);padding:32px;border-radius:0 0 8px 8px}.module:nth-child(2){border-top-color:var(--blue)}.module p{max-width:380px;min-height:72px;color:var(--muted)}.module .number{font-size:14px;color:var(--teal);margin-bottom:20px}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:0 0 24px;overflow-x:auto}.tabs button{border:0;background:none;border-radius:0;white-space:nowrap;padding:14px 15px;border-bottom:3px solid transparent}.tabs button[aria-selected=true]{color:var(--teal);border-color:var(--teal);font-weight:700}.columns{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:28px;align-items:start}.panel{background:white;padding:24px;border:1px solid var(--line);border-radius:8px}.panel+.panel{margin-top:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.panel-head h2{margin:0}.content-row{padding:18px 0;border-bottom:1px solid var(--line);display:flex;gap:16px;align-items:center}.content-row:last-child{border-bottom:0}.content-row .info{flex:1;min-width:0}.content-row strong{display:block;overflow-wrap:anywhere}.content-row small{display:block}.content-row .thumb{width:68px;height:64px;object-fit:cover;background:#e9f1f4;border-radius:4px}.tag{display:inline-block;font-size:13px;padding:2px 7px;background:#e6f2f3;color:#12636c;border-radius:3px}.tag.urgent{color:#932f22;background:#ffe5df}.tag.highlight{color:#6f5100;background:#fff0c3}.empty{padding:40px 16px;text-align:center;color:var(--muted)}label{display:block;margin:0 0 16px;font-weight:700;font-size:14px}input:not([type=checkbox]),select,textarea{display:block;width:100%;margin-top:5px;padding:10px 12px;border:1px solid #b7c9d3;border-radius:5px;background:white;color:var(--ink);font-size:16px}input[type=checkbox]{width:18px;height:18px;vertical-align:middle;margin-right:7px}.check{display:flex;align-items:center;gap:5px;min-height:40px;font-weight:400}textarea{resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.full{grid-column:1/-1}.field-help{font-size:13px;font-weight:400;color:var(--muted)}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.preview{aspect-ratio:16/9;width:100%;border:0;background:#10375a;border-radius:5px}.preview-info{margin:14px 0;font-size:14px}.preview-info strong{display:block}.status-line{min-height:28px;color:var(--teal);margin:0 0 16px}.status-line.error{color:#a32335}.device{border-bottom:1px solid var(--line);padding:18px 0}.device dl{display:grid;grid-template-columns:1fr 1fr;font-size:14px;gap:8px}.device dt{color:var(--muted)}.device dd{margin:0;overflow-wrap:anywhere}.token-link{word-break:break-all;padding:16px;background:#fff8dc;margin:14px 0}.modal{position:fixed;inset:0;background:#0c243580;display:flex;align-items:center;justify-content:center;padding:24px;z-index:10}.modal[hidden], [hidden]{display:none!important}.dialog{background:white;border-radius:10px;width:680px;max-width:100%;max-height:92vh;overflow:auto;padding:28px;box-shadow:0 14px 60px #10243840}.dialog h2{margin-bottom:24px}.playlist-controls{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.playlist-controls button{padding:6px 10px}.playlist-controls input[type=number]{width:70px;margin:0}.inline-check{margin:0}.settings{max-width:840px}.badge-online{color:#087b65}.badge-offline{color:#8b4c26}footer.page-footer{border-top:1px solid var(--line);padding-top:18px;font-size:14px;color:var(--muted)}@media(max-width:1050px){.columns{grid-template-columns:1fr}.side-preview{max-width:600px}.shell{padding:24px}}@media(max-width:600px){.shell,.home{padding:20px}.page-head{align-items:flex-start;flex-direction:column}h1{font-size:28px}.module-links{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.content-row{flex-wrap:wrap}.content-row .actions{width:100%}.modal{padding:10px}.dialog{padding:20px}.panel{padding:18px}}
.format-choice{margin-bottom:28px}.format-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.format-options button{display:block;text-align:left;padding:18px;align-self:stretch}.format-options strong{display:block;margin-bottom:8px}.format-options span{display:block;color:var(--muted);font-size:14px;font-weight:400}.drag-handle{touch-action:none;cursor:grab;padding:6px 10px;flex-shrink:0;color:var(--muted)}.drag-handle:active{cursor:grabbing}.content-row.dragging{opacity:.35}.content-row.drop-before{box-shadow:inset 0 3px var(--teal)}.content-row.drop-after{box-shadow:inset 0 -3px var(--teal)}.drag-ghost{position:fixed;z-index:20;pointer-events:none;background:white;box-shadow:0 5px 25px #153b5740;border-radius:8px;padding:18px;opacity:.95}.pairing{max-width:820px;margin:7vh auto;padding:32px}.pairing h1{font-size:42px}.pairing-code{font-size:clamp(42px,8vw,88px);font-weight:700;letter-spacing:.16em;margin:24px 0}.pairing ol{line-height:1.8}.pairing-logo{width:240px;margin-bottom:24px}.pairing-qr{background:white;padding:12px;width:156px}.pairing-qr svg{width:132px;height:132px}@media(max-width:700px){.format-options{grid-template-columns:1fr}.program-row .playlist-controls{margin-left:0}.pairing{margin:24px auto;padding:24px}}

.priority-heading{padding:18px 0 8px;margin:0;font-size:16px;border-bottom:1px solid var(--line)}.program-row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:start}.program-row .drag-handle{width:44px;min-height:44px;font-size:24px;padding:4px}.program-row .playlist-controls{grid-column:2;gap:12px;margin-top:2px;min-width:0}.duration-control{display:flex;align-items:center;gap:6px;margin:0;font-weight:400}.program-row .actions{width:auto}.program-row .actions .button,.program-row .actions button{min-height:44px;white-space:normal}.item-status{margin-top:4px}.format-options{grid-template-columns:repeat(2,minmax(0,1fr))}.format-options button{min-width:0;overflow-wrap:anywhere}.drag-ghost{box-sizing:border-box;overflow:hidden}.drag-ghost button,.drag-ghost input,.drag-ghost a{pointer-events:none}@media(max-width:700px){.format-options{grid-template-columns:1fr}}@media(max-width:600px){.program-row .playlist-controls{grid-column:1/-1;padding-left:56px;flex-wrap:wrap}.program-row .actions{flex-basis:100%;gap:8px}.program-row .actions button,.program-row .actions .button{flex:1}.panel-head{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.program-row,.drag-ghost{transition:none;animation:none}}
.tv-selector{max-width:420px;margin-bottom:24px}.destinations{border:1px solid var(--line);border-radius:6px;padding:16px;margin:0 0 20px}.destinations legend{font-weight:700;padding:0 6px}.destinations .check{margin:8px 0 0}.destinations button{margin-bottom:8px}.birthday-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;background:#e6f2f3;border-left:4px solid var(--teal);border-radius:4px;margin-bottom:24px}.birthday-alert p{margin:4px 0 0;color:var(--muted)}.birthday-filters{display:flex;gap:18px;flex-wrap:wrap}.birthday-filters label{flex:1;min-width:180px}.table-scroll{overflow-x:auto}.birthday-table{border-collapse:collapse;width:100%;font-size:14px}.birthday-table th,.birthday-table td{text-align:left;vertical-align:top;padding:12px 10px;border-bottom:1px solid var(--line)}.birthday-table th{font-weight:700;color:var(--muted)}.birthday-table .actions{gap:6px;min-width:160px}.birthday-table button{font-size:14px;padding:8px 10px;min-height:44px}.row-spacer{width:44px}.birthday-table td:first-child{min-width:140px}.dialog:has(#birthdayPreview){width:800px}#birthdayPreview{max-height:390px}.birthday-alert button{flex-shrink:0}@media(max-width:600px){.birthday-alert{flex-direction:column;align-items:flex-start}.tv-selector{max-width:none}.birthday-table td,.birthday-table th{padding:10px 8px}}

/* Handle-only reordering keeps page scrolling and the existing row layout. */
.drag-handle{user-select:none;-webkit-user-select:none}.drag-handle:focus-visible{outline:3px solid var(--teal);outline-offset:3px}.program-row.dragging .drag-handle{cursor:grabbing}.drag-ghost.drop-blocked{opacity:.45}

.display-date{display:block;margin-top:6px;color:var(--muted,#5b7180);font-size:13px;line-height:1.5}
#birthdayDisplayForm h3{margin:28px 0 12px}
.calendar-day{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:12px}.calendar-day>label:first-child{flex:0 1 180px;min-width:130px}.calendar-day>label:nth-child(2){flex:1;min-width:180px}
.calendar-day .check{padding-bottom:10px}
.monthly-preview-section{margin-top:28px}
.monthly-preview-section .actions{margin-bottom:16px}
@media(max-width:650px){.calendar-day>label:nth-child(2){flex-basis:100%}}
