.nav-section {
    margin-bottom: 7px;
}
.nav-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
    min-height: 36px;
    border-radius: 6px;
}
.nav-section > summary::-webkit-details-marker {
    display: none;
}
.nav-section > summary:hover {
    background: var(--line);
}
.nav-section > summary > .icon {
    width: 13px;
    height: 13px;
    transition: transform 0.15s;
}
.nav-section:not([open]) > summary > .icon {
    transform: rotate(-90deg);
}
.nav-section > div {
    padding-bottom: 9px;
}
.nav-section .nav-link {
    font-size: var(--text-sm);
    min-height: 39px;
}
.nav-section .nav-link span:not(.nav-count) {
    overflow-wrap: anywhere;
}
.sidebar > .brand {
    margin-bottom: 23px;
}
.sidebar .workspace-switch {
    margin-bottom: 12px;
}
.ext-panel-header {
    padding-bottom: 18px;
}
.action-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
}
.action-row:empty {
    display: none;
}
.action-row > .btn {
    margin-top: 0;
}
.page-table .action-row {
    margin-top: 0;
}
.page-table .action-row .btn {
    font-size: var(--text-xs);
}
.record-name {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    overflow-wrap: anywhere;
}
.required-label {
    color: var(--muted);
    font-size: var(--text-xs);
    font-weight: 400;
}
.check-option {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    min-height: 30px;
    font-size: var(--text-base) !important;
    line-height: 1.6;
}
.check-option input {
    margin-top: 4px;
}
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.chip-list .badge {
    white-space: normal;
    overflow-wrap: anywhere;
}
.section-action {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 15px;
}
.task-list {
    display: flex;
    flex-direction: column;
    padding: 0 22px 14px;
}
.detail-section .task-list {
    padding: 0;
}
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.task-item:last-child {
    border-bottom: 0;
}
.task-item > div {
    min-width: 0;
}
.task-item p {
    font-size: var(--text-sm);
    color: var(--muted);
    margin: 5px 0;
    line-height: 1.6;
}
.task-item .project-name {
    font-size: var(--text-base);
}
.task-item .badge {
    flex-shrink: 0;
}
.integration-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.integration-item {
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 17px;
    flex-wrap: wrap;
}
.integration-item > div:not(.action-row) {
    flex: 1;
    min-width: 170px;
}
.integration-item strong {
    font-size: var(--text-base);
    font-weight: 500;
}
.integration-item p {
    color: var(--muted);
    font-size: var(--text-xs);
    margin: 3px 0 8px;
}
.integration-item .action-row {
    margin: 0;
}
.project-wide {
    width: min(760px, 100%);
}
.project-wide .project-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 14px;
    overflow: visible;
    width: 100%;
    padding: 7px 0;
}
.project-tabs .tab {
    min-height: 38px;
    justify-content: flex-start;
    font-size: var(--text-xs);
    white-space: normal;
    line-height: 1.35;
}
.project-wide .tabs-toolbar {
    padding-right: 26px;
}
.project-wide .definition-list {
    grid-template-columns: 155px 1fr;
}
.project-wide .page-table {
    min-width: 500px;
}
.project-wide .detail-section {
    overflow-wrap: anywhere;
}
.project-wide .definition-list dd {
    min-width: 0;
}
.project-wide .definition-list .text-link {
    white-space: normal;
}
.wide-modal {
    width: min(760px, calc(100% - 32px));
}
.wide-modal .dialog-content {
    display: block;
}
.wide-modal #ext-form .dialog-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.wide-modal #ext-errors,
.wide-modal .note {
    grid-column: 1/-1;
}
.config-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 22px 18px;
    font-size: var(--text-sm);
}
.config-toolbar .field-input {
    width: 250px;
    max-width: 100%;
    font-size: var(--text-sm);
    min-height: 36px;
}
.config-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}
.config-fields .field-input {
    font-size: var(--text-base);
}
.config-fields .form-field {
    min-width: 0;
}
.config-fields .check-option {
    min-height: 40px;
}
.config-fields .form-field label {
    overflow-wrap: anywhere;
}
.configuration-actions {
    padding: 18px 0;
}
.config-unsaved {
    margin-bottom: 16px;
}
.maintenance-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid #e3c88f;
    border-radius: 8px;
    color: var(--warning);
    background: var(--warning-soft);
    font-size: var(--text-sm);
}
.maintenance-banner > span {
    flex: 1;
}
.maintenance-banner > a {
    text-decoration: underline;
}
.faq-item {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}
.faq-item:last-child {
    border: 0;
}
.faq-item > summary {
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
}
.faq-item p {
    font-size: var(--text-base);
    color: var(--muted);
    line-height: 1.8;
    margin: 12px 0 0 !important;
}
.json-content {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: 12.6px/1.8 var(--mono);
    background: var(--canvas);
    padding: 16px;
    border-radius: 8px;
}
.project-wide .action-row {
    align-items: stretch;
}
.project-wide .action-row .btn {
    min-height: 36px;
}
@media (max-width: 1050px) {
    .nav-section .nav-link {
        font-size: var(--text-xs);
        padding-left: 8px;
        padding-right: 8px;
    }
    .config-fields {
        grid-template-columns: 1fr;
    }
    .settings-panel {
        min-width: 0;
    }
    .config-toolbar {
        padding-left: 18px;
        padding-right: 18px;
    }
}
@media (max-width: 767px) {
    .nav-section > summary {
        font-size: var(--text-xs);
        min-height: 42px;
    }
    .nav-section .nav-link {
        font-size: var(--text-base);
        min-height: 44px;
    }
    .nav-section > div {
        padding-bottom: 12px;
    }
    .project-wide .project-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 9px;
    }
    .project-tabs .tab {
        min-height: 42px;
        font-size: var(--text-xs);
    }
    .project-wide .tabs-toolbar {
        padding-left: 20px;
        padding-right: 20px;
    }
    .project-wide .definition-list {
        grid-template-columns: 110px 1fr;
    }
    .project-wide .page-table {
        min-width: 460px;
    }
    .project-wide .detail-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .task-list {
        padding-left: 17px;
        padding-right: 17px;
    }
    .task-item {
        gap: 8px;
    }
    .task-item p {
        font-size: var(--text-sm);
    }
    .task-item .badge {
        font-size: var(--text-xs);
        max-width: 90px;
        white-space: normal;
    }
    .integration-item {
        padding: 15px;
        gap: 10px;
    }
    .integration-item > div:not(.action-row) {
        min-width: 160px;
    }
    .integration-item .action-row {
        width: 100%;
    }
    .action-row {
        gap: 8px;
    }
    .action-row .btn {
        font-size: var(--text-sm);
        min-height: 40px;
    }
    .page-table .action-row .btn {
        font-size: var(--text-xs);
        min-height: 38px;
    }
    .wide-modal #ext-form .dialog-content {
        display: block;
    }
    .config-toolbar {
        padding: 0 17px 17px;
    }
    .config-toolbar label {
        width: 100%;
    }
    .config-toolbar .field-input {
        width: 100%;
        font-size: var(--text-lg);
        min-height: 44px;
    }
    .config-fields {
        grid-template-columns: 1fr;
    }
    .config-fields .field-input {
        font-size: var(--text-lg);
    }
    .config-fields .check-option {
        min-height: 44px;
    }
    .required-label {
        font-size: var(--text-xs);
    }
    .check-option {
        font-size: var(--text-base) !important;
    }
    .settings-panel .action-row {
        align-items: stretch;
    }
    .settings-panel .action-row > .btn {
        flex: 1 0 auto;
    }
    .maintenance-banner {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .faq-item > summary {
        font-size: var(--text-base);
    }
}

.registry-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 22px 20px;
}
.registry-filter-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--muted);
    font-size: var(--text-xs);
    min-width: 150px;
}
.registry-filter-label .field-input {
    font-size: var(--text-sm);
    min-height: 36px;
    max-width: 100%;
}
.config-fields > div {
    padding-bottom: 16px;
}
.config-fields > div > .btn {
    margin-top: -5px;
}
@media (max-width: 767px) {
    .registry-filters {
        padding-left: 17px;
        padding-right: 17px;
    }
    .registry-filter-label {
        flex: 1 1 140px;
        min-width: 0;
    }
    .registry-filter-label .field-input {
        font-size: var(--text-lg);
        min-height: 44px;
    }
}

/* Readable working scale: keep primary data at 14.4px across breakpoints. */
.table-scroll table,
.project-name,
.record-name,
.nav-section .nav-link {
    font-size: var(--text-base);
}
.table-scroll th {
    padding-top: 12px;
    padding-bottom: 12px;
}
.table-scroll td {
    padding-top: 16px;
    padding-bottom: 16px;
}
.btn {
    min-height: 42px;
}
.btn-small {
    min-height: 36px;
}
.field-input {
    font-size: var(--text-base);
    min-height: 46px;
}
.nav-section .nav-link {
    min-height: 44px;
}
.tab {
    font-size: var(--text-sm);
    min-height: 46px;
}
@media (max-width: 767px) {
    .field-input {
        min-height: 48px;
    }
    .btn {
        min-height: 44px;
    }
}

.status-edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 3px 4px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: none;
    text-align: left;
    cursor: pointer;
}
.status-edit:hover {
    border-color: var(--line-strong);
    background: var(--surface);
}
.status-edit > .icon {
    width: 13px;
    height: 13px;
    color: var(--muted);
}

/* Live support workspace: the established design tokens and type scale. */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}
.server-project {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 4px;
    margin: 4px 0 10px;
    overflow-wrap: anywhere;
}
.global-access {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.global-access-row {
    display: flex;
    align-items: start;
    gap: 24px;
    justify-content: space-between;
}
.global-access-row .field-hint {
    max-width: 580px;
}
.scope-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    flex-shrink: 0;
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
}
.scope-switch-track {
    display: block;
    width: 44px;
    height: 26px;
    background: var(--line);
    border-radius: 20px;
    padding: 3px;
}
.scope-switch-track:after {
    content: "";
    display: block;
    background: var(--surface, #fff);
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.scope-switch[aria-checked="true"] .scope-switch-track {
    background: var(--accent);
}
.scope-switch[aria-checked="true"] .scope-switch-track:after {
    transform: translateX(18px);
}
.scope-switch:disabled {
    opacity: 0.5;
    cursor: wait;
}
.global-access-readiness {
    padding: 14px;
    margin-top: 14px;
    background: var(--canvas, #f7f7f8);
    border-radius: 8px;
    display: flex;
    align-items: start;
    gap: 14px;
    flex-direction: column;
}
.chat-workspace {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    border: 1px solid var(--line);
    background: var(--surface, #fff);
    border-radius: 14px;
    min-height: 650px;
    overflow: hidden;
}
.chat-workspace.with-context.has-selection {
    grid-template-columns: 300px minmax(0, 1fr) 265px;
}
.chat-index {
    min-width: 0;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}
.chat-filters {
    padding: 16px;
    display: grid;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}
.chat-filters .panel-toolbar {
    padding: 0;
    display: block;
    border: 0;
}
.chat-filters .search-field,
.chat-filters .search-input {
    width: 100%;
    min-width: 0;
}
.chat-status-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.chat-status-filters [aria-pressed="true"] {
    background: var(--nav-active, #e9eef5);
    border-color: var(--ink, #212121);
}
.chat-select {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: var(--text-xs);
}
.chat-thread-list {
    max-height: 720px;
    overflow: auto;
}
.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    text-align: left;
    padding: 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.chat-thread:hover {
    background: var(--canvas, #f7f7f8);
}
.chat-thread[aria-current="true"] {
    background: var(--nav-active, #e9eef5);
    box-shadow: inset 3px 0 var(--accent);
}
.chat-thread small,
.chat-thread-meta time {
    font-size: var(--text-xs);
    color: var(--muted);
}
.chat-thread-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.chat-reader {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.chat-reader-toolbar {
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.chat-reader-toolbar > span {
    flex: 1;
}
.chat-transcript-heading {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.chat-transcript-heading h2 {
    font-size: var(--text-lg);
    flex: 1;
    overflow-wrap: anywhere;
    margin: 0;
}
.chat-transcript-heading .chat-select {
    width: 100%;
}
.chat-messages {
    flex: 1;
    max-height: 650px;
    min-height: 280px;
    overflow: auto;
    padding: 8px 24px;
}
.chat-message {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.chat-message-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.chat-message-meta time {
    color: var(--muted);
    font-size: var(--text-xs);
}
.chat-message p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.65;
    margin: 10px 0;
}
.chat-readonly {
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: var(--text-xs);
    margin: 0;
}
.chat-context {
    padding: 20px;
    border-left: 1px solid var(--line);
    min-width: 0;
    overflow-wrap: anywhere;
}
.chat-context h2 {
    font-size: var(--text-lg);
    margin-top: 0;
}
.chat-context .definition-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-context .definition-list dd {
    margin: 0 0 12px;
}
@media (max-width: 1250px) {
    .chat-workspace.with-context.has-selection {
        grid-template-columns: 290px minmax(0, 1fr);
    }
    .chat-context {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}
@media (max-width: 767px) {
    .demo-grid {
        grid-template-columns: 1fr;
    }
    .global-access-row {
        flex-direction: column;
        gap: 8px;
    }
    .chat-workspace,
    .chat-workspace.with-context.has-selection {
        grid-template-columns: minmax(0, 1fr);
    }
    .chat-workspace:not(.has-selection) .chat-reader {
        display: none;
    }
    .chat-workspace.has-selection .chat-index {
        display: none;
    }
    .chat-index {
        border: 0;
    }
    .chat-thread-list {
        max-height: none;
    }
    .chat-context {
        grid-column: auto;
    }
    .chat-messages {
        padding: 8px 16px;
    }
    .chat-workspace {
        min-height: 480px;
    }
}

.chat-filters .table-tools {
    padding: 0;
    min-height: 0;
    display: block;
    border: 0;
}
.chat-filters .input-wrap {
    width: 100%;
    min-width: 0;
}
.chat-filters #section-search {
    width: 100%;
    min-width: 0;
}

.registry-pagination {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
    padding: 18px;
    flex-wrap: wrap;
}
.registry-pagination span {
    color: var(--muted);
}
.field-input[multiple] {
    min-height: 132px;
}
.field-input[multiple] option {
    padding: 6px 10px;
}
html[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #14171b;
    --surface: #1d2228;
    --sidebar: #171b20;
    --ink: #edf1f5;
    --muted: #b9c3ce;
    --subtle: #b9c3ce;
    --line: #3d4752;
    --line-strong: #84919d;
    --nav-active: #303e50;
    --accent-soft: #402925;
    --accent-strong: #f3a298;
    --success: #73d4b3;
    --success-soft: #133d32;
    --warning: #f5c067;
    --warning-soft: #423219;
    --danger: #ffa8a8;
    --danger-soft: #4a2229;
    --info: #9ec5ff;
    --info-soft: #1c3457;
    --chart-color: #7cb9ef;
    --chart-fill: #214367;
    --chart-fill-soft: #1b2d42;
    --lavender: #3b334b;
    --peach: #493528;
    --mint: #244237;
    --blue: #253c52;
    --pink: #4d3040;
    --sand: #443e2c;
}
html[data-theme="dark"] .brand-logo {
    filter: none;
    background: #212121;
    color: var(--accent);
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    color: var(--ink);
    background-color: var(--surface);
}
html[data-theme="dark"] .scope-switch-track {
    background-color: var(--muted);
}
html[data-theme="dark"] .scope-switch[aria-checked="true"] .scope-switch-track {
    background-color: var(--accent);
}
html[data-theme="dark"] .error-summary {
    background: var(--danger-soft);
    color: var(--danger);
}

html[data-theme="dark"] .avatar,
html[data-theme="dark"] .project-symbol {
    color: var(--ink);
}
html[data-theme="dark"] .toast {
    color: var(--canvas);
}

html[data-theme="dark"] .skip-link { color: var(--canvas); }

.client-tariff + .client-tariff {
    margin-top: 10px;
}
.client-tariff time {
    white-space: nowrap;
}

/* Client payment details stay visible in both registry renderers. */
.client-overview .page-table {
    min-width: 1150px;
}
.client-overview .page-table th,
.client-overview .page-table td {
    padding: 16px;
    vertical-align: top;
}
.client-overview .page-table td:first-child {
    min-width: 190px;
    max-width: 280px;
    overflow-wrap: anywhere;
}
.client-overview .page-table td:nth-child(2) {
    min-width: 145px;
}
.client-overview .page-table td:nth-child(3) {
    min-width: 185px;
}
.client-overview .page-table td:nth-child(4) {
    min-width: 220px;
    max-width: 320px;
}
.client-overview .page-table th:nth-child(5) {
    max-width: 110px;
    white-space: normal;
}
.client-statuses,
.client-subscriptions,
.client-subscription {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.client-subscriptions {
    gap: 12px;
}
.client-subscription + .client-subscription {
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.client-subscription .owner-company {
    margin: 0;
}
.client-subscription-end {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.client-subscription-remaining {
    font-size: var(--text-xs);
    color: var(--muted);
}
.client-subscription-remaining.is-overdue {
    color: var(--danger);
}
.client-subscription-remaining.is-expiring {
    color: var(--warning);
}

.client-projects,
.client-project {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.client-projects {
    gap: 16px;
}
.client-project-name {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
    font-weight: 500;
}

/* Sign in stays in the new control UI and fits narrow screens. */
.auth-panel { max-width: 480px; }
.auth-panel .settings-panel { display: grid; gap: 20px; }
.auth-panel form { display: grid; gap: 20px; }
.auth-panel h2 { margin: 0; }
.auth-panel .form-field { margin: 0; }
.auth-password { display: flex; gap: 8px; align-items: stretch; }
.auth-password input { min-width: 0; flex: 1; }
.auth-password button { flex-shrink: 0; }
.auth-panel button { min-height: 44px; }
.auth-sso { display: grid; gap: 12px; }
.auth-panel .auth-return-hint { margin: 0; }
.auth-panel [hidden] { display: none; }

/* Standalone sign-in: workspace chrome is available after session verification. */
body.auth-screen { background: var(--surface); }
body.auth-screen .app-shell { display: block; }
body.auth-screen #sidebar,
body.auth-screen #topbar,
body.auth-screen .workspace-footer,
body.auth-screen .skip-link,
body.auth-screen #mobile-scrim { display: none; }
body.auth-screen .workspace { width: 100%; margin: 0; }
body.auth-screen #main {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; min-height: 100svh; padding: 32px 20px;
}
.auth-initial { color: var(--muted); text-align: center; }
body.auth-screen .auth-card {
    display: flex; flex-direction: column; gap: 24px;
    width: 100%; max-width: 448px; padding: 32px;
    border: 1px solid var(--line); border-radius: 16px;
    background: var(--surface); box-shadow: none;
}
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.auth-brand img { width: 56px; height: 56px; border-radius: 16px; }
.auth-brand h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; }
body.auth-screen .auth-panel form { display: grid; gap: 20px; width: 100%; }
body.auth-screen .auth-panel .form-field { display: grid; gap: 8px; margin: 0; }
body.auth-screen .auth-panel label { font-size: 16px; font-weight: 400; }
body.auth-screen .auth-panel .field-input {
    width: 100%; min-height: 44px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 8px;
    background: var(--surface); color: var(--ink); font-size: 16px;
}
body.auth-screen .auth-panel .field-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.auth-screen .auth-panel .field-input::placeholder { color: var(--muted); opacity: 0.7; }
body.auth-screen .auth-password { position: relative; display: block; }
body.auth-screen .auth-password input { padding-right: 48px; }
body.auth-screen #auth-show-password {
    position: absolute; right: 0; top: 0; display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px;
    background: transparent; color: var(--muted); cursor: pointer;
}
body.auth-screen #auth-show-password:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.auth-screen .auth-panel [type="submit"] { width: 100%; min-height: 44px; border-radius: 8px; font-size: 16px; }
body.auth-screen .auth-panel .field-error { margin: 0; }
@media (max-width: 480px) {
    body.auth-screen #main { padding: 24px 16px; }
    body.auth-screen .auth-card { padding: 28px 20px; }
}
