:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: #20242b;
  background: #f6f7f8;
  --red: #d7192f;
  --red-dark: #af1023;
  --ink: #20242b;
  --muted: #6c737d;
  --line: #e1e4e8;
  --surface: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { color: #69101c; background: #f9dadd; }
.eyebrow, .hero-kicker {
  color: #757d87;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.eyebrow.light { color: #737a84; }
.primary, .secondary, .quiet-button, .hero-action, .small-button, .link-button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.primary { color: #fff; border-color: var(--red); background: var(--red); }
.primary:hover { border-color: var(--red-dark); background: var(--red-dark); }
.secondary { color: #343b45; border-color: #d6dbe0; background: #fff; }
.secondary:hover { border-color: #adb5bf; background: #f9fafb; }
.quiet-button, .link-button, .text-button { color: #47515d; background: transparent; }
.quiet-button:hover, .link-button:hover, .text-button:hover { color: var(--red); background: #fbf4f5; }
.link-button { min-height: 30px; padding: 4px 6px; }
.text-button { min-height: 28px; padding: 3px 5px; border: 0; font-size: 11px; font-weight: 600; }
.small-button { min-height: 29px; padding: 5px 9px; color: #47515d; border-color: #d6dbe0; background: #fff; font-size: 11px; }
.small-button:hover { border-color: #aeb6c0; }
.small-button.red { color: var(--red); }
.icon-button { width: 32px; height: 32px; min-height: 32px; padding: 0; color: #67707a; border-color: var(--line); background: #fff; font-size: 22px; font-weight: 400; }
.icon-button:hover { color: var(--ink); background: #f5f6f7; }
.wide { width: 100%; }
.error { margin: 0; color: #b51c2c; font-size: 12px; line-height: 1.5; }
.error:empty { display: none; }
[data-icon] { display: inline-flex; flex: none; align-items: center; justify-content: center; }
[data-icon] svg { display: block; width: 100%; height: 100%; }

/* Access */
.login-shell { display: grid; grid-template-columns: minmax(300px, 39%) 1fr; min-height: 100vh; min-height: 100dvh; background: #fff; }
.login-story { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 3vw, 50px); border-right: 1px solid var(--line); background: #f4f5f6; }
.login-brand, .sidebar-brand { display: flex; align-items: center; }
.brand-logo { display: block; width: 148px; height: 44px; object-fit: contain; object-position: left center; }
.login-brand .brand-logo { width: 174px; height: 52px; }
.login-story-copy { max-width: 385px; margin: auto 0; padding: 50px 0; }
.login-story-copy h1 { margin: 14px 0 18px; color: var(--ink); font-size: clamp(33px, 3vw, 50px); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; }
.login-story-copy h1 em { color: var(--ink); font-style: normal; }
.login-story-copy p { max-width: 330px; margin: 0; color: #626b76; font-size: 14px; line-height: 1.65; }
.login-orbit { display: none; }
.login-foot { color: #858d96; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.login-side { display: grid; place-items: center; padding: 36px; }
.login-card { display: grid; gap: 15px; width: min(100%, 370px); }
.login-card .mobile-login-brand { display: none; }
.login-card h2 { margin: 0; color: var(--ink); font-size: 27px; font-weight: 650; letter-spacing: -.025em; }
.login-card > p { margin: -6px 0 9px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-card label { display: grid; gap: 7px; color: #3e4650; font-size: 12px; font-weight: 600; }
.login-card input { width: 100%; height: 40px; padding: 0 11px; color: var(--ink); border: 1px solid #cfd5db; border-radius: 5px; background: #fff; outline: none; }
.login-card input:focus { border-color: #79828d; box-shadow: 0 0 0 2px #e8eaed; }
.login-card .primary { justify-content: space-between; min-height: 40px; margin-top: 4px; }

/* Application frame */
.workspace { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; z-index: 5; display: flex; flex: 0 0 228px; flex-direction: column; width: 228px; height: 100vh; height: 100dvh; padding: 19px 10px 12px; border-right: 1px solid var(--line); background: #fff; }
.sidebar-brand { padding: 5px 14px 22px; }
.sidebar-brand .brand-logo { width: 140px; height: 42px; }
.sidebar-context { display: flex; align-items: center; gap: 9px; margin: 0 7px 14px; padding: 10px 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.context-dot, .online-pill i { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #358561; }
.sidebar-context > div { display: grid; gap: 2px; min-width: 0; }
.sidebar-context strong, .sidebar-context span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-context strong { color: #3e4550; font-size: 12px; font-weight: 650; }
.sidebar-context span:last-child { color: #89919a; font-size: 10px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow-y: auto; padding: 0 5px 10px; scrollbar-width: thin; }
.nav-group-title { margin: 18px 10px 6px; color: #9098a1; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.nav-group-title:first-child { margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 35px; padding: 7px 10px; color: #525c67; border: 0; border-left: 2px solid transparent; border-radius: 4px; background: transparent; text-align: left; font-size: 12px; font-weight: 500; white-space: nowrap; }
.nav:hover { color: var(--ink); background: #f5f6f7; }
.nav.active { color: var(--ink); border-left-color: var(--red); background: #f2f3f5; font-weight: 650; }
.nav-icon { width: 16px; height: 16px; color: #727c87; }
.nav.active .nav-icon { color: var(--red); }
.sidebar-bottom { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: auto; padding: 13px 7px 2px; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; flex: none; width: 30px; height: 30px; color: #59636e; border: 1px solid #dce0e4; border-radius: 50%; background: #f2f3f5; font-size: 12px; font-weight: 700; }
.profile-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.profile-copy strong, .profile-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { color: #363e47; font-size: 11px; }
.profile-copy span { color: #8a929a; font-size: 10px; }
.logout-button { display: grid; place-items: center; flex: none; width: 29px; height: 29px; color: #707984; border: 0; border-radius: 4px; background: transparent; }
.logout-button:hover { color: var(--red); background: #faf1f2; }
.logout-button [data-icon] { width: 16px; height: 16px; }
.main { flex: 1; min-width: 0; max-width: 1740px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 48px) 30px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 104px; margin: 0 calc(-1 * clamp(20px, 3vw, 48px)) 27px; padding: 18px clamp(20px, 3vw, 48px); border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { margin-bottom: 8px; color: #858d96; font-size: 10px; font-weight: 500; }
.breadcrumb span { padding: 0 6px; color: #b0b5bd; }
.breadcrumb strong { color: #555e69; font-weight: 600; }
.topbar h1 { margin: 0 0 3px; color: var(--ink); font-size: 23px; font-weight: 650; letter-spacing: -.025em; }
.topbar p { margin: 0; color: #7e8791; font-size: 12px; }
.topbar-right, .heading-actions { display: flex; align-items: center; gap: 8px; }
.online-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; color: #59705f; border: 1px solid #dfe7e1; border-radius: 4px; background: #f8faf8; font-size: 10px; font-weight: 600; white-space: nowrap; }
.view { display: none; }
.view.active { display: block; }
.app-footer { margin-top: 35px; padding: 16px 0 0; color: #969da5; border-top: 1px solid var(--line); font-size: 10px; }
.app-footer span { padding: 0 3px; }

/* Overview */
.overview-intro { margin: 0 0 14px; }
.overview-intro h2 { margin: 0 0 3px; color: var(--ink); font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.overview-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.overview-hero { display: flex; align-items: center; min-height: 129px; margin-bottom: 14px; padding: 19px 22px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 5px; background: #fff; }
.overview-hero > div:first-child { max-width: 800px; }
.overview-hero h2 { margin: 5px 0 5px; color: var(--ink); font-size: 21px; font-weight: 650; line-height: 1.25; letter-spacing: -.025em; }
.overview-hero h2 br { display: none; }
.overview-hero h2 span { color: var(--ink); }
.overview-hero p { max-width: 660px; margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hero-action { min-height: 29px; padding: 4px 0; color: var(--red); font-size: 11px; }
.hero-action:hover { color: var(--red-dark); }
.hero-action span { font-size: 13px; }
.hero-art, .hero-ring, .hero-center, .hero-spark { display: none; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.metric-card { display: grid; grid-template-columns: 1fr auto; align-content: start; column-gap: 8px; row-gap: 7px; min-height: 105px; padding: 15px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.metric-icon { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 24px; height: 24px; color: #89929d; }
.metric-icon svg { width: 19px; height: 19px; }
.metric-icon.red, .metric-icon.purple, .metric-icon.blue, .metric-icon.orange { color: #89929d; background: none; }
.metric-label { grid-column: 1; grid-row: 1; color: #656e78; font-size: 12px; font-weight: 600; }
.metric-card strong { grid-column: 1; color: var(--ink); font-size: 25px; font-weight: 650; line-height: 1; letter-spacing: -.035em; }
.metric-foot { grid-column: 1 / -1; color: #838c96; font-size: 11px; }
.overview-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(255px, .8fr); gap: 14px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.overview-columns .panel { padding: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head h2 { margin: 4px 0 0; color: var(--ink); font-size: 15px; font-weight: 650; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.overview-plan-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.overview-plan-row, .mini-plan, .overview-plan { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.overview-plan-row:last-child, .mini-plan:last-child, .overview-plan:last-child { border-bottom: 0; }
.overview-plan-row { width: 100%; }
.overview-plan-row:hover { background: #fafbfc; }
.overview-plan-row > svg { width: 14px; height: 14px; margin-left: auto; color: #9ba2aa; }
.overview-plan-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; color: #6b747e; border: 1px solid var(--line); border-radius: 4px; background: #f6f7f8; }
.overview-plan-icon svg { width: 18px; height: 18px; }
.overview-plan-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.overview-plan-copy strong, .overview-plan-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-plan-row > img, .mini-plan > img, .overview-plan > img { width: 40px; height: 34px; flex: none; border-radius: 3px; object-fit: cover; }
.overview-plan-row strong, .mini-plan strong, .overview-plan strong { color: var(--ink); font-size: 12px; }
.overview-plan-row span, .mini-plan span, .overview-plan span { color: #8b939c; font-size: 10px; }
.next-steps { display: flex; flex-direction: column; }
.next-steps > p { color: #68717b; font-size: 12px; line-height: 1.5; }
.crm-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 3px 0 15px; }
.crm-mini-grid > div { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; }
.crm-mini-grid strong { color: var(--ink); font-size: 19px; font-weight: 650; }
.crm-mini-grid span { color: var(--muted); font-size: 10px; }
.next-steps .secondary { margin-top: auto; }

/* Catalog and CRM lists */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-heading h2 { margin: 4px 0 3px; color: var(--ink); font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.toolbar.inner { margin: 0; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.search-field { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 390px; height: 34px; padding: 0 10px; color: #89929c; border: 1px solid #d5dae0; border-radius: 4px; background: #fff; }
.search-field:focus-within { border-color: #8f98a2; }
.search-field [data-icon] { width: 15px; height: 15px; }
.search-field input { flex: 1; width: 100%; min-width: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-field input::placeholder { color: #9ca3ac; }
.toolbar select { max-width: 190px; min-height: 34px; padding: 5px 28px 5px 9px; color: #4b545f; border: 1px solid #d5dae0; border-radius: 4px; background: #fff; font-size: 12px; }
.catalog-grid, .service-grid, .category-grid { display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.catalog-grid > article, .service-grid > article, .category-grid > article, .catalog-card, .plan-tile, .plan-card, .service-card, .category-card { display: grid; grid-template-columns: 108px minmax(0, 1fr); min-width: 0; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.catalog-grid > .plan-tile { grid-template-columns: 92px minmax(0, 1fr); min-height: 94px; }
.catalog-grid > article:last-child, .service-grid > article:last-child, .category-grid > article:last-child { border-bottom: 0; }
.catalog-grid > article:hover, .service-grid > article:hover, .category-grid > article:hover { background: #fafbfc; }
.plan-art { position: relative; display: grid; place-items: center; align-self: center; width: 72px; height: 72px; margin: 9px 10px; overflow: hidden; padding: 0; color: #58636e; border: 1px solid #dde1e5; border-radius: 4px; background: #f1f3f5; }
.plan-art[data-theme='esportes'], .plan-art[data-theme='premier'], .plan-art[data-theme='super-wi-fi'], .plan-art[data-theme='gamer'], .plan-art[data-theme='cinema'], .plan-art[data-theme='max'] { background-color: #f1f3f5; }
.live-preview-image[data-theme='esportes'] { background-color: #535965; }
.live-preview-image[data-theme='premier'] { background-color: #414853; }
.live-preview-image[data-theme='super-wi-fi'] { background-color: #4b5d6b; }
.live-preview-image[data-theme='gamer'] { background-color: #394e5a; }
.live-preview-image[data-theme='cinema'] { background-color: #57545b; }
.live-preview-image[data-theme='max'] { background-color: #455160; }
.plan-art::after { display: none; }
.plan-art > * { position: relative; z-index: 1; }
.plan-photo, .service-visual img, .category-art img { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plan-photo { z-index: 0 !important; }
.plan-art-shade { display: none; }
.plan-art-top { display: grid; place-items: center; width: 100%; height: 100%; }
.plan-art-icon { display: grid; place-items: center; width: 25px; height: 25px; color: #66717d; }
.plan-art-icon svg { width: 20px; height: 20px; }
.plan-art:has(img) .plan-art-icon { display: none; }
.plan-art-speed { position: absolute !important; right: 3px; bottom: 3px; left: 3px; z-index: 2 !important; overflow: hidden; padding: 2px 3px; color: #47535f; border-radius: 2px; background: #ffffffeb; font-size: 9px; font-weight: 650; line-height: 1.2; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.plan-art .status-pill { display: none; }
.plan-body, .service-body, .category-copy { display: grid; align-content: center; gap: 5px; padding: 12px 15px; }
.plan-body { grid-template-columns: minmax(0, 1fr) minmax(115px, 155px) auto; grid-template-rows: auto auto auto auto; column-gap: 17px; padding: 10px 13px 10px 0; }
.plan-body > .status-pill { grid-column: 1; grid-row: 1; justify-self: start; }
.plan-body > .offer-badge { display: none; }
.plan-body > h3 { grid-column: 1; grid-row: 2; }
.plan-body > .plan-description { grid-column: 1; grid-row: 3; }
.plan-body > .plan-meta { grid-column: 1; grid-row: 4; }
.plan-body > .source-alert { grid-column: 1; grid-row: 5; }
.plan-body > .plan-price, .plan-body > .price-condition { grid-column: 2; text-align: right; }
.plan-body > .plan-price { grid-row: 2; align-self: end; }
.plan-body > .price-condition { grid-row: 3 / 5; max-width: 155px; }
.plan-body > .plan-features { display: none; }
.plan-body h3, .service-body h3, .category-copy h3 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.3; }
.plan-body p, .service-body p, .category-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.plan-description { min-height: 29px; }
.plan-price, .service-price { color: var(--ink); font-size: 16px; font-weight: 650; }
.price-condition { display: block; color: #8a5f35; font-size: 10px; line-height: 1.4; }
.plan-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: #727d87; font-size: 11px; }
.plan-meta span + span::before { content: '·'; padding-right: 5px; }
.plan-features, .card-features { display: grid; gap: 4px; margin: 5px 0; padding: 0; list-style: none; }
.plan-features li, .card-features li { display: flex; align-items: flex-start; gap: 5px; color: #555f6a; font-size: 10px; line-height: 1.35; }
.plan-features li svg { width: 12px; height: 12px; flex: none; color: #66717d; margin-top: 1px; }
.card-features li::before { content: '✓'; color: #66717d; }
.plan-body > .plan-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: nowrap; grid-column: 3; grid-row: 1 / 5; align-self: center; margin: 0; padding: 0; border: 0; }
.service-body > .plan-actions, .category-copy > .plan-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; grid-column: 1 / -1; margin: 6px -15px -12px; padding: 8px 15px; border-top: 1px solid var(--line); }
.plan-actions .primary, .plan-actions .secondary, .plan-actions .quiet-button { min-height: 29px; padding: 5px 8px; font-size: 11px; }
.plan-actions .primary { color: var(--red); border-color: #e6c7cd; background: #fff; }
.plan-actions .primary:hover { color: #fff; border-color: var(--red-dark); background: var(--red-dark); }
.source-alert { padding: 6px 8px; color: #8a632d !important; border: 1px solid #ead9b9; border-radius: 3px; background: #fffaf0; font-size: 10px !important; }
.offer-badge, .card-badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 6px; color: #a2192b; border: 1px solid #f0d7dc; border-radius: 3px; background: #fff8f9; font-size: 9px; font-weight: 650; }
.service-visual, .category-art { position: relative; display: grid; place-items: center; min-height: 110px; height: 100%; overflow: hidden; background: #e9ecef; }
.service-visual::after, .category-art::after { content: ''; position: absolute; inset: 0; background: #27313b15; }
.service-icon, .category-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 35px; height: 35px; color: #56616e; border: 1px solid #cbd1d7; border-radius: 4px; background: #ffffffe6; }
.service-icon svg, .category-icon svg { width: 20px; height: 20px; }
.service-body > .status-pill, .category-copy > .status-pill { justify-self: start; }
.service-body, .category-copy { grid-template-columns: minmax(0, 1fr) auto; column-gap: 15px; }
.service-body > .status-pill, .category-copy > .status-pill, .service-body > h3, .category-copy > h3, .service-body > p, .category-copy > p, .service-body > small, .category-copy > small { grid-column: 1; }
.service-body > .service-price { grid-column: 2; grid-row: 2; text-align: right; }
.service-feature, .category-copy small { color: #727d87; font-size: 11px; line-height: 1.4; }
.status-pill, .pill, .status-badge { display: inline-flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; padding: 3px 6px; color: #6a727b; border: 1px solid #dfe3e6; border-radius: 3px; background: #f7f8f9; font-size: 10px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.status-pill.published, .status-pill.active, .status-pill.won, .pill.PUBLISHED, .pill.WON, .pill.ACTIVE { color: #286b4a; border-color: #d4e5da; background: #f4faf6; }
.status-pill.draft, .status-pill.new, .status-pill.open, .pill.DRAFT, .pill.NEW, .pill.OPEN { color: #856328; border-color: #e8dec7; background: #faf8f1; }
.status-pill.archived, .status-pill.disabled, .status-pill.done, .status-pill.lost, .pill.ARCHIVED, .pill.DISABLED, .pill.DONE, .pill.LOST { color: #737c86; background: #f5f6f7; }
.status-pill.qualified, .status-pill.proposal, .pill.QUALIFIED, .pill.PROPOSAL, .pill.HIGH { color: #465f87; border-color: #d9e2ed; background: #f5f8fb; }
.empty, .empty-state { grid-column: 1 / -1; display: grid; justify-items: center; gap: 7px; min-height: 165px; padding: 30px 20px; color: #77808a; border: 1px solid var(--line); border-radius: 4px; background: #fff; text-align: center; font-size: 11px; line-height: 1.5; }
.empty h3, .empty-state h3, .empty-state strong { margin: 0; color: var(--ink); font-size: 13px; font-weight: 650; }
.empty p, .empty-state p { max-width: 420px; margin: 0; }
.empty-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #89929c; }
.empty-icon svg { width: 22px; height: 22px; }
.crm-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.crm-strip > div { display: flex; align-items: baseline; gap: 9px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.crm-strip strong { color: var(--ink); font-size: 19px; font-weight: 650; }
.crm-strip span { color: var(--muted); font-size: 11px; }
.table-panel { overflow: hidden; }
.table-list { min-width: 0; }
.table-list > .empty-state { border: 0; }
.table-row { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 54px; padding: 9px 14px; border-bottom: 1px solid #e9ebee; }
.table-row:last-child { border-bottom: 0; }
.table-row:not(.table-head):hover { background: #fafbfc; }
.table-row.table-head { min-height: 31px; padding-top: 7px; padding-bottom: 7px; background: #f8f9fa; }
.table-head .table-cell { color: #69727c; font-size: 11px; font-weight: 650; }
.table-cell { flex: 1; min-width: 0; color: #5d6670; font-size: 12px; }
.table-row .table-cell:first-child { flex: 2.2; }
.table-row .table-cell:last-child { flex: 0 0 96px; text-align: right; }
.table-cell strong { color: var(--ink); font-weight: 600; }
.person-cell { display: flex; align-items: center; gap: 9px; }
.person-cell > span:last-child { display: grid; gap: 2px; min-width: 0; }
.person-cell > span:last-child strong, .person-cell > span:last-child small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-cell small { color: #818b95; font-size: 11px; }
.person-avatar { display: grid; place-items: center; flex: none; width: 29px; height: 29px; color: #626d78; border: 1px solid var(--line); border-radius: 50%; background: #f1f3f5; font-size: 10px; font-weight: 650; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-left: auto; }
.task-toggle { display: grid; place-items: center; flex: none; width: 20px; height: 20px; padding: 0; color: #fff; border: 1px solid #adb5be; border-radius: 3px; background: #fff; font-size: 11px; }
.task-toggle:hover { border-color: var(--red); }
.table-row.done .task-toggle { border-color: #357251; background: #357251; }
.table-row.done .person-cell strong { color: #8b939b; text-decoration: line-through; }
.overdue { color: #b52532 !important; font-weight: 650; }
.load-more { display: flex; justify-content: center; padding: 12px; border-top: 1px solid var(--line); }

/* Editors and records */
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: flex-end; background: #1c222b80; }
body.modal-open { overflow: hidden; }
.editor { width: min(100%, 565px); height: 100%; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; padding: 24px 27px 30px; background: #fff; box-shadow: -8px 0 24px #10172018; }
.editor.wide-editor { width: min(100%, 990px); }
.editor.detail-editor { width: min(100%, 650px); }
.editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.editor-head h2 { margin: 3px 0; color: var(--ink); font-size: 19px; font-weight: 650; }
.editor-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form { display: grid; gap: 14px; padding-top: 18px; }
.form label { display: grid; align-content: start; gap: 6px; min-width: 0; color: #3f4852; font-size: 12px; font-weight: 600; }
.form input, .form select, .form textarea, .activity-form select, .activity-form textarea { width: 100%; min-width: 0; min-height: 36px; padding: 8px 10px; color: var(--ink); border: 1px solid #d2d8de; border-radius: 4px; outline: 0; background: #fff; font-size: 12px; font-weight: 400; }
.form textarea, .activity-form textarea { min-height: 70px; resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus, .activity-form select:focus, .activity-form textarea:focus { border-color: #818b96; box-shadow: 0 0 0 2px #ecedef; }
.form input::placeholder, .form textarea::placeholder, .activity-form textarea::placeholder { color: #a5acb4; }
.form input[type='file'] { padding: 7px; color: #727c85; font-size: 11px; }
.form input[type='file']::file-selector-button { margin-right: 9px; padding: 5px 7px; color: #424b55; border: 1px solid #d4d9df; border-radius: 3px; background: #f7f8f9; cursor: pointer; }
.form small { color: #808992; font-size: 10px; font-weight: 400; line-height: 1.45; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-section-label { margin-top: 3px; padding-top: 14px; color: #606a74; border-top: 1px solid var(--line); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.form-section-label:first-child { margin: 0; padding: 0; border: 0; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 4px; padding-top: 15px; border-top: 1px solid var(--line); }
.form-actions .primary, .form-actions .secondary { min-width: 105px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 22px; }
.editor-fields { display: grid; gap: 14px; min-width: 0; }
.editor-preview { position: sticky; top: 12px; align-self: start; display: grid; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 4px; background: #fafbfc; }
.live-preview-card { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.live-preview-image { position: relative; display: flex; align-items: flex-start; justify-content: space-between; min-height: 115px; padding: 10px; overflow: hidden; background: #4b535e; background-size: cover; background-position: center; }
.live-preview-image::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: #151a2240; }
.live-preview-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-preview-image > :not(img) { position: relative; z-index: 1; }
.preview-badge { padding: 3px 5px; color: #fff; border: 1px solid #ffffff9a; border-radius: 3px; background: #17202a75; font-size: 9px; font-weight: 600; }
.preview-wifi { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; border: 1px solid #ffffff8a; border-radius: 4px; background: #17202a75; }
.preview-wifi svg { width: 18px; height: 18px; }
.live-preview-content { padding: 13px; }
.preview-type { color: #7b858f; font-size: 9px; font-weight: 650; }
.live-preview-content h3 { margin: 5px 0 3px; color: var(--ink); font-size: 15px; }
.live-preview-content p { margin: 0 0 8px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.live-preview-content strong { color: var(--ink); font-size: 16px; }
.live-preview-content ul { display: grid; gap: 4px; margin: 9px 0 0; padding: 0; list-style: none; }
.live-preview-content li { color: #5e6873; font-size: 10px; }
.live-preview-content li::before { content: '✓'; margin-right: 5px; color: #6d7781; }
.preview-help { margin: 0; color: #818a93; font-size: 10px; line-height: 1.45; }
.image-preview { display: block; width: 100%; max-height: 150px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; }
.image-preview[hidden] { display: none; }
#contact-detail-body { display: grid; gap: 12px; margin: 17px 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-grid > * { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid small, .detail-grid span { color: #858e97; font-size: 10px; }
.detail-grid strong { display: block; margin-top: 3px; color: var(--ink); font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.detail-note { padding: 12px; border: 1px solid var(--line); border-left: 2px solid #9ea6ae; background: #fafbfc; }
.detail-note strong { color: var(--ink); font-size: 11px; }
.detail-note p { margin: 6px 0 0; color: #56616b; font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.timeline-head { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.timeline-head h3 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 650; }
.activity-form { display: grid; grid-template-columns: 115px 1fr auto; align-items: start; gap: 8px; margin: 13px 0 18px; }
.activity-form textarea { min-height: 36px; }
.timeline { display: grid; gap: 0; }
.timeline > * { padding: 11px 0; border-bottom: 1px solid var(--line); }
.timeline-item { display: flex; align-items: flex-start; gap: 10px; }
.timeline-dot { display: grid; place-items: center; flex: none; width: 24px; height: 24px; color: #6c7680; border: 1px solid var(--line); border-radius: 50%; background: #f7f8f9; }
.timeline-dot svg { width: 13px; height: 13px; }
.timeline-item strong { display: block; color: var(--ink); font-size: 11px; }
.timeline-item p { margin: 4px 0 0; color: #59636e; font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.timeline-item small { color: #939ba3; font-size: 10px; }
.timeline-empty { color: #87909a; font-size: 11px; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 30; max-width: min(380px, calc(100vw - 32px)); padding: 11px 14px; color: #fff; border-radius: 4px; background: #252b33; box-shadow: 0 7px 20px #11172230; font-size: 11px; line-height: 1.5; }

/* Customer app content */
.content-heading { margin-bottom: 17px; }
.content-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; margin-bottom: 16px; padding: 16px 19px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #646e79; font-size: 12px; }
.content-notice.error { color: #a32936; border-color: #efd3d7; background: #fff9fa; }
.content-tabs { display: flex; gap: 0; overflow-x: auto; border: 1px solid var(--line); border-bottom: 0; border-radius: 5px 5px 0 0; background: #fff; scrollbar-width: thin; }
.content-tab { display: grid; align-content: center; gap: 3px; flex: 1 0 130px; min-height: 59px; padding: 11px 16px; color: #59636e; border: 0; border-right: 1px solid var(--line); border-bottom: 2px solid transparent; background: #fff; text-align: left; font-size: 12px; font-weight: 650; }
.content-tab:last-child { border-right: 0; }
.content-tab:hover { background: #fafbfc; }
.content-tab.active { color: var(--ink); border-bottom-color: var(--red); background: #fff; }
.content-tab small { color: #858e98; font-size: 10px; font-weight: 500; }
.content-tab.active small { color: #99565d; }
.content-status-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 47px; padding: 8px 15px; border: 1px solid var(--line); background: #f8f9fa; }
.content-status-bar > div { display: flex; align-items: center; gap: 10px; }
.content-status-bar span:not(.status-pill), .content-status-bar p { margin: 0; color: #767f89; font-size: 11px; line-height: 1.4; }
.content-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); align-items: start; gap: 14px; margin-top: 14px; }
.content-editor { display: block; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
#content-fields { display: grid; }
.content-group { display: grid; gap: 13px; min-width: 0; padding: 21px 24px; border-bottom: 1px solid var(--line); }
.content-group h3 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.content-group > p { margin: -8px 0 2px; color: #77818c; font-size: 11px; line-height: 1.5; }
.content-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.content-field { display: grid; gap: 6px; min-width: 0; color: #48515c; font-size: 11px; font-weight: 600; }
.content-field > span { color: #47515c; }
.content-field small { color: #858e98; }
.content-editor .content-field input, .content-editor .content-field textarea, .content-editor .content-field select { width: 100%; min-height: 38px; padding: 8px 10px; font-size: 12px; }
.content-editor .content-field textarea { line-height: 1.5; }
.content-editor .content-field input:disabled, .content-editor .content-field textarea:disabled, .content-editor .content-field select:disabled { color: #606a75; background: #f7f8f9; }
.content-check { display: inline-flex !important; align-items: center !important; justify-content: flex-start; gap: 8px !important; min-height: 29px; color: #4e5863; font-size: 11px; font-weight: 600; }
.content-check input { width: 16px !important; min-height: 16px !important; height: 16px; margin: 0; padding: 0; accent-color: var(--red); }
.content-image-field { padding: 12px; border: 1px dashed #cfd5db; border-radius: 4px; background: #fafbfc; }
.content-image-field .content-field { font-weight: 500; }
.content-image-preview { display: block; width: 100%; max-height: 168px; border-radius: 3px; object-fit: cover; }
.content-image-preview[hidden] { display: none; }
.content-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.content-list-head span { color: #858e98; font-size: 10px; }
.content-list-head .secondary { min-height: 30px; padding: 5px 9px; font-size: 11px; }
.content-list-empty { margin: 0 !important; padding: 17px; border: 1px dashed var(--line); border-radius: 4px; background: #fafbfc; text-align: center; }
.content-list-card { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.content-list-card + .content-list-card { margin-top: -5px; }
.content-list-card summary { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 9px 12px; list-style: none; cursor: pointer; }
.content-list-card summary::-webkit-details-marker { display: none; }
.content-list-card summary::after { content: '⌄'; margin-left: auto; color: #8d96a0; font-size: 17px; line-height: 1; }
.content-list-card[open] summary::after { transform: rotate(180deg); }
.content-list-card summary strong { flex: 1; min-width: 0; overflow: hidden; color: #333d47; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.content-list-number { color: #9aa2aa; font-size: 10px; font-weight: 650; }
.content-mini-badge { padding: 2px 6px; color: #9a3640; border-radius: 3px; background: #fcf1f2; font-size: 9px; font-weight: 600; white-space: nowrap; }
.content-mini-badge.muted { color: #68727b; background: #f0f2f4; }
.content-list-body { display: grid; gap: 12px; padding: 15px; border-top: 1px solid var(--line); background: #fcfcfd; }
.content-list-actions { display: flex; align-items: center; gap: 3px; padding-top: 9px; border-top: 1px solid var(--line); }
.content-list-actions .quiet-button { min-height: 29px; padding: 4px 8px; font-size: 11px; }
.content-list-actions .quiet-button:last-child { margin-left: auto; color: #a82c39; }
.content-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 15px 24px 20px; }
#content-form-error:not(:empty) { margin: 16px 24px 0; }
.content-actions .primary, .content-actions .secondary { min-height: 37px; }
.content-preview { position: sticky; top: 18px; display: grid; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.content-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.content-preview-head > span:last-child { color: #8a929b; font-size: 10px; }
.content-preview > p { margin: 0; color: #929aa2; font-size: 10px; line-height: 1.5; }
.content-phone { display: grid; align-content: start; gap: 11px; width: min(100%, 286px); min-height: 410px; margin: auto; padding: 15px; border: 1px solid #dce1e6; border-radius: 17px; background: #fdfdfd; box-shadow: 0 6px 17px #17202a0c; }
.content-phone-brand { color: #ce142b; font-size: 12px; font-weight: 800; letter-spacing: -.03em; }
.content-phone h3 { margin: 8px 0 0; color: #17202b; font-size: 21px; line-height: 1.1; }
.content-phone p { margin: 0; color: #72808e; font-size: 11px; line-height: 1.5; }
.content-phone-hero { position: relative; display: grid; align-content: end; gap: 4px; min-height: 160px; overflow: hidden; padding: 14px; border-radius: 7px; background: #f4f5f6; }
.content-phone-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.content-phone-hero > :not(img) { position: relative; z-index: 1; }
.content-phone-hero strong, .content-phone-hero b { color: #20252c; font-size: 21px; font-weight: 750; line-height: 1.05; }
.content-phone-hero b { color: var(--red); }
.content-phone-hero p { color: #515b66; }
.content-phone-row { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.content-phone-row strong { color: #313943; font-size: 11px; }
.content-phone-row small { color: #7f8993; font-size: 10px; }
.content-phone-promo { display: grid; gap: 5px; padding: 13px; border-radius: 6px; background: #f9eef0; }
.content-phone-promo strong { color: #242c35; font-size: 14px; line-height: 1.2; white-space: pre-line; }
.content-phone-promo span { width: fit-content; padding: 5px 8px; color: #fff; border-radius: 4px; background: var(--red); font-size: 10px; }
.content-phone-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.content-phone-topics span { padding: 9px 6px; border: 1px solid var(--line); border-radius: 4px; color: #505b66; text-align: center; font-size: 10px; }
.content-phone-subhead { margin-top: 6px; color: #29323c; font-size: 13px; }
.content-phone-faq { display: grid; gap: 4px; padding: 9px; border: 1px solid var(--line); border-radius: 4px; color: #4b5662; font-size: 10px; }
.content-phone-faq strong { font-size: 11px; }
.content-phone-faq small { color: #7a8590; }
.content-phone-call { display: grid; gap: 4px; margin-top: 5px; padding: 12px; border-radius: 5px; background: #fdf0f2; }
.content-phone-call strong { color: #2d3540; font-size: 11px; }
.content-phone-url { overflow-wrap: anywhere; }
.content-phone-menu { display: grid; gap: 7px; margin: 8px 0; }
.content-phone-menu strong { padding: 9px; border: 1px solid var(--line); border-radius: 4px; color: #3c4651; font-size: 11px; }

/* Administration and audit */
.role-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.role-summary > div { display: grid; align-content: start; gap: 5px; min-height: 72px; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.role-summary strong { color: var(--ink); font-size: 12px; }
.role-summary span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.audit-panel { overflow: hidden; }
.audit-filters { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(150px, 1.3fr) minmax(125px, .8fr) minmax(125px, .8fr) auto; align-items: end; gap: 10px; padding: 17px; border-bottom: 1px solid var(--line); }
.audit-filters label { display: grid; gap: 5px; min-width: 0; color: #535d68; font-size: 11px; font-weight: 650; }
.audit-filters select, .audit-filters input { width: 100%; min-width: 0; height: 35px; padding: 6px 9px; color: var(--ink); border: 1px solid #d5dae0; border-radius: 4px; background: #fff; font-size: 12px; }
.audit-filter-actions { display: flex; gap: 5px; }
.audit-filter-actions button { min-height: 35px; }
.audit-error { margin: 12px 17px; }
.audit-list-head, .audit-row { display: grid; grid-template-columns: minmax(138px, .9fr) minmax(155px, 1.2fr) minmax(120px, 1fr) minmax(170px, 1.3fr); gap: 16px; align-items: center; }
.audit-list-head { padding: 9px 17px; color: #7f8791; background: #f8f9fa; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
.audit-row { min-height: 70px; padding: 12px 17px; border-bottom: 1px solid #ebedf0; }
.audit-row:last-child { border-bottom: 0; }
.audit-row:hover { background: #fbfbfc; }
.audit-when, .audit-event, .audit-entity { display: grid; min-width: 0; gap: 3px; }
.audit-row strong { overflow: hidden; color: #303944; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.audit-row small { overflow: hidden; color: #87909a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.audit-event strong { color: #bd1629; }
.audit-actor { display: flex; align-items: center; gap: 8px; min-width: 0; }
.audit-actor > span:last-child { display: grid; min-width: 0; gap: 3px; }
.audit-id { font-family: Consolas, monospace; }
.audit-list > .empty-state { border: 0; border-radius: 0; }
.audit-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 11px 17px; border-top: 1px solid var(--line); color: #68727d; font-size: 11px; }
.audit-pagination > div { display: flex; gap: 6px; }

@media (max-width: 1100px) {
  .sidebar { flex-basis: 206px; width: 206px; }
  .overview-columns { grid-template-columns: 1fr; }
  .content-columns { grid-template-columns: minmax(0, 1fr) 260px; }
  .audit-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .audit-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 870px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-preview { position: static; }
  .online-pill { display: none; }
  .content-columns { grid-template-columns: 1fr; }
  .content-preview { position: static; }
  .role-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .login-shell { display: block; }
  .login-story { display: none; }
  .login-side { min-height: 100vh; min-height: 100dvh; padding: 24px; }
  .login-card .mobile-login-brand { display: block; width: 150px; height: 44px; margin-bottom: 22px; }
  .workspace { display: block; }
  .sidebar { position: sticky; top: 0; z-index: 5; display: block; width: 100%; height: auto; padding: 9px 13px 7px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-brand { padding: 0 3px 8px; }
  .sidebar-brand .brand-logo { width: 126px; height: 37px; }
  .sidebar-context, .nav-group-title, .profile-copy, .sidebar-bottom .avatar { display: none; }
  .sidebar-nav { flex-direction: row; gap: 2px; overflow-x: auto; overflow-y: hidden; padding: 0 0 3px; scrollbar-width: none; }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .nav { flex: none; width: auto; min-height: 32px; padding: 6px 8px; border-left: 0; border-bottom: 2px solid transparent; font-size: 11px; }
  .nav.active { border-left: 0; border-bottom-color: var(--red); }
  .nav-icon { width: 14px; height: 14px; }
  .sidebar-bottom { position: absolute; top: 6px; right: 12px; width: 30px; margin: 0; padding: 0; border: 0; }
  .main { padding: 0 16px 20px; }
  .topbar { min-height: 88px; margin: 0 -16px 18px; padding: 15px 16px; }
  .topbar h1 { font-size: 19px; }
  .topbar p { font-size: 10px; }
  .table-row.table-head { display: none; }
  .table-row:not(.table-head) { flex-wrap: wrap; gap: 6px 10px; padding: 11px; }
  .table-row:not(.table-head) .table-cell:first-child { flex: 0 0 100%; }
  .table-row:not(.table-head) .table-cell:not(:first-child):not(:last-child) { flex: 0 1 auto; }
  .table-row:not(.table-head) .table-cell:last-child { flex: 1 0 100%; text-align: left; }
  .row-actions { justify-content: flex-start; }
  .plan-body { grid-template-columns: minmax(0, 1fr) auto; }
  .plan-body > .plan-actions { grid-column: 1 / -1; grid-row: 5; justify-content: flex-start; padding-top: 7px; border-top: 1px solid var(--line); }
  .plan-body > .plan-price { grid-column: 2; grid-row: 2; }
  .plan-body > .price-condition { grid-column: 2; grid-row: 3 / 5; }
  .audit-list-head { display: none; }
  .audit-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .topbar-right { width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .heading-actions { width: 100%; }
  .heading-actions button { flex: 1; }
  .overview-hero { min-height: 0; padding: 16px; }
  .overview-hero h2 { font-size: 18px; }
  .metrics { gap: 8px; }
  .metric-card { min-height: 100px; padding: 11px; }
  .metric-card strong { font-size: 22px; }
  .overview-columns .panel { padding: 13px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .search-field { max-width: none; flex-basis: 100%; }
  .toolbar select { flex: 1; max-width: none; }
  .toolbar.inner { padding: 10px; }
  .catalog-grid > article, .service-grid > article, .category-grid > article, .plan-tile, .service-card, .category-card { grid-template-columns: 76px minmax(0, 1fr); }
  .catalog-grid > .plan-tile { grid-template-columns: 74px minmax(0, 1fr); min-height: 0; }
  .plan-art { align-self: start; width: 56px; height: 56px; margin: 10px 9px; }
  .plan-art-icon { width: 20px; height: 20px; }
  .plan-art-icon svg { width: 18px; height: 18px; }
  .plan-art-speed { font-size: 8px; }
  .plan-body, .service-body, .category-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; }
  .plan-body > .plan-price, .plan-body > .price-condition, .service-body > .service-price { align-self: flex-start; max-width: 100%; text-align: left; }
  .plan-body > .price-condition { font-size: 9px; }
  .plan-body > .plan-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; margin-top: 4px; padding-top: 6px; }
  .service-body > .plan-actions, .category-copy > .plan-actions { width: calc(100% + 20px); margin: 6px -10px -10px; padding: 7px 10px; }
  .service-visual, .category-art { min-height: 112px; }
  .service-icon, .category-icon { width: 28px; height: 28px; }
  .service-icon svg, .category-icon svg { width: 16px; height: 16px; }
  .crm-strip { gap: 6px; }
  .crm-strip > div { display: grid; gap: 2px; padding: 10px; }
  .crm-strip strong { font-size: 17px; }
  .crm-strip span { font-size: 10px; }
  .editor, .editor.wide-editor, .editor.detail-editor { padding: 19px 16px; }
  .two-col, .detail-grid { grid-template-columns: 1fr; }
  .activity-form { grid-template-columns: 1fr; }
  .activity-form .primary { justify-self: end; }
  .toast { right: 12px; bottom: 12px; }
  .content-tab { flex-basis: 150px; }
  .content-status-bar { align-items: flex-start; flex-direction: column; }
  .content-field-row { grid-template-columns: 1fr; }
  .content-group { padding: 18px 14px; }
  .content-actions { padding: 14px; }
  .content-actions button { flex: 1; }
  .content-list-card summary { flex-wrap: wrap; }
  .audit-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 13px; }
  .audit-filters label:nth-child(-n+2) { grid-column: 1 / -1; }
  .audit-filter-actions { grid-column: 1 / -1; }
  .audit-row { gap: 9px; padding: 14px; }
  .audit-when { grid-column: 1 / -1; }
  .audit-event, .audit-entity, .audit-actor { grid-column: 1 / -1; }
  .audit-pagination { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* CRM notifications */
.push-status { display: flex; align-items: center; min-height: 49px; margin: 0 0 15px; padding: 12px 16px; color: #5b6570; border: 1px solid #e2e5e8; border-left: 3px solid #9da5ad; border-radius: 5px; background: #fff; font-size: 12px; line-height: 1.5; }
.push-status.ready { color: #225f45; border-color: #d6e9df; border-left-color: #31845d; background: #f6fbf8; }
.push-status.pending { color: #8a531b; border-color: #f0dfc7; border-left-color: #d78e34; background: #fffaf3; }
.push-status.error { color: #a32636; border-color: #f2d7dd; border-left-color: var(--red); background: #fff8f9; }
.push-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.push-metrics > div { display: grid; gap: 7px; min-height: 78px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.push-metrics span { color: #727b85; font-size: 11px; }
.push-metrics strong { color: #202833; font-size: 24px; font-weight: 650; line-height: 1; letter-spacing: -.035em; }
.push-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 18px; border-bottom: 1px solid #d9dee3; }
.push-tabs button { min-height: 40px; padding: 10px 15px; color: #5e6874; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 12px; font-weight: 600; }
.push-tabs button:hover { color: var(--ink); background: #f0f2f3; }
.push-tabs button[aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
.push-columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .85fr); gap: 17px; align-items: start; }
.push-form-panel, .push-preview-panel, .push-history-panel { padding: 20px; }
.push-form-panel .panel-head { margin-bottom: 19px; }
.push-form-panel .panel-head h3, .push-history-panel h3, .push-section-intro h3 { margin: 0 0 5px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.push-form-panel .panel-head p, .push-history-panel .panel-head p, .push-section-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.push-form { display: grid; gap: 15px; }
.push-form label { display: grid; gap: 6px; min-width: 0; color: #38424d; font-size: 12px; font-weight: 650; }
.push-form input:not([type="hidden"]), .push-form textarea, .push-form select { width: 100%; min-height: 40px; padding: 9px 11px; color: var(--ink); border: 1px solid #d5dbe1; border-radius: 5px; background: #fff; font-size: 13px; font-weight: 400; outline: 0; }
.push-form textarea { min-height: 89px; line-height: 1.5; resize: vertical; }
.push-form input:focus, .push-form textarea:focus, .push-form select:focus { border-color: #a3abb4; box-shadow: 0 0 0 2px #eef0f2; }
.push-form label small, .push-form-hint { color: #79828d; font-size: 11px; font-weight: 400; line-height: 1.5; }
.push-form .two-col { gap: 12px; }
.push-char-count { justify-self: end; }
.push-form-hint { margin: 0; }
.push-form .push-check-line { display: flex; align-items: flex-start; gap: 9px; color: #42505b; line-height: 1.5; font-weight: 500; }
.push-form .push-check-line input:not([type="hidden"]) { flex: none; width: 15px; min-height: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--red); }
.push-composer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 5px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.push-form-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 15px; border-top: 1px solid var(--line); }
.push-preview-panel { position: sticky; top: 18px; }
.push-phone-preview { margin: 14px 0 20px; padding: 14px 16px; border: 1px solid #e4e7eb; border-radius: 8px; background: #f6f7f8; box-shadow: 0 6px 14px #2931400a; }
.push-phone-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: var(--red); font-size: 10px; font-weight: 700; }
.push-phone-top span { color: #7a828b; font-weight: 400; }
.push-phone-preview strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.push-phone-preview p { margin: 0; color: #505a65; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.push-audience-note { padding: 12px 13px; color: #616a74; border: 1px solid #e2e6ea; border-radius: 5px; background: #fafbfc; font-size: 12px; line-height: 1.5; }
.push-audience-note.ready { color: #245f46; border-color: #d8eadf; background: #f6fbf8; }
.push-audience-note.warning { color: #8b531b; border-color: #efdcc2; background: #fffbf3; }
.push-divider { height: 1px; margin: 23px 0; background: var(--line); }
.push-contact-results:empty { display: none; }
.push-contact-results { display: grid; max-height: 205px; overflow-y: auto; margin-top: -11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.push-contact-results button { display: grid; gap: 3px; width: 100%; padding: 10px 12px; color: #2b333c; border: 0; border-bottom: 1px solid #edf0f2; background: transparent; text-align: left; font-size: 12px; }
.push-contact-results button:hover { background: #f7f8f9; }
.push-contact-results button span { color: #7b848e; font-size: 11px; }
.push-contact-results p { margin: 0; padding: 11px; color: var(--muted); font-size: 12px; }
.push-selected { padding: 12px 14px; border: 1px solid #d8e5df; border-radius: 5px; background: #f6fbf8; color: #275944; font-size: 12px; }
.push-selected strong, .push-selected span { display: block; }
.push-selected span { margin-top: 3px; color: #687b70; font-size: 11px; }
.push-list { display: grid; gap: 0; margin-top: 10px; }
.push-list-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e8ebee; }
.push-list-row:last-child { border-bottom: 0; }
.push-list-row > div:first-child { min-width: 0; }
.push-list-row strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.push-list-row small { display: block; color: #7a838d; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.push-list-row .secondary { flex: none; }
.push-row-actions { display: flex; flex: none; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.push-campaign-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px; border: 1px solid #dce2e6; border-radius: 5px; background: #fafbfc; color: #5f6872; font-size: 11px; }
.push-campaign-status > div { display: grid; gap: 4px; }
.push-campaign-status strong { color: var(--ink); font-size: 17px; font-weight: 650; }
.push-campaign-status p { grid-column: 1 / -1; margin: 2px 0 0; color: #78818b; font-size: 10px; line-height: 1.45; }
.push-empty { margin: 15px 0 0; color: #77808a; font-size: 12px; line-height: 1.5; }
.push-section-intro { margin-bottom: 16px; }
.push-section-intro .push-scan-time { margin-top: 8px; color: #7a838d; font-size: 11px; }
.push-rules-list { display: grid; gap: 12px; }
.push-runs-panel { margin-top: 16px; padding: 18px 20px; }
.push-runs-panel h3 { margin: 0 0 4px; font-size: 14px; }
.push-runs-panel .panel-head p { margin: 0; color: var(--muted); font-size: 11px; }
.push-rule { padding: 20px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.push-rule-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.push-rule-head h4 { margin: 0 0 5px; color: var(--ink); font-size: 14px; }
.push-rule-head p { margin: 0; color: #75808a; font-size: 11px; line-height: 1.5; }
.push-rule-state { padding: 5px 8px; border: 1px solid #e8d8db; border-radius: 3px; background: #fff8f8; color: #9f3847; font-size: 10px; font-weight: 650; white-space: nowrap; }
.push-rule-state.on { color: #286748; border-color: #d7e9dc; background: #f5faf6; }
.push-rule-grid { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1.3fr) 160px; gap: 11px; margin-top: 17px; }
.push-rule-grid label { display: grid; gap: 6px; min-width: 0; color: #48525d; font-size: 11px; font-weight: 600; }
.push-rule-grid input, .push-rule-grid select, .push-rule-grid textarea { width: 100%; min-width: 0; min-height: 37px; padding: 8px 9px; color: var(--ink); border: 1px solid #d7dce1; border-radius: 4px; background: #fff; font-size: 12px; font-weight: 400; }
.push-rule-grid textarea { min-height: 72px; resize: vertical; }
.push-rule-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 13px; }
.push-rule-foot label { display: flex; align-items: center; gap: 8px; color: #45505a; font-size: 12px; }
.push-rule-foot input { accent-color: var(--red); }
.push-history-panel { min-height: 230px; }
@media (max-width: 1040px) { .push-rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .push-columns { grid-template-columns: 1fr; } .push-preview-panel { position: static; } .push-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .push-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; } .push-tabs button { flex: none; } .push-form-panel, .push-preview-panel, .push-history-panel, .push-rule { padding: 15px; } .push-rule-grid, .push-campaign-status { grid-template-columns: 1fr 1fr; } .push-rule-foot { align-items: flex-start; flex-direction: column; } .push-form-actions button { flex: 1 1 auto; } .push-list-row { flex-wrap: wrap; } .push-row-actions { justify-content: flex-start; } }
