:root {
    color-scheme: light;
    --crew-bg: #f4f6f3;
    --crew-surface: #fff;
    --crew-ink: #20372d;
    --crew-muted: #697970;
    --crew-line: #e2e9e3;
    --crew-soft: #edf3ee;
    --crew-accent: #175740;
    --crew-shadow: 0 8px 28px #183c2b08;
    --crew-signed-off-bg: #fff2c7;
    --crew-signed-off-ink: #594613;
    --crew-signed-on-bg: #dceee1;
    --crew-signed-on-ink: #244c33;
    --crew-conduite-scored-bg: #e4f1e8;
    --crew-conduite-scored-ink: #244c33;
    --crew-conduite-scored-hover: #d6e9dc;
    --crew-status-success-bg: #e1f0e6;
    --crew-status-success-ink: #244c33;
    --crew-status-success-hover: #d3e7da;
    --crew-status-warning-bg: #fff2c7;
    --crew-status-warning-ink: #594613;
    --crew-status-warning-hover: #f2e1a7;
    --crew-status-danger-bg: #fae5e5;
    --crew-status-danger-ink: #842d37;
    --crew-status-danger-hover: #f2d3d5;
    --crew-status-info-bg: #e3eef8;
    --crew-status-info-ink: #224e70;
    --crew-status-info-hover: #d2e3f2;
    --crew-status-attention-bg: #fbe8d3;
    --crew-status-attention-ink: #733c17;
    --crew-status-attention-hover: #f3d9bb;
    --crew-chart-fill: #b9daca;
    --crew-chart-stroke: #267454;
}
html[data-theme="dark"] {
    color-scheme: dark;
    --crew-bg: #101c17;
    --crew-surface: #1b2b23;
    --crew-ink: #e6efe9;
    --crew-muted: #a8bcb0;
    --crew-line: #32473a;
    --crew-soft: #24392c;
    --crew-accent: #8dd6b6;
    --crew-shadow: 0 8px 28px #0002;
    --crew-filter-bg: #14271e;
    --crew-filter-border: #6c8c78;
    --crew-filter-placeholder: #b8cbbf;
    --crew-signed-off-bg: #403622;
    --crew-signed-off-ink: #f6deb0;
    --crew-signed-on-bg: #223f35;
    --crew-signed-on-ink: #c5eed9;
    --crew-conduite-scored-bg: #223f35;
    --crew-conduite-scored-ink: #c5eed9;
    --crew-conduite-scored-hover: #2b4c3f;
    --crew-status-success-bg: #223f35;
    --crew-status-success-ink: #c5eed9;
    --crew-status-success-hover: #2b4c3f;
    --crew-status-warning-bg: #403622;
    --crew-status-warning-ink: #f6deb0;
    --crew-status-warning-hover: #51432a;
    --crew-status-danger-bg: #482a30;
    --crew-status-danger-ink: #f5cbd1;
    --crew-status-danger-hover: #58343c;
    --crew-status-info-bg: #223b4a;
    --crew-status-info-ink: #c9e6f6;
    --crew-status-info-hover: #2b4859;
    --crew-status-attention-bg: #453122;
    --crew-status-attention-ink: #f4d4ae;
    --crew-status-attention-hover: #573e2b;
    --crew-chart-fill: #3a715b;
    --crew-chart-stroke: #8dd6b6;
}
html, body, #app { min-height: 100%; margin: 0; }
body { background: var(--crew-bg); color: var(--crew-ink); font-family: 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #b6a166; outline-offset: 3px; }
main:focus, h1:focus { outline: none; }
.crewing-app { min-height: 100vh; }
.skip-link { position: fixed; left: 20px; top: -70px; z-index: 2200; padding: 12px 20px; background: var(--crew-surface); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.brand-logo { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: #f5f5e9; border: 1px solid #e8e7ce; border-radius: 12px; flex-shrink: 0; }
.brand-logo img { width: 37px; height: auto; }
.workspace-shell { background: var(--crew-bg); }
.workspace-topbar { background: var(--crew-surface) !important; border-bottom: 1px solid var(--crew-line); }
.workspace-topbar .mud-toolbar { height: 72px; padding: 0 28px; gap: 14px; }
.workspace-location { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.workspace-location-label { color: var(--crew-muted); font-size: 10px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.workspace-location-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-trigger .mud-button-label { gap: 10px; }
.account-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--crew-soft); color: var(--crew-accent); font-size: 13px; font-weight: 700; }
.account-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.workspace-drawer { border-right: 1px solid var(--crew-line); }
.workspace-drawer .mud-drawer-content { height: 100%; }
.workspace-brand { display: flex; align-items: center; gap: 13px; padding: 25px 24px 21px; color: var(--crew-ink); text-decoration: none; flex-shrink: 0; }
.workspace-brand strong { display: block; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.8px; }
.workspace-brand small { display: block; color: var(--crew-muted); font-size: 8px; font-weight: 650; letter-spacing: .14em; margin-top: 5px; }
.workspace-navigation { min-height: 0; display: flex; flex-direction: column; flex: 1; }
.menu-search { padding: 0 18px 16px; }
.menu-search .mud-input-control { margin: 0; }
.menu-search .mud-input { font-size: 12px; background: var(--crew-bg); }
.menu-search .mud-input-outlined-border { border-color: var(--crew-line); }
.menu-scroll { overflow-y: auto; padding: 0 12px 20px; flex: 1; scrollbar-width: thin; scrollbar-color: #b9c8bd transparent; }
.workspace-menu .mud-nav-link { border-radius: 8px; margin: 2px 0; padding: 11px 12px; font-size: 12px; min-height: 42px; transition: background-color 140ms, color 140ms; }
.workspace-menu .mud-nav-link .mud-nav-link-text { margin-left: 12px; line-height: 1.4; }
.workspace-menu .mud-nav-link-icon { font-size: 20px; color: var(--crew-muted); }
.workspace-menu .mud-nav-link.active:not(.mud-nav-link-disabled), .workspace-menu .menu-current > .mud-nav-link { background: var(--crew-soft); color: var(--crew-accent); font-weight: 650; box-shadow: inset 3px 0 0 var(--crew-accent); }
.workspace-menu .mud-nav-link.active .mud-nav-link-icon, .workspace-menu .menu-current .mud-nav-link-icon { color: var(--crew-accent); }
.workspace-menu-group { margin-top: 13px; }
.workspace-menu-group > .mud-nav-link { padding: 8px 12px; min-height: 32px; color: var(--crew-muted); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.workspace-menu-group .mud-navmenu { padding-left: 0 !important; }
.workspace-menu .mud-nav-link:hover { background: var(--crew-soft); }
.drawer-footer { display: flex; align-items: center; gap: 8px; padding: 19px 23px; border-top: 1px solid var(--crew-line); font-size: 10px; color: var(--crew-muted); flex-shrink: 0; }
.drawer-footer small { margin-left: auto; font-size: 9px; }
.brand-dot { width: 6px; height: 6px; background: #76a98c; border-radius: 50%; }
.menu-skeleton { padding: 16px; }
.menu-message { padding: 24px 12px; font-size: 12px; color: var(--crew-muted); line-height: 1.65; }
.menu-message p { margin: 8px 0; }
.workspace-main { padding-top: 72px !important; min-width: 0; }
.workspace-content { padding: 30px 32px 0; min-height: calc(100vh - 72px); display: flex; flex-direction: column; }
.route-content { min-width: 0; flex: 1; }
.workspace-footer { display: flex; justify-content: space-between; gap: 12px; padding: 24px 0 18px; margin-top: 30px; border-top: 1px solid var(--crew-line); color: var(--crew-muted); font-size: 10px; }
.public-content { padding: 28px; max-width: 1500px; margin: auto; }
.workspace-content .mud-table { border: 1px solid var(--crew-line); border-radius: 12px; box-shadow: var(--crew-shadow); overflow: hidden; }
.workspace-content .mud-table-toolbar { min-height: 68px; padding: 16px 20px; gap: 12px; height: auto; flex-wrap: wrap; }
.workspace-content .mud-table-head .mud-table-cell { background: var(--crew-soft); color: var(--crew-ink); font-weight: 650; font-size: 12px; border-color: var(--crew-line); }
.workspace-content .mud-table-header { background: var(--crew-soft); }
.workspace-content .mud-table-body .mud-table-cell { font-size: 12px; padding-top: 10px; padding-bottom: 10px; }
.workspace-content .mud-table-pagination { border-top: 1px solid var(--crew-line); }
.workspace-content .mud-tabs-toolbar { border-bottom: 1px solid var(--crew-line); box-shadow: none; background: var(--crew-surface); }
.workspace-content .mud-tab { text-transform: none; font-weight: 600; min-height: 48px; }
.workspace-content .mud-tab.mud-tab-active { color: var(--crew-accent); }
.workspace-content .mud-button-filled { box-shadow: none; }
.workspace-content .mud-paper.mud-elevation-1 { box-shadow: var(--crew-shadow); }
.list-reset { margin-bottom: 12px; font-size: 12px; color: var(--crew-muted); }
/* Set text on the cell itself so MudBlazor's table color cannot override it. */
.workspace-content .mud-table-cell.signed-off-crew {
    background-color: var(--crew-signed-off-bg);
    color: var(--crew-signed-off-ink);
}
.workspace-content .mud-table-cell.signed-on-crew {
    background-color: var(--crew-signed-on-bg);
    color: var(--crew-signed-on-ink);
}
.workspace-content .conduite-table .mud-table-row.conduite-scored > .mud-table-cell {
    background-color: var(--crew-conduite-scored-bg);
    color: var(--crew-conduite-scored-ink);
}
.workspace-content .conduite-table.mud-table-hover .mud-table-row.conduite-scored:is(:hover, :focus-within) > .mud-table-cell {
    background-color: var(--crew-conduite-scored-hover);
}
/* Mud 6 puts Style on .mud-input for text/date/number fields, but on
   .mud-input-control for selects. Cover both legacy filter surfaces. */
html[data-theme="dark"] .workspace-content :is(.mud-input, .mud-input-control)[style*="#f0f0f0" i] {
    background-color: var(--crew-filter-bg) !important;
    color: var(--crew-ink);
}
html[data-theme="dark"] .workspace-content :is(.mud-input, .mud-input-control)[style*="#f0f0f0" i] input:not(:disabled) {
    color: var(--crew-ink);
    caret-color: var(--crew-accent);
}
html[data-theme="dark"] .workspace-content :is(.mud-input, .mud-input-control)[style*="#f0f0f0" i] input:not(:disabled)::placeholder {
    color: var(--crew-filter-placeholder);
    opacity: 1;
}
html[data-theme="dark"] .workspace-content .mud-input[style*="#f0f0f0" i]:not(.mud-disabled):not(.mud-input-error)::before,
html[data-theme="dark"] .workspace-content .mud-input-control[style*="#f0f0f0" i] .mud-input:not(.mud-disabled):not(.mud-input-error)::before {
    border-bottom-color: var(--crew-filter-border);
}
.td-nowrap { white-space: nowrap; }

/* Shared by routed tables and dialogs rendered outside the workspace layout. */
.mud-table-root .mud-table-cell.crew-status {
    background-color: var(--crew-cell-bg, var(--crew-surface));
    color: var(--crew-cell-ink, var(--crew-ink));
}
.crew-status-success {
    --crew-cell-bg: var(--crew-status-success-bg);
    --crew-cell-ink: var(--crew-status-success-ink);
    --crew-cell-hover: var(--crew-status-success-hover);
}
.crew-status-warning {
    --crew-cell-bg: var(--crew-status-warning-bg);
    --crew-cell-ink: var(--crew-status-warning-ink);
    --crew-cell-hover: var(--crew-status-warning-hover);
}
.crew-status-danger {
    --crew-cell-bg: var(--crew-status-danger-bg);
    --crew-cell-ink: var(--crew-status-danger-ink);
    --crew-cell-hover: var(--crew-status-danger-hover);
}
.crew-status-info {
    --crew-cell-bg: var(--crew-status-info-bg);
    --crew-cell-ink: var(--crew-status-info-ink);
    --crew-cell-hover: var(--crew-status-info-hover);
}
.crew-status-attention {
    --crew-cell-bg: var(--crew-status-attention-bg);
    --crew-cell-ink: var(--crew-status-attention-ink);
    --crew-cell-hover: var(--crew-status-attention-hover);
}
.mud-table-hover .mud-table-body .mud-table-row:is(:hover, :focus-within) > .mud-table-cell.crew-status {
    background-color: var(--crew-cell-hover, var(--crew-soft));
}
.dashboard-panel { background: var(--crew-surface); color: var(--crew-ink); }
.mud-dialog-actions.crew-payroll-hold-actions {
    position: sticky;
    bottom: 0;
    background: var(--crew-surface);
    color: var(--crew-ink);
    border-top: 1px solid var(--crew-line);
    padding: 20px 12px;
    z-index: 1;
}
.crew-document-frame {
    width: 1200px;
    max-width: 100%;
    height: 700px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--crew-surface);
    color: var(--crew-ink);
}
.onboard-checking-title { color: var(--crew-accent); font-size: 40px; }

/* Sign in */
.auth-layout { min-height: 100vh; }
.login-page { display: grid; grid-template-columns: 1.04fr 1fr; min-height: 100vh; }
.login-story { background: #153e2d; color: #f1f3e8; padding: 44px 56px 28px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.login-brand { display: inline-flex; gap: 16px; align-items: center; color: #e6ebdf; font-size: 12px; font-weight: 600; letter-spacing: .17em; text-decoration: none; }
.login-brand-divider { padding: 0 12px; color: #849e83; }
.login-story-copy { position: relative; z-index: 1; padding-top: clamp(55px, 10vh, 105px); }
.eyebrow { display: block; font-size: 10px; letter-spacing: .17em; font-weight: 700; color: var(--crew-muted); }
.eyebrow.light { color: #b6cbb4; font-size: 9px; letter-spacing: .15em; display: flex; align-items: center; gap: 9px; }
.eyebrow.light > span { width: 18px; height: 1px; background: #c5b078; }
.login-story h1 { font-size: clamp(34px, 3.5vw, 58px); line-height: 1.13; font-weight: 450; letter-spacing: -.045em; margin: 25px 0; }
.login-story h1 em { color: #dac796; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.04em; }
.login-story-copy p { color: #b6c9bb; font-size: 13px; line-height: 1.85; margin: 0; }
.voyage-art { flex: 1; min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; margin: -5px -56px 0; }
.voyage-art img { width: 100%; max-height: 285px; object-fit: contain; }
.voyage-caption { font-size: 8px; color: #a5bba8; letter-spacing: .19em; padding: 2px 56px 26px; }
.login-story-footer { border-top: 1px solid #c8d7c31f; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; color: #abc0ad; font-size: 9px; letter-spacing: .04em; }
.login-access { display: flex; flex-direction: column; background: var(--crew-surface); padding: 36px 48px 28px; min-width: 0; }
.login-topline { display: flex; justify-content: flex-end; align-items: center; gap: 15px; color: var(--crew-muted); font-size: 9px; letter-spacing: .14em; }
.login-form-wrap { width: 100%; max-width: 378px; margin: auto; padding: 42px 0; }
.login-welcome-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px; color: var(--crew-accent); background: var(--crew-soft); margin-bottom: 24px; }
.login-form-wrap h2 { font-size: clamp(25px, 2.4vw, 34px); font-weight: 650; letter-spacing: -.045em; line-height: 1.3; margin: 10px 0 12px; }
.login-intro { font-size: 13px; line-height: 1.75; max-width: 320px; color: var(--crew-muted); margin-bottom: 28px; }
.login-form .mud-input-control { margin-bottom: 20px; }
.login-form .mud-input { font-size: 14px; }
.login-form .mud-input-outlined { border-radius: 10px; }
.login-form .mud-input-label { font-size: 14px; }
.login-submit { height: 51px; margin-top: 6px; border-radius: 10px; box-shadow: 0 6px 16px #17574018 !important; }
.login-submit .mud-button-label { width: 100%; justify-content: center; gap: 8px; }
.login-submit .mud-button-icon-end { margin-left: auto; }
.login-help { display: flex; gap: 10px; margin-top: 28px; color: var(--crew-muted); font-size: 11px; line-height: 1.8; }
.login-help .mud-icon-root { margin-top: 4px; }
.login-help strong { font-weight: 500; color: var(--crew-ink); }
.login-access-footer { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; color: var(--crew-muted); }

/* Home and menu selection */
.home-eyebrow { margin-bottom: 14px; }
.home-heading { font-size: clamp(26px, 3vw, 38px); font-weight: 650; letter-spacing: -.04em; line-height: 1.2; margin: 0 0 10px; }
.home-intro { color: var(--crew-muted); font-size: 14px; margin-bottom: 28px; }
.home-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: #173f2e; color: #f3f4e9; border-radius: 16px; padding: 28px 32px; overflow: hidden; position: relative; margin-bottom: 32px; }
.home-banner h2 { font-size: 21px; font-weight: 500; margin: 0 0 9px; letter-spacing: -.02em; }
.home-banner p { color: #bfcfbf; font-size: 12px; line-height: 1.7; margin: 0; max-width: 400px; }
.home-banner img { width: 290px; margin: -50px -20px -60px 0; opacity: .9; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 0 16px; }
.home-section-heading h2 { font-size: 17px; margin: 0; font-weight: 650; letter-spacing: -.02em; }
.home-section-heading span { font-size: 11px; color: var(--crew-muted); }
.home-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-menu-card { border: 1px solid var(--crew-line); background: var(--crew-surface); box-shadow: var(--crew-shadow); border-radius: 12px; padding: 22px; text-decoration: none; color: var(--crew-ink); transition: border-color 150ms, transform 150ms, box-shadow 150ms; }
.home-menu-card:hover { border-color: #8eab96; transform: translateY(-2px); box-shadow: 0 8px 24px #1434250d; }
.home-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.home-card-icon { width: 39px; height: 39px; border-radius: 10px; background: var(--crew-soft); color: var(--crew-accent); display: inline-flex; align-items: center; justify-content: center; }
.home-card-top small { color: var(--crew-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.home-menu-card h3 { font-size: 14px; font-weight: 650; margin: 0 0 8px; }
.home-menu-card p { font-size: 12px; color: var(--crew-muted); line-height: 1.6; margin: 0; }
.home-card-title { display: flex; justify-content: space-between; gap: 10px; }
.home-card-title .mud-icon-root { color: var(--crew-muted); font-size: 17px; }
.home-empty { padding: 32px; background: var(--crew-surface); border: 1px solid var(--crew-line); border-radius: 12px; color: var(--crew-muted); }

/* Progress follows actual requests; these effects never delay navigation. */
.request-progress { position: fixed; inset: 0 0 auto; z-index: 2400; opacity: 0; animation: reveal .1s .15s forwards; pointer-events: none; }
.request-progress .mud-progress-linear { height: 3px; }
.busy-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2300; background: #10251b48; backdrop-filter: blur(3px); }
.busy-panel { width: 250px; padding: 28px; text-align: center; border: 1px solid var(--crew-line); border-radius: 16px; background: var(--crew-surface); box-shadow: 0 20px 80px #0002; }
.busy-panel strong, .busy-panel > span:not(.busy-orbit) { display: block; }
.busy-panel strong { font-size: 15px; margin: 18px 0 5px; }
.busy-panel > span:not(.busy-orbit) { font-size: 12px; color: var(--crew-muted); }
.busy-orbit { display: inline-flex; align-items: center; justify-content: center; height: 48px; width: 48px; border-radius: 50%; background: var(--crew-soft); color: var(--crew-accent); }
.page-loading { padding: 24px; border-radius: 12px; background: var(--crew-surface); border: 1px solid var(--crew-line); min-height: 420px; }
.page-loading-heading { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; padding-bottom: 30px; }
.page-loading-heading small { margin-left: auto; font-size: 11px; color: var(--crew-muted); font-weight: 400; }
.loading-dot { width: 7px; height: 7px; background: var(--crew-accent); border-radius: 50%; animation: breathe 1.2s ease-in-out infinite; }
.skeleton-block { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--crew-soft) 20%, var(--crew-bg) 50%, var(--crew-soft) 80%); background-size: 250% 100%; animation: shimmer 1.8s infinite linear; }
.skeleton-toolbar { display: flex; justify-content: space-between; padding-bottom: 24px; }
.skeleton-title { width: 26%; height: 19px; }
.skeleton-action { width: 95px; height: 28px; }
.skeleton-table-head, .skeleton-table-row { display: grid; grid-template-columns: .7fr 1.8fr 1.2fr .8fr; gap: 8%; padding: 19px 12px; border-bottom: 1px solid var(--crew-line); }
.skeleton-table-head { background: var(--crew-bg); border-radius: 6px; }
.skeleton-table-row:nth-child(even) .skeleton-block:nth-child(2) { width: 75%; }
.skeleton-pager { display: flex; justify-content: space-between; padding-top: 26px; }
.skeleton-pager .skeleton-block { width: 100px; }
.page-load-error { text-align: center; padding: 60px 24px; background: var(--crew-surface); border: 1px solid var(--crew-line); border-radius: 14px; }
.state-icon { display: inline-flex; padding: 18px; border-radius: 50%; background: var(--crew-soft); color: var(--crew-accent); margin-bottom: 18px; }
.page-load-error h2 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.page-load-error p { color: var(--crew-muted); margin-bottom: 22px; font-size: 13px; }
.table-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 34px 12px; color: var(--crew-muted); font-size: 13px; }
.startup-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--crew-bg); color: var(--crew-ink); padding: 28px; }
.startup-screen .brand-logo { width: 68px; height: 68px; border-radius: 18px; }
.startup-screen .brand-logo img { width: 50px; }
.startup-screen h1 { font-size: 25px; letter-spacing: -.03em; margin: 22px 0 8px; }
.startup-screen p { font-size: 12px; color: var(--crew-muted); margin: 0 0 24px; }
.startup-track { width: 220px; height: 4px; border-radius: 5px; background: var(--crew-line); overflow: hidden; }
.startup-fill { height: 100%; width: var(--blazor-load-percentage, 8%); background: var(--crew-accent); border-radius: inherit; transition: width .15s; }
.startup-percentage { font-size: 10px; color: var(--crew-muted); margin-top: 12px; }
.startup-percentage::after { content: var(--blazor-load-percentage-text, "Menyiapkan workspace..."); }
#blazor-error-ui { display: none; position: fixed; z-index: 2500; bottom: 18px; left: 50%; transform: translateX(-50%); width: min(600px, calc(100% - 32px)); background: var(--crew-surface); color: var(--crew-ink); border: 1px solid #c38268; border-radius: 12px; padding: 18px 42px 18px 20px; box-shadow: 0 8px 36px #0002; font-size: 13px; }
#blazor-error-ui .reload { color: var(--crew-accent); font-weight: 650; margin-left: 8px; }
#blazor-error-ui .dismiss { position: absolute; right: 14px; top: 14px; cursor: pointer; }
@keyframes reveal { to { opacity: 1; } }
@keyframes breathe { 50% { opacity: .35; } }
@keyframes shimmer { to { background-position: -250% 0; } }
@media (max-width: 1199px) {
    .login-story { padding-left: 36px; padding-right: 36px; }
    .login-access { padding-left: 32px; padding-right: 32px; }
    .voyage-art { margin-left: -36px; margin-right: -36px; }
    .voyage-caption { padding-left: 36px; }
    .home-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workspace-content { padding: 24px 22px 0; }
}
@media (max-width: 959.98px) {
    .workspace-topbar .mud-toolbar { padding: 0 16px; height: 64px; gap: 8px; }
    .workspace-main { padding-top: 64px !important; }
    .workspace-drawer { top: 0 !important; height: 100% !important; }
    .login-page { grid-template-columns: .85fr 1fr; }
    .login-story { padding: 32px 25px 24px; }
    .login-story h1 { font-size: 37px; }
    .login-story-copy { padding-top: 80px; }
    .login-brand { font-size: 10px; gap: 12px; letter-spacing: .1em; }
    .login-brand-divider { padding: 0 7px; }
    .login-access { padding: 24px; }
    .voyage-caption { font-size: 7px; letter-spacing: .1em; }
    .login-access-footer { flex-direction: column; }
}
@media (max-width: 680px) {
    .login-page { display: flex; flex-direction: column; }
    .login-story { padding: 22px 25px; min-height: auto; }
    .login-story-copy { padding-top: 28px; }
    .login-story h1 { font-size: 30px; margin: 13px 0 8px; }
    .login-story h1 br { display: none; }
    .login-story h1 em { white-space: normal; }
    .login-story-copy p { font-size: 11px; max-width: 280px; }
    .voyage-art, .login-story-footer, .desktop-break, .login-story .eyebrow { display: none; }
    .login-brand .brand-logo { width: 38px; height: 38px; border-radius: 9px; }
    .login-brand .brand-logo img { width: 29px; }
    .login-access { padding: 14px 25px 22px; flex: 1; }
    .login-topline { font-size: 8px; }
    .login-form-wrap { padding: 14px 0 32px; max-width: 420px; }
    .login-welcome-icon { display: none; }
    .login-form-wrap h2 { font-size: 27px; }
    .login-intro { margin-bottom: 22px; }
    .login-access-footer { flex-direction: row; font-size: 8px; }
    .workspace-content { padding: 20px 14px 0; }
    .account-name { display: none; }
    .workspace-location-title { max-width: 175px; font-size: 12px; }
    .workspace-footer { font-size: 8px; }
    .home-menu-grid { grid-template-columns: 1fr; gap: 12px; }
    .home-banner { padding: 23px; }
    .home-banner img { display: none; }
    .home-banner h2 { font-size: 19px; }
    .home-menu-card { padding: 18px; }
    .home-card-top { margin-bottom: 15px; }
    .page-loading { padding: 20px 14px; }
    .page-loading-heading { flex-wrap: wrap; }
    .page-loading-heading small { width: 100%; margin-left: 16px; }
    .public-content { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .request-progress { opacity: 1; }
    .home-menu-card:hover { transform: none; }
}
@media print {
    .workspace-topbar, .workspace-drawer, .workspace-footer, .request-progress, .busy-overlay, .no-print, .list-reset { display: none !important; }
    .workspace-main { margin: 0 !important; padding: 0 !important; }
    .workspace-content, .public-content { padding: 0; }
    body { background: #fff; color: #000; }
}
