:root,
body.theme-freshyellow {
    color-scheme: light;
    --ink: #24272a;
    --muted: #6f767d;
    --line: #e1dfd5;
    --surface: #ffffff;
    --soft: #fbfaf3;
    --teal: #f2cf3a;
    --teal-dark: #8f7312;
    --gold: #f2cf3a;
    --rose: #6b7178;
    --danger: #a23b28;
    --focus: #d9b322;
    --shadow: 0 16px 34px rgba(36, 39, 42, 0.08);
    --brand: var(--teal);
    --brand-dark: var(--teal-dark);
    --text: var(--ink);
    --success-soft: #fff9d9;
    --success-line: #ead46c;
    --warning-soft: #fff6d2;
    --warning-line: #e3c24a;
    --danger-soft: #fff0ed;
    --danger-line: #e0a69a;
    --control-line: #d7d4c8;
    --disabled-surface: #f0eee6;
    --disabled-text: #6f767d;
    --app-logo-size: 48px;
    --app-logo-max-width: 56px;
    --app-logo-max-height: 48px;
    --organisation-logo-header-max-width: 190px;
    --organisation-logo-header-max-height: 54px;
    --organisation-logo-auth-max-width: 240px;
    --organisation-logo-auth-max-height: 70px;
}

html {
    background: var(--soft);
}

body.theme-freshyellow {
    background:
        linear-gradient(180deg, #ffffff 0, #fffdf2 340px),
        var(--soft);
}

.theme-freshyellow a {
    color: #765d00;
}

.theme-freshyellow .site-header,
.theme-freshyellow .site-footer {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e8e4d3;
}

.theme-freshyellow .site-header {
    box-shadow: 0 8px 24px rgba(36, 39, 42, 0.07);
}

.theme-freshyellow .brand {
    color: #1d2023;
}

.theme-freshyellow .brand strong {
    color: #1d2023;
    font-size: 1.46rem;
    font-weight: 900;
    white-space: nowrap;
}

.theme-freshyellow .brand-logo,
.theme-freshyellow .organisation-logo,
.theme-freshyellow .header-user-icon {
    filter: drop-shadow(0 8px 18px rgba(143, 115, 18, 0.12));
}

.theme-freshyellow .organisation-card strong,
.theme-freshyellow .footer-org strong {
    color: #1d2023;
}

.theme-freshyellow .page-shell {
    margin-top: 32px;
}

.theme-freshyellow .form-card,
.theme-freshyellow .panel,
.theme-freshyellow .admin-card,
.theme-freshyellow .permission-row,
.theme-freshyellow .form-gallery-card,
.theme-freshyellow .recipient-card,
.theme-freshyellow .recipient-form-card,
.theme-freshyellow .permission-group-card,
.theme-freshyellow .permission-summary,
.theme-freshyellow .permission-assignment-row,
.theme-freshyellow .submission-panel,
.theme-freshyellow .media-card,
.theme-freshyellow .config-section,
.theme-freshyellow .template-stage,
.theme-freshyellow .template-ai-panel,
.theme-freshyellow .template-outline-panel,
.theme-freshyellow .modal-panel {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.theme-freshyellow .admin-shell > .panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.theme-freshyellow .form-card:hover,
.theme-freshyellow .form-card:focus-visible,
.theme-freshyellow .form-gallery-card:hover,
.theme-freshyellow .recipient-card:hover,
.theme-freshyellow .recipient-card:focus-visible,
.theme-freshyellow .submission-panel:hover,
.theme-freshyellow .submission-panel:focus-visible,
.theme-freshyellow .submission-file-list a:hover,
.theme-freshyellow .submission-file-list a:focus-visible {
    border-color: var(--teal);
    background: #fffef7;
    box-shadow: 0 18px 42px rgba(143, 115, 18, 0.12);
}

.theme-freshyellow .button {
    border-color: #cfaa18;
    background: linear-gradient(180deg, #f8dc4d, #e4bd26);
    color: #24272a;
    box-shadow: 0 12px 26px rgba(217, 179, 34, 0.22);
}

.theme-freshyellow .button:hover,
.theme-freshyellow .button:focus-visible {
    border-color: var(--teal-dark);
    background: linear-gradient(180deg, #edca36, #caa113);
}

.theme-freshyellow .button-secondary {
    background: #ffffff;
    color: #5f4c00;
    box-shadow: none;
}

.theme-freshyellow .button-secondary:hover,
.theme-freshyellow .button-secondary:focus-visible {
    background: #fff9d9;
    color: #4e3f00;
}

.theme-freshyellow .button-danger {
    border-color: var(--danger-line);
    background: #ffffff;
    color: var(--danger);
    box-shadow: none;
}

.theme-freshyellow input,
.theme-freshyellow select,
.theme-freshyellow textarea,
.theme-freshyellow .code-editor,
.theme-freshyellow .signature-pad canvas {
    border-color: var(--control-line);
    background: #ffffff;
}

.theme-freshyellow input:focus,
.theme-freshyellow select:focus,
.theme-freshyellow textarea:focus,
.theme-freshyellow input[type="checkbox"]:focus,
.theme-freshyellow input[type="radio"]:focus {
    border-color: var(--focus);
    outline-color: rgba(217, 179, 34, 0.22);
}

.theme-freshyellow input:disabled,
.theme-freshyellow select:disabled,
.theme-freshyellow textarea:disabled,
.theme-freshyellow input[type="checkbox"]:disabled,
.theme-freshyellow input[type="radio"]:disabled {
    border-color: #ddd9ca;
    background-color: var(--disabled-surface);
    color: var(--disabled-text);
}

.theme-freshyellow input[type="checkbox"],
.theme-freshyellow input[type="radio"] {
    border-color: #bfb9a6;
    background-color: #ffffff;
}

.theme-freshyellow input[type="checkbox"]:hover:not(:disabled),
.theme-freshyellow input[type="radio"]:hover:not(:disabled) {
    border-color: #cfaa18;
    box-shadow: 0 0 0 3px rgba(242, 207, 58, 0.2);
}

.theme-freshyellow input[type="checkbox"]:checked,
.theme-freshyellow input[type="checkbox"]:indeterminate,
.theme-freshyellow input[type="radio"]:checked {
    border-color: #9b7c10;
    background-color: #d8b322;
}

.theme-freshyellow .user-chip,
.theme-freshyellow .status-pill.enabled,
.theme-freshyellow .flash,
.theme-freshyellow .wizard-preview-note,
.theme-freshyellow .tabs a.active,
.theme-freshyellow .subtabs a.active,
.theme-freshyellow .permission-group-card.active,
.theme-freshyellow .recipient-form-card.active,
.theme-freshyellow .recipient-card-tags em.enabled,
.theme-freshyellow .submission-panel-id,
.theme-freshyellow .template-current-summary,
.theme-freshyellow .template-validation.valid,
.theme-freshyellow .template-ai-result,
.theme-freshyellow .template-outline-status,
.theme-freshyellow .template-outline-page-tabs button.active,
.theme-freshyellow .template-stat-card.template-stat-ok,
.theme-freshyellow .repeater-total {
    border-color: var(--success-line);
    background: var(--success-soft);
    color: #5f4c00;
}

.theme-freshyellow .status-pill,
.theme-freshyellow .recipient-card-tags em,
.theme-freshyellow .permission-group-tags em {
    border-color: var(--line);
    background: #ffffff;
    color: var(--muted);
}

.theme-freshyellow .status-pill.danger,
.theme-freshyellow .flash-error,
.theme-freshyellow .template-validation.invalid,
.theme-freshyellow .template-outline-status.invalid {
    border-color: var(--danger-line);
    background: var(--danger-soft);
    color: #8d2f20;
}

.theme-freshyellow .notice,
.theme-freshyellow .filter-banner,
.theme-freshyellow .template-stat-card.template-stat-warning {
    border-color: var(--warning-line);
    background: var(--warning-soft);
}

.theme-freshyellow .eyebrow,
.theme-freshyellow .formatted-preview {
    color: #765d00;
}

.theme-freshyellow .forms-view-filter label:not(.forms-search-filter),
.theme-freshyellow .public-only-toggle label,
.theme-freshyellow .choice-list label,
.theme-freshyellow .inline-choice,
.theme-freshyellow .display-text-field,
.theme-freshyellow .repeater-field,
.theme-freshyellow .uploaded-list,
.theme-freshyellow .permission-step-heading,
.theme-freshyellow .permission-public-note,
.theme-freshyellow .submission-detail-item,
.theme-freshyellow .media-folder-options label,
.theme-freshyellow .template-builder-action-bar,
.theme-freshyellow .template-outline-root,
.theme-freshyellow .template-outline-page,
.theme-freshyellow .template-outline-empty,
.theme-freshyellow .template-stat-card,
.theme-freshyellow .help-page pre {
    background: #fffdf2;
    border-color: var(--line);
}

.theme-freshyellow .repeater-row,
.theme-freshyellow .template-outline-field,
.theme-freshyellow .form-options-box,
.theme-freshyellow .permission-filter-form,
.theme-freshyellow .media-upload-form,
.theme-freshyellow .media-view-options,
.theme-freshyellow .admin-filter-form {
    background: #ffffff;
    border-color: var(--line);
}

.theme-freshyellow .form-gallery-image,
.theme-freshyellow .form-selected-icon-preview img,
.theme-freshyellow .permission-assignment-icon,
.theme-freshyellow .submission-panel-icon,
.theme-freshyellow .media-preview,
.theme-freshyellow .media-preview-cell,
.theme-freshyellow .line-numbers {
    background: #f6f3e5;
    border-color: #e3ddc7;
}

.theme-freshyellow .template-progress-step {
    background: #ffffff;
    color: var(--muted);
}

.theme-freshyellow .template-progress-step span,
.theme-freshyellow .stepper span {
    background: #f6f3e5;
}

.theme-freshyellow .template-progress-step.active,
.theme-freshyellow .template-progress-step.done,
.theme-freshyellow .stepper .active span {
    border-color: var(--teal);
    background: var(--success-soft);
    color: var(--ink);
}

.theme-freshyellow .stepper .done span {
    background: #fff3b3;
    color: #5f4c00;
}

.theme-freshyellow .template-mode-tabs {
    background: #f7f4e8;
}

.theme-freshyellow .template-mode-tabs button.active {
    background: #ffffff;
    color: var(--ink);
    box-shadow: inset 0 3px 0 var(--teal);
}

.theme-freshyellow .template-more-menu-panel {
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(36, 39, 42, 0.16);
}

.theme-freshyellow .template-more-menu-panel button:hover,
.theme-freshyellow .template-more-menu-panel a:hover {
    background: #fff9d9;
}

.theme-freshyellow .template-ai-ready-title {
    color: #765d00;
}

.theme-freshyellow .template-ai-spinner {
    border-color: #f1e8b9;
    border-top-color: var(--teal);
}

.theme-freshyellow .modal-backdrop {
    background: rgba(36, 39, 42, 0.52);
}

.theme-freshyellow th {
    background: #f6f3e5;
    color: var(--ink);
}

.theme-freshyellow code,
.theme-freshyellow .media-card-body code {
    color: #4b4f54;
}
