.app-main { padding: 28px 0 72px; }
.app-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 18px; }
.app-head h1 { font-size: 1.7rem; margin: 0; }
.app-head .file { color: var(--muted); font-size: .95rem; }
.nav .links a.on { color: var(--accent); font-weight: 650; }
.banner { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; background: var(--accent-soft); color: var(--accent-ink); display: block; line-height: 1.6; font-size: .95rem; }
.app-main .banner a { padding: 10px 2px; margin: -10px 0; }
.banner.warn { background: var(--soff-soft); color: #5e3f08; }
.banner a { font-weight: 650; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 22px; }
.panel h2 { font-size: 1.25rem; }
.panel .actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 12px; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
@media (min-width: 860px) { .summary { grid-template-columns: repeat(4, 1fr); } }
.summary div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.summary b { display: block; font-size: 1.45rem; line-height: 1.2; }
.summary small { color: var(--muted); font-size: .82rem; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.tabs button { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 14px; min-height: 40px; cursor: pointer; }
.tabs button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
.list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.list > li { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.list > li:last-child { border-bottom: 0; }
.list .top { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 760px) { .list .top { grid-template-columns: 1fr auto 170px 40px; align-items: center; gap: 16px; } }
.list .who { font-weight: 650; overflow-wrap: anywhere; }
.list .meta { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.list .status { display: grid; gap: 2px; justify-items: start; }
@media (min-width: 760px) { .list .status { justify-items: end; text-align: right; } }
.list .status small { color: var(--muted); font-size: .76rem; }
.owed-in { display: flex; align-items: center; gap: 6px; }
.owed-in label { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.owed-in input { min-height: 40px; padding: 6px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.owed-in .ok { color: var(--accent); font-size: .8rem; width: 1.2em; }
.rm { background: none; border: 0; color: var(--muted); cursor: pointer; width: 40px; height: 40px; border-radius: 8px; font-size: 1.2rem; }
.rm:hover { background: #f1efe9; color: var(--exad); }
.plain { font-size: .88rem; background: #faf8f3; border-left: 3px solid var(--line); padding: 8px 12px; border-radius: 0 6px 6px 0; }
.plain.EXAD { border-color: var(--exad); }
.plain.SOFF { border-color: var(--soff); }
.needs { background: #fffdf6; }
.needs .why { font-size: .9rem; color: #5e3f08; }
.cands { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.cands li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; }
.cands .tag { font-size: .72rem; font-weight: 650; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.alerts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.alerts li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--exad); border-radius: 8px; padding: 10px 14px; font-size: .92rem; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.note-list { margin: 8px 0 0; padding-left: 20px; font-size: .9rem; }
details.more > summary { cursor: pointer; font-weight: 650; color: var(--accent); padding: 6px 0; min-height: 40px; display: flex; align-items: center; }
.loading { color: var(--muted); padding: 40px 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 8px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
