/* Tempost app. Same visual language as tempost.io (web/assets/site.css): monochrome, black buttons, Apple-style. */
:root {
  --bg: #fff;
  --alt: #F5F5F7;
  --label: #1D1D1F;
  --label-2: #6E6E73;
  --label-3: #86868B;
  --sep: #D2D2D7;
  --ink: #1D1D1F;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--alt); }
body { font-family: var(--font); color: var(--label); -webkit-font-smoothing: antialiased; line-height: 1.47; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--label); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; background: var(--ink); color: #fff; font-size: 17px; line-height: 1.2; padding: 12px 24px; border-radius: 980px; text-decoration: none; transition: background .2s; white-space: nowrap; }
.btn:hover { background: #000; color: #fff; text-decoration: none; }
.btn:disabled { background: #AEAEB2; cursor: default; }
.btn-sm { font-size: 12px; padding: 6px 13px; }
.btn-ghost { background: transparent; color: var(--label); box-shadow: inset 0 0 0 1px var(--sep); }
.btn-ghost:hover { background: #fff; color: #000; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--label); cursor: pointer; }
.link:hover { text-decoration: underline; }

.gnav { position: sticky; top: 0; z-index: 80; height: 48px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.gnav-in { max-width: 1120px; margin: 0 auto; height: 100%; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.wordmark:hover { text-decoration: none; }
.wordmark svg { width: 22px; height: 22px; }
.gnav-right { display: flex; align-items: center; gap: 12px; font-size: 13px; min-width: 0; }
.chan { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.chan img { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--sep); }
.chan span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }

.app { max-width: 1120px; margin: 0 auto; padding: 40px 22px 80px; }
.head { margin-bottom: 28px; }
.h { margin: 0; font-size: clamp(32px, 4vw, 40px); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.lede { margin: 8px 0 0; font-size: 17px; color: var(--label-2); }
.h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--label-2); font-size: 14px; margin: 4px 0 0; }

.card { background: var(--bg); border-radius: 18px; padding: 24px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06); }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
@media (max-width: 879px) { .cols { grid-template-columns: minmax(0, 1fr); } .app { padding: 28px 16px 64px; } .gnav-in { padding: 0 16px; } .card { padding: 20px; } }

.connect { display: flex; align-items: center; gap: 20px; }
.connect > div { flex: 1; }
@media (max-width: 599px) { .connect { flex-direction: column; align-items: flex-start; } }

.pi { width: 1em; height: 1em; border-radius: .225em; display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .1); }
.pi.big { font-size: 56px; }
.pi.sm { font-size: 18px; }
.pi-yt { background: #FF0000; }
.pi-yt i { width: .62em; height: .44em; background: #fff; border-radius: .12em; display: flex; align-items: center; justify-content: center; }
.pi-yt i::after { content: ""; border-left: .17em solid #FF0000; border-top: .1em solid transparent; border-bottom: .1em solid transparent; margin-left: .04em; }

form { margin-top: 18px; display: grid; gap: 16px; }
form > .btn { justify-self: start; min-width: 160px; }
@media (max-width: 599px) { form > .btn { justify-self: stretch; } }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field label span, legend { font-size: 13px; font-weight: 600; padding: 0; }
.field small { font-weight: 400; color: var(--label-3); }
input[type=text], input[type=datetime-local], textarea, select { width: 100%; font: inherit; font-size: 15px; color: var(--label); background: var(--alt); border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; min-width: 0; }
input[type=text]:focus, input[type=datetime-local]:focus, textarea:focus, select:focus { background: #fff; border-color: var(--sep); }
textarea { resize: vertical; }

.file { position: relative; display: block; border: 1.5px dashed #C7C7CC; border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.file:hover, .file.over { border-color: var(--ink); background: var(--alt); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-in { display: grid; gap: 2px; }
.file-in b { font-size: 15px; font-weight: 600; word-break: break-all; }
.file-in small { font-size: 12px; color: var(--label-2); }

.seg { display: inline-flex; background: #EBEBEE; border-radius: 9px; padding: 2px; gap: 2px; width: max-content; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg label span, .field .seg label span { display: block; padding: 6px 16px; border-radius: 7px; font-size: 13px; font-weight: 400; cursor: pointer; }
.seg input:checked + span, .field .seg input:checked + span { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .06); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); }

.note { margin: 0; font-size: 12px; color: var(--label-2); background: var(--alt); border-radius: 10px; padding: 10px 12px; }
.error { font-size: 14px; color: #D70015; }
.flash { margin-bottom: 20px; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.flash.bad { background: #fff; color: #D70015; box-shadow: inset 0 0 0 1px #FFC9C5; }

.progress { display: grid; gap: 8px; }
.progress-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--label-2); }
.progress-top b { color: var(--label); font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 3px; background: #E5E5EA; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s var(--ease); }

.done { display: flex; gap: 12px; align-items: flex-start; background: var(--alt); border-radius: 12px; padding: 14px; font-size: 14px; }
.done::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.done b { display: block; }
.done a { text-decoration: underline; }

.list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #EFEFF2; min-width: 0; }
.list li:first-child { border-top: 0; }
.list .empty { color: var(--label-2); font-size: 14px; }
.thumb { width: 64px; height: 36px; border-radius: 6px; background: linear-gradient(170deg, #E5E5EA, #C7C7CC); flex: none; object-fit: cover; }
.li-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.li-tx b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-tx small { font-size: 12px; color: var(--label-2); }
.pill { flex: none; font-size: 11px; font-weight: 600; border-radius: 980px; padding: 3px 9px; background: var(--alt); color: var(--label); }
.pill.dark { background: var(--ink); color: #fff; }
.pill.bad { color: #D70015; }
.signin { max-width: 520px; margin: 40px auto; }
.signin .muted { margin-top: 10px; }
