:root {
  --ink: #17201e;
  --muted: #68736f;
  --paper: #f3f6f4;
  --white: #fff;
  --brand: rgb(111, 66, 147);
  --brand-hover: #5b347a;
  --soft: #e4f2f0;
  --accent: rgb(75, 165, 157);
  --orange: #e86138;
  --line: #dbe2de;
  --shadow: 0 8px 28px rgba(18, 48, 41, .07);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(75, 165, 157, .75); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar { height: 64px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; gap: 38px; color: #fff; background: var(--brand); border-bottom: 1px solid rgba(255, 255, 255, .1); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; flex: none; height: 40px; align-items: center; gap: 11px; font-size: 1.58rem; font-weight: 850; line-height: 1; letter-spacing: -.025em; }
.brand img { width: 34px; height: 34px; display: block; }
.topbar nav { display: flex; min-width: 0; height: 40px; align-items: center; gap: 4px; overflow-x: auto; transform: translateY(3px); scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a { display: flex; flex: none; height: 40px; align-items: center; padding: 0 13px; color: #d7e3de; font-size: .9rem; font-weight: 700; line-height: 1; border-bottom: 3px solid transparent; }
.topbar nav a:first-child { color: #fff; border-bottom-color: var(--accent); }
.topbar nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.topbar > .account, .account-area { margin-left: auto; }
.account-area { display: flex; flex: none; height: 40px; align-items: center; gap: 8px; }
.manage-area { display: flex; height: 40px; align-items: center; gap: 9px; }
.update-status { display: flex; height: 40px; align-items: center; gap: .3em; color: #dfd2e9; font-size: .7rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.update-status time { color: #fff; font-variant-numeric: tabular-nums; }
.account { display: flex; height: 40px; align-items: center; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; font-size: .85rem; font-weight: 750; line-height: 1; }
.account:hover { color: var(--brand); background: #fff; }
.account-email:hover { color: #fff; background: transparent; }
.manage-button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; }
.manage-button:hover { color: var(--brand); background: #fff; }
.manage-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.view-toggle { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; background: transparent; cursor: pointer; }
.view-toggle:hover, .view-toggle[aria-pressed="true"] { color: var(--brand); background: #fff; }
.view-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.view-toggle .grid-icon { display: none; }
.view-toggle[aria-pressed="true"] .list-icon { display: none; }
.view-toggle[aria-pressed="true"] .grid-icon { display: block; }

main { max-width: 1180px; margin: auto; padding: 30px 24px 64px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 410px); align-items: end; gap: 44px; }
.eyebrow { margin: 0 0 6px; color: var(--orange); font-size: .72rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.intro h1, .auth-copy h1, .page-head h1 { margin: 0; color: var(--brand); font-family: var(--sans); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 860; line-height: 1.02; letter-spacing: -.05em; text-shadow: 2px 2px 0 rgba(75, 165, 157, .28); }
.intro p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.search { display: flex; width: 100%; padding: 5px; background: var(--white); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 3px 14px rgba(18, 48, 41, .05); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(75, 165, 157, .16); }
.search-field { display: flex; flex: 1; min-width: 0; align-items: center; }
.search input { flex: 1; min-width: 0; padding: 10px 11px; border: 0; background: transparent; outline: 0; }
.search-clear { display: grid; flex: none; width: 32px; height: 32px; margin-right: 4px; place-items: center; border-radius: 50%; color: var(--muted); }
.search-clear svg { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.search-clear:hover { color: #fff; background: var(--brand); }
.search button, .form button, .settings button, .link-button { padding: 10px 15px; border: 0; border-radius: 8px; color: #fff; background: var(--brand); font-weight: 800; cursor: pointer; }
.search button:hover, .form button:hover, .settings button:hover, .link-button:hover { background: var(--brand-hover); }

.category-filter { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin: 22px 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.category-filter > span, .source-filter > span { color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.categories { display: flex; gap: 7px; overflow-x: auto; padding: 0 2px; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.categories a { flex: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .72); font-size: .8rem; font-weight: 750; }
.categories a:hover { border-color: #aab9b3; background: #fff; }
.categories a.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.source-filter { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.source-filter nav { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 5px; scrollbar-width: thin; scrollbar-color: #c5ceca transparent; }
.source-filter a { flex: none; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: .75rem; font-weight: 720; }
.source-filter a:hover { border-color: var(--accent); }
.source-filter a.active { color: #fff; border-color: var(--brand); background: var(--brand); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 26px; align-items: start; }
.feed { padding: 0 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.section-head { display: flex; align-items: center; justify-content: space-between; min-height: 55px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; font-size: .95rem; font-weight: 820; }
.section-head span { color: var(--muted); font-size: .75rem; font-weight: 650; }
.story { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.story:last-child { border-bottom: 0; }
.thumb { display: flex; align-items: end; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 9px; background: linear-gradient(135deg, #acd8d4, #edf7f6); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform-origin: center top; transition: transform .2s ease; }
.thumb:hover img { transform: scale(1.025); }
.thumb span { margin: 10px; color: var(--brand); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.story.aplausin .thumb { background: linear-gradient(135deg, #f8b8a0, #ffe5da); }
.story-copy { min-width: 0; align-self: center; }
.meta { display: flex; align-items: center; gap: 9px; font-size: .74rem; line-height: 1.25; }
.meta strong { color: var(--brand); font-weight: 800; }
.meta span { color: var(--muted); }
.meta span::before { content: "•"; margin-right: 9px; color: #a5afab; }
.story h2 { margin: 7px 0 10px; font-family: var(--sans); font-size: 1.16rem; font-weight: 790; line-height: 1.27; letter-spacing: -.022em; }
.story h2 a:hover { color: var(--brand-hover); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .67rem; }
.tags span, .tags b { padding: 3px 7px; border-radius: 5px; background: #eef2f0; font-weight: 700; }
.tags b { color: #913718; background: #fff0e9; }

.timeline-feed { padding-bottom: 14px; }
.feed-loader { display: flex; min-height: 74px; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.feed-loader span { width: 18px; height: 18px; border: 2px solid #d9d0e1; border-top-color: var(--brand); border-radius: 50%; animation: feed-spin .75s linear infinite; }
.feed-loader.has-error { color: #913718; text-align: center; }
.feed-loader.has-error span { display: none; }
@keyframes feed-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .feed-loader span { animation-duration: 1.8s; } }
.timeline-day > h2 { display: flex; align-items: baseline; gap: 9px; margin: 24px 0 8px; font-size: 1.12rem; font-weight: 850; letter-spacing: -.02em; }
.timeline-day > h2 span { color: var(--muted); font-size: .72rem; font-weight: 650; letter-spacing: 0; }
.time-block { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 13px; }
.time-axis { position: relative; display: grid; grid-template-columns: 1fr 10px; gap: 7px; align-items: start; padding-top: 18px; }
.time-axis time { color: var(--brand); font-size: .71rem; font-weight: 820; font-variant-numeric: tabular-nums; }
.axis-dot { width: 10px; height: 10px; margin-top: 1px; border: 2px solid var(--brand); border-radius: 50%; background: #fff; position: relative; z-index: 2; }
.axis-line { position: absolute; top: 29px; right: 4px; bottom: 0; width: 2px; background: #e0d8e7; }
.time-items { min-width: 0; }
.time-items .story { grid-template-columns: 158px minmax(0, 1fr); }
.time-block:last-child .axis-line { bottom: 12px; }
.scroll-top { position: fixed; right: 342px; bottom: 22px; z-index: 15; display: grid; width: 46px; height: 46px; padding: 0; place-items: center; color: #fff; border: 0; border-radius: 50%; background: var(--brand); box-shadow: 0 8px 22px rgba(43, 24, 58, .25); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; cursor: pointer; }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--brand-hover); transform: translateY(-2px); }
.scroll-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1228px) {
  .scroll-top { right: calc((100vw - 1180px) / 2 + 318px); }
}

/* Stejné kompaktní pořadí jako v RSS Vieweru: čas, titulek, zdroj. */
.compact-view .time-items .story { display: block; min-height: 43px; padding: 9px 13px; }
.compact-view .time-items .thumb, .compact-view .time-items .tags { display: none; }
.compact-view .time-items .story-copy { display: grid; grid-template-columns: 58px minmax(0, 1fr) 110px; align-items: center; gap: 13px; }
.compact-view .time-items .meta { display: contents; }
.compact-view .time-items .meta span { grid-column: 1; grid-row: 1; color: #555d68; font-size: .78rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.compact-view .time-items .meta span::before { display: none; }
.compact-view .time-items .story h2 { grid-column: 2; grid-row: 1; margin: 0; font-size: .88rem; line-height: 1.35; font-weight: 650; }
.compact-view .time-items .meta strong { grid-column: 3; grid-row: 1; color: var(--muted); font-size: .74rem; font-weight: 700; white-space: nowrap; }

aside { display: flex; flex-direction: column; gap: 15px; position: sticky; top: 80px; }
aside section { padding: 20px; border-radius: 13px; }
.home-aside { position: relative; top: auto; align-self: stretch; }
.aplausin-pick { min-height: 160px; display: flex; flex-direction: column; color: #fff; background: var(--brand); }
.aplausin-pick p { margin: 0; color: var(--accent); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.aplausin-rotation { position: relative; height: 5.8rem; margin: 13px 0 8px; overflow: hidden; }
.aplausin-pick h2 { margin: 0; font-family: var(--sans); font-size: 1.12rem; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.aplausin-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(5px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.aplausin-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.aplausin-slide a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.ad { height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); border: 1px dashed #aebbb5; background: #edf1ef; }
.ad-expanded { position: sticky; top: 80px; height: 580px; }
.ad-format-short { display: none; }
.ad span { font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; }
.ad strong { margin: 9px 0 4px; color: var(--ink); font-size: .9rem; }
.ad small { max-width: 190px; line-height: 1.45; }
.custom { background: var(--soft); }
.custom h2 { margin: 0; font-size: 1rem; }
.custom p { margin: 9px 0 14px; color: #52635d; font-size: .84rem; line-height: 1.5; }
.custom a { display: inline-block; padding: 9px 12px; border-radius: 7px; color: #fff; background: var(--brand); font-size: .76rem; font-weight: 800; }

footer { max-width: 1180px; margin: auto; padding: 24px; display: flex; align-items: center; gap: 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: .8rem; }
footer > a:last-child { margin-left: auto; font-weight: 750; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.footer-brand img { width: 25px; height: 25px; }

.auth-wrap { min-height: 68vh; display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 72px; align-items: center; }
.auth-copy > p:last-child, .page-head p { max-width: 540px; color: var(--muted); font-size: .98rem; line-height: 1.6; }
.panel { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.form { display: grid; gap: 17px; }
.form label, .settings > .wide { display: grid; gap: 7px; font-size: .78rem; font-weight: 800; }
.form input, .settings input[type=text], .settings > .wide input { width: 100%; padding: 11px 12px; border: 1px solid #c8d2cd; border-radius: 8px; background: #fafcfb; outline: 0; }
.form input:focus, .settings input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(75, 165, 157, .16); }
.form-switch { margin: 0; color: var(--muted); font-size: .8rem; text-align: center; }
.form-switch a { color: var(--brand); text-decoration: underline; }
.error { padding: 10px 12px; color: #942e18; background: #fff0ec; border-radius: 8px; font-size: .82rem; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 28px; }
.ghost { padding: 9px 13px !important; color: var(--ink) !important; background: #fff !important; border: 1px solid var(--line) !important; border-radius: 8px; font-weight: 800; }
.dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; }
.dashboard > section { padding: 10px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.collection { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.collection:last-child { border-bottom: 0; }
.collection span { color: var(--orange); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.collection h2 { margin: 5px 0; font-family: var(--sans); font-size: 1.2rem; }
.collection p { margin: 0; color: var(--muted); font-size: .78rem; }
.collection-copy { min-width: 0; }
.collection-actions { display: flex; flex: none; align-items: center; gap: 6px; }
.collection-actions a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: .73rem; font-weight: 800; }
.collection-actions a:hover { border-color: var(--accent); background: var(--soft); }
.collection-actions .open { color: #fff; border-color: var(--brand); background: var(--brand); }
.collection-actions .delete { color: #9b321f; }
.collection-actions .delete b { margin-right: 2px; font-size: 1rem; line-height: 0; }
.action-form, .confirm-page { max-width: 540px; margin: 0 auto; }
.confirm-page h1 { margin: 6px 0 12px; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; }
.confirm-page > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.confirm-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.confirm-actions form { margin: 0; }
.danger { padding: 10px 14px; color: #fff; border: 0; border-radius: 8px; background: #a63824; font-weight: 800; cursor: pointer; }
.danger:hover { background: #852817; }
.compact { align-self: start; }
.compact h2 { margin-top: 0; }
.empty { padding: 46px 20px; color: var(--muted); text-align: center; }
.empty h1, .empty h2 { color: var(--ink); font-family: var(--sans); }
.empty code { padding: 2px 5px; border-radius: 4px; background: #edf1ef; }
.settings { max-width: 1000px; margin: auto; }
.settings h2 { margin: 32px 0 4px; font-family: var(--sans); font-size: 1.2rem; }
.help { color: var(--muted); font-size: .84rem; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.category-grid { margin: 16px 0; }
.check { display: flex; gap: 9px; align-items: center; padding: 10px; background: #f3f6f4; border: 1px solid #dfe6e2; border-radius: 8px; font-size: .82rem; cursor: pointer; }
.check input { accent-color: var(--brand); }
fieldset { padding: 0; margin: 26px 0; border: 0; }
legend { margin-bottom: 10px; font-weight: 850; }
.form-actions { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; padding: 13px; background: rgba(255, 255, 255, .92); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #edf2ef; font-size: .69rem; letter-spacing: .07em; text-transform: uppercase; }
td small { display: block; max-width: 380px; margin-top: 4px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.status { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #edf0ed; }
.status.rss { color: #17602e; background: #e2f2e6; }
.status.html { color: #77510a; background: #fff2d8; }
.status.chyba { color: #932e1a; background: #ffebe7; }

@media (min-width: 851px) and (max-height: 700px) {
  .ad-expanded { height: 230px; }
  .ad-format-large { display: none; }
  .ad-format-short { display: block; }
}
@media (max-width: 850px) {
  .topbar { height: auto; min-height: 64px; flex-wrap: wrap; gap: 6px 18px; padding-top: 8px; padding-bottom: 8px; }
  .topbar nav { order: 3; width: 100%; height: 38px; transform: none; }
  .topbar nav a { height: 38px; }
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .layout { grid-template-columns: 1fr; }
  .scroll-top { right: 18px; bottom: 18px; }
  aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .ad-expanded { position: static; height: 300px; }
  .ad-format-large { display: none; }
  .ad-format-short { display: block; }
  .ad { grid-row: span 2; }
  .auth-wrap, .dashboard { grid-template-columns: 1fr; gap: 28px; }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .topbar { min-height: 60px; padding: 8px 14px; gap: 6px 12px; }
  .brand { font-size: 1.28rem; }
  .brand img { width: 31px; height: 31px; }
  .account { max-width: 125px; height: 33px; padding: 0 9px; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
  .manage-button { width: 33px; height: 33px; }
  .view-toggle { width: 33px; height: 33px; }
  .update-status > span { display: none; }
  main { padding: 23px 12px 46px; }
  .intro h1, .auth-copy h1, .page-head h1 { font-size: 2.2rem; }
  .intro p:not(.eyebrow) { font-size: .9rem; }
  .category-filter { grid-template-columns: 1fr; gap: 6px; margin: 18px 0 10px; padding: 10px; border-radius: 11px; }
  .category-filter > span { padding-left: 2px; }
  .categories { padding: 1px 2px 6px; }
  .source-filter { grid-template-columns: 1fr; gap: 6px; margin: 0 0 14px; padding: 10px; border-radius: 11px; }
  .source-filter > span { padding-left: 2px; }
  .source-filter nav { padding: 1px 2px 6px; scrollbar-width: none; }
  .feed { padding: 0 12px; border-radius: 11px; }
  .story { grid-template-columns: 106px minmax(0, 1fr); gap: 12px; padding: 13px 0; }
  .story h2 { margin: 5px 0 8px; font-size: .98rem; line-height: 1.27; }
  .meta { display: block; font-size: .69rem; }
  .meta span { display: block; margin-top: 3px; }
  .meta span::before { display: none; }
  .tags b { display: none; }
  .timeline-day > h2 { margin-top: 20px; }
  .time-block { grid-template-columns: 43px minmax(0, 1fr); gap: 8px; }
  .time-axis { grid-template-columns: 1fr 8px; gap: 4px; padding-top: 14px; }
  .time-axis time { font-size: .64rem; }
  .axis-dot { width: 8px; height: 8px; }
  .axis-line { top: 23px; right: 3px; }
  .time-items .story { grid-template-columns: 94px minmax(0, 1fr); }
  .compact-view .time-items .story-copy { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
  .compact-view .time-items .meta span { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 2px; }
  .compact-view .time-items .story h2 { grid-column: 2; grid-row: 1; }
  .compact-view .time-items .meta strong { grid-column: 2; grid-row: 2; margin-top: -3px; }
  aside { display: flex; }
  .ad { height: 180px; }
  footer { margin: 0 12px; padding: 22px 0 30px; align-items: flex-start; flex-direction: column; gap: 8px; }
  footer > a:last-child { margin-left: 0; }
  .auth-wrap { min-height: auto; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .check-grid, .category-grid { grid-template-columns: 1fr; }
  .panel { padding: 19px; }
  .table-wrap { border-radius: 9px; }
  th, td { padding: 9px; }
  .dashboard > section { padding: 8px 14px; }
  .collection { align-items: flex-start; flex-direction: column; gap: 14px; }
  .collection-actions { width: 100%; flex-wrap: wrap; }
  .collection-actions a { flex: 1 1 auto; text-align: center; }
  .confirm-actions { align-items: stretch; flex-direction: column-reverse; }
  .confirm-actions a, .confirm-actions button { width: 100%; text-align: center; }
}
