@font-face{font-family:Medeo;src:url(/medeo.woff) format("truetype");font-weight:100 900}
@font-face{font-family:MedeoMono;src:url(/mono.woff) format("truetype");font-weight:100 900}
:root{--card-inset:16px;--radius-button:10px;--radius-tile:16px;font:14px/1.5 Medeo,system-ui,sans-serif;color:#f1f1f4;background:#151517;color-scheme:dark}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
header{display:flex;align-items:center;justify-content:space-between;padding:14px max(20px,calc((100vw - 1180px)/2));min-height:59px;border-bottom:1px solid #34343d;background:#1c1c20}
main{max-width:1220px;margin:auto;padding:24px 20px}
h1,h2{font-size:16px;margin:0;font-weight:550}
h1{margin-bottom:14px}
p{margin:0}
button,input{font:inherit;color:inherit;background:#202026;border:1px solid #43434e;border-radius:var(--radius-button);padding:6px 9px}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:wait}
:focus-visible{outline:2px solid #84b9ff;outline-offset:2px}
input{display:block;width:100%;margin-top:4px}
label{display:block;font-size:12px;color:#d0cfd6}
#auth{max-width:430px;background:linear-gradient(142deg,#2f2f38,#1c1c21);padding:20px;border:1px solid #3a3a44;border-radius:var(--radius-tile)}
.switch{display:flex;gap:6px;margin-bottom:14px}
.switch button[aria-pressed=true],.primary{background:#eeedf1;color:#18181c}
#markets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.card{padding:var(--card-inset);min-width:0;background:#202024;border:1px solid #38383f;border-radius:var(--radius-tile)}
.title{display:flex;justify-content:space-between;align-items:center;gap:8px}
.title h2::before{content:"";display:inline-block;width:8px;height:2px;background:#fff;vertical-align:middle;margin-right:7px}
[data-market=Ozon] h2::before{background:#4f9cff}
[data-market=Yandex] h2::before{background:#ffda54}
.caption,.badge,.requirements,.status{font-size:12px;color:#bfc0ca}
.badge.connected{color:#9be0b6}
.requirements{margin:9px 0 12px}
form{display:grid;gap:9px;align-items:start}
form button{justify-self:start}
.results{padding:0;list-style:none;overflow-wrap:anywhere;font:12px/1.55 MedeoMono,monospace}
.status{margin-top:7px}
@media(max-width:880px){#markets{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){#markets{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){:root{--card-inset:12px}}
#accountNav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#accountNav a{color:#d2d5e4;text-decoration:none}
.embedded header,.embedded #merchant{display:none}
.embedded main{max-width:none;padding:0 0 2px}
.embedded #settings>h1{font-size:15px;line-height:20px;font-weight:450;margin:0 0 10px}
#embeddedAccount{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
#markets .card{display:flex;flex-direction:column}
#markets .card form{margin-top:auto}

.title{flex-wrap:wrap}
#markets input{min-width:0}
html[data-theme="light"]{
  color-scheme:light;
  color:#1d1d1f;
  background:#f5f5f7;
}
html[data-theme="light"] body.embedded{background:#f5f5f7}
html[data-theme="light"] header{border-color:#d3d3d8;background:#fafafa}
html[data-theme="light"] .embedded header{background:transparent}
html[data-theme="light"] :is(.card,#auth){background:#fff;border-color:#d3d3d8}
html[data-theme="light"] button{color:#1d1d1f;background:#f5f5f7;border-color:#96969d}
html[data-theme="light"] input{color:#1d1d1f;background:#fff;border-color:#96969d}
html[data-theme="light"] :is(label,.caption,.badge,.requirements,.status){color:#515157}
html[data-theme="light"] #accountNav a{color:#323237}
html[data-theme="light"] :is(.switch button[aria-pressed=true],.primary){background:#29292c;color:#fff;border-color:#29292c}
html[data-theme="light"] .badge.connected{color:#28653e}
html[data-theme="light"] .title h2::before{background:#29292c}
html[data-theme="light"] [data-market=Ozon] h2::before{background:#2c5f99}
html[data-theme="light"] [data-market=Yandex] h2::before{background:#8b6412}
html[data-theme="light"] :focus-visible{outline-color:#285c99}

html[data-light-preview][data-theme=light] {background:#f9f8f3;color:#202938;}
html[data-light-preview][data-theme=light] body.embedded {background:transparent;}
html[data-light-preview][data-theme=light] .card {background:linear-gradient(135deg,white,#fffefa);border-color:#d4d9df;}
.card h2 {font-size:15px;font-weight:450;line-height:20px;}

/* Settings actions use the same height and selection surface as the dashboard. */
:root{--settings-control-height:34px;--settings-control-selection:linear-gradient(#efefef,#dbdbdb 52%,#c9c9c9)}
button{min-height:var(--settings-control-height)}
.switch{padding:3px 5px;border:1px solid #747276;border-radius:14px}
.switch button{border-color:transparent;background:transparent}
.switch button[aria-pressed=true],html[data-theme=light] .switch button[aria-pressed=true]{
  background:var(--settings-control-selection);color:#181818;border-color:transparent
}
@media(max-width:1100px){:root{--settings-control-height:44px}}
