/* AGENDA YAN — visual de turnê: escuro, tipografia grande, um único acento dourado. */
:root {
  --bg: #08080a; --surface: #121215; --surface2: #1a1a1f; --line: #26262c; --text: #f5f2eb; --muted: #9a9aa4;
  --accent: #f2c14e; --accent-ink: #1a1405; --danger: #ff6464; --ok: #5ee0a0; --info: #7aa7ff;
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 16px; --pad: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; min-height: 100dvh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 var(--pad); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.disp { font-family: var(--display); letter-spacing: .02em; font-weight: 400; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrapflex { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 16px; } .mt2 { margin-top: 28px; }

/* topo */
.top { position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--bg) 70%, transparent); padding: calc(10px + env(safe-area-inset-top)) 0 10px; }
.brand { font-family: var(--display); font-size: 22px; letter-spacing: .08em; line-height: 1; }
.brand small { display: block; font-family: var(--body); font-size: 10.5px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.chip-user { font-size: 12px; background: var(--surface2); border: 1px solid var(--line); padding: 6px 10px; border-radius: 99px; color: var(--muted); }
.chip-user b { color: var(--text); font-weight: 600; }
.back { font-size: 13px; color: var(--muted); padding: 8px 0; display: inline-flex; gap: 6px; background: none; border: 0; cursor: pointer; }

/* navegação inferior */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(12,12,14,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar .in { max-width: 560px; margin: 0 auto; display: flex; }
.tabbar a { flex: 1; text-align: center; padding: 10px 4px 9px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tabbar a svg { display: block; margin: 0 auto 3px; width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--accent); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; letter-spacing: .04em; cursor: pointer; text-transform: uppercase; min-height: 46px; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.waze { background: #33ccff; color: #00222e; border-color: #33ccff; }
.btn.danger { color: var(--danger); border-color: #4a2326; background: #1d1213; }
.btn.ghost { background: transparent; }
.btn.block { display: flex; width: 100%; }
.btn.sm { min-height: 36px; padding: 7px 12px; font-size: 12px; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.iconbtn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); cursor: pointer; font-size: 15px; padding: 0; }

/* cartões */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); }
.card.tap { display: block; cursor: pointer; }
.card.tap.row { display: flex; }
.card.tap:active { background: var(--surface2); }
.label { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.sec { margin-top: 26px; }
.sec > .label { margin-bottom: 10px; display: block; }

.date-block { text-align: center; min-width: 54px; border-right: 1px solid var(--line); padding-right: 14px; margin-right: 14px; }
.date-block .dow { font-size: 11px; letter-spacing: .2em; color: var(--muted); font-weight: 800; }
.date-block .day { font-family: var(--display); font-size: 42px; line-height: .9; }
.date-block .mon { font-size: 12px; letter-spacing: .2em; color: var(--accent); font-weight: 800; }
.ev-name { font-family: var(--display); font-size: 24px; line-height: 1; letter-spacing: .02em; }
.ev-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.stage-mini { font-family: var(--display); font-size: 24px; color: var(--accent); line-height: 1; text-align: right; }
.stage-mini small { display: block; font-family: var(--body); font-size: 9.5px; letter-spacing: .22em; color: var(--muted); font-weight: 800; }

/* hero */
.hero { background: radial-gradient(120% 90% at 100% 0%, #2a2210 0%, var(--surface) 55%); border: 1px solid #3a3118; border-radius: 22px; padding: 20px; }
.hero .big-date { font-family: var(--display); font-size: 17px; letter-spacing: .14em; color: var(--accent); }
.hero .ev-name { font-size: 34px; margin-top: 6px; }
.hero .stage { margin-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.stage-num { font-family: var(--display); font-size: 70px; line-height: .85; color: var(--accent); letter-spacing: .01em; }
.stage-cap { font-size: 11px; letter-spacing: .3em; font-weight: 800; color: var(--muted); }

/* badges */
.badge { display: inline-block; font-size: 10.5px; letter-spacing: .14em; font-weight: 800; padding: 4px 8px; border-radius: 7px; background: var(--surface2); color: var(--muted); border: 1px solid var(--line); text-transform: uppercase; vertical-align: middle; }
.badge.ok { color: var(--ok); border-color: #1f4a37; background: #0f1d17; }
.badge.warn { color: var(--accent); border-color: #4a3d16; background: #1c1708; }
.badge.bad { color: var(--danger); border-color: #4a2326; background: #1d1213; }
.badge.info { color: var(--info); border-color: #25365a; background: #0f1523; }

/* aviso de mudança (ticket) */
.ticket { position: relative; background: #1c1708; border: 1px dashed #6b5720; border-radius: 14px; padding: 14px 14px 12px; }
.ticket .t-h { font-family: var(--display); font-size: 18px; letter-spacing: .08em; color: var(--accent); }
.ticket s { color: var(--muted); }
.ticket .new { color: var(--accent); font-weight: 800; font-size: 18px; }

/* segmentado */
.seg { display: flex; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 9px; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }

/* calendário */
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-h .m { font-family: var(--display); font-size: 24px; letter-spacing: .06em; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dw { text-align: center; font-size: 10px; letter-spacing: .14em; color: var(--muted); font-weight: 800; padding: 4px 0; }
.cal .d { aspect-ratio: 1 / 1.05; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; cursor: default; position: relative; padding: 0; }
.cal .d.out { opacity: .25; }
.cal .d.today { border-color: var(--text); }
.cal .d.has { background: #231d0b; border-color: #6b5720; color: var(--accent); cursor: pointer; }
.cal .d.has::after { content: attr(data-n); position: absolute; bottom: 4px; font-size: 9px; letter-spacing: .1em; font-weight: 800; }
.cal .d.has.cancel { opacity: .5; }

/* timeline */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li { position: relative; padding: 0 0 20px 78px; min-height: 48px; }
.tl li::before { content: ''; position: absolute; left: 62px; top: 10px; bottom: -4px; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl li::after { content: ''; position: absolute; left: 56px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid #55555e; }
.tl .tm { position: absolute; left: 0; top: 0; width: 52px; text-align: right; font-family: var(--display); font-size: 24px; line-height: 1; }
.tl .tm small { display: block; font-family: var(--body); font-size: 9px; letter-spacing: .1em; color: var(--muted); font-weight: 800; margin-top: 2px; }
.tl .tt { font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.tl .tp { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tl .tn { font-size: 13px; margin-top: 4px; color: #d8d3c4; }
.tl li.palco::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(242,193,78,.18); }
.tl li.palco .tm, .tl li.palco .tt { color: var(--accent); }
.tl li.next::after { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 5px rgba(94,224,160,.18); }
.tl li.done { opacity: .5; }
.tl li.chg::after { background: var(--danger); border-color: var(--danger); }
.tl .tools { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.pill-team { font-size: 9.5px; letter-spacing: .16em; font-weight: 800; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }
.loc { display: inline-flex; align-items: center; gap: 8px; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-weight: 800; letter-spacing: .12em; font-size: 14px; }

/* clima */
.wx { display: flex; align-items: center; gap: 14px; }
.wx .ic { font-size: 34px; line-height: 1; }
.wx .tp { font-family: var(--display); font-size: 34px; line-height: 1; }
.wx .info { font-size: 13px; color: var(--muted); }

/* formulários */
.field { display: block; }
.field > span { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: 6px; }
.in, select.in, textarea.in { width: 100%; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; outline: none; min-height: 44px; font-size: 16px; } /* 16px: o iPhone não dá zoom ao tocar */
.in:focus { border-color: var(--accent); }
textarea.in { min-height: 80px; resize: vertical; }
.time-in { font-family: var(--display); font-size: 24px; letter-spacing: .06em; text-align: center; padding: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.steps { display: flex; gap: 6px; margin: 8px 0 18px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--accent); }
.suggest { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; overflow: hidden; }
.suggest button { display: block; width: 100%; text-align: left; padding: 12px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.suggest button:last-child { border-bottom: 0; }
.suggest .new { color: var(--accent); font-weight: 800; letter-spacing: .06em; }
.item-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.item-card.palco { border-color: #6b5720; }
.item-card details summary { cursor: pointer; color: var(--muted); font-size: 12px; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; padding: 8px 0 2px; list-style: none; }
.item-card details summary::-webkit-details-marker { display: none; }
.check { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.err { color: var(--danger); font-size: 13px; }
.errbox { background: #1d1213; border: 1px solid #4a2326; color: #ffb3b3; border-radius: 12px; padding: 12px; font-size: 13.5px; }
.okbox { background: #0f1d17; border: 1px solid #1f4a37; color: #b5f0d3; border-radius: 12px; padding: 12px; font-size: 13.5px; }
.demo-banner { background: #1c1708; border: 1px dashed #6b5720; color: var(--accent); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; font-size: 10px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.bad td { background: #1d1213; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 32px; line-height: 1; }
.stat.bad b { color: var(--danger); } .stat.ok b { color: var(--ok); } .stat.warn b { color: var(--accent); }

/* login */
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px var(--pad); }
.login h1 { font-family: var(--display); font-size: 60px; line-height: .86; letter-spacing: .04em; }
.login h1 em { font-style: normal; color: var(--accent); }
.login .sub { letter-spacing: .3em; text-transform: uppercase; font-size: 11px; color: var(--muted); font-weight: 800; margin: 10px 0 30px; }
.credit { text-align: center; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #5d5d66; margin: 28px 0 8px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--text); color: #111; padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; opacity: 0; transition: .25s; z-index: 50; max-width: 90vw; text-align: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--danger); color: #1a0505; }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 22px 22px 0 0; width: 100%; max-width: 560px; max-height: 88dvh; overflow: auto; padding: 18px var(--pad) calc(20px + env(safe-area-inset-bottom)); }
.fab { position: fixed; right: max(16px, calc(50% - 280px + 16px)); bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 25; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); border: 0; font-size: 32px; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: grid; place-items: center; cursor: pointer; }
.sticky-save { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 35%); padding: 18px 0 8px; z-index: 10; }
.empty { text-align: center; padding: 36px 10px; color: var(--muted); }
.empty .disp { font-size: 24px; color: var(--text); display: block; margin-bottom: 6px; }
@media (min-width: 700px) { body { font-size: 16px; } }
@media print { .tabbar, .top, .fab, .btn { display: none !important; } body { background: #fff; color: #000; } }
