:root { --bg:#f3f5fa; --card:#fff; --ink:#0f1a33; --muted:#5a647c; --blue:#0f2c75; --blue2:#1c48a8; --gold:#f2b93b; --line:#dde2ee; --red:#b3261e; --green:#14733a; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Assistant", system-ui, sans-serif; font-size: 17px; line-height: 1.4; padding-bottom: 84px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.top { background: var(--blue); color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 10; }
.top b { font-family: "Frank Ruhl Libre", serif; font-weight: 900; font-size: 1.3rem; }
.top b i { color: var(--gold); font-style: normal; }
.top a, .top button { color: #fff; background: rgba(255,255,255,.15); border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
h1 { font-family: "Frank Ruhl Libre", serif; font-weight: 900; font-size: 1.6rem; margin: 6px 0 14px; }
h2 { font-size: 1.1rem; margin: 22px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.login { max-width: 420px; margin: 8vh auto 0; }
label { display: grid; gap: 5px; font-weight: 700; margin-bottom: 14px; font-size: .95rem; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=datetime-local], select, textarea { width: 100%; border: 1px solid #b9c2d8; border-radius: 10px; padding: 12px; background: #fff; min-height: 46px; }
textarea { min-height: 120px; resize: vertical; }
textarea.big { min-height: 280px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 8px 0; }
.check input { width: 22px; height: 22px; accent-color: var(--blue); }
.btn { border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 800; background: var(--blue); color: #fff; }
.btn.gold { background: var(--gold); color: #1b1303; }
.btn.ghost { background: #e8ecf6; color: var(--blue); }
.btn.red { background: #fde8e6; color: var(--red); }
.btn.sm { padding: 8px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .55; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.sp { justify-content: space-between; }
.bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.pill { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; color: var(--blue); }
.pill[aria-pressed=true] { background: var(--blue); color: #fff; border-color: var(--blue); }
.item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.item.nothumb { grid-template-columns: 1fr; }
.item .th { width: 64px; height: 64px; border-radius: 10px; background: #dfe5f4; object-fit: cover; display: grid; place-items: center; font-weight: 900; color: var(--blue2); }
.item h3 { margin: 0 0 4px; font-size: 1.02rem; overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.badge { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #e8ecf6; color: var(--blue); }
.badge.g { background: #fdf0cf; color: #7a5200; } .badge.r { background: #fde8e6; color: var(--red); } .badge.v { background: #dcf3e4; color: var(--green); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, 1fr); z-index: 10; padding-bottom: env(safe-area-inset-bottom, 0); }
.tabbar button { border: 0; background: none; padding: 10px 2px; font-size: .74rem; font-weight: 700; color: var(--muted); display: grid; gap: 2px; justify-items: center; }
.tabbar button span { font-size: 1.35rem; line-height: 1; }
.tabbar button[aria-current=true] { color: var(--blue); }
.err { color: var(--red); font-weight: 700; margin: 8px 0; }
.hint { color: var(--muted); font-size: .88rem; margin: -8px 0 14px; }
.prev { max-width: 100%; max-height: 180px; border-radius: 10px; display: block; margin: 6px 0; }
#toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #0f1a33; color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 50; max-width: 90vw; }
#toast.bad { background: var(--red); }
.grp { font-weight: 800; color: #b57c0b; margin: 16px 0 6px; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }
label, .card, .wrap { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
.top b { font-size: 1.05rem; white-space: nowrap; }
.top .row { flex-wrap: nowrap; gap: 6px; }
.top a, .top button { white-space: nowrap; padding: 8px 12px; }

.stgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 600px) { .stgrid { grid-template-columns: repeat(4, 1fr); } }
.stbox { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 2px; }
.stbox b { font-size: 1.9rem; color: var(--blue); line-height: 1.1; }
.stbox span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.stchart { display: flex; align-items: flex-end; gap: 3px; height: 120px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 18px; }
.stchart i { flex: 1; background: var(--blue); border-radius: 3px 3px 0 0; min-width: 2px; }
.strow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; }
.strow span { overflow-wrap: anywhere; } .strow b { color: var(--blue); }
.tabbar button { font-size: .68rem; }
