:root {
    --background: #fbfbfb;
    --foreground: #111317;
    --card: #ffffff;
    --muted: #f1f2f4;
    --muted-foreground: #656b75;
    --border: #dcdee3;
    --accent: #4fc3f7;
    --shadow: 0 18px 55px rgba(10, 18, 28, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: Arial, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    letter-spacing: 0;
    max-width: 100%;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
}

.opening-fade {
    animation: openingFade 820ms ease-out both;
}

.portal-shell,
.site-header,
.hero,
.compact-hero {
    max-width: 100%;
    overflow-x: hidden;
}

@keyframes openingFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.login-shell {
    background: linear-gradient(180deg, #fff 0%, #fff 68%, var(--muted) 100%);
}

.login-shell {
    min-height: 100vh;
    padding: 32px 16px;
}

.login-shell::before {
    position: fixed;
    top: 15%;
    left: 50%;
    width: min(780px, 82vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    content: "";
    opacity: 0.55;
    transform: translateX(-50%);
}

.login-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    gap: 64px;
    width: min(1120px, 100%);
    min-height: calc(100vh - 64px);
    margin: 0 auto;
}

.login-logo {
    width: 58px;
    height: 58px;
    margin-bottom: 40px;
    object-fit: contain;
}

.badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(79, 195, 247, 0.45);
    border-radius: 999px;
    background: rgba(79, 195, 247, 0.11);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.login-intro h1,
.hero h1 {
    margin: 34px 0 0;
    font-size: clamp(48px, 8vw, 112px);
    font-weight: 620;
    line-height: 1;
}

.login-intro p {
    max-width: 580px;
    margin: 30px 0 0;
    color: var(--muted-foreground);
    font-size: 18px;
    line-height: 1.8;
}

.login-card,
.card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.login-card {
    width: 100%;
    padding: 34px 30px;
}

.mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    font-weight: 700;
}

.mobile-brand img {
    width: 38px;
    height: 38px;
}

.section-label {
    margin: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.login-card h2,
.card h2 {
    margin: 8px 0 0;
    font-size: 24px;
}

.login-help,
.login-note {
    color: var(--muted-foreground);
    font-size: 13px;
    line-height: 1.7;
}

.login-help {
    margin: 20px 0 28px;
}

.login-note {
    margin: 22px 0 0;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-form label {
    display: grid;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 0 14px;
    color: var(--foreground);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form input:focus {
    border-color: rgba(79, 195, 247, 0.75);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.18);
}

.login-form .login-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted-foreground);
    font-size: 13px;
    font-weight: 600;
}

.login-form .login-remember input {
    width: 18px;
    height: 18px;
    padding: 0;
    flex: 0 0 auto;
}

.login-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--foreground);
    color: var(--background);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.login-error {
    margin: 0;
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.08);
    padding: 10px 12px;
    color: #b91c1c;
    font-size: 13px;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(220, 222, 227, 0.78);
    background: rgba(251, 251, 251, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1280px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
}

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

.brand img {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    object-fit: contain;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-header nav a {
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--muted-foreground);
    font-size: 14px;
    transition: background 160ms ease, color 160ms ease;
}

.site-header nav a:hover {
    background: var(--muted);
    color: var(--foreground);
}

.site-header nav a.active {
    background: var(--muted);
    color: var(--foreground);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.signed-user {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    padding: 6px 10px;
    text-align: right;
}

.signed-user small {
    display: block;
    color: var(--muted-foreground);
    font-size: 11px;
}

.signed-user strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.signed-user span {
    margin-left: 8px;
    color: var(--muted-foreground);
    font-size: 12px;
    font-weight: 400;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
}

.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 72px 16px 52px;
    background-color: #fbfcfd;
    background-image:
        linear-gradient(rgba(20, 99, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 99, 255, 0.055) 1px, transparent 1px);
    background-size: 24px 24px;
    text-align: center;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 92px);
}

.hero-copy {
    margin: 14px 0 0;
    color: var(--muted-foreground);
    font-size: 18px;
    font-weight: 700;
}

.dashboard {
    padding: 0 16px 64px;
}

#top,
#dashboard,
#important-notices,
#applications,
#external-links {
    scroll-margin-top: 88px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(320px, 3fr);
    gap: 20px;
    width: min(1280px, 100%);
    margin: 0 auto;
}

.main-column,
.side-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: start;
    min-width: 0;
}

.list-content {
    display: grid;
    gap: 24px;
}

.home-attendance-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 8px;
}

.card-content {
    padding: 14px 22px 22px;
}

.list-content {
    gap: 12px;
}

.accent-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.attendance-home-card,
.attendance-today-status-card,
.portal-calendar-card {
    min-height: 0;
}

.attendance-home-card {
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.72), rgba(255, 255, 255, 0.96) 48%),
        #fff;
}

.attendance-home-card .card-header,
.attendance-today-status-card .card-header {
    padding-bottom: 4px;
}

.attendance-today-status-card {
    order: -1;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(240, 253, 244, 0.62), rgba(255, 255, 255, 0.96) 44%),
        #fff;
}

.attendance-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 28px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    background: #eff6ff;
    padding: 0 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.attendance-home-content {
    display: grid;
    gap: 10px;
    padding: 10px 20px 18px;
}

.attendance-home-status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    padding: 12px 13px;
    box-shadow: inset 4px 0 0 rgba(37, 99, 235, 0.28);
}

.attendance-home-status span {
    color: #4b5563;
    font-size: 14px;
    font-weight: 800;
}

.attendance-home-status strong {
    color: #1769aa;
    font-size: 16px;
}

.attendance-home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.attendance-home-main {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(220px, 0.9fr);
    gap: 12px;
    align-items: end;
}

.attendance-incident-label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.attendance-incident-label select,
.attendance-leave-form input[type="date"],
.attendance-leave-form select,
.attendance-correction-form input[type="date"],
.attendance-correction-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
    color: var(--foreground);
    font: inherit;
}

.attendance-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--foreground);
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.attendance-action.primary {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.attendance-action:not(:disabled):hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.3);
}

.attendance-action.link-action {
    border-color: rgba(79, 195, 247, 0.62);
    background: #eef4ff;
    color: #2563eb;
}

.attendance-action:disabled {
    background: #f3f4f6;
    color: #a1a7b2;
    cursor: not-allowed;
}

.attendance-leave-form {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.attendance-correction-form {
    border-top: 0;
    padding-top: 0;
    width: 100%;
}

.attendance-correction-form summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    padding: 0 14px;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.06);
}

.attendance-correction-form summary::-webkit-details-marker {
    display: none;
}

.attendance-correction-form[open] summary {
    border-color: rgba(37, 99, 235, 0.32);
    background: #eff6ff;
    color: #2563eb;
}

.attendance-correction-form form {
    margin-top: 12px;
}

.attendance-correction-form[open] form {
    animation: attendanceCorrectionSlide 160ms ease-out;
}

@keyframes attendanceCorrectionSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attendance-correction-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 120px;
    gap: 12px;
    align-items: end;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcff;
    padding: 12px;
}

.attendance-correction-note {
    grid-column: 1 / -1;
    margin: 0;
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
}

.attendance-correction-grid label {
    display: grid;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
}

.attendance-leave-form p {
    margin: 0 0 12px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.7;
}

.attendance-leave-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px;
    gap: 12px;
    align-items: end;
}

.attendance-leave-grid label {
    display: grid;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
}

.attendance-home-toolbar,
.attendance-home-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.attendance-home-toolbar a,
.attendance-home-links a {
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.attendance-home-toolbar .attendance-correction-form[open] {
    flex-basis: 100%;
}

.attendance-home-links a.attendance-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid rgba(37, 99, 235, 0.32);
    border-radius: 999px;
    background: #eff6ff;
    padding: 0 16px;
    color: #2563eb;
    font-weight: 900;
}

.attendance-home-toolbar a.attendance-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid rgba(37, 99, 235, 0.32);
    border-radius: 999px;
    background: #eff6ff;
    padding: 0 16px;
    color: #2563eb;
    font-weight: 900;
}

.attendance-message {
    margin: 0;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
}

.attendance-message.is-success {
    background: #e8f8ef;
    color: #138a43;
}

.attendance-message.is-error {
    background: #fff1f1;
    color: #b91c1c;
}

.portal-calendar-content {
    padding: 14px 22px 22px;
}

.portal-calendar-title {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
}

.portal-calendar-title h2 {
    margin: 0;
    text-align: center;
}

.portal-calendar-title a {
    display: grid;
    place-items: center;
    min-height: 28px;
    border-radius: 999px;
    color: #2563eb;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
}

.portal-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.portal-dow {
    padding: 4px 0 8px;
    color: #374151;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.portal-dow.sun { color: #b91c1c; }
.portal-dow.sat { color: #0f766e; }

.portal-day {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #20242a;
    padding: 0;
    font: inherit;
    font-weight: 900;
    appearance: none;
}

.portal-day.out {
    background: #f5f2f2;
    color: #9ca3af;
}

.portal-day.ok {
    background: #dfe9ff;
    color: #173a7a;
}

.portal-day.missing {
    background: #fff7df;
    color: #8a5a00;
}

.portal-day.paid-full {
    background: #ffedd5;
    color: #c2410c;
}

.portal-day.paid-half {
    background: #ffe6f1;
    color: #be185d;
}

.portal-day.comp-full {
    background: #e5f7ea;
    color: #15803d;
}

.portal-day.leave-requested {
    background: #fff1db;
    color: #b45309;
}

.portal-day-number {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 999px;
    line-height: 1;
}

.portal-day.sun .portal-day-number,
.portal-day.holiday .portal-day-number {
    background: #c91f2b;
    color: #fff;
}

.portal-day.sat .portal-day-number {
    background: #0f8a72;
    color: #fff;
}

.portal-day.has-reschedule .portal-day-number,
.portal-day.has-reschedule.sun .portal-day-number,
.portal-day.has-reschedule.sat .portal-day-number,
.portal-day.has-reschedule.holiday .portal-day-number {
    border-radius: 7px;
    background: #8b5cf6;
    color: #fff;
}

.portal-day.out .portal-day-number {
    opacity: .58;
}

.portal-day.is-leave-applicable {
    cursor: pointer;
    box-shadow: inset 0 0 0 1px transparent;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.portal-day.is-leave-applicable:hover,
.portal-day.is-leave-applicable:focus-visible {
    z-index: 1;
    background: #eef6ff;
    box-shadow: inset 0 0 0 2px #60a5fa, 0 5px 14px rgba(37, 99, 235, .16);
    transform: translateY(-1px);
    outline: none;
}

.portal-mark {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    line-height: 0.9;
}

.portal-trip-dot {
    color: #f97316;
    margin-left: 2px;
}

.portal-leader-dot {
    color: #16a34a;
    margin-left: 2px;
}

.portal-reschedule-dot {
    color: #8b5cf6;
    margin-left: 2px;
}

.portal-reschedule-key {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    border-radius: 6px;
    background: #8b5cf6;
    color: #fff;
    font-size: 10px;
}

.portal-calendar-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-top: 14px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
}

.portal-calendar-apply-note {
    margin: 12px 0 0;
    border-radius: 7px;
    background: #eff6ff;
    padding: 9px 11px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
}

.leave-application-dialog {
    width: min(460px, calc(100% - 28px));
    border: 0;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    padding: 0;
}

.leave-application-dialog::backdrop {
    background: rgba(15, 23, 42, .56);
}

.leave-application-dialog-inner {
    position: relative;
    padding: 26px;
}

.leave-application-dialog-inner h2 {
    margin: 4px 0 14px;
}

.leave-application-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 22px;
    cursor: pointer;
}

.leave-application-date {
    margin: 0 0 12px;
    border-radius: 9px;
    background: #eff6ff;
    padding: 14px;
    color: #1d4ed8;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.leave-application-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.row-card,
.schedule-row,
.manual-card,
.quick-link {
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.row-card,
.quick-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
}

.row-card:hover,
.schedule-row:hover,
.manual-card:hover,
.quick-link:hover {
    border-color: rgba(79, 195, 247, 0.62);
    background: var(--muted);
}

.row-card:hover {
    transform: translateY(-1px);
}

.row-card.is-disabled {
    background: #f6f7f9;
    color: #9aa1ad;
    cursor: default;
    opacity: 0.72;
    pointer-events: none;
}

.row-card.is-disabled em {
    background: #eef0f3;
    border-color: #e1e4e8;
    color: #a8afb9;
}

.row-card strong,
.schedule-row strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-card small,
.schedule-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted-foreground);
    font-size: 12px;
}

.row-card em {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--muted-foreground);
    font-size: 12px;
    font-style: normal;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.schedule-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 12px;
}

.date-box {
    display: grid;
    place-items: center;
    height: 46px;
    border-radius: 7px;
    background: var(--foreground);
    color: var(--background);
    font-size: 13px;
    font-weight: 800;
}

.manual-card,
.quick-link {
    min-height: 50px;
    padding: 12px;
    font-weight: 700;
}

.quick-link.is-disabled {
    background: #f4f5f7;
    color: #a1a7b3;
    cursor: default;
    opacity: 0.68;
    pointer-events: none;
}

.quick-link.is-disabled span:last-child {
    border-radius: 999px;
    background: #e5e7eb;
    padding: 4px 8px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 900;
}

.story-card {
    display: grid;
    grid-template-columns: 1fr 0.78fr;
    overflow: hidden;
}

.story-copy {
    padding: 26px;
}

.story-copy h2 {
    margin-top: 10px;
}

.story-copy p:not(.section-label),
.message-card p:not(.section-label) {
    color: var(--muted-foreground);
    font-size: 14px;
    line-height: 1.8;
}

.story-card img,
.image-card img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    filter: grayscale(1);
}

.compact-hero {
    min-height: 250px;
    padding-top: 92px;
}

.contact-dashboard {
    padding-top: 24px;
}

.contact-card {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 22px;
}

.content-band {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 64px;
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 376px;
    gap: 24px;
}

.card-pad {
    padding: 26px 22px;
}

.narrow-card {
    width: min(760px, calc(100% - 32px));
    margin: 72px auto;
    padding: 30px;
}

.flow-panel {
    padding: 24px;
    background-image:
        linear-gradient(rgba(20, 99, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 99, 255, 0.045) 1px, transparent 1px);
    background-size: 18px 18px;
}

.flow-list {
    position: relative;
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0 0 0 126px;
    list-style: none;
}

.flow-list::before {
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 76px;
    width: 2px;
    background: #cfe0ff;
    content: "";
}

.flow-item {
    position: relative;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    min-height: 96px;
    margin-left: -126px;
}

.flow-no {
    color: #1463ff;
    font-size: clamp(28px, 4.2vw, 34px);
    font-weight: 900;
}

.flow-dot {
    position: absolute;
    left: 68px;
    width: 18px;
    height: 18px;
    border: 5px solid #dbeafe;
    border-radius: 50%;
    background: #1463ff;
    box-shadow: 0 0 0 5px #fff;
}

.flow-copy {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    padding: 24px 28px;
}

.flow-copy h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.flow-copy p {
    margin: 0;
    color: #566176;
    line-height: 1.75;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.expense-stack {
    display: grid;
    gap: 28px;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.notice-box {
    margin: 0 0 22px;
    border: 1px solid rgba(79, 195, 247, 0.28);
    border-radius: 8px;
    background: rgba(79, 195, 247, 0.08);
    padding: 14px 16px;
    color: var(--muted-foreground);
    line-height: 1.8;
    font-weight: 700;
}

.flow-notice {
    margin: 22px 0 0;
    color: #334155;
}

.workflow-guide {
    display: grid;
    grid-template-columns: minmax(180px, .45fr) minmax(0, 1fr);
    gap: 18px;
    margin: 0 0 24px;
}

.workflow-target,
.workflow-steps {
    border: 1px solid rgba(79, 195, 247, 0.28);
    border-radius: 8px;
    background: rgba(79, 195, 247, 0.08);
    padding: 16px 18px;
}

.workflow-target {
    display: grid;
    align-content: center;
    gap: 6px;
}

.workflow-target span,
.workflow-title {
    margin: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.workflow-target strong {
    font-size: 20px;
}

.workflow-target small {
    color: var(--muted-foreground);
    line-height: 1.7;
}

.workflow-steps ol {
    display: grid;
    gap: 10px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted-foreground);
    font-weight: 700;
    line-height: 1.7;
}

.workflow-steps li {
    position: relative;
    padding-left: 28px;
}

.workflow-steps li::before {
    content: "";
    position: absolute;
    top: .55em;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(79, 195, 247, .16);
}

.workflow-steps li:not(:last-child)::after {
    content: "↓";
    display: block;
    margin: 7px 0 0 -23px;
    color: var(--accent);
    font-weight: 900;
}

.download-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -8px 0 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
    font-weight: 800;
}

.onboarding-guide {
    margin-bottom: 22px;
}

.onboarding-dashboard,
.onboarding-dashboard .expense-stack,
.onboarding-dashboard .contact-card {
    max-width: 100%;
    overflow-x: hidden;
}

.onboarding-dashboard .contact-card {
    width: min(1120px, calc(100vw - 32px));
}

.onboarding-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.onboarding-note {
    margin-top: 22px;
}

.onboarding-step {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.onboarding-step.is-disabled {
    background: #f6f7f9;
    color: #9aa1ad;
}

.onboarding-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--foreground);
    color: var(--background);
    font-size: 18px;
    font-weight: 900;
}

.onboarding-step.is-disabled .onboarding-number {
    background: #d9dde4;
    color: #7b8492;
}

.onboarding-body {
    min-width: 0;
}

.onboarding-body h3,
.onboarding-body p {
    overflow-wrap: anywhere;
}

.onboarding-phase {
    margin: 0 0 5px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.onboarding-body h3 {
    margin: 0;
    font-size: 18px;
}

.onboarding-body p:not(.onboarding-phase) {
    margin: 7px 0 0;
    color: var(--muted-foreground);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

.onboarding-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.onboarding-top-actions {
    justify-content: flex-start;
    margin: 18px 0 8px;
}

.public-onboarding-shell {
    background:
        radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.14), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    min-height: 100vh;
}

.public-onboarding-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #c7d8ee;
}

.public-onboarding-header .header-inner {
    justify-content: flex-start;
}

.public-onboarding-header .brand {
    cursor: default;
}

.public-onboarding-dashboard {
    max-width: 1040px;
    margin: 34px auto 70px;
    padding: 0 22px;
}

.public-onboarding-card {
    border: 2px solid #2563eb;
    box-shadow: 0 28px 80px rgba(30, 64, 175, 0.16);
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.72), rgba(255, 255, 255, 0.96) 220px),
        #ffffff;
}

.public-form-title {
    align-items: flex-start;
    border-bottom: 1px solid #bfdbfe;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.public-form-lead {
    color: #475569;
    font-weight: 700;
    margin: 8px 0 0;
}

.public-form-notice {
    border-color: #fbbf24;
    background: #fffbeb;
}

.public-form-section {
    border: 1px solid #93c5fd;
    background: rgba(248, 251, 255, 0.96);
    border-radius: 18px;
    padding: 18px;
    margin-top: 18px;
}

.public-form-section h3 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 18px;
}

.public-document-card {
    border-color: #0f172a;
}

.public-document-body {
    border: 1.5px solid #cbd5e1;
    border-radius: 18px;
    background: #ffffff;
    padding: 20px 22px;
    color: #0f172a;
    line-height: 1.9;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.public-document-body h3 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 24px;
}

.public-document-body h3 span {
    font-size: 17px;
}

.public-document-body ol {
    margin: 12px 0 0 1.5em;
    padding: 0;
}

.public-document-body li {
    margin: 8px 0;
}

.document-contact-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    font-weight: 700;
}

.date-triplet {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stamp-preview-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed #ef4444;
    background: #fff7f7;
    color: #7f1d1d;
    font-weight: 900;
}

.stamp-preview-box strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border: 3px double #dc2626;
    border-radius: 50%;
    color: #dc2626;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 2px rgba(220, 38, 38, 0.10);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 15px;
    line-height: 1.05;
    letter-spacing: -0.08em;
    transform: rotate(-7deg);
}

.document-drop-zone {
    min-height: 120px;
}

.upload-password-box {
    border: 1px solid #f59e0b;
    background: #fff7ed;
    border-radius: 14px;
    padding: 14px;
}

.public-onboarding-form .field span {
    color: #334155;
    font-weight: 900;
}

.public-onboarding-form input,
.public-onboarding-form select,
.public-onboarding-form textarea {
    border: 1.5px solid #9bb4d1;
    background: #ffffff;
}

.public-onboarding-form input:focus,
.public-onboarding-form select:focus,
.public-onboarding-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
    outline: none;
}

.public-form-grid {
    gap: 16px;
}

.postal-pair {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.field.compact input {
    max-width: 180px;
}

.field-note {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
}

.public-submit-actions {
    margin-top: 22px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}

.onboarding-consent-box,
.consent-confirm-box {
    width: min(100%, 760px);
    border: 1.5px solid #2563eb;
    background: #eff6ff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.10);
}

.onboarding-consent-box h3,
.consent-confirm-box h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
}

.onboarding-consent-box p {
    margin: 0 0 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.5;
}

.consent-check input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #2563eb;
}

.consent-check a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.consent-confirm-box {
    margin: 0 0 24px;
}

.consent-confirm-box ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.consent-confirm-box li {
    padding: 6px 0;
    color: #0f172a;
    font-weight: 900;
}

.primary-action:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    filter: grayscale(0.25);
}

.policy-document {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    color: #0f172a;
    line-height: 1.85;
}

.policy-document section {
    border-bottom: 1px solid #e2e8f0;
    padding: 0 0 18px;
    margin: 0 0 18px;
}

.policy-document section:last-of-type {
    border-bottom: 0;
}

.policy-document h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
}

.policy-document p {
    margin: 8px 0;
}

.policy-document ul {
    margin: 8px 0 0;
    padding-left: 1.4em;
}

.policy-established {
    text-align: right;
    font-weight: 900;
}

.secondary-action.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.secondary-action.danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #be123c;
}

.form-alert.success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    margin-top: 18px;
}

.admin-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--border);
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    border-radius: 999px;
    padding: 5px 10px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.status-requested {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-submitted {
    background: #ffedd5;
    color: #c2410c;
}

.status-downloaded {
    background: #dcfce7;
    color: #166534;
}

.status-expired,
.status-deleted {
    background: #fee2e2;
    color: #b91c1c;
}

.mini-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.mini-file-list li {
    max-width: 260px;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.mini-action {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 12px;
}

.password-details {
    margin-top: 8px;
}

.password-details summary {
    cursor: pointer;
    color: #c2410c;
    font-weight: 900;
}

.password-details code {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 6px;
    border-radius: 6px;
    background: #fff7ed;
    color: #9a3412;
    overflow-wrap: anywhere;
}

.secondary-action.is-disabled {
    background: #eef0f3;
    color: #a1a7b3;
    pointer-events: none;
}

.fishing-page {
    width: min(1120px, calc(100% - 32px));
    margin: 46px auto 72px;
}

.fishing-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(2, 132, 199, .82), rgba(125, 211, 252, .86) 54%, rgba(240, 249, 255, .68)),
        #7dd3fc;
    color: #fff;
    box-shadow: 0 22px 70px rgba(6, 79, 113, .14);
}

.fishing-hero-copy {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(28px, 5vw, 54px);
}

.fishing-hero-copy .section-label {
    color: #fde68a;
}

.fishing-hero-card h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.08;
}

.fishing-host {
    width: fit-content;
    margin: -6px 0 0;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    padding: 8px 13px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
}

.fishing-lead {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, .9);
    font-weight: 800;
    line-height: 1.9;
}

.fishing-keyfacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fishing-keyfacts span {
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
}

.fishing-keyfacts strong {
    margin-right: 6px;
    color: #fef3c7;
}

.fishing-hero-card img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    filter: brightness(1.12) saturate(1.08);
}

.fishing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
    gap: 22px;
    margin-top: 24px;
}

.fishing-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: clamp(20px, 3vw, 30px);
    box-shadow: var(--shadow);
}

.fishing-card h3 {
    margin: 6px 0 18px;
    font-size: clamp(24px, 3vw, 34px);
}

.fishing-accent-card {
    border-color: rgba(14, 165, 233, .28);
    background:
        linear-gradient(180deg, rgba(240, 249, 255, .9), #fff 58%),
        #fff;
}

.fishing-detail {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.fishing-detail div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    border-bottom: 1px solid var(--border);
}

.fishing-detail div:last-child {
    border-bottom: 0;
}

.fishing-detail dt,
.fishing-detail dd {
    margin: 0;
    padding: 14px 16px;
    line-height: 1.8;
}

.fishing-detail dt {
    background: #f0f9ff;
    color: #0369a1;
    font-weight: 900;
}

.fishing-detail dd {
    color: var(--muted-foreground);
    font-weight: 700;
}

.fishing-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fishing-list li {
    position: relative;
    padding-left: 24px;
    color: var(--muted-foreground);
    font-weight: 800;
    line-height: 1.8;
}

.fishing-list li::before {
    content: "";
    position: absolute;
    top: .75em;
    left: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0ea5e9;
    box-shadow: 0 0 0 5px rgba(14, 165, 233, .14);
}

.fishing-text {
    margin: 0 0 18px;
    color: var(--muted-foreground);
    font-weight: 800;
    line-height: 1.9;
}

.fishing-tackle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fishing-tackle-grid div {
    border: 1px solid rgba(14, 165, 233, .22);
    border-radius: 8px;
    background: #f8fdff;
    padding: 18px;
}

.fishing-tackle-grid h4 {
    margin: 0 0 8px;
    font-size: 18px;
}

.fishing-tackle-grid p {
    margin: 0;
    color: var(--muted-foreground);
    font-weight: 700;
    line-height: 1.9;
}

.fishing-gallery {
    display: grid;
    grid-template-columns: 1.28fr .86fr .86fr;
    gap: 12px;
    margin: 24px 0;
}

.fishing-gallery img {
    width: 100%;
    height: 230px;
    border-radius: 8px;
    object-fit: cover;
    filter: brightness(1.12) saturate(1.08);
    box-shadow: 0 14px 40px rgba(10, 18, 28, .10);
}

.fishing-gallery img:first-child {
    grid-row: span 2;
    height: 472px;
    object-position: 50% 18%;
}

.fishing-gallery img:nth-child(3) {
    object-position: 50% 38%;
}

.fishing-choice-fieldset {
    background: linear-gradient(180deg, #f0f9ff, #fff);
}

.fishing-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fishing-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.fishing-choice input {
    appearance: none;
    width: 19px;
    height: 19px;
    margin: 0;
    border: 2px solid #9acfe5;
    border-radius: 5px;
    background: #fff;
}

.fishing-choice input:checked {
    border-color: #0284c7;
    background:
        linear-gradient(135deg, transparent 54%, #fff 55%),
        linear-gradient(45deg, transparent 42%, #fff 43%),
        #0284c7;
}

.fishing-choice:has(input:checked) {
    border-color: rgba(2, 132, 199, .55);
    background: #e0f2fe;
}

.fishing-submit {
    background: linear-gradient(135deg, #082f49, #0284c7);
}

.field textarea.fishcat-textarea {
    background:
        linear-gradient(rgba(255, 255, 255, .82), rgba(255, 255, 255, .82)),
        url("/assets/img/fishing/fishcat.png") right 16px center / auto 88% no-repeat,
        #fff;
    padding-right: min(42vw, 260px);
}

.portal-form {
    display: grid;
    gap: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.login-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 0;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
    opacity: 1;
}

.login-summary span {
    color: #374151;
}

.auto-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.auto-info-grid.full,
.notice-box.full {
    grid-column: 1 / -1;
}

.readonly-value {
    display: grid;
    gap: 7px;
    min-height: 78px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
    padding: 14px 16px;
    color: #4b5563;
}

.readonly-value span {
    font-size: 12px;
    font-weight: 800;
}

.readonly-value strong {
    color: var(--foreground);
    font-size: 16px;
    font-weight: 900;
}

.form-grid.two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.business-trip-day-grid {
    display: grid;
    gap: 14px;
}

.business-trip-day-head,
.business-trip-day-row {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 14px;
    align-items: end;
}

.business-trip-day-head {
    margin: 2px 0 -2px;
    color: var(--muted-foreground);
    font-size: 12px;
    font-weight: 900;
}

.business-trip-day-row {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.field {
    display: grid;
    gap: 9px;
    font-size: 14px;
    font-weight: 700;
}

.field.full {
    grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 13px 14px;
    color: var(--foreground);
    font: inherit;
    font-weight: 500;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input,
.field select {
    min-height: 48px;
}

.field input[readonly] {
    background: #f6f7f9;
    color: var(--muted-foreground);
}

.field textarea {
    min-height: 170px;
    resize: vertical;
    line-height: 1.8;
}

.field textarea[hidden] {
    display: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(79, 195, 247, 0.75);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.18);
}

.portal-fieldset {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
}

.portal-fieldset legend {
    padding: 0 8px;
    font-size: 14px;
    font-weight: 800;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.check-grid label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
}

.check-grid input[type="checkbox"] {
    width: auto;
    min-height: 0;
    flex: 0 0 auto;
}

fieldset.field {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
}

fieldset.field legend {
    padding: 0 8px;
}

.option-field {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
}

.option-field legend {
    padding: 0 6px;
    font-size: 14px;
    font-weight: 800;
}

.option-field label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 24px 6px 0;
    color: #303746;
    font-weight: 700;
}

.option-field input[type="radio"] {
    width: auto;
    min-height: 0;
    margin: 0;
    accent-color: #1463ff;
}

.field.is-muted {
    opacity: .5;
}

.field.is-muted input,
.field.is-muted textarea,
.field.is-muted select {
    background: #f6f7f9;
}

.inline-inputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.inline-mail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.inline-mail strong {
    color: var(--muted-foreground);
    white-space: nowrap;
}

.compact-field {
    width: min(420px, 100%);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-action,
.secondary-action,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 8px;
    padding: 0 22px;
    font: inherit;
    font-weight: 800;
}

.primary-action {
    border: 0;
    background: var(--foreground);
    color: var(--background);
    cursor: pointer;
}

.button {
    width: 100%;
    border: 0;
    background: var(--foreground);
    color: var(--background);
    cursor: pointer;
}

.secondary-action {
    border: 1px solid var(--border);
    background: #fff;
}

.form-alert {
    margin: 0 0 22px;
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.08);
    padding: 14px 16px;
    color: #991b1b;
}

.form-alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.confirm-lead {
    margin: 0 0 18px;
    color: var(--muted-foreground);
    line-height: 1.8;
}

.confirm-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.confirm-list div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    min-height: 52px;
    border-bottom: 1px solid var(--border);
}

.confirm-list .full {
    grid-column: 1 / -1;
    border-bottom: 0;
}

.confirm-list dt,
.confirm-list dd {
    margin: 0;
    padding: 14px 16px;
}

.confirm-list dt {
    background: #f6f7f9;
    border-right: 1px solid var(--border);
    font-size: 13px;
    font-weight: 800;
}

.confirm-list dd {
    color: var(--foreground);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.detail-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.detail-table tr {
    display: table-row;
}

.detail-table th,
.detail-table td {
    display: table-cell;
    border: 1px solid var(--border);
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
}

.detail-table th {
    width: 180px;
    background: #f6f7f9;
    font-size: 13px;
}

.pre-line {
    white-space: pre-wrap;
}

.confirm-actions {
    align-items: center;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.drop-zone {
    display: grid;
    place-items: center;
    min-height: 150px;
    border: 1px dashed rgba(101, 107, 117, 0.55);
    border-radius: 8px;
    background: #fbfcfd;
    color: var(--muted-foreground);
    font-weight: 800;
    text-align: center;
    white-space: pre-line;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragover {
    border-color: rgba(79, 195, 247, 0.9);
    background: rgba(79, 195, 247, 0.08);
    color: var(--foreground);
}

.clear-file-button {
    justify-self: start;
    min-height: 38px;
    cursor: pointer;
}

.muted {
    color: var(--muted-foreground);
    font-size: 13px;
    line-height: 1.7;
}

.sheldrick-report {
    gap: 24px;
}

.sheldrick-cover {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(40, 62, 50, 0.12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 20% 20%, rgba(156, 190, 132, 0.18), transparent 32%),
        linear-gradient(135deg, #f6f8f2 0%, #ffffff 55%, #edf5eb 100%);
    box-shadow: 0 26px 70px rgba(23, 31, 25, 0.12);
}

.sheldrick-cover-copy {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(34px, 5vw, 70px);
}

.sheldrick-mark {
    width: 74px;
    height: 74px;
    object-fit: contain;
}

.sheldrick-cover-copy h2 {
    max-width: 620px;
    margin: 0;
    color: #172017;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 1.02;
}

.sheldrick-cover-copy p {
    max-width: 640px;
    margin: 0;
    color: #4f5d53;
    font-size: 16px;
    line-height: 2;
}

.sheldrick-cover-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.sheldrick-cover-photo {
    position: relative;
    min-height: 420px;
}

.sheldrick-cover-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(246, 248, 242, 0.42), transparent 35%),
        linear-gradient(180deg, transparent 62%, rgba(23, 32, 23, 0.22));
    pointer-events: none;
}

.sheldrick-cover-photo img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    animation: sheldrick-drift 14s ease-in-out infinite alternate;
}

@keyframes sheldrick-drift {
    from {
        transform: scale(1.02) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.08) translate3d(-12px, 6px, 0);
    }
}

.sheldrick-hero-card {
    background:
        linear-gradient(135deg, rgba(234, 248, 241, 0.96), rgba(255, 255, 255, 0.98));
}

.sheldrick-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: stretch;
}

.sheldrick-intro h3 {
    margin: 6px 0 12px;
    font-size: clamp(24px, 3vw, 38px);
}

.sheldrick-intro p,
.report-panel p,
.soft-note {
    color: var(--muted-foreground);
    line-height: 1.9;
}

.report-kicker {
    margin: 0;
    color: #1f8f68;
    font-weight: 900;
}

.tytan-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: center;
}

.tytan-copy h3 {
    margin: 10px 0 14px;
    font-size: clamp(24px, 3.4vw, 44px);
    line-height: 1.18;
}

.tytan-copy p {
    color: var(--muted-foreground);
    line-height: 1.9;
}

.watercolor-card {
    margin: 0;
    border: 1px solid rgba(31, 143, 104, 0.16);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
    text-align: center;
}

.watercolor-card img {
    width: 100%;
    max-height: 230px;
    object-fit: contain;
}

.watercolor-card figcaption {
    margin-top: 12px;
    color: var(--muted-foreground);
    font-size: 13px;
    line-height: 1.7;
}

.sheldrick-note {
    display: grid;
    gap: 8px;
    align-content: center;
    border: 1px solid rgba(31, 143, 104, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 20px;
}

.sheldrick-note span,
.sheldrick-note small {
    color: var(--muted-foreground);
    font-size: 13px;
}

.sheldrick-note strong {
    font-size: 22px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.report-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.report-panel h3 {
    margin: 0 0 10px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #1f6f54;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.text-link::after {
    content: "↗";
    font-size: 13px;
}

.text-link:hover {
    text-decoration: underline;
}

.report-list {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.report-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
}

.report-list span {
    color: var(--muted-foreground);
}

.sheldrick-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sheldrick-gallery figure {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    margin: 0;
    border-radius: 8px;
    background: #111;
    box-shadow: 0 18px 45px rgba(17, 24, 18, 0.12);
}

.sheldrick-gallery figure.is-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 532px;
}

.sheldrick-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 520ms ease, filter 520ms ease;
}

.sheldrick-gallery figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 18px;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.sheldrick-gallery figcaption strong {
    font-size: 16px;
}

.sheldrick-gallery figcaption span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.55;
}

.sheldrick-gallery figure:hover img {
    filter: saturate(1.08) brightness(1.04);
    transform: scale(1.055);
}

.sheldrick-quiet-card {
    background:
        linear-gradient(135deg, rgba(247, 250, 245, 0.98), rgba(255, 255, 255, 1));
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background: rgba(17, 19, 23, 0.34);
    padding: 20px;
}

.modal-card {
    width: min(430px, 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 28px;
}

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

.modal-card p:not(.section-label) {
    color: var(--muted-foreground);
    line-height: 1.8;
}

.system-ok {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 12px;
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    padding: 16px;
}

.system-ok span {
    grid-row: span 2;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10b981;
}

.system-ok small {
    color: var(--muted-foreground);
}

.attendance-status-board {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    border: 1px solid rgba(56, 103, 232, 0.18);
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    padding: 12px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.attendance-status-board span {
    grid-row: auto;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.attendance-status-board-head {
    display: grid;
    gap: 3px;
}

.attendance-status-board-head strong {
    color: #0f172a;
    font-size: 17px;
    letter-spacing: 0.01em;
}

.attendance-status-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 7px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.attendance-status-item {
    display: grid;
    grid-template-columns: minmax(112px, 118px) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    padding: 7px 10px;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.025);
}

.attendance-status-item span {
    grid-row: auto;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.attendance-status-name {
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1.2;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.attendance-status-summary {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 5px;
    min-width: 0;
}

.attendance-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 58px;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.attendance-status-plan {
    display: block;
    min-width: 0;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.attendance-status-item.is-working {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.attendance-status-item.is-working .attendance-status-badge {
    background: #10b981;
    color: #fff;
}

.attendance-status-item.is-before {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.attendance-status-item.is-before .attendance-status-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.attendance-status-item.is-rest {
    border-color: #fecaca;
    background: #fff7f7;
}

.attendance-status-item.is-rest .attendance-status-badge {
    background: #fee2e2;
    color: #b91c1c;
}

.attendance-status-item.is-left {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.attendance-status-item.is-left .attendance-status-badge {
    background: #e2e8f0;
    color: #334155;
}

.attendance-status-empty {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.message-card {
    min-height: 260px;
    padding: 26px;
    background: linear-gradient(135deg, #fff, var(--muted));
}

.message-card h2 {
    margin-top: 40px;
    font-size: 32px;
    line-height: 1.2;
}

.image-card {
    overflow: hidden;
}

.site-footer {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: var(--muted-foreground);
    font-size: 14px;
}

.portal-site-footer {
    margin-top: 56px;
    padding: 34px 0 26px;
}

.portal-footer-inner {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    align-items: start;
}

.portal-footer-brand {
    display: grid;
    gap: 8px;
}

.portal-footer-brand strong {
    color: var(--foreground);
    font-size: 18px;
}

.portal-footer-brand span,
.portal-footer-brand small {
    color: var(--muted-foreground);
    font-weight: 800;
}

.portal-footer-section {
    display: grid;
    gap: 9px;
}

.portal-footer-section h2 {
    margin: 0 0 4px;
    color: var(--foreground);
    font-size: 13px;
    letter-spacing: 0;
}

.portal-footer-section a,
.portal-footer-disabled {
    color: var(--muted-foreground);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.portal-footer-section a:hover {
    color: var(--foreground);
}

.portal-footer-disabled {
    opacity: .58;
}

.portal-footer-disabled small {
    margin-left: 6px;
    font-size: 11px;
}

.portal-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(220, 222, 227, 0.72);
}

@media (max-width: 980px) {
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        width: min(100% - 24px, 1280px);
        height: 58px;
        gap: 8px;
    }

    .brand {
        flex: 1 1 auto;
        max-width: calc(100% - 178px);
        gap: 8px;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .brand span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-area {
        flex: 0 0 auto;
        gap: 6px;
    }

    .login-layout,
    .dashboard-grid,
    .home-attendance-grid,
    .split-grid,
    .grid,
    .story-card,
    .fishing-hero-card,
    .fishing-grid,
    .fishing-tackle-grid,
    .fishing-gallery,
    .form-grid,
    .form-grid.two-cols,
    .business-trip-day-head,
    .business-trip-day-row,
    .auto-info-grid,
    .sheldrick-cover,
    .sheldrick-intro,
    .tytan-layout,
    .report-grid,
    .sheldrick-gallery,
    .confirm-list,
    .check-grid,
    .workflow-guide,
    .onboarding-step {
        grid-template-columns: 1fr;
    }

    .sheldrick-cover-copy {
        padding: 32px 24px;
    }

    .sheldrick-cover-photo,
    .sheldrick-cover-photo img {
        min-height: 320px;
    }

    .sheldrick-gallery figure.is-large {
        grid-column: auto;
        grid-row: auto;
        min-height: 300px;
    }

    .flow-list {
        padding-left: 88px;
    }

    .flow-list::before {
        left: 48px;
    }

    .flow-item {
        grid-template-columns: 72px minmax(0, 1fr);
        margin-left: -88px;
    }

    .flow-dot {
        left: 40px;
    }

    .flow-copy {
        padding: 20px 18px;
    }

    .fishing-gallery img,
    .fishing-gallery img:first-child {
        grid-row: auto;
        height: 240px;
    }

    .onboarding-action {
        justify-content: stretch;
    }

    .onboarding-action .secondary-action {
        width: 100%;
    }

    .postal-pair {
        grid-template-columns: 1fr;
    }

    .field.compact input {
        max-width: none;
    }

    .login-intro {
        display: none;
    }

    .mobile-brand {
        display: flex;
    }

    .site-header nav,
    .signed-user small,
    .signed-user span {
        display: none;
    }

    .signed-user {
        max-width: 148px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        padding: 6px 9px;
    }

    .signed-user strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .icon-button {
        width: 38px;
        height: 38px;
    }

    .confirm-list div {
        grid-template-columns: 1fr;
    }

    .confirm-list dt {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .detail-table,
    .detail-table tbody,
    .detail-table tr,
    .detail-table th,
    .detail-table td {
        display: block;
        width: 100%;
    }

    .detail-table th {
        border-bottom: 0;
    }

    .attendance-home-actions {
        grid-template-columns: 1fr;
    }

    .attendance-home-main {
        grid-template-columns: 1fr;
    }

    .attendance-home-status {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .attendance-home-card,
    .attendance-today-status-card,
    .portal-calendar-card {
        min-height: 0;
    }

    .attendance-leave-grid {
        grid-template-columns: 1fr;
    }

    .attendance-correction-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .login-shell {
        padding: 18px 16px;
    }

    .login-card {
        padding: 28px 22px;
    }

    .brand span {
        max-width: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand {
        max-width: calc(100% - 132px);
    }

    .signed-user {
        max-width: 104px;
    }

    .hero {
        min-height: 210px;
        padding: 56px 16px 44px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .site-footer {
        width: min(100% - 28px, 1280px);
    }

    .portal-footer-inner {
        grid-template-columns: 1fr;
    }

    .portal-footer-bottom {
        flex-direction: column;
    }

    .fishing-choice-grid {
        grid-template-columns: 1fr;
    }

    .fishing-detail div {
        grid-template-columns: 1fr;
    }
}
