/* «Порядок». Presentation layer for the complete CRM. Center microsites use their own CSS. */
html.tc-order:not([data-order-custom="true"]) {
  --bg:#f1f5fa!important;--bg2:#fff!important;--bg3:#f6f8fc!important;
  --card:#fff!important;--card2:#edf3ff!important;--border:#d9e2ee!important;--border2:#b9c9de!important;
  --text:#182638!important;--text1:#182638!important;--text2:#53647a!important;--text3:#60718a!important;
  --accent:#2359d4!important;--accent2:#2359d4!important;--accent3:#18734e!important;
  --accent4:#bb3346!important;--accent5:#875600!important;--glow:transparent!important;--glow2:transparent!important;
  color-scheme:light;
}
html.tc-order {--radius:12px;--radius-sm:8px}
html.tc-order body,html.tc-order button,html.tc-order input,html.tc-order select,html.tc-order textarea {font-family:'Golos Text',sans-serif}
html.tc-order body{background:var(--bg)}
html.tc-order .login-card{box-shadow:none;border-radius:14px;border-color:var(--border);padding:36px}
html.tc-order .login-card::before{display:none}
html.tc-order .login-box {background:var(--card);border-color:var(--border);border-radius:14px}
html.tc-order .login-box::before {display:none}
html.tc-order #login-screen {background-image:none}
html.tc-order .login-logo {font-family:'Golos Text',sans-serif;background:none;color:var(--accent);-webkit-text-fill-color:var(--accent)}
html.tc-order .btn-login {background:var(--accent);border-radius:7px}
html.tc-order .login-error {color:var(--accent4);background:#fff0f2;border-color:#e4bbc3}
html.tc-order .app-layout {min-height:calc(100dvh - 66px)}
html.tc-order :is(h1,h2,h3,h4,.page-title,.section-title,.card-title,.stat-card-val,.nav-logo,.topbar-logo,.hero h1,.pricing-name,.modal-title){font-family:'Golos Text',sans-serif!important;letter-spacing:-.025em}
html.tc-order :is(button,a,input,select,textarea):focus-visible {outline:3px solid var(--accent);outline-offset:3px}
html.tc-order .content {padding:30px clamp(18px,3vw,42px);min-width:0}
html.tc-order .page {animation:none}
html.tc-order .page-title {font-size:clamp(1.4rem,2vw,1.9rem);font-weight:650}
html.tc-order .page-sub {margin-top:5px;line-height:1.6}
html.tc-order .topbar {background:var(--bg2);height:66px;border-color:var(--border);box-shadow:none}
html.tc-order .topbar-logo {background:none;-webkit-text-fill-color:var(--text);color:var(--text);font-size:1.25rem}
html.tc-order .sidebar {top:66px;height:calc(100dvh - 66px);width:238px;padding:18px 12px;background:var(--bg2)}
html.tc-order .sidebar-section {text-transform:none;letter-spacing:0;font-size:.76rem;padding:22px 12px 8px;color:var(--text3)}
html.tc-order .nav-item {padding:11px 12px;border-radius:7px;transition:background-color .15s,color .15s}
html.tc-order button.nav-item {background:transparent;border:0;color:var(--text);font:inherit;text-align:left;width:100%;cursor:pointer}
html.tc-order .nav-item.active {border-right:0;box-shadow:inset 3px 0 var(--accent);background:var(--card2);color:var(--accent);font-weight:650}
html.tc-order :is(.card,.stat-card,.feature-card,.pricing-card){box-shadow:none;border:1px solid var(--border);background:var(--card)}
html.tc-order .stat-card {padding:20px}
html.tc-order .stat-card-label {text-transform:none;letter-spacing:0;font-weight:500;color:var(--text2)}
html.tc-order .stat-card-val {font-size:2rem;font-variant-numeric:tabular-nums}
html.tc-order .btn {border-radius:7px;font-weight:550;box-shadow:none;transition:background-color .15s,border-color .15s;min-height:38px}
html.tc-order .btn-primary {background:var(--accent);border:1px solid var(--accent);color:white}
html.tc-order .btn-primary:hover {filter:brightness(.94);transform:none;box-shadow:none}
html.tc-order .btn-ghost {background:var(--bg2);border:1px solid var(--border);color:var(--text)}
html.tc-order .btn-ghost:hover {background:var(--bg3);border-color:var(--border2)}
html.tc-order :is(.form-input,.form-select,textarea.form-input){background:var(--bg2);color:var(--text);border:1px solid var(--border2);border-radius:7px;min-height:42px}
html.tc-order .form-label {color:var(--text2);font-size:.8rem;text-transform:none;letter-spacing:0}
html.tc-order :is(th,td){padding:13px 14px;border-color:var(--border)}
html.tc-order th {text-transform:none;letter-spacing:0;background:var(--bg3);color:var(--text2);font-size:.78rem}
html.tc-order tr:hover td {background:var(--bg3)}
html.tc-order .table-wrap {overflow:auto;max-width:100%;border-radius:8px}
html.tc-order .tab {border-radius:6px;font-weight:550}
html.tc-order .tab.active {color:var(--accent);background:var(--card2)}
html.tc-order :is(.modal,.tcx .panel,.tcx.dialog .dialog-content){background:var(--bg2);color:var(--text);border-color:var(--border);box-shadow:0 22px 70px #18263826}
html.tc-order .modal-overlay {background:#18263866;backdrop-filter:blur(3px)}
html.tc-order :is(.badge,.pill){border-radius:5px}
html.tc-order .badge-green {background:#e7f5ee;color:#18734e}
html.tc-order .badge-red {background:#fff0f2;color:#a9273e}
html.tc-order :is(.badge-yellow,.badge-orange){background:#fff4d7;color:#875600}
html.tc-order .badge-blue {background:#eaf0ff;color:#2359d4}
html.tc-order .badge-purple {background:#eaf0ff;color:#2359d4}
html.tc-order .badge-gray {background:var(--bg3);color:var(--text2)}
html.tc-order .text-green{color:var(--accent3)}
html.tc-order .text-yellow{color:var(--accent5)}
html.tc-order .text-red{color:var(--accent4)}
html.tc-order :is(.tcx,.copilot){--text1:var(--text);--text-muted:var(--text2)}
html.tc-order .tcx.copilot {background:var(--bg2);border:1px solid var(--border2);border-radius:14px;box-shadow:0 16px 60px #18263826}
html.tc-order .tcx :is(.panel,.message,.proposal,.notice){border-color:var(--border);color:var(--text)}
html.tc-order .tcx :is(input,textarea,select){background:var(--bg2);color:var(--text);border-color:var(--border2)}
html.tc-order .tcx .pill{color:var(--accent)}
html.tc-order .tcx .good{color:var(--accent3)}
html.tc-order .tcx .warn{color:var(--accent5)}
html.tc-order .tcx .error{color:var(--accent4)}
html.tc-order .tcx-copilot-button {background:var(--accent);color:white;box-shadow:0 6px 18px #2359d433}
html.tc-order :is(.tc90-lesson-card,.tc90-teacher-group-card,.tc93-day,.tc93-card){background:var(--card);border-color:var(--border);box-shadow:none}
html.tc-order .tc93-card {background:var(--card2)}
html.tc-order .tc93-title {color:var(--text)}
html.tc-order .tc93-grid {gap:0;border:1px solid var(--border);border-radius:10px}
html.tc-order .tc93-day {border:0;border-right:1px solid var(--border);border-radius:0}
html.tc-order .tc93-day:last-child {border-right:0}
html.tc-order .tc93-day-head {color:var(--text);background:var(--bg2)}
html.tc-order .tc93-day.today {box-shadow:inset 0 3px var(--accent)}
html.tc-order .tc90-chip {background:var(--bg3);border-color:var(--border);color:var(--text2)}
html.tc-order .tc90-type-badge {background:var(--card2);color:var(--accent)}
html.tc-order .tc90-type-badge.individual {background:#e7f5ee;color:#18734e}
html.tc-order :is(.tc90-mini-line,.progress-bar){background:var(--border)}
html.tc-order :is(.nav-logo,.stat-num) {background:none;-webkit-text-fill-color:var(--accent);color:var(--accent)}
html.tc-order #landing {background:var(--bg2)}
html.tc-order #landing .nav {background:var(--bg2);border-color:var(--border);backdrop-filter:none}
html.tc-order #landing .hero {background:var(--bg2)!important;background-image:none!important;padding:100px 32px 56px;max-width:1180px;align-self:center;width:100%;min-height:auto;transform:none;backface-visibility:visible}
html.tc-order .hero h1 {font-size:clamp(2rem,4.3vw,4rem);line-height:1.12;font-weight:650;max-width:900px;margin-inline:auto}
html.tc-order .hero h1 span {background:none;-webkit-text-fill-color:var(--text);color:var(--text)}
html.tc-order #landing .hero::before,html.tc-order #landing .hero::after,html.tc-order .feature-card::before{display:none!important;content:none!important;background:none!important}
html.tc-order #landing .nav {background:var(--bg2)!important}
html.tc-order #landing .hero h1 {font-size:clamp(2.2rem,4.3vw,3.8rem);line-height:1.12;max-width:920px;text-wrap:balance;margin-bottom:24px}
html.tc-order #landing .hero-badge {letter-spacing:0;border:0;background:transparent;padding:0;margin-bottom:24px;color:var(--text2);font-weight:500}
html.tc-order #landing .hero-badge span {display:none}
html.tc-order #landing .hero p {max-width:720px;margin-bottom:30px;font-size:1.05rem;line-height:1.75}
html.tc-order #landing .hero-btns {margin-bottom:48px}
html.tc-order #landing .hero-btns .btn {min-height:48px;padding:12px 26px;font-size:.95rem}
html.tc-order #landing .hero-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;width:100%;max-width:940px;padding-top:32px;border-top:1px solid var(--border)}
html.tc-order #landing .hero-stats .stat-num {font-size:1.25rem;font-weight:600;color:var(--text);-webkit-text-fill-color:var(--text);background:none;letter-spacing:-.02em}
html.tc-order #landing .hero-stats .stat-label {font-size:.8rem;line-height:1.5;color:var(--text2);margin-top:6px}
html.tc-order #landing>.section-divider {width:100%;height:1px;margin:0;background:var(--border)}
html.tc-order .hero p {color:var(--text2);max-width:680px;line-height:1.75}
html.tc-order .section {padding:70px max(24px,6vw);max-width:1440px;width:100%;align-self:center}
html.tc-order .section-title {font-weight:650;line-height:1.25}
html.tc-order :is(.feature-card,.pricing-card):hover {transform:none;box-shadow:none;border-color:var(--border2)}
html.tc-order .feature-card {padding:26px}
html.tc-order .feature-card h3 {font-size:1.06rem;font-weight:650}
html.tc-order .pricing-card.popular {background:var(--card2);border-color:var(--accent)}
html.tc-order .pricing-card.popular::before {background:var(--accent)}
html.tc-order .pricing-period {color:var(--text2)}
html.tc-order .smart-import-highlight,html.tc-order .pricing-account-note {background:var(--bg3);border:1px solid var(--border);box-shadow:none}
html.tc-order footer {background:var(--bg3);border-color:var(--border);color:var(--text2)}
html.tc-order .order-calendar {margin-bottom:20px;border:1px solid var(--border);border-radius:12px;background:var(--card);overflow:hidden}
html.tc-order #page-admin-groups #groups-grid[hidden],html.tc-order #teacher-groups-list[hidden],html.tc-order #student-groups-cards[hidden],html.tc-order #order-calendar[hidden]{display:none!important}
html.tc-order :is([data-order-calendar],#order-billing-settings *,#order-billing-dialog *,#billing-gateway-body *)[hidden]{display:none!important}
html.tc-order .order-calendar-toolbar {display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:15px 18px;border-bottom:1px solid var(--border)}
html.tc-order .order-calendar-actions {display:flex;gap:6px;align-items:center;flex-wrap:wrap}
html.tc-order .order-calendar-range {font-weight:650;font-size:.98rem}
html.tc-order .order-view-switch {display:flex;gap:4px;margin-bottom:14px;flex-wrap:wrap}
html.tc-order .order-view-switch [aria-pressed="true"] {background:var(--card2);border-color:var(--accent);color:var(--accent)}
html.tc-order .order-calendar-scroll {overflow:auto;max-height:700px;overscroll-behavior:contain}
html.tc-order .order-week {display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));min-width:1015px}
html.tc-order .order-day {min-width:0;border-right:1px solid var(--border);background:var(--card);min-height:420px}
html.tc-order .order-day:last-child {border-right:0}
html.tc-order .order-day-heading {position:sticky;top:0;z-index:1;background:var(--card);padding:13px 12px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;font-size:.8rem;gap:6px}
html.tc-order .order-day.today .order-day-heading {box-shadow:inset 0 3px var(--accent);color:var(--accent)}
html.tc-order .order-day-body {display:grid;gap:8px;padding:10px;align-content:start}
html.tc-order .order-event {width:100%;display:grid;gap:7px;text-align:left;white-space:normal;border:1px solid #d3dff8;border-left:3px solid var(--accent);background:#edf3ff;color:#213d74;border-radius:7px;padding:11px;cursor:pointer;overflow-wrap:anywhere}
html.tc-order .order-event.individual {background:#eaf6ef;border-color:#c9e6d6;border-left-color:#18734e;color:#19593f}
html.tc-order .order-event b {font-size:.86rem;font-weight:600;line-height:1.4}
html.tc-order .order-event span {font-size:.73rem;line-height:1.45}
html.tc-order .order-event time {font-size:.75rem;font-weight:650;font-variant-numeric:tabular-nums}
html.tc-order .order-empty {color:var(--text3);font-size:.8rem;padding:20px 10px;text-align:center}
html.tc-order .order-status {padding:24px;color:var(--text2);display:flex;gap:12px;align-items:center;flex-wrap:wrap}
html.tc-order .order-billing-options {display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:14px;margin-top:20px}
html.tc-order .order-billing-check {display:flex;gap:10px;align-items:flex-start;margin:12px 0;color:var(--text);font-size:.87rem;line-height:1.6;cursor:pointer}
html.tc-order .order-billing-check input {width:18px;height:18px;flex-shrink:0;margin-top:3px;accent-color:var(--accent)}
html.tc-order .order-billing-total {margin:18px 0;font-size:1.1rem}
html.tc-order .order-trial-form {display:grid;gap:12px}
html.tc-order .order-gateway-rows {display:grid;gap:14px;margin-top:20px}
html.tc-order .order-gateway-row {display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));align-items:end;gap:14px;padding:16px;border:1px solid var(--border);border-radius:8px}
html.tc-order .order-gateway-row label {min-width:0}
html.tc-order .order-gateway-row select {width:100%}
html.tc-order #billing-gateway-body label {display:grid;gap:7px;margin-block:14px}
html.tc-order #billing-gateway-body input[type="checkbox"] {width:20px;height:20px;accent-color:var(--accent)}
html.tc-order[data-order-custom="true"] .order-event {background:var(--card2);color:var(--text)}
@media(min-width:1300px){html.tc-order .order-week{grid-template-columns:repeat(7,minmax(0,1fr));min-width:0}}
@media(max-width:900px){html.tc-order .content{padding:20px 16px}html.tc-order .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html.tc-order .sidebar{top:66px;height:calc(100dvh - 66px);width:min(84vw,290px)}}
@media(max-width:600px){
  html.tc-order .hero{padding:48px 20px 38px}html.tc-order .section{padding:44px 20px}
  html.tc-order .hero h1{font-size:2rem}html.tc-order .section-title{font-size:1.65rem}
  html.tc-order .topbar{height:66px;min-height:66px;padding:8px 12px}
  html.tc-order :is(.card,.stat-card){padding:16px}html.tc-order .page-header{margin-bottom:20px;gap:12px;flex-wrap:wrap}
  html.tc-order .order-week{grid-template-columns:repeat(7,180px);min-width:1260px}
  html.tc-order .order-calendar-toolbar{padding:12px;gap:12px}html.tc-order .order-day{min-height:330px}
  html.tc-order .modal-overlay.open .modal{max-height:calc(100dvh - 24px);overflow-y:auto}
  html.tc-order .order-view-switch .btn{flex:1}
  html.tc-order .order-billing-options{grid-template-columns:1fr}
  html.tc-order .order-gateway-row{grid-template-columns:1fr}
  html.tc-order .tcx.copilot{border-radius:12px 12px 0 0}
}
@media(prefers-reduced-motion:reduce){html.tc-order *,html.tc-order *::before,html.tc-order *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Subscription: readable account summary first, optional renewal and history below. */
html.tc-order #order-billing-settings.order-billing {padding:0;overflow:clip;container-type:inline-size;box-shadow:none;border-radius:14px}
html.tc-order .billing-overview {padding:26px 28px 22px}
html.tc-order .billing-heading,html.tc-order .billing-plan-row {display:flex;align-items:center;justify-content:space-between;gap:20px}
html.tc-order .billing-heading .card-title {margin:0;font-size:1rem;font-weight:600}
html.tc-order .billing-state {display:inline-flex;align-items:center;gap:6px;flex-shrink:0;background:#eaf5ef;color:#176b48;padding:5px 10px;border-radius:6px;font-size:.75rem;font-weight:500;line-height:1.5}
html.tc-order .billing-state svg {width:14px;height:14px}
html.tc-order .billing-state.is-expired {background:#fff0e2;color:#8b4900}
html.tc-order .billing-plan-row {margin-top:28px;align-items:flex-end}
html.tc-order .billing-label {display:block;color:var(--text2);font-size:.78rem;font-weight:400;line-height:1.5}
html.tc-order .billing-plan-name {font-size:1.85rem;font-weight:650;line-height:1.2;margin:5px 0 7px;letter-spacing:-.03em}
html.tc-order .billing-plan-limit {font-size:.82rem;color:var(--text2);line-height:1.5}
html.tc-order .billing-renew-button {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 18px;font-size:.86rem;white-space:nowrap}
html.tc-order .billing-renew-button svg {width:18px;height:18px}
html.tc-order .billing-facts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:28px 0 0;padding:24px 0 0;border-top:1px solid var(--border);gap:20px}
html.tc-order .billing-fact {min-width:0}
html.tc-order .billing-fact:not(:first-child) {padding-left:24px;border-left:1px solid var(--border)}
html.tc-order .billing-date {margin:7px 0 0;color:var(--text);font-size:1rem;font-weight:550;line-height:1.45;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
html.tc-order .billing-fact-hint {display:block;color:var(--text2);font-size:.74rem;margin-top:5px}
html.tc-order .billing-auto-status {display:flex;align-items:center;gap:8px;margin-top:22px;color:var(--text2);font-size:.78rem;line-height:1.5;flex-wrap:wrap}
html.tc-order .billing-auto-dot {width:7px;height:7px;border-radius:50%;background:#97a6b6;flex-shrink:0}
html.tc-order .billing-auto-dot.is-on {background:#21845c}
html.tc-order .billing-prepay-note {margin-left:auto;font-size:.75rem}
html.tc-order .billing-text-button {display:inline-flex;align-items:center;justify-content:center;gap:6px;background:none;border:0;padding:5px 0;font:inherit;font-size:.78rem;color:var(--accent);cursor:pointer;text-align:left;touch-action:manipulation}
html.tc-order .billing-text-button:hover {text-decoration:underline;text-underline-offset:3px}
html.tc-order .billing-text-button:disabled {opacity:.55;cursor:wait}
html.tc-order .billing-text-button svg {width:16px;height:16px}
html.tc-order .billing-renewal,html.tc-order .billing-history {border-top:1px solid var(--border)}
html.tc-order :is(.billing-renewal,.billing-history)>summary {list-style:none;display:flex;align-items:center;gap:12px;justify-content:space-between;padding:20px 28px;cursor:pointer;touch-action:manipulation}
html.tc-order :is(.billing-renewal,.billing-history)>summary::-webkit-details-marker {display:none}
html.tc-order :is(.billing-renewal,.billing-history)>summary::marker {content:''}
html.tc-order :is(.billing-renewal,.billing-history)>summary:hover {background:var(--bg3)}
html.tc-order :is(.billing-renewal,.billing-history)>summary:focus-visible {outline:3px solid var(--accent);outline-offset:-3px}
html.tc-order :is(.billing-renewal,.billing-history)>summary>svg {width:16px;height:16px;color:var(--text2);flex-shrink:0;transition:transform .15s}
html.tc-order :is(.billing-renewal,.billing-history)[open]>summary>svg {transform:rotate(90deg)}
html.tc-order .billing-section-title {font-size:.88rem;font-weight:550;line-height:1.5;color:var(--text);margin:0}
html.tc-order .billing-section-sub {display:block;color:var(--text2);font-size:.77rem;font-weight:400;line-height:1.6;margin-top:4px}
html.tc-order .billing-renewal-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:28px;padding:4px 28px 28px;align-items:start}
html.tc-order .billing-selectors {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px}
html.tc-order .billing-selectors .form-group {min-width:0;margin:0 0 14px}
html.tc-order .billing-selectors select,html.tc-order .billing-selectors input {width:100%;font-size:.86rem;min-height:44px;padding:10px 12px}
html.tc-order .billing-auto-option {padding:16px 0;margin:0 0 12px;border-top:1px solid var(--border);gap:11px;align-items:flex-start}
html.tc-order .billing-auto-option strong {font-size:.83rem;font-weight:500;color:var(--text)}
html.tc-order .billing-auto-option input {margin-top:2px}
html.tc-order .billing-receipt {background:var(--bg3);border-radius:10px;padding:20px;min-width:0}
html.tc-order .billing-receipt .order-billing-total {margin:20px 0 0}
html.tc-order .billing-total-amount {display:block;font-size:1.85rem;font-weight:650;line-height:1.35;letter-spacing:-.03em;color:var(--text);font-variant-numeric:tabular-nums}
html.tc-order .billing-savings {margin:5px 0 0;font-size:.8rem;color:var(--accent3)}
html.tc-order .billing-savings s {color:var(--text2);margin-right:6px}
html.tc-order .billing-charge {font-size:.84rem;font-weight:550;color:var(--text);margin:12px 0}
html.tc-order .billing-period-preview {padding-top:16px;border-top:1px solid var(--border);margin-top:16px;display:grid;gap:6px}
html.tc-order .billing-period-preview strong {font-size:.82rem;font-weight:500;line-height:1.6;color:var(--text)}
html.tc-order .billing-pay-button {display:block;width:100%;min-height:44px;margin-top:20px;font-size:.84rem;padding:11px 14px;white-space:normal}
html.tc-order .billing-pay-button:disabled {opacity:.55;cursor:not-allowed}
html.tc-order .billing-safe-note {font-size:.7rem;line-height:1.6;color:var(--text2);margin-top:10px}
html.tc-order .billing-notice {color:var(--text2);font-size:.78rem;line-height:1.6;padding:12px 14px;background:var(--bg3);border-left:2px solid var(--border2);border-radius:0 6px 6px 0;margin-top:16px}
html.tc-order .billing-notice.is-warning {color:#875600;background:#fff6df;border-color:#dab265}
html.tc-order .billing-error {color:var(--accent4);font-size:.82rem;line-height:1.6;margin:0 28px 20px;padding:12px 14px;background:#fff0f2;border-radius:7px}
html.tc-order .billing-history>summary {justify-content:flex-start;gap:9px;padding-block:18px}
html.tc-order .billing-history>summary>svg {margin-left:auto}
html.tc-order .billing-history-count {font-size:.72rem;font-variant-numeric:tabular-nums;line-height:1.5;padding:1px 6px;border-radius:5px;background:var(--bg3);color:var(--text2)}
html.tc-order .billing-history-content {padding:0 28px 22px}
html.tc-order .billing-history-toolbar {display:flex;justify-content:flex-end;margin-bottom:8px}
html.tc-order .billing-history-table {border:1px solid var(--border);border-radius:8px}
html.tc-order .billing-history-table table {width:100%;font-size:.79rem}
html.tc-order .billing-history-table :is(th,td) {padding:13px 12px;font-variant-numeric:tabular-nums}
html.tc-order .billing-history-table th {font-size:.73rem;font-weight:500}
html.tc-order .billing-history-actions {display:flex;flex-direction:column;gap:3px}
html.tc-order .billing-payment-state {display:inline-flex;align-items:center;font-size:.73rem;line-height:1.5;padding:3px 8px;border-radius:5px;white-space:nowrap}
html.tc-order .billing-payment-state.state-paid {background:#eaf5ef;color:#176b48}
html.tc-order .billing-payment-state.state-failed {background:#fff0f2;color:#a9273e}
html.tc-order .billing-payment-state.state-pending {background:#fff4d7;color:#875600}
html.tc-order .billing-history-empty {padding:8px 0 6px;color:var(--text2);font-size:.82rem;line-height:1.6}
@container(max-width:780px){html.tc-order .billing-renewal-layout{grid-template-columns:1fr;gap:12px}html.tc-order .billing-prepay-note{flex-basis:100%;margin-left:15px}}
@media(max-width:768px){html.tc-order #landing .hero{padding:44px 20px 38px}html.tc-order #landing .hero h1{font-size:clamp(1.8rem,6.2vw,2.8rem);max-width:680px}html.tc-order #landing .hero p{font-size:.94rem;line-height:1.7}html.tc-order #landing .hero-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px;padding-top:28px}html.tc-order #landing .hero-btns{margin-bottom:32px;max-width:340px}html.tc-order #landing .hero-badge{font-size:.76rem;margin-bottom:20px}}
@media(max-width:600px){
  html.tc-order .billing-overview{padding:20px}
  html.tc-order .billing-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}
  html.tc-order .billing-heading .card-title{font-size:1rem}
  html.tc-order .billing-plan-row{margin-top:22px;align-items:center;gap:16px}
  html.tc-order .billing-plan-name{font-size:1.65rem}
  html.tc-order .billing-renew-button{font-size:.77rem;padding:10px 12px;white-space:normal;max-width:180px;gap:7px}
  html.tc-order .billing-renew-button svg{flex-shrink:0}
  html.tc-order .billing-facts{grid-template-columns:1fr;gap:0;margin-top:22px;padding-top:4px}
  html.tc-order .billing-fact{display:grid;grid-template-columns:minmax(100px,.9fr) minmax(0,1.2fr);gap:6px 14px;padding:16px 0}
  html.tc-order .billing-fact:not(:first-child){border-left:0;border-top:1px solid var(--border);padding-left:0}
  html.tc-order .billing-date{font-size:.89rem;margin:0;text-align:right}
  html.tc-order .billing-fact-hint{grid-column:2;text-align:right;margin-top:0;font-size:.72rem}
  html.tc-order .billing-auto-status{margin-top:8px;font-size:.74rem;gap:7px}
  html.tc-order .billing-prepay-note{margin-top:2px;flex-basis:100%;margin-left:14px;font-size:.72rem}
  html.tc-order :is(.billing-renewal,.billing-history)>summary{padding:18px 20px}
  html.tc-order .billing-renewal-layout{grid-template-columns:1fr;gap:14px;padding:0 20px 20px}
  html.tc-order .billing-selectors{grid-template-columns:1fr}
  html.tc-order .billing-receipt{padding:18px}
  html.tc-order .billing-error{margin:0 20px 18px}
  html.tc-order .billing-history-content{padding:0 20px 20px}
  html.tc-order .billing-history-table{border:0;overflow:visible}
  html.tc-order .billing-history-table table,html.tc-order .billing-history-table tbody{display:block;width:100%}
  html.tc-order .billing-history-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  html.tc-order .billing-history-table tr{display:block;border:1px solid var(--border);border-radius:8px;padding:10px 12px;margin:0 0 12px}
  html.tc-order .billing-history-table td{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;border:0;padding:6px 0;font-size:.76rem;text-align:right;overflow-wrap:anywhere;min-height:0}
  html.tc-order .billing-history-table td::before{content:attr(data-label);color:var(--text2);font-weight:400;text-align:left;position:static;white-space:normal;width:auto;max-width:none;flex:none;padding:0;overflow-wrap:normal;word-break:normal;line-height:1.5}
  html.tc-order .billing-history-table td.is-empty{display:none}
  html.tc-order .billing-history-table .billing-payment-state{justify-self:end}
  html.tc-order .billing-history-actions .billing-text-button{justify-content:flex-end;text-align:right}
}

html.tc-order .billing-included{margin:16px 0 0;padding-top:16px;border-top:1px solid var(--border);font-size:13px;color:var(--text2)}

html.tc-billing-restricted :is(#app,#landing,#login-page,#tcx-copilot,#tcx-copilot-button){display:none!important}
html.tc-order .billing-recovery{min-height:100dvh;background:var(--bg);color:var(--text)}
html.tc-order .billing-recovery-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 32px;background:var(--card);border-bottom:1px solid var(--border)}
html.tc-order .billing-recovery-header strong{font-size:20px;letter-spacing:-.04em}
html.tc-order .billing-recovery-main{max-width:1100px;margin:auto;padding:44px 24px 64px}
html.tc-order .billing-recovery-main>h1{font-size:clamp(25px,4vw,34px);line-height:1.2;letter-spacing:-.035em}
html.tc-order .billing-recovery-copy{max-width:740px;margin:14px 0 28px;line-height:1.7;color:var(--text2)}
html.tc-order .order-trial-form>.billing-text-button{margin-block:12px;min-height:44px}
html.tc-order .order-trial-form{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
html.tc-order .order-trial-form>.form-group{margin:0}
html.tc-order .order-trial-form>:not(.form-group){grid-column:1/-1}
@media(max-width:600px){html.tc-order .order-trial-form{grid-template-columns:1fr}}
@media(max-width:600px){html.tc-order .billing-recovery-header{padding:14px 18px}html.tc-order .billing-recovery-main{padding:30px 16px 50px}}
