/* Phone pages: one column, big touch targets, dark like the TV app. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: #0f1419;
    color: #e8edf2;
    font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.top { background: #161d25; border-bottom: 1px solid #243041; }
.top .wrap { padding-top: 14px; padding-bottom: 14px; }
.top .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.brand { font-weight: 700; font-size: 19px; color: #7cc4ff; }
.tv-id { font-size: 14px; color: #8fa3b8; font-family: ui-monospace, Menlo, monospace; }
main { padding-top: 16px; padding-bottom: 40px; }
h1 { font-size: 22px; margin: 0 0 10px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: #8fa3b8; margin: 0 0 10px; }
.card { background: #161d25; border: 1px solid #243041; border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.muted { color: #8fa3b8; }
.center { text-align: center; }
label { display: block; font-weight: 600; margin: 10px 0 6px; }
label.choice { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 8px 0; }
input, textarea, button, .btn { font: inherit; }
textarea, input[type=date], .code-input, .text-input {
    width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #33445a;
    background: #0f1419; color: #e8edf2;
}
textarea { resize: vertical; min-height: 90px; }
input[type=date] { margin: 4px 0 6px; }
input[type=radio], input[type=checkbox] { width: 22px; height: 22px; accent-color: #3d9bff; }
.mono { font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
.logout a.link { color: #8fa3b8; padding: 8px; }
.code-input { font-size: 28px; letter-spacing: .3em; text-transform: uppercase; text-align: center; }
fieldset { border: 0; padding: 0; margin: 10px 0 0; }
legend { font-weight: 600; padding: 0; }
.actions { display: flex; gap: 10px; margin-top: 14px; }
button, .btn {
    display: inline-block; border: 0; border-radius: 10px; padding: 12px 20px; min-height: 46px;
    background: #3d9bff; color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-ghost { background: #243041; color: #e8edf2; }
.btn-danger { background: #5a1f27; color: #ffd6db; }
button.link { background: none; color: #8fa3b8; text-decoration: underline; padding: 8px; min-height: 0; }
.alert { padding: 12px 14px; border-radius: 10px; margin: 0 0 14px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-ok { background: #123524; color: #b8f0cf; }
.alert-err { background: #3d1418; color: #ffc9cf; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { border-top: 1px solid #243041; padding: 12px 0; }
.notes li:first-child { border-top: 0; padding-top: 0; }
.note-body { white-space: normal; word-wrap: break-word; font-size: 18px; }
.note-meta { color: #8fa3b8; font-size: 14px; margin-top: 4px; display: flex; gap: 8px; }
.badge { background: #243041; border-radius: 6px; padding: 0 6px; }
.note-actions { display: flex; gap: 8px; margin-top: 8px; }
.note-actions .btn, .note-actions button { padding: 8px 14px; min-height: 40px; }
form.inline { display: inline; margin: 0; }
.logout { margin-top: 10px; }
