:root {
  color-scheme: light;
  --paper: #f3f1eb;
  --surface: #fffefa;
  --surface-2: #f8f6f0;
  --ink: #232720;
  --muted: #85877f;
  --line: #e9e7df;
  --green: #2f5944;
  --green-soft: #e9f0e9;
  --gold: #bd9a65;
  --red: #a95245;
  --shadow: 0 16px 48px rgba(37, 39, 31, .06);
  font-family: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.loading-screen { padding: 48px; color: var(--green); font: 700 20px 'Segoe UI', sans-serif; }
.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; padding: 28px 18px 22px; background: #20231f; color: #fffefa; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px 38px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #456a51; color: #fff; font: 800 17px 'Segoe UI', sans-serif; }
.brand-name { font: 700 14px 'Segoe UI', sans-serif; letter-spacing: -.3px; }
.brand-subtitle { margin-top: 3px; color: #9da69a; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-label { padding: 0 12px 12px; color: #838a80; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 10px; background: transparent; color: #bac0b7; text-align: left; font-size: 13px; transition: .18s ease; }
.nav-item:hover { background: #2a2e29; color: #fff; }
.nav-item.active { background: #34493a; color: #fff; }
.nav-icon { display: grid; place-items: center; width: 20px; color: #9eac9d; font-size: 15px; }
.sidebar-bottom { margin-top: auto; padding: 14px 12px 0; }
.account { display: flex; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid #373b35; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #414941; color: #e4e9e0; font-size: 12px; font-weight: 700; }
.account-email { overflow: hidden; max-width: 145px; color: #d3d8d0; font-size: 11px; text-overflow: ellipsis; }
.account-role { margin-top: 3px; color: #858d82; font-size: 10px; }
.logout { width: 100%; margin-top: 12px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: #aeb5ab; text-align: left; font-size: 12px; }
.logout:hover { background: #2a2e29; color: white; }
.main-area { min-width: 0; padding: 28px clamp(20px, 4vw, 58px) 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1440px; margin: 0 auto 34px; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.page-title { margin: 6px 0 0; font: 700 clamp(24px, 3vw, 34px)/1.2 'Segoe UI', sans-serif; letter-spacing: -1.2px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: #63685f; font-size: 11px; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #bd9a65; box-shadow: 0 0 0 3px #f7f0e4; }
.content { max-width: 1440px; margin: 0 auto; }
.notice-strip { display: flex; flex-wrap: wrap; gap: 7px; max-width: 1440px; margin: -18px auto 22px; }
.notice-chip { padding: 7px 10px; border: 1px solid #e6e2d5; border-radius: 999px; background: #faf8f2; color: #65695f; font-size: 10px; }
.demo-banner { max-width: 1440px; margin: 0 auto 18px; padding: 13px 16px; border: 2px solid #b46a21; border-radius: 12px; background: #fff0d6; color: #69380c; font-size: 13px; font-weight: 700; line-height: 1.55; }
.demo-banner strong { letter-spacing: .4px; }
.demo-banner-login { margin-bottom: 20px; }
.welcome { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 190px; overflow: hidden; padding: 32px 38px; border-radius: 18px; background: #28372e; color: #fffefa; box-shadow: var(--shadow); }
.welcome:after { position: absolute; top: -100px; right: 12%; width: 350px; height: 350px; border: 1px solid rgba(238, 230, 207, .1); border-radius: 50%; content: ''; box-shadow: 0 0 0 42px rgba(238, 230, 207, .025), 0 0 0 86px rgba(238, 230, 207, .02); }
.welcome-copy { position: relative; z-index: 1; max-width: 580px; }
.welcome-kicker { color: #b6c4b5; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.welcome h2 { margin: 13px 0 9px; font: 600 clamp(23px, 3vw, 32px)/1.25 'Segoe UI', sans-serif; letter-spacing: -.9px; }
.welcome p { max-width: 520px; margin: 0; color: #c2c9c0; font-size: 13px; line-height: 1.7; }
.welcome-action { position: relative; z-index: 1; flex: 0 0 auto; min-width: 220px; padding: 13px 18px; border: 0; border-radius: 9px; background: #d7ddc6; color: #27382d; font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.welcome-action:disabled { cursor: not-allowed; opacity: .8; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 30px 0 14px; }
.section-heading h2 { margin: 0; font: 700 16px 'Segoe UI', sans-serif; letter-spacing: -.3px; }
.section-heading-tight { margin-top: 0; }
.form-grid-spaced { margin-top: 12px; }
.field-hint-note { margin-top: 10px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.text-link { padding: 5px 0; border: 0; background: none; color: var(--green); font-size: 11px; font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card, .panel, .form-panel { border: 1px solid rgba(230, 228, 219, .85); border-radius: 14px; background: var(--surface); box-shadow: 0 7px 25px rgba(37, 39, 31, .035); }
.metric-card { min-height: 128px; padding: 19px; }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: #73776e; font-size: 11px; }
.metric-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--green-soft); color: var(--green); font-size: 13px; }
.metric-value { margin-top: 15px; font: 700 27px 'Segoe UI', sans-serif; letter-spacing: -.8px; }
.metric-foot { margin-top: 5px; color: var(--muted); font-size: 10px; }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 16px; }
.panel { overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font: 700 13px 'Segoe UI', sans-serif; }
.panel-head span { color: var(--muted); font-size: 10px; }
.list { display: grid; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; border-bottom: 1px solid #f0eee8; }
.list-row:last-child { border-bottom: 0; }
.row-main { min-width: 0; }
.row-title { overflow: hidden; color: #30342e; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { margin-top: 4px; color: var(--muted); font-size: 10px; }
.badge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 6px; background: #f0efe9; color: #73776e; font-size: 9px; font-weight: 700; white-space: nowrap; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-gold { background: #f7f0e4; color: #947440; }
.empty { padding: 24px 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.page-grid { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 16px; }
.settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.order-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.order-update { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto; align-items: end; gap: 10px; margin-top: 15px; }
.toggle { display: inline-flex; align-items: center; gap: 9px; color: #62675f; font-size: 11px; }
.toggle input { width: 16px; height: 16px; accent-color: var(--green); }
.agent-context { margin-bottom: 16px; }
.agent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agent-card { min-width: 0; }
.agent-card .data-card-head { align-items: center; }
.agent-card .toggle { flex: 0 0 auto; }
.agent-result { max-height: 340px; overflow: auto; margin: 16px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--ink); font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.pricing-list { display: grid; gap: 10px; }
.pricing-rule { display: grid; grid-template-columns: minmax(150px, 1.4fr) repeat(2, minmax(110px, 1fr)) auto auto; align-items: end; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.pricing-rule .button { min-height: 36px; }
.form-panel { padding: 20px; }
.form-panel h3 { margin: 0 0 17px; font: 700 14px 'Segoe UI', sans-serif; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; }
.field label { color: #74776f; font-size: 10px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fffefa; color: var(--ink); font-size: 12px; }
.field textarea { min-height: 82px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #9aaf9c; box-shadow: 0 0 0 3px #e9f0e9; }
.field-hint { color: var(--muted); font-size: 10px; line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 9px 13px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 700; transition: .15s ease; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: #244632; }
.button-secondary { border-color: var(--line); background: var(--surface); color: #484c45; }
.button-secondary:hover { background: var(--surface-2); }
.button-danger { border-color: #f0ded9; background: #fff9f7; color: var(--red); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.data-list { display: grid; gap: 10px; }
.data-card { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.data-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.data-card h4 { margin: 0; font: 700 13px 'Segoe UI', sans-serif; }
.data-card p { margin: 7px 0 0; color: #74776f; font-size: 11px; line-height: 1.6; }
.data-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.data-card-controls { display: flex; align-items: center; gap: 8px; }
.data-card-controls select { max-width: 190px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 10px; }
.analytics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.notice { padding: 14px 16px; border: 1px solid #e8dfcb; border-radius: 10px; background: #fbf7ed; color: #74623f; font-size: 11px; line-height: 1.6; }
.notice strong { color: #5f4b29; }
.integration-card { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.integration-card h3 { margin: 0; font: 700 13px 'Segoe UI', sans-serif; }
.integration-card p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.storefront-page { background: #f3f1ec; color: #202620; }
.shop-wrap { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 18px 0 34px; }
.shop-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 1px 21px; }
.shop-brand { display: inline-flex; align-items: center; gap: 10px; color: #272b25; font-size: 14px; font-weight: 800; text-decoration: none; }
.shop-logo { display: block; width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 6px 16px rgba(31,45,35,.22); }
.shop-brand-text { display: grid; gap: 2px; line-height: 1.1; }
.shop-brand-text strong { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.shop-brand-text small { color: #7b8276; font-size: 10px; font-weight: 600; letter-spacing: .4px; }
.shop-nav { display: flex; gap: 32px; }
.shop-nav a, .shop-footer > a:last-child { color: #51594f; font-size: 12px; font-weight: 600; text-decoration: none; }
.shop-nav a:hover, .shop-footer > a:last-child:hover { text-decoration: underline; }
.shop-header-cta { padding: 13px 18px; border: 1px solid #d5d9cd; border-radius: 7px; color: #293a2d; font-size: 12px; font-weight: 700; text-decoration: none; }
.shop-header-cta span { padding-left: 12px; }
.shop-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr); min-height: 480px; overflow: hidden; border-radius: 15px; background: #25352a; color: #f3f0e7; }
.shop-hero-copy { position: relative; z-index: 1; align-self: center; padding: clamp(30px, 5vw, 60px); }
.shop-kicker { display: flex; align-items: center; gap: 9px; color: #6d795e; font-size: 9px; font-weight: 800; letter-spacing: 1.65px; }
.shop-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: #a7b17d; box-shadow: 0 0 0 4px rgba(167, 177, 125, .13); }
.shop-hero h1 { margin: 23px 0 16px; font: 700 clamp(38px, 4vw, 56px)/1.04 'Segoe UI', sans-serif; letter-spacing: -2.2px; }
.shop-hero h1 em { color: #c6d495; font-style: normal; }
.shop-hero p { max-width: 510px; margin: 0 0 24px; color: #c1c4bb; font-size: 13px; line-height: 1.8; }
.shop-hero-pricing { display: flex; align-items: center; gap: 13px; margin: 25px 0; }
.shop-hero-pricing > span { color: #bfc8b5; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.shop-hero-pricing strong { color: #fff; font-size: 28px; letter-spacing: -.8px; }
.shop-hero-pricing small { color: #bfc8b5; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.shop-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.messenger { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: 6px; font: 700 12px 'Segoe UI', sans-serif; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.messenger-dark { border-color: rgba(230, 236, 214, .35); background: rgba(255, 255, 255, .06); color: #eef2e2; }
.messenger-dark:hover { border-color: rgba(230, 236, 214, .7); background: rgba(255, 255, 255, .14); }
.messenger-light { border-color: #c4ccb8; background: #f1f4ea; color: #2b3d2f; }
.messenger-light:hover { border-color: #8da07c; background: #fff; }
.shop-contact-block { display: grid; gap: 10px; margin: 6px 0 24px; }
.shop-hero-button { display: inline-flex; gap: 35px; min-height: 46px; padding: 13px 20px; border-radius: 6px; background: #c6d495; color: #202d22; font-size: 12px; text-decoration: none; }
.shop-hero-button:hover { background: #dce8b6; }
.shop-hero-foot { margin-top: 26px; color: #a8ada2; font-size: 9px; letter-spacing: .3px; }
.shop-hero-foot span { padding: 0 7px; color: #778071; }
.shop-hero-visual { position: relative; display: grid; min-height: 360px; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 48% 47%, #849078 0, #536352 36%, #25352a 74%); }
.hero-grid { position: absolute; inset: 12% 4%; opacity: .14; background-image: linear-gradient(rgba(230, 232, 218, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 232, 218, .28) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(ellipse, black, transparent 72%); }
.hero-block { position: absolute; width: min(52%, 270px); aspect-ratio: 1.55; border: 1px solid rgba(255,255,255,.17); background: linear-gradient(145deg, #dedbce 0%, #b8b5a9 48%, #9a998f 100%); box-shadow: 20px 32px 38px rgba(0,0,0,.24); transform: rotate(-12deg) skewY(2deg); }
.hero-block:before { position: absolute; top: 0; left: 100%; width: 26%; height: 100%; content: ''; transform: skewY(-37deg); transform-origin: left top; background: linear-gradient(135deg, #aaa89d, #85877d); }
.hero-block:after { position: absolute; top: -25%; left: 0; width: 100%; height: 26%; content: ''; transform: skewX(-53deg); transform-origin: left bottom; background: linear-gradient(120deg, #efede2, #c8c6b9); }
.hero-block-back { margin: -58px 0 0 28px; opacity: .64; transform: rotate(12deg) skewY(-2deg) scale(.8); }
.hero-block-front { margin: 38px 22px 0 -12px; }
.hero-measure { position: absolute; color: #e0dfd3; font: 10px 'Segoe UI', sans-serif; letter-spacing: 1px; }
.hero-measure:before { position: absolute; content: ''; background: rgba(224, 223, 211, .65); }
.hero-measure-width { bottom: 17%; left: 26%; }
.hero-measure-width:before { top: -9px; left: 0; width: 80px; height: 1px; }
.hero-measure-height { top: 25%; right: 16%; }
.hero-measure-height:before { top: -4px; right: calc(100% + 8px); width: 22px; height: 1px; }
.hero-measure-depth { right: 18%; bottom: 30%; }
.hero-measure-depth:before { top: -4px; right: calc(100% + 8px); width: 16px; height: 1px; }
.hero-stamp { position: absolute; top: 15%; right: 12%; padding: 8px 10px; border: 1px solid rgba(233, 232, 219, .38); color: #e4e3d8; font-size: 11px; letter-spacing: 1px; }
.hero-stamp span { color: #aeb995; }
.shop-notices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 14px 0 61px; border: 1px solid #e4e6de; border-radius: 10px; background: #e4e6de; }
.notice-chip { display: flex; min-height: 72px; align-items: start; gap: 11px; padding: 20px 17px; background: #fffefa; color: #494e45; font-size: 11px; line-height: 1.55; }
.shop-notices .notice-chip { border: 0; border-radius: 0; }
.notice-chip span { flex: 0 0 auto; color: #858a79; font-size: 9px; font-weight: 800; letter-spacing: .6px; }
.shop-section { margin: 60px 0; scroll-margin-top: 22px; }
.shop-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.shop-section-heading h2, .shop-order-intro h2 { margin: 10px 0 8px; font: 700 clamp(27px, 3.3vw, 39px)/1.1 'Segoe UI', sans-serif; letter-spacing: -1.4px; }
.shop-section-heading p { max-width: 620px; margin: 0; color: #787d73; font-size: 11px; line-height: 1.7; }
.shop-section-link, .shop-source-link { color: #59664d; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.shop-section-link:hover, .shop-source-link:hover { text-decoration: underline; }
.shop-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.shop-product { min-width: 0; overflow: hidden; border: 1px solid #e3e3da; border-radius: 12px; background: #fffefa; transition: transform .2s ease, box-shadow .2s ease; }
.shop-product:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(38,42,37,.08); }
.shop-product-art { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 175px; overflow: hidden; }
.art-draw { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #e1e4dc, #c6cec1); }
.art-draw:before { position: absolute; inset: 0; content: ''; opacity: .24; background-image: linear-gradient(135deg, transparent 49.5%, rgba(65,72,61,.19) 50%, transparent 50.5%); background-size: 26px 26px; }
.art-photo { overflow: hidden; background: #dfe3d8; }
.art-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shop-product:hover .art-photo img { transform: scale(1.05); }
.block-illustration { position: relative; display: block; width: 100px; height: 54px; margin: -3px 12px 0 0; transform: rotate(-12deg) skewY(2deg); border: 1px solid rgba(255,255,255,.3); background: linear-gradient(145deg, #eeece1, #bab9ad 65%, #a5a59b); box-shadow: 12px 19px 16px rgba(43,47,40,.22); }
.block-illustration:before { position: absolute; top: 0; left: 100%; width: 18px; height: 100%; content: ''; transform: skewY(-37deg); transform-origin: left top; background: #9c9e93; }
.block-illustration:after { position: absolute; top: -15px; left: 0; width: 100%; height: 15px; content: ''; transform: skewX(-53deg); transform-origin: left bottom; background: #f0eee3; }
.shop-product-index { position: absolute; top: 13px; left: 14px; color: rgba(37,42,36,.48); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.shop-product-body { padding: 20px; }
.shop-product-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.shop-category { color: #858a7f; font-size: 9px; letter-spacing: .6px; text-transform: uppercase; }
.shop-chip { padding: 5px 7px; background: #e4e6dc; color: #57624d; font-size: 8px; font-weight: 700; white-space: nowrap; }
.shop-product h3 { margin: 14px 0 3px; font: 700 19px 'Segoe UI', sans-serif; letter-spacing: -.3px; }
.shop-product-name { margin: 0; color: #777c72; font-size: 10px; }
.shop-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; padding: 15px 0; border-top: 1px solid #edeee7; border-bottom: 1px solid #edeee7; }
.shop-prices div { display: grid; gap: 5px; }
.shop-prices span { color: #868c80; font-size: 10px; }
.shop-prices strong { color: #293c2d; font-size: 21px; letter-spacing: -.5px; }
.shop-specs { margin: 15px 0 13px; }
.shop-specs div { display: grid; grid-template-columns: 91px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid #e4e3dc; font-size: 9px; }
.shop-specs dt { color: #868a81; }
.shop-specs dd { margin: 0; color: #3b4039; font-weight: 600; }
.shop-product-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #e4e3dc; }
.shop-product-actions .button { min-height: 39px; padding: 8px 14px; border: 0; border-radius: 6px; background: #e4edd8; color: #30452e; font-size: 11px; }
.shop-product-actions .button:hover { background: #cedfbe; }
.shop-order-band { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(25px, 6vw, 76px); margin: 65px 0 56px; padding: clamp(23px, 5vw, 57px); scroll-margin-top: 22px; border-radius: 15px; background: #e0e6d9; }
.shop-order-intro { display: flex; flex-direction: column; align-items: start; }
.shop-order-intro h2 { margin-top: 17px; }
.shop-order-intro > p { max-width: 330px; margin: 4px 0 30px; color: #6e7469; font-size: 11px; line-height: 1.7; }
.shop-manufacturer { display: grid; gap: 7px; margin-top: auto; padding-top: 22px; border-top: 1px solid #bfc2b7; }
.manufacturer-label { color: #72786d; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.shop-manufacturer strong { max-width: 330px; color: #3b4038; font-size: 10px; line-height: 1.6; }
.shop-manufacturer small { max-width: 330px; color: #767b71; font-size: 9px; line-height: 1.6; }
.shop-form-card { padding: clamp(19px, 3.3vw, 33px); border-radius: 10px; background: #fffefa; box-shadow: 0 12px 40px rgba(35,52,36,.07); }
.shop-form-title { display: flex; justify-content: space-between; margin-bottom: 22px; padding-bottom: 13px; border-bottom: 1px solid #e5e4dc; color: #787d73; font-size: 9px; letter-spacing: .8px; text-transform: uppercase; }
.shop-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.shop-field-wide { grid-column: 1 / -1; }
.shop-estimate { padding: 12px 14px; border-radius: 6px; background: #edf2e8; color: #40543a; font-size: 11px; font-weight: 700; line-height: 1.5; }
.field-optional { color: #9a9d94; font-weight: 400; }
.shop-form .field label { color: #6c7168; font-size: 9px; }
.shop-form .field input, .shop-form .field select, .shop-form .field textarea { padding: 11px 12px; border-color: #deded5; border-radius: 2px; background: #fffefa; font-size: 11px; }
.shop-form .field textarea { min-height: 65px; }
.shop-consent { display: flex; align-items: start; gap: 9px; margin: 15px 0 6px; color: #787d74; font-size: 9px; line-height: 1.6; }
.shop-consent input { flex: 0 0 auto; margin: 2px 0 0; accent-color: #626f56; }
.shop-consent a { color: #59664d; }
.shop-form-notice, .shop-response { color: #888c82; font-size: 9px; line-height: 1.6; }
.shop-response { min-height: 18px; margin: 9px 0; color: #526746; font-weight: 700; }
.shop-response-error { color: var(--red); }
.shop-submit { width: 100%; justify-content: space-between; min-height: 48px; padding: 12px 15px; border-radius: 6px; background: #293e2e; text-align: left; }
.shop-submit:hover { background: #4a5444; }
.shop-submit:disabled { opacity: .55; }
.shop-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 1px 0; border-top: 1px solid #d5d4cc; color: #858980; font-size: 9px; }
.shop-footer a { color: #51594f; text-decoration: none; }
.shop-footer a:hover { text-decoration: underline; }
.shop-wholesale { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 0 26px; padding: 32px clamp(22px, 4vw, 46px); border-radius: 15px; background: #25352a; color: #f3f0e7; }
.shop-wholesale h2 { margin: 10px 0 8px; font: 700 clamp(22px, 2.6vw, 30px)/1.15 'Segoe UI', sans-serif; letter-spacing: -.8px; }
.shop-wholesale p { max-width: 560px; margin: 0; color: #c1c7ba; font-size: 12px; line-height: 1.7; }
.shop-wholesale .shop-kicker { color: #b9c89a; }
.shop-wholesale .button { flex: 0 0 auto; min-height: 46px; padding: 12px 22px; border-radius: 6px; background: #c6d495; color: #202d22; font-size: 12px; }
.shop-wholesale .button:hover { background: #dce8b6; }
.reviews-summary { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.reviews-summary strong { font-size: 26px; letter-spacing: -.8px; }
.reviews-summary small { color: #7c8277; font-size: 12px; }
.review-stars { color: #d4a73a; font-size: 15px; letter-spacing: 2px; white-space: nowrap; }
.review-stars i { color: #d7d9cf; font-style: normal; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.review-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 22px 24px; border: 1px solid #e3e3da; border-radius: 14px; background: #fffefa; }
.review-card[hidden] { display: none; }
.review-card header { display: flex; align-items: center; gap: 12px; }
.review-avatar { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #e4edd8; color: #34502f; font-size: 16px; font-weight: 800; }
.review-author { display: grid; flex: 1; min-width: 0; gap: 2px; }
.review-author strong { font-size: 14px; }
.review-author span { color: #8b9085; font-size: 11px; }
.review-card p { margin: 0; color: #444a40; font-size: 13px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.reviews-more { margin-top: 16px; }
.reviews-empty { color: #7c8277; font-size: 13px; }
.review-dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 30px 80px rgba(20, 30, 20, .35); }
.review-dialog::backdrop { background: rgba(24, 34, 26, .55); }
.review-dialog form { padding: 24px; }
.review-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.review-dialog-head h3 { margin: 0; font: 700 20px 'Segoe UI', sans-serif; }
.review-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef0e8; color: #4a5246; font-size: 20px; line-height: 1; }
.review-dialog .field { margin-bottom: 14px; }
.field-label { color: #6c7168; font-size: 9px; font-weight: 600; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { padding: 0 2px; color: #cfd3c6; font-size: 30px; line-height: 1; cursor: pointer; transition: color .12s ease; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #d4a73a; }
.star-input input:focus-visible + label { outline: 2px solid #8da07c; outline-offset: 2px; border-radius: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.legal-wrap { max-width: 900px; }
.legal-doc { margin: 8px 0 34px; padding: clamp(24px, 4vw, 48px); border: 1px solid #e3e3da; border-radius: 14px; background: #fffefa; line-height: 1.75; }
.legal-doc h1 { margin: 0 0 8px; font: 700 clamp(24px, 3vw, 34px)/1.2 'Segoe UI', sans-serif; letter-spacing: -.8px; }
.legal-doc h2 { margin: 30px 0 8px; font: 700 17px 'Segoe UI', sans-serif; }
.legal-doc p, .legal-doc li { color: #4a5046; font-size: 13px; }
.legal-doc ul { margin: 8px 0; padding-left: 20px; }
.legal-date { color: #8a8f84 !important; font-size: 12px !important; }
.legal-requisites { display: grid; gap: 1px; margin: 14px 0 !important; padding: 0 !important; overflow: hidden; border: 1px solid #e3e3da; border-radius: 8px; background: #e3e3da; list-style: none; }
.legal-requisites li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 11px 14px; background: #fbfaf5; }
.legal-requisites span { color: #848a7d; }
.login-screen { display: grid; min-height: 100vh; place-items: center; padding: 20px; background: radial-gradient(ellipse at 75% 15%, #e1e6d9, transparent 42%), var(--paper); }
.login-card { width: min(100%, 400px); padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.login-card .brand { padding: 0 0 30px; color: var(--ink); }
.login-card h1 { margin: 0; font: 700 23px 'Segoe UI', sans-serif; letter-spacing: -.7px; }
.login-card > p { margin: 8px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-card .form-grid { gap: 14px; }
.login-card .button { width: 100%; margin-top: 4px; }
.login-error { min-height: 16px; color: var(--red); font-size: 11px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 10; max-width: min(360px, calc(100vw - 44px)); padding: 12px 16px; transform: translateY(12px); border-radius: 9px; background: #26372d; color: white; opacity: 0; pointer-events: none; font-size: 12px; box-shadow: var(--shadow); transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #873e35; }
.theme-dark { color-scheme: dark; --paper: #171a17; --surface: #202420; --surface-2: #292e29; --ink: #e9ece5; --muted: #a4a99f; --line: #353a34; --green: #74957a; --green-soft: #2a392d; --shadow: 0 16px 48px rgba(0, 0, 0, .18); }
.theme-dark .main-area { background: var(--paper); }
.theme-dark .metric-head, .theme-dark .row-title, .theme-dark .data-card p { color: #d6dbd2; }
.theme-dark .field input, .theme-dark .field select, .theme-dark .field textarea, .theme-dark .data-card-controls select { border-color: var(--line); background: #1b1f1b; color: var(--ink); }
.theme-dark .list-row { border-color: var(--line); }
.theme-dark .badge { background: #30352f; color: #c4c9bf; }
.theme-dark .badge-green { background: #304337; color: #bad1bc; }
.theme-dark .badge-gold { background: #413a2e; color: #e0c58f; }
.theme-dark .notice { border-color: #514937; background: #302d25; color: #d9c99f; }
.theme-dark .notice strong { color: #f0dda9; }
.theme-dark .notice-chip { border-color: var(--line); background: var(--surface-2); color: #d0d5cc; }
.theme-dark .demo-banner { border-color: #d9954e; background: #352819; color: #ffe0b5; }
.theme-dark .toggle { color: #d0d5cc; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 216px minmax(0, 1fr); }
  .sidebar { padding-right: 13px; padding-left: 13px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome { align-items: start; flex-direction: column; }
  .welcome-action { min-width: 0; }
  .shop-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-notices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-shell { display: block; padding-bottom: 68px; }
  .sidebar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 5; display: block; padding: 0; border-top: 1px solid #3a3f39; }
  .brand, .nav-label, .sidebar-bottom { display: none; }
  .nav-list { display: flex; justify-content: space-around; gap: 0; padding: 7px 5px max(7px, env(safe-area-inset-bottom)); }
  .nav-item { flex: 1; flex-direction: column; gap: 3px; justify-content: center; padding: 7px 2px; border-radius: 7px; font-size: 9px; }
  .nav-icon { font-size: 14px; }
  .main-area { padding: 20px 16px 32px; }
  .topbar { align-items: start; margin-bottom: 23px; }
  .status-pill { padding: 8px; font-size: 0; }
  .status-dot { width: 8px; height: 8px; }
  .welcome { min-height: 0; padding: 25px 22px; }
  .grid-two, .page-grid { grid-template-columns: 1fr; }
  .shop-wrap { width: min(100% - 28px, 560px); padding-top: 13px; }
  .shop-nav { display: none; }
  .shop-header-cta { padding: 10px 12px; font-size: 10px; white-space: nowrap; }
  .shop-products, .shop-order-band, .reviews-grid { grid-template-columns: 1fr; }
  .shop-wholesale { align-items: start; flex-direction: column; }
  .legal-requisites li { grid-template-columns: 1fr; gap: 2px; }
  .shop-form-grid { grid-template-columns: 1fr; }
  .shop-field-wide { grid-column: auto; }
  .shop-hero { grid-template-columns: 1fr; }
  .shop-hero-copy { padding: 33px 25px 27px; }
  .shop-hero h1 { font-size: clamp(38px, 10vw, 55px); letter-spacing: -2px; }
  .shop-hero-visual { min-height: 260px; }
  .shop-notices { grid-template-columns: 1fr; margin-bottom: 42px; }
  .shop-section-heading { align-items: start; flex-direction: column; }
  .shop-order-band { gap: 25px; padding: 24px 18px; }
  .shop-spec-note { flex-wrap: wrap; margin-bottom: 42px; }
  .shop-spec-note a { margin-left: 37px; }
  .shop-footer { flex-wrap: wrap; }
  .settings-grid, .order-form-grid, .agent-list { grid-template-columns: 1fr; }
  .order-update { grid-template-columns: 1fr; }
  .pricing-rule { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notice-strip { margin-top: -10px; }
  .analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { margin-top: 24px; }
}
@media (max-width: 420px) {
  .metrics { gap: 9px; }
  .metric-card { min-height: 116px; padding: 14px; }
  .metric-value { font-size: 23px; }
  .metric-head { font-size: 10px; }
  .analytics-grid { grid-template-columns: 1fr; }
  .form-grid.two-col { grid-template-columns: 1fr; }
  .top-actions .button { padding: 8px; }
}
