:root {
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #edf3ff;
  --ink: #071a3d;
  --muted: #5d6b85;
  --line: #d9e2f1;
  --blue: #1358e8;
  --blue-dark: #071c46;
  --cyan: #1fd2e4;
  --green: #138a61;
  --red: #c43a4d;
  --shadow: 0 22px 70px rgba(17, 43, 92, .13);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 12px max(24px, calc((100vw - 1240px) / 2)); background: rgba(244,247,252,.92); border-bottom: 1px solid rgba(217,226,241,.8); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 18px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 14px; }
.brand strong { letter-spacing: .12em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a, .nav-button { color: var(--ink); font-weight: 650; }
.nav-button, .text-button { padding: 0; border: 0; background: none; cursor: pointer; }
.inline-form { display: inline; margin: 0; }
main { min-height: calc(100vh - 180px); }
.hero { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; max-width: 1240px; min-height: 700px; margin: auto; padding: 80px 24px; }
.hero h1, .page-hero h1 { margin: 14px 0 22px; font-size: clamp(44px, 6vw, 78px); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 span { color: var(--blue); }
.hero p, .page-hero p { max-width: 720px; color: var(--muted); font-size: 20px; }
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero__actions, .action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 21px; border: 1px solid var(--blue); border-radius: 14px; background: var(--blue); color: white; font-weight: 750; cursor: pointer; box-shadow: 0 12px 28px rgba(19,88,232,.2); }
.button:hover { text-decoration: none; filter: brightness(1.04); }
.button--ghost { background: transparent; color: var(--blue); box-shadow: none; }
.button--small { min-height: 38px; padding: 8px 14px; border-radius: 11px; font-size: 14px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.trust-row span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.7); font-size: 13px; }
.hero__visual { position: relative; min-height: 500px; }
.visual-card--main { position: absolute; inset: 35px 40px 25px 35px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 42px; background: radial-gradient(circle at 30% 20%, #1b64da, #071c46 66%); box-shadow: var(--shadow); }
.visual-card--main img { width: 76%; max-width: 420px; filter: drop-shadow(0 28px 44px rgba(0,0,0,.24)); }
.price-chip, .alert-chip { position: absolute; z-index: 2; padding: 13px 18px; border-radius: 16px; box-shadow: var(--shadow); font-weight: 800; }
.price-chip--old { top: 20px; right: 0; background: white; color: var(--muted); text-decoration: line-through; }
.price-chip--new { top: 95px; right: -10px; background: var(--cyan); color: #002b42; font-size: 24px; }
.alert-chip { left: 0; bottom: 5px; background: white; color: var(--blue); }
.section { max-width: 1240px; margin: 0 auto; padding: 86px 24px; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading h2, .panel h2 { margin: 8px 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card, .panel, .price-card, .auth-card, .callout { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 40px rgba(33,57,102,.07); }
.card { padding: 30px; }
.card h3 { margin: 16px 0 7px; font-size: 23px; }
.card p, .feature-grid p { color: var(--muted); }
.step { display: inline-grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; background: var(--surface-2); color: var(--blue); font-weight: 850; }
.section--dark { max-width: 1192px; margin-bottom: 70px; border-radius: 38px; background: var(--blue-dark); color: white; }
.section--dark .eyebrow { color: var(--cyan); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-grid > div { padding: 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(255,255,255,.05); }
.feature-grid strong { font-size: 21px; }
.feature-grid p { color: #c6d4ed; }
.page-hero { max-width: 1040px; margin: auto; padding: 90px 24px 44px; text-align: center; }
.page-hero h1 { font-size: clamp(40px, 6vw, 68px); }
.page-hero p { margin-inline: auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1160px; margin: 0 auto; padding: 24px; }
.price-card { position: relative; padding: 32px; }
.price-card--featured { border-color: var(--blue); transform: translateY(-12px); box-shadow: 0 28px 70px rgba(19,88,232,.18); }
.price-card h2 { margin: 0; font-size: 28px; }
.price-card ul { min-height: 190px; padding-left: 20px; color: var(--muted); }
.price-card li { margin: 9px 0; }
.price { margin: 20px 0 4px; font-size: 38px; font-weight: 850; letter-spacing: -.04em; }
.price small { font-size: 14px; color: var(--muted); }
.badge { position: absolute; top: 16px; right: 16px; padding: 5px 10px; border-radius: 999px; background: var(--cyan); color: #00314b; font-size: 12px; font-weight: 800; }
.legal-note { max-width: 900px; margin: 25px auto 70px; padding: 0 24px; color: var(--muted); text-align: center; }
.auth-wrap { display: grid; place-items: center; min-height: 680px; padding: 50px 24px; }
.auth-card { width: min(100%, 470px); padding: 38px; }
.auth-card h1 { margin: 7px 0 24px; font-size: 42px; letter-spacing: -.04em; }
.auth-card label { display: block; margin: 18px 0; font-weight: 700; }
.auth-card input { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; color: var(--ink); outline: none; }
.auth-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(19,88,232,.1); }
.auth-card small { display: block; margin-top: 5px; color: var(--muted); font-weight: 400; }
.auth-card .button { width: 100%; }
.account-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; max-width: 1240px; margin: auto; padding: 65px 24px 28px; }
.account-head h1 { margin: 5px 0 0; font-size: 48px; letter-spacing: -.045em; }
.account-head p { margin: 0; color: var(--muted); }
.plan-pill { min-width: 190px; padding: 16px 20px; border-radius: 18px; background: var(--blue-dark); color: white; }
.plan-pill span, .plan-pill small { display: block; color: #bbcae5; }
.plan-pill strong { display: block; margin: 2px 0; color: var(--cyan); font-size: 22px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1240px; margin: auto; padding: 0 24px 24px; }
.panel { padding: 28px; }
.panel--wide { max-width: 1192px; margin: 0 auto 60px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel h2 { font-size: 30px; }
.text-link { font-weight: 700; }
.list { margin-top: 24px; border-top: 1px solid var(--line); }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.list-item small { display: block; color: var(--muted); }
.status { display: inline-flex; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #f5f7fb; color: var(--muted); font-size: 12px; font-weight: 800; }
.status--ok { border-color: #a8e0cb; background: #eaf9f3; color: var(--green); }
.empty { padding: 26px 0 5px; color: var(--muted); }
.callout { max-width: 1192px; margin: 0 auto 24px; padding: 23px 26px; }
.callout code { display: inline-block; margin-right: 10px; padding: 9px 13px; border-radius: 10px; background: var(--blue-dark); color: var(--cyan); font-size: 17px; }
.callout small { display: block; margin-top: 10px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.docs, .legal-page { max-width: 900px; margin: 0 auto; padding: 10px 24px 80px; }
.docs h2, .legal-page h2 { margin-top: 38px; }
pre { overflow-x: auto; padding: 20px; border-radius: 18px; background: #06183c; color: #d9f8ff; line-height: 1.5; }
code { font-family: "SFMono-Regular", Consolas, monospace; }
.legal-page h1 { margin: 8px 0 28px; font-size: clamp(38px, 6vw, 60px); line-height: 1.08; }
.legal-page p { color: #43516b; }
.flash { position: fixed; z-index: 50; top: 88px; left: 50%; width: min(92vw, 680px); padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); transform: translateX(-50%); transition: opacity .3s, transform .3s; }
.flash--success { border-color: #9dd9c2; color: var(--green); }
.flash--error { border-color: #edb2bb; color: var(--red); }
.flash--hide { opacity: 0; transform: translate(-50%, -10px); pointer-events: none; }
.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 38px max(24px, calc((100vw - 1192px) / 2)); border-top: 1px solid var(--line); background: white; }
.site-footer span { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 55px; }
  .hero__visual { min-height: 430px; }
  .cards--3, .pricing-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .account-head { align-items: stretch; flex-direction: column; }
}
@media (max-width: 680px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; gap: 13px; overflow-x: auto; padding-bottom: 4px; }
  .hero { min-height: auto; }
  .hero h1 { font-size: 45px; }
  .hero__visual { min-height: 350px; }
  .visual-card--main { inset: 25px 12px; }
  .price-chip--new { right: 0; }
  .site-footer { flex-direction: column; }
  .action-row { flex-direction: column; }
  .action-row form, .action-row .button { width: 100%; }
}

.button--danger { border-color: #d73752; background: #fff1f3; color: #bd1f3b; box-shadow: none; }
.button--danger:hover { background: #ffe5e9; }
.status--error { border-color: #edb2bb; background: #fff1f3; color: var(--red); }
.delivery-error { display: block; max-width: 440px; margin-top: 7px; color: var(--red); white-space: normal; line-height: 1.35; }
.panel__head form { flex: 0 0 auto; }
@media (max-width: 680px) { .panel__head { align-items: flex-start; flex-direction: column; } .panel__head form, .panel__head .button { width: 100%; } }

/* Admin panel */
.nav-admin { color: #7a3df0 !important; }
.admin-head { align-items: center; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; max-width: 1240px; margin: 0 auto 24px; padding: 0 24px; }
.stat-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 32px rgba(33,57,102,.06); }
.stat-card span { display: block; min-height: 42px; color: var(--muted); font-size: 13px; font-weight: 700; }
.stat-card strong { display: block; margin-top: 6px; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.admin-panel { margin-bottom: 70px; }
.admin-toolbar { margin-bottom: 18px; }
.admin-search { display: flex; align-items: center; gap: 8px; }
.admin-search input, .stack-form input, .stack-form select, .counter-form input { min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdff; color: var(--ink); }
.admin-search input { width: min(340px, 48vw); }
.admin-table td { vertical-align: middle; }
.admin-table td small { display: block; color: var(--muted); white-space: normal; }
.status--admin { border-color: #ccb9ff; background: #f3efff; color: #6c34d8; }
.delivery-summary { display: inline-flex; min-width: 42px; padding: 4px 7px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.delivery-summary--ok { background: #eaf9f3; color: var(--green); }
.delivery-summary--bad { background: #fff1f3; color: var(--red); }
.admin-controls { grid-template-columns: repeat(4, 1fr); }
.stack-form { display: grid; gap: 14px; margin: 18px 0; }
.stack-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 750; }
.stack-form small { color: var(--muted); font-weight: 400; }
.counter-display { display: flex; align-items: baseline; gap: 8px; margin: 18px 0; }
.counter-display strong { font-size: 48px; line-height: 1; letter-spacing: -.05em; }
.counter-display span { color: var(--muted); }
.action-row--compact { margin-top: 12px; }
.counter-form { display: flex; align-items: center; gap: 8px; }
.counter-form input { width: 100px; }
.muted-note { display: block; color: var(--muted); line-height: 1.45; }
.compact-list { max-height: 430px; overflow: auto; }
.text-button--danger { color: var(--red); }
.inline-alert { margin: 0 0 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; }
.inline-alert--error { border-color: #edb2bb; background: #fff1f3; color: var(--red); }
@media (max-width: 1180px) { .admin-stats { grid-template-columns: repeat(3, 1fr); } .admin-controls { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .admin-stats, .admin-controls { grid-template-columns: 1fr; } .admin-search { width: 100%; flex-wrap: wrap; } .admin-search input { width: 100%; } .stat-card span { min-height: auto; } }

/* Cloud monitors */
.monitor-page-head { align-items: center; }
.monitor-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.monitor-quota { min-width: 210px; }
.monitor-toolbar-panel { margin-bottom: 22px; padding-block: 18px; }
.monitor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.monitor-filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.monitor-filter-tabs a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8faff; color: var(--ink); font-weight: 750; }
.monitor-filter-tabs a:hover { text-decoration: none; border-color: #aebfe0; }
.monitor-filter-tabs a.is-active { border-color: var(--blue); background: var(--surface-2); color: var(--blue); }
.monitor-filter-tabs span { display: inline-flex; min-width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 999px; background: white; font-size: 12px; }
.monitor-search-form { display: flex; align-items: center; gap: 8px; }
.monitor-search-form input { min-width: 260px; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdff; }
.monitor-cloud-list { display: grid; gap: 16px; max-width: 1192px; margin: 0 auto 70px; padding: 0 24px; }
.monitor-cloud-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; padding: 24px 26px; transition: opacity .2s, border-color .2s; }
.monitor-cloud-card.is-paused { opacity: .72; }
.monitor-cloud-main h2 { margin: 9px 0 3px; font-size: 24px; line-height: 1.2; }
.monitor-cloud-state { display: flex; flex-wrap: wrap; gap: 7px; }
.status--price { border-color: #a6dfc3; background: #eaf9f3; color: var(--green); }
.monitor-cloud-query { margin: 0 0 12px; color: var(--muted); }
.monitor-cloud-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; color: var(--muted); font-size: 14px; }
.monitor-cloud-meta strong { color: var(--ink); }
.monitor-cloud-error { margin: 12px 0 0; padding: 9px 11px; border-radius: 10px; background: #fff1f3; color: var(--red); font-size: 13px; }
.monitor-cloud-price { min-width: 160px; align-self: center; text-align: right; }
.monitor-cloud-price span, .monitor-cloud-price small { display: block; color: var(--muted); }
.monitor-cloud-price strong { display: block; margin: 3px 0; font-size: 30px; letter-spacing: -.04em; }
.monitor-cloud-actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding-top: 14px; border-top: 1px solid var(--line); }
.monitor-cloud-actions form { margin: 0; }
.monitor-empty-card { max-width: 720px; margin: 20px auto; text-align: center; }
.monitor-empty-card strong { font-size: 24px; }
.monitor-empty-card p { color: var(--muted); }
.monitor-editor { display: grid; gap: 22px; max-width: 1192px; margin: 0 auto 70px; padding: 0 24px; }
.monitor-editor .panel { margin: 0; }
.monitor-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 750; }
.field small { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdff; color: var(--ink); outline: none; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(19,88,232,.09); }
.monitor-switches { align-content: center; gap: 11px; }
.switch-row { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; }
.switch-row input { width: 18px; min-height: 18px; height: 18px; }
.monitor-source-editor .status { align-self: center; }
.monitor-editor-actions { display: flex; justify-content: flex-end; gap: 12px; }
.account-monitor-summary { margin-bottom: 24px; }
.monitor-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 10px; }
.monitor-summary-grid > div { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8faff; }
.monitor-summary-grid span { display: block; color: var(--muted); font-size: 13px; }
.monitor-summary-grid strong { display: block; margin-top: 3px; font-size: 25px; }
@media (max-width: 820px) {
  .monitor-head-actions, .monitor-toolbar { align-items: stretch; flex-direction: column; }
  .monitor-search-form { flex-wrap: wrap; }
  .monitor-search-form input { width: 100%; min-width: 0; }
  .monitor-cloud-card { grid-template-columns: 1fr; }
  .monitor-cloud-price { text-align: left; }
  .monitor-form-grid, .monitor-summary-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
}

/* PriceAlert 1.5.2 — technical support */
.support-layout { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: 22px; max-width: 1240px; margin: 0 auto 70px; padding: 0 24px; }
.support-layout .panel { margin: 0; }
.support-create-panel { align-self: start; position: sticky; top: 98px; }
.support-form, .support-reply-form { display: grid; gap: 16px; margin-top: 20px; }
.support-form label, .support-reply-form label, .support-reply-actions label, .support-status-form label { display: grid; gap: 7px; color: var(--ink); font-weight: 750; }
.support-form input, .support-form textarea, .support-form select,
.support-reply-form textarea, .support-reply-form select,
.support-status-form select, .admin-search select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fbfdff; color: var(--ink); font: inherit; outline: none;
}
.support-form textarea, .support-reply-form textarea { resize: vertical; min-height: 126px; }
.support-form input:focus, .support-form textarea:focus, .support-form select:focus,
.support-reply-form textarea:focus, .support-reply-form select:focus, .support-status-form select:focus,
.admin-search select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(19,88,232,.1); }
.support-ticket-list { display: grid; gap: 10px; margin-top: 20px; }
.support-ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdff; color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.support-ticket-row:hover { text-decoration: none; border-color: #adc4ef; transform: translateY(-1px); box-shadow: 0 10px 25px rgba(30,68,134,.08); }
.support-ticket-row.has-unread { border-color: #83b1ff; background: #f0f6ff; }
.support-ticket-main { min-width: 0; }
.support-ticket-main > strong { display: block; margin: 7px 0 3px; font-size: 18px; }
.support-ticket-main p { margin: 0; color: var(--muted); }
.support-ticket-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.support-ticket-number { color: var(--muted); font: 700 12px/1.2 "SFMono-Regular", Consolas, monospace; }
.support-ticket-side { flex: 0 0 170px; text-align: right; color: var(--muted); }
.support-ticket-side span, .support-ticket-side small { display: block; }
.status--reply, .status--ticket-answered { border-color: #9ebffc; background: #edf4ff; color: var(--blue); }
.status--ticket-open { border-color: #f2cd84; background: #fff8e8; color: #9a6500; }
.status--ticket-waiting_user { border-color: #d6b5f5; background: #f8efff; color: #713ab1; }
.status--ticket-closed { border-color: var(--line); background: #f1f4f8; color: var(--muted); }
.support-head-actions { align-items: center; margin-top: 0; }
.support-thread-panel { display: grid; gap: 24px; }
.support-thread { display: grid; gap: 14px; }
.support-message { max-width: 82%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 19px; background: #f8fbff; }
.support-message--user { justify-self: end; border-bottom-right-radius: 6px; background: #edf4ff; }
.support-message--admin { justify-self: start; border-bottom-left-radius: 6px; background: white; }
.support-message header { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 9px; }
.support-message header time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.support-message-body { overflow-wrap: anywhere; }
.support-context { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.support-context summary { cursor: pointer; font-weight: 750; }
.support-context dl { display: grid; gap: 7px; margin: 12px 0 0; }
.support-context dl div { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 10px; }
.support-context dt { font-weight: 750; }
.support-context dd { margin: 0; overflow-wrap: anywhere; }
.support-reply-form { padding-top: 22px; border-top: 1px solid var(--line); }
.support-reply-actions { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.support-reply-actions label { flex: 1 1 auto; }
.support-status-form { display: flex; align-items: end; gap: 12px; padding-top: 18px; border-top: 1px dashed var(--line); }
.support-status-form label { min-width: 230px; }
.support-ticket-meta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.support-ticket-meta div { min-width: 0; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.support-ticket-meta span, .support-ticket-meta strong { display: block; }
.support-ticket-meta span { color: var(--muted); font-size: 12px; }
.support-ticket-meta strong { margin-top: 4px; overflow-wrap: anywhere; }
.support-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card--attention { border-color: #f0c36b; background: #fff9ec; }
.support-row-new { background: #f1f7ff; }
.support-row-new td:first-child strong::before { content: "● "; color: var(--blue); }
.support-admin-table small { display: block; color: var(--muted); }
.support-dashboard-item { color: var(--ink); }
.support-dashboard-item:hover { text-decoration: none; }

@media (max-width: 900px) {
  .support-layout { grid-template-columns: 1fr; }
  .support-create-panel { position: static; }
  .support-ticket-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .support-ticket-row { align-items: flex-start; flex-direction: column; }
  .support-ticket-side { flex-basis: auto; text-align: left; }
  .support-message { max-width: 100%; }
  .support-message header { flex-direction: column; gap: 3px; }
  .support-reply-actions, .support-status-form { align-items: stretch; flex-direction: column; }
  .support-status-form label { min-width: 0; }
  .support-ticket-meta, .support-stats { grid-template-columns: 1fr; }
  .support-context dl div { grid-template-columns: 1fr; gap: 1px; }
}

/* PriceAlert 2.0.2 — GigaChat admin diagnostics */
.ai-diagnostic { scroll-margin-top: 90px; }
.ai-diagnostic__head { align-items: flex-start; gap: 28px; }
.ai-diagnostic__head p { max-width: 760px; margin: 8px 0 0; color: var(--muted); }
.ai-diagnostic__state { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.ai-diagnostic__state form { margin: 0; }
.ai-config-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.ai-config-grid > div { min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8faff; }
.ai-config-grid span, .ai-config-grid strong { display: block; }
.ai-config-grid span { color: var(--muted); font-size: 12px; font-weight: 750; }
.ai-config-grid strong { margin-top: 5px; overflow-wrap: anywhere; font-size: 14px; }
.ai-config-grid__wide { grid-column: span 3; }
.ai-issues { display: grid; gap: 9px; margin-top: 18px; }
.ai-issue { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 13px; align-items: start; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; }
.ai-issue strong { font-size: 13px; }
.ai-issue span { overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.ai-issue--error { border-color: #edb2bb; background: #fff3f4; }
.ai-issue--error strong { color: var(--red); }
.ai-issue--warning { border-color: #efd08b; background: #fff9eb; }
.ai-issue--warning strong { color: #8d6200; }
.ai-test-result { margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fafcff; }
.ai-test-result--ok { border-color: #9dd9c2; background: #f1fbf7; }
.ai-test-result--error { border-color: #edb2bb; background: #fff6f7; }
.ai-test-result__summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 15px; }
.ai-test-result__summary h3 { margin: 4px 0 0; font-size: 21px; }
.ai-test-result__summary > strong { color: var(--muted); white-space: nowrap; }
.ai-check-list { display: grid; gap: 9px; }
.ai-check { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.ai-check__mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 999px; background: #eef2f8; font-weight: 900; }
.ai-check p { margin: 3px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.ai-check small { color: var(--muted); white-space: nowrap; }
.ai-check--success .ai-check__mark { background: #dff7ed; color: var(--green); }
.ai-check--error .ai-check__mark { background: #ffe2e6; color: var(--red); }
.ai-check--warning .ai-check__mark { background: #fff0c9; color: #8d6200; }
.ai-response-preview { margin-top: 15px; }
.ai-response-preview summary { cursor: pointer; color: var(--blue); font-weight: 800; }
.ai-response-preview pre { max-height: 330px; margin-bottom: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-help { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.ai-help > strong { display: block; margin-bottom: 10px; }
.ai-help pre { margin: 0; padding: 16px; font-size: 13px; white-space: pre-wrap; }
.ai-help p { margin: 11px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 820px) {
  .ai-diagnostic__head, .ai-test-result__summary { flex-direction: column; }
  .ai-diagnostic__state { justify-content: flex-start; }
  .ai-config-grid { grid-template-columns: 1fr; }
  .ai-config-grid__wide { grid-column: auto; }
  .ai-issue { grid-template-columns: 1fr; gap: 3px; }
  .ai-check { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
  .ai-check small { grid-column: 2; }
}

/* PriceAlert 2.1 — compact AI-first monitor list */
:root {
  --ai: #6548e8;
  --ai-soft: #f0edff;
  --ai-line: #d7cffd;
}
.compact-page-head { padding-top: 42px; padding-bottom: 20px; }
.compact-page-head h1 { font-size: 42px; }
.compact-toolbar-panel { margin-bottom: 16px; padding: 14px 16px; border-radius: 18px; }
.monitor-compact-list { gap: 9px; margin-bottom: 60px; }
.monitor-compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) minmax(155px, auto) auto;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 7px 24px rgba(33,57,102,.055);
  transition: border-color .2s, box-shadow .2s, opacity .2s;
}
.monitor-compact-card:hover { border-color: #b5c7e6; box-shadow: 0 12px 32px rgba(33,57,102,.09); }
.monitor-compact-card.is-paused { opacity: .65; }
.monitor-compact-state { align-self: stretch; background: linear-gradient(180deg, var(--blue), #5ba4ff); }
.monitor-compact-card.is-paused .monitor-compact-state { background: #a9b4c4; }
.monitor-compact-main { min-width: 0; padding: 14px 0; }
.monitor-compact-title-row { min-width: 0; display: flex; align-items: center; gap: 7px; }
.monitor-compact-title-row h2 {
  min-width: 0; overflow: hidden; margin: 0; font-size: 18px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap;
}
.monitor-decision, .monitor-threshold-hit, .monitor-paused-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px;
  border-radius: 999px; font-size: 10px; font-weight: 850; white-space: nowrap;
}
.monitor-decision.is-ai { border: 1px solid var(--ai-line); background: var(--ai-soft); color: #5435ce; }
.monitor-decision.is-exact, .monitor-decision.is-ok { background: #e8f8f1; color: var(--green); }
.monitor-decision.is-warning, .monitor-decision.is-pending { background: #fff4dc; color: #956000; }
.monitor-decision.is-error { background: #ffe9ed; color: var(--red); }
.monitor-threshold-hit { background: #e7f8ef; color: var(--green); }
.monitor-paused-chip { background: #edf1f5; color: var(--muted); }
.monitor-compact-query {
  overflow: hidden; margin: 3px 0 7px; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap;
}
.monitor-compact-meta { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 15px; color: var(--muted); font-size: 11px; }
.monitor-compact-meta strong { color: var(--ink); }
.monitor-compact-error {
  overflow: hidden; margin: 7px 0 0; color: var(--red); font-size: 11px; text-overflow: ellipsis; white-space: nowrap;
}
.monitor-compact-price { min-width: 155px; display: grid; justify-items: end; padding: 13px 0; text-align: right; }
.monitor-compact-price span, .monitor-compact-price small { color: var(--muted); font-size: 10px; }
.monitor-compact-price strong { margin: 1px 0; font-size: 25px; letter-spacing: -.04em; white-space: nowrap; }
.monitor-compact-actions { display: flex; align-items: center; gap: 5px; padding-right: 13px; }
.monitor-compact-actions form { margin: 0; }
.compact-icon-action {
  display: inline-grid; width: 32px; height: 32px; min-height: 32px; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 9px; background: #f8faff; color: #455b77;
  font-size: 15px; font-weight: 850; line-height: 1; cursor: pointer; box-shadow: none;
}
.compact-icon-action:hover { border-color: #adc2e5; background: #eef4ff; text-decoration: none; }
.compact-icon-action.is-primary { border-color: #b9cdf5; background: #edf4ff; color: var(--blue); }
.compact-icon-action.is-danger { border-color: transparent; background: transparent; color: var(--red); }
.compact-empty-card { display: grid; justify-items: center; gap: 8px; padding: 42px 24px; text-align: center; }
.compact-empty-card p { margin: 0; color: var(--muted); }
.empty-ai-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: var(--ai-soft); color: #5435ce; font-size: 24px; }

@media (max-width: 900px) {
  .monitor-compact-card { grid-template-columns: 4px minmax(0, 1fr) auto; gap: 12px; }
  .monitor-compact-price { grid-column: 2; grid-row: 2; min-width: 0; justify-items: start; padding: 0 0 13px; text-align: left; }
  .monitor-compact-price strong { font-size: 22px; }
  .monitor-compact-actions { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; padding-right: 10px; }
}
@media (max-width: 620px) {
  .compact-page-head { padding-top: 28px; }
  .compact-page-head h1 { font-size: 34px; }
  .monitor-compact-card { grid-template-columns: 4px minmax(0, 1fr); }
  .monitor-compact-main { padding-right: 12px; }
  .monitor-compact-title-row { align-items: flex-start; flex-wrap: wrap; }
  .monitor-compact-title-row h2 { flex-basis: 100%; }
  .monitor-compact-price { grid-column: 2; }
  .monitor-compact-actions { grid-column: 2; grid-row: auto; flex-direction: row; padding: 0 12px 12px 0; }
  .monitor-compact-meta span:nth-child(n+3) { display: none; }
}

/* PriceAlert 2.2 — source of best price, trend and more readable monitor cards */
.monitor-compact-card {
  grid-template-columns: 4px minmax(0, 1fr) minmax(178px, auto) auto;
  min-height: 104px;
}

.monitor-compact-title-row h2 {
  font-size: 20px;
  line-height: 1.3;
}

.monitor-compact-query {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.35;
}

.monitor-compact-meta {
  font-size: 12px;
  line-height: 1.4;
}

.monitor-compact-price {
  min-width: 178px;
  gap: 2px;
}

.monitor-price-source {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.monitor-price-source > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.market-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.market-badge--ozon {
  background: #e8f0ff;
  color: #1557c8;
}

.market-badge--wildberries {
  background: #f8e8fb;
  color: #8d2ca5;
}

.monitor-compact-price strong {
  font-size: 28px;
}

.monitor-price-trend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.monitor-price-trend.is-down { color: var(--green); }
.monitor-price-trend.is-up { color: var(--red); }
.monitor-price-trend.is-flat,
.monitor-price-trend.is-initial { color: var(--muted); }

@media (max-width: 900px) {
  .monitor-compact-price {
    min-width: 0;
    justify-items: start;
  }
  .monitor-price-source,
  .monitor-price-trend {
    justify-content: flex-start;
  }
}

/* Password recovery */
.auth-lead { margin: -8px 0 20px; color: var(--muted); line-height: 1.6; }
.auth-links { margin: 20px 0 0; text-align: center; }
.auth-security-note { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.5; }
.auth-password-row { display: flex; justify-content: flex-end; margin: -8px 0 16px; font-size: 14px; font-weight: 700; }
