/* Lokikirja UI 2026: compact, mobile-first, production-safe */
:root {
    color-scheme: dark;
    --bg: #08090a;
    --bg-elevated: #0d0f12;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.07);
    --surface-3: rgba(255, 255, 255, 0.105);
    --border: rgba(255, 255, 255, 0.085);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f7f8f8;
    --text-2: #d0d6e0;
    --text-muted: #8a8f98;
    --text-soft: #62666d;
    --accent: #7170ff;
    --accent-2: #8f8dff;
    --accent-muted: rgba(113, 112, 255, 0.14);
    --danger: #ef4444;
    --success: #10b981;
    --warning-bg: rgba(245, 158, 11, 0.14);
    --warning-border: rgba(245, 158, 11, 0.35);
    --warning-text: #fde68a;
    --shadow: 0 20px 80px rgba(0, 0, 0, 0.34);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.22);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius: 12px;
    --radius-sm: 8px;
    --nav-height: 58px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-feature-settings: "cv01", "ss03";
    background:
        radial-gradient(circle at 15% 0%, rgba(113, 112, 255, 0.16), transparent 28rem),
        radial-gradient(circle at 88% 8%, rgba(16, 185, 129, 0.06), transparent 22rem),
        linear-gradient(180deg, #090a0d 0%, #08090a 52%, #0b0d10 100%);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; }

main, .page {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 1rem clamp(0.75rem, 2vw, 1.5rem) 4.5rem;
}
.page--index { display: grid; gap: 0.85rem; }

.primary-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 9, 10, 0.84);
    backdrop-filter: blur(18px);
    padding: 0 clamp(0.75rem, 2vw, 1.5rem);
}
.nav-header {
    width: min(1180px, 100%);
    min-height: var(--nav-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 620;
    letter-spacing: -0.025em;
}
.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.025)),
        url('../favicon.svg') center center / 70% no-repeat;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.brand-text { font-size: 1rem; }
.nav-toggle {
    display: none;
    min-height: 40px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    padding: 0 0.8rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 560;
}
.primary-nav ul {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 0 0.72rem;
    list-style: none;
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.primary-nav ul::-webkit-scrollbar { display: none; }
.primary-nav li { flex: 0 0 auto; }
.primary-nav a:not(.brand) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 0.72rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 540;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.primary-nav a:not(.brand):hover,
.primary-nav a:not(.brand):focus-visible {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}
.primary-nav ul.open { display: flex; }

.hero-panel, .panel, .entry-card, section, article {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.028));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.045);
}
.hero-panel {
    padding: clamp(1rem, 2.6vw, 1.4rem);
    background:
        linear-gradient(135deg, rgba(113,112,255,.16), rgba(255,255,255,.052) 46%, rgba(255,255,255,.028)),
        rgba(255,255,255,.02);
}
.hero-panel__content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.eyebrow {
    margin: 0 0 0.35rem;
    color: var(--accent-2);
    font-size: 0.78rem;
    font-weight: 620;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
header h1, .section-header h1, .hero-panel h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2.15rem, 7vw, 4rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
    font-weight: 620;
}
.panel, header:not(.hero-panel) { padding: clamp(1rem, 2.2vw, 1.25rem); margin-bottom: 0.85rem; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}
.section-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    font-weight: 620;
}
.entry-meta, .search-note { color: var(--text-muted); font-size: 0.9rem; }
.search-note { margin: -0.2rem 0 0; padding-left: 0.15rem; }

.button, .chip, .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 38px;
    border-radius: 10px;
    padding: 0 0.78rem;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
    color: var(--text-2);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 560;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.button:hover, .button:focus-visible,
.chip:hover, .chip:focus-visible,
.tag:hover, .tag:focus-visible {
    background: rgba(255,255,255,.075);
    border-color: var(--border-strong);
    color: var(--text);
}
.button:active, .chip:active, .tag:active { transform: translateY(1px); }
.button--primary, .button:not(.button--ghost):not(.button--danger) {
    border-color: rgba(143,141,255,.45);
    background: linear-gradient(180deg, #7978ff, #6060e8);
    color: #fff;
    box-shadow: 0 10px 24px rgba(96, 96, 232, .26), inset 0 1px 0 rgba(255,255,255,.18);
}
.button--primary:hover, .button:not(.button--ghost):not(.button--danger):hover,
.button--primary:focus-visible, .button:not(.button--ghost):not(.button--danger):focus-visible {
    background: linear-gradient(180deg, #8f8dff, #6d6df4);
    color: #fff;
}
.button--ghost { background: rgba(255,255,255,.03); color: var(--text-2); box-shadow: none; }
.button--danger { background: linear-gradient(180deg, #ef4444, #b91c1c); border-color: rgba(239,68,68,.5); color: white; }
.icon-button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text-2);
    font: inherit;
    font-size: 1.25rem;
    cursor: pointer;
}

.command-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(0,0,0,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.command-bar__input, .search-bar__input {
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    min-height: 42px;
    padding: 0 0.75rem;
}
.command-bar__button, .command-bar__clear { min-height: 38px; }
.search-bar { display: grid; grid-template-columns: 1fr auto auto; gap: 0.5rem; margin-bottom: 0.85rem; }

input[type="text"], input[type="tel"], input[type="email"], input[type="date"], textarea, select, .filter-panel {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.04);
    color: var(--text);
    padding: 0.78rem 0.9rem;
    font: inherit;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
textarea { min-height: 168px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-soft); }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(113,112,255,.24);
    outline-offset: 2px;
    border-color: rgba(143,141,255,.65);
}
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.42rem; color: var(--text-2); font-weight: 590; }
.form-actions, .entry-actions, .controls, .file-inputs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.date-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 0.5rem; align-items: center; }
.weekday { color: var(--accent-2); font-weight: 620; min-width: 2rem; }
.file-input-hidden { display: none; }

.filter-dock {
    position: sticky;
    top: calc(var(--nav-height) + 0.25rem);
    z-index: 35;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.filter-dock__bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(11, 13, 16, 0.92);
    box-shadow: var(--shadow-sm);
}
.tag-panel { display: contents; }
.filter-trigger {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-height: 38px;
    padding: 0 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(143,141,255,.34);
    background: var(--accent-muted);
    color: var(--text);
    cursor: pointer;
    font-weight: 610;
    white-space: nowrap;
}
.filter-trigger::-webkit-details-marker, .filter-trigger::marker { display: none; }
.filter-trigger__icon { color: var(--accent-2); font-weight: 700; }
.filter-trigger__count {
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
}
.active-filter-strip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.active-filter-strip::-webkit-scrollbar { display: none; }
.active-filter-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text-2);
    font-size: 0.84rem;
    font-weight: 540;
}
.active-filter-pill--muted { color: var(--text-muted); }
.tag-panel__body {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: start center;
    padding: clamp(0.75rem, 3vw, 2rem);
}
.filter-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(0,0,0,.66);
    backdrop-filter: blur(8px);
    cursor: default;
}
.filter-sheet {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: min(760px, calc(100dvh - 2rem));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(25,26,28,.98), rgba(13,15,18,.98));
    box-shadow: var(--shadow);
}
.filter-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.8rem;
    border-bottom: 1px solid var(--border);
}
.filter-sheet__header h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.035em; }
.filter-sheet__header p { margin: 0.22rem 0 0; color: var(--text-muted); font-size: 0.9rem; }
.filter-toolbar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.segmented-option {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    cursor: pointer;
}
.segmented-option input { position: absolute; opacity: 0; }
.segmented-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 610;
}
.segmented-option input:checked + span { background: rgba(113,112,255,.18); border-color: rgba(143,141,255,.44); color: var(--text); }
.tag-group-grid { display: grid; gap: 0.65rem; }
.tag-group-grid--filter {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    overflow: auto;
    padding: 1rem;
}
.filter-group {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    padding: 0.75rem;
    box-shadow: none;
}
.filter-group h3 {
    margin: 0 0 0.55rem;
    color: color-mix(in srgb, var(--group-color, var(--accent)) 75%, #fff 25%);
    font-size: 0.82rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tag-list, .tag-grid, .entry-tags { display: flex; flex-wrap: wrap; gap: 0.38rem; }
.tag-list--dense { gap: 0.32rem; }
.chip, .tag {
    min-height: 32px;
    border-radius: 999px;
    padding: 0 0.62rem;
    font-size: 0.82rem;
    line-height: 1;
}
.chip--active, .tag--active, .tag-list .tag--active, .tag-group .tag--active, .chip--clear.chip--active {
    border-color: rgba(143,141,255,.55);
    background: rgba(113,112,255,.24);
    color: #fff;
}
.chip--clear { flex: 0 0 auto; }

.tag-collapsible {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    padding: 0.75rem;
    margin-bottom: 0.55rem;
    box-shadow: none;
}
.tag-collapsible summary, .tag-panel__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--text-2);
    font-weight: 610;
}
.tag-collapsible summary::-webkit-details-marker, .tag-collapsible summary::marker, .tag-panel__summary::-webkit-details-marker, .tag-panel__summary::marker { display: none; }
.tag-collapsible summary::after, .tag-panel__summary::after { content: '+'; color: var(--text-soft); }
.tag-collapsible[open] summary::after, .tag-panel[open] .tag-panel__summary::after { content: '–'; }
.tag-group { --group-color: var(--accent); margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px solid var(--border); }
.tag-group .tag, .tag-checkbox input:checked + span { border-color: color-mix(in srgb, var(--group-color, var(--accent)) 60%, #fff 10%); }
.tag-group .tag--active, .tag-checkbox input:checked + span { background: color-mix(in srgb, var(--group-color, var(--accent)) 70%, #111 30%); color: white; }
.tag-checkbox {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
    color: var(--text-muted);
    cursor: pointer;
}
.tag-checkbox span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 0.62rem; font-size: 0.84rem; font-weight: 560; }
.tag-checkbox input { position: absolute; opacity: 0; }
.mode-toggle { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--text-muted); font-weight: 560; }
.mode-toggle input { accent-color: var(--accent); }

.entry-list { display: grid; gap: 0.62rem; }
.entry-card {
    padding: 0.86rem;
    cursor: pointer;
    border-radius: 16px;
    background: rgba(255,255,255,.034);
    box-shadow: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.entry-card:hover, .entry-card:focus-visible { background: rgba(255,255,255,.055); border-color: var(--border-strong); transform: translateY(-1px); }
.entry-card-header { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; align-items: baseline; }
.entry-date { color: var(--text); font-size: 0.98rem; font-weight: 620; letter-spacing: -0.02em; }
.entry-preview { margin-top: 0.38rem; color: var(--text-2); white-space: pre-line; word-break: break-word; font-size: 0.94rem; }
.entry-tags { margin-top: 0.62rem; }
.entry-tags .tag { min-height: 28px; padding: 0 0.54rem; font-size: 0.78rem; }
.entry-photos { margin-top: 0.65rem; display: flex; gap: 0.45rem; flex-wrap: wrap; }
.entry-photos img {
    width: 76px;
    height: 58px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #000;
}
.photo-item { display: inline-flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0; border: 0; background: transparent; color: inherit; text-decoration: none; cursor: zoom-in; }
.photo-item img { display: block; transition: transform .15s ease, border-color .15s ease; }
.photo-item:hover img, .photo-item:focus-visible img { border-color: var(--border-strong); transform: translateY(-1px); }
.photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 0.6rem; margin-top: 0.75rem; }
.share-status { margin: 0.7rem 0 0; color: var(--text-muted); font-size: 0.95rem; }
.photo-thumb { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.035); }
.photo-thumb img { display: block; width: 100%; height: 105px; object-fit: cover; }
.photo-thumb__remove { border: 1px solid var(--border); background: rgba(0,0,0,.72); color: white; border-radius: 999px; cursor: pointer; }
.photo-thumb__remove { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; font-size: 1.1rem; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1rem;
}
.pagination a, .pagination span {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 560;
}
.pagination a:hover, .pagination a:focus-visible, .pagination .current-page { background: rgba(113,112,255,.2); color: var(--text); border-color: rgba(143,141,255,.44); }
.pagination__step { min-width: auto !important; }
.pagination__ellipsis { border-color: transparent !important; background: transparent !important; min-width: 20px !important; padding: 0 !important; }
.notice-banner { background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--warning-text); padding: 0.8rem 0.9rem; border-radius: var(--radius); margin-bottom: 0.85rem; font-weight: 590; }
.notice-banner a { color: #fff; font-weight: 720; }

table { width: 100%; border-collapse: collapse; margin-top: 1rem; background: rgba(255,255,255,.025); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 0.8rem 0.7rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
tfoot td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 0.3rem 0.65rem; border-radius: 999px; background: rgba(255,255,255,.055); color: var(--text-muted); border: 1px solid var(--border); font-size: 0.8rem; }
.badge--primary { background: rgba(113,112,255,.16); color: #c8cbff; border-color: rgba(113,112,255,.32); }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer { text-align: center; padding: 2rem 1rem; color: var(--text-soft); font-size: 0.88rem; }

@supports not (color: color-mix(in srgb, red, blue)) {
    .filter-group h3 { color: var(--accent-2); }
    .tag-group .tag--active, .tag-checkbox input:checked + span { background: var(--accent); border-color: var(--accent-2); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (min-width: 900px) {
    .entry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entry-card:first-child { grid-column: 1 / -1; }
    .tag-group-grid--form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav ul { display: none; flex-direction: column; max-height: calc(100dvh - var(--nav-height)); overflow-y: auto; padding-bottom: 0.75rem; }
    .primary-nav ul.open { display: flex; }
    .primary-nav li, .primary-nav a:not(.brand) { width: 100%; }
    .primary-nav a:not(.brand) { justify-content: flex-start; min-height: 42px; padding: 0 0.8rem; background: rgba(255,255,255,.03); border-color: var(--border); }
}
@media (max-width: 720px) {
    :root { --nav-height: 54px; }
    main, .page { padding-left: 0.62rem; padding-right: 0.62rem; padding-top: 0.7rem; }
    .hero-panel, .panel, header:not(.hero-panel) { border-radius: 18px; padding: 0.86rem; }
    .hero-panel__content { align-items: stretch; flex-direction: column; margin-bottom: 0.75rem; }
    .hero-panel__content .button { width: 100%; }
    .command-bar { grid-template-columns: 1fr; padding: 0.28rem; }
    .command-bar .button { width: 100%; }
    .filter-dock { top: calc(var(--nav-height) + 0.15rem); }
    .filter-dock__bar { min-height: 44px; border-radius: 14px; }
    .active-filter-pill { min-height: 30px; font-size: 0.8rem; }
    .tag-panel__body { padding: 0.5rem; align-items: end; place-items: end center; }
    .filter-sheet { max-height: min(82dvh, 720px); border-radius: 20px 20px 16px 16px; }
    .filter-sheet__header { padding: 0.85rem 0.85rem 0.7rem; }
    .filter-toolbar { padding: 0.65rem 0.85rem; }
    .tag-group-grid--filter { grid-template-columns: 1fr; padding: 0.85rem; }
    .date-inline { grid-template-columns: 1fr auto auto; }
    .date-inline .weekday { grid-column: 1 / -1; }
    .section-header { align-items: stretch; }
    .section-header .button, .entry-actions .button, .form-actions .button, .file-inputs .button { width: 100%; }
    .entry-card { padding: 0.78rem; }
    .entry-photos img { width: 68px; height: 52px; }
    .pagination { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.15rem; }
    th, td { padding: 0.65rem 0.5rem; }
}


.notice-banner--danger {
    background: #fee2e2;
    border-color: #ef4444;
    color: #7f1d1d;
}

.form-help {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0.35rem 0 0;
}

.target-inline-form {
    align-items: center;
}

.input-inline--confirm {
    max-width: 7rem;
}

button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}
