/* Панель управления магазином. Цвета магазина (--accent, --sidebar) переопределяет /brand/theme.css. */
:root{--bg:#f4f6f9;--card:#fff;--text:#1d2129;--muted:#667085;--line:#e4e7ec;--accent:#1f6feb;--on-accent:#fff;--accent-text:#1d69df;--sidebar:#1d2129;
  --err:#b42318;--warn:#b54708;--side-w:240px;--radius:12px;
  --shadow:0 1px 2px rgba(16,24,40,.05),0 1px 3px rgba(16,24,40,.06)}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:15px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--text)}
a{color:var(--accent-text)}
:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}

/* ---- каркас: меню слева + рабочая область ---- */
.app{display:flex;min-height:100vh}
.content{flex:1;min-width:0}
.content main{max-width:1040px;margin:0 auto;padding:32px 36px 56px}
.plain main{max-width:960px;margin:0 auto;padding:16px}

.side{width:var(--side-w);flex:none;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;
  background:var(--sidebar);color:#cdd3dd}
.side :focus-visible{outline-color:#fff}
.brand{display:flex;flex-direction:column;gap:6px;padding:22px 20px 18px;color:#fff;text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.09)}
.brand img{display:block;max-width:100%;max-height:44px;width:auto;height:auto}
.brand-name{font-size:19px;font-weight:650;letter-spacing:.2px;line-height:1.25;overflow-wrap:anywhere}
.brand-sub{font-size:12px;color:#9aa3b2;letter-spacing:.3px}

.side nav{flex:1;overflow-y:auto;padding:14px 10px}
.nav{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.item{display:flex;align-items:center;gap:10px;padding:10px;border-radius:9px;color:#cdd3dd;text-decoration:none;
  font-size:14px;line-height:1.3}
.item .t{flex:1;min-width:0}
a.item:hover{background:rgba(255,255,255,.08);color:#fff}
a.item[aria-current="page"]{background:var(--accent);color:var(--on-accent);font-weight:600}
.item.soon{color:#8b94a5;cursor:default}
.ico{flex:none;width:20px;height:20px}
.badge{flex:none;font-size:10px;line-height:1;padding:3px 6px;border-radius:999px;border:1px solid currentColor;
  color:#8b94a5;letter-spacing:.2px}

.me{padding:14px 16px 16px;border-top:1px solid rgba(255,255,255,.09)}
.who{display:flex;flex-direction:column;margin-bottom:10px;min-width:0}
.who .mail{color:#fff;font-size:13.5px;overflow-wrap:anywhere}
.who .role{color:#9aa3b2;font-size:12.5px}
.me button.ghost{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border-radius:9px;
  background:rgba(255,255,255,.08);color:#e6e9ef}
.me button.ghost:hover{background:rgba(255,255,255,.15);color:#fff}

/* телефонная полоса и «бургер»: на широком экране скрыты */
.nav-toggle{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.mobilebar,.scrim{display:none}

/* ---- содержимое ---- */
h1{font-size:24px;line-height:1.25;margin:0 0 6px;letter-spacing:-.2px}
h2{font-size:18px;margin:28px 0 10px}
.lead{margin:0 0 24px;color:var(--muted)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.narrow{max-width:400px;margin:48px auto}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.tile{display:block;position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:18px 18px 16px;color:var(--text);text-decoration:none;box-shadow:var(--shadow)}
.tile .ico{width:24px;height:24px;color:var(--accent-text);margin-bottom:10px}
.tile b{display:block;font-size:16px}
.tile p{margin:4px 0 0;color:var(--muted);font-size:14px}
a.tile:hover{border-color:var(--accent-text)}
.tile.soon{background:transparent;box-shadow:none;border-style:dashed}
.tile.soon .ico,.tile.soon b{color:#98a2b3}
.tile .badge{position:absolute;top:16px;right:16px;color:var(--muted)}

label{display:block;margin:12px 0;font-size:14px;color:var(--muted)}
input,select{display:block;width:100%;margin-top:4px;padding:10px 12px;border:1px solid #d0d5dd;border-radius:9px;
  font:inherit;color:var(--text);background:#fff}
input:focus-visible,select:focus-visible{outline-offset:0;border-color:var(--accent-text)}
button{padding:10px 16px;border:0;border-radius:9px;background:var(--accent);color:var(--on-accent);font:inherit;cursor:pointer}
button:hover{filter:brightness(1.08)}
.link{background:none;color:var(--accent-text);padding:0}
.link:hover{filter:none;text-decoration:underline}
.ok{color:#067647}.error{color:var(--err)}.warn{color:var(--warn)}.note{color:var(--muted)}
.kv{width:100%;border-collapse:separate;border-spacing:0;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.kv th,.kv td{padding:12px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.kv tr:last-child th,.kv tr:last-child td{border-bottom:0}
.kv th{width:38%;font-weight:500;color:var(--muted)}
.kv th,.kv td{overflow-wrap:anywhere}   /* длинные ссылки и почты переносятся, обычные слова — нет */
.temp{background:#fffbea;border:1px solid #f5d77a;border-radius:var(--radius);padding:14px;margin:12px 0}
.temp code{font-size:17px;overflow-wrap:anywhere}

/* ---- телефон и узкий планшет: меню выезжает по «бургеру» (чистый CSS) ---- */
@media (max-width:899px){
  .app{display:block}
  .mobilebar{display:flex;position:sticky;top:0;z-index:20;align-items:center;justify-content:space-between;gap:12px;
    height:56px;padding:0 12px 0 16px;background:var(--sidebar);color:#fff}
  .mobilebar .brand{flex-direction:row;padding:0;border:0;min-width:0}
  .mobilebar .brand img{max-height:32px}
  .mobilebar .brand-name{font-size:17px}
  .burger{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:9px;cursor:pointer;color:#fff}
  .burger:hover{background:rgba(255,255,255,.1)}
  .burger .ico{width:24px;height:24px}
  .nav-toggle:focus-visible ~ .mobilebar .burger{outline:2px solid #fff;outline-offset:-2px}
  .side{position:fixed;left:0;top:0;bottom:0;z-index:40;height:auto;max-width:86vw;transform:translateX(-105%);
    visibility:hidden;transition:transform .2s ease,visibility 0s linear .2s}
  .nav-toggle:checked ~ .side{transform:none;visibility:visible;transition:transform .2s ease}
  .scrim{position:fixed;inset:0;z-index:30;background:rgba(16,24,40,.5);opacity:0;pointer-events:none;
    transition:opacity .2s ease}
  .nav-toggle:checked ~ .scrim{display:block;opacity:1;pointer-events:auto}
  .content main{padding:20px 16px 40px}
  .narrow{margin:24px auto}
  h1{font-size:21px}
  .kv th{width:42%}
  .kv th,.kv td{padding:10px 12px}
  .tiles{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.side,.scrim{transition:none}}
