:root{color-scheme:light}
html[data-theme=dark]{color-scheme:dark;--ink:#edf2fc;--muted:#acb9cf;--paper:#101722;--white:#192334;--line:#334155;--accent:#8ab4ff;--accent2:#a1c3ff;--accent-light:#233552;--mint:#173d32;--mint-dark:#8de0b4;--blue:#223954;--red-bg:#431f28;--shadow:0 24px 70px #0005;--shadow-sm:0 4px 14px #0004;--shadow-md:0 10px 34px #0004}
html[data-theme=dark] body{background:var(--paper);color:var(--ink)}
html[data-theme=dark] .topbar,html[data-theme=dark] .mobile-drawer,html[data-theme=dark] .detail-card,html[data-theme=dark] .legal-dialog,html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select{background:var(--white);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .btn.dark{background:#8ab4ff;color:#101722}
html[data-theme=dark] .section.dark,html[data-theme=dark] footer{background:#080e18;color:#edf2fc}
html[data-theme=dark] .btn.ghost{color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .hero,html[data-theme=dark] .hero-card,html[data-theme=dark] .telegram-panel,html[data-theme=dark] .auth-card,html[data-theme=dark] .order-card,html[data-theme=dark] .job-card,html[data-theme=dark] .table-wrap{background:var(--white);color:var(--ink)}
.theme-toggle{min-width:44px;min-height:44px;font-size:21px;padding:7px 12px;flex-shrink:0}
.diia-receiving{display:flex;align-items:center;gap:14px;padding:18px;margin:18px 0;border-radius:16px;background:var(--accent-light);color:var(--ink)}
.diia-receiving[hidden]{display:none}
.diia-orbit{width:30px;height:30px;flex:0 0 30px;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:diia-spin 1s linear infinite}
.diia-dots{animation:diia-pulse 1.2s ease-in-out infinite}
@keyframes diia-spin{to{transform:rotate(360deg)}}@keyframes diia-pulse{50%{opacity:.25}}
@media(prefers-reduced-motion:reduce){.diia-orbit,.diia-dots{animation:none}}
@media(max-width:760px){.theme-toggle{margin-left:auto}}
html[data-theme=dark] .btn.ghost,html[data-theme=dark] .cat,html[data-theme=dark] .search,html[data-theme=dark] .job,html[data-theme=dark] .switch button.active,html[data-theme=dark] .user-badge,html[data-theme=dark] .language-switch{background:var(--white);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .btn.accent,html[data-theme=dark] .btn.orange{color:#101722}
html[data-theme=dark] .phone-channel-tabs,html[data-theme=dark] .legal-toc,html[data-theme=dark] #browseOrders .job-filters{background:var(--white);border-color:var(--line)}
html[data-theme=dark] .phone-channel.active,html[data-theme=dark] .phone-success{background:var(--accent-light);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .sms-feedback,html[data-theme=dark] .phone-channel,html[data-theme=dark] .telegram-state span,html[data-theme=dark] #browseOrders .job-filters label{color:var(--muted)}
html[data-theme=dark] #browseOrders .job-filters select{background-color:var(--white);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] .btn{color:#101722}
html[data-theme=dark] .btn.ghost,html[data-theme=dark] .btn.outline{color:var(--ink)}
html[data-theme=dark] .btn.red,html[data-theme=dark] .btn.green{color:#fff}
html[data-theme=dark] .profile-panel,html[data-theme=dark] .legal-copy,html[data-theme=dark] .admin-tabs a,html[data-theme=dark] .support-form,html[data-theme=dark] .support-contact{background:var(--white);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .legal-summary,html[data-theme=dark] .legal-check,html[data-theme=dark] .contact-pay-card{background:var(--accent-light);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .profile-note,html[data-theme=dark] .profile-data dt,html[data-theme=dark] .eyebrow{color:var(--muted)}
html[data-theme=dark] .legal-nav nav a{color:var(--ink);border-color:var(--line)}
/* Homepage surfaces and icons must change together with their foreground. */
html[data-theme=dark] .hero{background:transparent}
html[data-theme=dark] .task-card,
html[data-theme=dark] .benefits .principle,
html[data-theme=dark] .account-metrics div,
html[data-theme=dark] .order-history{background:#192334;color:#edf2fc;border-color:#334155}
html[data-theme=dark] .task-card .card-label,
html[data-theme=dark] .task-card .proof strong{color:#edf2fc}
html[data-theme=dark] .categories .cat{background:#202d41;color:#edf2fc;border-color:#3a4b65}
html[data-theme=dark] .categories .cat:hover{background:#2a3c56;border-color:#8ab4ff}
html[data-theme=dark] .categories .ico{background:#2a405f;color:#a6c8ff}
html[data-theme=dark] .categories .ico svg{color:inherit;stroke:currentColor}
html[data-theme=dark] .switch{background:#202d41;border:1px solid #3a4b65}
html[data-theme=dark] .switch button{color:#b5c4db}
html[data-theme=dark] .switch button.active{background:#344b6c;color:#fff}
html[data-theme=dark] .live,html[data-theme=dark] .city-pin{background:#2a405f;color:#a6c8ff}
html[data-theme=dark] .task-card .search{background:#101b2b;border-color:#3a4b65}
html[data-theme=dark] .task-card .search:focus-within{border-color:#8ab4ff}
html[data-theme=dark] .task-card .search input{background:transparent;color:#edf2fc}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#a7b6ce;opacity:1}
html[data-theme=dark] .search button{background:#8ab4ff;color:#101722}
html[data-theme=dark] .step:first-child .mini{color:#101722}
html[data-theme=dark] .telegram-panel p,html[data-theme=dark] .telegram-panel .telegram-state{color:#c3cfe1}

/* Footer call to action has an explicit foreground, independent of page ink. */
.footer-action{background:#fff;color:#0b1220;padding:16px 22px}
html[data-theme=dark] .footer-action{background:#8ab4ff;color:#101722}
html[data-theme=dark] .btn.outline{background:transparent}
html[data-theme=dark] th{background:var(--accent-light);color:var(--muted)}
html[data-theme=dark] td{border-color:var(--line)}
html[data-theme=dark] .field label,html[data-theme=dark] label.field{color:var(--ink)}
html[data-theme=dark] .form-feedback,html[data-theme=dark] .legal-feedback,html[data-theme=dark] .signup-error{color:#ffacac}
html[data-theme=dark] .admin-tabs a.selected{background:#344b6c;color:#fff}
html[data-theme=dark] .legal-nav nav a.selected{background:#233552;color:#b6d1ff}

.account-settings-actions{display:grid;gap:10px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.account-settings-actions .btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;text-align:center;white-space:normal;line-height:1.45;border:1px solid var(--line)}
.account-settings-actions .account-delete-action{color:#b42318;border-color:#e8b8b8}
html[data-theme=dark] .account-settings-actions .account-delete-action{color:#ffb4b4;border-color:#77434d;background:#321e27}
html[data-theme=dark] .language-switch a.selected,html[data-theme=dark] .support-telegram-button,html[data-theme=dark] .support-telegram-button span{color:#b6d1ff}

html[data-theme=dark] .wizard-privacy{background:#233552;color:#c6d5ec;border:1px solid #3a4b65}
/* Order form: quiet outlines, consistent selects and an explicit focus state. */
html[data-theme=dark] .wizard-card{border-color:#334155}
html[data-theme=dark] .wizard-card .field input,
html[data-theme=dark] .wizard-card .field select,
html[data-theme=dark] .wizard-card .field textarea{background-color:#111d2e;color:#edf2fc;border:1px solid #3a4b65;box-shadow:none}
html[data-theme=dark] .wizard-card .field input:hover,
html[data-theme=dark] .wizard-card .field select:hover,
html[data-theme=dark] .wizard-card .field textarea:hover{border-color:#617796}
html[data-theme=dark] .wizard-card .field input:focus,
html[data-theme=dark] .wizard-card .field select:focus,
html[data-theme=dark] .wizard-card .field textarea:focus{border-color:#8ab4ff;box-shadow:0 0 0 3px #8ab4ff26;outline:none}
.wizard-card .field select{appearance:none;-webkit-appearance:none;min-height:48px;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
html[data-theme=dark] .wizard-card .field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b5c4db' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
html[data-theme=dark] .wizard-navigation{border-color:#334155}
html[data-theme=dark] .wizard-card .field select:disabled{color:#8fa1bb;background-color:#162131;cursor:not-allowed}
/* All order-wizard steps share the same dark surfaces. */
html[data-theme=dark] .wizard-summary,
html[data-theme=dark] .wizard-address-note{background:#111d2e;color:#edf2fc;border:1px solid #334155}
html[data-theme=dark] .wizard-summary h3,
html[data-theme=dark] .wizard-summary span{color:#edf2fc}
html[data-theme=dark] .wizard-summary b{color:#b5c4db}
html[data-theme=dark] .wizard-upload{background:#111d2e;color:#a6c8ff;border-color:#526b90}
html[data-theme=dark] .wizard-step-count{color:#a6c8ff}
html[data-theme=dark] .wizard-progress li span{background:#27364c;color:#c6d5ec}
html[data-theme=dark] .wizard-progress li.current span{background:#8ab4ff;color:#101722}
html[data-theme=dark] .wizard-progress li.complete span{background:#204538;color:#a5e5c5}
html[data-theme=dark] .wizard-error{color:#ffb4b4}
html[data-theme=dark] .address-suggestions{background:#192334;border-color:#3a4b65;box-shadow:0 12px 32px #0005}
html[data-theme=dark] .address-suggestions button{background:#192334;color:#edf2fc;border-color:#334155}
html[data-theme=dark] .address-suggestions button:hover,
html[data-theme=dark] .address-suggestions button:focus,
html[data-theme=dark] .address-suggestions button[aria-selected=true]{background:#2a405f;color:#fff;outline:none}
html[data-theme=dark] .address-suggestions button:focus-visible{box-shadow:inset 3px 0 #8ab4ff}

/* Profile actions: shared sizing and explicit colors in both themes. */
.profile-main-actions{display:grid;gap:10px;margin:20px 0}
.profile-main-actions .profile-action{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;padding:12px 16px;border-radius:12px;font-size:13px;font-weight:700;line-height:1.5;text-align:center;white-space:normal;margin:0;border:1px solid transparent;text-decoration:none}
.profile-main-actions .profile-action.ghost{background:#f4f7fb;color:#263750;border-color:#d7e1ee;box-shadow:none}
.profile-main-actions .profile-action.ghost:hover{background:#e8effb;border-color:#a5bde3}
.profile-main-actions .profile-action:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
.profile-main-actions .share-feedback{margin:0;color:var(--muted)}
.profile-main-actions .share-feedback:empty{display:none}
.profile-panel .rating-summary{display:flex;align-items:center;gap:6px;color:#526078;font-size:13px;line-height:1.6}
.profile-panel .rating-star{color:#976200;font-size:17px}
.profile-panel .profile-specialities{gap:7px;margin:16px 0 22px}
.profile-panel .profile-specialities span{display:inline-flex;align-items:center;background:#edf3ff;color:#28476f;border:1px solid #d2dff3;padding:7px 10px;border-radius:999px;font-size:11px;line-height:1.4}
html[data-theme=dark] .profile-main-actions .profile-action.ghost{background:#233249;color:#e4edfc;border-color:#405571}
html[data-theme=dark] .profile-main-actions .profile-action.ghost:hover{background:#2d4260;border-color:#7999c5}
html[data-theme=dark] .profile-main-actions .profile-action:focus-visible{outline-color:#8ab4ff}
html[data-theme=dark] .profile-panel .rating-summary{color:#b5c4db}
html[data-theme=dark] .profile-panel .rating-star{color:#f4cc79}
html[data-theme=dark] .profile-panel .profile-specialities span{background:#22354d;color:#c6dbfa;border-color:#405571}
html[data-theme=dark] .profile-panel .account-modes button:disabled{background:#2b4262;color:#e4edfc;border-color:#607ea5}

.order-detail-sidebar{display:flex;flex-direction:column;gap:18px;min-width:0;align-self:start}
.order-detail-sidebar .propose-card,.order-detail-sidebar .contact-pay-card{margin:0;border:1px solid var(--line)}
.order-detail-sidebar .propose-card p{line-height:1.65;color:var(--muted)}
.order-detail-sidebar .btn{display:flex;align-items:center;justify-content:center;min-height:46px;width:100%;padding:12px 16px;line-height:1.5;text-align:center;white-space:normal;border-radius:12px}
.order-detail-sidebar .propose-card>.btn{margin-top:18px}
.order-detail-sidebar>.report-problem{order:3;margin:0;background:#f4f7fb;color:#263750;border:1px solid #d7e1ee;box-shadow:none}
.order-detail-sidebar>.report-problem:hover{background:#e8effb;border-color:#a5bde3}
html[data-theme=dark] .order-detail-sidebar .propose-card{background:#192334;border-color:#334155}
html[data-theme=dark] .order-detail-sidebar>.report-problem{background:#233249;color:#e4edfc;border-color:#405571}
html[data-theme=dark] .order-detail-sidebar>.report-problem:hover{background:#2d4260;border-color:#7999c5}
.order-detail-sidebar .btn:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* Status labels keep a readable foreground on their own explicit surface. */
.badge.open{background:#e3edff;color:#244c86;border:1px solid #c7d8f3}
.badge.in_progress,.badge.pending{background:#fff2cd;color:#795000;border:1px solid #ead59a}
.badge.done,.badge.accepted{background:#e0f3e8;color:#205e40;border:1px solid #b8ddc7}
.badge.cancelled,.badge.rejected{background:#fbe7e9;color:#922e3c;border:1px solid #e8bdc3}
html[data-theme=dark] .badge.open{background:#233954;color:#c6ddff;border-color:#405b7d}
html[data-theme=dark] .badge.in_progress,html[data-theme=dark] .badge.pending{background:#40351f;color:#f5d89b;border-color:#6d5931}
html[data-theme=dark] .badge.done,html[data-theme=dark] .badge.accepted{background:#203e31;color:#ace1c2;border-color:#3a6651}
html[data-theme=dark] .badge.cancelled,html[data-theme=dark] .badge.rejected{background:#422731;color:#f4b8c1;border-color:#734451}
/* Separate the order status from the title on detail pages. */
.detail-grid>.detail-card>.badge:first-child{margin-bottom:14px}
.detail-grid>.detail-card>.badge:first-child+h1{margin-top:0}
.order-card-header{gap:14px}
html[data-theme=dark] .job-ico{background:#233954;color:#c6ddff;border:1px solid #405b7d}
html[data-theme=dark] .payment-breakdown{background:#111d2e;border-color:#3a4b65;color:#c6d5ec}
html[data-theme=dark] .payment-breakdown p{color:#c6d5ec}
html[data-theme=dark] .payment-breakdown b{color:#edf2fc}
html[data-theme=dark] .payment-total{border-color:#3a4b65}
html[data-theme=dark] .payment-total strong{color:#b6d1ff}
html[data-theme=dark] .payment-layout .legal-check{background:#162438;color:#e4edfc;border-color:#3a4b65}
html[data-theme=dark] .legal-check a{color:#b6d1ff}
.payment-layout .release-selection{width:100%;min-height:44px;border:1px solid var(--line)}
html[data-theme=dark] .payment-layout .release-selection{background:#233249;color:#e4edfc;border-color:#405571}
/* Shared states found by the full light/dark screen review. */
.language-switch a,.language-switch span{color:#526078}
.switch button{color:#526078}
.optional,.wizard-progress li{color:#586b84}
.wizard-progress li span{color:#526078}
.telegram-state span,.legal-check small{color:#526078}
.rating-summary{color:#875600}
html[data-theme=dark] .rating-summary{color:#f4cc79}
html[data-theme=dark] .avatar-editor summary{color:#b6d1ff}
html[data-theme=dark] .profile-avatar,
html[data-theme=dark] .onboarding-steps span,
html[data-theme=dark] .profile-specialities span,
html[data-theme=dark] .mobile-profile-link,
html[data-theme=dark] .phone-success{background:#233552;color:#d3e2fa;border-color:#405571}
html[data-theme=dark] .profile-editor input[readonly]{background:#162438;color:#b5c4db}
html[data-theme=dark] .profile-nav:hover,
html[data-theme=dark] .legal-nav nav a:hover{background:#2a405f;color:#e4edfc;border-color:#607ea5}
html[data-theme=dark] #browseOrders .job-filters select:hover,
html[data-theme=dark] #browseOrders .job-filters select:focus-visible{background-color:#22354d;color:#edf2fc;border-color:#8ab4ff}
html[data-theme=dark] .optional,
html[data-theme=dark] .wizard-progress li,
html[data-theme=dark] .language-switch a,
html[data-theme=dark] .language-switch span{color:#b5c4db}
html[data-theme=dark] .language-switch a.selected{color:#b6d1ff}
html[data-theme=dark] .telegram-state span,
html[data-theme=dark] .legal-check small{color:#b5c4db}
html[data-theme=dark] .image-upload-area{background:#162438;color:#c6dbfa;border-color:#526b90}
html[data-theme=dark] .image-upload-area:hover,
html[data-theme=dark] .image-upload-area.dragover{background:#233954;border-color:#8ab4ff}
html[data-theme=dark] .field input,
html[data-theme=dark] .field select,
html[data-theme=dark] .field textarea{color:#edf2fc;border-color:#405571}
html[data-theme=dark] .field input:focus,
html[data-theme=dark] .field select:focus,
html[data-theme=dark] .field textarea:focus{border-color:#8ab4ff;box-shadow:0 0 0 3px #8ab4ff26}
html[data-theme=dark] .field select option{background:#192334;color:#edf2fc}
::selection{background:#c3d8ff;color:#0b1220}
html[data-theme=dark] ::selection{background:#405f8a;color:#fff}
.contact-pay-card .eyebrow{color:#526078}
html[data-theme=dark] .contact-pay-card .eyebrow{color:#b5c4db}
.support-telegram p,.support-telegram .support-handle,.support-telegram .support-card-label{color:#fff;opacity:1}

/* Mobile controls stay within the viewport, including long account names. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;color:var(--ink)}
.theme-toggle svg,.mobile-menu-btn svg{display:block;flex-shrink:0}
.hero>*{min-width:0}.hero{position:relative;overflow:clip}
html[data-theme=dark] .skeleton{background:linear-gradient(90deg,#192536 25%,#27384e 50%,#192536 75%);background-size:200% 100%}
@media(max-width:760px){
 .topbar{gap:6px;padding:10px;max-width:calc(100% - 24px)}
 .topbar .brand{font-size:23px;gap:6px;flex-shrink:0}
 .topbar .theme-toggle,.topbar .mobile-menu-btn{width:40px;min-width:40px;height:44px;padding:8px;border-radius:12px;color:var(--ink);flex-shrink:0}
 .topbar .mobile-menu-btn{display:flex;align-items:center;justify-content:center}
 .topbar .language-switch{margin-left:0;padding:6px;gap:3px}
 .topbar .profile-nav{min-width:0;max-width:88px;padding:8px;gap:5px}
 .topbar .profile-nav span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .topbar .profile-nav-arrow{display:none}
 .hero{grid-template-columns:minmax(0,1fr);min-height:0}
 .hero .lead{min-height:0;margin-bottom:24px}
 .hero .role-switch{margin-top:24px}
 .support-faq{gap:16px;margin-top:32px}
 .support-faq-heading p{margin-bottom:0}
 .support-questions summary{padding:16px 0}
 .support-bottom-note{margin-top:24px;padding-top:18px}
}
@media(max-width:370px){.topbar .brand{font-size:20px}.topbar .brand-logo{width:28px;height:28px}.topbar .profile-nav{max-width:44px}.topbar .profile-nav span{display:none}.topbar{gap:4px}}
.error-page{padding:64px 0;max-width:760px;min-height:55vh}.error-card{background:var(--white);border:1px solid var(--line);border-radius:28px;padding:clamp(24px,5vw,52px);box-shadow:var(--shadow-sm)}.error-code{display:inline-flex;padding:10px 18px;border-radius:14px;background:var(--accent-light);color:var(--accent);font-size:24px;font-weight:800}.error-card h1{font-size:clamp(30px,5vw,48px);line-height:1.15;letter-spacing:-.04em}.error-card p{color:var(--muted);line-height:1.8;overflow-wrap:anywhere}.error-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
/* Decorative orbs must not create a horizontally scrollable root on iOS. */
html{overflow-x:clip}main{min-width:0}.task-card{min-width:0}
@media(prefers-reduced-motion:reduce){.skeleton{animation:none}}
html[data-theme=dark] .toast{background:#26364c;color:#f0f5ff;border:1px solid #536782;box-shadow:0 12px 40px #0006}
html[data-theme=dark] .toast.error{background:#542c34;color:#ffdde2;border-color:#a85c69}
.toast{max-width:calc(100vw - 32px);text-align:center;overflow-wrap:anywhere}
@media(max-width:370px){.topbar>.profile-nav{display:none}}
.toast{max-width:min(420px,calc(100vw - 32px))}

.commerce-action-feedback{margin:14px 0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);overflow-wrap:anywhere}.commerce-action-feedback p{margin:0 0 12px;line-height:1.6}.commerce-action-feedback .btn{min-height:40px}
