/* Market Relations palette applied to the Control Seller header, launcher and module cards. */
:root {
  color-scheme: light;
  --canvas: #f3f4ef;
  --surface: #fff;
  --ink: #193c35;
  --accent: #205a48;
  --muted: #52675d;
  --border: #ced7cf;
  --tint: #eaf0e6;
  --lime: #bce493;
  --shadow: 0 6px 24px -18px rgba(25,60,53,.3);
  --gutter: clamp(16px, 4vw, 64px);
  font: 16px/1.5 Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box }
body { margin: 0 }
a { color: #165a48; text-underline-offset: .2em }
a:hover { color: #0a332a }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
h1, h2, h3, p { margin-top: 0 }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere }
h1 { margin-bottom: 24px; font-size: clamp(1.85rem, 3vw, 2.65rem); font-weight: 700 }
h2 { font-size: 1.32rem; margin-bottom: 15px }
h3 { font-size: 1.06rem }
p:last-child { margin-bottom: 0 }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto }
.shell { width: min(calc(100% - 48px), 1600px); margin: 12px auto 64px }
.topbar, .public-bar, .account, .brand, .user-chip, .actions, .toolbar, .module-nav { display: flex; align-items: center }
.topbar, .public-bar, .toolbar { justify-content: space-between; gap: 16px }
.topbar { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; min-height: 76px; padding: 12px 22px; box-shadow: var(--shadow) }
.account, .actions { gap: 12px; flex-wrap: wrap }
.account .stack { width: auto; margin: 0 }
.brand { gap: 11px; font-size: 1.3rem; letter-spacing: -.045em; font-weight: 730; color: #183e33; text-decoration: none; white-space: nowrap }
.brand-mark { display: inline-block; width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: linear-gradient(90deg,transparent 15%,var(--lime) 15% 31%,transparent 31% 43%,var(--lime) 43% 59%,transparent 59% 71%,var(--lime) 71% 87%,transparent 87%) center 58% / 77% 40% no-repeat,#194537 }
.user-chip { gap: 9px; max-width: 280px; border-radius: 12px; border: 1px solid var(--border); background: #f5f7f2; padding: 5px 11px 5px 5px; font-size: .875rem }
.user-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.avatar, .module-icon { display: inline-grid; place-items: center; border-radius: 9px; color: var(--accent); background: #deebd8; flex: none }
.avatar { width: 30px; height: 30px; font-weight: 700 }
.module-nav { gap: 6px; margin: 16px 0 0; padding: 0 2px; flex-wrap: wrap }
.module-nav a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-size: .91rem; font-weight: 600; padding: 9px 14px; border: 1px solid transparent; border-radius: 11px }
.module-nav a:hover, .module-nav [aria-current] { background: var(--tint); border-color: var(--border) }
.module-nav .icon { width: 17px; height: 17px }
.content { margin: clamp(24px,3.4vw,48px) auto; padding: 0 clamp(0px,1.3vw,20px) }
.panel, .auth-card, .module-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow) }
.panel { padding: clamp(19px,2.3vw,30px); margin: 16px 0; min-width: 0; }
.panel:has(table) { overflow-x: auto }
.stack, .field, label { display: grid; gap: 7px; min-width: 0 }
.stack { gap: 16px; width: min(100%,540px) }
.stack button { justify-self: start }
.field, label { font-size: .94rem; font-weight: 600 }
input:not([type="hidden"]):not([type="checkbox"]), select, textarea { color: var(--ink); width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #9aac9e; border-radius: 9px; background: var(--surface); font: inherit; font-weight: 450 }
fieldset { display: grid; gap: 12px; margin: 0; min-width: 0; padding: 17px; border: 1px solid var(--border); border-radius: 12px }
legend { padding: 0 6px; font-weight: 650 }
fieldset p { margin: 0 }
label:has(input[type="checkbox"]) { display: flex; align-items: flex-start; gap: 8px }
input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; flex: none }
.hint { font-size: .85rem; color: var(--muted); margin: -10px 0 0 }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; min-height: 42px; padding: 9px 16px; font-family: inherit; font-size: .94rem; font-weight: 600; line-height: 1.25; border: 1px solid transparent; border-radius: 10px; background: var(--accent); color: white; text-decoration: none; cursor: pointer }
.button:hover, button:hover { background: #133e31; color: white }
.secondary { background: #f5f7f2; color: var(--accent); border-color: var(--border) }
.secondary:hover { background: var(--tint); color: var(--ink) }
.muted, .eyebrow, .toolbar p { color: var(--muted) }
.eyebrow { margin: -10px 0 16px }
.form-panel { max-width: 650px }
.back { display: inline-block; font-size: .91rem }
.store-list { list-style: none; margin: 0; padding: 0 }
.store-list li+li { border-top: 1px solid var(--border) }
.store-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; text-decoration: none }
.store-list strong { overflow-wrap: anywhere }
.table-panel { padding: 0; overflow: hidden }
.toolbar { padding: 17px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap }
.toolbar p { font-size: .93rem; margin: 0 }
.scroll { overflow-x: auto; max-width: 100% }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .94rem }
th, td { padding: 12px 14px; border-bottom: 1px solid #dce3da; vertical-align: middle }
th { background: #f5f7f2; color: #52675d; font-weight: 650; font-size: .85rem; white-space: nowrap }
tbody tr:last-child td { border-bottom: 0 }
tbody tr:hover { background: #f8faf6 }
.table-panel :is(th,td):first-child { padding-left: 22px }
.market { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 7px; background: var(--tint); color: var(--accent) }
.edit-login { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere }
.edit-login .icon { width: 14px; height: 14px }
td code { overflow-wrap: anywhere; font-size: .90rem; white-space: pre-wrap }
summary { cursor: pointer; font-weight: 600 }
details[open]>summary { margin-bottom: 16px }
.saved, .notice { color: #25633f }
.notice { border: 1px solid #b6ceaf; padding: 11px 15px; border-radius: 10px; background: #e9f2e4 }
.alert { color: #923b20 }
progress { width: min(100%,480px); accent-color: var(--accent) }
.public-header { background: var(--surface); border-bottom: 1px solid var(--border) }
.public-bar, .catalog, .stage-inner { max-width: 1680px; margin: auto; padding-inline: var(--gutter) }
.public-bar { min-height: 76px }
.home-stage, .identity {
  background: radial-gradient(ellipse at 10% 88%,#dce9d8aa,transparent 42%),radial-gradient(ellipse at 90% 14%,#dce7d799,transparent 40%),
    linear-gradient(90deg,#cad6c94d 1px,transparent 1px) 0 0/64px 64px,
    linear-gradient(#cad6c94d 1px,transparent 1px) 0 0/64px 64px,var(--canvas)
}
.home-stage { border-bottom: 1px solid var(--border) }
.stage-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(16px,3vw,56px); padding-block: clamp(28px,4.2vw,68px) }
.home-intro h1, .auth-brand h2 { margin: 0 0 20px; font-size: clamp(3.1rem,5.6vw,6rem); line-height: .99; letter-spacing: -.065em }
em { font-style: normal; color: var(--accent) }
.home-intro p, .auth-brand p, .plugin-card p { color: var(--muted); max-width: 44ch; font-size: clamp(1rem,1.35vw,1.24rem) }
.home-intro .button { margin-top: 6px }
.launcher { position: relative; min-width: 0; width: 100%; max-width: 570px; height: clamp(290px,24vw,405px); justify-self: center }
.orbit { position: absolute; inset: 13% 15%; border: 1px solid #aabda9; border-radius: 50% }
.orbit:after, .orbit:before { content: ""; position: absolute; inset: 10% 8%; border: 1px dashed #aabda9; border-radius: 50% }
.orbit:before { inset: -9% -8%; border-style: solid; opacity: .5 }
.hub, .node { position: absolute; transform: translate(-50%,-50%); display: grid; justify-items: center; align-items: center }
.hub { inset: 50% auto auto 50%; width: 82px; height: 82px; border-radius: 24px; background: white; border: 1px solid var(--border); box-shadow: 0 7px 24px #2043351a }
.hub .brand-mark { width: 56px; height: 56px; border-radius: 15px }
.node { gap: 4px; text-decoration: none; font-weight: 650; font-size: .84rem; white-space: nowrap }
.node-face { display: grid; place-items: center; width: 48px; height: 48px; background: white; border: 1px solid #a6bfa5; border-radius: 14px; box-shadow: var(--shadow) }
.node .icon { width: 25px; height: 25px }
a.node:hover .node-face, .module-card:hover { border-color: #75957a; background: #fafcf7 }
.node-wb { top: 17%; left: 29% }
.node-ozon { top: 17%; left: 71% }
.node-shops { top: 64%; left: 85% }
.node-disk { top: 87%; left: 50% }
.node-search { top: 64%; left: 15% }
.market-face, .market-mark { font: 750 16px/1 Inter, "Segoe UI", sans-serif; letter-spacing: -.075em }
.market-mark-wb { color: var(--ink); background: var(--lime); border-color: var(--accent) }
.market-mark-ozon { color: var(--accent); background: var(--tint); border-color: var(--border) }
.node-lock { position: absolute; top: -4px; left: calc(50% + 10px); width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--muted) }
.node-lock .icon { width: 13px; height: 13px }
.node.is-locked, .market-heading.is-locked, .market-section-list .is-locked { color: var(--muted) }
.node.is-locked .market-face, .market-heading.is-locked .market-mark { color: var(--muted); background: #f0f2ee; border-color: var(--border) }
.catalog { padding-block: clamp(25px,3vw,46px) }
.catalog h2 { font-size: 1.52rem }
.market-grid { display: grid; grid-template-columns: minmax(235px,.8fr) minmax(0,1.7fr); gap: 14px; margin: 0 0 14px }
.market-overview { min-width: 0; padding: clamp(17px,1.7vw,25px); border: 1px solid var(--border); border-radius: 18px; background: white; box-shadow: var(--shadow) }
.market-overview h3 { margin: 0 0 13px; }
.market-heading { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.market-heading strong { font-size: 1.17rem; }
.market-heading > .icon, .lock-note { margin-left: auto; }
.market-heading > .icon { width: 17px; }
.market-mark { display: inline-grid; width: 35px; height: 35px; place-items: center; border-style: solid; border-width: 1px; border-radius: 10px; font-size: 14px; }
.lock-note { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 500; letter-spacing: 0; white-space: nowrap }
.lock-note .icon { width: 13px; height: 13px }
.market-section-list, .market-children { list-style: none; padding: 0; margin: 0; }
.market-section-list { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 14px; border-top: 1px solid #e2e8e1; padding-top: 12px }
.market-section-list > li { min-width: 0; }
.market-topic, .market-child { display: inline-block; text-decoration: none; font-size: .85rem; padding: 2px 0; }
.market-topic { font-weight: 650; }
.market-children { display: flex; flex-wrap: wrap; gap: 1px 10px; }
.market-child { color: var(--muted); font-size: .78rem; }
.market-section-list a:hover, .market-heading:hover strong { text-decoration: underline; }
.market-heading.is-locked:hover strong { text-decoration: none; }
.market-ozon .market-section-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px 16px; }
.market-wb .market-section-list { flex-direction: column; }
.market-children li { max-width: 100%; }
.public-bar .account .stack { flex: none; }
.module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px }
.module-card { display: flex; gap: 13px; align-items: center; padding: clamp(16px,2vw,24px); text-decoration: none }
.module-icon { width: 42px; height: 42px }
.module-icon .icon { width: 23px; height: 23px }
.module-card strong, .module-card small { display: block }
.module-card small { color: var(--muted); line-height: 1.35; margin-top: 3px }
.module-card > .icon { margin-left: auto; width: 16px }
.auth-shell { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,460px); align-items: center; gap: clamp(28px,8vw,130px); max-width: 1170px; min-height: 100svh; padding: 40px var(--gutter); margin: auto }
.auth-brand { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 38px }
.auth-card { padding: clamp(24px,3vw,42px) }
.auth-card h1 { font-size: clamp(1.7rem,2.6vw,2.2rem) }
.auth-card button { width: 100% }
.plugin-card { max-width: 750px }
@media(max-width: 850px) {
  .market-grid { grid-template-columns: minmax(185px,.7fr) minmax(0,1.3fr); }
  .market-ozon .market-section-list { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .module-grid { grid-template-columns: 1fr }
  .module-card { padding: 14px 18px }
  .auth-shell { grid-template-columns: 1fr minmax(290px,1fr); gap: 24px }
}
@media(max-width: 640px) {
  .shell { width: calc(100% - 24px) }
  .topbar, .public-bar { min-height: 60px; padding: 10px 13px }
  .topbar { flex-wrap: wrap }
  .brand { font-size: 1.1rem }
  .brand-mark { width: 31px; height: 31px }
  .user-chip { display: none }
  .module-nav { gap: 2px }
  .module-nav a { padding: 7px 8px; font-size: .85rem }
  .toolbar { align-items: flex-start; padding: 14px }
  .content { margin: 24px 0 }
  .stage-inner { grid-template-columns: 1fr; gap: 5px }
  .launcher { height: 214px; max-width: 360px }
  .hub { width: 60px; height: 60px; border-radius: 16px }
  .hub .brand-mark { width: 42px; height: 42px; border-radius: 10px }
  .node-face { width: 38px; height: 38px; border-radius: 10px }
  .node { width: 92px; font-size: .74rem; line-height: 1.2; text-align: center; white-space: normal }
  .node-search { left: 16% }
  .node-shops { left: 84% }
  .market-grid { grid-template-columns: 1fr; gap: 10px; }
  .market-wb .market-section-list { flex-direction: row; }
  .public-bar .account { gap: 5px; }
  .auth-shell { grid-template-columns: 1fr; gap: 22px; align-content: center; min-height: 100svh; max-width: 480px; padding-block: 24px }
  .auth-brand { gap: 16px }
  .auth-brand h2 { font-size: 2.45rem }
  .auth-brand h2 br { display: none }
  .auth-brand h2 em:before { content: " " }
  .auth-brand p { display: none }
  .button, button { min-height: 41px }
}
@media(max-width: 480px) {
  .table-panel table, .table-panel tbody { display: block }
  .table-panel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
  .table-panel tbody tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; padding: 16px; border-bottom: 1px solid var(--border) }
  .table-panel tbody tr:last-child { border: 0 }
  .table-panel tbody td, .table-panel tbody td:first-child { display: block; padding: 0; border: 0; overflow-wrap: anywhere }
  .table-panel td[colspan] { grid-column: 1 / -1 }
  .table-panel td[data-label]:before { content: attr(data-label); display: block; color: var(--muted); font-size: .76rem; font-weight: 600; margin-bottom: 3px }
}
