/* «Тонкий» стиль в духе Figma: Inter (переменный), мелкий кегль, лёгкие веса, плотные контролы, тонкие линии. */
@import url("/static/css/fonts.css");
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/inter-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px; --radius-sm: 6px;
  --shadow: 0 0 0 .5px rgba(22, 26, 43, .06), 0 2px 10px rgba(22, 26, 43, .07);
  --border: #e5e7ee;
  --text: #1b1f2e; --text-2: #4f566f; --muted: #858ca5;
  --accent: #2f5fd0; --accent-2: #2f5fd0; --accent-soft: #e9effc;
  --bg: #f6f7f9; --surface-2: #f1f3f6; --surface-3: #e7eaef; --text-2: #4a5263; --muted: #7d8494; --border: #e3e6ec;
}
:root[data-theme="dark"] { --bg: #121417; --surface: #1a1d22; --surface-2: #22262c; --surface-3: #2b3038; --text: #e9ebef; --text-2: #b4bac5; --muted: #858c99; --border: #2d323a;
  --accent: #7ea2ff; --accent-2: #7ea2ff; --accent-soft: #1f2a44; --accent-text: #0d1220; --shadow: 0 0 0 .5px rgba(255,255,255,.05), 0 2px 12px rgba(0,0,0,.45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #121417; --surface: #1a1d22; --surface-2: #22262c; --surface-3: #2b3038; --text: #e9ebef; --text-2: #b4bac5; --muted: #858c99; --border: #2d323a;
  --accent: #7ea2ff; --accent-2: #7ea2ff; --accent-soft: #1f2a44; --accent-text: #0d1220; --shadow: 0 0 0 .5px rgba(255,255,255,.05), 0 2px 12px rgba(0,0,0,.45); } }

body { font: 400 13px/1.5 var(--font); font-feature-settings: "cv11", "ss01"; letter-spacing: -.003em; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.012em; }
b, strong { font-weight: 600; }
.small { font-size: 12px; }

/* кнопки и поля */
.btn { height: 28px; padding: 0 10px; border-radius: 6px; font: 450 12px var(--font); gap: 6px; border-color: var(--border); box-shadow: none; }
.btn-lg { height: 40px; font-size: 14px; border-radius: 8px; padding: 0 20px; }
.btn-sm { height: 24px; padding: 0 8px; font-size: 11.5px; border-radius: 5px; }
.btn-icon { width: 28px; height: 28px; padding: 0; border-radius: 6px; }
.btn-primary { font-weight: 500; }
.btn svg { stroke-width: 1.6; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=tel], input[type=date], select, textarea { height: 28px; padding: 0 8px; border-radius: 6px; font: 400 12px var(--font); }
textarea { padding: 6px 8px; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 2px var(--accent-soft); }
label.field { font-size: 12px; font-weight: 500; margin-bottom: 10px; }
.card { border-radius: 8px; }
.chip, .tag { font-weight: 450; }

/* шапка приложения */
.app-header { height: 46px; padding: 0 16px; gap: 16px; }
.brand { gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -.015em; }
.brand svg { flex: none; }
.app-nav { gap: 2px; margin-left: 8px; }
.app-nav a { padding: 0 10px; height: 28px; font: 450 12.5px var(--font); color: var(--text-2); border-radius: 6px; position: relative; }
.app-nav a svg { opacity: .6; width: 14px; height: 14px; }
.app-nav a:hover { background: var(--surface-2); }
.app-nav a.on { background: transparent; color: var(--text); font-weight: 550; }
.app-nav a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -9px; height: 2px; background: var(--text); border-radius: 2px; }
.avatar { width: 26px; height: 26px; font-size: 11px; font-weight: 600; }
.app-main .page-head h1 { font-size: 20px; font-weight: 600; }
.dash-section h2, .section-head h2 { font-size: 14px; font-weight: 600; }

/* редактор */
.ed-top { height: 40px; padding: 0 8px; gap: 8px; }
.proj-name { font: 550 12.5px var(--font); }
.status { font-size: 11px; }
.ed-top-end { gap: 4px; }
.ed-top-end .btn-sm { height: 26px; }
.tabs button { padding: 8px 6px; font: 450 11.5px var(--font); gap: 5px; }
.tabs button svg { width: 13px; height: 13px; }
.panel-title { padding: 10px 14px; font: 600 11.5px var(--font); }
.layer { height: 26px; }
.layer-name { font-size: 12px; }
.psec { padding: 10px 14px; gap: 8px; }
.psec h4 { font: 550 10.5px var(--font); letter-spacing: .06em; }
.nf span, .sf span, .cfield > span { font-size: 10.5px; color: var(--muted); font-weight: 450; }
.nf input, .sf select { height: 26px; font-size: 12px; padding: 0 6px; border-radius: 5px; }
.cf { font-size: 12px; }
.toolrail { padding: 3px; border-radius: 8px; gap: 1px; }
.tool { width: 30px; height: 30px; border-radius: 6px; }
.tool svg { stroke-width: 1.5; }
.gl-bar { border-radius: 8px; padding: 4px 6px; }
.gl-mi, .menu button, .ctx button { font-weight: 400; }

/* галерея и публичные страницы */
.site-header .bar { height: 52px; }
.site-header .nav a { font: 450 13px var(--font); }
h1 { font-weight: 650; }
.lead { font-weight: 400; }
[hidden] { display: none !important; }

/* пять вкладок слева: у неактивных — только значок (подпись во всплывающей подсказке), у активной — значок и подпись */
.ed-left .tabs button { flex: none; min-width: 34px; padding: 9px 8px; gap: 6px; white-space: nowrap; font-size: 11.5px; }
.ed-left .tabs button.on { flex: 1; }
.ed-left .tabs button:not(.on) span { display: none; }
.ed-left .tabs button svg { display: block; flex: none; }
