:root {
    --lp-primary: #0f766e;
    --lp-primary-dark: #115e59;
    --lp-primary-soft: #ccfbf1;
    --lp-accent: #f59e0b;
    --lp-ink: #173132;
    --lp-muted: #647575;
    --lp-border: #dce7e6;
    --lp-surface: #ffffff;
    --lp-canvas: #f4f7f7;
    --lp-danger: #b42318;
    --lp-sidebar: 272px;
    --lp-radius: 12px;
    --lp-shadow: 0 10px 30px rgba(15, 50, 48, .07);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--lp-canvas); }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--lp-canvas);
    color: var(--lp-ink);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--lp-primary); }
a:hover { color: var(--lp-primary-dark); }
:focus-visible { outline: 3px solid rgba(245, 158, 11, .65); outline-offset: 2px; }

.app-shell { min-height: 100vh; }
.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    width: var(--lp-sidebar);
    flex-direction: column;
    overflow-y: auto;
    background: #123b3a;
    color: #fff;
    transition: transform .22s ease;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
    text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; }
.brand-title { display: block; font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.brand-subtitle { display: block; margin-top: 1px; color: #add3d0; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.sidebar-section-label { padding: 22px 22px 8px; color: #7fb3af; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-nav { gap: 4px; padding: 0 12px; }
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #c7dcda;
    font-size: .91rem;
    font-weight: 600;
}
.sidebar-nav .nav-link i { width: 20px; color: #8bc5c0; text-align: center; }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-nav .nav-link.active { background: #fff; color: var(--lp-primary-dark); box-shadow: 0 5px 18px rgba(0,0,0,.12); }
.sidebar-nav .nav-link.active i { color: var(--lp-primary); }
.sidebar-nav .dropdown-menu { width: 100%; margin: 5px 0 8px; padding: 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: #0d302f; }
.sidebar-nav .dropdown-item { padding: 9px 10px; border-radius: 7px; color: #c7dcda; font-size: .86rem; }
.sidebar-nav .dropdown-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-footer { margin-top: auto; padding: 14px 12px 18px; border-top: 1px solid rgba(255,255,255,.1); }
.user-menu { width: 100%; border: 0; background: transparent; }
.user-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; background: #2c6864; color: #fff; font-weight: 800; }
.user-copy { min-width: 0; text-align: left; }
.user-name { display: block; overflow: hidden; color: #fff; font-size: .86rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.user-role { display: block; color: #8fbab7; font-size: .72rem; }

.app-main { min-height: 100vh; margin-left: var(--lp-sidebar); }
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 16px;
    padding: 12px 28px;
    border-bottom: 1px solid rgba(220,231,230,.9);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
}
.sidebar-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--lp-border); border-radius: 9px; background: #fff; color: var(--lp-ink); }
.topbar-heading { min-width: 0; }
.topbar-eyebrow { margin: 0 0 1px; color: var(--lp-primary); font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.topbar-title { margin: 0; overflow: hidden; font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 800; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.network-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--lp-muted); font-size: .78rem; font-weight: 700; }
.network-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.network-status.is-offline .network-dot { background: var(--lp-accent); }
.app-content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 28px; }
.sidebar-backdrop { display: none; }

.card {
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    box-shadow: 0 3px 14px rgba(15,50,48,.045);
}
.card-header { padding: 16px 18px; border-bottom: 1px solid var(--lp-border); background: #fff; font-weight: 750; }
.card-body { padding: 20px; }
.card-footer { border-top: 1px solid var(--lp-border); background: #fbfdfd; }
.bg-primary { background-color: var(--lp-primary) !important; }
.bg-success { background-color: #15803d !important; }
.bg-warning { background-color: #b45309 !important; }
.bg-info { background-color: #0369a1 !important; }
.bg-secondary { background-color: #475569 !important; }

.btn { min-height: 40px; border-radius: 9px; font-weight: 700; }
.btn-sm { min-height: 34px; }
.btn-primary, .btn-success { border-color: var(--lp-primary); background: var(--lp-primary); }
.btn-primary:hover, .btn-success:hover { border-color: var(--lp-primary-dark); background: var(--lp-primary-dark); }
.btn-outline-primary, .btn-outline-success { border-color: var(--lp-primary); color: var(--lp-primary); }
.btn-outline-primary:hover, .btn-outline-success:hover { border-color: var(--lp-primary); background: var(--lp-primary); color: #fff; }
.form-label { margin-bottom: 7px; color: #344746; font-size: .86rem; font-weight: 700; }
.form-control, .form-select { min-height: 42px; border-color: #cfdcdb; border-radius: 9px; color: var(--lp-ink); }
.form-control:focus, .form-select:focus { border-color: var(--lp-primary); box-shadow: 0 0 0 .2rem rgba(15,118,110,.13); }

.table-responsive { border: 1px solid var(--lp-border); border-radius: 10px; }
.table { margin-bottom: 0; color: var(--lp-ink); }
.table > :not(caption) > * > * { padding: 13px 14px; border-bottom-color: #e6eeee; vertical-align: middle; }
.table thead th { background: #f5f9f8; color: #4d6261; font-size: .74rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.table tbody tr:hover > * { background: #f8fbfa; }
.badge { padding: .45em .65em; border-radius: 6px; font-weight: 700; }
.alert { border-width: 0 0 0 4px; border-radius: 9px; }
.alert-success { border-color: #16a34a; background: #ecfdf3; color: #166534; }
.alert-danger { border-color: #dc2626; background: #fff1f2; color: #991b1b; }
.alert-warning { border-color: var(--lp-accent); background: #fffbeb; color: #92400e; }
.modal-content { border: 0; border-radius: 14px; box-shadow: var(--lp-shadow); }
.modal-header { border-bottom-color: var(--lp-border); }
.pagination { flex-wrap: wrap; gap: 5px; }
.page-link { min-width: 38px; border: 1px solid var(--lp-border); border-radius: 8px !important; color: var(--lp-muted); text-align: center; }
.page-item.active .page-link { border-color: var(--lp-primary); background: var(--lp-primary); }

.empty-state { padding: 48px 24px; color: var(--lp-muted); text-align: center; }
.install-button { display: none; }
.install-button.is-visible { display: inline-flex; }

.dashboard-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dashboard-intro h2 { margin: 0 0 5px; font-size: 1.15rem; font-weight: 800; }
.dashboard-intro p { margin: 0; color: var(--lp-muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.metric-grid.metric-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-card { position: relative; min-height: 144px; overflow: hidden; padding: 20px; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); background: #fff; box-shadow: 0 3px 14px rgba(15,50,48,.045); }
.metric-card::after { position: absolute; right: -26px; bottom: -34px; width: 104px; height: 104px; border-radius: 50%; background: var(--metric-soft, #e8f5f3); content: ""; }
.metric-icon { display: grid; width: 38px; height: 38px; margin-bottom: 18px; place-items: center; border-radius: 9px; background: var(--metric-soft, #e8f5f3); color: var(--metric-color, var(--lp-primary)); }
.metric-label { margin: 0; color: var(--lp-muted); font-size: .77rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.metric-value { position: relative; z-index: 1; margin: 4px 0 0; font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 850; letter-spacing: -.04em; }
.metric-note { position: relative; z-index: 1; margin: 4px 0 0; color: var(--lp-muted); font-size: .78rem; }
.metric-card.is-amber { --metric-color: #b45309; --metric-soft: #fef3c7; }
.metric-card.is-green { --metric-color: #15803d; --metric-soft: #dcfce7; }
.metric-card.is-blue { --metric-color: #0369a1; --metric-soft: #e0f2fe; }
.metric-card.is-slate { --metric-color: #475569; --metric-soft: #e2e8f0; }
.quick-panel { display: flex; align-items: center; gap: 18px; padding: 20px; }
.quick-panel-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 10px; background: var(--lp-primary-soft); color: var(--lp-primary); font-size: 1.15rem; }
.quick-panel h3 { margin: 0 0 3px; font-size: 1rem; font-weight: 800; }
.quick-panel p { margin: 0; color: var(--lp-muted); font-size: .88rem; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, .85fr) minmax(480px, 1.15fr); background: #fff; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 44px; }
.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 48px; color: var(--lp-ink); text-decoration: none; }
.auth-brand img { width: 42px; height: 42px; }
.auth-brand strong { display: block; font-size: 1.08rem; }
.auth-brand small { display: block; color: var(--lp-muted); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }
.auth-title { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.25rem); font-weight: 850; letter-spacing: -.045em; }
.auth-lead { margin: 0 0 30px; color: var(--lp-muted); }
.password-field { position: relative; }
.password-field .form-control { padding-right: 48px; }
.password-toggle { position: absolute; top: 50%; right: 6px; display: grid; width: 36px; height: 36px; padding: 0; transform: translateY(-50%); place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--lp-muted); }
.auth-submit { min-height: 46px; }
.auth-aside { position: relative; display: flex; align-items: end; overflow: hidden; padding: 56px; background: #123b3a; color: #fff; }
.auth-aside::before, .auth-aside::after { position: absolute; border-radius: 50%; content: ""; }
.auth-aside::before { top: -18%; right: -12%; width: 460px; height: 460px; border: 90px solid rgba(255,255,255,.055); }
.auth-aside::after { bottom: 15%; left: -100px; width: 260px; height: 260px; background: rgba(245,158,11,.12); }
.auth-aside-content { position: relative; z-index: 1; max-width: 560px; }
.auth-kicker { margin: 0 0 14px; color: #99f6e4; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-aside h2 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 850; letter-spacing: -.045em; line-height: 1.08; }
.auth-aside p { margin: 0; color: #bdd7d4; font-size: 1rem; line-height: 1.7; }
.auth-features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.auth-feature { padding: 8px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.05); color: #d9ecea; font-size: .78rem; font-weight: 700; }
.min-w-0 { min-width: 0; }
.management-toolbar { padding: 16px; }
.management-toolbar .input-group-text { border-color: #cfdcdb; background: #f5f9f8; color: var(--lp-muted); }
.journal-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; padding: 14px 18px; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); background: #fff; }
.journal-summary div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 18px; border-right: 1px solid var(--lp-border); }
.journal-summary div:first-child { padding-left: 0; }
.journal-summary div:last-child { padding-right: 0; border-right: 0; }
.journal-summary span { color: var(--lp-muted); font-size: .76rem; font-weight: 700; }
.journal-summary strong { font-size: 1.15rem; }
.entity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.entity-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; }
.entity-card-head { display: flex; min-height: 105px; align-items: flex-start; gap: 13px; padding: 18px; border-bottom: 1px solid var(--lp-border); }
.entity-logo { display: grid; width: 46px; height: 46px; flex: 0 0 46px; overflow: hidden; place-items: center; border-radius: 9px; background: var(--lp-primary-soft); color: var(--lp-primary-dark); font-weight: 850; }
.entity-logo img { width: 100%; height: 100%; object-fit: contain; }
.entity-card h3 { display: -webkit-box; overflow: hidden; margin: 0 0 3px; font-size: .98rem; font-weight: 800; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.entity-card-head p { margin: 0; color: var(--lp-muted); font-size: .78rem; }
.entity-code { color: var(--lp-primary); font-size: .7rem; font-weight: 850; letter-spacing: .06em; }
.status-pill, .type-pill { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 999px; font-size: .66rem; font-weight: 800; }
.status-pill.is-active { background: #dcfce7; color: #166534; }
.status-pill.is-inactive { background: #f1f5f9; color: #475569; }
.entity-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }
.entity-meta div { min-width: 0; }
.entity-meta span { display: block; margin-bottom: 3px; color: var(--lp-muted); font-size: .68rem; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.entity-meta strong { display: block; overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.capacity-text.is-ready { color: #15803d; }
.capacity-text.is-low { color: #b45309; }
.capacity-text.is-full { color: #b42318; }
.entity-actions { display: flex; align-items: center; gap: 6px; margin-top: auto; padding: 13px 18px; border-top: 1px solid var(--lp-border); background: #fbfdfd; }
.journal-actions .btn { display: inline-flex; align-items: center; justify-content: center; }
.entity-empty { grid-column: 1 / -1; }
.accreditation-summary { display: flex; align-items: center; gap: 0; margin-bottom: 24px; padding: 14px 18px; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); background: #fff; }
.accreditation-summary div { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 18px; border-right: 1px solid var(--lp-border); }
.accreditation-summary div:first-child { padding-left: 0; }
.accreditation-summary div:last-child { padding-right: 0; border-right: 0; }
.accreditation-summary span { color: var(--lp-muted); font-size: .78rem; font-weight: 700; }
.accreditation-summary strong { font-size: 1.2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-heading h3 { margin: 0 0 3px; font-size: 1rem; font-weight: 800; }
.section-heading p { margin: 0; color: var(--lp-muted); font-size: .84rem; }
.section-heading > span { color: var(--lp-muted); font-size: .78rem; font-weight: 700; }
.accreditation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.accreditation-card { display: flex; min-width: 0; min-height: 220px; flex-direction: column; overflow: hidden; }
.accreditation-card-main { flex: 1; padding: 18px; }
.accreditation-card-heading { display: flex; align-items: flex-start; gap: 12px; }
.accreditation-card h4 { overflow: hidden; margin: 6px 0 0; font-size: 1rem; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; }
.accreditation-card-main > p { display: -webkit-box; overflow: hidden; margin: 16px 0 0; color: var(--lp-muted); font-size: .84rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.accreditation-card-footer { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px 11px 18px; border-top: 1px solid var(--lp-border); background: #fbfdfd; }
.accreditation-card-footer > span { color: var(--lp-muted); font-size: .8rem; }
.accreditation-card-footer > span strong { color: var(--lp-ink); font-size: .95rem; }
.accreditation-actions { display: flex; align-items: center; gap: 6px; }
.accreditation-actions form { margin: 0; }
.accreditation-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.accreditation-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 8px; }
.accreditation-icon.is-sinta, .type-pill.is-sinta { background: #e0f2fe; color: #0369a1; }
.accreditation-icon.is-scopus, .type-pill.is-scopus { background: #dcfce7; color: #15803d; }
.accreditation-icon.is-non-sinta, .type-pill.is-non-sinta { background: #f1f5f9; color: #475569; }
.issue-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 18px; align-items: start; }
.issue-journals { overflow: hidden; }
.issue-journal-list { padding: 8px; }
.issue-journal-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 8px; color: var(--lp-ink); text-decoration: none; }
.issue-journal-item:hover, .issue-journal-item.is-active { background: #e8f5f3; color: var(--lp-primary-dark); }
.issue-journal-item span { min-width: 0; }
.issue-journal-item strong, .issue-journal-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-journal-item small { margin-top: 2px; color: var(--lp-muted); }
.issue-journal-item b { display: grid; min-width: 28px; height: 28px; place-items: center; border-radius: 7px; background: #edf3f2; font-size: .76rem; }
.issue-content { overflow: hidden; }
.issue-content-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--lp-border); }
.issue-content-head h3, .issue-content-head p { margin: 0; }
.issue-content-head h3 { font-size: 1rem; font-weight: 800; }
.issue-content-head p { margin-top: 3px; color: var(--lp-muted); font-size: .8rem; }
.issue-content-head > span, .issue-year-head span { color: var(--lp-muted); font-size: .78rem; font-weight: 700; }
.issue-year-groups { padding: 20px; }
.issue-year + .issue-year { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--lp-border); }
.issue-year-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.issue-year-head h4 { margin: 0; font-size: .88rem; font-weight: 800; }
.issue-period-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.issue-period-card { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--lp-border); border-radius: 9px; background: #fbfdfd; }
.issue-number { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 8px; background: var(--lp-primary-soft); color: var(--lp-primary-dark); font-weight: 850; }
.issue-period-copy { min-width: 0; flex: 1; }
.issue-period-copy strong, .issue-period-copy span { display: block; }
.issue-period-copy strong { font-size: .84rem; }
.issue-period-copy span { margin-top: 2px; color: var(--lp-muted); font-size: .76rem; }
.issue-period-actions { display: flex; gap: 5px; }
.issue-period-actions form { margin: 0; }
.issue-wizard { padding: 20px 24px; }
.issue-step { display: none; grid-template-columns: 34px 1fr; gap: 14px; padding: 14px 0; }
.issue-step.is-visible { display: grid; }
.issue-step + .issue-step { border-top: 1px solid var(--lp-border); }
.issue-step-number, .form-section-heading > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--lp-primary); color: #fff; font-size: .8rem; font-weight: 800; }
.issue-step-body { min-width: 0; }
.form-label.required::after { margin-left: 3px; color: var(--lp-danger); content: "*"; }
.issue-range-list { display: grid; gap: 9px; }
.issue-range-row { display: grid; grid-template-columns: 72px 1fr auto 1fr; align-items: end; gap: 10px; padding: 12px; border-radius: 9px; background: #f5f9f8; }
.issue-range-row > strong { align-self: center; }
.issue-range-row label { color: var(--lp-muted); font-size: .72rem; font-weight: 700; }
.issue-range-row .form-select { margin-top: 4px; }
.form-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.form-section-heading strong, .form-section-heading small { display: block; }
.form-section-heading small { margin-top: 2px; color: var(--lp-muted); }
.issue-feedback { padding: 9px 11px; border-radius: 7px; background: #effaf7; color: #166534; font-size: .8rem; }
.issue-feedback.is-error { background: #fff1f2; color: #991b1b; }

@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); }
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open .app-sidebar { transform: translateX(0); box-shadow: 16px 0 36px rgba(0,0,0,.2); }
    body.sidebar-open .sidebar-backdrop { position: fixed; inset: 0; z-index: 1030; display: block; border: 0; background: rgba(8,31,30,.52); }
    .app-main { margin-left: 0; }
    .sidebar-toggle { display: inline-grid; flex: 0 0 42px; place-items: center; }
    .app-topbar { padding: 10px 18px; }
    .app-content { padding: 20px 18px 84px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .journal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .journal-summary div:nth-child(2) { border-right: 0; }
    .journal-summary div:nth-child(-n+2) { padding-bottom: 11px; border-bottom: 1px solid var(--lp-border); }
    .journal-summary div:nth-child(n+3) { padding-top: 11px; }
    .accreditation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .issue-layout { grid-template-columns: 1fr; }
    .issue-journal-list { display: flex; overflow-x: auto; }
    .issue-journal-item { min-width: 220px; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-panel { min-height: 100vh; padding: 32px 24px; }
}

@media (max-width: 575.98px) {
    .network-status span:last-child { display: none; }
    .app-content { padding-right: 12px; padding-left: 12px; }
    .card-body { padding: 16px; }
    .btn { min-height: 44px; }
    .table-responsive { border-right: 0; border-left: 0; border-radius: 0; }
    .modal-dialog { margin: 10px; }
    .metric-grid, .metric-grid.metric-grid-2 { grid-template-columns: 1fr; gap: 12px; }
    .metric-card { min-height: 126px; }
    .dashboard-intro { align-items: flex-start; flex-direction: column; }
    .auth-brand { margin-bottom: 36px; }
    .entity-grid, .accreditation-grid { grid-template-columns: 1fr; }
    .entity-meta { grid-template-columns: 1fr; gap: 10px; }
    .entity-actions { flex-wrap: wrap; }
    .entity-actions form.ms-auto { margin-left: 0 !important; }
    .journal-summary { grid-template-columns: 1fr; padding: 6px 16px; }
    .journal-summary div, .journal-summary div:first-child, .journal-summary div:last-child, .journal-summary div:nth-child(-n+2), .journal-summary div:nth-child(n+3) { padding: 10px 0; border-right: 0; border-bottom: 1px solid var(--lp-border); }
    .journal-summary div:last-child { border-bottom: 0; }
    .journal-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .journal-actions form { grid-column: 2; }
    .journal-actions form .btn { width: 100%; }
    .accreditation-summary { align-items: stretch; flex-direction: column; padding: 6px 16px; }
    .accreditation-summary div, .accreditation-summary div:first-child, .accreditation-summary div:last-child { padding: 10px 0; border-right: 0; border-bottom: 1px solid var(--lp-border); }
    .accreditation-summary div:last-child { border-bottom: 0; }
    .section-heading { align-items: flex-start; }
    .accreditation-card { min-height: 0; }
    .issue-period-grid { grid-template-columns: 1fr; }
    .issue-range-row { grid-template-columns: 1fr 1fr; }
    .issue-range-row > strong { grid-column: 1 / -1; }
    .issue-range-row > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
    .app-sidebar, .app-topbar, .sidebar-backdrop { display: none !important; }
    .app-main { margin: 0; }
    .app-content { max-width: none; padding: 0; }
    .card { box-shadow: none; }
}
