/* Display preferences are independent of redemption and queue state. */
.appearance-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}.language-switch{display:flex;padding:3px;border:1px solid var(--line);background:var(--paper);border-radius:12px;gap:3px}.language-switch button,.theme-toggle{display:grid;place-items:center;min-width:38px;min-height:38px;padding:6px 9px;border:0;background:transparent;color:var(--muted);border-radius:9px;font-size:0.75rem;font-weight:650;cursor:pointer}.language-switch button[aria-pressed=true]{background:var(--soft);color:var(--brand)}.theme-toggle{min-width:44px;min-height:44px;background:var(--paper);border:1px solid var(--line);border-radius:12px}.theme-toggle svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.sun{display:none}[data-theme=dark] .moon{display:none}[data-theme=dark] .sun{display:block}.header{gap:16px}.service-tabs button{padding-inline:13px}.hero{padding:8px 0 16px}.main-column{border-radius:20px}.session-actions{display:grid;grid-template-columns:minmax(0,1fr) 128px;gap:10px;margin-top:12px;align-items:stretch}.session-actions .primary-btn{margin:0;width:100%}.session-clear-btn,.subscription-toolbar .session-clear-btn{display:flex;justify-content:center;align-items:center;min-height:46px;margin:0;padding:10px 16px;border:1px solid #cbd6e6;border-radius:12px;background:#eef2f8;color:#4b5d77;font-size:0.8125rem;font-weight:600;cursor:pointer;white-space:nowrap}.session-clear-btn:hover:not(:disabled){background:#e1e8f3;border-color:#9cadc7}.session-clear-btn:disabled{opacity:.42;cursor:not-allowed}.subscription-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 128px;gap:10px}.subscription-toolbar>p{grid-column:1/-1;margin:0}.subscription-toolbar .primary-btn{width:100%;min-width:0}.subscription-session-heading .field-title{margin-bottom:8px}.appearance-controls button:focus-visible,.session-clear-btn:focus-visible{outline:3px solid #82a9ff;outline-offset:3px}
:root[data-theme=dark]{color-scheme:dark;--bg:#0c1321;--paper:#151f30;--ink:#e9eff9;--muted:#a5b2c7;--line:#2b3950;--brand:#8eadff;--soft:#223453}
[data-theme=dark] body{background:radial-gradient(ellipse at 80% 0%,#1a2c49,transparent 50%),var(--bg);color:var(--ink)}[data-theme=dark] .main-column,[data-theme=dark] .redeem-card,[data-theme=dark] .history-panel,[data-theme=dark] .help-card,[data-theme=dark] .query-card,[data-theme=dark] .query-item,[data-theme=dark] .task-card{background:var(--paper);border-color:var(--line);box-shadow:0 12px 35px -24px #0009}[data-theme=dark] .service-tabs{background:#111c2d}[data-theme=dark] .service-tabs button[aria-selected=true]{background:#243754;color:#b5ccff}[data-theme=dark] input,[data-theme=dark] textarea{background:#101a2b;color:var(--ink);border-color:#3a4b65}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#91a1b9}[data-theme=dark] .primary-btn,[data-theme=dark] .query-btn,[data-theme=dark] .next-btn{background:#2463eb;color:white}[data-theme=dark] .primary-btn:hover:not(:disabled),[data-theme=dark] .query-btn:hover:not(:disabled){background:#3475ff}[data-theme=dark] .quick-links a,[data-theme=dark] .ghost,[data-theme=dark] .session-clear-btn,[data-theme=dark] .query-small,[data-theme=dark] .query-clear{background:#223149;color:#ccdbf4;border-color:#3a4b65}[data-theme=dark] .quick-links a span,[data-theme=dark] .experience-steps b{background:#2a3a52;color:#c3d1e9}[data-theme=dark] .experience-steps .current b{background:#2463eb;color:white}[data-theme=dark] .experience-steps .done b,[data-theme=dark] .confirmation-summary.account-preview,[data-theme=dark] .result-emblem.success{background:#173d35;color:#a3edc5;border-color:#315b4d}[data-theme=dark] .account-preview strong,[data-theme=dark] .account-preview p{color:#b9f3d3}[data-theme=dark] .field-feedback:not(:empty),[data-theme=dark] .subscription-result-head,[data-theme=dark] .subscription-details,[data-theme=dark] .history-item,[data-theme=dark] .progress-stage,[data-theme=dark] .elapsed-chip{background:#1b2a40;border-color:#3a4b65;color:var(--ink)}[data-theme=dark] .banner,[data-theme=dark] .order-help,[data-theme=dark] .progress-stage.review{background:#392e1c;color:#f4d395;border-color:#665331}[data-theme=dark] .error-reference code{background:#1b2638;border-color:#465368;color:var(--ink)}[data-theme=dark] .subscription-badge{background:#29364b;color:#d2dced}[data-theme=dark] .subscription-badge[data-tone=success],[data-theme=dark] .history-badge{background:#173d35;color:#a3edc5}[data-theme=dark] .subscription-badge[data-tone=warning]{background:#44351d;color:#f4d395}[data-theme=dark] .result-emblem.processing{background:#253957}[data-theme=dark] .experience-progress{background:#2a3951}[data-theme=dark] .hub-release-notice,[data-theme=dark] .hub-release-badge{background:#192638!important;border-color:#3a4b65!important;color:var(--ink)!important}[data-theme=dark] .hub-release-notice button{background:#263850;border-color:#4c6383;color:var(--ink)}[data-theme=dark] .warn,[data-theme=dark] .query-error{color:#ffb0a8}[data-theme=dark] .footer,[data-theme=dark] .footer b{color:var(--muted)}[data-theme=dark] .brand-mark{background:#2463eb}
@media(max-width:1000px){.header{display:grid;grid-template-columns:1fr auto;height:auto;padding:12px 0;gap:10px}.appearance-controls{grid-column:2;grid-row:1}.service-tabs{grid-row:2;grid-column:1/-1;justify-self:stretch;margin:0;justify-content:space-between}.service-tabs button{min-height:42px}.brand{grid-column:1;grid-row:1}}
@media(max-width:760px){.shell{width:calc(100% - 28px)}.header{padding:8px 0;gap:6px}.language-switch button{min-height:38px;min-width:38px}.hero{padding:2px 0 10px}.hero h1{font-size:1.0625rem}.hero p{display:none}.service-tabs{padding:3px;gap:0;border-radius:12px}.service-tabs button{padding:8px 10px;font-size:0.6875rem;border-radius:9px}.main-column{padding:15px;border-radius:18px}.experience-top{padding-bottom:10px}.experience-steps{padding:12px 0 14px;gap:7px}.experience-steps li{font-size:0.625rem;gap:5px}.experience-steps b{width:24px;height:24px;flex-shrink:0}.experience-top>span{font-size:0.625rem}.session-actions,.subscription-toolbar{grid-template-columns:minmax(0,1fr) 104px;gap:8px}.session-clear-btn{padding:10px 8px;font-size:0.75rem}.session-actions .primary-btn{font-size:0.8125rem;min-height:46px}.session-heading{margin-top:8px}#session{height:84px;min-height:84px;font-size:1rem}#subscription-session{min-height:112px;font-size:1rem}.appearance-controls{gap:8px}.experience-account-heading h2{font-size:1.1875rem}.experience-account-heading p{margin-bottom:8px}.session-links{margin:8px 0}.account-preview{margin:8px 0!important;padding:8px 10px!important}.confirm-check{margin:6px 0}.session-actions{margin-top:8px}html[lang=en] .experience-top>span{display:none}html[lang=en] .service-tabs button{font-size:0.6875rem}html[lang=en] .experience-steps li{font-size:0.625rem}html[lang=en] .experience-account-heading p{font-size:0.6875rem}}
.service-tabs{flex-wrap:nowrap;min-width:0}.header>.service-tabs{width:auto}
[data-theme=dark] .help-card p,[data-theme=dark] .help-card li,[data-theme=dark] #faq summary,[data-theme=dark] #faq p,[data-theme=dark] .field-hint,[data-theme=dark] .card-heading p,[data-theme=dark] .history-note,[data-theme=dark] .query-message,[data-theme=dark] .task-meta,[data-theme=dark] .subscription-eyebrow,[data-theme=dark] .progress-note{color:var(--muted)}[data-theme=dark] #faq details,[data-theme=dark] .subscription-account{border-color:var(--line)}[data-theme=dark] .ok,[data-theme=dark] .experience-steps .done{color:#a3dfbd}[data-theme=dark] .err{color:#ffb0a8}[data-theme=dark] .account-preview>div>span{color:#b2cfbf}
@media(max-width:760px){html[lang=en] .service-tabs button{font-size:0.625rem;padding-inline:7px}.header>.service-tabs{width:100%}}

/* Queue cards, filters and detail surfaces share the dark palette. */
[data-theme=dark] .task-item,[data-theme=dark] .query-summary,[data-theme=dark] .renewal-dialog{background:var(--paper);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .task-shortcut,[data-theme=dark] .renewal-dialog dl{background:#1d2e48;color:#c4d6f6;border-color:#385275}
[data-theme=dark] .task-shortcut button{color:#b3cbff}
[data-theme=dark] .task-filters button,[data-theme=dark] .query-filters button{background:#1d2a40;color:#bdcbe0;border-color:#3a4b65}
[data-theme=dark] .task-filters button[aria-pressed=true],[data-theme=dark] .query-filters button[aria-pressed=true]{background:#284570;color:#e0eaff;border-color:#799fef}
[data-theme=dark] .task-filters button:hover,[data-theme=dark] .query-filters button:hover{border-color:#8eadff}
[data-theme=dark] .task-item-heading h3,[data-theme=dark] .task-email,[data-theme=dark] .query-summary-head h3,[data-theme=dark] .query-item .plan-line{color:var(--ink)}
[data-theme=dark] .task-stage{color:#bdcbe0}
[data-theme=dark] .task-actions,[data-theme=dark] .query-filters{border-color:var(--line)}
[data-theme=dark] .task-badge,[data-theme=dark] .query-status.processing{background:#243d61;color:#b7d0ff;border-color:#486990}
[data-theme=dark] .task-badge.success,[data-theme=dark] .query-status.unused,[data-theme=dark] .query-item.unused .ghost,[data-theme=dark] .query-filters button[data-filter=unused][aria-pressed=true]{background:#173d35;color:#a3edc5;border-color:#396b55}
[data-theme=dark] .task-badge.attention,[data-theme=dark] .query-status.review,[data-theme=dark] .renewal-cancel-btn,[data-theme=dark] .result-emblem.attention{background:#44351d;color:#f4d395;border-color:#746039}
[data-theme=dark] .task-error,[data-theme=dark] .task-storage-note.warn,[data-theme=dark] .plan-note{color:#f4d395}
[data-theme=dark] .task-steps li{color:#a5b2c7;border-color:#3a4b65}
[data-theme=dark] .task-steps li.done{color:#a3dfbd;border-color:#65ae87}
[data-theme=dark] .task-steps li.current{color:#b7d0ff;border-color:#799fef}
[data-theme=dark] .task-steps li.error,[data-theme=dark] .renewal-dialog .err{color:#ffb0a8;border-color:#cb8078}
[data-theme=dark] .query-status.error{background:#492a30;color:#ffb0a8;border-color:#885058}
[data-theme=dark] .query-status.used,[data-theme=dark] .query-status.unavailable,[data-theme=dark] .private-tag,[data-theme=dark] .query-filters button[data-filter=used][aria-pressed=true]{background:#29364b;color:#d2dced;border-color:#53617a}
[data-theme=dark] .renewal-dialog::backdrop{background:#030914b8}
[data-theme=dark] .renewal-cancel-btn:hover{background:#534022}

/* Remaining result and progress states. */
[data-theme=dark] #subscription-plan{color:var(--ink)}
[data-theme=dark] #subscription-pro20x[data-tone=success]{color:#a3edc5}
[data-theme=dark] .subscription-renewal{background:#1b2a40;border-color:#3a4b65}
[data-theme=dark] .subscription-highlights{border-color:var(--line)}
[data-theme=dark] .subscription-renewal .renewal-cancel-btn{background:#44351d;color:#f4d395;border-color:#746039}
[data-theme=dark] .step{color:#a5b2c7;border-color:#3a4b65}
[data-theme=dark] .step.on{color:#b7d0ff;border-color:#799fef}
[data-theme=dark] .step.done{color:#a3dfbd;border-color:#65ae87}
[data-theme=dark] .step.error{color:#ffb0a8;border-color:#cb8078}
[data-theme=dark] .progress-stage.review>span{color:#f4d395}
[data-theme=dark] .order-help .error-reference,[data-theme=dark] .notice-title{color:var(--muted)}
[data-theme=dark] .field-feedback.bad{background:#39232c;border-color:#885058}
html[lang=en] .query-item-bottom{flex-wrap:wrap}
html[lang=en] .progress-stage{flex-wrap:wrap}
html[lang=en] .task-item-heading{flex-wrap:wrap}

/* Russian labels wrap without pushing mobile forms outside the viewport. */
html[lang=ru] .query-item-bottom,html[lang=ru] .progress-stage,html[lang=ru] .task-item-heading{flex-wrap:wrap}
html[lang=ru] .service-tabs button{white-space:normal;min-width:0}
html[lang=ru] .session-clear-btn{white-space:normal}
html[lang=ru] .experience-steps li{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){html[lang=ru] .service-tabs button{font-size:0.625rem;padding-inline:5px}html[lang=ru] .experience-top>span{display:none}html[lang=ru] .experience-steps li{font-size:0.625rem}html[lang=ru] .experience-account-heading p{font-size:0.6875rem}html[lang=ru] .session-actions .primary-btn{font-size:0.75rem}.header .brand{min-width:0}.appearance-controls{gap:5px}.language-switch button{padding-inline:7px;min-width:34px}}

@media(max-width:760px){html[lang=ru] .experience-steps li{flex:1;flex-direction:column;align-items:flex-start;overflow-wrap:normal}}

/* Scale text, including future query/results, without enlarging the page width. */
html[data-font-size=large]{font-size:125%}
html[data-font-size=extra]{font-size:150%}
.font-size-control{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.75rem;white-space:nowrap}
.font-size-control select{min-height:44px;max-width:160px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font:inherit;cursor:pointer}
.font-size-control select:focus-visible{outline:3px solid #82a9ff;outline-offset:3px}
.header{height:auto;min-height:64px;flex-wrap:wrap;padding-block:10px}
.appearance-controls{flex-wrap:wrap}
html[data-font-size] .service-tabs button{white-space:normal}
html[data-font-size] .experience-steps li{min-width:0;overflow-wrap:anywhere}
html[data-font-size] .progress-stage,html[data-font-size] .task-item-heading,html[data-font-size] .query-item-bottom{flex-wrap:wrap}
html[data-font-size] .session-clear-btn{white-space:normal}
@media(max-width:1000px){.header{grid-template-columns:minmax(0,1fr)}.header .brand{grid-column:1;grid-row:1}.header .appearance-controls{grid-column:1;grid-row:2;justify-content:flex-end}.header>.service-tabs{grid-row:3}}
@media(max-width:760px){html[data-font-size=large] .experience-steps li,html[data-font-size=extra] .experience-steps li{flex:1;flex-direction:column;align-items:flex-start}html[data-font-size=extra] .session-actions,html[data-font-size=extra] .subscription-toolbar{grid-template-columns:minmax(0,1fr)}.font-size-control select{max-width:140px}.appearance-controls{gap:6px}}
html[data-font-size=large] .service-tabs,html[data-font-size=extra] .service-tabs{flex-wrap:wrap;justify-content:flex-start}
