:root { --pico-font-size: 100%; }
.topbar { border-bottom: 1px solid var(--pico-muted-border-color); margin-bottom: 1rem; }
/* pasek menu admina: stała pozycja, niezależna od szerokości treści strony */
.subnav { display: flex; flex-wrap: wrap; gap: .25rem; margin: -1rem 0 1rem; padding-top: .4rem; padding-bottom: .4rem;
          border-bottom: 1px solid var(--pico-muted-border-color); background: var(--pico-card-sectioning-background-color); }
.subnav a { padding: .3rem .75rem; border-radius: var(--pico-border-radius); font-size: .9rem; text-decoration: none;
            white-space: nowrap; color: var(--pico-color); border: 1px solid transparent; }
.subnav a:hover { border-color: var(--pico-muted-border-color); }
.subnav a[aria-current=page] { background: var(--pico-primary-background); color: var(--pico-primary-inverse); }
.topbar nav { padding: 0 .5rem; }
.brand { font-weight: 700; }
form.inline { display: inline; margin: 0; }
button.small, a.small[role=button], input.small, select.small { padding: .2rem .6rem; font-size: .85rem; margin: 0; width: auto; }
.muted { color: var(--pico-muted-color); font-size: .9em; }
/* komunikaty: stałe kolory, czytelne w trybie jasnym i ciemnym */
.flash { padding: .6rem 1rem; border-radius: var(--pico-border-radius); color: #fff; background: #1e7a46; }
.flash.flash-warn { background: #9a5a00; }
.flash.flash-error { background: #b3261e; }
.saved { color: var(--pico-ins-color); font-size: .85em; }
.late { color: var(--pico-del-color); }
.ok { color: var(--pico-ins-color); }
.badge { display: inline-block; padding: 0 .45rem; border-radius: 1rem; font-size: .8em; border: 1px solid currentColor; }

article.topic header h3 { margin: 0; }
ul.files { list-style: none; padding: 0; margin: 0 0 .5rem; }
ul.files li { list-style: none; margin: .15rem 0; }
.ex-row { display: grid; grid-template-columns: 4rem 1fr auto; gap: .5rem 1rem; align-items: start;
          padding: .6rem 0; border-top: 1px solid var(--pico-muted-border-color); }
.ex-row .code { font-weight: 700; font-size: 1.2em; }
.ex-row form { margin: 0; }
.ex-row input[type=file] { margin: 0; padding: .25rem; font-size: .85rem; }
.ex-status { grid-column: 2 / 4; font-size: .9em; }
@media (max-width: 700px) { .ex-row { grid-template-columns: 3rem 1fr; } .ex-row > :nth-child(3) { grid-column: 1 / 3; } }

/* tabele */
table.compact td, table.compact th { padding: .3rem .45rem; font-size: .9rem; }
table.compact input:not([type=checkbox], [type=radio]), table.compact select { margin: 0; padding: .2rem .4rem; height: auto; font-size: .85rem; }
/* pola wyboru: zawsze pełny kwadrat (Pico rysuje je przez wymiary — nie nadpisywać height/padding) */
input[type=checkbox], input[type=radio] { width: 1.25em; height: 1.25em; padding: 0; margin: 0 .35em 0 0; flex-shrink: 0; vertical-align: middle; }
table.compact label { margin: 0; white-space: nowrap; font-size: .85rem; }
.scroll { overflow-x: auto; }
td.cell a { text-decoration: none; display: block; }
td.cell.none { color: var(--pico-muted-color); }
td.cell.todo { background: color-mix(in srgb, #f0ad4e 22%, transparent); }
td.cell.done { background: color-mix(in srgb, var(--pico-ins-color) 15%, transparent); }

/* ocenianie: PDF obok formularza */
.grade-layout { display: grid; grid-template-columns: 1fr 22rem; gap: 1rem; height: calc(100vh - 7rem); }
.grade-layout iframe { width: 100%; height: 100%; border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius); }
.grade-layout aside { overflow-y: auto; }
.grade-layout .empty { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--pico-muted-border-color); }
@media (max-width: 900px) { .grade-layout { grid-template-columns: 1fr; height: auto; } .grade-layout iframe { height: 80vh; } }
.nav-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }

textarea.code { font-family: var(--pico-font-family-monospace); font-size: .85rem; }

/* czas przesłania raportu */
.stamp b { font-variant-numeric: tabular-nums; }
.badge.ok { color: var(--pico-ins-color); }
.badge.late { color: var(--pico-del-color); }
.stamp-box { padding: .6rem .8rem; margin-bottom: .8rem; border-left: 4px solid var(--pico-primary); background: var(--pico-card-sectioning-background-color); border-radius: var(--pico-border-radius); }
.cell-stamp { font-size: .8em; white-space: nowrap; }
details.versions { margin: .3rem 0 0; }
details.versions summary { font-size: .85em; }
details.versions ul { margin: .2rem 0 0; font-size: .85em; }
th.report-col, td.report-col { border-left: 2px solid var(--pico-muted-border-color); }
td.cell.perf { text-align: center; color: var(--pico-muted-color); }

/* trwałe usuwanie */
article.danger { border: 2px solid #b3261e; }
button.danger-button { background: #b3261e; border-color: #b3261e; color: #fff; }

/* listy adresów e-mail */
.email-list { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .35rem 0; border-top: 1px solid var(--pico-muted-border-color); }
.email-list:first-of-type { border-top: 0; }
.email-list details { flex-basis: 100%; margin: 0; }
.email-list textarea { margin: .3rem 0 0; }
.origin { font-family: var(--pico-font-family-monospace); font-size: .78em; word-break: break-all; }

/* Wydział Fizyki UW: logo (czarne na przezroczystym — w trybie ciemnym odwrócone) */
.fuw-logo { display: block; height: auto; }
.topbar .fuw { padding-right: .9rem; margin-right: .1rem; border-right: 1px solid var(--pico-muted-border-color); }
.topbar .fuw a { padding: .2rem 0; }
article header .fuw-logo { margin-bottom: .8rem; }
@media (prefers-color-scheme: dark) { .fuw-logo { filter: invert(1); } }
.sitefoot { margin-top: 2rem; padding-top: .8rem; padding-bottom: 1.2rem; border-top: 1px solid var(--pico-muted-border-color); font-size: .8rem; }
.sitefoot a { color: inherit; }
@media (max-width: 700px) { .topbar .fuw { display: none; } }
