* { box-sizing: border-box; }
:root {
    --green: #326a20;
    --ink: #172718;
    --muted: #536450;
    --line: #dfe8db;
    --paper: #f4f7f2;
    --white: #fff;
    --tint: #e9f3e4;
}
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 "Segoe UI", system-ui, sans-serif; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
:focus-visible { outline: 3px solid #70a745; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); line-height: 1.13; letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { font-size: 1.3rem; letter-spacing: -.025em; }
.logo { display: block; width: 160px; height: 48px; object-fit: contain; object-position: left center; }
.icon { display: block; flex: 0 0 auto; width: 20px; height: 20px; }

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: auto; background: #fcfefb; border-right: 1px solid var(--line); padding: 18px 14px 15px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: grid; place-items: center; width: 100%; min-width: 0; padding: 16px 12px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.brand .logo { width: min(172px, 100%); height: auto; aspect-ratio: 4 / 1; object-position: center; }
.sidebar-menu { display: flex; flex-direction: column; flex: 1; padding-top: 22px; }
.nav-label, .eyebrow { font-size: .78rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.nav-label { color: var(--muted); padding: 0 11px 10px; }
nav { display: grid; gap: 6px; }
nav a, .signout button, .menu-toggle { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 11px; border-radius: 9px; color: var(--muted); font-size: .94rem; font-weight: 650; }
nav a .icon, .signout button .icon { box-sizing: content-box; padding: 5px; border-radius: 7px; background: #edf3ea; }
nav a:hover, .signout button:hover, .menu-toggle:hover { background: #eaf2e6; text-decoration: none; }
nav a[aria-current] { background: #315e25; color: white; }
nav a[aria-current] .icon { background: #ffffff24; }
.signout { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.signout button, .menu-toggle { border: 1px solid transparent; background: transparent; }
.signout button { width: 100%; }
.menu-toggle { display: none; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 69px; padding: 12px clamp(18px, 4vw, 50px); background: white; border-bottom: 1px solid var(--line); font-weight: 650; }
.top > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.content { width: 100%; max-width: 1440px; margin: auto; padding: clamp(18px, 4vw, 50px); }

.page-head, .panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.panel-head p { color: var(--muted); margin-top: 4px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; padding: clamp(23px, 3.6vw, 42px); border-radius: 19px; background: linear-gradient(115deg, #1b381a, #265421 59%, #3b6f2b); color: white; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; inset: -170px -110px auto auto; width: 440px; height: 440px; border-radius: 50%; border: 1px solid #a6cf9060; box-shadow: 0 0 0 32px #a6cf901d, 0 0 0 64px #a6cf9017; pointer-events: none; }
.hero::after { inset: auto 9% -330px auto; }
.hero .eyebrow { color: #c6e6b1; margin-bottom: 10px; }
.hero h1 + p { margin-top: 9px; color: #e1eedb; }
.hero time { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #ffffff50; border-radius: 8px; background: #17301455; color: #fff; font-size: .875rem; white-space: nowrap; }
.hero time .icon { width: 17px; height: 17px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 13px; margin-bottom: 22px; }
.metric, .panel { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 12px #223d1408; }
.metric { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 17px; color: var(--ink); }
.metric:hover { text-decoration: none; border-color: #8eaf7e; }
.metric-icon { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 5px; border-radius: 9px; color: var(--green); background: var(--tint); }
.metric strong { font-size: 2rem; line-height: 1.13; letter-spacing: -.05em; }
.metric-label { color: var(--muted); font-size: .875rem; font-weight: 650; }
.dashboard-hero {
    min-height: 164px;
    background:
        linear-gradient(90deg, #10271b 0%, #153723e6 37%, transparent 100%),
        repeating-linear-gradient(0deg, #bfe59d16 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, #bfe59d16 0 1px, transparent 1px 34px),
        linear-gradient(135deg, #10271b, #35653e);
}
.dashboard-hero::before { animation: login-drift 16s ease-in-out infinite alternate; }
.dashboard-hero::after { opacity: .65; }
.dashboard-hero time { background: #10271b85; }
.dashboard .metric { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.dashboard .metric-icon { margin: 0; }
.dashboard .metric-label { flex-basis: 100%; }
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.dashboard-chart header { display: flex; align-items: center; gap: 10px; }
.dashboard-chart h2 { font-size: 1.12rem; line-height: 1.2; }
.dashboard-chart header p { color: var(--muted); font-size: .875rem; margin-top: 4px; }
.dashboard-chart ul { list-style: none; display: grid; gap: 12px; padding: 0; margin: 19px 0 0; }
.dashboard-chart li { min-width: 0; }
.chart-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 5px; font-size: .875rem; }
.chart-label strong { font-variant-numeric: tabular-nums; }
.chart-track { height: 8px; overflow: hidden; border-radius: 8px; background: #eaf0e7; }
.chart-fill { display: block; width: var(--fill); height: 100%; border-radius: inherit; background: #3d7853; }
.chart-on-leave, .chart-pending { background: #a97524; }
.chart-absent, .chart-overdue { background: #ae4e42; }
.chart-inactive, .chart-not-marked, .chart-draft { background: #65746d; }
@media (max-width: 1080px) and (min-width: 641px) {
    .dashboard-charts { grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); }
}
@media (max-width: 640px) {
    .dashboard-charts { grid-template-columns: minmax(0, 1fr); }
}
.panel { padding: clamp(14px, 2.3vw, 25px); min-width: 0; }
.tag { display: inline-block; border-radius: 999px; padding: 4px 10px; background: var(--tint); color: #305e25; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.status-absent, .status-overdue { background: #f9e6e2; color: #882e22; }
.status-leave, .status-pending, .status-on-leave { background: #fff1cf; color: #704b0a; }
.status-draft, .status-inactive { background: #ebeeef; color: #47545a; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .925rem; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #f1f6ee; color: #43573c; font-size: .875rem; }
tbody tr:hover { background: #fafcf9; }
.empty-state { padding: 28px 14px; text-align: center; color: var(--muted); }

.filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.filters input { flex: 1; min-width: 0; }
.filters select { width: auto; max-width: 100%; }
[role="status"] { font-size: .875rem; color: var(--muted); margin-top: 9px; }
input, select, textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #becdb8; border-radius: 8px; background: white; color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px; background: var(--green); color: white; font-weight: 700; text-align: center; }
.button:hover { background: #265509; text-decoration: none; }
.button.secondary { background: var(--tint); color: #315d1e; }
.button.secondary:hover { background: #dcebd5; }
.full { width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; margin: 18px 0; }
label { display: block; font-weight: 650; font-size: .925rem; }
label input, label select, label textarea { margin-top: 6px; }
dialog { width: min(570px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 16px; padding: clamp(16px, 4vw, 24px); color: var(--ink); }
dialog::backdrop { background: #17281280; }
.dialog-head p { color: var(--muted); margin-top: 5px; }
.partner-dialog { width: min(760px, calc(100% - 24px)); padding: 0; overflow: hidden; }
.partner-dialog form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.partner-dialog .dialog-head, .partner-dialog .actions { padding: 15px clamp(14px, 4vw, 24px); }
.partner-dialog .dialog-head { border-bottom: 1px solid var(--line); background: #f8fbf6; }
.partner-dialog .actions { margin: 0; border-top: 1px solid var(--line); justify-content: flex-end; }
.partner-form-body { overflow-y: auto; overscroll-behavior: contain; padding: 10px clamp(14px, 4vw, 24px) 18px; }
.partner-dialog fieldset, .partner-edit fieldset { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; border-top: 1px solid var(--line); }
.partner-dialog legend, .partner-edit legend { padding-right: 10px; color: var(--green); font-weight: 700; font-size: .9rem; }
.partner-dialog .form-grid, .partner-edit .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 8px 0 0; }
.partner-dialog label small, .partner-edit label small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; }
.partner-edit { max-width: 850px; }
.row-actions { white-space: nowrap; }
.row-action { display: inline-block; padding: 5px 9px; margin-right: 4px; border-radius: 7px; background: var(--tint); font-weight: 650; }
.row-action.delete { color: #8b3328; background: #f9e6e2; }
.attendance-filter { align-items: flex-end; }
.calendar-legend { color: var(--muted); font-size: .875rem; margin-bottom: 12px; }
.attendance-document :is(th, td) { text-align: center; padding-inline: 9px; }
.attendance-document :is(th, td):nth-child(2),
.calendar-with-partner :is(th, td):nth-child(3) { text-align: left; }
.attendance-document :is(th, td):nth-last-child(-n+9) { background: #edf5e9; font-weight: 650; }
.attendance-document :is(th, td):nth-last-child(9) { border-left: 1px solid #b2c9a9; }
.staff-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: clamp(16px, 3vw, 25px); margin-bottom: 15px; border-radius: 14px; background: linear-gradient(125deg, #173723, #2b5e37); color: white; }
.staff-profile h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); overflow-wrap: anywhere; }
.staff-profile p { color: #dcecd7; overflow-wrap: anywhere; }
.staff-profile-avatar { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 13px; overflow: hidden; background: #dcecd7; color: #245132; }
.staff-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-profile-avatar .icon { width: 30px; height: 30px; }
.staff-profile .tag { margin-left: auto; }
.partner-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-width: 0; }
.partner-identity h2 { font-size: clamp(1.5rem, 4vw, 2.55rem); overflow-wrap: anywhere; }
.partner-identity p { color: #dcecd7; }
.partner-mark { display: grid; place-items: center; width: 96px; height: 68px; padding: 8px; border-radius: 12px; background: white; color: var(--green); }
.partner-mark img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.partner-mark .icon { width: 28px; height: 28px; }
.partner-overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 15px; margin-bottom: 16px; }
.partner-contact-photo { float: right; margin: 4px 0 8px 12px; }
.partner-contact-photo img { width: 58px; height: 58px; object-fit: cover; border-radius: 9px; }
.partner-profile-card > header { display: flex; align-items: center; gap: 12px; }
.partner-profile-card .metric-icon { margin: 0; }
.partner-profile-card .staff-profile-avatar { width: 44px; height: 44px; border-radius: 10px; }
.partner-profile-card .staff-profile-avatar .icon { width: 22px; height: 22px; }
.partner-profile-card dl { margin-bottom: 0; }
@media (max-width: 720px) {
    .partner-overview-grid { grid-template-columns: minmax(0, 1fr); }
}
.staff-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.staff-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.staff-offer p { color: var(--muted); }
.salary-slip-actions { margin-top: 16px; }
.salary-slip-actions ul { list-style: none; padding: 0; margin: 12px 0 0; }
.salary-slip-actions li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.salary-slip-actions li p { color: var(--muted); }
.salary-slip-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.salary-adjustments { flex-basis: 100%; padding: 10px 12px; border-radius: 8px; background: #f4f8f2; }
.salary-adjustments summary { cursor: pointer; color: var(--green); font-weight: 650; }
.salary-bulk p { color: var(--muted); }
.partner-edit input[type="checkbox"] { width: auto; }
.report-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.report-filters h2, .report-filters .report-hint { flex: 0 0 100%; }
.report-filters label { flex: 1 1 155px; min-width: 0; }
.report-hint { color: var(--muted); margin: 10px 0; }
.attendance-nav { margin-bottom: 16px; }
.bulk-attendance .table-scroll td:first-child { white-space: normal; }
.bulk-attendance .table-scroll td:last-child { min-width: 120px; }
.chart-first-half, .chart-second-half { background: #527783; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.invoice-actions { margin-bottom: 16px; }
.invoice-document { max-width: 850px; }
.invoice-brand { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.invoice-brand img { width: 160px; height: 64px; object-fit: contain; object-position: left center; }
.invoice-brand h2 { color: var(--green); font-size: 2rem; }
.invoice-details { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; padding: 20px 0; overflow-wrap: anywhere; }
.invoice-details h3 { color: var(--green); margin: 0 0 5px; font-size: 1rem; }
.invoice-details p { white-space: pre-line; }
.invoice-details dl { margin: 0; display: grid; gap: 10px; }
.invoice-total { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px; border-radius: 8px; background: var(--tint); color: var(--green); }
.invoice-total strong { font-size: clamp(1.125rem, 4vw, 1.55rem); overflow-wrap: anywhere; }
@media screen and (max-width: 540px) {
    .invoice-details { grid-template-columns: minmax(0, 1fr); }
}
@media print {
    @page { margin: 14mm; }
    @page invoice { size: A4 portrait; }
    @page attendance { size: A4 landscape; }
    .invoice-document { page: invoice; }
    .attendance-document { page: attendance; }
    body:has(.invoice-document, .attendance-document) { background: white; }
    body:has(.invoice-document, .attendance-document) :is(.sidebar, .top, .page-head),
    .invoice-actions, .report-export, .salary-slip-actions, .salary-bulk, [data-monthly-filter] { display: none; }
    body:has(.invoice-document, .attendance-document) .shell { display: block; min-height: 0; }
    body:has(.invoice-document, .attendance-document) .content { padding: 0; }
    .invoice-document { max-width: none; padding: 0; border: 0; box-shadow: none; print-color-adjust: exact; }
    .invoice-total { break-inside: avoid; }
    .attendance-document { padding: 0; border: 0; box-shadow: none; }
    .attendance-document .table-scroll { overflow: visible; }
    .attendance-document table { table-layout: fixed; font-size: 7.5pt; }
    .attendance-document :is(th, td) { white-space: normal; padding: 3px 1px; font-size: inherit; overflow-wrap: anywhere; }
    .attendance-document th:first-child { width: 11mm; }
    .attendance-document th:nth-child(2), .calendar-with-partner th:nth-child(3) { width: 27mm; }
    .attendance-document th:nth-last-child(4), .attendance-document th:nth-last-child(3) { width: 10mm; }
    .attendance-document th:nth-last-child(-n+2) { width: 20mm; }
    .attendance-document .calendar-legend { font-size: 9pt; }
    .attendance-document thead { display: table-header-group; }
    .attendance-document tr { break-inside: avoid; }
}
.button.danger { background: #962f25; }
.button.danger:hover { background: #76241c; }
@media (max-width: 540px) {
    .partner-dialog .form-grid, .partner-edit .form-grid { grid-template-columns: minmax(0, 1fr); }
}
.field-wide { grid-column: 1 / -1; }
textarea { resize: vertical; }
input[type="file"] { padding: 6px; }
input::file-selector-button { padding: 6px 9px; border: 0; border-radius: 5px; background: var(--tint); color: var(--green); font: inherit; cursor: pointer; }
.profile-images { display: flex; flex-wrap: wrap; gap: 12px; }
.profile-images img { width: 82px; height: 82px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.profile-address { white-space: pre-line; overflow-wrap: anywhere; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.preview-note { font-size: .875rem; color: var(--muted); background: var(--tint); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }

.login {
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(16px, 5vw, 64px);
    background: #11261a;
}
.login-background {
    position: fixed;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 12% 10%, #517d3866 0, transparent 48%),
        radial-gradient(ellipse at 95% 100%, #427d4d88 0, transparent 48%),
        repeating-linear-gradient(0deg, #a9d39710 0 1px, transparent 1px 52px),
        repeating-linear-gradient(90deg, #a9d39710 0 1px, transparent 1px 52px);
}
.login-background i {
    position: absolute;
    top: -38vmax;
    right: -35vmax;
    width: 83vmax;
    aspect-ratio: 1;
    border: 1px solid #a0cf7a45;
    border-radius: 50%;
    box-shadow: 0 0 0 34px #a0cf7a12, 0 0 0 71px #a0cf7a0d, 0 0 0 114px #a0cf7a0a;
    animation: login-drift 16s ease-in-out infinite alternate;
}
.login-background i + i { top: auto; right: auto; bottom: -48vmax; left: -39vmax; animation-delay: -8s; }
.login-grid {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
    min-height: 570px;
    border: 1px solid #cce3c950;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 35px 100px #06130da0;
}
.login-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 32px;
    overflow: hidden;
    padding: clamp(26px, 4vw, 50px);
    background: radial-gradient(ellipse at 70% 86%, #3a6d40, transparent 52%), linear-gradient(135deg, #10271b, #204c2c);
    color: white;
}
.login-brand .logo { width: 170px; height: 44px; padding: 7px 11px; border-radius: 8px; background: white; }
.login-brand .eyebrow { color: #bde798; margin-bottom: 10px; }
.login-intro h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.13; letter-spacing: -.045em; }
.login-intro h2 + p { margin-top: 12px; color: #d7e8d5; }
.login-illustration {
    position: relative;
    width: min(340px, 100%);
    height: 184px;
    margin: auto auto 0;
}
.login-orbit {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 100%;
    height: 67%;
    border: 1px solid #c2ed9b65;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-14deg);
}
.orbit-inner { width: 76%; height: 52%; border-color: #c2ed9b4d; transform: translate(-50%, -50%) rotate(19deg); }
.login-graphic {
    position: absolute;
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border: 1px solid #caeabc65;
    border-radius: 13px;
    background: #315d40;
    color: #e1f3d4;
    box-shadow: 0 10px 22px #091b1766;
    animation: login-float 5s ease-in-out infinite;
}
.login-graphic .icon { width: 24px; height: 24px; }
.graphic-center { inset: calc(50% - 38px) auto auto calc(50% - 38px); width: 76px; height: 76px; border-radius: 20px; background: #d9f0cd; color: #275833; }
.graphic-center .icon { width: 32px; height: 32px; }
.graphic-staff { left: 2%; top: 50%; animation-delay: -1.5s; }
.graphic-attendance { right: 6%; top: 8%; animation-delay: -3.2s; }
.graphic-invoices { right: 12%; bottom: 3%; animation-delay: -2.4s; }
.login-form { align-self: center; min-width: 0; padding: clamp(26px, 5vw, 58px); }
.login-signin-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: var(--tint); color: var(--green); margin-bottom: 16px; }
.login-form h1 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); }
.login-form > p { color: var(--muted); margin-top: 7px; }
.login-form form { display: grid; gap: 16px; margin-top: 25px; }
.login-field { min-width: 0; }
.login-field > input { margin-top: 6px; }
.login-form input:not([type="submit"]):not([type="hidden"]) { min-height: 48px; background: #fbfdfb; }
.login-password { position: relative; margin-top: 6px; }
.login-password input { padding-right: 72px; }
.password-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); min-height: 40px; padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--green); font-weight: 650; font-size: .875rem; }
.password-toggle:hover { background: var(--tint); }
.login-form .button { min-height: 48px; }
.login-form [role="alert"] { color: #882e22; }
.login-form [role="alert"]:empty { display: none; }
@keyframes login-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-7vw, 6vh, 0); } }
@keyframes login-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) {
    .login-background i, .login-graphic, .dashboard-hero::before { animation: none; }
}
dt { color: var(--muted); font-size: .875rem; }
dd { margin: 4px 0 0; font-weight: 650; overflow-wrap: anywhere; }

@media (max-width: 860px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: static; height: auto; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
    .brand { width: auto; padding: 8px 10px; }
    .brand .logo { width: 136px; }
    .menu-enhanced .menu-toggle { display: flex; border-color: var(--line); }
    .menu-enhanced:not(.menu-open) .sidebar-menu { display: none; }
    .sidebar-menu { margin-top: 8px; padding-top: 10px; }
    .nav-label { display: none; }
    .top { min-height: 49px; }
}
@media (max-width: 640px) {
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .metric { padding: 12px; }
    .metric strong { font-size: 1.65rem; }
    .hero time { white-space: normal; }
    .page-head, .panel-head { flex-wrap: wrap; }
    .login-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 18px; }
    .login-brand { gap: 14px; padding: 21px; }
    .login-brand .logo { width: 146px; height: 39px; }
    .login-brand .eyebrow { margin-bottom: 5px; }
    .login-intro h2 { font-size: clamp(1.3rem, 5vw, 1.7rem); }
    .login-intro h2 br { display: none; }
    .login-intro h2 + p { margin-top: 6px; font-size: .875rem; }
    .login-illustration { display: none; }
    .login-form { padding: 22px 21px 25px; }
    .login-signin-icon { display: none; }
    .login-form form { margin-top: 17px; gap: 13px; }
}

