:root {
    --canvas: #f5f7fa;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-blue: #ebf8fe;
    --ink: #101828;
    --ink-soft: #344054;
    --muted: #667085;
    --muted-light: #98a2b3;
    --border: #e4e7ec;
    --border-strong: #d0d5dd;
    --cyan: #12b9ee;
    --cyan-dark: #0895c8;
    --cyan-soft: #e7f8fe;
    --blue: #2e90fa;
    --violet: #7f56d9;
    --green: #12b76a;
    --green-dark: #067647;
    --green-soft: #ecfdf3;
    --amber: #f79009;
    --amber-dark: #b54708;
    --amber-soft: #fffaeb;
    --red: #f04438;
    --red-dark: #b42318;
    --red-soft: #fef3f2;
    --rose: #e84a7f;
    --rose-soft: #fff1f5;
    --sidebar-w: 232px;
    --sidebar-left: 20px;
    --sidebar-gap: 32px;
    --topbar-h: 64px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-sm: 0 4px 14px rgba(16, 24, 40, .06);
    --shadow-md: 0 14px 34px rgba(16, 24, 40, .09);
    color-scheme: light;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 22px); }
html, body { overscroll-behavior-y: none; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
body.sidebar-open, body.dialog-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.delete-icon { stroke-width: 1.55; }
[hidden] { display: none !important; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid rgba(18, 185, 238, .28); outline-offset: 2px; }
::selection { background: rgba(18, 185, 238, .2); }

.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    z-index: 35;
    top: calc(var(--topbar-h) + 18px);
    bottom: 20px;
    left: var(--sidebar-left);
    display: flex;
    width: var(--sidebar-w);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #edf0f3;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .075);
    transition: transform .24s ease, opacity .2s ease;
}
.sidebar-profile { display: flex; flex: 0 0 auto; align-items: center; flex-direction: column; padding: 53px 20px 36px; text-align: center; }
.sidebar-avatar { position: relative; display: grid; width: 64px; height: 64px; place-items: center; border: 2px solid #e4e7ec; border-radius: 50%; color: #087da7; background: linear-gradient(145deg, #eaf9fe, #c9f0fc); box-shadow: inset 0 0 0 4px #fff, 0 5px 14px rgba(16, 24, 40, .08); font-size: 16px; font-weight: 800; }
.avatar-presence { position: absolute; right: 2px; bottom: 5px; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: var(--green); }
.sidebar-profile > strong { margin-top: 15px; color: #050b15; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.sidebar-profile > small { margin-top: 7px; color: var(--muted); font-size: 13px; }
.sidebar-close { position: absolute; z-index: 2; top: 14px; right: 14px; display: none; }

.nav-list { flex: 1; min-height: 0; padding: 0 0 22px; overflow-y: auto; }
.nav-item { position: relative; display: flex; min-height: 38px; align-items: center; gap: 12px; margin: 2px 16px 2px 0; padding: 0 12px 0 40px; border-radius: 0 10px 10px 0; color: #344054; font-size: 14px; font-weight: 600; transition: color .18s, background .18s, transform .18s; }
.nav-item::before { position: absolute; inset: 5px auto 5px 0; width: 4px; border-radius: 0 4px 4px 0; background: var(--cyan); content: ""; opacity: 0; transition: opacity .18s; }
.nav-item svg { width: 20px; height: 20px; color: #98a2b3; transition: color .18s; }
.nav-item:hover { color: var(--ink); background: #f8fafc; }
.nav-item.active { color: #009bd2; background: #e1f6fd; }
.nav-item.active::before { opacity: 1; }
.nav-item.active svg { color: var(--cyan-dark); }
.nav-count { min-width: 26px; margin-left: auto; padding: 3px 7px; border: 1px solid #cceffb; border-radius: 8px; background: #f5fcff; color: var(--cyan-dark); font-size: 11px; font-weight: 750; text-align: center; }
.nav-count[hidden] { display: none; }
.sidebar-foot { display: none; }
.connection-card { padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.connection-card-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.connection-card p { margin: 8px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(247, 144, 9, .12); }
.status-dot.connected { background: var(--green); box-shadow: 0 0 0 4px rgba(18, 183, 106, .12); }
.status-dot.error { background: var(--red); box-shadow: 0 0 0 4px rgba(240, 68, 56, .12); }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; color: var(--cyan-dark); background: none; font-size: 11px; font-weight: 750; cursor: pointer; }
.text-button svg { width: 14px; height: 14px; }
.avatar, .topbar-avatar { display: grid; place-items: center; border-radius: 50%; color: #066e93; background: linear-gradient(145deg, #dff7ff, #bceeff); font-weight: 800; }
.avatar { width: 34px; height: 34px; font-size: 11px; }
.profile-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(18, 183, 106, .12); }

.page-shell { min-width: 0; }
.topbar { position: sticky; z-index: 50; top: 0; display: flex; min-height: var(--topbar-h); align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .95); box-shadow: 0 1px 4px rgba(16,24,40,.025); backdrop-filter: blur(16px); }
.topbar-left, .topbar-actions, .breadcrumb, .live-pill { display: flex; align-items: center; }
.topbar-left { min-width: 0; }
.header-brand { display: flex; width: 187px; align-items: center; }
.header-brand strong { color: #0b111b; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.header-sidebar-toggle { display: grid; width: 34px; height: 34px; place-items: center; margin-right: 0; border: 0; border-radius: 9px; color: #98a2b3; background: transparent; cursor: pointer; transition: color .18s, background .18s, transform .2s; }
.header-sidebar-toggle:hover { color: var(--cyan-dark); background: var(--cyan-soft); }
.header-sidebar-toggle svg { width: 20px; height: 20px; transform: rotate(180deg); transition: transform .22s; }
body.sidebar-collapsed .header-sidebar-toggle svg { transform: rotate(0); }
.mobile-menu { display: none; margin-right: 10px; }
.breadcrumb { gap: 7px; color: var(--muted); font-size: 12px; }
.breadcrumb svg { width: 13px; height: 13px; }
.breadcrumb strong { color: var(--ink-soft); font-weight: 650; }
.topbar-actions { gap: 9px; }
.icon-button { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--border); border-radius: 11px; background: #fff; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.icon-button.sidebar-close, .icon-button.mobile-menu { display: none; }
.icon-button:hover { border-color: #b9eafa; background: #f4fcff; }
.icon-button:active { transform: scale(.96); }
.icon-button svg { width: 18px; height: 18px; }
.live-pill { gap: 8px; min-height: 36px; margin-right: 3px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: #fff; font-size: 11px; }
.live-pill > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(18, 183, 106, .12); }
.live-pill.disconnected > span:first-child { background: var(--amber); box-shadow: 0 0 0 3px rgba(247, 144, 9, .12); }
.live-pill strong { color: var(--ink-soft); font-size: 10px; font-weight: 650; }
.notification-button { position: relative; }
.notification-button > span { position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: var(--red); }
.notification-button > span:empty { box-sizing: content-box; }
.topbar-avatar { width: 34px; height: 34px; margin-left: 4px; border: 0; font-size: 10px; cursor: pointer; }

@media (min-width: 1200px) {
    .topbar .breadcrumb, .topbar .live-pill, .topbar #refresh-button, .topbar #notification-button { display: none; }
}

body.sidebar-collapsed .sidebar { opacity: 0; transform: translateX(calc(-100% - var(--sidebar-left))); pointer-events: none; }

main { width: 100%; margin: 0; padding: 20px 24px 20px calc(var(--sidebar-left) + var(--sidebar-w) + var(--sidebar-gap)); transition: padding-left .24s ease; }
body.sidebar-collapsed main { padding-left: 24px; }
.eyebrow { margin: 0 0 6px; color: var(--cyan-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-heading > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.section-actions { display: flex; align-items: center; gap: 10px; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer; transition: border-color .18s, background .18s, color .18s, box-shadow .18s, transform .18s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button svg { width: 17px; height: 17px; }
.button[disabled] { cursor: not-allowed; opacity: .55; transform: none; }
.button-primary { color: #fff; background: linear-gradient(140deg, #1ec4f1, #079ed4); box-shadow: 0 5px 12px rgba(18, 185, 238, .2); }
.button-primary:hover { box-shadow: 0 8px 18px rgba(18, 185, 238, .27); }
.button-secondary { border-color: var(--border); color: var(--ink-soft); background: #fff; box-shadow: var(--shadow-xs); }
.button-secondary:hover { border-color: #b6e9fa; color: #087da7; background: #f5fcff; }
.button-danger { color: #fff; background: var(--red); }
.button-danger-ghost { border-color: #fecdca; color: var(--red-dark); background: #fff; }
.button-danger-ghost:hover { border-color: #fda29b; background: var(--red-soft); }
.button.compact { min-height: 37px; padding: 0 16px; font-size: 11px; }
.button.full-width { width: 100%; }

.dashboard-section { margin-bottom: 38px; scroll-margin-top: calc(var(--topbar-h) + 18px); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; padding: 0 3px; }
.section-heading h2 { margin: 0; font-size: clamp(21px, 1.75vw, 27px); letter-spacing: -.035em; }
.section-number { display: grid; min-width: 40px; height: 28px; place-items: center; border: 1px solid #c7eefb; border-radius: 999px; color: var(--cyan-dark); background: var(--cyan-soft); font-size: 10px; font-weight: 800; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { position: relative; min-width: 0; min-height: 0; padding: 15px 17px 14px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-xs); transition: transform .2s, box-shadow .2s, border-color .2s; }
.stat-card::before { position: absolute; inset: 20px auto 20px 0; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent, var(--cyan)); content: ""; }
.stat-card:hover { transform: translateY(-2px); border-color: #d7e1e7; box-shadow: var(--shadow-sm); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--accent, var(--cyan)); background: color-mix(in srgb, var(--accent, var(--cyan)) 10%, white); }
.stat-icon svg { width: 17px; height: 17px; }
.trend-badge { padding: 4px 10px; border-radius: 999px; font-size: 9px; font-weight: 750; }
.trend-badge.neutral { color: #475467; background: #f2f4f7; }
.trend-badge.pending { color: var(--amber-dark); background: var(--amber-soft); }
.trend-badge.processing { color: #6941c6; background: #f4f3ff; }
.trend-badge.success { color: var(--green-dark); background: var(--green-soft); }
.trend-badge.danger { color: var(--red-dark); background: var(--red-soft); }
.stat-card > p { margin: 10px 0 2px; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.stat-card > strong { display: block; font-size: 26px; letter-spacing: -.045em; line-height: 1.08; }
.stat-card > small { display: block; margin-top: 4px; color: var(--muted-light); font-size: 9px; }
.accent-blue { --accent: var(--cyan); }.accent-amber { --accent: var(--amber); }.accent-violet { --accent: var(--violet); }.accent-green { --accent: var(--green); }.accent-red { --accent: var(--red); }.accent-rose { --accent: var(--rose); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 14px; margin-top: 14px; }
.panel { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.health-panel, .chart-panel, .queue-panel { padding: 17px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.025em; }
.panel-heading p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.panel-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 9px; font-weight: 750; }
.panel-status span { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.panel-status.healthy { border-color: #abefc6; color: var(--green-dark); background: var(--green-soft); }
.panel-status.healthy span { background: var(--green); }
.health-panel { display: flex; flex-direction: column; }
.health-content { flex: 1; display: grid; grid-template-columns: 140px 1fr; align-content: center; align-items: center; gap: 32px; margin-top: 15px; }
.health-score { position: relative; display: grid; width: 130px; height: 130px; place-content: center; border-radius: 50%; background: radial-gradient(circle at center, #fff 59%, transparent 60%), conic-gradient(var(--cyan) var(--score, 0%), #edf2f5 0); text-align: center; }
.health-score::after { position: absolute; inset: 10px; border: 1px solid rgba(18, 185, 238, .08); border-radius: 50%; content: ""; }
.health-score span { font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.health-score small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.health-metrics { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: var(--border); }
.health-metrics div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; background: #fff; }
.health-metrics span { color: var(--muted); font-size: 12px; }
.health-metrics strong { font-size: 14px; }
.link-button { display: inline-flex; align-items: center; gap: 3px; color: var(--cyan-dark); font-size: 10px; font-weight: 750; }
.link-button svg { width: 13px; height: 13px; }
.chart-container { position: relative; height: 195px; margin-top: 12px; }
.chart-container canvas { width: 100% !important; height: 100% !important; }
.chart-range { margin-top: 3px; color: var(--muted); font-size: 11px; }
.chart-period-tabs { display: flex; gap: 6px; }
.chart-tab { padding: 7px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; }
.chart-tab:hover { border-color: #b9eafa; color: var(--cyan-dark); }
.chart-tab.active { border-color: var(--cyan); background: var(--cyan); color: #fff; }
.chart-tooltip { position: absolute; pointer-events: none; padding: 10px 14px; background: rgba(255, 255, 255, 0.95); border: 1px solid #eaebec; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.15s, left 0.1s, top 0.1s; transform: translate(0, -50%); z-index: 10; }
.chart-tooltip.visible { opacity: 1; }
.chart-tooltip .tt-date { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.chart-tooltip .tt-val { color: var(--cyan-dark); font-size: 12px; font-weight: 700; }
.queue-bars { display: grid; gap: 12px; margin-top: 18px; }
.queue-bars > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; }
.queue-bars span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.queue-bars strong { font-size: 11px; }
.bar-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }.bar-dot.pending { background: var(--amber); }.bar-dot.processing { background: var(--violet); }.bar-dot.completed { background: var(--green); }
.bar { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 20px; background: #eef2f5; }
.bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--cyan); transition: width .6s ease; }
#queue-pending-bar { background: var(--amber); }#queue-processing-bar { background: var(--violet); }#queue-completed-bar { background: var(--green); }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); align-items: start; gap: 16px; }
.form-panel { padding: 24px; }
.response-panel { position: sticky; top: calc(var(--topbar-h) + 18px); padding: 22px; }
.segmented-fieldset { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.segmented-fieldset legend { margin-bottom: 8px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.segmented-control { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control label { display: flex; min-height: 70px; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s; }
.segmented-control label > svg { width: 21px; height: 21px; color: var(--muted-light); }
.segmented-control label span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.segmented-control label strong { font-size: 12px; }
.segmented-control label small { color: var(--muted); font-size: 9px; }
.segmented-control input:checked + label { border-color: #84ddf9; background: var(--cyan-soft); box-shadow: 0 0 0 3px rgba(18, 185, 238, .07); }
.segmented-control input:checked + label > svg, .segmented-control input:checked + label strong { color: var(--cyan-dark); }
.segmented-control input:focus-visible + label { outline: 3px solid rgba(18, 185, 238, .25); outline-offset: 2px; }

.form-grid { display: grid; gap: 14px; }.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }.voucher-row { align-items: end; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; margin-bottom: 15px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.field > span:first-child { display: flex; align-items: baseline; gap: 5px; }
.field em { color: var(--red); font-style: normal; }.field small { color: var(--muted-light); font-size: 9px; font-weight: 500; }
.field input, .field select { width: 100%; min-width: 0; height: 43px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 999px; outline: 0; color: var(--ink); background: #fff; font-size: 12px; font-weight: 500; transition: border-color .18s, box-shadow .18s, background .18s; }
.field textarea { width: 100%; min-width: 0; min-height: 96px; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 14px; outline: 0; color: var(--ink); background: #fff; font-size: 12px; font-weight: 500; resize: vertical; line-height: 1.55; transition: border-color .18s, box-shadow .18s, background .18s; }
.field input::placeholder, .field textarea::placeholder { color: #b0b8c4; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b8c1cc; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(18, 185, 238, .1); }
.field input[readonly] { color: var(--muted); background: #f8fafc; }
.input-shell, .password-shell, .input-action, .select-shell { position: relative; display: block; }
.input-shell > svg { position: absolute; z-index: 1; top: 50%; left: 14px; width: 16px; height: 16px; color: var(--muted-light); transform: translateY(-50%); pointer-events: none; }
.input-shell input { padding-left: 40px; }
.password-shell button, .input-action button { position: absolute; top: 50%; right: 6px; display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; transform: translateY(-50%); }
.password-shell button:hover, .input-action button:hover { color: var(--cyan-dark); background: var(--cyan-soft); }
.password-shell button:disabled, .input-action button:disabled { cursor: not-allowed; opacity: .4; }
.password-shell button svg, .input-action button svg { width: 16px; height: 16px; }
.password-shell input, .input-action input { padding-right: 46px; }
.select-shell::after { position: absolute; top: calc(50% - 3px); right: 16px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); content: ""; transform: rotate(45deg) translateY(-50%); pointer-events: none; }
.select-shell select { padding-right: 38px; appearance: none; cursor: pointer; }
#package:invalid { color: var(--muted-light); }
#package option { color: var(--ink); }
.verify-field { margin-bottom: 15px; }.inline-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.verification-result { display: none; align-items: center; min-height: 39px; margin: -4px 0 15px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 10px; }
.verification-result.visible { display: flex; }.verification-result.success { border-color: #abefc6; color: var(--green-dark); background: var(--green-soft); }.verification-result.error { border-color: #fecdca; color: var(--red-dark); background: var(--red-soft); }

.catalog-status { display: flex; min-height: 39px; align-items: center; gap: 9px; margin-bottom: 15px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 10px; }
.catalog-status[hidden] { display: none; }
.catalog-status.ready { border-color: #abefc6; color: var(--green-dark); background: var(--green-soft); }.catalog-status.ready .status-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(18,183,106,.12); }.catalog-status.error { border-color: #fecdca; color: var(--red-dark); background: var(--red-soft); }.catalog-status.error .status-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(240,68,56,.12); }
.catalog-status button { display: none; margin-left: auto; padding: 4px 7px; border: 0; color: currentColor; background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }.catalog-status.error button { display: inline-block; }
.multi-select { position: relative; margin-bottom: 15px; }.multi-select.disabled { opacity: .58; pointer-events: none; }
.multi-select-trigger { display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 16px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--muted); background: #fff; font-size: 11px; text-align: left; cursor: pointer; }
.multi-select-trigger.open { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(18, 185, 238, .1); }.multi-select-trigger > span { display: flex; flex-wrap: wrap; gap: 5px; }.multi-select-trigger svg { width: 15px; height: 15px; transition: transform .2s; }.multi-select-trigger.open svg { transform: rotate(90deg); }
.package-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; color: #06799f; background: var(--cyan-soft); font-size: 9px; font-weight: 750; }
.multi-select-panel { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; left: 0; display: none; max-height: 270px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-md); }.multi-select-panel.open { display: block; }
#multi-select-options { max-height: 222px; padding: 6px; overflow-y: auto; }.package-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; width: 100%; padding: 9px; border: 0; border-radius: 8px; color: var(--ink-soft); background: transparent; font-size: 10px; text-align: left; cursor: pointer; }.package-option:hover { background: var(--surface-soft); }.package-option.selected { color: #087da7; background: var(--cyan-soft); }.package-option .check { display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid var(--border-strong); border-radius: 5px; }.package-option.selected .check { border-color: var(--cyan); color: #fff; background: var(--cyan); }.package-option svg { width: 11px; height: 11px; }.package-option code { color: var(--muted-light); font-size: 9px; }
.multi-select-panel footer { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-top: 1px solid var(--border); color: var(--muted); background: var(--surface-soft); font-size: 9px; }.multi-select-panel footer button { padding: 0; border: 0; color: var(--red); background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }

.advanced-fields { margin: 1px 0 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.advanced-fields summary { display: flex; min-height: 43px; align-items: center; justify-content: space-between; padding: 0 13px; color: var(--ink-soft); font-size: 10px; font-weight: 700; cursor: pointer; list-style: none; }.advanced-fields summary::-webkit-details-marker { display: none; }.advanced-fields summary svg { width: 14px; height: 14px; transition: transform .2s; }.advanced-fields[open] summary svg { transform: rotate(90deg); }.details-body { padding: 14px 13px 0; border-top: 1px solid var(--border); background: #fff; border-radius: 0 0 12px 12px; }
.submit-button { width: 100%; min-height: 47px; }

.response-state { padding: 5px 12px; border-radius: 999px; color: var(--muted); background: #f2f4f7; font-size: 9px; font-weight: 750; white-space: nowrap; }.response-state.sending { color: #6941c6; background: #f4f3ff; }.response-state.ready, .response-state.success { color: var(--green-dark); background: var(--green-soft); }.response-state.error { color: var(--red-dark); background: var(--red-soft); }
.review-live { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }.review-live > div { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-soft); }.review-live > div > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 2px; }.review-live small { color: var(--muted); font-size: 8px; }.review-live strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.review-live-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }.review-live-dot.queue { background: var(--amber); box-shadow: 0 0 0 4px rgba(247,144,9,.1); }.review-live-dot.workers { background: var(--green); box-shadow: 0 0 0 4px rgba(18,183,106,.1); }
.review-readiness { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 14px; margin: 18px 0; }.review-score { position: relative; display: grid; width: 72px; height: 72px; place-content: center; border-radius: 50%; background: radial-gradient(circle at center, #fff 60%, transparent 61%), conic-gradient(var(--cyan) var(--readiness, 33%), #edf2f5 0); text-align: center; }.review-score::after { position: absolute; inset: 7px; border: 1px solid rgba(18,185,238,.08); border-radius: 50%; content: ""; }.review-score strong, .review-score span { position: relative; z-index: 1; }.review-score strong { font-size: 18px; letter-spacing: -.04em; }.review-score span { margin-top: 1px; color: var(--muted); font-size: 8px; }.review-readiness h3 { margin: 0 0 5px; font-size: 12px; }.review-readiness p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.review-summary { display: grid; gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--border); }.review-summary > div { display: grid; min-width: 0; min-height: 38px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 10px; padding: 8px 11px; background: #fff; }.review-summary dt { display: flex; min-width: 0; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }.review-summary dt svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--muted-light); }.review-summary dd { min-width: 0; margin: 0; overflow: hidden; color: var(--ink-soft); font-size: 10px; font-weight: 700; text-align: right; text-overflow: ellipsis; white-space: nowrap; }.review-summary dd.is-empty { color: var(--muted-light); font-weight: 600; }
.review-checklist-card { margin-top: 15px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }.review-checklist-card > h3 { margin: 0 0 10px; font-size: 10px; }.review-checklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }.review-checklist li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }.review-checklist li.complete { color: var(--ink-soft); }.review-check-icon { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border-radius: 6px; color: var(--amber-dark); background: var(--amber-soft); }.review-checklist li.complete .review-check-icon { color: var(--green-dark); background: var(--green-soft); }.review-check-icon svg { width: 11px; height: 11px; }
.submission-result { margin-top: 15px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }.submission-result.success { border-color: #abefc6; background: var(--green-soft); }.submission-result.error { border-color: #fecdca; background: var(--red-soft); }.submission-result-head { display: flex; align-items: center; gap: 10px; }.submission-result-head > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--green-dark); background: #fff; }.submission-result.error .submission-result-head > span { color: var(--red-dark); }.submission-result-head svg { width: 17px; height: 17px; }.submission-result-head small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 8px; }.submission-result-head h3 { margin: 0; font-size: 12px; }.submission-result > p { margin: 10px 0 0; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 9px; line-height: 1.55; }.submission-result-link { width: fit-content; margin-top: 10px; }.response-details { margin-top: 11px; border-top: 1px solid rgba(71,84,103,.12); }.response-details summary { display: flex; min-height: 34px; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 9px; font-weight: 700; cursor: pointer; list-style: none; }.response-details summary::-webkit-details-marker { display: none; }.response-details summary svg { width: 13px; height: 13px; transition: transform .2s; }.response-details[open] summary svg { transform: rotate(90deg); }#response { max-height: 230px; margin: 0; padding: 12px; overflow: auto; border-radius: 10px; color: #d9f4fd; background: #11232c; font: 9px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }

.data-panel { overflow: hidden; }.data-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 19px; border-bottom: 1px solid var(--border); }.toolbar-actions { display: flex; gap: 8px; }
.search-field { display: flex; width: min(100%, 370px); height: 39px; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: #fff; transition: border-color .18s, box-shadow .18s; }.search-field:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(18, 185, 238, .1); }.search-field svg { width: 16px; height: 16px; color: var(--muted-light); }.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }.search-field input::placeholder { color: var(--muted-light); }.search-field kbd { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted-light); background: var(--surface-soft); font-size: 9px; box-shadow: none; }
.order-table-wrap { width: 100%; overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }.data-table th { padding: 11px 15px; border-bottom: 1px solid var(--border); color: var(--muted); background: var(--surface-soft); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }.data-table td { padding: 14px 15px; border-bottom: 1px solid #eef1f4; color: var(--ink-soft); vertical-align: middle; }.data-table tbody tr:last-child td { border-bottom: 0; }.data-table tbody tr.data-row { transition: background .15s; cursor: pointer; }.data-table tbody tr.data-row:hover { background: #f9fcfd; }.cell-primary { display: flex; min-width: 130px; flex-direction: column; gap: 3px; }.cell-primary strong { color: var(--ink); font-size: 11px; }.cell-primary small { color: var(--muted-light); font-size: 9px; }.site-badge { display: inline-flex; width: fit-content; align-items: center; gap: 4px; margin-top: 2px; color: #087da7; font-size: 8px; font-weight: 700; }.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 8px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }.status-badge::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }.status-completed, .status-success, .status-active, .status-idle { color: var(--green-dark); background: var(--green-soft); }.status-pending, .status-waiting, .status-busy { color: var(--amber-dark); background: var(--amber-soft); }.status-processing { color: #6941c6; background: #f4f3ff; }.status-failed, .status-critical, .status-partial_failed, .status-ambiguous, .status-blocked { color: var(--red-dark); background: var(--red-soft); }.status-no_effect { color: #175cd3; background: #eff8ff; }.status-disabled, .status-inactive, .status-offline, .status-default { color: #475467; background: #f2f4f7; }
.row-action { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: #fff; cursor: pointer; }.row-action:hover { color: var(--cyan-dark); border-color: #b9eafa; }.row-action svg { width: 14px; height: 14px; }

.order-table { min-width: 1020px; table-layout: fixed; font-size: 13px; }.order-table th { height: 48px; padding: 0 18px; font-size: 11px; letter-spacing: .065em; }.order-table th:nth-child(1) { width: 29%; }.order-table th:nth-child(2) { width: 13%; }.order-table th:nth-child(3) { width: 14%; }.order-table th:nth-child(4) { width: 10%; }.order-table th:nth-child(5) { width: 10%; }.order-table th:nth-child(6) { width: 15%; }.order-table th:nth-child(7) { width: 9%; }
.order-table td { height: 84px; padding: 16px 18px; background: #fff; font-size: 13px; transition: border-color .18s, background .18s, box-shadow .18s; }.order-table .data-row { --row-accent: var(--cyan); outline: 0; }.order-table .data-row td:first-child { position: relative; }.order-table .data-row td:first-child::before { position: absolute; top: 15px; bottom: 15px; left: 0; width: 3px; border-radius: 0 4px 4px 0; background: var(--row-accent); content: ""; opacity: .65; transition: top .18s, bottom .18s, opacity .18s; }.order-table .data-row:hover td, .order-table .data-row:focus-visible td { border-color: #d9eff7; background: #f7fcfe; }.order-table .data-row:hover td:first-child::before, .order-table .data-row:focus-visible td:first-child::before { top: 9px; bottom: 9px; opacity: 1; }.order-table .data-row:focus-visible td:first-child { box-shadow: inset 3px 0 0 rgba(18,185,238,.2); }
.status-row-completed, .status-row-success { --row-accent: var(--green) !important; }.status-row-pending, .status-row-waiting, .status-row-busy { --row-accent: var(--amber) !important; }.status-row-processing { --row-accent: var(--violet) !important; }.status-row-failed, .status-row-critical, .status-row-partial_failed, .status-row-ambiguous, .status-row-blocked { --row-accent: var(--red) !important; }
.order-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }.order-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--cyan-dark); background: var(--cyan-soft); transition: color .18s, background .18s, transform .18s; }.order-mark svg { width: 19px; height: 19px; }.order-table .data-row:hover .order-mark, .order-table .data-row:focus-visible .order-mark { color: #fff; background: var(--cyan); transform: translateY(-1px); }.order-table .cell-primary { min-width: 0; gap: 5px; }.order-table .cell-primary strong { max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 780; letter-spacing: -.012em; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }.order-table .site-badge { margin-top: 0; font-size: 11px; }.site-badge::before { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(18,185,238,.09); content: ""; }
.table-value { display: flex; min-width: 0; align-items: center; gap: 8px; color: var(--ink-soft); font-weight: 650; }.table-value > svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--muted-light); }.table-value > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.table-player > span { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }.table-value.is-empty, .mobile-order-card .is-empty { color: var(--muted-light); font-weight: 550; }
.order-table .status-badge { min-height: 30px; padding: 0 11px; font-size: 11px; }.order-table .status-badge::before { width: 7px; height: 7px; }.stage-badge { display: inline-flex; min-height: 30px; align-items: center; padding: 0 10px; border: 1px solid #e1e7ec; border-radius: 8px; color: #475467; background: #f8fafc; font-size: 11px; font-weight: 750; white-space: nowrap; }.updated-cell { display: flex; min-width: 0; align-items: center; gap: 9px; }.updated-cell > svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--muted-light); }.updated-cell > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }.updated-cell strong { color: var(--ink-soft); font-size: 13px; font-weight: 700; }.updated-cell small { overflow: hidden; color: var(--muted-light); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.action-cell { text-align: right; }.order-table .row-action { width: 44px; height: 44px; margin-left: auto; border-radius: 12px; transition: color .18s, border-color .18s, background .18s, box-shadow .18s, transform .18s; }.order-table .row-action:hover, .order-table .data-row:focus-visible .row-action { color: #fff; border-color: var(--cyan); background: var(--cyan); box-shadow: 0 6px 14px rgba(18,185,238,.2); transform: translateX(2px); }.order-table .row-action svg { width: 18px; height: 18px; }
#orders .data-toolbar { padding: 19px 20px; }#orders .search-field { width: min(100%, 420px); height: 46px; padding: 0 13px; }#orders .search-field input { font-size: 13px; }#orders .data-toolbar .button.compact { min-height: 46px; padding-inline: 15px; font-size: 13px; }#orders .data-footer { min-height: 45px; padding: 0 20px; font-size: 11px; }.refresh-note { display: inline-flex; align-items: center; gap: 7px; }.refresh-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18,183,106,.1); }
#orders .data-toolbar { min-height: 88px; justify-content: flex-end; gap: 18px; padding: 16px 18px; background: linear-gradient(135deg, #fbfeff 0%, #fff 52%, #f8fcfe 100%); }
#orders .search-field { width: min(100%, 560px); height: 54px; gap: 11px; padding: 0 11px 0 10px; border-color: #d5edf6; border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 5px 18px rgba(16,24,40,.055); transition: border-color .2s, box-shadow .2s, transform .2s; }
#orders .search-field:hover { border-color: #aee4f6; box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 7px 22px rgba(18,185,238,.09); }
#orders .search-field:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(18,185,238,.11), 0 9px 24px rgba(18,185,238,.12); transform: translateY(-1px); }
#orders .search-field > svg { width: 34px; height: 34px; flex: 0 0 auto; padding: 8px; border-radius: 50%; color: #079ed4; background: var(--cyan-soft); }
#orders .search-field input { font-size: 13px; font-weight: 550; }
#orders .search-field input::placeholder { color: #98a2b3; }
#orders .search-field kbd { width: 30px; height: 30px; flex: 0 0 auto; border-color: #e0e9ee; border-radius: 50%; color: #667085; background: #f7fafc; font-size: 10px; font-weight: 750; }
#orders .order-search-cluster { display: flex; min-width: 0; max-width: 394px; flex: 0 1 394px; align-items: center; }
#orders .order-search-cluster .search-field { width: auto; flex: 1; }
#orders .data-toolbar .button.compact { min-height: 54px; padding-inline: 22px; border-radius: 999px; font-size: 13px; letter-spacing: -.01em; }
#orders .data-toolbar .button.compact svg { width: 18px; height: 18px; }
#delete-all-orders { border-color: #fecaca; color: #b42318; background: linear-gradient(180deg, #fff 0%, #fff7f6 100%); box-shadow: 0 6px 16px rgba(240,68,56,.07); }
#delete-all-orders { min-width: 136px; flex: 0 0 auto; }
#delete-all-orders:hover { border-color: #fda29b; color: #912018; background: #fff0ee; box-shadow: 0 9px 21px rgba(240,68,56,.13); }
#orders .data-toolbar .button.compact:focus-visible { outline: none; box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(18,185,238,.28), 0 8px 20px rgba(16,24,40,.12); }
#orders #delete-all-orders:focus-visible { box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(240,68,56,.22), 0 8px 20px rgba(16,24,40,.1); }
#orders .data-panel { border-color: #dce9ef; border-radius: 20px; box-shadow: 0 14px 36px rgba(16,24,40,.07); }
#orders .data-toolbar { min-height: 96px; justify-content: space-between; padding: 18px 20px; }
.order-toolbar-intro { display: flex; min-width: 225px; align-items: center; gap: 12px; }
.order-toolbar-icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid #cceef9; border-radius: 13px; color: var(--cyan-dark); background: var(--cyan-soft); }
.order-toolbar-icon svg { width: 20px; height: 20px; }
.order-toolbar-intro > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.order-toolbar-intro strong { color: var(--ink); font-size: 13px; }
.order-toolbar-intro > div > span { color: var(--muted); font-size: 11px; }
#orders .order-toolbar-actions { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: flex-end; gap: 14px; }
#orders .order-search-cluster { max-width: 500px; flex-basis: 500px; }
.order-filter-bar { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 20px; border-bottom: 1px solid var(--border); background: #fff; }
.order-filter-tabs { display: flex; min-width: 0; align-items: center; gap: 7px; }
.order-filter { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px; color: #667085; background: transparent; font-size: 11px; font-weight: 750; white-space: nowrap; cursor: pointer; transition: color .18s, border-color .18s, background .18s, box-shadow .18s; }
.order-filter:hover { color: var(--cyan-dark); border-color: #d0edf7; background: #f5fcfe; }
.order-filter.active { color: #087da7; border-color: #b9eafa; background: var(--cyan-soft); box-shadow: inset 0 0 0 1px rgba(18,185,238,.04); }
.order-filter:focus-visible { outline: 3px solid rgba(18,185,238,.18); outline-offset: 2px; }
.order-filter span { display: grid; min-width: 23px; height: 22px; place-items: center; padding: 0 6px; border-radius: 999px; color: #667085; background: #f2f4f7; font-size: 9px; }
.order-filter.active span { color: #087da7; background: #fff; }
.order-filter-summary { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 650; }
#orders .order-table th { background: #f8fafc; }
#orders .order-table .row-action { display: inline-flex; width: auto; min-width: 78px; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; border-radius: 999px; font-size: 11px; font-weight: 750; }
#orders .order-table .row-action span { line-height: 1; }
#orders .order-table .row-action svg { width: 15px; height: 15px; }
.table-state, .empty-state { display: grid; min-height: 145px; place-items: center; align-content: center; gap: 10px; color: var(--muted); text-align: center; }.table-state p, .empty-state p { margin: 0; font-size: 10px; }.loader { display: block; width: 24px; height: 24px; border: 2px solid #dff4fb; border-top-color: var(--cyan); border-radius: 50%; animation: spin .75s linear infinite; }
.data-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 19px; border-top: 1px solid var(--border); color: var(--muted-light); background: var(--surface-soft); font-size: 11px; }.data-footer span:first-child { color: var(--ink-soft); font-weight: 700; }
.pagination-controls { display: flex; align-items: center; gap: 6px; }
.pagination-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.pagination-btn:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); background: #edf9fd; }
.pagination-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pagination-info { padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.mobile-order-list { display: none; }
.mobile-order-card { position: relative; overflow: hidden; padding: 16px; border: 1px solid var(--border); border-radius: 15px; background: #fff; box-shadow: var(--shadow-xs); cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.mobile-order-card::before { position: absolute; inset-block: 16px; left: 0; width: 3px; border-radius: 0 4px 4px 0; background: var(--row-accent, var(--cyan)); content: ""; }
.mobile-order-card:hover, .mobile-order-card:focus-visible { border-color: #b9eafa; outline: 0; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.mobile-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mobile-order-title { display: flex; min-width: 0; align-items: center; gap: 10px; }
.mobile-order-title .order-mark { width: 42px; height: 42px; border-radius: 11px; }
.mobile-order-title > div { min-width: 0; }
.mobile-order-card h3 { max-width: 100%; margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-order-title small { display: block; margin-top: 3px; color: var(--cyan-dark); font-size: 11px; font-weight: 700; }
.mobile-order-card .status-badge { min-height: 30px; padding: 0 10px; font-size: 10px; }
.mobile-order-card > .mobile-order-player { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 7px; margin: 14px 0 11px; padding: 12px; border-radius: 10px; color: var(--muted); background: var(--surface-soft); font-size: 11px; }
.mobile-order-player svg { width: 15px; height: 15px; color: var(--muted-light); }
.mobile-order-player strong { overflow: hidden; color: var(--ink-soft); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.mobile-order-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-order-meta div { min-width: 0; padding: 11px 12px; border: 1px solid #edf0f3; border-radius: 10px; background: #fff; }
.mobile-order-meta span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mobile-order-meta strong { display: block; overflow: hidden; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-order-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #eef1f4; color: var(--muted); font-size: 11px; }
.mobile-order-footer span, .mobile-order-footer strong, .mobile-order-footer time { display: inline-flex; align-items: center; gap: 5px; }
.mobile-order-footer strong { min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--cyan-dark); background: var(--cyan-soft); }
.mobile-order-footer svg { width: 14px; height: 14px; }

.worker-heading { padding: 21px 22px 16px; border-bottom: 1px solid var(--border); }.active-count { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 20px; color: var(--green-dark); background: var(--green-soft); font-size: 9px; }.active-count i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }.active-count strong { font-size: 10px; }
.worker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 17px; }.worker-grid > .empty-state { grid-column: 1 / -1; }.worker-card { position: relative; min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }.worker-card::before { position: absolute; inset: 14px auto 14px 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--worker-color, var(--muted-light)); content: ""; }.worker-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }.worker-card h3 { min-width: 0; margin: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.delete-worker { position: absolute; right: 10px; bottom: 10px; display: grid; width: 29px; height: 29px; place-items: center; border: 0; border-radius: 8px; color: var(--muted-light); background: transparent; cursor: pointer; }.delete-worker:hover { color: var(--red); background: var(--red-soft); }.delete-worker svg { width: 14px; height: 14px; }

.like-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }.like-stats > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; min-height: 63px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 13px; background: #fff; box-shadow: var(--shadow-xs); }.like-stats span { color: var(--muted); font-size: 9px; }.like-stats strong { color: var(--cyan-dark); font-size: 22px; letter-spacing: -.03em; }
.tabs { display: flex; gap: 4px; padding: 14px 17px 0; border-bottom: 1px solid var(--border); overflow-x: auto; }.tab { position: relative; min-height: 40px; padding: 0 14px; border: 0; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }.tab::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; border-radius: 2px 2px 0 0; background: var(--cyan); content: ""; transform: scaleX(0); transition: transform .18s; }.tab:hover { color: var(--ink); }.tab.active { color: var(--cyan-dark); }.tab.active::after { transform: scaleX(1); }.tab-panel { min-height: 190px; }.like-order-list { display: grid; gap: 9px; max-height: 540px; padding: 15px; overflow-y: auto; }.like-order-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 13px 14px; border: 1px solid var(--border); border-left: 3px solid var(--status-color, var(--muted-light)); border-radius: 11px; background: #fff; }.like-order-card h3 { margin: 0; font-size: 11px; }.like-order-card p { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; color: var(--muted); font-size: 9px; }.like-order-card .order-error { color: var(--red-dark); }.action-group { display: flex; flex-wrap: wrap; gap: 5px; }.mini-button { min-height: 29px; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--ink-soft); background: #fff; font-size: 8px; font-weight: 750; cursor: pointer; }.mini-button:hover { border-color: #b9eafa; color: var(--cyan-dark); }.mini-button.primary { border-color: var(--cyan); color: #fff; background: var(--cyan); }.mini-button.danger { border-color: #fecdca; color: var(--red-dark); background: var(--red-soft); }.mini-button.success { border-color: #abefc6; color: var(--green-dark); background: var(--green-soft); }.price-input { width: 84px; height: 34px; padding: 0 9px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 10px; }.code-pill { padding: 4px 7px; border-radius: 6px; color: #475467; background: #f2f4f7; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.api-metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; padding: 20px; }
.api-metric-pill { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border: 1px solid #e8eff3; border-left: 3px solid var(--metric-color, #e4ecf1); border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(16,24,40,.04); transition: transform .15s, box-shadow .15s; }
.api-metric-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,24,40,.08); }
.api-metric-label { font-size: 11px; font-weight: 700; color: #98a2b3; text-transform: uppercase; letter-spacing: .05em; }
.api-metric-value { font-size: 26px; font-weight: 800; color: #1a2332; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }

.settings-panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 23px; }.settings-copy { display: flex; align-items: center; gap: 13px; width: 100%; }.settings-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--cyan-dark); background: var(--cyan-soft); }.settings-icon svg { width: 18px; height: 18px; }.settings-copy h3 { margin: 0; font-size: 13px; white-space: nowrap; }.settings-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }#settings-form { display: contents; }.settings-fields { display: flex; align-items: flex-end; gap: 12px; flex: 1 1 auto; }.settings-fields .field { margin-bottom: 0; flex: 0 0 auto; }.settings-fields .field.wide { flex: 1 1 190px; }.settings-actions { display: flex; align-items: flex-end; gap: 9px; flex-shrink: 0; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; padding: 9px 3px 5px; border-top: 1px solid var(--border); color: var(--muted-light); font-size: 9px; }.page-footer > span:first-child { color: var(--ink-soft); font-weight: 750; }

.toast-region { position: fixed; z-index: 200; top: calc(var(--topbar-h) + 14px); right: 18px; display: grid; width: min(370px, calc(100vw - 32px)); gap: 9px; pointer-events: none; }.toast { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.97); box-shadow: var(--shadow-md); animation: toast-in .24s ease-out; pointer-events: auto; }.toast-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: var(--cyan-dark); background: var(--cyan-soft); }.toast-icon svg { width: 14px; height: 14px; }.toast.success .toast-icon { color: var(--green-dark); background: var(--green-soft); }.toast.error .toast-icon { color: var(--red-dark); background: var(--red-soft); }.toast.warning .toast-icon { color: var(--amber-dark); background: var(--amber-soft); }.toast p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }.toast button { display: grid; width: 24px; height: 24px; place-items: center; border: 0; color: var(--muted); background: transparent; cursor: pointer; }.toast button svg { width: 13px; height: 13px; }

dialog { padding: 0; border: 0; color: var(--ink); background: transparent; }.dialog { width: min(470px, calc(100vw - 28px)); max-height: min(88vh, 840px); overflow: auto; border: 1px solid rgba(255,255,255,.7); border-radius: 20px; background: #fff; box-shadow: 0 24px 80px rgba(16,24,40,.2); }.dialog::backdrop { background: rgba(16, 24, 40, .48); backdrop-filter: blur(4px); }.dialog > form, .balance-dialog > form { position: relative; padding: 27px; }.dialog-close { position: absolute; z-index: 1; top: 14px; right: 14px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); background: #fff; cursor: pointer; }.dialog-close.static { position: static; }.dialog-close:hover { color: var(--ink); background: var(--surface-soft); }.dialog-close svg { width: 15px; height: 15px; }.dialog-hero-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 17px; border-radius: 13px; color: var(--cyan-dark); background: var(--cyan-soft); }.dialog-hero-icon.rose { color: #c11574; background: #fdf2fa; }.dialog-hero-icon.warning { margin-right: auto; margin-left: auto; color: var(--red-dark); background: var(--red-soft); }.dialog-hero-icon svg { width: 22px; height: 22px; }.dialog h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }.dialog-copy { margin: 8px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }.form-error { min-height: 18px; margin: -3px 0 7px; color: var(--red-dark); font-size: 9px; }.auth-dialog .button-danger-ghost { margin-top: 8px; border-color: transparent; }.dialog-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }.details-dialog { width: min(820px, calc(100vw - 28px)); }.details-dialog #order-dialog-body { padding: 20px 22px; }.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }.detail-item { padding: 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }.detail-item span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 8px; text-transform: uppercase; }.detail-item strong { display: block; overflow-wrap: anywhere; font-size: 10px; }.detail-section { margin-top: 17px; }.detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }.detail-section h3 { margin: 0; font-size: 11px; }.code-block { max-height: 230px; margin: 0; padding: 13px; overflow: auto; border-radius: 10px; color: #d9f4fd; background: #11232c; font: 9px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }.progress-list { display: grid; gap: 6px; padding: 0; list-style: none; }.progress-list li { padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; color: var(--ink-soft); background: var(--surface-soft); font: 9px ui-monospace, monospace; }.detail-error { padding: 11px; border: 1px solid #fecdca; border-radius: 10px; color: var(--red-dark); background: var(--red-soft); font-size: 10px; }.detail-actions { display: flex; justify-content: flex-end; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--border); }.confirm-dialog { width: min(410px, calc(100vw - 28px)); text-align: center; }.confirm-dialog form { padding: 28px; }.dialog-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 22px; }

/* Order details modal */
.details-dialog { width: min(1060px, calc(100vw - 32px)); height: min(90vh, 860px); max-height: min(90vh, 860px); overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 25px; background: #f7fafc; box-shadow: 0 34px 110px rgba(15,23,42,.3); }
.details-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.details-dialog .dialog-header { position: relative; top: auto; min-height: 104px; padding: 22px 28px; border-bottom-color: #e5edf2; background: linear-gradient(135deg, rgba(239,250,255,.98), rgba(255,255,255,.98) 48%, rgba(240,253,247,.96)); backdrop-filter: blur(14px); }
.order-dialog-heading { display: flex; min-width: 0; align-items: center; gap: 14px; }
.order-dialog-heading > div { min-width: 0; }
.order-dialog-icon { display: grid; width: 56px; height: 56px; flex: 0 0 auto; place-items: center; border: 1px solid #c7edf9; border-radius: 17px; color: var(--cyan-dark); background: linear-gradient(145deg, #e9f9fe, #d7f4fd); box-shadow: 0 9px 20px rgba(18,185,238,.14); }
.order-dialog-icon svg { width: 26px; height: 26px; }
.details-dialog .dialog-header .eyebrow { margin-bottom: 4px; font-size: 10px; }
.details-dialog .dialog-header h2 { max-width: 800px; overflow: hidden; font-size: 26px; text-overflow: ellipsis; white-space: nowrap; }
.details-dialog .dialog-header p:last-child { margin: 6px 0 0; overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.details-dialog .dialog-close { width: 42px; height: 42px; flex: 0 0 auto; border-color: #dce7ed; border-radius: 13px; box-shadow: var(--shadow-xs); transition: color .18s, border-color .18s, background .18s, transform .18s; }
.details-dialog .dialog-close:hover { color: var(--cyan-dark); border-color: #b9eafa; background: var(--cyan-soft); transform: rotate(3deg); }
.details-dialog #order-dialog-body { min-height: 0; padding: 26px 28px 32px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; background: linear-gradient(180deg, #f8fbfc 0%, #f6f8fa 100%); }
.details-dialog #order-dialog-body::-webkit-scrollbar { width: 10px; }
.details-dialog #order-dialog-body::-webkit-scrollbar-track { background: transparent; }
.details-dialog #order-dialog-body::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: #c7d2da; background-clip: padding-box; }
.detail-overview { padding: 22px; border: 1px solid #dfe9ee; border-radius: 19px; background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(16,24,40,.045); }
.detail-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.detail-overview-head > div > span { display: block; margin-bottom: 4px; color: var(--cyan-dark); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.detail-overview-head h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.detail-type-pill { display: inline-flex; min-height: 32px; align-items: center; padding: 0 12px; border: 1px solid #c9edf8; border-radius: 999px; color: #087da7; background: #eefaff; font-size: 11px; font-weight: 800; }
.details-dialog .detail-grid { gap: 10px; }
.details-dialog .detail-item { display: flex; min-width: 0; min-height: 88px; align-items: center; gap: 13px; padding: 15px; border-color: #e2e9ed; border-radius: 13px; background: linear-gradient(145deg, #fff, #f9fbfc); box-shadow: 0 2px 7px rgba(16,24,40,.025); transition: border-color .18s, box-shadow .18s, transform .18s; }
.details-dialog .detail-item:hover { border-color: #c9e9f3; box-shadow: 0 8px 18px rgba(16,24,40,.055); transform: translateY(-1px); }
.detail-item-icon { display: grid !important; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; margin: 0 !important; border-radius: 12px; color: #087da7 !important; background: #e9f9fe; }
.detail-item-icon svg { width: 19px; height: 19px; }
.detail-item-copy { min-width: 0; }
.details-dialog .detail-item-copy > span { margin-bottom: 6px; color: var(--muted-light); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.details-dialog .detail-item-copy > strong { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 760; line-height: 1.4; text-overflow: ellipsis; }
.details-dialog .detail-item-status .status-badge { display: inline-flex; min-height: 31px; margin: 0; padding: 0 11px; font-size: 10px; }
.details-dialog .detail-item-status .status-completed, .details-dialog .detail-item-status .status-success, .details-dialog .detail-item-status .status-active, .details-dialog .detail-item-status .status-idle { color: var(--green-dark); }
.details-dialog .detail-item-status .status-pending, .details-dialog .detail-item-status .status-waiting, .details-dialog .detail-item-status .status-busy { color: var(--amber-dark); }
.details-dialog .detail-item-status .status-processing, .details-dialog .detail-item-status .status-retrying { color: #6941c6; background: #f4f3ff; }
.details-dialog .detail-item-status .status-failed, .details-dialog .detail-item-status .status-critical, .details-dialog .detail-item-status .status-partial_failed, .details-dialog .detail-item-status .status-ambiguous, .details-dialog .detail-item-status .status-blocked { color: var(--red-dark); }
.detail-section.detail-card { margin-top: 16px; padding: 22px; border: 1px solid #e0e8ec; border-radius: 18px; background: #fff; box-shadow: 0 5px 18px rgba(16,24,40,.035); }
.details-dialog .detail-section-head { margin-bottom: 16px; }
.detail-section-title { display: flex; min-width: 0; align-items: center; gap: 11px; }
.detail-section-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid #d8edf4; border-radius: 12px; color: var(--cyan-dark); background: #effaff; }
.detail-section-icon svg { width: 19px; height: 19px; }
.details-dialog .detail-section-title h3 { margin: 0; color: var(--ink); font-size: 14px; letter-spacing: -.01em; }
.detail-section-title p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.detail-copy-button { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: #fff; font-size: 11px; font-weight: 750; cursor: pointer; transition: color .18s, border-color .18s, background .18s; }
.detail-copy-button:hover { color: var(--cyan-dark); border-color: #b9eafa; background: var(--cyan-soft); }
.detail-copy-button.copied { color: var(--green-dark); border-color: #abefc6; background: var(--green-soft); }
.detail-copy-button svg { width: 14px; height: 14px; }
.details-dialog .code-block { max-height: min(500px, 60vh); padding: 21px 22px; border: 1px solid #1d3946; border-radius: 14px; color: #d8f3fc; background: linear-gradient(145deg, #102630, #0c2029); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 22px rgba(15,35,44,.12); font-size: 12.5px; line-height: 1.75; }
.details-dialog .code-block:focus-visible { border-color: #42c8f2; outline: 3px solid rgba(18,185,238,.17); }
.details-dialog .code-block::-webkit-scrollbar { width: 9px; height: 9px; }
.details-dialog .code-block::-webkit-scrollbar-thumb { border: 2px solid #102630; border-radius: 999px; background: #45616d; }
.detail-empty { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px dashed #d5e0e5; border-radius: 13px; color: var(--muted); background: #f8fafb; }
.detail-empty > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--muted); background: #eef2f4; }
.detail-empty svg { width: 16px; height: 16px; }
.detail-empty strong { display: block; color: var(--ink-soft); font-size: 12px; }
.detail-empty p { margin: 4px 0 0; font-size: 11px; }
.attempt-history { display: grid; gap: 9px; }
.attempt-card { --attempt-color: var(--muted-light); display: grid; grid-template-columns: auto minmax(0,1fr); gap: 11px; padding: 13px; border: 1px solid #e3e9ed; border-left: 3px solid var(--attempt-color); border-radius: 13px; background: #fafcfd; }
.attempt-completed, .attempt-success { --attempt-color: var(--green); }.attempt-retrying, .attempt-processing { --attempt-color: var(--violet); }.attempt-failed, .attempt-critical { --attempt-color: var(--red); }
.attempt-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--attempt-color); background: color-mix(in srgb, var(--attempt-color) 10%, white); }
.attempt-icon svg { width: 15px; height: 15px; }
.attempt-copy { min-width: 0; }
.attempt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.attempt-card-head strong { font-size: 12px; }.attempt-card-head span { color: var(--muted); font-size: 11px; font-weight: 650; }
.attempt-card time { display: block; margin-top: 4px; color: var(--muted-light); font-size: 10px; }
.attempt-error { margin: 8px 0 0; padding: 9px 10px; border-radius: 8px; color: var(--red-dark); background: var(--red-soft); font-size: 11px; line-height: 1.5; }
.attempt-raw { margin-top: 9px; }
.attempt-raw summary { display: inline-flex; align-items: center; gap: 5px; color: var(--cyan-dark); font-size: 11px; font-weight: 750; cursor: pointer; list-style: none; }
.attempt-raw summary::-webkit-details-marker { display: none; }.attempt-raw summary svg { width: 12px; height: 12px; transition: transform .18s; }.attempt-raw[open] summary svg { transform: rotate(90deg); }
.attempt-raw .code-block { margin-top: 9px; }
.details-dialog .progress-list { gap: 8px; margin: 0; }
.details-dialog .progress-list li { display: flex; min-height: 56px; align-items: center; gap: 12px; padding: 16px 17px; border-color: #e3eaee; border-radius: 13px; background: #fafcfd; font-size: 13px; font-weight: 600; line-height: 1.6; }
.details-dialog .progress-list svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--cyan-dark); }
.details-dialog .progress-list li span { overflow-wrap: anywhere; }
.details-dialog .detail-error { display: flex; align-items: flex-start; gap: 11px; margin-top: 14px; padding: 14px 15px; border-radius: 14px; }
.details-dialog .detail-error > svg { width: 18px; height: 18px; flex: 0 0 auto; }
.detail-error strong { display: block; font-size: 12px; }.detail-error p { margin: 4px 0 0; font-size: 11px; line-height: 1.55; }
.details-dialog .detail-actions { align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 16px 17px; border: 1px solid #fecdca; border-radius: 15px; background: linear-gradient(135deg, #fff, #fff7f6); }
.detail-actions > div { min-width: 0; }.detail-actions > div strong { display: block; color: var(--red-dark); font-size: 12px; }.detail-actions > div span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
/* Workers workspace */
.worker-panel { overflow: hidden; border-color: #dcecf2; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(16,24,40,.07); }
.worker-heading { min-height: 96px; padding: 20px 24px; background: linear-gradient(135deg, #f3fcff 0%, #fff 52%, #f3fdf8 100%); }
.worker-heading-copy { display: flex; min-width: 0; align-items: center; gap: 14px; }
.worker-heading-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border: 1px solid #c9eef9; border-radius: 15px; color: #0895c8; background: #e9f9fe; box-shadow: 0 7px 16px rgba(18,185,238,.12); }
.worker-heading-icon svg { width: 23px; height: 23px; }
.worker-heading-kicker { display: block; margin-bottom: 3px; color: #0895c8; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.worker-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.worker-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.worker-heading .active-count { min-height: 34px; padding: 0 12px; border: 1px solid #c7eed8; border-radius: 999px; font-size: 11px; font-weight: 700; box-shadow: 0 4px 12px rgba(18,183,106,.08); }
.worker-heading .active-count i { width: 8px; height: 8px; box-shadow: 0 0 0 4px rgba(18,183,106,.11); }
.worker-heading .active-count strong { font-size: 12px; }
.worker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px; background: linear-gradient(180deg, #fff, #fbfdfe); }
.worker-card { display: flex; min-height: 148px; flex-direction: column; padding: 18px; overflow: hidden; border-color: #e2e8ec; border-radius: 18px; background: linear-gradient(145deg, #fff 0%, #fff 65%, #f9fcfd 100%); box-shadow: 0 3px 10px rgba(16,24,40,.035); transition: border-color .2s, box-shadow .2s, transform .2s; }
.worker-card::before { inset-block: 18px; width: 4px; border-radius: 0 5px 5px 0; }
.worker-card:hover { border-color: #bce8f6; box-shadow: 0 12px 25px rgba(16,24,40,.08); transform: translateY(-2px); }
.worker-card-head { align-items: center; gap: 12px; }
.worker-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.worker-avatar { position: relative; display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 15px; color: #0895c8; background: #e9f9fe; }
.worker-avatar > svg { width: 22px; height: 22px; }
.worker-avatar i { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--worker-color); }
.worker-role { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.worker-card h3 { max-width: 260px; font-size: 15px; font-weight: 780; letter-spacing: -.015em; }
.worker-card .status-badge { min-height: 30px; padding: 0 10px; font-size: 10px; }
.worker-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid #eef2f4; }
.worker-connection { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 650; }
.worker-connection i { width: 7px; height: 7px; border-radius: 50%; background: var(--worker-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--worker-color) 12%, transparent); }
.worker-card-footer .delete-worker { position: static; display: inline-flex; width: auto; min-height: 38px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #e5e9ec; border-radius: 999px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 700; transition: border-color .18s, color .18s, background .18s, box-shadow .18s; }
.worker-card-footer .delete-worker:hover { border-color: #fda29b; color: var(--red-dark); background: var(--red-soft); box-shadow: 0 5px 14px rgba(240,68,56,.1); }
.worker-card-footer .delete-worker:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(240,68,56,.15); }
.worker-card-footer .delete-worker svg { width: 15px; height: 15px; }
.worker-card.is-offline .worker-avatar { color: #667085; background: #f2f4f7; }

/* Like service workspace */
.like-service-section { position: relative; padding: 24px; border: 1px solid #dcecf2; border-radius: 24px; background: linear-gradient(145deg, #f8fdff 0%, #fff 43%, #fbfdfe 100%); box-shadow: 0 12px 34px rgba(16,24,40,.055); }
#likes .like-heading { align-items: center; margin-bottom: 20px; padding-inline: 2px; }
#likes-title { font-size: 28px; line-height: 1.15; }
#likes .section-heading > div > p:last-child { max-width: 560px; font-size: 13px; line-height: 1.5; }
#refresh-likes { min-height: 46px; padding-inline: 17px; border-color: #dfe7eb; border-radius: 999px; font-size: 13px; box-shadow: 0 5px 14px rgba(16,24,40,.06); }
#refresh-likes:hover { border-color: #b6e9fa; color: #087da7; background: #f5fcff; box-shadow: 0 8px 18px rgba(18,185,238,.1); }
#refresh-likes svg { width: 18px; height: 18px; }
#refresh-likes.is-refreshing svg { animation: spin .75s linear infinite; }
.like-stats { gap: 14px; margin-bottom: 16px; }
.like-stats > .like-stat-card { --like-stat-color: #12b9ee; --like-stat-soft: #e7f8fe; position: relative; display: grid; min-width: 0; min-height: 108px; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 13px; padding: 16px; overflow: hidden; border: 1px solid #e1e8ec; border-radius: 18px; background: #fff; box-shadow: 0 5px 15px rgba(16,24,40,.045); transition: border-color .2s, box-shadow .2s, transform .2s; }
.like-stats > .like-stat-card::after { position: absolute; inset: 0 0 auto; height: 3px; background: var(--like-stat-color); content: ""; opacity: .85; }
.like-stats > .like-stat-card:hover { border-color: color-mix(in srgb, var(--like-stat-color) 35%, #e1e8ec); box-shadow: 0 12px 25px rgba(16,24,40,.075); transform: translateY(-2px); }
.like-stat-profit { --like-stat-color: #12b76a !important; --like-stat-soft: #ecfdf3 !important; }
.like-stat-completed { --like-stat-color: #12b76a !important; --like-stat-soft: #ecfdf3 !important; }
.like-stat-review { --like-stat-color: #f04438 !important; --like-stat-soft: #fef3f2 !important; }
.profit-value { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.profit-positive { color: #12b76a; }
.profit-negative { color: #f04438; }
.profit-zero { color: #98a2b3; }
.buying-price-input { border-color: #e0d4ff !important; background: #faf8ff !important; }
.like-stat-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; color: var(--like-stat-color) !important; background: var(--like-stat-soft); }
.like-stat-icon svg { width: 21px; height: 21px; }
.like-stat-card > div { min-width: 0; }
.like-stat-card > div > span { display: block; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.like-stats .like-stat-card strong { display: block; margin-top: 3px; color: var(--ink); font-size: 28px; font-weight: 780; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.05; }
.like-stat-card small { display: block; margin-top: 5px; overflow: hidden; color: var(--muted-light); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.like-service-panel { border-color: #dfe8ec; border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(16,24,40,.06); }
.tabs { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; gap: 4px; margin: 16px 16px 0; padding: 5px; border: 1px solid #e2e8ec; border-radius: 999px; background: #f5f8fa; scrollbar-width: none; overflow-x: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px; color: #667085; background: transparent; font-size: 11px; font-weight: 720; cursor: pointer; white-space: nowrap; transition: border-color .18s, color .18s, background .18s, box-shadow .18s; }
.tab::after { display: none; }
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--ink-soft); background: rgba(255,255,255,.75); }
.tab.active { border-color: #cceef9; color: #087da7; background: #fff; box-shadow: 0 4px 12px rgba(16,24,40,.07); }
.tab:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(18,185,238,.13); }
.tab-panel { min-height: 180px; margin-top: 16px; border-top: 1px solid #e8edf0; }
.dest-card { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.dest-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dest-card-title { display: flex; align-items: center; gap: 10px; }
.dest-card-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; }
.dest-card-icon.tg { background: #e0f2fe; color: #0284c7; }
.dest-card-icon.gd { background: #ecfdf5; color: #059669; }
.dest-card-icon svg { width: 18px; height: 18px; }
.stat-card.compact-text > strong { font-size: clamp(18px, 1.4vw, 22px); }
#likes .order-table-wrap { overflow-x: auto; scrollbar-gutter: stable; }
#likes .data-table { min-width: 760px; table-layout: fixed; }
#likes .data-table th { height: 46px; padding: 0 18px; font-size: 10px; letter-spacing: .065em; }
#likes .data-table td { height: 80px; padding: 14px 18px; font-size: 13px; }
#like-panel-clients .data-table th:nth-child(1) { width: 30%; }
#like-panel-clients .data-table th:nth-child(2) { width: 16%; }
#like-panel-clients .data-table th:nth-child(3) { width: 10%; }
#like-panel-clients .data-table th:nth-child(4) { width: 14%; }
#like-panel-clients .data-table th:nth-child(5) { width: 30%; }
#likes .data-table tbody tr { transition: background .18s; }
#likes .data-table tbody tr:hover { background: #f9fcfd; }
.like-client-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.like-client-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid #cceef9; border-radius: 13px; color: #087da7 !important; background: #e9f9fe; font-size: 14px !important; font-weight: 800; }
#likes .cell-primary { min-width: 0; gap: 4px; }
#likes .cell-primary strong { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
#likes .cell-primary small { color: var(--muted); font-size: 10px; }
.like-balance-value small, .like-order-count small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 650; }
.like-balance-value strong, .like-order-count strong { display: block; color: var(--ink-soft); font-size: 14px; font-weight: 760; font-variant-numeric: tabular-nums; }
#likes .status-badge { min-height: 29px; padding: 0 10px; font-size: 10px; }
#likes .action-group { align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 8px; }
#likes .mini-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border-radius: 999px; font-size: 10px; font-weight: 750; transition: border-color .18s, color .18s, background .18s, box-shadow .18s, transform .18s; }
#likes .mini-button:hover { transform: translateY(-1px); }
#likes .mini-button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(18,185,238,.13); }
#likes .mini-button svg { width: 15px; height: 15px; }
#likes .mini-button.primary { border-color: transparent; background: linear-gradient(135deg, #20c3ee, #0895c8); box-shadow: 0 6px 14px rgba(18,185,238,.18); }
#likes .mini-button.danger { background: #fff; }
#likes .mini-button.success { background: #fff; }
#likes .mini-button:last-child { width: 38px; padding: 0; border-radius: 50%; }
#likes .price-input { width: 100px; height: 40px; border-radius: 10px; font-size: 12px; }
#likes .code-pill { padding: 7px 10px; border-radius: 999px; font-size: 10px; }
#likes .table-state { min-height: 190px; }
#likes .like-order-list { gap: 11px; padding: 18px; }
#likes .like-order-card { padding: 16px; border-radius: 14px; }
#likes .like-order-card h3 { font-size: 13px; }
#likes .like-order-card p { font-size: 10px; }
#like-panel-api { padding: 18px; }
.like-api-card { display: flex; justify-content: space-between; align-items: center; padding: 24px; border: 1px solid #e1e8ec; border-radius: 18px; background: #fff; box-shadow: 0 5px 15px rgba(16,24,40,.045); transition: border-color .2s, box-shadow .2s; }
.like-api-card:hover { border-color: #cceef9; box-shadow: 0 12px 25px rgba(16,24,40,.075); }
.like-api-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.like-api-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.like-api-subtitle { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.like-api-subtitle strong { color: var(--ink); }
.like-api-metrics { display: flex; gap: 32px; text-align: right; }
.like-api-metric-label { display: block; margin: 0 0 4px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.like-api-metric-value { display: block; font-size: 24px; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; }

.sidebar-scrim { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

@media (max-width: 1199px) {
    .sidebar { z-index: 60; top: 12px; bottom: 12px; left: 12px; width: min(290px, calc(100vw - 24px)); border-radius: 24px; opacity: 1; transform: translateX(calc(-100% - 36px)); box-shadow: 15px 0 45px rgba(16,24,40,.15); pointer-events: auto; transition: transform .24s ease; }
    body.sidebar-open .sidebar, body.sidebar-collapsed.sidebar-open .sidebar { opacity: 1; transform: translateX(0); pointer-events: auto; }
    .sidebar-scrim { position: fixed; z-index: 55; inset: 0; display: block; visibility: hidden; background: rgba(16,24,40,.42); opacity: 0; transition: opacity .24s, visibility .24s; }
    body.sidebar-open .sidebar-scrim { visibility: visible; opacity: 1; }
    .icon-button.sidebar-close, .icon-button.mobile-menu { display: inline-grid; }
    .header-sidebar-toggle { display: none; }
    .header-brand { width: auto; margin-right: 20px; }
    .mobile-menu { order: -1; }
    .page-shell { margin-left: 0; }
    main, body.sidebar-collapsed main { padding-left: 30px; }
    .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .worker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    :root { --topbar-h: 68px; }
    main { padding: 24px 20px 14px; }
    .topbar { padding: 0 20px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .overview-grid, .workspace-grid { grid-template-columns: 1fr; }
    .response-panel { position: static; }
    .settings-fields { flex-wrap: wrap; }
    .like-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .like-service-section { padding: 20px; }
    #orders .order-table-wrap { display: none; }
    #orders .mobile-order-list { display: grid; gap: 12px; padding: 16px; }
}

@media (max-width: 720px) {
    .header-brand { display: none; }
    .breadcrumb > span, .breadcrumb > svg, .live-pill > span:nth-child(2), .live-pill strong { display: none; }
    .live-pill { width: 36px; justify-content: center; padding: 0; }
    .topbar { padding: 0 14px; }.topbar-actions { gap: 6px; }.topbar-actions .icon-button { width: 37px; height: 37px; }.topbar-avatar { width: 35px; height: 35px; }
    main { padding: 20px 14px 12px; }
    .stat-card { min-height: 145px; padding: 17px; }.stat-card::before { inset-block: 17px; }.stat-card > strong { font-size: 27px; }
    .overview-grid { grid-template-columns: 1fr; }.health-content { grid-template-columns: 125px 1fr; gap: 14px; }.health-score { width: 112px; height: 112px; }
    .form-panel, .response-panel { padding: 18px; }.form-grid.two-columns { grid-template-columns: 1fr; }.segmented-control label { min-height: 64px; padding: 11px; }
    .data-toolbar { align-items: stretch; flex-direction: column; }.search-field { width: 100%; }.toolbar-actions { justify-content: flex-end; }
    #orders .data-toolbar { display: grid; min-height: 0; grid-template-columns: 1fr; gap: 15px; padding: 16px; }
    #orders .order-toolbar-actions { display: grid; width: 100%; grid-template-columns: 1fr auto; gap: 10px; }
    #orders .order-search-cluster { display: block; max-width: none; grid-column: 1 / -1; }
    #orders .search-field { width: 100%; }
    #orders #delete-all-orders { width: auto; min-width: 136px; min-height: 52px; grid-column: 2; justify-self: end; padding-inline: 18px; }
    #orders .order-filter-bar { padding: 10px 12px; overflow: hidden; }
    #orders .order-filter-tabs { width: 100%; padding: 2px 2px 5px; overflow-x: auto; scrollbar-width: thin; }
    #orders .order-filter-summary { display: none; }
    .order-table-wrap:has(.order-table) { display: none; }.mobile-order-list { display: grid; gap: 12px; padding: 16px; }.mobile-order-card { position: relative; overflow: hidden; padding: 16px; border: 1px solid var(--border); border-radius: 15px; background: #fff; box-shadow: var(--shadow-xs); cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }.mobile-order-card::before { position: absolute; inset-block: 16px; left: 0; width: 3px; border-radius: 0 4px 4px 0; background: var(--row-accent, var(--cyan)); content: ""; }.mobile-order-card:hover, .mobile-order-card:focus-visible { border-color: #b9eafa; outline: 0; box-shadow: var(--shadow-sm); transform: translateY(-1px); }.mobile-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.mobile-order-title { display: flex; min-width: 0; align-items: center; gap: 10px; }.mobile-order-title .order-mark { width: 42px; height: 42px; border-radius: 11px; }.mobile-order-title > div { min-width: 0; }.mobile-order-card h3 { max-width: 210px; margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }.mobile-order-title small { display: block; margin-top: 3px; color: var(--cyan-dark); font-size: 10px; font-weight: 700; }.mobile-order-card .status-badge { min-height: 28px; padding: 0 9px; font-size: 9px; }.mobile-order-card > .mobile-order-player { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 7px; margin: 14px 0 11px; padding: 11px 12px; border-radius: 10px; color: var(--muted); background: var(--surface-soft); font-size: 10px; }.mobile-order-player svg { width: 15px; height: 15px; color: var(--muted-light); }.mobile-order-player strong { overflow: hidden; color: var(--ink-soft); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; text-align: right; text-overflow: ellipsis; white-space: nowrap; }.mobile-order-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }.mobile-order-meta div { min-width: 0; padding: 11px 12px; border: 1px solid #edf0f3; border-radius: 10px; background: #fff; }.mobile-order-meta span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }.mobile-order-meta strong { display: block; overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.mobile-order-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #eef1f4; color: var(--muted); font-size: 10px; }.mobile-order-footer span, .mobile-order-footer strong { display: inline-flex; align-items: center; gap: 5px; }.mobile-order-footer strong { min-height: 36px; padding: 0 10px; border-radius: 9px; color: var(--cyan-dark); background: var(--cyan-soft); }.mobile-order-footer svg { width: 14px; height: 14px; }
    #orders .mobile-order-title small { font-size: 11px; }
    #orders .mobile-order-card .status-badge { min-height: 30px; padding-inline: 10px; font-size: 10px; }
    #orders .mobile-order-card > .mobile-order-player { padding: 12px; font-size: 11px; }
    #orders .mobile-order-player strong { font-size: 12px; }
    #orders .mobile-order-meta span { font-size: 10px; }
    #orders .mobile-order-meta strong { font-size: 12px; }
    #orders .mobile-order-footer { font-size: 11px; }
    #orders .mobile-order-footer strong { min-height: 42px; padding-inline: 12px; border-radius: 10px; }
    .worker-grid { grid-template-columns: 1fr; }.like-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }.api-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .worker-heading { min-height: 88px; padding: 18px; }
    .worker-heading-icon { width: 44px; height: 44px; border-radius: 13px; }
    .worker-heading .active-count { flex: 0 0 auto; }
    .worker-grid { gap: 14px; padding: 16px; }
    .worker-card { min-height: 150px; padding: 16px; }
    .worker-card-footer .delete-worker { min-height: 44px; padding-inline: 14px; }
    .like-service-section { padding: 18px; border-radius: 21px; }
    #likes .like-heading { margin-bottom: 17px; }
    #likes-title { font-size: 24px; }
    #refresh-likes { min-height: 44px; font-size: 12px; }
    #likes .tabs { max-width: calc(100% - 24px); margin: 13px 12px 0; overflow-x: auto; scroll-snap-type: x proximity; }
    #likes .tab { min-height: 44px; scroll-snap-align: start; }
    #likes .tab-panel { margin-top: 13px; }
    #likes .mini-button { min-height: 44px; }
    .settings-fields { flex-direction: column; }.settings-actions { flex-direction: column-reverse; }.settings-actions .button { width: 100%; }
    .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.page-footer { flex-direction: column; gap: 5px; }
}

@media (max-width: 460px) {
    .notification-button { display: none; }
    #orders .search-field kbd { display: none; }
    .stats-grid { gap: 10px; }.stat-card { min-height: 136px; padding: 14px; }.stat-card::before { inset-block: 14px; }.stat-top { align-items: flex-start; }.stat-icon { width: 30px; height: 30px; }.trend-badge { padding: 4px 6px; font-size: 7px; }.stat-card > p { margin-top: 13px; font-size: 11px; }.stat-card > strong { font-size: 24px; }.stat-card > small { font-size: 8px; }
    .health-content { grid-template-columns: 1fr; }.health-score { margin: 0 auto; }.segmented-control { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.segmented-control label { gap: 7px; padding: 10px 8px; }.segmented-control label > svg { width: 18px; height: 18px; flex: 0 0 auto; }.segmented-control label strong { font-size: 10px; }.segmented-control label small { font-size: 8px; }.inline-buttons { grid-template-columns: 1fr; }.toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }.data-footer span:last-child { display: none; }.worker-heading { align-items: flex-start; flex-direction: column; }
    .like-stats { gap: 8px; }.like-stats > div { min-height: 56px; padding: 10px 12px; }.like-stats strong { font-size: 19px; }.section-actions .button { font-size: 0; }.section-actions .button svg { margin: 0; }.api-grid { grid-template-columns: 1fr; }.detail-grid { grid-template-columns: 1fr; }.dialog > form { padding: 23px 19px; }
    .worker-heading { align-items: center; justify-content: space-between; flex-direction: row; gap: 10px; }
    .worker-heading-icon { display: none; }
    .worker-heading h2 { font-size: 16px; }
    .worker-heading p { max-width: 175px; font-size: 10px; }
    .worker-heading .active-count { min-height: 32px; padding-inline: 10px; font-size: 10px; }
    .worker-card h3 { max-width: 170px; }
    .like-service-section { padding: 14px; border-radius: 18px; }
    #likes .like-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    #likes .like-heading .section-actions { width: 100%; justify-content: space-between; }
    #likes-title { font-size: 22px; }
    #refresh-likes { min-height: 44px; padding-inline: 14px; font-size: 11px; }
    .like-stats > .like-stat-card { min-height: 94px; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 15px; }
    .like-stat-icon { width: 38px; height: 38px; border-radius: 12px; }
    .like-stat-icon svg { width: 18px; height: 18px; }
    .like-stat-card > div > span { font-size: 10px; }
    .like-stats .like-stat-card strong { font-size: 24px; }
    .like-stat-card small { display: none; }
    #likes .tabs { max-width: calc(100% - 16px); margin-inline: 8px; }
    #likes .tab { padding-inline: 13px; }
    .like-api-card { flex-direction: column; align-items: flex-start; gap: 18px; padding: 18px; border-radius: 15px; }
    .like-api-metrics { gap: 20px; }
    .like-api-metric-value { font-size: 20px; }
    #like-panel-api { padding: 14px; }
}

@media (max-width: 720px) {
    .details-dialog { width: calc(100vw - 18px); height: calc(100vh - 18px); max-height: calc(100vh - 18px); border-radius: 21px; }
    .details-dialog .dialog-header { min-height: 82px; padding: 15px 17px; }
    .order-dialog-heading { gap: 11px; }
    .order-dialog-icon { width: 44px; height: 44px; border-radius: 13px; }
    .order-dialog-icon svg { width: 21px; height: 21px; }
    .details-dialog .dialog-header h2 { max-width: calc(100vw - 150px); font-size: 18px; }
    .details-dialog .dialog-header p:last-child { max-width: calc(100vw - 150px); }
    .details-dialog .dialog-close { width: 40px; height: 40px; }
    .details-dialog #order-dialog-body { padding: 16px; }
    .detail-overview, .detail-section.detail-card { padding: 15px; border-radius: 16px; }
    .details-dialog .detail-item { min-height: 72px; padding: 11px; }
    .detail-section-title p { max-width: 360px; }
    .details-dialog .code-block { padding: 15px; font-size: 11px; line-height: 1.7; }
    .details-dialog .progress-list li { min-height: 50px; padding: 13px 14px; font-size: 11px; }
    .details-dialog .progress-list svg { width: 17px; height: 17px; }
}

@media (max-width: 520px) {
    .details-dialog .detail-grid { grid-template-columns: 1fr; }
    .detail-overview-head { align-items: flex-start; }
    .detail-section-title p { display: none; }
    .detail-copy-button span { display: none; }
    .detail-copy-button { width: 36px; padding: 0; justify-content: center; }
    .attempt-card-head { align-items: flex-start; flex-direction: column; gap: 3px; }
    .details-dialog .detail-actions { align-items: stretch; flex-direction: column; }
    .details-dialog .detail-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
