:root {
    color-scheme: dark;
    --ink: #edf3f4;
    --muted: #96a4aa;
    --faint: #66747b;
    --line: #233138;
    --line-strong: #35464e;
    --surface: #0f171b;
    --surface-soft: #152026;
    --canvas: #090e11;
    --dark: #070b0e;
    --dark-soft: #0c1418;
    --cyan: #66c6cb;
    --cyan-soft: #10272b;
    --blue: #8296e5;
    --blue-soft: #181c32;
    --green: #63ad91;
    --green-soft: #13261f;
    --coral: #cf8278;
    --coral-soft: #2b1a18;
    --shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
    --radius: 6px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-synthesis: none;
}

[hidden] {
    display: none !important;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    letter-spacing: 0;
}

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(27, 156, 164, 0.35);
    outline-offset: 2px;
}

.button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--ink);
    font-weight: 650;
    white-space: nowrap;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button-primary {
    background: #e8edef;
    border-color: #e8edef;
    color: #071014;
}

.button-primary:hover {
    background: #fff;
}

.button-secondary {
    background: #11181c;
    border-color: var(--line-strong);
}

.button-secondary:hover {
    border-color: #9dabb1;
}

.button-quiet {
    min-height: 36px;
    padding: 0 12px;
    color: var(--muted);
}

.button-quiet:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.button-danger {
    border-color: #e5c1bb;
    color: #9d4e45;
}

.field {
    display: grid;
    gap: 8px;
}

.field label,
.field-label {
    color: #c5ced2;
    font-size: 13px;
    font-weight: 650;
}

.optional {
    margin-left: 6px;
    color: var(--faint);
    font-weight: 400;
}

.required-mark {
    margin-left: 7px;
    color: #d59a92;
    font-size: 11px;
    font-weight: 500;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bot-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #0c1215;
    color: var(--ink);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
    min-height: 104px;
    resize: vertical;
    line-height: 1.7;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #9dabb1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(27, 156, 164, 0.1);
    outline: none;
}

.choice-combobox {
    position: relative;
    min-width: 0;
}

.field .choice-combobox > input {
    padding-right: 44px;
}

.choice-combobox-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    z-index: 2;
    width: 40px;
    height: 42px;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(77, 99, 107, 0.44);
    border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0;
    display: grid;
    place-items: center;
    background: #0c1215;
    color: var(--muted);
}

.choice-combobox-toggle:hover,
.choice-combobox-toggle:focus-visible,
.choice-combobox-toggle[aria-expanded="true"] {
    background: #111b1f;
    color: var(--cyan);
}

.choice-combobox-toggle:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -2px;
}

.choice-combobox-chevron {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 150ms ease;
}

.choice-combobox-toggle[aria-expanded="true"] .choice-combobox-chevron {
    transform: translateY(2px) rotate(225deg);
}

.choice-combobox-listbox {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    z-index: 90;
    max-height: min(260px, 42vh);
    padding: 4px;
    border: 1px solid #38525b;
    border-radius: 5px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0c1418;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

.choice-combobox.opens-up .choice-combobox-listbox {
    top: auto;
    bottom: calc(100% + 5px);
}

.choice-combobox-option {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: 3px;
    display: block;
    background: transparent;
    color: #b9c5c9;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
}

.choice-combobox-option:hover,
.choice-combobox-option:focus-visible,
.choice-combobox-option.is-active {
    outline: none;
    background: rgba(105, 196, 202, 0.11);
    color: var(--ink);
}

.choice-combobox-option[aria-selected="true"] {
    box-shadow: inset 2px 0 var(--cyan);
    color: var(--cyan);
}

.choice-combobox-empty {
    min-height: 36px;
    padding: 9px 10px;
    display: block;
    color: var(--faint);
    font-size: 11px;
}

.field .credential-file-input {
    padding: 5px 7px;
    color: var(--muted);
    font-size: 12px;
}

.credential-file-input::file-selector-button {
    min-height: 32px;
    margin-right: 10px;
    padding: 0 13px;
    border: 1px solid rgba(105, 196, 202, 0.34);
    border-radius: 4px;
    background: rgba(105, 196, 202, 0.08);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.credential-file-input::file-selector-button:hover {
    border-color: var(--cyan);
    background: rgba(105, 196, 202, 0.14);
}

.credential-code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    letter-spacing: 0;
    white-space: nowrap;
}

.credential-view-button {
    width: 100%;
    min-height: 44px;
}

.business-license-dialog {
    width: min(900px, calc(100vw - 32px));
}

.business-license-meta {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.business-license-meta > div {
    min-width: 0;
    padding: 13px 15px;
    background: #0c1215;
}

.business-license-meta span,
.business-license-meta strong {
    display: block;
}

.business-license-meta span {
    margin-bottom: 6px;
    color: var(--faint);
    font-size: 10px;
}

.business-license-meta strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    text-overflow: ellipsis;
}

.business-license-frame {
    display: grid;
    min-height: 360px;
    margin: 14px 0 0;
    place-items: center;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #070a0c;
}

.business-license-frame img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 66vh;
    object-fit: contain;
}

@media (max-width: 720px) {
    .business-license-meta {
        grid-template-columns: 1fr;
    }

    .business-license-frame {
        min-height: 240px;
    }
}

.field-help {
    color: var(--faint);
    font-size: 12px;
    line-height: 1.6;
}

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

.form-grid .span-2 {
    grid-column: 1 / -1;
}

.verify-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.verify-field .button {
    min-width: 112px;
}

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

.choice-card {
    min-height: 74px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.choice-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 14px;
}

.choice-card.is-selected {
    border-color: var(--cyan);
    background: var(--cyan-soft);
    color: #9edadd;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.choice-chip {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    color: #a0adb2;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.choice-chip:hover {
    border-color: #9eacb2;
}

.choice-chip.is-selected {
    border-color: #75bec2;
    background: var(--cyan-soft);
    color: #b7e9eb;
}

.choice-chip.is-selected::after {
    content: "\2713";
    margin-left: 7px;
    color: #8ce0e4;
    font-size: 10px;
}

.custom-entry {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.custom-entry input {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px dashed #34454d;
    border-radius: var(--radius);
    background: #0b1114;
    color: var(--ink);
}

.custom-entry input:focus {
    border-style: solid;
    border-color: var(--cyan);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 198, 203, 0.08);
}

.custom-entry .button {
    min-height: 40px;
}

.custom-entry-note {
    margin-top: 8px;
    color: var(--faint);
    font-size: 11px;
}

.check-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    line-height: 1.6;
}

.check-line input {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: var(--cyan);
}

.registration-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
}

.registration-shell-compact {
    grid-template-columns: 300px minmax(0, 1fr);
}

.registration-rail {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    background: var(--dark);
    color: #fff;
    overflow: hidden;
    border-right: 1px solid #172126;
}

.registration-rail::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.32;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(132, 211, 216, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(132, 211, 216, 0.08) 1px, transparent 1px);
    background-size: 72px 72px;
}

.registration-rail::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 18%;
    height: 1px;
    background: rgba(102, 198, 203, 0.16);
    animation: rail-scan 8s linear infinite;
    pointer-events: none;
}

@keyframes rail-scan {
    from { transform: translateY(-140px); opacity: 0; }
    18%, 82% { opacity: 1; }
    to { transform: translateY(72vh); opacity: 0; }
}

.rail-brand,
.rail-copy,
.step-nav,
.rail-foot {
    position: relative;
    z-index: 1;
}

.rail-brand {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.rail-copy {
    margin-top: 80px;
}

.rail-copy .rail-kicker {
    margin: 0 0 16px;
    color: #7fcfd4;
    font-size: 11px;
    font-weight: 700;
}

.rail-copy h1 {
    margin: 0;
    max-width: 190px;
    font-size: 28px;
    line-height: 1.3;
}

.rail-copy p {
    margin: 14px 0 0;
    color: #8f9ca2;
    font-size: 13px;
    line-height: 1.7;
}

.step-nav {
    margin-top: 50px;
    display: grid;
}

.step-item {
    position: relative;
    padding: 14px 0 14px 42px;
    color: #718087;
}

.step-item.is-preview-link {
    cursor: pointer;
}

.step-item.is-preview-link:hover strong {
    color: #d9e3e6;
}

.step-item.is-preview-link:hover::before {
    border-color: #5e9ea3;
}

.step-item::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 12px;
    width: 25px;
    height: 25px;
    border: 1px solid #354248;
    display: grid;
    place-items: center;
    color: #77858b;
    font-size: 10px;
}

.step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 37px;
    width: 1px;
    height: 18px;
    background: #293339;
}

.step-item strong {
    display: block;
    margin-bottom: 4px;
    color: #8c989e;
    font-size: 13px;
}

.step-item.is-active,
.step-item.is-complete {
    color: #a8b5ba;
}

.step-item.is-active::before,
.step-item.is-complete::before {
    border-color: #63bfc5;
    color: #a4e8eb;
}

.step-item.is-active strong,
.step-item.is-complete strong {
    color: #fff;
}

.rail-foot {
    margin-top: auto;
    color: #69777d;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.registration-main {
    position: relative;
    isolation: isolate;
    min-width: 0;
    background-color: var(--canvas);
    background-image:
        linear-gradient(135deg, rgba(61, 113, 116, 0.11) 0%, rgba(38, 73, 77, 0.035) 24%, transparent 46%),
        linear-gradient(rgba(143, 181, 188, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 181, 188, 0.032) 1px, transparent 1px);
    background-size: 100% 100%, 72px 72px, 72px 72px;
}

.registration-main::before,
.app-main::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 64px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(125, 219, 224, 0.16);
    box-shadow: 0 18px 48px rgba(70, 157, 164, 0.07);
    opacity: 0;
    pointer-events: none;
    animation: workspace-scan 18s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.registration-main::after,
.app-main::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 64px;
    bottom: 0;
    left: 17%;
    width: 58%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(81, 153, 157, 0.025) 24%,
        rgba(102, 198, 203, 0.105) 49%,
        rgba(135, 169, 178, 0.035) 68%,
        transparent 100%
    );
    clip-path: polygon(28% 0, 100% 0, 72% 100%, 0 100%);
    transform: translate3d(-10%, 0, 0);
    pointer-events: none;
    will-change: transform, opacity;
    animation: ambient-signal-drift 12s ease-in-out infinite alternate;
}

.registration-main::after {
    top: 70px;
}

.registration-main::before {
    top: 70px;
}

.registration-main > *,
.app-main > * {
    position: relative;
    z-index: 1;
}

@keyframes workspace-scan {
    0%, 8% {
        transform: translateY(0);
        opacity: 0;
    }
    16% {
        opacity: 0.7;
    }
    82% {
        opacity: 0.26;
    }
    92%, 100% {
        transform: translateY(calc(100vh - 72px));
        opacity: 0;
    }
}

@keyframes ambient-signal-drift {
    from {
        transform: translate3d(-10%, 0, 0);
        opacity: 0.55;
    }
    to {
        transform: translate3d(12%, 0, 0);
        opacity: 1;
    }
}

.registration-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    height: 70px;
    padding: 0 38px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(9, 15, 18, 0.9);
    backdrop-filter: blur(18px) saturate(125%);
}

.registration-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: var(--registration-progress, 33.333%);
    height: 1px;
    background: var(--cyan);
    transition: width 280ms ease;
}

.back-link {
    color: var(--muted);
    font-size: 13px;
}

.back-link:hover {
    color: var(--ink);
}

.registration-topbar span {
    color: var(--faint);
    font-size: 12px;
}

.registration-content {
    width: min(860px, calc(100% - 72px));
    margin: 0 auto;
    padding: 60px 0 100px;
}

.registration-content-compact {
    width: min(760px, calc(100% - 72px));
    padding-top: 48px;
}

.employment-choice-field select {
    max-width: 240px;
}

.worker-registration-details {
    min-width: 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.worker-registration-details:not([hidden]) {
    animation: worker-details-enter 220ms ease-out both;
}

.worker-details-heading {
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.worker-details-heading span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.worker-details-heading small {
    color: var(--faint);
    font-size: 10px;
}

.worker-details-grid {
    gap: 16px 20px;
}

.region-choice-control {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.region-choice-control .region-picker-trigger {
    min-height: 44px;
}

.compact-icon-button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    display: grid;
    place-items: center;
    background: #0c1215;
    color: var(--muted);
    font-size: 16px;
}

.compact-icon-button:hover,
.compact-icon-button:focus-visible,
.compact-icon-button[aria-pressed="true"] {
    border-color: #4a7d82;
    color: var(--cyan);
}

.region-custom-input {
    min-width: 0;
    flex: 1 1 auto;
}

@keyframes worker-details-enter {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.supplier-registration-compact {
    width: min(900px, calc(100% - 72px));
}

.region-picker {
    position: relative;
    z-index: 6;
    width: fit-content;
    max-width: 100%;
}

.region-picker-trigger {
    width: auto;
    min-width: 152px;
    max-width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #0c1215;
    color: var(--muted);
    font-size: 12px;
    text-align: left;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.region-picker-trigger:hover,
.region-picker-trigger[aria-expanded="true"] {
    border-color: #4a7d82;
    background: #101a1e;
    color: var(--ink);
}

.region-picker-trigger:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.region-picker-trigger:disabled {
    cursor: wait;
    opacity: 0.72;
}

.region-picker-trigger.has-value [data-region-value] {
    color: var(--ink);
}

.region-picker-trigger [data-region-value] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.region-picker-chevron {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 160ms ease;
}

.region-picker-trigger[aria-expanded="true"] .region-picker-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.region-picker-panel {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    z-index: 60;
    width: min(520px, calc(100vw - 48px));
    overflow: hidden;
    border: 1px solid #31454c;
    border-radius: 6px;
    background: #091014;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
}

.region-picker-head {
    min-height: 38px;
    padding: 4px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
}

.region-picker-head strong {
    grid-column: 2;
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.region-picker-head [data-region-back] {
    grid-column: 1;
    grid-row: 1;
}

.region-picker-head [data-region-clear] {
    grid-column: 3;
    grid-row: 1;
}

.region-picker-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--muted);
    font-size: 16px;
}

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

.region-picker-icon:hover,
.region-picker-icon:focus-visible {
    background: #142126;
    color: var(--ink);
}

.region-picker-options {
    max-height: 244px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.region-picker-options.is-entering {
    animation: region-options-enter 140ms ease-out both;
}

.region-picker-option {
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    background: #0c1215;
    color: var(--muted);
    font-size: 12px;
    text-align: left;
}

.region-picker-option:hover,
.region-picker-option:focus-visible {
    background: #142328;
    color: var(--ink);
}

.region-picker-option.is-selected {
    background: #183036;
    color: #9ee3e7;
}

@keyframes region-options-enter {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.taxonomy-disclosure {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(10, 17, 20, 0.84);
}

.taxonomy-disclosure-toggle {
    width: 100%;
    min-height: 68px;
    padding: 13px 16px;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    transition: background 160ms ease;
}

.taxonomy-disclosure-toggle:hover,
.taxonomy-disclosure-toggle[aria-expanded="true"] {
    background: rgba(28, 48, 54, 0.46);
}

.taxonomy-disclosure-toggle:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -2px;
}

.taxonomy-disclosure-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.taxonomy-disclosure-copy strong {
    font-size: 13px;
}

.taxonomy-disclosure-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taxonomy-disclosure-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    color: #8ccfd3;
    font-size: 11px;
}

.taxonomy-disclosure-chevron {
    width: 8px;
    height: 8px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 180ms ease;
}

.taxonomy-disclosure-toggle[aria-expanded="true"] .taxonomy-disclosure-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.taxonomy-picker {
    padding: 0 16px 4px;
    border-top: 1px solid var(--line);
}

.taxonomy-category-list {
    padding: 14px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.taxonomy-category-trigger {
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid #2b3b42;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0d1519;
    color: #9aa8ad;
    font-size: 11px;
    white-space: nowrap;
}

.taxonomy-category-trigger small {
    color: #5f7077;
    font-size: 9px;
}

.taxonomy-category-trigger [data-category-selected] {
    color: #82cdd1;
}

.taxonomy-category-trigger:hover,
.taxonomy-category-trigger[aria-expanded="true"] {
    border-color: #568e93;
    background: rgba(35, 72, 77, 0.32);
    color: #d7e4e6;
}

.taxonomy-category-trigger.is-custom {
    border-style: dashed;
    color: #83bcc0;
}

.taxonomy-category-trigger:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.taxonomy-category-panels {
    border-top: 1px solid var(--line);
}

.taxonomy-group {
    padding: 15px 0;
}

.taxonomy-group[hidden] {
    display: none !important;
}

.taxonomy-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.taxonomy-options .choice-chip {
    min-height: 34px;
    background: #0d1519;
    font-size: 11px;
}

.taxonomy-suggestions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.taxonomy-suggestions[hidden] {
    display: none !important;
}

.taxonomy-suggestion {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(105, 196, 202, 0.32);
    border-radius: 3px;
    background: rgba(29, 57, 62, 0.28);
    color: #a9dfe2;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.taxonomy-suggestion:hover,
.taxonomy-suggestion:focus-visible {
    border-color: var(--cyan);
    background: rgba(45, 94, 100, 0.42);
    color: #effafb;
}

.taxonomy-loading,
.taxonomy-empty {
    margin: 0;
    padding: 18px 0;
    color: var(--muted);
    font-size: 12px;
}

.taxonomy-custom-panel {
    display: grid;
    gap: 10px;
}

.taxonomy-custom-help {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.taxonomy-custom-entry {
    width: min(560px, 100%);
    margin-top: 0;
}

.taxonomy-custom-values:empty {
    display: none;
}

.registration-consent {
    margin-top: 24px;
}

.form-action-note {
    align-self: center;
    color: var(--faint);
    font-size: 12px;
}

[data-parttime-field][hidden] {
    display: none !important;
}

.worker-registration-details[hidden],
.region-picker[hidden],
.region-custom-input[hidden] {
    display: none !important;
}

.form-step[hidden] {
    display: none;
}

.form-step:not([hidden]) {
    animation: step-enter 240ms ease-out;
}

@keyframes step-enter {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    margin-bottom: 34px;
}

.step-header .eyebrow {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 750;
}

.step-header h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.3;
}

.step-header p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.form-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.form-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.form-section-heading h3 {
    margin: 0;
    font-size: 16px;
}

.form-section-heading p {
    margin: 0;
    color: var(--faint);
    font-size: 12px;
}

.form-actions {
    position: static;
    margin-top: 28px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: rgba(8, 12, 15, 0.96);
}

.form-actions .actions-right {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    max-width: min(360px, calc(100vw - 48px));
    padding: 13px 16px;
    border: 1px solid #b9d9d5;
    border-radius: var(--radius);
    background: #10221f;
    box-shadow: var(--shadow);
    color: #9bd7ca;
}

.toast.error {
    border-color: #e6beb7;
    background: #2b1917;
    color: #e2a098;
}

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 26px 18px 20px;
    display: flex;
    flex-direction: column;
    background: #070b0e;
    color: #fff;
    border-right: 1px solid #172126;
}

.app-brand {
    height: 44px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.brand-signal {
    width: 18px;
    height: 18px;
    border: 1px solid #579fa5;
    position: relative;
}

.brand-signal::before,
.brand-signal::after {
    content: "";
    position: absolute;
    background: #7fd1d6;
}

.brand-signal::before {
    width: 5px;
    height: 5px;
    left: 3px;
    top: 3px;
}

.brand-signal::after {
    width: 3px;
    height: 3px;
    right: 3px;
    bottom: 3px;
}

.sidebar-context {
    margin: 20px 10px 18px;
    padding: 14px 0;
    border-top: 1px solid #202a2f;
    border-bottom: 1px solid #202a2f;
}

.sidebar-context span {
    display: block;
    margin-bottom: 5px;
    color: #66767d;
    font-size: 10px;
}

.sidebar-context strong {
    display: block;
    overflow: hidden;
    color: #d8e0e3;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-nav {
    display: grid;
    gap: 4px;
}

.app-nav a {
    min-height: 40px;
    padding: 0 12px;
    border-left: 2px solid transparent;
    display: flex;
    align-items: center;
    color: #7e8c92;
    font-size: 13px;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.app-nav a:hover {
    background: #11191d;
    color: #dce5e8;
}

.app-nav a.is-active {
    border-left-color: #69c4ca;
    background: #131c20;
    color: #fff;
}

.sidebar-foot {
    margin-top: auto;
}

.sidebar-foot button {
    width: 100%;
    justify-content: flex-start;
    color: #718087;
}

.app-main {
    position: relative;
    isolation: isolate;
    min-width: 0;
    background-color: var(--canvas);
    background-image:
        linear-gradient(135deg, rgba(61, 113, 116, 0.11) 0%, rgba(38, 73, 77, 0.035) 24%, transparent 46%),
        linear-gradient(rgba(143, 181, 188, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 181, 188, 0.032) 1px, transparent 1px);
    background-size: 100% 100%, 72px 72px, 72px 72px;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 64px;
    padding: 0 32px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(9, 15, 18, 0.9);
    backdrop-filter: blur(18px) saturate(125%);
}

.page-identity {
    min-width: 0;
}

.page-identity strong {
    display: block;
    font-size: 15px;
}

.page-identity span {
    display: block;
    margin-top: 3px;
    color: var(--faint);
    font-size: 11px;
}

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

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ca388;
    box-shadow: 0 0 0 4px #10241e;
}

.app-content {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
    padding: 40px 0 70px;
}

.welcome-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.welcome-row .eyebrow {
    margin: 0 0 8px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 750;
}

.welcome-row h1 {
    margin: 0;
    font-size: 26px;
}

.welcome-row p {
    margin: 8px 0 0;
    color: var(--muted);
}

.metric-band {
    margin-bottom: 24px;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: rgba(15, 24, 28, 0.74);
}

.metric {
    min-width: 0;
    padding: 22px 24px;
    border-right: 1px solid var(--line);
}

.metric:last-child {
    border-right: 0;
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.metric strong {
    display: block;
    margin-top: 10px;
    font-size: 26px;
    line-height: 1;
}

.metric small {
    display: block;
    margin-top: 8px;
    color: var(--faint);
    font-size: 11px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
    gap: 20px;
}

.app-content.is-detail-view .dashboard-grid,
.admin-content.is-detail-view .admin-analytics,
.admin-content.is-detail-view .admin-detail-grid {
    grid-template-columns: minmax(0, 1fr);
}

.app-content.is-detail-view .dashboard-stack {
    display: contents;
}

.dashboard-stack {
    display: grid;
    align-content: start;
    gap: 20px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 27, 0.95);
    box-shadow: inset 0 1px 0 rgba(237, 243, 244, 0.018);
    scroll-margin-top: 88px;
}

#overview {
    scroll-margin-top: 76px;
}

.panel-header {
    min-height: 62px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-header h2 {
    margin: 0;
    font-size: 15px;
}

.panel-header p {
    margin: 5px 0 0;
    color: var(--faint);
    font-size: 11px;
}

.panel-body {
    padding: 20px;
}

.completion-block {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.completion-score {
    position: relative;
    width: 92px;
    height: 92px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    background: #0b1114;
    font-size: 21px;
    font-weight: 750;
    overflow: hidden;
}

.completion-score::before,
.completion-score::after {
    content: "";
    position: absolute;
    left: 12px;
    bottom: 12px;
    height: 2px;
}

.completion-score::before {
    right: 12px;
    background: #243138;
}

.completion-score::after {
    right: 12px;
    background: var(--cyan);
    transform: scaleX(var(--completion, 0));
    transform-origin: left center;
}

.completion-copy strong {
    display: block;
    margin-bottom: 7px;
}

.completion-copy p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #244247;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    background: #102226;
    color: #83cbd0;
    font-size: 11px;
}

.tag.blue {
    border-color: #2b3459;
    background: #181d31;
    color: #9eaceb;
}

.tag.neutral {
    border-color: var(--line);
    background: var(--surface-soft);
    color: var(--muted);
}

.capability-group + .capability-group {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.capability-group-title {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 11px;
}

.resource-bars {
    display: grid;
    gap: 14px;
}

.resource-bar-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 38px;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 11px;
}

.resource-bar {
    height: 6px;
    background: #202a30;
    overflow: hidden;
}

.resource-bar span {
    display: block;
    height: 100%;
    background: var(--cyan);
}

.resource-bar-row:nth-child(2) .resource-bar span {
    background: var(--blue);
}

.resource-bar-row:nth-child(3) .resource-bar span {
    background: var(--green);
}

.resource-bar-row:nth-child(4) .resource-bar span {
    background: var(--coral);
}

.empty-state {
    min-height: 238px;
    padding: 42px 28px;
    display: grid;
    place-items: center;
    text-align: center;
}

.empty-visual {
    width: 58px;
    height: 46px;
    margin: 0 auto 18px;
    border: 1px solid #46565e;
    position: relative;
}

.empty-visual::before,
.empty-visual::after {
    content: "";
    position: absolute;
    height: 1px;
    background: #46565e;
}

.empty-visual::before {
    width: 26px;
    left: -14px;
    top: 13px;
}

.empty-visual::after {
    width: 18px;
    right: -10px;
    bottom: 11px;
}

.empty-state h3 {
    margin: 0;
    font-size: 15px;
}

.empty-state p {
    max-width: 360px;
    margin: 9px auto 0;
    color: var(--faint);
    font-size: 12px;
    line-height: 1.7;
}

.detail-list {
    display: grid;
}

.detail-row {
    min-height: 48px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

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

.detail-row dt {
    color: var(--faint);
    font-size: 11px;
}

.detail-row dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #b6c1c5;
    font-size: 12px;
}

.activity-list {
    display: grid;
}

.activity-item {
    min-height: 58px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-marker {
    width: 8px;
    height: 8px;
    border: 2px solid #69b5ba;
    flex: 0 0 auto;
}

.activity-copy {
    min-width: 0;
}

.activity-copy strong {
    display: block;
    font-size: 12px;
}

.activity-copy span {
    display: block;
    margin-top: 4px;
    color: var(--faint);
    font-size: 10px;
}

dialog.profile-dialog {
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58);
    overflow: auto;
}

dialog.profile-dialog::backdrop {
    background: rgba(2, 5, 6, 0.76);
}

.embodied-profile-editor {
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.profile-coverage-list {
    margin-top: 8px;
    display: grid;
}

.profile-coverage-item {
    padding-block: 20px;
}

.profile-coverage-item .coverage-header {
    min-height: 36px;
    margin-bottom: 14px;
}

.profile-coverage-add {
    width: fit-content;
    margin-top: 8px;
}

.profile-coverage-status {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.profile-coverage-status.is-error {
    color: #d59a92;
}

.embodied-section[hidden] {
    display: none;
}

.embodied-section {
    border-top-color: rgba(102, 198, 203, 0.56);
}

.embodied-heading {
    align-items: flex-end;
}

.conditional-kicker {
    margin: 0 0 8px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 750;
}

.coverage-list {
    display: grid;
}

.coverage-block {
    min-width: 0;
    margin: 0;
    padding: 26px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.coverage-block:first-child {
    padding-top: 8px;
    border-top: 0;
}

.coverage-header {
    min-height: 44px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.coverage-header strong {
    color: #dbe5e8;
    font-size: 13px;
}

.coverage-remove {
    border-radius: 4px;
    color: #ac7770;
}

.coverage-remove[hidden] {
    display: none;
}

.coverage-block .field-help:not(:empty) {
    color: #d59a92;
}

.scene-chip-group {
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.scene-custom-entry {
    display: inline-grid;
    grid-template-columns: minmax(120px, 220px) 32px 32px;
    gap: 5px;
    align-items: center;
}

.scene-custom-entry[hidden] {
    display: none;
}

.scene-custom-entry input {
    width: min(220px, 46vw);
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid #3b535b;
    border-radius: 4px;
    background: #0b1215;
    color: var(--ink);
    font-size: 12px;
}

.scene-custom-entry input:focus {
    border-color: var(--cyan);
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 198, 203, 0.08);
}

.scene-custom-toggle {
    width: 34px;
    padding: 0;
    justify-content: center;
    color: #8fcdd1;
    font-size: 18px;
    line-height: 1;
}

.scene-custom-toggle[aria-expanded="true"] {
    border-color: var(--cyan);
    background: var(--cyan-soft);
    color: #c3eef0;
}

.scene-custom-action {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    display: grid;
    place-items: center;
    background: #0c1418;
    color: var(--muted);
    font-size: 15px;
}

.scene-custom-action:hover,
.scene-custom-action:focus-visible {
    border-color: #6fb7bb;
    color: var(--ink);
}

.coverage-add {
    margin-top: 4px;
}

.admin-content {
    width: min(1420px, calc(100% - 64px));
}

.admin-filter-bar {
    margin-bottom: 24px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.admin-filter-bar .field {
    width: min(240px, 100%);
}

.admin-filter-bar .field label {
    font-size: 11px;
}

.admin-filter-bar .field select {
    min-height: 38px;
    padding-block: 7px;
}

.admin-filter-note {
    margin: 0 0 10px auto;
    color: var(--faint);
    font-size: 11px;
}

.admin-analytics {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
    gap: 20px;
}

.analytics-panel {
    min-width: 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    background: rgba(15, 24, 28, 0.68);
}

.analytics-panel .panel-header {
    min-height: 68px;
    padding-inline: 0;
}

.analytics-panel .panel-header,
.analytics-panel .chart-shell {
    margin-inline: 20px;
}

.chart-shell {
    position: relative;
    min-height: 430px;
}

.resource-map,
.scene-chart {
    width: 100%;
    height: 430px;
}

.chart-status {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    color: var(--faint);
    font-size: 12px;
    pointer-events: none;
}

.chart-status[hidden] {
    display: none;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
    gap: 20px;
}

.admin-table-section {
    min-width: 0;
    border-top: 1px solid var(--line-strong);
}

.admin-table-section .panel-header {
    padding-inline: 0;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: #b7c2c6;
    font-size: 12px;
}

.admin-table-section .data-table {
    min-width: 620px;
}

@media (prefers-reduced-motion: reduce) {
    .region-picker-options.is-entering,
    .worker-registration-details:not([hidden]),
    .registration-rail::after,
    .registration-main::before,
    .app-main::before,
    .registration-main::after,
    .app-main::after {
        animation: none;
    }

    .registration-rail::after,
    .registration-main::before,
    .app-main::before {
        opacity: 0;
    }

    .registration-main::after,
    .app-main::after {
        transform: none;
        opacity: 0.45;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .registration-topbar,
    .app-topbar {
        background: var(--canvas);
        backdrop-filter: none;
    }

    .panel,
    .metric-band,
    .analytics-panel {
        background: var(--surface);
    }
}

.data-table th {
    padding: 12px 14px;
    color: var(--faint);
    font-size: 10px;
    font-weight: 650;
    text-align: left;
    white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child {
    padding-left: 0;
}

.data-table th:last-child,
.data-table td:last-child {
    padding-right: 0;
}

.data-table td {
    padding: 15px 14px;
    border-top: 1px solid var(--line);
    vertical-align: top;
}

.data-table tbody tr {
    transition: background 150ms ease;
}

.data-table tbody tr:hover {
    background: rgba(20, 28, 33, 0.62);
}

.data-table strong {
    display: block;
    color: var(--ink);
    font-size: 12px;
}

.data-table small {
    display: block;
    margin-top: 4px;
    color: var(--faint);
    font-size: 10px;
    line-height: 1.5;
}

.table-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.table-tag {
    padding: 3px 6px;
    border: 1px solid #29454a;
    border-radius: 3px;
    color: #8dcbd0;
    font-size: 10px;
    white-space: nowrap;
}

.count-cell {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.empty-table-cell {
    padding-block: 34px !important;
    color: var(--faint);
    text-align: center;
}

.dialog-header {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 64px;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
}

.dialog-header h2 {
    margin: 0;
    font-size: 16px;
}

.icon-button {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
}

.icon-button:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.dialog-body {
    padding: 24px 22px;
}

.dialog-actions {
    position: sticky;
    bottom: 0;
    padding: 14px 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--surface);
}

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

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

    .metric:nth-child(2) {
        border-right: 0;
    }

    .metric:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .admin-analytics,
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .registration-shell {
        grid-template-columns: 1fr;
    }

    .registration-main,
    .app-main {
        background-size: 56px 56px;
    }

    .registration-rail {
        position: relative;
        height: auto;
        min-height: 220px;
        padding: 24px;
    }

    .rail-copy {
        margin-top: 34px;
    }

    .rail-copy h1 {
        max-width: none;
        font-size: 24px;
    }

    .rail-copy p,
    .rail-foot {
        display: none;
    }

    .step-nav {
        margin-top: 26px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .step-item {
        min-width: 0;
        padding: 10px 4px 0 0;
        border-top: 1px solid #2a363b;
    }

    .step-item::before,
    .step-item::after,
    .step-item span {
        display: none;
    }

    .step-item strong {
        margin-top: 8px;
        font-size: 11px;
    }

    .registration-topbar {
        padding: 0 24px;
    }

    .registration-content {
        width: min(100% - 48px, 760px);
        padding-top: 42px;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: relative;
        height: auto;
        padding: 14px 18px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 18px;
    }

    .sidebar-context,
    .sidebar-foot {
        display: none;
    }

    .app-nav {
        display: flex;
        justify-content: flex-end;
        overflow-x: auto;
    }

    .app-nav a {
        min-width: max-content;
        border-left: 0;
        border-bottom: 2px solid transparent;
    }

    .app-nav a.is-active {
        border-left-color: transparent;
        border-bottom-color: #69c4ca;
    }

    .app-topbar {
        top: 72px;
    }
}

@media (max-width: 620px) {
    .region-picker-panel {
        width: min(420px, calc(100vw - 48px));
    }

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

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

    .form-grid .span-2 {
        grid-column: auto;
    }

    .employment-choice-field select {
        max-width: none;
    }

    .worker-details-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .registration-topbar span {
        display: none;
    }

    .registration-content {
        width: calc(100% - 32px);
        padding-top: 34px;
    }

    .step-header h2 {
        font-size: 25px;
    }

    .form-section-heading {
        display: block;
    }

    .form-section-heading p {
        margin-top: 7px;
    }

    .taxonomy-disclosure-toggle {
        min-height: 72px;
        padding-inline: 13px;
    }

    .taxonomy-disclosure-copy small {
        max-width: 190px;
    }

    .taxonomy-picker {
        padding-inline: 13px;
    }

    .taxonomy-category-trigger {
        min-height: 44px;
        padding-inline: 12px;
        font-size: 13px;
    }

    .taxonomy-options .choice-chip {
        min-height: 44px;
        padding-inline: 13px;
        font-size: 13px;
    }

    .form-actions {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .app-sidebar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .app-nav {
        justify-content: flex-start;
    }

    .app-topbar {
        top: 108px;
        height: 58px;
        padding: 0 16px;
    }

    .topbar-actions .status-copy,
    .topbar-actions .button {
        display: none;
    }

    .app-content {
        width: calc(100% - 32px);
        padding-top: 28px;
    }

    .welcome-row {
        display: block;
    }

    .welcome-row .button {
        width: 100%;
        margin-top: 18px;
    }

    .metric-band {
        grid-template-columns: 1fr 1fr;
    }

    .metric {
        padding: 18px 14px;
    }

    .metric strong {
        font-size: 22px;
    }

    .completion-block {
        grid-template-columns: 1fr;
    }

    .resource-bar-row {
        grid-template-columns: 70px minmax(0, 1fr) 34px;
    }

    .admin-content {
        width: calc(100% - 32px);
    }

    .admin-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-filter-bar .field {
        width: 100%;
    }

    .admin-filter-note {
        margin: 2px 0 0;
    }

    .analytics-panel .panel-header,
    .analytics-panel .chart-shell {
        margin-inline: 0;
    }

    .chart-shell,
    .resource-map,
    .scene-chart {
        min-height: 360px;
        height: 360px;
    }

    .coverage-fields {
        gap: 16px;
    }
}

/* Flagship collaboration operations workspace */
.admin-page {
    --admin-accent: #77cdd1;
    --admin-accent-soft: rgba(119, 205, 209, 0.09);
    --admin-panel: rgba(13, 21, 25, 0.84);
    --admin-panel-strong: rgba(16, 26, 31, 0.94);
}

.admin-shell {
    grid-template-columns: 242px minmax(0, 1fr);
}

.admin-sidebar {
    padding: 22px 16px 18px;
}

.admin-sidebar .app-brand {
    letter-spacing: 0.12em;
}

.admin-nav {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2c3b42 transparent;
}

.admin-nav a {
    min-height: 36px;
    font-size: 12px;
}

.admin-nav .nav-count {
    min-width: 19px;
    height: 18px;
    margin-left: auto;
    padding: 0 5px;
    border: 1px solid #5b492c;
    border-radius: 3px;
    display: inline-grid;
    place-items: center;
    background: rgba(85, 64, 31, 0.2);
    color: #d1aa6f;
    font: 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.admin-main {
    min-height: 100vh;
    background-color: #090f12;
    background-image:
        radial-gradient(circle at 78% 13%, rgba(68, 132, 138, 0.065), transparent 30%),
        linear-gradient(rgba(129, 173, 181, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 173, 181, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 80px 80px, 80px 80px;
}

.admin-main::after {
    left: 32%;
    width: 42%;
    opacity: 0.55;
}

.admin-topbar {
    height: 62px;
    padding-inline: 30px;
}

.admin-command {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0c1317;
    color: #88979d;
}

.admin-command:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.admin-command kbd {
    min-width: 18px;
    padding: 1px 4px;
    border: 1px solid #2d3a40;
    border-radius: 3px;
    color: #607078;
    font: 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.admin-workspace {
    width: min(1500px, calc(100% - 56px));
    padding: 32px 0 60px;
}

.admin-view {
    animation: admin-view-enter 220ms ease-out both;
}

@keyframes admin-view-enter {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.workspace-heading {
    min-height: 108px;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line-strong);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.workspace-heading.compact {
    min-height: 90px;
}

.workspace-heading .eyebrow,
.dialog-kicker {
    margin: 0 0 8px;
    color: var(--admin-accent);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.05em;
}

.workspace-heading h1 {
    margin: 0;
    color: #f2f6f7;
    font-size: 25px;
    line-height: 1.25;
}

.workspace-heading > div > p:last-child {
    max-width: 720px;
    margin: 8px 0 0;
    color: #819097;
    line-height: 1.65;
}

.heading-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-metrics {
    margin-bottom: 18px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-metrics .metric {
    padding: 19px 20px;
}

.admin-metrics .metric strong {
    font-size: 24px;
}

.workbench-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.78fr);
    gap: 18px;
}

.workbench-grid .span-2 {
    grid-row: span 2;
}

.ops-section,
.table-surface,
.email-composer,
.email-preview,
.analytics-panel {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--admin-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

.section-heading {
    min-height: 62px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: 14px;
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--faint);
    font-size: 11px;
}

.section-count {
    min-width: 28px;
    height: 24px;
    padding: 0 7px;
    border: 1px solid #2c4248;
    border-radius: 3px;
    display: grid;
    place-items: center;
    color: #91cfd2;
    font-size: 11px;
}

.text-action {
    min-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #83bfc3;
    font-size: 11px;
}

.text-action:hover {
    color: #c4f0f2;
}

.ops-list,
.timeline-list,
.notification-admin-list {
    display: grid;
}

.ops-item {
    min-height: 72px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
}

.ops-item:last-child,
.timeline-item:last-child {
    border-bottom: 0;
}

.ops-marker {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d2a76d;
    box-shadow: 0 0 0 4px rgba(210, 167, 109, 0.09);
}

.ops-item.is-info .ops-marker {
    background: var(--admin-accent);
    box-shadow: 0 0 0 4px rgba(119, 205, 209, 0.08);
}

.ops-copy strong,
.timeline-copy strong {
    display: block;
    color: #dce5e7;
    font-size: 12px;
}

.ops-copy span,
.timeline-copy span {
    display: block;
    margin-top: 5px;
    color: var(--faint);
    font-size: 11px;
    line-height: 1.5;
}

.ops-item .button {
    min-height: 32px;
    padding-inline: 11px;
    font-size: 11px;
}

.timeline-item {
    min-height: 60px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
}

.timeline-item time {
    color: #56666d;
    font-size: 10px;
}

.mini-chart {
    width: 100%;
    height: 245px;
}

.resource-toolbar {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 0.58fr)) auto;
    gap: 8px;
    background: rgba(11, 18, 22, 0.78);
}

.resource-toolbar[data-resource-toolbar="supplier"] {
    grid-template-columns: minmax(250px, 1.4fr) repeat(4, minmax(125px, 0.5fr)) auto;
}

.resource-toolbar input,
.resource-toolbar select {
    width: 100%;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid #2b3b42;
    border-radius: 4px;
    background: #0b1216;
    color: #b8c3c7;
}

.resource-toolbar input:focus,
.resource-toolbar select:focus {
    border-color: var(--admin-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(119, 205, 209, 0.08);
}

.search-field {
    display: block;
}

.onboarding-control-row {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.onboarding-control-row .segmented-control {
    margin-bottom: 0;
}

.onboarding-summary {
    min-height: 34px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--faint);
    font-size: 10px;
}

.onboarding-summary strong {
    color: #d9e5e7;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.onboarding-toolbar {
    margin-bottom: 12px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 180px auto;
    align-items: end;
    gap: 8px;
    background: rgba(11, 18, 22, 0.78);
}

.onboarding-toolbar label,
.project-search-field {
    display: grid;
    gap: 5px;
    color: var(--faint);
    font-size: 9px;
}

.onboarding-toolbar input,
.onboarding-toolbar select {
    width: 100%;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid #2b3b42;
    border-radius: 4px;
    background: #0b1216;
    color: #b8c3c7;
}

.onboarding-toolbar input:focus,
.onboarding-toolbar select:focus {
    border-color: var(--admin-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(119, 205, 209, 0.08);
}

.onboarding-toolbar .button {
    min-height: 38px;
}

.onboarding-table {
    min-width: 1080px !important;
}

.onboarding-table time {
    color: #85949a;
    font-size: 10px;
    white-space: nowrap;
}

.onboarding-table .row-action.is-approve {
    border-color: #285143;
    background: rgba(36, 82, 66, 0.18);
    color: #8ecab4;
}

.onboarding-table .row-action.is-reject {
    color: #bd817a;
}

.onboarding-table .row-action.is-reject:hover {
    border-color: #5d3431;
    background: rgba(92, 44, 40, 0.17);
    color: #e2a29a;
}

.onboarding-table .row-actions {
    max-width: 230px;
    flex-wrap: wrap;
}

.duplicate-match-copy {
    max-width: 260px;
    color: #a9b8bd !important;
    line-height: 1.55;
}

.status-badge.is-duplicate-pending {
    border-color: #6a4f2c;
    background: rgba(118, 78, 29, 0.2);
    color: #e0b36e;
}

.status-badge.is-duplicate-linked,
.status-badge.is-duplicate-separate {
    border-color: #31515a;
    background: rgba(42, 82, 91, 0.18);
    color: #8ccbd0;
}

.bulk-bar {
    min-height: 46px;
    margin-bottom: 12px;
    padding: 5px 10px 5px 13px;
    border-left: 2px solid var(--admin-accent);
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(20, 34, 39, 0.8);
    color: #9aa8ad;
    font-size: 11px;
}

.bulk-bar [data-selection-count] {
    margin-right: auto;
}

.compact-check {
    gap: 7px;
    font-size: 11px;
}

.compact-check input,
.select-cell input,
.target-option input {
    accent-color: var(--admin-accent);
}

.table-surface {
    overflow: hidden;
}

.table-surface .data-table {
    min-width: 920px;
}

.resource-table {
    min-width: 1120px !important;
}

.table-surface .data-table th,
.table-surface .data-table td {
    padding-inline: 14px;
}

.table-surface .data-table th:first-child,
.table-surface .data-table td:first-child {
    padding-left: 16px;
}

.table-surface .data-table th:last-child,
.table-surface .data-table td:last-child {
    padding-right: 16px;
}

.select-cell {
    width: 38px;
}

.table-footer {
    min-height: 44px;
    padding: 0 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--faint);
    font-size: 11px;
}

.profile-primary {
    display: flex;
    align-items: center;
    gap: 11px;
}

.profile-monogram {
    width: 32px;
    height: 32px;
    border: 1px solid #355159;
    border-radius: 4px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #102025;
    color: #8ed2d5;
    font-size: 11px;
    font-weight: 750;
}

.status-badge {
    min-height: 23px;
    padding: 0 7px;
    border: 1px solid #2b3a40;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    color: #92a0a6;
    font-size: 10px;
    white-space: nowrap;
}

.status-badge.is-active,
.status-badge.is-completed,
.status-badge.is-approved,
.status-badge.is-accepted {
    border-color: #285143;
    background: rgba(36, 82, 66, 0.2);
    color: #82c2aa;
}

.status-badge.is-pending_review,
.status-badge.is-pending,
.status-badge.is-scheduled {
    border-color: #5b492c;
    background: rgba(85, 64, 31, 0.19);
    color: #d1aa6f;
}

.status-badge.is-rejected,
.status-badge.is-disabled,
.status-badge.is-failed {
    border-color: #5d3431;
    background: rgba(92, 44, 40, 0.17);
    color: #d9948b;
}

.status-badge.is-ongoing,
.status-badge.is-sending,
.status-badge.is-published,
.status-badge.is-partial {
    border-color: #2d4f59;
    background: rgba(36, 80, 93, 0.18);
    color: #87c6cf;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.row-action {
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: #829197;
    font-size: 10px;
    white-space: nowrap;
}

.row-action:hover {
    border-color: #304149;
    background: #111b20;
    color: #e4ecee;
}

.row-action.is-danger {
    color: #c98981;
}

.row-action.is-danger:hover {
    border-color: rgba(187, 103, 93, 0.58);
    background: rgba(111, 47, 40, 0.18);
    color: #efb3aa;
}

.button:disabled,
.row-action:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.rating-value {
    color: #d7c29b;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.map-toolbar {
    grid-template-columns: 180px 220px auto minmax(220px, 1fr);
    align-items: center;
}

.toolbar-summary {
    justify-self: end;
    color: var(--faint);
    font-size: 11px;
}

.analytics-layout,
.capability-layout {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.82fr);
    gap: 18px;
}

.analytics-panel .section-heading {
    padding-inline: 18px;
}

.chart-shell.small,
.chart-shell.small .scene-chart {
    min-height: 430px;
    height: 430px;
}

.capability-pie,
.capability-tree {
    width: 100%;
    min-height: 430px;
    height: 430px;
}

.segmented-control {
    width: max-content;
    margin-bottom: 14px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 5px;
    display: flex;
    background: #0a1115;
}

.segmented-control button {
    min-height: 32px;
    padding: 0 13px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #77868c;
    font-size: 11px;
}

.segmented-control button.is-active {
    background: #18252a;
    color: #e8f0f2;
}

.rank-list {
    padding: 8px 18px 16px;
    display: grid;
}

.rank-row {
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 34px minmax(120px, 0.55fr) minmax(180px, 1fr) 54px;
    gap: 14px;
    align-items: center;
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-index {
    color: #56666c;
    font: 10px ui-monospace, SFMono-Regular, Consolas, monospace;
}

.rank-track {
    height: 4px;
    background: #202c31;
}

.rank-track span {
    display: block;
    height: 100%;
    background: #6cbac0;
}

.project-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(235px, 1fr));
    gap: 12px;
    align-items: start;
}

.project-column {
    min-width: 0;
    border-top: 2px solid #34464e;
    background: rgba(11, 18, 22, 0.58);
}

.project-column > header {
    min-height: 54px;
    padding: 12px 13px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-column > header strong {
    font-size: 12px;
}

.project-column > header span {
    color: var(--faint);
    font-size: 10px;
}

.project-list {
    min-height: 220px;
    padding: 8px;
    display: grid;
    align-content: start;
    gap: 8px;
}

.project-item {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(17, 27, 32, 0.9);
}

.project-item h3 {
    margin: 8px 0 6px;
    font-size: 12px;
    line-height: 1.45;
}

.project-item p {
    min-height: 32px;
    margin: 0 0 10px;
    display: -webkit-box;
    overflow: hidden;
    color: #738188;
    font-size: 9px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.project-meta {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #5f6f76;
    font-size: 9px;
}

.project-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.project-management-view .workspace-heading {
    min-height: 80px;
    margin-bottom: 18px;
    padding-bottom: 17px;
}

.project-management-view .workspace-heading h1 {
    font-size: 22px;
}

.project-management-view .workspace-heading > div > p:last-child {
    margin-top: 6px;
    font-size: 11px;
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.project-card-top > span:last-child {
    color: var(--faint);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.project-actions .row-action.is-primary {
    border-color: #355b62;
    background: rgba(46, 91, 98, 0.2);
    color: #9bd8dc;
}

.project-actions .row-action.is-danger {
    margin-left: auto;
    color: #a87872;
}

.project-actions .row-action.is-danger:hover {
    border-color: #65413d;
    background: rgba(91, 45, 40, 0.16);
    color: #d5a49e;
}

.draft-note {
    margin: 2px 0 0;
    padding: 11px 12px;
    border-left: 2px solid var(--admin-accent);
    background: rgba(30, 57, 62, 0.2);
    color: #829198;
    font-size: 11px;
    line-height: 1.6;
}

dialog.resource-publish-dialog {
    width: min(980px, calc(100vw - 32px));
}

.publish-dialog-body {
    display: grid;
    gap: 16px;
}

.publish-project-summary {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    display: grid;
    grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.25fr);
    gap: 18px;
    background: #0b1216;
}

.publish-project-summary div {
    min-width: 0;
}

.publish-project-summary span,
.publish-project-summary p {
    margin: 0 0 5px;
    color: var(--faint);
    font-size: 9px;
}

.publish-project-summary > div > span {
    display: block;
}

.publish-project-summary strong {
    color: #e1e8ea;
    font-size: 12px;
}

.project-publish-settings {
    display: grid;
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
    align-items: end;
    gap: 16px;
}

.project-publish-settings .check-line {
    min-height: 38px;
    margin: 0;
}

.resource-matcher {
    min-width: 0;
    border-top: 1px solid var(--line-strong);
    padding-top: 15px;
}

.resource-matcher > header {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.resource-matcher h3 {
    margin: 0;
    color: #e3eaec;
    font-size: 13px;
}

.resource-matcher header p {
    margin: 5px 0 0;
    color: var(--faint);
    font-size: 10px;
}

#projectRecipientCount {
    color: var(--admin-accent);
    font-size: 11px;
    white-space: nowrap;
}

.project-resource-toolbar {
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: minmax(250px, 1.35fr) repeat(3, minmax(135px, 0.65fr));
    gap: 7px;
}

.project-resource-toolbar label:not(.search-field) {
    display: grid;
    gap: 5px;
    color: var(--faint);
    font-size: 9px;
}

.project-resource-toolbar input,
.project-resource-toolbar select {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #293940;
    border-radius: 4px;
    background: #091015;
    color: #b9c4c8;
    font-size: 11px;
}

.project-resource-toolbar input:focus,
.project-resource-toolbar select:focus {
    border-color: var(--admin-accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(119, 205, 209, 0.08);
}

.resource-picker-actions {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.resource-picker-actions > span {
    margin-right: auto;
    color: var(--faint);
    font-size: 9px;
}

.project-resource-picker {
    max-height: 360px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    overflow-y: auto;
    background: #081014;
}

.resource-picker-group + .resource-picker-group {
    border-top: 1px solid var(--line-strong);
}

.resource-picker-group > header {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 34px;
    padding: 0 11px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0d161a;
    color: #9aa8ad;
    font-size: 10px;
}

.resource-picker-group > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-resource-option {
    min-width: 0;
    min-height: 72px;
    padding: 10px 11px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: start;
    gap: 9px;
    cursor: pointer;
    transition: background 150ms ease;
}

.project-resource-option:hover {
    background: #101b20;
}

.project-resource-option.is-disabled {
    opacity: 0.52;
    cursor: default;
}

.project-resource-option input {
    margin-top: 2px;
    accent-color: var(--admin-accent);
}

.resource-option-main {
    min-width: 0;
}

.resource-option-main > strong,
.resource-option-main > small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-option-main > strong {
    color: #cdd7da;
    font-size: 11px;
}

.resource-option-main > small {
    margin-top: 4px;
    color: var(--faint);
    font-size: 9px;
}

.resource-option-tags {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.resource-option-tags .table-tag {
    padding: 2px 5px;
    font-size: 8px;
}

.resource-option-type {
    color: #617178;
    font-size: 9px;
}

.delete-project-copy {
    margin: 0;
    color: #9ba8ad;
    font-size: 12px;
    line-height: 1.8;
}

.delete-project-copy strong {
    color: #e0e7e9;
}

.email-layout {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
}

.email-composer {
    padding: 20px;
}

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

.composer-grid .span-2,
.dialog-form-grid .span-2,
.score-grid.span-2 {
    grid-column: 1 / -1;
}

.composer-grid textarea {
    min-height: 230px;
}

.email-recipient-field[hidden] {
    display: none !important;
}

.email-recipient-heading {
    margin-bottom: 9px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.email-recipient-heading label,
.email-recipient-heading .field-help {
    display: block;
}

.email-recipient-heading strong {
    flex: 0 0 auto;
    color: var(--cyan);
    font-size: 11px;
}

.email-recipient-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(130px, 0.34fr) auto auto;
    gap: 8px;
    align-items: end;
}

.email-recipient-toolbar label > span {
    display: block;
    margin-bottom: 6px;
    color: var(--faint);
    font-size: 9px;
}

.email-recipient-toolbar .button {
    min-height: 42px;
    padding-inline: 13px;
    white-space: nowrap;
}

.email-recipient-results {
    min-height: 76px;
    max-height: 286px;
    margin-top: 9px;
    overflow: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.email-recipient-result-meta,
.email-recipient-empty {
    margin: 0;
    padding: 9px 2px;
    color: var(--faint);
    font-size: 9px;
}

.email-recipient-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.email-recipient-option {
    position: relative;
    min-width: 0;
    min-height: 78px;
    padding: 12px 10px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: start;
    cursor: pointer;
}

.email-recipient-option:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.email-recipient-option:hover,
.email-recipient-option.is-selected {
    background: rgba(36, 71, 76, 0.24);
}

.email-recipient-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.email-recipient-check {
    width: 14px;
    height: 14px;
    margin-top: 1px;
    border: 1px solid #52656c;
    display: grid;
    place-items: center;
}

.email-recipient-option input:checked + .email-recipient-check {
    border-color: var(--cyan);
    background: var(--cyan);
}

.email-recipient-option input:checked + .email-recipient-check::after {
    width: 6px;
    height: 3px;
    border-left: 1.5px solid #071013;
    border-bottom: 1.5px solid #071013;
    content: "";
    transform: rotate(-45deg) translateY(-1px);
}

.email-recipient-copy {
    min-width: 0;
}

.email-recipient-copy strong,
.email-recipient-copy small {
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-recipient-copy strong {
    font-size: 11px;
}

.email-recipient-copy small {
    margin-top: 4px;
    color: var(--faint);
    font-size: 9px;
}

.email-recipient-tags {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.email-recipient-tags i {
    padding: 2px 5px;
    border: 1px solid #26383e;
    color: #7fa3a8;
    font-size: 8px;
    font-style: normal;
}

.email-recipient-option > em {
    color: #668087;
    font-size: 8px;
    font-style: normal;
}

.composer-actions {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.composer-actions > span {
    margin-right: auto;
    color: var(--faint);
    font-size: 11px;
}

.email-preview {
    padding: 16px;
    align-self: start;
    position: sticky;
    top: 82px;
}

.preview-label {
    margin: 0 0 12px;
    color: #697980;
    font-size: 10px;
}

.mail-sheet {
    min-height: 520px;
    border: 1px solid #d7dddf;
    background: #f5f7f7;
    color: #11171a;
}

.mail-sheet header {
    padding: 22px;
    border-bottom: 1px solid #e1e5e7;
    background: #11171a;
    color: #fff;
}

.mail-sheet header strong,
.mail-sheet header span {
    display: block;
}

.mail-sheet header span {
    margin-top: 4px;
    color: #9da8ad;
    font-size: 10px;
}

.mail-sheet article {
    min-height: 370px;
    padding: 24px 22px;
}

.mail-sheet article h2 {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.45;
}

.mail-sheet article div {
    color: #384349;
    font-size: 12px;
    line-height: 1.9;
    white-space: pre-wrap;
}

.mail-sheet footer {
    padding: 15px 22px;
    border-top: 1px solid #e1e5e7;
    color: #889399;
    font-size: 8px;
    letter-spacing: 0.08em;
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.attachment-pill {
    padding: 4px 7px;
    border: 1px solid #2b3e45;
    border-radius: 3px;
    color: #90a0a6;
    font-size: 10px;
}

.campaign-history {
    margin-top: 18px;
}

.notification-admin-list {
    border-top: 1px solid var(--line-strong);
}

.notification-admin-item {
    min-height: 72px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr) 150px;
    gap: 18px;
    align-items: center;
}

.notification-admin-item strong {
    display: block;
    font-size: 12px;
}

.notification-admin-item p {
    margin: 4px 0 0;
    color: #718087;
    font-size: 11px;
}

.notification-admin-item time {
    justify-self: end;
    color: #5c6c73;
    font-size: 10px;
}

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

.taxonomy-group {
    min-width: 0;
    border-top: 1px solid var(--line-strong);
    padding: 16px 0 4px;
}

.taxonomy-group > header {
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.taxonomy-group h2 {
    margin: 0;
    font-size: 14px;
}

.taxonomy-editor {
    width: 100%;
    min-height: 118px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(11, 18, 22, 0.86);
    color: #b7c2c6;
    line-height: 1.8;
    resize: vertical;
}

.admin-dialog {
    color: var(--ink);
}

.admin-dialog.wide {
    width: min(860px, calc(100vw - 32px));
}

.admin-dialog .dialog-header > div {
    padding: 12px 0;
}

.admin-dialog .dialog-header .dialog-kicker {
    margin-bottom: 4px;
}

.profile-summary {
    margin-bottom: 20px;
    padding: 14px;
    border-left: 2px solid var(--admin-accent);
    background: #101a1f;
}

.profile-summary strong,
.profile-summary span {
    display: block;
}

.profile-summary span {
    margin-top: 5px;
    color: var(--faint);
    font-size: 11px;
}

.profile-section-title {
    margin: 22px 0 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.target-picker {
    max-height: 190px;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow-y: auto;
    background: #0b1216;
}

.target-option {
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a6b2b6;
    font-size: 11px;
}

.target-option:hover {
    border-color: #304249;
    background: #111c21;
}

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

.score-grid label {
    display: grid;
    gap: 7px;
    color: #aeb9bd;
    font-size: 11px;
}

.score-grid input {
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: #0b1216;
    color: var(--ink);
}

.empty-inline {
    min-height: 160px;
    padding: 32px;
    display: grid;
    place-items: center;
    color: var(--faint);
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1280px) {
    .admin-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .resource-toolbar,
    .resource-toolbar[data-resource-toolbar="supplier"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .search-field { grid-column: span 2; }
    .project-board { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
    .admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-metrics .metric:nth-child(3) { border-right: 0; }
}

@media (max-width: 980px) {
    .admin-page,
    .admin-shell { width: 100%; max-width: 100vw; overflow-x: hidden; }
    .admin-shell { grid-template-columns: minmax(0, 1fr); }
    .admin-sidebar { position: relative; width: 100%; min-width: 0; max-width: 100vw; height: auto; display: block; overflow: hidden; }
    .admin-sidebar .sidebar-context,
    .admin-sidebar .sidebar-foot { display: none; }
    .admin-nav { width: 100%; min-width: 0; max-width: 100%; margin-top: 8px; display: flex; overflow-x: auto; overscroll-behavior-x: contain; }
    .admin-nav a { min-width: max-content; border-left: 0; border-bottom: 2px solid transparent; }
    .admin-nav a.is-active { border-bottom-color: var(--admin-accent); border-left-color: transparent; }
    .admin-main { width: 100%; min-width: 0; max-width: 100vw; overflow-x: hidden; }
    .admin-topbar { top: 104px; max-width: 100vw; }
    .workbench-grid,
    .analytics-layout,
    .capability-layout,
    .email-layout { grid-template-columns: 1fr; }
    .workbench-grid .span-2 { grid-row: auto; }
    .email-preview { position: static; }
    .mail-sheet { min-height: 420px; }
    .mail-sheet article { min-height: 270px; }
}

@media (max-width: 680px) {
    .admin-topbar { top: 104px; padding-inline: 16px; }
    .admin-command span:nth-child(2),
    .admin-command kbd,
    .admin-topbar .status-copy { display: none; }
    .admin-workspace { width: calc(100% - 28px); padding-top: 24px; }
    .workspace-heading { min-height: 0; display: block; }
    .workspace-heading h1 { font-size: 22px; }
    .heading-actions { margin-top: 18px; }
    .heading-actions .button { flex: 1; }
    .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-metrics .metric { border-bottom: 1px solid var(--line); }
    .resource-toolbar,
    .resource-toolbar[data-resource-toolbar="supplier"],
    .map-toolbar,
    .onboarding-toolbar { grid-template-columns: 1fr; }
    .search-field { grid-column: auto; }
    .toolbar-summary { justify-self: start; }
    .onboarding-control-row { align-items: flex-start; flex-direction: column; }
    .bulk-bar { overflow-x: auto; }
    .project-board,
    .taxonomy-grid { grid-template-columns: 1fr; }
    .composer-grid,
    .dialog-form-grid { grid-template-columns: 1fr; }
    .composer-grid .span-2,
    .dialog-form-grid .span-2,
    .score-grid.span-2 { grid-column: auto; }
    .composer-actions { align-items: stretch; flex-direction: column; }
    .composer-actions > span { margin: 0 0 5px; }
    .target-picker,
    .score-grid { grid-template-columns: 1fr 1fr; }
    .publish-project-summary,
    .project-publish-settings,
    .project-resource-toolbar,
    .resource-picker-group > div { grid-template-columns: 1fr; }
    .resource-matcher > header { align-items: flex-start; flex-direction: column; }
    .project-resource-picker { max-height: 420px; }
    .project-resource-option { border-right: 0; }
    .notification-admin-item { grid-template-columns: 1fr; gap: 6px; }
    .notification-admin-item time { justify-self: start; }
}

/* Role workspaces: project, invitation and notification closure */
.role-card-list,
.role-invitation-list,
.role-record-list {
    min-height: 0;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    text-align: left;
}

.role-project-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(10, 17, 21, 0.88);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.role-project-card:hover {
    border-color: #36545b;
    background: rgba(14, 24, 29, 0.96);
    transform: translateY(-1px);
}

.role-project-heading,
.role-project-card footer,
.role-project-card dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.role-project-heading > span {
    color: var(--faint);
    font-size: 10px;
}

.role-project-card h3 {
    margin: 17px 0 8px;
    font-size: 15px;
}

.role-project-card > p {
    min-height: 38px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.75;
}

.role-project-tags {
    min-height: 30px;
    margin: 14px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.role-project-tags span {
    padding: 5px 7px;
    border: 1px solid #283c43;
    border-radius: 3px;
    color: #8cb7bd;
    font-size: 9px;
}

.role-project-card dl {
    margin: 0;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.role-project-card dl > div + div { margin-top: 7px; }
.role-project-card dt { color: var(--faint); font-size: 9px; }
.role-project-card dd { margin: 0; color: #aab7bb; font-size: 10px; }
.role-project-card footer { min-height: 40px; padding-top: 12px; }
.role-action { min-height: 34px; padding-inline: 14px; }

.role-status {
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid #35434a;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    color: #a7b4b8;
    font-size: 9px;
}

.role-status-published,
.role-status-accepted,
.role-status-approved,
.role-status-ongoing,
.role-status-confirmed {
    border-color: #326267;
    background: rgba(32, 83, 87, 0.16);
    color: #80c9cd;
}

.role-status-rejected,
.role-status-cancelled,
.role-status-ended,
.role-status-archived { color: #7c898e; }
.role-status-paused,
.role-status-pending { border-color: #4e4a35; color: #bbb383; }

.role-inline-note {
    color: var(--faint);
    font-size: 10px;
}

.role-invitation-list,
.role-record-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.role-invitation-item,
.role-record-item {
    min-width: 0;
    padding: 18px 2px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.role-invitation-item:last-child,
.role-record-item:last-child { border-bottom: 0; }
.role-item-label { color: var(--cyan); font-size: 9px; font-weight: 700; }
.role-invitation-item h3,
.role-record-item h3 { margin: 7px 0; font-size: 14px; }
.role-invitation-item p,
.role-record-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.role-invitation-item time,
.role-record-item > div > span { display: block; margin-top: 8px; color: var(--faint); font-size: 9px; }
.role-item-actions { display: flex; align-items: center; gap: 8px; }
.role-record-item > div:last-child { display: grid; justify-items: end; gap: 8px; }
.role-record-item small { color: var(--faint); font-size: 9px; }

.role-notification-list {
    min-height: 180px;
    padding-block: 4px;
}

.role-notification-list > .empty-visual { display: none; }

.role-notification-item {
    min-height: 76px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.role-notification-item:last-child { border-bottom: 0; }
.role-notification-signal { width: 5px; height: 5px; margin-top: 6px; border-radius: 50%; background: #39464b; }
.role-notification-item.is-unread .role-notification-signal { background: var(--cyan); box-shadow: 0 0 0 4px rgba(105, 196, 202, 0.08); }
.role-notification-item h3 { margin: 0; font-size: 12px; }
.role-notification-item p { margin: 6px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.role-notification-item time { color: var(--faint); font-size: 9px; }

.role-overview-feed { min-height: 190px; padding-block: 6px; }
.role-overview-item {
    width: 100%;
    min-height: 62px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.role-overview-item > span { width: 5px; height: 5px; background: var(--cyan); }
.role-overview-item strong,
.role-overview-item small { display: block; }
.role-overview-item strong { font-size: 11px; }
.role-overview-item small { margin-top: 5px; overflow: hidden; color: var(--faint); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.role-overview-item b { color: #52666d; font-size: 12px; }
.role-overview-item:hover strong { color: var(--cyan); }
.role-overview-clear { min-height: 174px; display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; }
.role-overview-clear > span { width: 9px; height: 9px; border: 2px solid #5aa4a9; }
.role-overview-clear strong { display: block; font-size: 12px; }
.role-overview-clear p { margin: 6px 0 0; color: var(--faint); font-size: 10px; }

.field-hint {
    display: block;
    margin-top: 7px;
    color: var(--faint);
    font-size: 10px;
    line-height: 1.6;
}

.embodied-profile-editor {
    padding-top: 16px;
    border-top: 1px solid rgba(105, 196, 202, 0.32);
}

.verification-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 8px;
}

.verification-row .button {
    min-height: 46px;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .dashboard-shell .app-topbar { position: relative; top: auto; }
    .role-card-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
    .role-card-list,
    .role-invitation-list,
    .role-record-list { padding: 12px; }
    .role-invitation-item,
    .role-record-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .role-item-actions { flex-wrap: wrap; }
    .role-record-item > div:last-child { justify-items: start; }
    .role-notification-item { grid-template-columns: 8px minmax(0, 1fr); }
    .role-notification-item > .button,
    .role-notification-item > .role-inline-note { grid-column: 2; justify-self: start; }
    .verification-row { grid-template-columns: minmax(0, 1fr); }
    .email-recipient-toolbar,
    .email-recipient-list { grid-template-columns: minmax(0, 1fr); }
    .email-recipient-option:nth-child(odd) { border-right: 0; }
}
