/* Neutral foundations. Brand colors are accents, never large tinted surfaces. */
:root {
    --brand-primary: #18181b;
    --brand-primary-action: #18181b;
    --brand-primary-text: #ffffff;
    --brand-accent: #f4f4f5;
    --brand-accent-text: #18181b;
    --page-background: #ffffff;
    --page-foreground: #18181b;
    --color-ink: #18181b;
    --color-muted: #71717a;
    --color-line: #e4e4e7;
    --color-control: #a1a1aa;
    --color-hover: #fafafa;
    --color-error: #a12d30;
    --radius-control: 8px;
    --radius-panel: 20px;
    --shadow-panel: 0 2px 6px #18181b05, 0 12px 32px #18181b14;
}
* {
    box-sizing: border-box;
}
[hidden] {
    display: none !important;
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-ink);
    background: var(--page-background);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button, input, select, textarea {
    font: inherit;
}
button, a {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
a {
    color: inherit;
}
:focus-visible {
    outline: 2px solid #18181b;
    outline-offset: 4px;
}
::selection {
    background: #e4e4e7;
    color: #18181b;
}
.page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}
/* Every icon uses the same local geometry, optical size and stroke weight. */
.icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    stroke-width: 1.75;
    pointer-events: none;
}
.state-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    color: #52525b;
    background: #ffffff;
    margin-bottom: 28px;
}
.state-icon .icon {
    width: 22px;
    height: 22px;
}
.workspace {
    width: min(608px, calc(100% - 48px));
    margin: auto;
    padding: 64px 0 88px;
}
.workspace--wide {
    width: min(1024px, calc(100% - 64px));
    margin: 0 auto auto;
    padding-top: 56px;
}
.eyebrow {
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.15px;
}
.panel {
    min-width: 0;
    box-shadow: var(--shadow-panel);
    border-radius: var(--radius-panel);
    padding: 40px;
    border: 1px solid var(--color-line);
    background: #ffffff;
}
.panel__title {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: -0.8px;
    font-weight: 550;
    overflow-wrap: anywhere;
}
.panel__description {
    margin: 0 0 32px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.75;
}
.panel__message {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.panel__footnote {
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-line);
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.75;
}
.section-heading {
    margin-bottom: 32px;
}
.section-heading .panel__title {
    font-size: 21px;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.section-heading .panel__description {
    margin-bottom: 0;
}
.section-title {
    margin: 48px 0 16px;
    font-size: 14px;
    font-weight: 550;
    letter-spacing: -0.1px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding: 4px 9px;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    background: #ffffff;
    color: #52525b;
    font-size: 12px;
    font-weight: 500;
}
/* Fields have consistent label rhythm, baseline and a 48 px control height. */
.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.form__field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}
.form__label {
    display: block;
    color: #3f3f46;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}
.form__optional {
    margin-left: 4px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 400;
}
.form__input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--color-control);
    border-radius: var(--radius-control);
    color: var(--color-ink);
    background: #ffffff;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
.form__input:hover {
    border-color: #71717a;
}
.form__input:focus {
    border-color: #52525b;
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-accent);
}
.form__input:focus-visible {
    outline: 2px solid #27272a;
    outline-offset: 2px;
}
.form__input::placeholder {
    color: #71717a;
}
.form__input[aria-invalid="true"] {
    border-color: var(--color-error);
}
.form__input:disabled {
    background: #fafafa;
    color: #71717a;
}
textarea.form__input {
    resize: vertical;
    min-height: 100px;
    line-height: 1.65;
}
.form__input--color {
    padding: 6px;
    cursor: pointer;
}
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form__row--colors {
    grid-template-columns: repeat(3, 1fr);
}
.form__hint {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.75;
}
.form__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 28px;
    margin-top: 4px;
    border-top: 1px solid var(--color-line);
}
.password-field {
    position: relative;
}
.password-field .form__input {
    padding-right: 48px;
}
.password-field__toggle {
    position: absolute;
    display: grid;
    place-items: center;
    right: 4px;
    top: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--color-muted);
}
.password-field__toggle:hover {
    background: #f4f4f5;
    color: #27272a;
}
.select {
    display: block;
    position: relative;
}
.select__input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    cursor: pointer;
}
.select__chevron {
    position: absolute;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    pointer-events: none;
}
.select__chevron .icon {
    width: 16px;
    height: 16px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-control);
    color: #3f3f46;
    background: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.button:hover {
    background: #fafafa;
    border-color: #d4d4d8;
}
.button:disabled {
    cursor: default;
    opacity: 0.5;
}
.button:active:not(:disabled) {
    transform: translateY(1px);
}
.button--primary {
    color: var(--brand-primary-text);
    background: var(--brand-primary-action);
    border-color: var(--brand-primary-action);
}
.button--primary:hover {
    background: var(--brand-primary-action);
    border-color: var(--brand-primary-action);
    box-shadow: 0 0 0 3px var(--brand-accent);
}
.button--quiet {
    border-color: transparent;
    background: transparent;
    color: var(--color-muted);
}
.button--quiet:hover {
    border-color: transparent;
    color: var(--color-ink);
}
.button--danger {
    color: var(--color-error);
    border-color: transparent;
    background: transparent;
}
.button--danger:hover {
    background: #fff5f5;
    border-color: transparent;
}
.button--small {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
}
.button .icon {
    width: 16px;
    height: 16px;
}
.feedback {
    margin: 0;
    color: #52525b;
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.feedback:empty {
    display: none;
}
.feedback--error {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #f0d6d7;
    border-radius: 8px;
    background: #fffafa;
    color: #8f2b30;
}
.feedback--error .icon {
    margin-top: 2px;
}
.note {
    margin: 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--color-line);
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.8;
}
/* Balanced columns keep the upload target separate from transfer details. */
.transfer-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}
.transfer-grid__picker {
    min-width: 0;
}
.transfer-grid__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}
.transfer-grid__picker .form__hint {
    margin: 14px 0 12px;
    text-align: center;
}
.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 276px;
    padding: 32px 24px;
    border: 1px dashed #b8b8c0;
    border-radius: 12px;
    color: var(--color-ink);
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    transition: border-color 140ms ease, background 140ms ease;
}
.dropzone:hover, .dropzone--over {
    border-color: #52525b;
    background: #fafafa;
}
.dropzone:focus-within {
    outline: 2px solid #27272a;
    outline-offset: 4px;
}
.dropzone__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    color: #52525b;
}
.dropzone__icon .icon {
    width: 22px;
    height: 22px;
}
.dropzone__title {
    font-size: 14px;
    font-weight: 550;
}
.dropzone__description {
    font-size: 13px;
    color: var(--color-muted);
}
.dropzone__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.dropzone--disabled {
    opacity: 0.5;
    pointer-events: none;
}
.file-list {
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.file-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
}
.file-list__item > .icon {
    color: #71717a;
}
.file-list__details {
    flex: 1;
    min-width: 0;
}
.file-list__name {
    display: block;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 500;
}
.file-list__size {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--color-muted);
}
.file-list__remove {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: var(--color-muted);
    background: transparent;
}
.file-list__remove:hover {
    color: #27272a;
    background: #f4f4f5;
}
.file-list__remove .icon {
    width: 16px;
    height: 16px;
}
.upload-status__progress {
    display: block;
    appearance: none;
    width: 100%;
    height: 5px;
    margin: 14px 0 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #f4f4f5;
    accent-color: var(--brand-primary);
}
.upload-status__progress::-webkit-progress-bar {
    background: #f4f4f5;
}
.upload-status__progress::-webkit-progress-value {
    background: var(--brand-primary);
    border-radius: 10px;
}
.upload-status__progress::-moz-progress-bar {
    background: var(--brand-primary);
    border-radius: 10px;
}
.result {
    max-width: 620px;
    padding: 16px 0;
}
.copy-field {
    display: flex;
    gap: 8px;
    margin: 10px 0 20px;
}
.copy-field .button {
    min-width: 112px;
}
.copy-field .form__input {
    min-width: 0;
    background: #fafafa;
    font-size: 13px;
}
.request-result {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: #ffffff;
}
.request-form {
    max-width: 680px;
}
/* Understated tabs and calm, scan-friendly rows. */
.tabs {
    display: flex;
    gap: 28px;
    margin: -4px 0 36px;
    border-bottom: 1px solid var(--color-line);
    overflow-x: auto;
}
.tabs__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 4px 0 18px;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--color-muted);
    background: transparent;
    font-size: 13px;
    font-weight: 450;
    white-space: nowrap;
}
.tabs__button .icon {
    width: 16px;
    height: 16px;
}
.tabs__button:hover {
    color: var(--color-ink);
}
.tabs__button--active {
    color: var(--color-ink);
    border-bottom-color: var(--color-ink);
    font-weight: 550;
}
.transfers {
    padding: 0;
    margin: 0;
    list-style: none;
}
.transfers__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f2;
}
.transfers__details {
    flex: 1;
    min-width: 0;
}
.transfers__title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.transfers__meta {
    display: block;
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 12px;
}
.transfers__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.downloads {
    padding: 0;
    margin: 24px 0 32px;
    list-style: none;
}
.downloads__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}
.downloads__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 44px;
    flex: 0 0 auto;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    color: #71717a;
}
.downloads__details {
    flex: 1;
    min-width: 0;
}
.downloads__name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.downloads__size {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 12px;
}
/* Setup is a sequence of readable groups, not one dense settings sheet. */
.installer {
    width: min(740px, calc(100% - 48px));
    margin: auto;
    padding: 48px 0 80px;
}
.installer .feedback {
    margin-bottom: 24px;
}
.form__group {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 8px 0 0;
    padding: 32px 0 0;
    border: 0;
    border-top: 1px solid var(--color-line);
}
.form__legend {
    float: left;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 550;
    letter-spacing: -0.2px;
}
.install-checks {
    padding: 0 0 24px;
    margin: 0 0 32px;
    border-bottom: 1px solid var(--color-line);
    list-style: none;
}
.install-checks__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #52525b;
    font-size: 12px;
}
.install-checks__item .icon {
    width: 16px;
    height: 16px;
    color: #71717a;
}
.install-checks__item--failed {
    color: var(--color-error);
}
@media (max-width: 760px) {
    .workspace, .workspace--wide {
        width: calc(100% - 40px);
        padding: 36px 0 64px;
    }
    .panel {
        padding: 28px;
    }
    .transfer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .dropzone {
        min-height: 208px;
    }
    .form__input {
        font-size: 16px;
    }
    .transfers__item {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
}
@media (max-width: 480px) {
    .workspace, .workspace--wide, .installer {
        width: calc(100% - 32px);
    }
    .panel {
        padding: 24px 20px;
    }
    .panel__title {
        font-size: 24px;
    }
    .form__row {
        grid-template-columns: 1fr;
    }
    .form__row--colors {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
    .form__row--colors .form__label {
        font-size: 11px;
    }
    .form__actions {
        flex-wrap: wrap;
    }
    .form__actions .button--primary {
        flex: 1;
    }
    .downloads__item {
        flex-wrap: wrap;
    }
    .downloads__item .button {
        margin-left: auto;
    }
    .copy-field {
        flex-direction: column;
    }
    .tabs {
        gap: 20px;
    }
    .tabs__button {
        gap: 6px;
    }
    .request-result {
        padding: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
    }
    .button:active:not(:disabled) {
        transform: none;
    }
}
/* Editorial mode: the artwork owns the canvas; controls stay completely white. */
.page--scene {
    position: relative;
    isolation: isolate;
}
.scene-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #e9e5df;
    background-image: var(--scene-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}
.page[data-scene="paper"] {
    --scene-image: var(--scene-paper);
}
.page[data-scene="coast"] {
    --scene-image: var(--scene-coast);
}
.page--scene .workspace {
    width: min(560px, calc(100% - 48px));
    margin: auto auto auto clamp(24px, 5vw, 96px);
    padding: 40px 0;
}
.page--scene .panel {
    border-color: #ffffff;
}
.page--scene .workspace--wide {
    width: min(980px, calc(100% - 128px));
    margin: 0 auto auto clamp(24px, 5vw, 96px);
    padding-top: 24px;
}
.page--scene .workspace:not(.workspace--wide) .transfer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
}
.page--scene .workspace:not(.workspace--wide) .dropzone {
    min-height: 180px;
}
.scene-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.scene-choice {
    position: relative;
    cursor: pointer;
}
.scene-choice__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.scene-choice__card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: #ffffff;
}
.scene-choice__preview {
    display: grid;
    place-items: center;
    height: 112px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--color-line);
    color: #71717a;
}
.scene-choice__preview--paper {
    background-image: url("backgrounds/paper.png");
}
.scene-choice__preview--coast {
    background-image: url("backgrounds/coast.png");
}
.scene-choice__preview--none {
    background: #fafafa;
}
.scene-choice__preview--custom {
    background: #ffffff;
}
.scene-choice__label {
    display: block;
    padding: 10px 12px;
    font-size: 13px;
}
.scene-choice__input:checked + .scene-choice__card {
    border-color: #27272a;
    box-shadow: 0 0 0 1px #27272a;
}
.scene-choice__input:focus-visible + .scene-choice__card {
    outline: 2px solid #27272a;
    outline-offset: 4px;
}
@media (max-width: 760px) {
    .page--scene .workspace,
    .page--scene .workspace--wide {
        width: calc(100% - 32px);
        margin: auto;
        padding: 24px 0;
    }
    .page--scene .installer {
        width: calc(100% - 32px);
        padding: 24px 0;
    }
    .scene-choice__preview {
        height: 88px;
    }
}
@media (max-width: 480px) {
}
@media (prefers-reduced-data: reduce) {
    .scene-backdrop {
        background-image: none;
    }
}
/* Double-buffered artwork. Only the incoming layer fades over the opaque image. */
.scene-backdrop--slides {
    background-image: none;
}
.scene-backdrop__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    transition: opacity var(--scene-fade, 2000ms) ease-in-out;
}
.scene-backdrop__image--active {
    opacity: 1;
}
.scene-backdrop__image--entering {
    opacity: 1;
    z-index: 1;
}
.scene-choice__preview--holiday {
    background-image: url("backgrounds/coast.png");
}
.scene-choice__preview--abstract {
    background-image: url("backgrounds/abstract-01.png");
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: center;
    font-size: 13px;
    color: #3f3f46;
}
.checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-primary);
}
@media (prefers-reduced-motion: reduce) {
    .scene-backdrop__image {
        transition: none;
    }
}
.account__section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border, #e4e4e7); }
.account__section h2, .account__recovery h2 { font-size: 1.125rem; letter-spacing: -.025em; margin: 0 0 1.25rem; }
.account__section h3 { font-size: 1rem; margin: 2rem 0 1rem; }
.account__secret { padding: 1rem; background: #f4f4f5; overflow-wrap: anywhere; line-height: 1.7; }
.account__recovery { margin-top: 2rem; padding: 1.5rem; border: 1px solid #d4d4d8; border-radius: .75rem; }
.account__recovery li { margin: .5rem 0; }
.management__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.management__grid .form__field { min-width: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .8125rem; }
.management__color { min-height: 2.75rem; padding: .4rem; }
@media (max-width: 640px) { .management__grid { grid-template-columns: 1fr; } }
.mode-choice { display: flex; gap: .85rem; align-items: flex-start; padding: 1.25rem; border: 1px solid #d4d4d8; border-radius: .75rem; margin-top: .75rem; cursor: pointer; }
.mode-choice input { margin-top: .25rem; accent-color: var(--brand-primary); }
.mode-choice strong { display: block; font-size: .9375rem; font-weight: 600; }
.mode-choice small { display: block; font-size: .8125rem; line-height: 1.6; color: #71717a; margin-top: .35rem; }
.mode-choice:has(input:checked) { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); }

/* A single quiet window contains navigation, tools and content. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.page { background-color: var(--page-background); }
.panel { border-color: #ffffffb3; }
.page--scene .panel, .page--management.page--scene .workspace--wide > .panel { padding-top: 32px; }
.page--scene .workspace--wide { margin-top: auto; padding-top: 40px; padding-bottom: 40px; }
.panel__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -4px 0 32px; padding-bottom: 24px; border-bottom: 1px solid #ededf0; }
.panel__utilities { display: flex; align-items: center; gap: 8px; }
.panel-nav { display: flex; align-items: center; gap: 4px; min-width: 0; flex-wrap: wrap; }
.panel-nav__link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 10px; color: #71717a; font-size: 12px; line-height: 1.4; text-decoration: none; border-radius: 8px; transition: background 150ms ease, color 150ms ease; }
.panel-nav__link .icon { width: 16px; height: 16px; }
.panel-nav__link:hover { color: #27272a; background: #f7f7f8; }
.panel-nav__link[aria-current="page"] { background: #f4f4f5; color: #27272a; font-weight: 550; }
.panel-nav__logout, .notifications__trigger, .notifications__close { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #71717a; }
.panel-nav__logout:hover, .notifications__trigger:hover, .notifications__close:hover { background: #f4f4f5; color: #27272a; }
.panel__title { font-size: 27px; font-weight: 550; letter-spacing: -.85px; }
.panel__description { line-height: 1.75; }
.form__input { border-color: #dcdce1; box-shadow: 0 1px 2px #18181b03; }
.form__input:hover:not(:disabled) { border-color: #bdbdc6; }
.button--primary { box-shadow: 0 1px 2px #00000014, inset 0 1px 0 #ffffff1a; }
.dropzone { border-color: #d4d4db; background: linear-gradient(180deg, #ffffff, #fafafb); transition: border-color 160ms ease, box-shadow 160ms ease; }
.dropzone:hover, .dropzone--over { background: #fafafa; box-shadow: inset 0 0 0 1px #d4d4db, 0 4px 16px #18181b04; }
.dropzone__icon { background: #ffffff; border-color: #e9e9ee; box-shadow: 0 2px 4px #18181b04, 0 6px 14px #18181b05; transform: rotate(-5deg); }
.dropzone__icon .icon { transform: rotate(5deg); }
.file-badge { display: grid; place-items: center; width: 38px; height: 44px; flex: 0 0 auto; border: 1px solid #e8e8ed; border-radius: 9px; background: linear-gradient(160deg, #ffffff, #f7f7f9); color: #71717a; box-shadow: 0 1px 2px #18181b05; }
.file-badge .icon { width: 21px; height: 21px; stroke-width: 1.5; }
.file-badge--document { color: #67657a; }
.file-badge--image { color: #5c7299; }
.file-badge--data { color: #66738a; }
.file-badge--archive { color: #99805e; }
.file-badge--media, .file-badge--design { color: #87709d; }
.file-badge--code { color: #6c7183; }
.file-list__item, .downloads__item { gap: 14px; }
.file-list__name, .downloads__name { font-size: 14px; line-height: 1.55; font-weight: 500; }
.file-list__remove { min-width: 40px; height: 40px; }
/* Dense, accessible rows remain a table on narrow screens. */
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.table-tools__search { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid #e4e4e7; border-radius: 9px; color: #a1a1aa; width: min(100%, 320px); }
.table-tools__search:focus-within { outline: 2px solid #27272a; outline-offset: 2px; }
.table-tools__input { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #27272a; font-size: 13px; }
.table-tools__count { font-size: 12px; color: #71717a; white-space: nowrap; }
.transfer-table__scroll { overflow-x: auto; scrollbar-width: thin; margin-inline: -4px; padding-inline: 4px; }
.transfer-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 12px; text-align: left; }
.transfer-table th { font-size: 11px; font-weight: 500; color: #71717a; white-space: nowrap; padding: 12px 14px; background: #fafafa; border-block: 1px solid #ededf0; }
.transfer-table td { padding: 15px 14px; border-bottom: 1px solid #ededf0; vertical-align: middle; }
.transfer-table th:first-child, .transfer-table td:first-child { padding-left: 12px; }
.transfer-table tbody tr:hover { background: #fcfcfd; }
.transfer-table__name { width: 32%; min-width: 180px; max-width: 300px; }
.transfer-table__name .transfers__title { font-size: 13px; line-height: 1.55; }
.transfer-table__direction { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #71717a; }
.transfer-table__direction .icon { width: 14px; height: 14px; }
.transfer-table__number, .transfer-table__date { white-space: nowrap; font-variant-numeric: tabular-nums; color: #71717a; }
.transfer-table__actions .transfers__actions { flex-wrap: nowrap; justify-content: flex-end; gap: 5px; }
.transfer-table__actions .button { min-height: 32px; padding: 6px 9px; font-size: 11px; white-space: nowrap; }
.transfer-table__actions .icon { width: 14px; height: 14px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; background: #f4f4f5; color: #52525b; font-size: 11px; white-space: nowrap; }
.status-badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #a1a1aa; }
.status-badge--ready::before { background: #52525b; }
.status-badge--draft::before { background: #b09a75; }
.status-badge--expired { color: #a1a1aa; background: #fafafa; }
.table-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 24px; font-size: 12px; color: #71717a; }
/* The bell lives within the window; no floating page furniture. */
.notifications { position: relative; }
.notifications__trigger { position: relative; }
.notifications__badge { position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #ffffff; border-radius: 10px; background: var(--brand-primary-action); color: var(--brand-primary-text); font-size: 9px; line-height: 13px; font-weight: 600; }
.notifications__panel { position: absolute; top: calc(100% + 14px); right: -40px; width: min(360px, calc(100vw - 48px)); z-index: 20; padding: 20px; border: 1px solid #e9e9ee; border-radius: 14px; background: #ffffff; box-shadow: 0 4px 12px #18181b08, 0 24px 64px #18181b1a; }
.notifications__heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.notifications__heading h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.notifications__close { width: 28px; height: 28px; }
.notifications__close .icon { width: 15px; height: 15px; }
.notifications__summary { margin: 12px 0 8px; color: #71717a; font-size: 12px; }
.notifications__list { padding: 0; margin: 0; list-style: none; max-height: 340px; overflow-y: auto; }
.notifications__item { display: flex; align-items: center; gap: 12px; padding: 15px 0; text-decoration: none; border-bottom: 1px solid #f0f0f2; }
.notifications__item > span { flex: 1; min-width: 0; }
.notifications__item strong { display: block; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.notifications__item time { display: block; color: #71717a; font-size: 11px; margin-top: 3px; }
.notifications__item > .icon { color: #a1a1aa; width: 16px; height: 16px; }
.notifications__item:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.notifications__read { width: 100%; padding: 15px 0 0; border: 0; background: transparent; color: #52525b; text-align: left; font-size: 12px; }
@media (max-width: 640px) {
    .panel, .page--scene .panel, .page--management.page--scene .workspace--wide > .panel { padding: 24px 20px; }
    .panel__toolbar { gap: 8px; margin-bottom: 28px; padding-bottom: 20px; }
    .panel-nav { gap: 2px; }
    .panel-nav__link { padding: 8px; font-size: 11px; gap: 5px; }
    .panel-nav__link .icon { width: 14px; height: 14px; }
    .panel__utilities { gap: 1px; }
    .panel-nav__logout, .notifications__trigger { width: 32px; height: 36px; }
    .panel__title { font-size: 24px; }
    .table-tools { align-items: flex-start; flex-direction: column; gap: 10px; }
    .table-tools__search { width: 100%; }
    .notifications__panel { right: -32px; width: min(340px, calc(100vw - 72px)); padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .panel-nav__link, .dropzone { transition: none; } }

/* Administration has dedicated, spacious list and detail layouts. */
.page--management .workspace--wide, .page--management.page--scene .workspace--wide { width: min(1280px, calc(100% - 80px)); margin: 0 auto; padding: 40px 0; }
.page--management .panel, .page--management.page--scene .workspace--wide > .panel { padding: 32px 40px 40px; }
.admin-nav { display: flex; gap: 24px; border-bottom: 1px solid var(--color-line); margin: 0 0 32px; }
.admin-nav__link { display: inline-flex; align-items: center; gap: 8px; padding: 0 0 16px; border-bottom: 2px solid transparent; color: var(--color-muted); text-decoration: none; font-size: 13px; }
.admin-nav__link .icon { width: 16px; height: 16px; }
.admin-nav__link[aria-current="page"] { border-color: var(--color-ink); color: var(--color-ink); font-weight: 550; }
.admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.admin-heading .panel__description { margin-bottom: 0; max-width: 650px; }
.admin-heading > .button { flex: 0 0 auto; }
.admin-back { display: inline-flex; margin: 0 0 24px; font-size: 12px; color: var(--color-muted); text-decoration: none; }
.admin-back:hover { color: var(--color-ink); }
.admin-search { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; max-width: 600px; }
.admin-search > .form__input { flex: 1; min-width: 0; }
.admin-table__scroll { overflow-x: auto; scrollbar-width: thin; }
.admin-table { border-collapse: collapse; width: 100%; min-width: 680px; text-align: left; font-size: 13px; }
.admin-table th { padding: 13px 16px; background: #fafafa; border-block: 1px solid var(--color-line); font-size: 11px; color: var(--color-muted); font-weight: 500; white-space: nowrap; }
.admin-table td { padding: 18px 16px; border-bottom: 1px solid #ededf0; vertical-align: middle; }
.admin-table tbody tr:hover { background: #fcfcfd; }
.admin-table__title { font-weight: 550; color: var(--color-ink); text-decoration: none; overflow-wrap: anywhere; }
.admin-table__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.admin-table__secondary { display: block; margin-top: 4px; color: var(--color-muted); font-size: 12px; overflow-wrap: anywhere; }
.admin-table__actions { text-align: right; width: 1%; white-space: nowrap; }
.admin-table__security, .admin-color { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.admin-table__security .icon { width: 15px; height: 15px; color: var(--color-muted); }
.admin-table__empty { padding: 48px 20px !important; text-align: center; color: var(--color-muted); }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; font-size: 12px; color: var(--color-muted); }
.admin-pagination nav { display: flex; gap: 8px; }
.admin-form__section, .admin-confirm { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 48px; padding: 32px 0; border-top: 1px solid var(--color-line); }
.admin-form__title { margin: 0 0 8px; font-size: 15px; line-height: 1.5; font-weight: 550; letter-spacing: -.2px; }
.admin-form__fields { display: flex; flex-direction: column; gap: 22px; max-width: 680px; }
.admin-form__fields .form__field, .admin-security__card > .form__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.admin-form__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--color-line); padding-top: 24px; }
.admin-confirm__title { margin: 0 0 8px; font-size: 13px; font-weight: 550; }
.admin-table--compact { min-width: 0; }
.admin-table--compact td { padding: 12px; }
.admin-table--compact td:last-child { width: 60%; }
.admin-section, .admin-security { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--color-line); }
.admin-section-heading { margin-bottom: 24px; max-width: 680px; }
.admin-security__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.admin-security__card { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; border: 1px solid var(--color-line); border-radius: 12px; }
.admin-security__card h3 { font-size: 14px; font-weight: 550; margin: 0; }
.admin-security__card .admin-confirm { grid-template-columns: 1fr; gap: 16px; padding: 20px 0 0; }
.admin-security__card .panel__description { font-size: 13px; }
.admin-security__card .button { align-self: flex-start; }
.admin-message, .admin-info { display: flex; gap: 12px; padding: 16px 20px; border: 1px solid var(--color-line); border-radius: 10px; background: #fafafa; margin-bottom: 24px; font-size: 13px; }
.admin-message p, .admin-info p { margin: 0; }
.admin-info p { margin: 8px 0 16px; color: var(--color-muted); }
.admin-message--error { border-color: #e6c4c4; background: #fffafa; color: var(--color-error); }
.color-control { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid #dcdce1; border-radius: 8px; background: #fff; }
.color-control__input { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; flex: 0 0 auto; }
.color-control__input::-webkit-color-swatch-wrapper { padding: 0; }
.color-control__input::-webkit-color-swatch { border: 1px solid #00000014; border-radius: 6px; }
.color-control__input::-moz-color-swatch { border: 1px solid #00000014; border-radius: 6px; }
.color-control__value { font: 12px/1.5 ui-monospace, monospace; color: var(--color-ink); }
.color-control__hint { margin-left: auto; font-size: 12px; color: var(--color-muted); }
.artwork-picker { border: 0; padding: 0; margin: 0; }
.artwork-picker legend { margin-bottom: 12px; }
.artwork-picker__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.artwork-picker__choice { position: relative; display: block; cursor: pointer; }
.artwork-picker__choice input { position: absolute; top: 10px; left: 10px; margin: 0; accent-color: var(--brand-primary); }
.artwork-picker__preview { display: block; height: 86px; border: 1px solid var(--color-line); border-radius: 9px; background-size: cover; background-position: center; }
.artwork-picker__preview--paper { background-image: var(--scene-paper); }
.artwork-picker__preview--holiday { background-image: var(--scene-holiday); }
.artwork-picker__preview--abstract { background-image: var(--scene-abstract); }
.artwork-picker__preview--none { background: #f4f4f5; }
.artwork-picker__choice:has(input:checked) .artwork-picker__preview { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.artwork-picker__label { display: block; font-size: 12px; color: var(--color-muted); padding-top: 8px; }
@media (max-width: 800px) { .page--management .workspace--wide, .page--management.page--scene .workspace--wide { width: calc(100% - 32px); padding: 20px 0; } .page--management .panel, .page--management.page--scene .workspace--wide > .panel { padding: 24px; } .admin-form__section, .admin-confirm { grid-template-columns: 1fr; gap: 20px; } .admin-heading { flex-direction: column; gap: 20px; } .admin-security__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .page--management .panel, .page--management.page--scene .workspace--wide > .panel { padding: 20px; } .admin-search { flex-wrap: wrap; } .admin-search > .form__input { flex-basis: 100%; } .artwork-picker__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-pagination { align-items: flex-start; flex-direction: column; } }

/* Shared transfer anatomy applies to sending, receiving and public file lists. */
.transfer-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; padding: 20px 0; border-block: 1px solid var(--color-line); }
.transfer-summary__item dt { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--color-muted); margin-bottom: 9px; }
.transfer-summary__item dt .icon { width: 14px; height: 14px; }
.transfer-summary__item dd { margin: 0; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.transfer-summary__time { display: block; margin-top: 3px; color: var(--color-muted); font-size: 11px; font-weight: 400; }
.file-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 17px 0; }
.file-row__details { min-width: 0; }
.file-row__name { display: block; font-size: 14px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.file-row__meta { display: block; font-size: 12px; color: var(--color-muted); line-height: 1.5; margin-top: 4px; }
.account__section > .form { max-width: 680px; }
.account__section .form__label { font-size: 12px; font-weight: 500; }
.section-heading { margin-bottom: 28px; }
.feedback:empty { display: none; }
.form__actions { padding-top: 24px; }
@media (max-width: 480px) { .transfer-summary { gap: 12px; grid-template-columns: 1fr 1fr; } .transfer-summary__item:last-child { grid-column: 1 / -1; } .transfer-summary__time { display: inline; margin-left: 8px; } .file-row--download { grid-template-columns: 38px minmax(0, 1fr); } .file-row--download > .button { grid-column: 2; width: fit-content; } }

.admin-back { align-items: center; gap: 8px; }
.admin-back .icon { width: 14px; height: 14px; transform: rotate(180deg); }
.feedback--error { padding: 14px 16px; border: 1px solid #e6c4c4; border-radius: 10px; background: #fffafa; color: var(--color-error); line-height: 1.6; }

.entity-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 20px 24px; margin: 0 0 32px; border: 1px solid var(--color-line); border-radius: 10px; background: #fafafa; }
.entity-facts dt { font-size: 11px; color: var(--color-muted); margin-bottom: 7px; }
.entity-facts dd { font-size: 13px; line-height: 1.6; font-weight: 500; margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .entity-facts { grid-template-columns: 1fr; gap: 16px; padding: 20px; } }

@media (max-width: 640px) { :root { --radius-panel: 16px; } }

/* Identify the receiving organization inside the same public transfer window. */
.instance-identity { display: flex; align-items: center; gap: 12px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--color-line); }
.instance-identity__mark { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--color-line); border-radius: 10px; background: #fafafa; color: var(--color-ink); font-size: 13px; font-weight: 600; }
.instance-identity__details { flex: 1; min-width: 0; }
.instance-identity__label { display: block; margin-bottom: 3px; color: var(--color-muted); font-size: 11px; }
.instance-identity__name { display: block; color: var(--color-ink); font-size: 15px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.instance-identity > .icon { width: 15px; height: 15px; color: var(--color-muted); }

.file-row:not(:last-child) { border-bottom: 1px solid #ededf0; }

/* Optional organization artwork keeps the same compact identity footprint. */
.instance-identity__mark { position: relative; overflow: hidden; }
.instance-identity__logo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #ffffff; }
.logo-editor { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; }
.logo-editor__preview { display: grid; place-items: center; width: 96px; height: 96px; padding: 8px; border: 1px solid var(--color-line); border-radius: 16px; background: #fafafa; font-size: 20px; font-weight: 550; }
.logo-editor__preview img { display: block; width: 80px; height: 80px; object-fit: contain; }
.logo-editor__form { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.logo-editor__form > .form__field { width: 100%; max-width: 680px; }
.logo-editor__form .admin-confirm, .logo-remove .admin-confirm { grid-template-columns: 1fr; gap: 16px; width: 100%; }
.logo-editor__input::file-selector-button { padding: 7px 12px; margin: -4px 12px -4px -6px; border: 0; border-radius: 6px; background: #f4f4f5; color: #52525b; font: inherit; font-size: 12px; cursor: pointer; }
.logo-remove { margin: 24px 0 0 120px; max-width: 680px; }
.statistics-toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.statistics-toggle input { flex: 0 0 auto; margin-top: 4px; accent-color: var(--brand-primary-action); }
.statistics-toggle strong { display: block; font-size: 13px; font-weight: 500; }
.statistics-toggle small { display: block; margin-top: 6px; font-size: 12px; color: var(--color-muted); line-height: 1.7; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.metric { min-width: 0; padding: 22px; border: 1px solid var(--color-line); border-radius: 12px; background: #fff; box-shadow: 0 2px 4px #18181b03; }
.metric__label, .metric__hint { display: block; color: var(--color-muted); font-size: 11px; line-height: 1.6; }
.metric__value { display: block; margin: 12px 0 8px; font-size: 28px; letter-spacing: -1px; font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.statistics-times { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.statistics-file { display: flex; align-items: center; gap: 12px; }
.statistics-disclosure { display: flex; align-items: flex-start; gap: 10px; color: var(--color-muted); font-size: 12px; line-height: 1.7; margin: 24px 0 0; }
.statistics-disclosure .icon { width: 15px; height: 15px; margin-top: 3px; }
@media (max-width: 800px) { .metric-grid, .statistics-times { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .logo-editor { grid-template-columns: 1fr; } .logo-remove { margin-left: 0; } .metric { padding: 16px; } .metric__value { font-size: 24px; } .statistics-times { grid-template-columns: 1fr; } }
.metric__label { min-height: 36px; }
.instance-identity__privacy { display: inline-block; margin-top: 5px; color: var(--color-muted); font-size: 11px; text-underline-offset: 3px; }

.admin-table--with-note tbody tr:last-child td { border-bottom: 0; }
.maintenance-status { display: flex; gap: 14px; padding: 20px; margin-bottom: 28px; border: 1px solid var(--color-line); border-radius: 12px; background: #fafafa; font-size: 12px; line-height: 1.7; }
.maintenance-status > .icon { margin-top: 3px; color: var(--color-muted); }
.maintenance-status strong { font-size: 13px; font-weight: 550; }
.maintenance-status p { margin: 7px 0; color: var(--color-muted); }
.maintenance-status code { display: block; padding: 10px 12px; margin: 12px 0; border: 1px solid var(--color-line); border-radius: 7px; background: #fff; overflow-wrap: anywhere; }

/* Instance-specific artwork uses the same editor rhythm as other branding assets. */
.background-editor { display: grid; gap: 24px; }
.background-editor__preview { display: block; width: 100%; max-width: 520px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--color-line); }
.artwork-picker__choice:has(input:disabled) { opacity: .5; cursor: default; }

.maintenance-steps { margin: 0; padding-left: 22px; color: var(--color-muted); line-height: 1.8; }
.maintenance-steps li + li { margin-top: 12px; }

.copy-field__password { flex: 1; min-width: 0; }
