/* Final interface rules: shared SVG icons, isolated phone numbers and readable surfaces. */
.ui-icon {
    display: inline-block;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    vertical-align: middle;
}
.btn,
.text-link,
.card-link {
    align-items: center;
    gap: 9px;
}
.text-link {
    display: inline-flex;
}
.phone-number {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
    font-family: Arial, sans-serif;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.site-page .closing-section .closing-cta h2,
.site-page .approach-grid h2,
.site-page .footer-invitation h2 {
    font-size: clamp(19px, 1.85vw, 25px);
    font-weight: 600;
    line-height: 1.85;
}
.site-page .closing-cta {
    padding: 30px 34px;
}
.site-page .closing-cta p {
    font-size: 12px;
}
.footer-invitation {
    gap: 30px;
    align-items: center;
}
.studio-footer .footer-call {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: auto;
    min-height: 52px;
    padding: 13px 20px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: var(--surface-solid);
    color: var(--ink);
    font-size: 12px;
    line-height: 1.8;
    box-shadow: 0 3px 12px #152c4710;
}
.studio-footer .footer-call > span {
    display: inline;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
}
.studio-footer .footer-call > .ui-icon {
    width: 21px;
    height: 21px;
    color: var(--accent-text);
}
.studio-footer .footer-call:hover {
    border-color: var(--blue);
    background: var(--surface-soft);
}
.contact-channel .channel-icon .ui-icon {
    width: 19px;
    height: 19px;
}
.contact-channel > i {
    display: none;
}
.contact-hero-note > span .ui-icon {
    width: 36px;
    height: 36px;
}
.floating .ui-icon {
    width: 21px;
    height: 21px;
}

/* Captcha matches the supplied reference; the image, refresh control and entry are one unit. */
.secure-captcha {
    --captcha-shell: #f9faff;
    --captcha-edge: #d6def1;
    --captcha-label: #35465f;
    --captcha-muted: #73839b;
    --captcha-input: #fff;
    container-type: inline-size;
    display: block;
    width: 100%;
    min-width: 0;
    margin-block: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--captcha-label);
}
.secure-captcha .captcha-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}
.secure-captcha .captcha-heading label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.8;
    color: var(--captcha-label);
}
.secure-captcha .captcha-heading > span {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 9px;
    line-height: 1.9;
    background: var(--captcha-shell);
    color: var(--captcha-muted);
}
.secure-captcha .captcha-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    direction: rtl;
}
.secure-captcha .captcha-controls input[name='captcha_answer'] {
    display: block;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 70px;
    margin: 0;
    padding: 12px 15px;
    border: 1px solid var(--captcha-edge);
    border-radius: 17px;
    background: var(--captcha-input);
    color: var(--captcha-label);
    direction: ltr;
    text-align: center;
    font:
        600 20px/1.5 Arial,
        sans-serif;
    letter-spacing: 5px;
    box-shadow: none;
    outline: none;
}
.secure-captcha .captcha-controls input::placeholder {
    font:
        500 12px/1.6 'IRANSansXFaNum',
        Tahoma,
        sans-serif;
    color: var(--captcha-muted);
    letter-spacing: 0;
    direction: rtl;
}
.secure-captcha .captcha-controls input:focus {
    border-color: #6a86d8;
    outline: 3px solid #6a86d819;
    outline-offset: 1px;
}
.secure-captcha .captcha-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    min-width: 0;
    height: 70px;
    overflow: hidden;
    border: 1px solid var(--captcha-edge);
    border-radius: 17px;
    background: #f4f6fe;
    direction: rtl;
}
.secure-captcha .captcha-preview img {
    display: block;
    min-width: 0;
    width: 100%;
    height: 68px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: fill;
    background: #f4f6fe;
}
.secure-captcha .captcha-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px;
    border-inline-start: 1px solid #dbe2f8;
    background: #edf1ff;
}
.secure-captcha .captcha-tools button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 1px solid #d7dffd;
    border-radius: 9px;
    background: #f4f6ff;
    color: #3c5ac7;
    cursor: pointer;
    font: inherit;
}
.secure-captcha .captcha-tools button:hover {
    background: #e0e8ff;
}
.secure-captcha .captcha-tools button:focus-visible {
    outline: 2px solid #4669c9;
    outline-offset: 1px;
}
.secure-captcha .captcha-tools button:disabled {
    opacity: 0.5;
    cursor: wait;
}
.secure-captcha .captcha-tools .ui-icon {
    width: 19px;
    height: 19px;
}
.secure-captcha [data-captcha-clock] {
    font:
        10px/1.2 Arial,
        sans-serif;
    font-variant-numeric: tabular-nums;
    color: #52668b;
    direction: ltr;
}
.secure-captcha > progress {
    display: block;
    width: 100%;
    height: 3px;
    margin: 10px 0 0;
    padding: 0;
    appearance: none;
    border: 0;
    border-radius: 9px;
    overflow: hidden;
    background: var(--captcha-edge);
    accent-color: #6b83c9;
}
.secure-captcha > progress::-webkit-progress-bar {
    background: var(--captcha-edge);
}
.secure-captcha > progress::-webkit-progress-value {
    background: #6b83c9;
    transition: width 1s linear;
}
.secure-captcha > progress::-moz-progress-bar {
    background: #6b83c9;
}
.secure-captcha > small {
    display: block;
    min-height: 17px;
    margin-top: 7px;
    color: var(--captcha-muted);
    font-size: 9px;
    line-height: 1.9;
}
.secure-captcha.is-expired .captcha-preview,
.secure-captcha.is-expired .captcha-controls input {
    border-color: #bf5363;
}
.secure-captcha.is-expired > small {
    color: #b64558;
}
@container (max-width: 340px) {
    .secure-captcha .captcha-controls {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .secure-captcha .captcha-controls input[name='captcha_answer'] {
        height: 56px;
    }
    .secure-captcha .captcha-preview {
        width: 100%;
        height: 64px;
    }
    .secure-captcha .captcha-preview img {
        height: 62px;
    }
}
.backup-options form {
    width: 100%;
}
.backup-restore-row {
    width: min(100%, 450px);
}
.backup-restore-row .secure-captcha {
    flex: 1 0 100%;
}
td > form .secure-captcha {
    min-width: 220px;
}
.admin-panel form > .secure-captcha,
.sectioned-editor > .secure-captcha {
    max-width: 620px;
}

/* Simplified sign-in screen. */
.login-page > main {
    display: block;
}
.login-layout.login-minimal {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 100dvh;
    padding: 30px 20px;
}
.login-minimal .login-main {
    display: block;
    width: min(100%, 510px);
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 30px;
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    background: var(--surface-solid);
    box-shadow: 0 16px 48px #24364f0b;
}
.login-minimal .login-utility {
    width: 100%;
    margin: 0 0 30px;
    padding: 0;
}
.login-minimal .login-brand {
    gap: 10px;
    color: var(--ink);
}
.login-minimal .login-brand strong {
    font-size: 15px;
    font-weight: 600;
}
.login-minimal .login-form-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.login-minimal h1 {
    font-size: 23px;
    font-weight: 600;
    margin-block: 15px 24px;
}
.login-minimal .login-fields {
    gap: 18px;
}
.login-minimal .login-fields label {
    font-size: 12px;
}
.auth-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    color: var(--accent-text);
    background: var(--surface-soft);
}
.auth-symbol .ui-icon {
    width: 22px;
    height: 22px;
}
.login-minimal .secure-captcha {
    margin-block: 4px;
}
.login-minimal .login-submit {
    justify-content: center;
}
.login-recovery {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--accent-text);
    margin-top: 22px;
}

/* Service previews use an editorial hierarchy rather than oversized decorative areas. */
.grid-services > .service-card-v2 {
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    background: var(--surface-solid);
    box-shadow: 0 5px 22px #253d5910;
}
.service-card-v2::before {
    display: none;
}
.service-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 22px 22px 0;
}
.service-card-v2 .service-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 13px;
    color: var(--accent-text);
    border: 1px solid var(--surface-border);
    background: var(--surface-soft);
}
.service-card-v2 .service-icon svg {
    width: 25px;
    height: 25px;
}
.service-card-category {
    font-size: 10px;
    color: var(--muted);
}
.service-card-v2 .card-body {
    padding: 18px 22px 22px;
}
.site-page .service-card-v2 .card-body h2 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.9;
    margin: 0 0 10px;
}
.service-card-v2 .card-body > p {
    margin: 0;
    font-size: 12px;
    line-height: 2.05;
    color: var(--muted);
}
.service-card-process {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0 22px;
    padding: 14px 0;
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}
.service-card-process span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    line-height: 1.9;
    color: var(--muted);
}
.service-card-process .ui-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-text);
}
.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
}
.service-card-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--ink);
}
.service-card-action .ui-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-text);
}
.service-card-consult {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--accent-text);
    background: var(--surface-soft);
    border: 1px solid var(--surface-border);
}
.card-service.service-card-v2:hover {
    transform: translateY(-3px);
}
.about-hero-grid {
    align-items: center;
    gap: 56px;
}
.about-summary {
    padding: 30px;
    border: 1px solid var(--surface-border);
    border-radius: 23px;
    background: var(--surface-solid);
}
.about-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--accent-text);
}
.about-summary-head .eyebrow {
    margin: 0;
}
.site-page .about-summary h2 {
    font-size: 25px;
    line-height: 1.8;
    margin-bottom: 24px;
}
.about-summary h2 > span {
    color: var(--muted);
}
.about-capability {
    display: flex;
    align-items: start;
    gap: 14px;
    padding: 17px 0;
    border-top: 1px solid var(--surface-border);
}
.about-capability > .ui-icon {
    width: 22px;
    height: 22px;
    margin-top: 5px;
    color: var(--accent-text);
}
.site-page .about-capability h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}
.about-capability p {
    font-size: 11px;
    color: var(--muted);
}
.about-summary-note {
    border-top: 1px solid var(--surface-border);
    padding-top: 17px;
    font-size: 10px;
    color: var(--muted);
    line-height: 2;
}
.about-values {
    gap: 20px;
}
.about-values article {
    padding: 25px;
    background: var(--surface-solid);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
}
.site-page .about-values h3 {
    font-size: 16px;
    font-weight: 600;
}
.about-story {
    padding: 32px;
    background: var(--surface-solid);
    border-color: var(--surface-border);
}
.error-scene {
    padding-block: 55px;
    min-height: 70vh;
    display: grid;
    place-items: center;
}
.error-scene .wrap {
    width: min(760px, calc(100% - 40px));
}
.error-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 40px 30px 30px;
    border: 1px solid var(--surface-border, #d6deea);
    border-radius: 25px;
    background: var(--surface-solid, #fff);
    box-shadow: 0 12px 40px #20365208;
}
.error-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--surface-border, #d6deea);
    border-radius: 24px;
    color: var(--muted, #61718a);
    font-size: 11px;
}
.error-illustration {
    display: block;
    position: static;
    height: auto;
    margin: 22px 0 15px;
    width: auto;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
}
.error-illustration::before,
.error-illustration::after {
    display: none;
}
.error-illustration > span {
    font:
        600 78px/1 Arial,
        sans-serif;
    color: var(--accent-text, #465e90);
    letter-spacing: 9px;
    text-shadow: none;
}
.site-page .error-panel h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.8;
}
.error-panel > p {
    max-width: 490px;
    font-size: 13px;
    color: var(--muted, #61718a);
    margin-block: 15px 24px;
    line-height: 2.1;
}
.error-panel .actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.error-shortcuts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding-top: 24px;
    margin-top: 28px;
    width: 100%;
    border-top: 1px solid var(--surface-border);
}
.error-shortcuts a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
}

/* Slate-blue dark mode: opaque readable panels, clear muted text and no purple wash. */
html[data-theme='dark'] {
    --blue: #535da7;
    --ink: #f1f2f5;
    --navy: #f1f2f5;
    --muted: #c1c3cd;
    --soft-ink: #c1c3cd;
    --line: #51545e;
    --glass: #292b30;
    --glass-edge: #51545e;
    --surface: #292b30;
    --surface-solid: #292b30;
    --surface-soft: #34363d;
    --surface-border: #51545e;
    --accent-text: #cbd1ff;
    --soft-brand: #34363d;
    --page-color: #202124;
    --console-bg: #202124;
    --console-surface: #292b30;
    --console-border: #51545e;
    --console-muted: #c1c3cd;
    color-scheme: dark;
}
html[data-theme='dark'] body {
    color: var(--ink);
    background: #202124;
    background-image: radial-gradient(ellipse at 80% 0, #ffffff03, transparent 50%);
}
html[data-theme='dark'] body > header,
html[data-theme='dark'] .console-topbar {
    background: #26272df2;
    border-color: var(--surface-border);
}
html[data-theme='dark'] .glass,
html[data-theme='dark'] .content-card,
html[data-theme='dark'] .plan,
html[data-theme='dark'] details,
html[data-theme='dark'] .contact,
html[data-theme='dark'] .admin-panel,
html[data-theme='dark'] .studio-footer,
html[data-theme='dark'] .login-minimal .login-main,
html[data-theme='dark'] .recovery-card {
    background: var(--surface-solid);
    color: var(--ink);
    border-color: var(--surface-border);
    box-shadow: 0 8px 28px #00000012;
}
html[data-theme='dark'] .showcase-section,
html[data-theme='dark'] .muted-section {
    background: #24262b;
}
html[data-theme='dark'] .closing-cta,
html[data-theme='dark'] .detail-cta,
html[data-theme='dark'] .insight-box,
html[data-theme='dark'] .studio-window,
html[data-theme='dark'] .workspace-cards > span {
    background: var(--surface-soft);
    border-color: var(--surface-border);
}
html[data-theme='dark'] .btn {
    color: #fff;
    background: #535da7;
    border-color: #727bc0;
}
html[data-theme='dark'] .btn.outline,
html[data-theme='dark'] .footer-call {
    background: #343741;
    color: #f1f2f5;
    border-color: #797f91;
}
html[data-theme='dark'] .theme-toggle,
html[data-theme='dark'] .chip,
html[data-theme='dark'] .hero-kicker,
html[data-theme='dark'] .service-icon {
    background: #34363d;
    color: #e0e3f4;
    border-color: #626879;
}
html[data-theme='dark'] .eyebrow,
html[data-theme='dark'] .text-link,
html[data-theme='dark'] .desktop-nav a[aria-current],
html[data-theme='dark'] .hero-copy h1 > span,
html[data-theme='dark'] .collection-intro h1 span,
html[data-theme='dark'] .about-hero h1 > span,
html[data-theme='dark'] .trust-strip > a,
html[data-theme='dark'] .card-link > span,
html[data-theme='dark'] .contact-links > a,
html[data-theme='dark'] .footer-email {
    color: var(--accent-text);
}
html[data-theme='dark'] .card-meta,
html[data-theme='dark'] .card-delivery,
html[data-theme='dark'] .card-index,
html[data-theme='dark'] .project-facts small,
html[data-theme='dark'] .microcopy,
html[data-theme='dark'] .form-note,
html[data-theme='dark'] .muted-heading,
html[data-theme='dark'] .footer-grid p,
html[data-theme='dark'] .footer-grid nav a,
html[data-theme='dark'] .window-top,
html[data-theme='dark'] .workspace-title > span {
    color: var(--muted);
}
html[data-theme='dark'] input,
html[data-theme='dark'] select,
html[data-theme='dark'] textarea {
    background: #303239;
    color: #f1f2f5;
    border-color: #8e93a3;
}
html[data-theme='dark'] input::placeholder,
html[data-theme='dark'] textarea::placeholder {
    color: #bfc2cf;
}
html[data-theme='dark'] label {
    color: #e8e9f1;
}
html[data-theme='dark'] .secure-captcha {
    --captcha-shell: #34363d;
    --captcha-edge: #747a8d;
    --captcha-label: #f1f2f5;
    --captcha-muted: #c1c3cd;
    --captcha-input: #303239;
}
html[data-theme='dark'] .secure-captcha.is-expired > small {
    color: #ffb7c3;
}
html[data-theme='dark'] .floating {
    background: #343741;
    color: #e5e8ff;
    border-color: #797f91;
}
html[data-theme='dark'] .visual-float,
html[data-theme='dark'] .workspace-title > b {
    color: #f1f2f5;
}
html[data-theme='dark'] body.console-page {
    --console-bg: #202124;
    --console-surface: #292b30;
    --console-border: #51545e;
    --console-subtle: #34363d;
    background: #202124;
}
html[data-theme='dark'] body.console-page .console-sidebar,
html[data-theme='dark'] body.console-page .console-topbar,
html[data-theme='dark'] body.console-page .console-panel,
html[data-theme='dark'] body.console-page .admin-panel {
    background: #292b30;
    border-color: #51545e;
}
html[data-theme='dark'] body.console-page .overview-welcome {
    background: #343741;
    border-color: #626879;
}
html[data-theme='dark'] body.console-page .console-nav a {
    color: #d5d7e0;
}
html[data-theme='dark'] body.console-page .console-nav a[aria-current] {
    color: #f5f5fa;
    background: #404554;
}
input[type='tel'] {
    direction: ltr;
    text-align: left;
    font-family: Arial, sans-serif;
}
@media (max-width: 760px) {
    .site-page .closing-section .closing-cta h2,
    .site-page .footer-invitation h2,
    .site-page .approach-grid h2 {
        font-size: 21px;
    }
    .site-page .closing-cta {
        padding: 25px 21px;
    }
    .studio-footer .footer-call {
        width: 100%;
        justify-content: space-between;
    }
    .about-hero-grid {
        gap: 28px;
    }
    .about-summary {
        padding: 23px;
    }
    .error-panel {
        padding: 30px 20px;
    }
    .site-page .error-panel h1 {
        font-size: 21px;
    }
    .login-minimal .login-main {
        padding: 25px 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .secure-captcha > progress::-webkit-progress-value {
        transition: none;
    }
}

/* Neutral footer and matching contact channels. */
.studio-footer {
    background: #fff;
}
.footer-grid {
    grid-template-columns: 1.15fr 0.7fr 0.85fr 1.5fr;
    gap: 26px;
    align-items: start;
}
.footer-contact.contact-channel-panel {
    padding: 20px;
    border: 1px solid var(--surface-border);
    background: var(--surface-solid);
    border-radius: 17px;
}
.footer-contact.contact-channel-panel h3 {
    font-size: 14px;
    margin-bottom: 13px;
}
.footer-contact .contact-channel {
    padding: 14px 0;
    gap: 11px;
}
.footer-contact .contact-channel:last-child {
    padding-bottom: 0;
}
.footer-contact .contact-channel strong {
    font-size: 14px;
}
.footer-contact .contact-channel p {
    font-size: 11px;
    line-height: 2;
    margin: 0;
}
.footer-contact .contact-channel small {
    font-size: 10px;
}
.footer-contact .channel-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}
.footer-contact .channel-icon .ui-icon {
    width: 17px;
    height: 17px;
}
.contact-form-panel .form-grid {
    gap: 22px 18px;
}
.contact-form-panel label {
    display: block;
    margin-bottom: 9px;
}
.contact-form-panel input:not([type='checkbox']):not([name='captcha_answer']),
.contact-form-panel select {
    min-height: 52px;
    padding: 13px 15px;
    border-radius: 12px;
    background: var(--surface-solid);
    border-color: #a7aaba;
}
.contact-form-panel textarea {
    padding: 15px;
    border-radius: 12px;
    background: var(--surface-solid);
    border-color: #a7aaba;
    line-height: 2;
}
.contact-form-panel input[aria-invalid='true'] {
    border-color: #b34455;
    outline-color: #b3445520;
}
.phone-error {
    display: block;
    color: #b34455;
    font-size: 10px;
    line-height: 1.9;
    margin-top: 5px;
}
.phone-error:empty {
    display: none;
}
html[data-theme='dark'] .contact-form-panel input:not([type='checkbox']),
html[data-theme='dark'] .contact-form-panel select,
html[data-theme='dark'] .contact-form-panel textarea {
    background: #303239;
    color: #f1f2f5;
    border-color: #979baa;
}
html[data-theme='dark'] .phone-error {
    color: #ffb4be;
}
.login-page > main {
    width: 100%;
    min-height: 100dvh;
}
.login-layout.login-minimal {
    grid-template-columns: minmax(0, 1fr);
    min-height: 100dvh;
    width: 100%;
    margin: 0;
    padding: 30px 20px;
    display: grid;
    align-items: center;
    justify-items: center;
}
.login-minimal .login-main {
    justify-self: center;
    align-self: center;
    margin-inline: auto;
}
@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 760px) {
    .footer-contact.contact-channel-panel {
        width: 100%;
    }
}

html:not([data-theme='dark']) .studio-footer {
    --surface-soft: #f5f6f8;
    --surface-border: #dfe2e8;
    background: #fff;
}

/* Compact, editable footer contact block. */
.footer-contact.contact-channel-panel {
    padding: 17px;
}
.footer-contact .contact-channel {
    padding: 10px 0;
    gap: 9px;
}
.footer-contact .channel-icon {
    width: 29px;
    height: 29px;
    border-radius: 8px;
}
.footer-contact .contact-channel strong {
    font-size: 13px;
}
.footer-contact .contact-channel small {
    font-size: 10px;
    margin-bottom: 3px;
}
.footer-contact .footer-more {
    padding: 0;
    margin: 4px 0 0;
    border: 0;
    border-top: 1px solid var(--surface-border);
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.footer-more summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 12px 0 0;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
}
.footer-more summary::-webkit-details-marker {
    display: none;
}
.footer-more summary .ui-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}
.footer-more[open] summary .ui-icon {
    transform: rotate(-90deg);
}
.footer-contact .footer-more .contact-channel {
    border: 0;
}

/* Readability pass: larger body text and fully opaque neutral dark surfaces. */
html[data-theme='dark'] {
    --ink: #f8f9fc;
    --navy: #f8f9fc;
    --muted: #d0d3dd;
    --soft-ink: #d0d3dd;
    --surface-solid: #30333a;
    --surface: #30333a;
    --surface-soft: #3a3e47;
    --surface-border: #696f7d;
    --glass: #30333a;
    --glass-edge: #696f7d;
    --line: #696f7d;
    --accent-text: #c9dcff;
}
html[data-theme='dark'] body {
    background: #25272c;
    background-image: none;
}
html[data-theme='dark'] body.site-page p,
html[data-theme='dark'] body.site-page li {
    color: #e0e3ec;
    font-size: 14px;
    font-weight: 400;
    line-height: 2.1;
}
html[data-theme='dark'] body.site-page .card-body > p {
    font-size: 13.5px;
}
html[data-theme='dark'] body.site-page .card-meta,
html[data-theme='dark'] body.site-page .service-card-category,
html[data-theme='dark'] body.site-page .microcopy,
html[data-theme='dark'] body.site-page .section-aside {
    color: #d0d3dd;
    font-size: 12px;
}
html[data-theme='dark'] body.site-page .eyebrow {
    font-size: 12px;
    color: #d0ddff;
}
html[data-theme='dark'] body.site-page h1,
html[data-theme='dark'] body.site-page h2,
html[data-theme='dark'] body.site-page h3 {
    color: #f8f9fc;
}
html[data-theme='dark'] body.site-page label {
    font-size: 13px;
}
html[data-theme='dark'] body.site-page .contact-channel small,
html[data-theme='dark'] body.site-page .form-note {
    color: #d0d3dd;
    font-size: 11.5px;
}
html[data-theme='dark'] body.site-page .footer-grid p {
    font-size: 12px;
}
html[data-theme='dark'] body.site-page .footer-grid nav a {
    color: #e0e3ec;
    font-size: 12px;
}
html[data-theme='dark'] body.site-page .footer-contact .contact-channel p {
    font-size: 11px;
}
html[data-theme='dark'] body.site-page .footer-contact .contact-channel small {
    font-size: 10px;
}
html[data-theme='dark'] body.site-page .footer-contact details {
    background: transparent;
    box-shadow: none;
}
.invoice-details {
    margin-block: 25px;
}
.invoice-details > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-block: 14px;
    border-bottom: 1px solid var(--surface-border);
}
.invoice-details dt {
    font-size: 12px;
    color: var(--muted);
}
.invoice-details dd {
    margin: 0;
    font-size: 13px;
}
.payment-receipt {
    padding: 20px;
    border: 1px solid #579879;
    border-radius: 13px;
    background: #57987914;
    color: var(--ink);
    font-size: 15px;
}
.payment-receipt p {
    font-size: 12px;
    margin-top: 10px;
}
.payment-link-input {
    min-width: 230px;
    max-width: 100%;
    margin-bottom: 8px;
    font:
        11px Arial,
        sans-serif;
}
.payment-date {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
}
.console-section-payments .console-panel > p {
    font-size: 12px;
    margin-block: 12px 20px;
}
.console-section-payments td form {
    margin-top: 15px;
}
.console-section-payments td .secure-captcha {
    min-width: 230px;
}
.payment-page .btn {
    justify-content: center;
}
.copy-payment-link {
    padding: 5px 9px;
    font: inherit;
    font-size: 11px;
    border-radius: 7px;
    border: 1px solid var(--surface-border);
    background: var(--surface-soft);
    color: var(--ink);
    cursor: pointer;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
html[data-theme='dark'] body.site-page .service-card-process span {
    color: #d0d3dd;
    font-size: 11px;
}
html[data-theme='dark'] body.site-page .service-card-action {
    color: #edf1ff;
    font-size: 12px;
}

form .secure-captcha { max-width: 640px; }
.console-section-payments .console-panel > h2 { font-size: 22px; font-weight: 600; line-height: 1.8; }
