:root {
    --brand-green: #00ed64;
    --brand-green-dark: #00684a;
    --brand-teal-deep: #001e2b;
    --surface: #f9fbfa;
    --surface-soft: #f4f7f6;
    --surface-feature: #e3fcef;
    --hairline: #e1e5e8;
    --hairline-strong: #c1ccd6;
    --ink: #001e2b;
    --slate: #3d4f5b;
    --steel: #5c6c7a;
    --muted: #a8b3bc;
    --warning-bg: #fff8e0;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: "Euclid Circular A", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
}

.top-nav {
    max-width: 1280px;
    min-height: 64px;
    margin: 0 auto;
    padding: 10px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.nav-actions,
.detail-toolbar,
.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-actions form,
.detail-toolbar form {
    margin: 0;
}

.button {
    min-height: 42px;
    padding: 10px 22px;
    border-radius: 9999px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    background: transparent;
}

.button-primary {
    background: var(--brand-green);
    color: var(--ink);
}

.button-secondary {
    background: transparent;
    border-color: var(--hairline-strong);
    color: var(--ink);
}

.button-danger {
    background: #fff;
    border-color: #f2b8b5;
    color: var(--danger);
}

.hero-band {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(61, 196, 226, 0.22), transparent 36%),
        linear-gradient(150deg, transparent 38%, rgba(225, 34, 94, 0.18) 54%, transparent 72%),
        linear-gradient(180deg, rgba(0, 30, 43, 0.98), rgba(0, 30, 43, 1));
    background-size: 140% 140%, 160% 160%, auto;
    color: #fff;
    padding: 72px max(32px, calc((100vw - 1280px) / 2 + 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 32px;
    align-items: center;
    animation: heroBaseShift 9s ease-in-out infinite alternate;
}

.hero-band::before,
.hero-band::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-band::before {
    background:
        radial-gradient(ellipse at 30% 24%, rgba(61, 196, 226, 0.58), transparent 30%),
        radial-gradient(ellipse at 54% 34%, rgba(59, 104, 177, 0.46), transparent 34%),
        radial-gradient(ellipse at 78% 44%, rgba(225, 34, 94, 0.42), transparent 34%),
        radial-gradient(ellipse at 64% 76%, rgba(250, 217, 36, 0.32), transparent 30%),
        radial-gradient(ellipse at 34% 74%, rgba(111, 175, 72, 0.34), transparent 28%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: auto, auto, auto, auto, auto, 72px 72px, 72px 72px;
    opacity: 0.94;
    animation: heroColorFlow 7s ease-in-out infinite alternate;
}

.hero-band::after {
    top: -18%;
    left: 18%;
    right: 8%;
    bottom: -18%;
    background:
        linear-gradient(100deg, transparent 4%, rgba(61, 196, 226, 0.72) 24%, transparent 42%),
        linear-gradient(106deg, transparent 18%, rgba(250, 217, 36, 0.56) 38%, transparent 58%),
        linear-gradient(112deg, transparent 34%, rgba(225, 34, 94, 0.58) 52%, transparent 74%),
        linear-gradient(116deg, transparent 50%, rgba(226, 31, 28, 0.44) 64%, transparent 82%);
    border-radius: 9999px;
    filter: blur(8px);
    opacity: 0.9;
    transform: rotate(-11deg);
    animation: heroRibbon 4.8s ease-in-out infinite alternate;
}

.hero-copy,
.content-section {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(36px, 4.5vw, 64px);
    line-height: 1.12;
    font-weight: 600;
}

.hero-copy h1 span {
    display: block;
}

.hero-copy p:last-child {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
}

.hero-panel {
    background: #003d4f;
    border: 1px solid #1c2d38;
    border-radius: 16px;
    padding: 24px;
    display: grid;
    gap: 12px;
}

.calendar-panel {
    max-width: 360px;
    position: relative;
    z-index: 2;
    justify-self: end;
}

@keyframes heroBaseShift {
    from {
        background-position: 0% 40%, 80% 20%, 0 0;
    }
    to {
        background-position: 58% 52%, 28% 76%, 0 0;
    }
}

@keyframes heroColorFlow {
    from {
        transform: translate3d(-44px, -14px, 0) scale(1);
    }
    to {
        transform: translate3d(58px, 24px, 0) scale(1.1);
    }
}

@keyframes heroRibbon {
    from {
        opacity: 0.42;
        transform: translateX(-76px) rotate(-11deg) scaleX(0.86);
    }
    to {
        opacity: 0.94;
        transform: translateX(96px) rotate(-11deg) scaleX(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-band,
    .hero-band::before,
    .hero-band::after,
    .login-shell,
    .login-shell::before,
    .login-shell::after {
        animation: none;
    }
}

.calendar-header {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    gap: 8px;
}

.calendar-title {
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.calendar-title:hover,
.calendar-title:focus {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    outline: 0;
}

.calendar-nav {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.calendar-picker {
    position: absolute;
    top: 60px;
    left: 18px;
    right: 18px;
    z-index: 4;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: #052f3c;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 12px;
}

.calendar-picker[hidden] {
    display: none;
}

.calendar-picker-year {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.calendar-picker select {
    min-height: 36px;
    margin-top: 4px;
    padding: 7px 9px;
    border-color: rgba(255, 255, 255, 0.24);
    background: #fff;
    color: var(--ink);
    font-size: 13px;
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calendar-month-button {
    min-height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.calendar-month-button:hover,
.calendar-month-button:focus {
    border-color: var(--brand-green);
    outline: 0;
}

.calendar-month-button.active {
    background: var(--brand-green);
    color: var(--ink);
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-weekdays span {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.calendar-day {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.calendar-day.muted-day {
    color: rgba(255, 255, 255, 0.28);
}

.calendar-day.has-record {
    background: var(--brand-green);
    color: var(--ink);
}

.calendar-day.today:not(.has-record) {
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.calendar-day.selected-day {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.calendar-copyright {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand-green);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.badge-green,
.badge-soft,
.status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 9999px;
    padding: 5px 11px;
    font-size: 13px;
    font-weight: 700;
}

.badge-green {
    color: var(--ink);
    background: var(--brand-green);
}

.badge-soft,
.status.draft {
    color: var(--brand-green-dark);
    background: var(--surface-feature);
}

.status.archived {
    color: #fff;
    background: var(--brand-teal-deep);
}

.pdf-action {
    margin-left: 8px;
    color: var(--brand-green-dark);
    background: #fff;
    border: 1px solid var(--hairline-strong);
}

.content-section {
    padding: 48px 32px;
}

.content-section.narrow {
    max-width: 920px;
}

.section-title {
    margin-bottom: 24px;
}

.section-title h1 {
    margin: 0 0 8px;
    font-size: 42px;
    line-height: 1.2;
}

.filter-bar,
.record-form,
.auth-card,
.confirm-card,
.table-card,
.official-paper {
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 12px;
}

.filter-bar {
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 160px 150px 150px auto auto;
    gap: 12px;
    margin-bottom: 20px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--brand-green);
    border-color: var(--brand-green-dark);
}

.table-card {
    overflow: hidden;
}

.audit-card {
    margin-top: 24px;
}

.audit-table {
    border: 1px solid var(--hairline);
    border-radius: 12px;
}

.table-head {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--hairline);
}

.table-head h2 {
    margin: 0;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.responsive-table {
    max-height: 708px;
    overflow-x: auto;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th,
td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--hairline);
}

th {
    color: var(--steel);
    font-size: 13px;
    font-weight: 800;
}

tbody tr {
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

tbody tr:nth-child(even) {
    background: #fbfcfc;
}

tbody tr:hover {
    background: var(--surface-feature);
    box-shadow: inset 4px 0 0 var(--brand-green);
}

.empty {
    color: var(--steel);
    text-align: center;
}

.record-form {
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.form-row,
.form-row.wide,
.form-actions,
.form-error {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.attendee-memory {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: #f8fbfa;
}

.attendee-memory p {
    margin: 0 0 8px;
    color: var(--steel);
    font-size: 13px;
    font-weight: 700;
}

.attendee-memory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attendee-chip {
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(36, 145, 105, 0.28);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.attendee-chip:hover,
.attendee-chip:focus {
    border-color: var(--brand-green-dark);
    background: rgba(115, 218, 174, 0.2);
}

.field-error,
.form-error {
    color: var(--danger);
    background: #fff1f0;
    border: 1px solid #f2b8b5;
    border-radius: 8px;
    padding: 10px 12px;
}

.login-shell {
    min-height: calc(100vh - 128px);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px) minmax(0, 1fr);
    justify-content: center;
    gap: 40px;
    align-items: center;
    padding: 64px 32px;
    background:
        linear-gradient(120deg, rgba(61, 196, 226, 0.22), transparent 38%),
        linear-gradient(150deg, transparent 38%, rgba(225, 34, 94, 0.16) 56%, transparent 74%),
        linear-gradient(180deg, rgba(0, 30, 43, 0.98), rgba(0, 30, 43, 1));
    background-size: 140% 140%, 160% 160%, auto;
    color: #fff;
    animation: heroBaseShift 9s ease-in-out infinite alternate;
}

.login-shell::before,
.login-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-shell::before {
    background:
        radial-gradient(ellipse at 24% 28%, rgba(61, 196, 226, 0.58), transparent 30%),
        radial-gradient(ellipse at 52% 38%, rgba(59, 104, 177, 0.46), transparent 34%),
        radial-gradient(ellipse at 82% 46%, rgba(225, 34, 94, 0.42), transparent 34%),
        radial-gradient(ellipse at 60% 78%, rgba(250, 217, 36, 0.3), transparent 30%),
        radial-gradient(ellipse at 30% 76%, rgba(111, 175, 72, 0.34), transparent 28%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: auto, auto, auto, auto, auto, 72px 72px, 72px 72px;
    opacity: 0.92;
    animation: heroColorFlow 7s ease-in-out infinite alternate;
}

.login-shell::after {
    top: -18%;
    left: 10%;
    right: 8%;
    bottom: -18%;
    background:
        linear-gradient(100deg, transparent 4%, rgba(61, 196, 226, 0.72) 24%, transparent 42%),
        linear-gradient(106deg, transparent 20%, rgba(250, 217, 36, 0.5) 38%, transparent 58%),
        linear-gradient(112deg, transparent 36%, rgba(225, 34, 94, 0.56) 54%, transparent 76%);
    border-radius: 9999px;
    filter: blur(10px);
    opacity: 0.82;
    transform: rotate(-11deg);
    animation: heroRibbon 4.8s ease-in-out infinite alternate;
}

.login-intro {
    position: relative;
    z-index: 1;
    max-width: 720px;
    grid-column: 1;
    justify-self: end;
}

.login-intro img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    background: #fff;
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 24px;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.2);
}

.login-intro h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.12;
    margin: 0;
}

.login-intro h1 span {
    display: block;
}

.login-intro p:last-child {
    color: var(--muted);
    font-size: 18px;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    grid-column: 2;
    justify-self: center;
    color: var(--ink);
    padding: 30px;
    display: grid;
    gap: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.auth-card h2 {
    margin: 0 0 8px;
}

.official-paper {
    padding: 34px 42px 42px;
}

.record-view-paper {
    max-width: 980px;
    margin: 0 auto;
}

.record-info-block {
    margin-top: 30px;
}

.record-info-block h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.print-only {
    display: none;
}

.final-print-paper {
    position: relative;
    width: 794px;
    min-height: 1123px;
    margin: 0 auto;
    padding: 56px 88px 70px;
    color: #000;
    background: #fff;
    border: 1px solid #dfe5e8;
    border-radius: 0;
    font-family: SimSun, "Songti SC", serif;
    box-shadow: 0 18px 60px rgba(0, 30, 43, 0.08);
    overflow: visible;
}

.corner-mark {
    position: absolute;
    width: 28px;
    height: 28px;
}

.corner-top-left {
    top: 24px;
    left: 24px;
    border-left: 1px solid #777;
    border-top: 1px solid #777;
}

.corner-top-right {
    top: 24px;
    right: 24px;
    border-right: 1px solid #777;
    border-top: 1px solid #777;
}

.corner-bottom-left {
    bottom: 24px;
    left: 24px;
    border-left: 1px solid #777;
    border-bottom: 1px solid #777;
}

.corner-bottom-right {
    right: 24px;
    bottom: 24px;
    border-right: 1px solid #777;
    border-bottom: 1px solid #777;
}

.final-paper-header {
    display: grid;
    grid-template-columns: 132px 1fr;
    align-items: center;
    border-bottom: 2px solid #000;
    padding: 8px 0 14px;
    margin: 0 0 8px;
}

.final-paper-header img {
    width: 94px;
    height: 94px;
    object-fit: contain;
    justify-self: center;
}

.final-paper-header h1 {
    margin: 0;
    text-align: center;
    font-family: SimSun, "Songti SC", serif;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
}

.final-paper-header p {
    margin: 34px 0 0;
    text-align: center;
    font-size: 16px;
    line-height: 1;
}

.final-meta-table {
    width: 100%;
    min-width: 0;
    border: 1px solid #000;
    border-collapse: collapse;
    margin-top: 8px;
    table-layout: fixed;
}

.final-meta-table th,
.final-meta-table td {
    border: 1px solid #000;
    padding: 0 12px;
    height: 43px;
    color: #000;
    font-family: SimSun, "Songti SC", serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    vertical-align: middle;
}

.final-meta-table th {
    width: 162px;
    text-align: center;
}

.final-meta-table td {
    text-align: left;
}

.final-paper-section h2 {
    margin: 0;
    color: #000;
    font-family: SimSun, "Songti SC", serif;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
}

.final-content-section {
    min-height: 162px;
    padding-top: 18px;
}

.final-result-section {
    min-height: 160px;
    padding-top: 32px;
}

.final-paper-text {
    margin-top: 12px;
    color: #000;
    font-size: 16px;
    line-height: 1.75;
    white-space: normal;
}

.final-paper-text p {
    margin: 0 0 8px;
}

.final-signature-box {
    position: relative;
    margin-top: 28px;
    min-height: 160px;
    padding: 42px 20px 20px;
    border-radius: 12px;
    background: #f1f1f1;
    page-break-inside: avoid;
}

.final-signature-box p {
    margin: 0 0 18px;
    color: #000;
    font-family: SimSun, "Songti SC", serif;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
}

.final-page-number {
    margin-top: 28px;
    text-align: center;
    color: #777;
    font-family: "Times New Roman", SimSun, serif;
    font-size: 12px;
}

.detail-toolbar {
    margin-bottom: 18px;
}

.pdf-preview-section {
    max-width: 920px;
    margin: 24px auto 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 12px;
}

.pdf-preview {
    width: 100%;
    height: 720px;
    display: block;
    border: 0;
    background: var(--surface-soft);
}

.paper-header {
    text-align: center;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 20px;
    margin-bottom: 26px;
}

.paper-header img {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

.paper-header p {
    margin: 8px 0;
    font-weight: 700;
}

.paper-header h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.25;
}

.paper-code {
    color: var(--steel);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--hairline);
    border-radius: 12px;
    overflow: hidden;
}

.meta-grid div {
    padding: 14px 16px;
    border-bottom: 1px solid var(--hairline);
}

.meta-grid div:nth-child(odd) {
    border-right: 1px solid var(--hairline);
}

.meta-grid .full {
    grid-column: 1 / -1;
    border-right: 0;
}

.meta-grid strong,
.archive-box strong {
    display: block;
    color: var(--steel);
    font-size: 13px;
    margin-bottom: 6px;
}

.paper-section {
    margin-top: 30px;
}

.paper-section h2 {
    font-size: 22px;
    margin: 0 0 10px;
}

.paper-text {
    color: var(--slate);
}

.archive-box {
    margin-top: 32px;
    padding: 18px;
    background: var(--surface-soft);
    border-radius: 12px;
    display: grid;
    gap: 12px;
    overflow-wrap: anywhere;
}

.confirm-card {
    padding: 30px;
}

.message-area {
    max-width: 1280px;
    margin: 18px auto 0;
    padding: 0 32px;
}

.message {
    margin: 0 0 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--surface-feature);
    border: 1px solid var(--brand-green);
}

.message-error {
    background: #fff1f0;
    border-color: #f2b8b5;
    color: var(--danger);
}

.message-warning {
    background: var(--warning-bg);
    border-color: #f6d365;
}

.site-footer {
    padding: 28px 32px;
    color: var(--muted);
    background: var(--brand-teal-deep);
}

.site-footer p {
    max-width: 1280px;
    margin: 0 auto;
}

.icp-link {
    position: fixed;
    left: 16px;
    bottom: 12px;
    z-index: 30;
    padding: 6px 10px;
    border: 1px solid rgba(193, 204, 214, 0.7);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--steel);
    font-size: 12px;
    line-height: 1.2;
    box-shadow: 0 8px 20px rgba(0, 30, 43, 0.08);
    backdrop-filter: blur(8px);
}

.icp-link:hover,
.icp-link:focus {
    color: var(--brand-green-dark);
    border-color: var(--brand-green);
    outline: 0;
}

@media (max-width: 900px) {
    .hero-band,
    .login-shell {
        grid-template-columns: 1fr;
        padding-left: 20px;
        padding-right: 20px;
    }

    .top-nav {
        padding-left: 20px;
        padding-right: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .nav-actions {
        width: 100%;
        align-items: stretch;
    }

    .nav-actions > a,
    .nav-actions form,
    .nav-actions button {
        flex: 1 1 auto;
    }

    .filter-bar,
    .record-form {
        grid-template-columns: 1fr;
    }

    .login-intro {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .top-nav {
        position: relative;
    }

    .brand {
        width: 100%;
        gap: 10px;
    }

    .brand img {
        width: 36px;
        height: 36px;
        flex: 0 0 auto;
    }

    .brand span {
        font-size: 14px;
        line-height: 1.35;
    }

    .nav-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-actions .button,
    .nav-actions a {
        width: 100%;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .icp-link {
        left: 10px;
        bottom: 8px;
        max-width: calc(100vw - 20px);
    }

    .hero-band {
        padding-top: 44px;
        padding-bottom: 44px;
        gap: 24px;
    }

    .hero-copy h1 {
        font-size: 34px;
        line-height: 1.18;
    }

    .section-title h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-copy p:last-child {
        font-size: 16px;
    }

    .hero-panel {
        padding: 22px;
        display: grid;
        gap: 10px;
        justify-self: stretch;
        max-width: none;
    }

    .filter-bar {
        padding: 16px;
    }

    .content-section {
        padding: 28px 16px;
    }

    .official-paper {
        padding: 22px 18px;
    }

    .paper-header img {
        width: 70px;
        height: 70px;
    }

    .paper-header h1 {
        font-size: 26px;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .meta-grid div:nth-child(odd) {
        border-right: 0;
    }
}
