/* Shared, restrained treatment for dashboard details. Keep the outer cards;
   remove the second layer of tinted cards inside them. */
[data-theme="light"] {
    --quiet-line: #e2e8f0;
    --quiet-icon-bg: #fff;
    --quiet-hover: #f8fafc;
    --quiet-link: #1d4ed8;
    --quiet-button-bg: #fff;
    --quiet-button-shadow-small: 0 2px 7px rgba(15, 23, 42, 0.08);
    --quiet-button-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
    --quiet-button-shadow-hover: 0 10px 24px rgba(15, 23, 42, 0.1);
}

[data-theme="dark"] {
    --quiet-line: #334155;
    --quiet-icon-bg: #172338;
    --quiet-hover: #1e293b;
    --quiet-link: #93c5fd;
    --quiet-button-bg: #172338;
    --quiet-button-shadow-small: 0 3px 9px rgba(0, 0, 0, 0.24);
    --quiet-button-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    --quiet-button-shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.32);
}

/* Home: recommendations stay quiet; actionable controls regain elevation. */
.home-ai-card .home-ai-list {
    gap: 0;
}

.home-ai-item,
.home-ai-item--high,
.home-ai-item--ok {
    gap: 7px;
    padding: 13px 2px;
    border: 0;
    border-bottom: 1px solid var(--quiet-line);
    border-radius: 0;
    background: transparent;
}

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

.home-ai-badge {
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.home-ai-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--brand-blue);
}

.home-ai-item .home-row-icon,
.home-quick-btn .home-row-icon,
.home-ai-item .home-row-icon.is-online,
.home-ai-item .home-row-icon.is-offline,
.home-ai-item .home-row-icon.is-waiting,
.home-ai-item .home-row-icon.is-media,
.home-ai-item .home-row-icon.is-neutral,
.home-quick-btn .home-row-icon.is-online,
.home-quick-btn .home-row-icon.is-offline,
.home-quick-btn .home-row-icon.is-waiting,
.home-quick-btn .home-row-icon.is-media,
.home-quick-btn .home-row-icon.is-neutral {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid var(--quiet-line) !important;
    border-radius: 50%;
    background: var(--quiet-icon-bg) !important;
    color: var(--brand-blue) !important;
}

.home-ai-item__action {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-left: 46px;
    padding: 4px 10px;
    border: 1px solid var(--quiet-line);
    border-radius: 7px;
    background: var(--quiet-button-bg);
    color: var(--quiet-link);
    font-weight: 650;
    box-shadow: var(--quiet-button-shadow-small);
}

.home-ai-item__action:hover { border-color: var(--brand-border); box-shadow: var(--quiet-button-shadow); }
.home-quick-list { gap: 8px; }

.home-quick-btn,
.home-quick-btn--primary {
    min-height: 54px;
    margin-top: 0;
    padding: 9px 12px;
    border: 1px solid var(--quiet-line);
    border-radius: 10px;
    background: var(--quiet-button-bg);
    font-weight: 650;
    box-shadow: var(--quiet-button-shadow);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.home-quick-btn:last-child { border-bottom: 1px solid var(--quiet-line); }
.home-quick-btn:hover {
    border-color: var(--brand-border);
    background: var(--quiet-button-bg);
    box-shadow: var(--quiet-button-shadow-hover);
    transform: translateY(-1px);
}
.home-quick-btn--primary { margin-top: auto; color: var(--quiet-link); }

/* A calendar strip reads as one control, without seven nested tiles. */
.home-calendar__week {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--quiet-line);
    border-radius: 10px;
    background: var(--quiet-button-bg);
    box-shadow: var(--quiet-button-shadow);
}

.home-cal-day,
.home-cal-day.is-today,
.home-cal-day.is-selected {
    min-height: 68px;
    padding: 10px 4px 8px;
    border: 0;
    border-right: 1px solid var(--quiet-line);
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.home-cal-day:last-child { border-right: 0; }
.home-cal-day:hover { border-color: var(--quiet-line); background: var(--quiet-hover); }
.home-cal-day.is-selected { border-bottom-color: var(--brand-blue); }
.home-cal-day.is-today .home-cal-day__num { color: var(--brand-blue); }
.home-cal-day__count:not(.home-cal-day__count--empty) { background: transparent; }
.home-calendar__events { min-height: 68px; }
.home-calendar__events .home-list-empty {
    padding: 8px 2px;
    border: 0;
    background: transparent;
    text-align: left;
}

/* Header balance and overview icons. */
.header-balance {
    gap: 5px;
    margin-right: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-weight: 600;
    white-space: nowrap;
}

.header-balance .balance-value { color: var(--quiet-link); font-variant-numeric: tabular-nums; }
.stat-icon.blue,
.stat-icon.green,
.stat-icon.purple,
.stat-icon.orange {
    width: 44px;
    height: 44px;
    border: 1px solid var(--quiet-line);
    border-radius: 50%;
    background: var(--quiet-icon-bg) !important;
    color: var(--brand-blue) !important;
}

.stat-icon svg { width: 22px; height: 22px; }

/* All device states share one treatment, including account-dependent sync/paused states. */
.device-status,
.screen-card__head .device-status,
.device-badge--paused,
.screen-card__head .device-badge--paused {
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
}

.device-status .device-status__dot {
    width: 7px;
    height: 7px;
    background: var(--brand-blue);
    box-shadow: none;
    animation: none;
}

.device-status--offline .device-status__dot {
    width: 7px;
    height: 7px;
    background: #64748b;
    box-shadow: none;
}

.device-badge--paused {
    text-transform: none;
    letter-spacing: 0;
}

.device-badge--paused::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #64748b;
}

.screen-card__hint {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.screen-card__chips {
    gap: 6px 4px;
    padding: 7px 0;
    border: 0;
    border-top: 1px solid var(--quiet-line);
    border-bottom: 1px solid var(--quiet-line);
    border-radius: 0;
    background: transparent;
}

.screen-card__toolbar,
.playlist-card .playlist-actions {
    padding: 6px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.screen-card__toolbar {
    border-top: 1px solid var(--quiet-line);
}

.screen-card__tool-btn,
.playlist-action-btn {
    border: 1px solid var(--quiet-line);
    border-radius: 7px;
    background: var(--quiet-button-bg);
    box-shadow: var(--quiet-button-shadow-small);
}
.screen-card__tool-btn:hover,
.playlist-action-btn:hover {
    box-shadow: var(--quiet-button-shadow);
    transform: translateY(-1px);
}

/* Playlist facts are compact columns on the parent card. */
.playlist-card .playlist-stats { gap: 0 12px; }
.playlist-stat-card {
    min-height: 48px;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid var(--quiet-line);
    border-radius: 0;
    background: transparent;
}

.playlist-stat-card .playlist-stat-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    border: 1px solid var(--quiet-line);
    border-radius: 50%;
    background: var(--quiet-icon-bg);
    color: var(--brand-blue);
}

.playlist-card-status,
.playlist-card-status.is-ready,
.playlist-card-status.is-pending,
.playlist-card-status.is-error {
    min-height: 48px;
    padding: 8px 0;
    border: 0 !important;
    border-bottom: 1px solid var(--quiet-line) !important;
    border-radius: 0;
    background: transparent !important;
}

.playlist-card-status__dot,
.playlist-card-status.is-ready .playlist-card-status__dot,
.playlist-card-status.is-pending .playlist-card-status__dot {
    box-shadow: none !important;
}

/* Audio: selected count and current track read as information, not alerts. */
.audio-tv-selected-count {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
}

.audio-tv-device-current,
.audio-tv-device-current--none,
.audio-tv-device-current--youtube {
    padding: 10px 0;
    border: 0;
    border-top: 1px solid var(--quiet-line);
    border-radius: 0;
    background: transparent;
}

.audio-tv-device-current__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid var(--quiet-line);
    border-radius: 50%;
    background: var(--quiet-icon-bg);
    color: var(--brand-blue);
}

/* AI Studio: one continuous progress line instead of three boxed stages. */
.ai-upos-result-steps__track,
.ai-product-steps { gap: 0; border-bottom: 1px solid var(--quiet-line); }

.ai-upos-result-step,
[data-theme="light"] .ai-upos-result-step,
.ai-upos-result-step.is-active,
[data-theme="light"] .ai-upos-result-step.is-active,
.ai-upos-result-step.is-done,
.ai-product-steps > span,
[data-theme="light"] .ai-product-steps > span,
.ai-product-steps .is-active,
[data-theme="light"] .ai-product-steps .is-active,
.ai-product-steps .is-complete {
    min-height: 48px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ai-product-steps > span {
    justify-content: center;
    text-align: center;
}

.ai-upos-result-step.is-active,
.ai-product-steps .is-active { border-bottom-color: var(--brand-blue); }
[data-theme="light"] .ai-upos-result-step.is-active,
[data-theme="dark"] .ai-upos-result-step.is-active {
    border-radius: 8px 8px 0 0;
    background: var(--quiet-button-bg);
    box-shadow: var(--quiet-button-shadow);
}
.ai-upos-result-step.is-done,
.ai-product-steps .is-complete { color: var(--text-heading); }
.ai-upos-result-step > span,
[data-theme="light"] .ai-upos-result-step > span,
.ai-product-steps b,
[data-theme="light"] .ai-product-steps b {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid var(--quiet-line);
    background: var(--quiet-icon-bg);
    color: var(--brand-blue);
}

.ai-upos-result-step.is-active > span,
.ai-product-steps .is-active b {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
    color: #fff;
}

/* Product-card editor: match the dashboard's quiet surfaces and controls. */
.ai-product-photo-workspace .ai-product-upload:not(.has-file),
.ai-product-request {
    border: 1px solid var(--quiet-line);
    border-radius: 12px;
    background: var(--quiet-button-bg);
    box-shadow: var(--quiet-button-shadow);
}

.ai-product-photo-workspace .ai-product-upload:not(.has-file) {
    border-style: dashed;
    border-color: var(--brand-blue);
}

.ai-product-photo-workspace .ai-product-upload:not(.has-file):hover,
.ai-product-photo-workspace .ai-product-upload:not(.has-file).is-dragging {
    border-color: var(--brand-blue);
    background: var(--quiet-hover);
}

.ai-product-photo-workspace .ai-product-request {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    padding: 20px 22px;
    row-gap: 0;
}

.ai-product-request__head {
    min-height: 34px;
    margin-bottom: 14px;
}

.ai-product-request__head > label {
    font-size: 14px;
    letter-spacing: -0.01em;
}

.ai-product-request > .ai-studio-textarea {
    flex: 1 1 118px;
    min-height: 118px;
    height: auto;
    padding: 12px 14px;
    border-color: var(--quiet-line);
    border-radius: 9px;
    background: var(--quiet-hover);
    line-height: 1.45;
}

.ai-product-request > .ai-studio-textarea:focus {
    border-color: var(--brand-blue);
    background: var(--quiet-button-bg);
}

.ai-product-photo-workspace .ai-product-upload:focus-visible,
.ai-product-add-template:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

.ai-product-upload__icon {
    border: 1px solid var(--quiet-line);
    border-radius: 50%;
    background: var(--quiet-icon-bg);
    color: var(--brand-blue);
    font-weight: 400;
}

.ai-product-language > div,
.ai-product-logo-background__choices {
    border: 1px solid var(--quiet-line);
    background: var(--quiet-hover);
}

.ai-product-language button.is-selected,
.ai-product-logo-background__choices button.is-selected {
    background: var(--quiet-button-bg);
    color: var(--quiet-link);
    box-shadow: var(--quiet-button-shadow-small);
}

.ai-product-language button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
}

.ai-product-logo-background {
    justify-content: space-between;
    margin-top: 16px;
    padding: 15px 0;
    border: 0;
    border-top: 1px solid var(--quiet-line);
    border-radius: 0;
    background: transparent;
}

.ai-product-logo-background__copy strong {
    font-size: 13px;
}

.ai-product-logo-inline__preview {
    border-color: var(--quiet-line);
    background-color: var(--quiet-icon-bg);
}

.ai-product-logo-inline__remove {
    border: 1px solid var(--quiet-line);
    background: var(--quiet-button-bg);
    color: var(--text-muted);
    box-shadow: var(--quiet-button-shadow-small);
}

.ai-product-logo-inline__remove:hover {
    background: var(--quiet-hover);
    color: #b42318;
}

.ai-product-request .ai-product-generate-bar {
    border-top-color: var(--quiet-line);
    justify-content: center;
    margin-top: auto;
    padding-top: 15px;
}

.ai-product-request .ai-product-generate-bar > .btn {
    width: min(100%, 340px);
    min-height: 44px;
    border-radius: 9px;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.ai-product-request .ai-product-generate-bar > .btn:disabled {
    border: 1px solid var(--quiet-line);
    background: var(--quiet-hover) !important;
    color: var(--text-muted);
    opacity: 1;
}

.ai-product-add-template {
    min-height: 42px;
    border: 1px solid var(--quiet-line);
    border-radius: 10px;
    background: var(--quiet-button-bg);
    color: var(--quiet-link);
    font-size: 13px;
    font-weight: 650;
    box-shadow: var(--quiet-button-shadow-small);
}

.ai-product-add-template:hover {
    border-color: var(--brand-blue);
    background: var(--quiet-hover);
    box-shadow: var(--quiet-button-shadow);
}

.ai-product-template {
    border-color: var(--quiet-line);
    background: var(--quiet-button-bg);
    box-shadow: var(--quiet-button-shadow-small);
}

.ai-product-template:hover,
.ai-product-template.is-selected {
    border-color: var(--brand-blue);
    box-shadow: var(--quiet-button-shadow-small), inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}

@media (max-width: 560px) {
    .ai-product-photo-workspace .ai-product-request {
        padding: 16px;
    }

    .ai-product-request__head {
        align-items: flex-start;
    }

    .ai-product-logo-background__controls {
        min-width: 0;
        gap: 8px;
    }

    .ai-product-logo-background__choices {
        min-width: 0;
        flex: 1 1 auto;
    }

    .ai-product-logo-background__choices button {
        min-width: 0;
        padding: 5px 4px;
        line-height: 1.2;
        white-space: normal;
    }
}

/* Employee state: dot + label, consistent with device states. */
.badge-active,
[data-theme="light"] .badge-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    letter-spacing: 0;
}

.badge-active::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--brand-blue);
}

[data-theme="dark"] .badge-active { color: var(--quiet-link) !important; }

/* Sidebar: the selector is the control; it does not need a card around it. */
.sidebar .sidebar-context__card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.sidebar .sidebar-context__select,
.sidebar .sidebar-context__add {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.nav-soon-badge,
.nav-item.active .nav-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #94a3b8 !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.nav-soon-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: currentColor;
}

.nav-item.active .nav-soon-badge { color: rgba(255, 255, 255, 0.8) !important; }

.home-ai-item__action:focus-visible,
.home-quick-btn:focus-visible,
.home-cal-day:focus-visible,
.screen-card__tool-btn:focus-visible,
.playlist-action-btn:focus-visible,
button.ai-upos-result-step:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .home-cal-day { min-height: 58px; padding-inline: 2px; }
    .home-cal-day__num { font-size: 17px; }
    .ai-upos-result-step,
    .ai-product-steps > span { gap: 6px; padding-inline: 4px; font-size: 11px; }
    .ai-upos-result-step > span,
    .ai-product-steps b { width: 20px; height: 20px; flex-basis: 20px; font-size: 11px; }
}

/* A finished card can become an organization-scoped AI style reference. */
.ai-product-save-template { min-height: 40px; white-space: nowrap; }
.ai-result-template-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 19, 39, 0.56);
}
.ai-result-template-dialog {
    width: min(100%, 690px);
    max-height: min(90vh, 760px);
    overflow: auto;
    border: 1px solid var(--quiet-line);
    border-radius: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 24px 70px rgba(8, 19, 39, 0.24);
}
.ai-result-template-dialog__head,
.ai-result-template-dialog__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
}
.ai-result-template-dialog__head { border-bottom: 1px solid var(--quiet-line); }
.ai-result-template-dialog__head h3 { margin: 0 0 5px; font-size: 20px; }
.ai-result-template-dialog__head p,
.ai-result-template-dialog__reference p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}
.ai-result-template-dialog__close {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--quiet-line);
    border-radius: 8px;
    background: var(--quiet-button-bg);
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
}
.ai-result-template-dialog__body {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
    padding: 24px;
}
.ai-result-template-dialog__reference img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    border: 1px solid var(--quiet-line);
    border-radius: 10px;
    background: var(--bg-tertiary);
}
.ai-result-template-dialog__reference p { margin-top: 10px; }
.ai-result-template-dialog__fields { display: flex; flex-direction: column; }
.ai-result-template-dialog__fields label {
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 650;
}
.ai-result-template-dialog__fields .ai-studio-input,
.ai-result-template-dialog__fields .ai-studio-textarea {
    border: 1px solid var(--quiet-line);
    background: var(--quiet-button-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
}
.ai-result-template-dialog__fields .ai-studio-input::placeholder,
.ai-result-template-dialog__fields .ai-studio-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 1;
}
.ai-result-template-dialog__fields .ai-studio-input:focus,
.ai-result-template-dialog__fields .ai-studio-textarea:focus {
    border-color: var(--brand-blue);
    background: var(--quiet-button-bg);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}
.ai-result-template-dialog__fields input { min-height: 40px; margin-bottom: 18px; }
.ai-result-template-dialog__fields textarea { min-height: 110px; margin: 0; }
.ai-result-template-dialog__actions {
    justify-content: flex-end;
    border-top: 1px solid var(--quiet-line);
}
.ai-result-template-dialog__close:focus-visible,
.ai-product-save-template:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
@media (max-width: 640px) {
    .ai-result-template-overlay { padding: 12px; }
    .ai-result-template-dialog__head,
    .ai-result-template-dialog__actions { padding: 16px; }
    .ai-result-template-dialog__body { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px; }
    .ai-result-template-dialog__reference img { max-height: 190px; }
}

.ai-library-card__retry-hint {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}
.ai-retry-upload-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(8, 19, 39, 0.56);
}
.ai-retry-upload-dialog {
    width: min(100%, 520px);
    max-height: 90vh;
    overflow: auto;
    border: 1px solid var(--quiet-line);
    border-radius: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 24px 70px rgba(8, 19, 39, 0.24);
}
.ai-retry-upload-dialog__head,
.ai-retry-upload-dialog__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
}
.ai-retry-upload-dialog__head { border-bottom: 1px solid var(--quiet-line); }
.ai-retry-upload-dialog__head h3 { margin: 0 0 6px; font-size: 20px; }
.ai-retry-upload-dialog__head p,
.ai-retry-upload-dialog__body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}
.ai-retry-upload-dialog__close {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--quiet-line);
    border-radius: 8px;
    background: var(--quiet-button-bg);
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
}
.ai-retry-upload-dialog__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px;
}
.ai-retry-upload-dialog__body label { font-size: 14px; font-weight: 650; }
.ai-retry-upload-dialog__body input[type="file"] {
    width: 100%;
    padding: 14px;
    border: 1px dashed var(--brand-blue);
    border-radius: 10px;
    background: var(--quiet-hover);
    color: var(--text-primary);
    font: inherit;
}
.ai-retry-upload-dialog__body strong { color: var(--quiet-link); font-size: 13px; }
.ai-retry-upload-dialog__actions { justify-content: flex-end; border-top: 1px solid var(--quiet-line); }
.ai-retry-upload-dialog__close:focus-visible,
.ai-retry-upload-dialog__body input[type="file"]:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}
@media (max-width: 640px) {
    .ai-retry-upload-dialog__head,
    .ai-retry-upload-dialog__body,
    .ai-retry-upload-dialog__actions { padding: 16px; }
}
