:root {
    color-scheme: dark;
    --blue: #2dd4bf;
    --blue-dark: #0f8f88;
    --blue-soft: rgb(45 212 191 / 13%);
    --gold: #d8b56b;
    --gold-soft: rgb(216 181 107 / 12%);
    --background: #051014;
    --surface: #0c1a1f;
    --surface-raised: #11252b;
    --surface-soft: #081419;
    --text: #eefaf8;
    --muted: #88a7a7;
    --border: #19343a;
    --border-strong: #285058;
    --success: #5ee0a4;
    --success-soft: rgb(39 174 111 / 14%);
    --error: #ff8b82;
    --error-soft: rgb(213 65 57 / 14%);
    --shadow: 0 26px 70px rgb(0 6 8 / 44%);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% -5%, rgb(29 179 166 / 16%), transparent 34rem),
        radial-gradient(circle at 92% 28%, rgb(216 181 107 / 7%), transparent 28rem),
        var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

.page-shell {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    padding: max(28px, env(safe-area-inset-top)) 0 max(44px, env(safe-area-inset-bottom));
}

.page-shell--wide {
    width: min(100% - 32px, 900px);
}

.menu-shell {
    display: grid;
    width: min(100% - 32px, 760px);
    min-height: 100vh;
    margin: 0 auto;
    align-content: center;
    padding: max(34px, env(safe-area-inset-top)) 0 max(34px, env(safe-area-inset-bottom));
}

.menu-header {
    margin-bottom: 28px;
}

.atlas-hero {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.atlas-hero h1 {
    margin-bottom: 5px;
    font-size: clamp(2.25rem, 10vw, 3.5rem);
    font-weight: 710;
    letter-spacing: -0.065em;
}

.menu-header h1 {
    margin-bottom: 8px;
}

.menu-header p {
    font-size: 0.9rem;
}

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

.menu-card {
    position: relative;
    display: flex;
    min-height: 190px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgb(45 212 191 / 4%), transparent 52%),
        var(--surface);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 22px 50px rgb(0 0 0 / 24%);
    transition: transform 180ms, border-color 180ms, box-shadow 180ms;
}

.menu-card::after {
    position: absolute;
    right: -42px;
    bottom: -58px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgb(45 212 191 / 8%);
    content: "";
    filter: blur(2px);
}

.menu-card--accent {
    border-color: rgb(45 212 191 / 32%);
    background:
        linear-gradient(145deg, rgb(45 212 191 / 13%), transparent 56%),
        var(--surface);
}

.menu-card:active {
    transform: scale(0.98);
    border-color: var(--blue);
    box-shadow: 0 14px 30px rgb(0 0 0 / 28%);
}

.menu-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgb(45 212 191 / 27%);
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 1.3rem;
}

.atlas-mark {
    position: relative;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgb(45 212 191 / 36%);
    border-radius: 17px;
    background:
        linear-gradient(145deg, rgb(45 212 191 / 22%), rgb(7 39 44 / 92%));
    color: #8ff5e8;
    font-size: 1.35rem;
    font-weight: 780;
    letter-spacing: -0.08em;
    box-shadow: 0 14px 34px rgb(0 140 130 / 20%), inset 0 1px rgb(255 255 255 / 8%);
}

.atlas-mark::after {
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    content: "";
    box-shadow: 0 0 10px rgb(216 181 107 / 65%);
}

.atlas-mark--large {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    font-size: 2rem;
}

.menu-copy {
    display: grid;
    gap: 5px;
    z-index: 1;
}

.menu-copy strong {
    font-size: 1rem;
    letter-spacing: -0.015em;
}

.menu-copy small {
    max-width: 180px;
    color: var(--muted);
    font-size: 0.72rem;
}

.menu-arrow {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #78999b;
    font-size: 1.5rem;
}

.back-link {
    display: inline-flex;
    margin-bottom: 22px;
    align-items: center;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 720;
    text-decoration: none;
    transition: color 160ms;
}

.back-link:active {
    color: var(--text);
}

.page-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgb(8 24 29 / 76%);
    box-shadow: 0 12px 30px rgb(0 0 0 / 18%);
    backdrop-filter: blur(18px);
}

.page-tabs a {
    padding: 8px 15px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 720;
    text-decoration: none;
    transition: color 160ms, background 160ms, transform 160ms;
}

.page-tabs a:active {
    transform: scale(0.97);
}

.page-tabs a.is-active {
    background: var(--surface-raised);
    color: var(--text);
    box-shadow: 0 4px 14px rgb(0 0 0 / 22%);
}

.page-header {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.dashboard-header--brand {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient(145deg, #5ee6d6, var(--blue-dark));
    color: #fff;
    box-shadow: 0 12px 30px rgb(5 110 104 / 30%);
}

.brand-mark--assessment {
    font-size: 1.35rem;
    font-weight: 800;
}

svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 2px;
    font-size: clamp(1.65rem, 7vw, 2.2rem);
    font-weight: 680;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

h2 {
    margin-bottom: 2px;
    font-size: 1.05rem;
}

p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 13px 14px;
    border-radius: var(--radius-md);
    animation: slide-in 300ms cubic-bezier(.2, .8, .2, 1) both;
}

.alert--success {
    background: var(--success-soft);
    color: var(--success);
}

.alert--error {
    background: var(--error-soft);
    color: var(--error);
}

.alert span {
    flex: 1;
    font-weight: 650;
}

.alert button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1.3rem;
}

.form-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: clamp(20px, 5vw, 32px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgb(10 26 31 / 92%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px) saturate(140%);
}

.field {
    display: grid;
    align-content: start;
    gap: 7px;
}

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

.field label,
.resolution legend {
    padding: 0;
    font-size: 0.76rem;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: 0;
    background: var(--surface);
    color: var(--text);
    transition: border-color 160ms, box-shadow 160ms, transform 160ms;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgb(45 212 191 / 14%);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #687184;
}

.field textarea {
    min-height: 112px;
    resize: vertical;
}

.error {
    color: var(--error);
    font-size: 0.7rem;
}

.resolution {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.resolution-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 7px;
}

.resolution-options label {
    cursor: pointer;
}

.resolution-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.resolution-options span {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    transition: border-color 160ms, background 160ms, color 160ms, transform 160ms;
}

.resolution-options strong {
    font-size: 1rem;
}

.resolution-options small {
    color: var(--muted);
    font-size: 0.68rem;
}

.resolution-options input:checked + span {
    border-color: var(--blue);
    background: var(--blue-soft);
    color: var(--blue);
    box-shadow: inset 0 0 0 1px var(--blue), 0 8px 20px rgb(6 94 90 / 12%);
}

.resolution-options input:focus-visible + span {
    box-shadow: 0 0 0 4px rgb(8 145 135 / 15%);
}

.resolution-options label:active span {
    transform: scale(0.98);
}

.submit-button {
    grid-column: 1 / -1;
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 2px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    font-weight: 720;
    box-shadow: 0 14px 32px rgb(8 119 112 / 32%);
    cursor: pointer;
    transition: transform 160ms, box-shadow 160ms;
}

.submit-button:active {
    transform: scale(0.985);
    box-shadow: 0 8px 18px rgb(8 145 135 / 22%);
}

.submit-button > span {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
}

.assessment-form {
    gap: 0;
}

.assessment-fields {
    display: grid;
}

.assessment-fields .submit-button {
    width: 100%;
}

.form-section {
    display: grid;
    gap: 18px;
    padding: 8px 0 28px;
}

.form-section + .form-section {
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.section-heading h2 {
    margin: 1px 0 3px;
    font-size: 1rem;
}

.section-number {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgb(45 212 191 / 30%);
    border-radius: 11px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.printer-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--border);
}

.printer-search {
    display: grid;
    gap: 10px;
}

.search-control {
    position: relative;
}

.search-control > span {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    color: var(--muted);
    font-size: 1.2rem;
    transform: translateY(-52%);
    pointer-events: none;
}

.search-control input {
    padding-left: 43px;
}

.field-hint {
    color: var(--muted);
    font-size: 0.68rem;
}

.search-results {
    display: grid;
    gap: 7px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #0c1017;
    box-shadow: 0 18px 40px rgb(0 0 0 / 32%);
}

.search-result {
    display: flex;
    width: 100%;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms, background 160ms, transform 160ms;
}

.search-result > span:first-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.search-result strong,
.search-result small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result strong {
    font-size: 0.77rem;
}

.search-result small {
    color: var(--muted);
    font-size: 0.69rem;
}

.search-result:active {
    border-color: var(--blue);
    background: var(--blue-soft);
    transform: scale(0.99);
}

.search-result__arrow {
    color: var(--blue);
    font-size: 1.35rem;
}

.search-results__empty {
    padding: 18px 14px;
    color: var(--muted);
    font-size: 0.76rem;
    text-align: center;
}

.selected-printer {
    display: grid;
    gap: 9px;
}

.selected-printer__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 760;
}

.selected-printer__heading button {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.68rem;
    cursor: pointer;
}

.printer-preview div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 13px 14px;
    background: var(--surface-soft);
}

.printer-preview small {
    color: var(--muted);
    font-size: 0.64rem;
}

.printer-preview strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.choice-fieldset {
    display: grid;
    gap: 9px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.choice-fieldset legend {
    padding: 0;
    font-size: 0.75rem;
    font-weight: 700;
}

.choice-grid {
    display: grid;
    gap: 9px;
}

.choice-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid--component {
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
}

.choice-card {
    position: relative;
    cursor: pointer;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card span {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 720;
    text-align: center;
    transition: border-color 160ms, background 160ms, color 160ms, transform 160ms;
}

.choice-card--large span {
    justify-content: flex-start;
    min-height: 54px;
    padding-left: 40px;
    text-align: left;
}

.choice-card--large span::before,
.choice-card--check span::before {
    position: absolute;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid var(--border-strong);
    content: "";
}

.choice-card--large span::before {
    left: 14px;
    border-radius: 50%;
}

.choice-card--check span {
    gap: 7px;
}

.choice-card--wide span {
    justify-content: flex-start;
    padding: 11px 13px;
    text-align: left;
}

.choice-card--check span::before {
    position: relative;
    flex: 0 0 17px;
    border-radius: 5px;
}

.choice-card input:checked + span {
    border-color: var(--blue);
    background: var(--blue-soft);
    color: #a8e9e1;
    box-shadow: inset 0 0 0 1px rgb(45 212 191 / 45%);
}

.choice-card--large input:checked + span::before {
    border: 5px solid var(--blue);
    background: var(--text);
}

.choice-card--check input:checked + span::before {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
    content: "✓";
    font-size: 0.7rem;
}

.choice-card input:focus-visible + span {
    box-shadow: 0 0 0 4px rgb(45 212 191 / 16%);
}

.choice-card:active span {
    transform: scale(0.98);
}

.photo-field {
    display: grid;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.photo-field__heading > div {
    display: grid;
    gap: 3px;
}

.photo-field__heading strong {
    font-size: 0.76rem;
}

.photo-field__heading small {
    color: var(--muted);
    font-size: 0.65rem;
}

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

.photo-action {
    position: relative;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color 160ms, background 160ms, transform 160ms;
}

.photo-action--camera {
    border-color: rgb(45 212 191 / 34%);
    background: var(--blue-soft);
    color: #b7eee8;
}

.photo-action input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.photo-action > span {
    color: var(--blue);
    font-size: 1.05rem;
}

.photo-action > strong {
    font-size: 0.72rem;
}

.photo-action:active {
    transform: scale(0.98);
    border-color: var(--blue);
}

.photo-action:focus-within {
    box-shadow: 0 0 0 4px rgb(45 212 191 / 15%);
}

.photo-preview {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
}

.photo-preview img {
    width: 92px;
    height: 72px;
    border-radius: 9px;
    object-fit: cover;
    background: #05070a;
}

.photo-preview > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.photo-preview strong,
.photo-preview small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-preview strong {
    font-size: 0.72rem;
}

.photo-preview small {
    color: var(--muted);
    font-size: 0.64rem;
}

.photo-preview button {
    justify-self: start;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--error);
    font-size: 0.66rem;
    cursor: pointer;
}

.component-inspection-list {
    display: grid;
    gap: 13px;
}

.component-inspection-card {
    display: grid;
    gap: 17px;
    padding: 17px;
    border: 1px solid var(--border);
    border-left: 3px solid rgb(45 212 191 / 72%);
    border-radius: 16px;
    background:
        linear-gradient(120deg, rgb(45 212 191 / 7%), transparent 36%),
        var(--surface-soft);
}

.component-inspection-card__heading {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border);
}

.component-inspection-card__heading > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgb(45 212 191 / 28%);
    border-radius: 11px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 0.64rem;
    font-weight: 820;
    letter-spacing: 0.04em;
}

.component-inspection-card__heading > div {
    display: grid;
    gap: 2px;
}

.component-inspection-card__heading h3 {
    margin: 0;
    font-size: 0.86rem;
}

.component-inspection-card__heading small {
    color: var(--muted);
    font-size: 0.64rem;
}

.empty-state {
    display: grid;
    justify-items: center;
    padding: 46px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgb(10 26 31 / 92%);
    text-align: center;
    box-shadow: var(--shadow);
}

.empty-state > span {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 15px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 1.4rem;
}

.empty-state h2 {
    margin-bottom: 5px;
}

.primary-link {
    margin-top: 20px;
    padding: 11px 16px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
}

.dashboard-shell {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
    padding: max(26px, env(safe-area-inset-top)) 0 max(54px, env(safe-area-inset-bottom));
}

.dashboard-topbar {
    display: flex;
    min-height: 38px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-topbar .back-link {
    margin: 8px 0 0;
}

.compact-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid rgb(45 212 191 / 30%);
    border-radius: 11px;
    background: var(--blue-soft);
    color: #b7eee8;
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
}

.dashboard-header {
    margin-bottom: 22px;
}

.dashboard-header h1 {
    margin-bottom: 7px;
}

.dashboard-header p {
    font-size: 0.86rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 14px;
}

.metric-card {
    display: grid;
    min-height: 134px;
    align-content: space-between;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgb(255 255 255 / 2%), transparent 55%),
        var(--surface);
    box-shadow: 0 18px 38px rgb(0 0 0 / 20%);
}

.metric-card--primary {
    border-color: rgb(45 212 191 / 34%);
    background:
        linear-gradient(145deg, rgb(45 212 191 / 17%), transparent 62%),
        var(--surface);
}

.metric-card > span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 680;
}

.metric-card > strong {
    margin: 8px 0 1px;
    font-size: 2rem;
    font-weight: 650;
    letter-spacing: -0.055em;
    line-height: 1;
}

.metric-card > strong.metric-card__text {
    font-size: 1.18rem;
    letter-spacing: -0.025em;
}

.metric-card > small {
    color: #747e91;
    font-size: 0.64rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.dashboard-panel {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgb(10 26 31 / 92%);
    box-shadow: 0 22px 52px rgb(0 0 0 / 22%);
}

.panel-heading {
    padding: 19px 20px 14px;
    border-bottom: 1px solid var(--border);
}

.panel-heading h2,
.records-heading h2 {
    margin: 0;
    font-size: 1rem;
}

.bar-chart {
    display: grid;
    gap: 13px;
    padding: 18px 20px 21px;
}

.bar-row {
    display: grid;
    gap: 6px;
}

.bar-row__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.68rem;
}

.bar-row__label span {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bar-row__label strong {
    font-size: 0.69rem;
}

.bar-row progress {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: var(--surface-soft);
    appearance: none;
    animation: chart-reveal 650ms cubic-bezier(.2, .8, .2, 1) both;
    transform-origin: left;
}

.bar-row progress::-webkit-progress-bar {
    border-radius: 999px;
    background: var(--surface-soft);
}

.bar-row progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-dark), #68eadb);
}

.bar-row progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-dark), #68eadb);
}

.records-panel {
    overflow: hidden;
}

.records-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
}

.records-heading p {
    margin-top: 5px;
}

.dashboard-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 170px auto auto;
    gap: 8px;
    padding: 0 20px 18px;
}

.dashboard-filters input,
.dashboard-filters select,
.dashboard-filters button,
.dashboard-filters > a {
    min-height: 43px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
    font-size: 0.72rem;
}

.dashboard-filters input,
.dashboard-filters select {
    width: 100%;
    padding: 9px 11px;
    outline: 0;
}

.dashboard-filters input:focus,
.dashboard-filters select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgb(45 212 191 / 12%);
}

.filter-search {
    position: relative;
}

.filter-search > span {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    color: var(--muted);
    font-size: 1rem;
    transform: translateY(-52%);
}

.filter-search input {
    padding-left: 35px;
}

.dashboard-filters button {
    padding: 8px 15px;
    border-color: var(--blue-dark);
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}

.dashboard-filters > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: var(--muted);
    text-decoration: none;
}

.assessment-list {
    border-top: 1px solid var(--border);
}

.assessment-record {
    border-bottom: 1px solid var(--border);
}

.assessment-record:last-child {
    border-bottom: 0;
}

.assessment-record summary {
    display: grid;
    grid-template-columns: 138px minmax(220px, 1.4fr) minmax(130px, .8fr) auto 18px;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    padding: 15px 20px;
    cursor: pointer;
    list-style: none;
    transition: background 160ms;
}

.assessment-record summary::-webkit-details-marker {
    display: none;
}

.assessment-record summary:active,
.assessment-record[open] summary {
    background: rgb(45 212 191 / 5%);
}

.record-date,
.record-identity,
.record-sector {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.record-date > small,
.record-identity > small,
.record-sector > small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-identity > strong,
.record-sector > strong {
    overflow: hidden;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-dot {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--success);
    font-size: 0.63rem;
    font-weight: 720;
}

.status-dot::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    content: "";
    box-shadow: 0 0 10px rgb(89 221 160 / 50%);
}

.record-badge {
    padding: 6px 9px;
    border: 1px solid rgb(45 212 191 / 25%);
    border-radius: 999px;
    background: var(--blue-soft);
    color: #a8e9e1;
    font-size: 0.63rem;
    font-weight: 750;
}

.record-chevron {
    color: var(--muted);
    font-size: 1rem;
    transition: transform 180ms;
}

.assessment-record[open] .record-chevron {
    transform: rotate(180deg);
}

.record-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 20px 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--border);
    animation: details-in 220ms ease both;
}

.record-details > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px 13px;
    background: var(--surface-soft);
}

.record-details small {
    color: var(--muted);
    font-size: 0.62rem;
}

.record-details strong {
    overflow-wrap: anywhere;
    font-size: 0.7rem;
}

.record-details > .record-photo {
    grid-column: 1 / -1;
}

.record-details > .record-report-link {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.record-component > span {
    color: var(--muted);
    font-size: 0.63rem;
    overflow-wrap: anywhere;
}

.record-report-link a {
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 740;
    text-decoration: none;
}

.record-photo > a {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 720;
    text-decoration: none;
}

.record-photo img {
    width: 112px;
    height: 82px;
    border: 1px solid var(--border);
    border-radius: 10px;
    object-fit: cover;
    background: #05070a;
}

.records-empty {
    display: grid;
    justify-items: center;
    padding: 48px 20px 54px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.records-empty > span {
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 1.5rem;
}

.records-empty h3 {
    margin: 0 0 4px;
    font-size: 0.9rem;
}

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.pagination a {
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
}

.pagination a:last-child {
    text-align: right;
}

.pagination strong {
    color: var(--muted);
    font-size: 0.66rem;
}

.report-shell {
    width: min(100% - 32px, 980px);
    margin: 0 auto;
    padding: max(26px, env(safe-area-inset-top)) 0 max(54px, env(safe-area-inset-bottom));
}

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

.report-search-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgb(45 212 191 / 8%), transparent 54%),
        var(--surface);
    box-shadow: 0 18px 42px rgb(0 0 0 / 22%);
}

.report-search-card > div:nth-child(2) {
    display: grid;
    align-content: center;
    gap: 3px;
}

.report-search-card label {
    font-size: 0.78rem;
    font-weight: 760;
}

.report-search-card p {
    font-size: 0.68rem;
}

.report-search-control {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.report-search-control input,
.report-search-control button {
    min-height: 46px;
    border-radius: 11px;
    font: inherit;
}

.report-search-control input {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    outline: 0;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 0.75rem;
}

.report-search-control input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgb(45 212 191 / 13%);
}

.report-search-control button {
    padding: 9px 14px;
    border: 1px solid var(--blue-dark);
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 750;
    cursor: pointer;
}

.report-alert {
    margin-top: 14px;
}

.match-panel {
    margin-top: 16px;
    overflow: hidden;
}

.printer-match-list {
    display: grid;
    border-top: 1px solid var(--border);
}

.printer-match-list a {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}

.printer-match-list a:last-child {
    border-bottom: 0;
}

.printer-match-list a > span:first-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.printer-match-list strong,
.printer-match-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.printer-match-list strong {
    font-size: 0.76rem;
}

.printer-match-list small,
.printer-match-list a > span:last-child {
    color: var(--muted);
    font-size: 0.66rem;
}

.report-results {
    margin-top: 24px;
}

.report-results__heading {
    margin-bottom: 13px;
}

.report-results__heading h2 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.full-report-list {
    display: grid;
    gap: 12px;
}

.full-report {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgb(10 26 31 / 94%);
    box-shadow: 0 20px 50px rgb(0 0 0 / 24%);
}

.full-report[open] {
    border-color: rgb(45 212 191 / 26%);
}

.full-report > summary {
    display: grid;
    grid-template-columns: 92px minmax(220px, 1fr) 190px 18px;
    align-items: center;
    gap: 16px;
    min-height: 86px;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
}

.full-report > summary::-webkit-details-marker {
    display: none;
}

.full-report__id,
.full-report__identity,
.full-report__date {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.full-report__id small,
.full-report__identity small,
.full-report__date small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.full-report__id strong {
    color: var(--blue);
    font-size: 1.3rem;
}

.full-report__identity strong,
.full-report__date strong {
    overflow: hidden;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.full-report[open] > summary {
    border-bottom: 1px solid var(--border);
    background: rgb(45 212 191 / 4%);
}

.full-report[open] .record-chevron {
    transform: rotate(180deg);
}

.full-report__body {
    display: grid;
    gap: 0;
}

.report-section {
    display: grid;
    gap: 13px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.report-section:last-child {
    border-bottom: 0;
}

.report-section > header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-section > header > span {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border-radius: 9px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 0.61rem;
    font-weight: 800;
}

.report-section h3 {
    margin: 0;
    font-size: 0.82rem;
}

.report-data-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--border);
}

.report-data-grid > div {
    display: grid;
    min-width: 0;
    gap: 4px;
    padding: 12px;
    background: var(--surface-soft);
}

.report-data-grid__wide {
    grid-column: span 2;
}

.report-data-grid dt,
.report-data-grid dd {
    margin: 0;
}

.report-data-grid dt {
    color: var(--muted);
    font-size: 0.61rem;
}

.report-data-grid dd {
    overflow-wrap: anywhere;
    font-size: 0.71rem;
    font-weight: 700;
}

.report-photo {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-soft);
    color: var(--text);
    text-decoration: none;
}

.report-photo img {
    width: 130px;
    height: 96px;
    border-radius: 9px;
    object-fit: cover;
    background: #05070a;
}

.report-photo > span {
    display: grid;
    gap: 4px;
}

.report-photo strong {
    font-size: 0.74rem;
}

.report-photo small {
    color: var(--blue);
    font-size: 0.65rem;
}

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

.report-component-card {
    padding: 13px;
    border: 1px solid var(--border);
    border-left: 3px solid rgb(45 212 191 / 58%);
    border-radius: 12px;
    background: var(--surface-soft);
}

.report-component-card h4 {
    margin: 0 0 10px;
    font-size: 0.74rem;
}

.report-component-card dl {
    display: grid;
    gap: 9px;
    margin: 0;
}

.report-component-card dl > div {
    display: grid;
    gap: 3px;
}

.report-component-card dt,
.report-component-card dd {
    margin: 0;
}

.report-component-card dt {
    color: var(--muted);
    font-size: 0.59rem;
}

.report-component-card dd {
    overflow-wrap: anywhere;
    font-size: 0.68rem;
    font-weight: 680;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@keyframes chart-reveal {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
}

@keyframes details-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(100% - 24px, 500px);
        padding-top: max(20px, env(safe-area-inset-top));
    }

    .page-header {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 11px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .page-header p {
        display: none;
    }

    .form-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
        border-radius: 22px;
    }

    .field--full,
    .submit-button {
        grid-column: auto;
    }

    .submit-button {
        position: sticky;
        bottom: max(12px, env(safe-area-inset-bottom));
        z-index: 4;
    }

    .form-section {
        gap: 16px;
        padding-bottom: 24px;
    }

    .form-section + .form-section {
        padding-top: 24px;
    }

    .printer-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .choice-grid--five,
    .choice-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .choice-grid--five .choice-card:last-child {
        grid-column: 1 / -1;
    }

    .choice-card span {
        min-height: 56px;
    }

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

    .dashboard-shell {
        width: min(100% - 20px, 560px);
        padding-top: max(18px, env(safe-area-inset-top));
    }

    .dashboard-header p {
        max-width: 300px;
    }

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

    .metric-card {
        min-height: 122px;
        padding: 14px;
        border-radius: 16px;
    }

    .metric-card > strong {
        font-size: 1.7rem;
    }

    .metric-card > strong.metric-card__text {
        font-size: 1rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-panel {
        border-radius: 18px;
    }

    .dashboard-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 14px 15px;
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .dashboard-filters button {
        grid-column: 1 / -1;
    }

    .records-heading {
        padding: 17px 14px;
    }

    .assessment-record summary {
        grid-template-columns: minmax(0, 1fr) auto 16px;
        gap: 8px;
        min-height: 100px;
        padding: 14px;
    }

    .record-date {
        grid-column: 1 / 2;
        grid-row: 1;
    }

    .record-identity {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .record-sector {
        display: none;
    }

    .record-badge {
        grid-column: 2;
        grid-row: 1;
    }

    .record-chevron {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .record-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0 14px 14px;
    }

    .report-shell {
        width: min(100% - 20px, 560px);
        padding-top: max(18px, env(safe-area-inset-top));
    }

    .report-search-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .report-search-control {
        grid-template-columns: 1fr;
    }

    .full-report > summary {
        grid-template-columns: 54px minmax(0, 1fr) 16px;
        gap: 10px;
        min-height: 104px;
        padding: 13px;
    }

    .full-report__id {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .full-report__identity {
        grid-column: 2;
        grid-row: 1;
    }

    .full-report__date {
        grid-column: 2;
        grid-row: 2;
    }

    .full-report > summary .record-chevron {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .report-section {
        padding: 16px 13px;
    }

    .report-data-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-data-grid__wide {
        grid-column: 1 / -1;
    }

    .report-components-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 380px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-card {
        min-height: 150px;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
