:root { --yellow:#e8eb00; --black:#101113; --panel:#fff; --bg:#f1f1ed; --line:#deded8; --muted:#707279; }
* { box-sizing:border-box; }
body { margin:0; color:var(--black); background:var(--bg); font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,input,textarea,select { font:inherit; }
a { color:inherit; text-decoration:none; }
.admin-sidebar { position:fixed; inset:0 auto 0 0; z-index:10; width:240px; padding:26px 18px; display:flex; flex-direction:column; color:white; background:var(--black); }
.admin-brand { padding:0 10px 28px; font-size:28px; font-weight:950; }
.admin-brand span { color:var(--yellow); }
.admin-brand small { margin-top:4px; display:block; color:#75777e; font-size:9px; letter-spacing:.18em; }
.admin-sidebar nav { display:grid; gap:5px; }
.admin-sidebar nav a { padding:12px; color:#afb1b7; border-radius:10px; font-size:14px; font-weight:700; }
.admin-sidebar nav a:hover { color:white; background:#232429; }
.admin-sidebar nav a.active { color:var(--black); background:var(--yellow); }
.admin-sidebar > form { margin-top:auto; }
.admin-sidebar > form button { width:100%; padding:11px; color:#aaa; background:transparent; border:1px solid #36383d; border-radius:10px; cursor:pointer; }
.admin-main { min-height:100vh; margin-left:240px; padding:0 34px 50px; }
.admin-topbar { min-height:88px; display:flex; align-items:center; gap:12px; }
.admin-topbar h1 { margin:0; font-size:32px; letter-spacing:-.04em; }
.mobile-menu { display:none; }
.stats-grid { margin-bottom:20px; display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.stats-grid article { min-height:145px; padding:24px; display:flex; flex-direction:column; justify-content:space-between; background:var(--panel); border:1px solid var(--line); border-radius:18px; }
.stats-grid span { color:var(--muted); font-size:13px; font-weight:800; text-transform:uppercase; }
.stats-grid strong { font-size:52px; line-height:1; }
.phone-click-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.admin-panel { margin-bottom:20px; padding:24px; background:var(--panel); border:1px solid var(--line); border-radius:18px; }
.narrow-panel { max-width:850px; }
.panel-head { margin-bottom:20px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.panel-head h2 { margin:0 0 4px; font-size:23px; }
.panel-head p { margin:0; color:var(--muted); font-size:13px; }
.panel-head-actions { display:flex; align-items:center; justify-content:flex-end; gap:9px; flex-wrap:wrap; }
.admin-button { min-height:42px; padding:0 17px; display:inline-flex; align-items:center; justify-content:center; color:var(--black); background:var(--yellow); border:0; border-radius:11px; font-weight:900; cursor:pointer; }
.admin-button.secondary { color:white; background:var(--black); }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th { padding:12px; color:var(--muted); text-align:left; border-bottom:1px solid var(--line); font-size:11px; text-transform:uppercase; }
td { padding:14px 12px; border-bottom:1px solid #ecece7; vertical-align:middle; }
td small { margin-top:4px; display:block; color:var(--muted); }
.empty-cell { padding:35px; color:var(--muted); text-align:center; }
.status { padding:6px 9px; display:inline-flex; border-radius:999px; font-size:11px; font-weight:900; white-space:nowrap; }
.status-new { color:#7a5400; background:#fff1bd; }
.status-accepted { color:#174e8a; background:#dfefff; }
.status-in_progress { color:#6b4300; background:#ffe6bc; }
.status-completed { color:#17602d; background:#dcf4e3; }
.status-cancelled { color:#7c3030; background:#f8dddd; }
.filter-row { margin-bottom:18px; display:flex; gap:8px; overflow-x:auto; }
.filter-chip { padding:9px 14px; flex:0 0 auto; background:white; border:1px solid var(--line); border-radius:999px; font-size:13px; font-weight:800; }
.filter-chip.active { color:white; background:var(--black); border-color:var(--black); }
.order-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.order-card { padding:22px; background:white; border:1px solid var(--line); border-radius:18px; }
.order-card-head { display:flex; align-items:start; justify-content:space-between; gap:14px; }
.order-card-head span:first-child { color:var(--muted); font-size:11px; text-transform:uppercase; }
.order-card h2 { margin:4px 0 0; font-size:25px; }
.order-card dl { margin:20px 0; display:grid; gap:12px; }
.order-card dl div { display:grid; grid-template-columns:135px 1fr; gap:15px; }
.order-card dt { color:var(--muted); font-size:12px; }
.order-card dd { margin:0; font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.order-total { color:var(--black); font-size:clamp(26px,4vw,42px); line-height:1; white-space:nowrap; }
.status-form { display:flex; gap:8px; }
.status-form select { flex:1; }
.form-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; }
.form-grid .wide { grid-column:span 2; }
label { display:grid; gap:6px; color:#4f5157; font-size:12px; font-weight:800; }
label small { color:var(--muted); font-weight:500; line-height:1.4; overflow-wrap:anywhere; }
input,textarea,select { width:100%; padding:11px 12px; color:var(--black); background:#f6f6f2; border:1px solid #dcdcd6; border-radius:10px; outline:none; }
input[type="color"] { min-height:48px; padding:5px; cursor:pointer; }
textarea { resize:vertical; line-height:1.5; }
input:focus,textarea:focus,select:focus { border-color:#9b9e00; box-shadow:0 0 0 3px rgba(232,235,0,.22); }
.checkbox { display:flex; align-items:center; gap:8px; }
.checkbox input { width:auto; }
.inline-form { display:flex; align-items:end; gap:8px; flex-wrap:wrap; }
.inline-form input { width:auto; flex:1 1 160px; }
.chip-list { margin-top:15px; display:flex; flex-wrap:wrap; gap:7px; }
.chip-list > span { padding:8px 10px; background:#f1f1ed; border-radius:9px; font-size:12px; }
.chip-list small { color:var(--muted); }
.product-admin-list { display:grid; gap:9px; }
.product-admin-item { border:1px solid var(--line); border-radius:13px; overflow:hidden; }
.product-admin-item summary { padding:11px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; cursor:pointer; list-style:none; }
.product-admin-item summary::-webkit-details-marker { display:none; }
.product-admin-item summary > div:nth-child(2) { display:flex; flex-direction:column; gap:4px; }
.product-admin-item summary small { color:var(--muted); }
.product-thumb { width:54px; height:54px; display:grid; place-items:center; overflow:hidden; background:#efefe9; border-radius:10px; }
.product-thumb img { width:100%; height:100%; object-fit:cover; }
.product-admin-item[open] summary { border-bottom:1px solid var(--line); }
.product-admin-item .form-grid { padding:16px; }
.danger-form { padding:0 16px 16px; text-align:right; }
.danger-form button { padding:8px 12px; color:#8a2c2c; background:#f9e5e5; border:0; border-radius:9px; cursor:pointer; }
.two-column { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.two-column .admin-panel { margin-bottom:0; }
.admin-panel hr { margin:24px 0; border:0; border-top:1px solid var(--line); }
.operator-list { display:grid; gap:8px; }
.operator-list article { padding:12px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:#f5f5f1; border-radius:11px; }
.operator-list article > div { display:flex; flex-direction:column; gap:4px; }
.operator-list small,.muted { color:var(--muted); }
.small-button { padding:7px 10px; background:white; border:1px solid var(--line); border-radius:8px; cursor:pointer; }
.settings-form { display:grid; gap:14px; }
.settings-status { margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.settings-status div { padding:13px; display:grid; gap:5px; background:#f6f6f1; border-radius:11px; }
.settings-status dt { color:var(--muted); font-size:11px; font-weight:900; text-transform:uppercase; }
.settings-status dd { margin:0; font-size:13px; font-weight:800; overflow-wrap:anywhere; }
.settings-status a { text-decoration:underline; text-underline-offset:3px; }
.guide-list { margin:0; padding-left:24px; display:grid; gap:12px; color:#4f5157; line-height:1.55; }
.guide-list li::marker { color:#919400; font-weight:950; }
.guide-list code { padding:2px 5px; color:var(--black); background:#efefe8; border-radius:5px; }
.bot-message-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.75fr); gap:22px; align-items:start; }
.bot-message-preview { padding:18px; color:white; background:#18222d; border-radius:16px; }
.bot-message-preview > small { display:block; margin-bottom:12px; color:#91a0ad; font-weight:800; text-transform:uppercase; }
.bot-message-bubble { padding:13px 15px; color:#f7f8f9; background:#2b5278; border-radius:15px 15px 4px 15px; font-size:14px; line-height:1.55; white-space:pre-line; }
.bot-data-notice { margin-top:8px; color:#cbd9e4; background:#253746; font-size:12px; }
.bot-keyboard-preview { margin-top:8px; display:grid; gap:5px; }
.bot-keyboard-preview span { padding:9px 11px; color:#d7e6f1; background:#253746; border-radius:8px; text-align:center; font-size:12px; font-weight:800; }
.bot-message-preview p { margin:14px 0 0; color:#aebbc5; font-size:12px; line-height:1.5; }
.bot-message-preview strong { color:white; }
.settings-sections { gap:0; }
.fieldset-grid { margin:0; padding:14px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; border:1px solid var(--line); border-radius:12px; }
.fieldset-grid legend { padding:0 7px; color:var(--black); font-size:13px; font-weight:900; }
.fieldset-grid .wide { grid-column:1 / -1; }
.admin-create-box { padding:0; overflow:hidden; }
.admin-create-box > summary { padding:16px 18px; color:var(--black); background:#f6f6f1; font-size:14px; font-weight:900; cursor:pointer; }
.admin-create-box[open] > summary { border-bottom:1px solid var(--line); }
.admin-create-box > form { padding:18px; }
.compact-list { margin-top:16px; }
.item-actions { padding:0 16px 16px; display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.item-actions form { margin:0; }
.danger-button { padding:8px 12px; color:#8a2c2c; background:#f9e5e5; border:0; border-radius:9px; cursor:pointer; }
.small-button { display:inline-flex; align-items:center; justify-content:center; color:var(--black); }
.small-button:disabled { opacity:.38; cursor:not-allowed; }
.sticky-save { position:sticky; z-index:4; bottom:14px; margin:0 0 20px; padding:13px 16px; display:flex; align-items:center; gap:15px; background:rgba(16,17,19,.96); border-radius:14px; box-shadow:0 14px 40px rgba(0,0,0,.24); }
.sticky-save span { color:#b9bbc0; font-size:12px; }
.theme-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.theme-grid label { padding:14px; grid-template-columns:1fr auto; align-items:center; background:#f6f6f1; border-radius:12px; }
.theme-grid input[type="color"] { grid-column:1 / -1; height:54px; padding:4px; background:var(--selected-color); }
.theme-grid code { color:var(--muted); }
.range-label { margin-top:18px; }
.range-label input { padding:0; accent-color:#aeb000; }
.page-tabs { margin-bottom:18px; display:flex; gap:8px; overflow-x:auto; }
.page-kind,.block-order { width:54px; height:54px; display:grid; place-items:center; color:var(--black); background:var(--yellow); border-radius:10px; font-size:11px; font-weight:950; }
.content-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.content-intro h2 { margin:10px 0 3px; }
.content-intro p { margin:0; color:var(--muted); }
.block-admin-list { display:grid; gap:10px; }
.block-fields { grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; padding:15px; background:#f6f6f1; border:1px solid var(--line); border-radius:12px; }
.block-fields[hidden] { display:none; }
.block-fields .wide { grid-column:1 / -1; }
.style-fields { grid-column:1 / -1; }
.block-actions { padding-top:14px; border-top:1px solid var(--line); }
.error-panel h2 { margin-top:0; }
.error-panel p { margin:10px 0 22px; color:#7c2e2e; line-height:1.6; }
.alert { margin-bottom:18px; padding:15px; border-radius:12px; line-height:1.5; overflow-wrap:anywhere; }
.alert.error { color:#7c2e2e; background:#f8dfdf; }
.alert.success { color:#315d1d; background:#e5f4dd; }
.alert code { font-size:12px; }
.login-page { min-height:100vh; display:grid; place-items:center; padding:20px; background:var(--black); }
.login-card { width:min(410px,100%); padding:34px; background:white; border-radius:20px; box-shadow:0 25px 70px rgba(0,0,0,.35); }
.login-brand { font-size:38px; font-weight:950; }
.login-brand span { color:#bfc200; }
.login-card > p { margin:2px 0 24px; color:var(--muted); }
.login-card form { display:grid; gap:14px; }
.seo-example-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.seo-example-grid article { padding:16px; display:grid; gap:7px; background:#f6f6f1; border:1px solid var(--line); border-radius:13px; }
.seo-example-grid article.wide { grid-column:1 / -1; }
.seo-example-grid small { color:var(--muted); font-size:11px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.seo-example-grid strong { line-height:1.45; overflow-wrap:anywhere; }
.seo-example-grid p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.seo-template-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.seo-template-confirm { padding:12px; color:#704c00; background:#fff7d6; border:1px solid #f0df9a; border-radius:10px; }
.seo-template-help { margin-top:20px; padding:14px 16px; background:#f6f6f1; border-radius:12px; }
.seo-template-help summary { font-size:13px; font-weight:900; cursor:pointer; }
.seo-template-help code { color:var(--black); font-weight:900; }
.seo-template-preview { margin-top:16px; }
.admin-checklist { margin:0; padding-left:22px; display:grid; gap:11px; color:#4f5157; line-height:1.55; }
.admin-checklist strong { color:var(--black); }
.admin-checklist.numbered li::marker { color:#919400; font-weight:950; }
.danger-list li::marker { color:#a84343; }
.seo-guide-columns { margin-bottom:20px; }
.seo-roadmap { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.seo-roadmap article { padding:15px; display:grid; grid-template-columns:42px 1fr; gap:12px; background:#f6f6f1; border-radius:12px; }
.seo-roadmap b { width:42px; height:42px; display:grid; place-items:center; color:var(--black); background:var(--yellow); border-radius:10px; }
.seo-roadmap strong { display:block; margin:2px 0 5px; }
.seo-roadmap p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.seo-links { padding:0; justify-content:flex-start; }
.hydra-notice-grid { gap:10px; }
.hydra-notice-grid > div { padding:15px; background:#f6f6f1; border-radius:12px; }
.hydra-notice-grid strong { display:block; margin-bottom:7px; }
.hydra-notice-grid p { margin:0; color:var(--muted); font-size:12px; line-height:1.55; }
.operator-stats .stats-word { font-size:34px; }
.webhook-field { margin-top:18px; }
.webhook-field input { font-family:monospace; font-size:11px; }
.compact-guide { font-size:13px; }
.operator-admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.operator-admin-card { overflow:hidden; background:#f8f8f4; border:1px solid var(--line); border-radius:15px; }
.operator-admin-card--disabled { opacity:.62; }
.operator-admin-card > header { padding:16px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); }
.operator-admin-card > header > div { display:grid; gap:4px; }
.operator-admin-card > header small { color:var(--muted); }
.operator-edit-form { padding:16px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.operator-card-actions { display:flex; justify-content:flex-end; }
.operator-admin-card > footer { padding:14px 16px; display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; background:white; border-top:1px solid var(--line); }
.operator-admin-card > footer > div { margin-right:auto; display:grid; gap:3px; }
.operator-admin-card > footer > div small { color:var(--muted); }
.operator-admin-card > footer > div strong { font-size:12px; }
.operator-admin-card form { margin:0; }
.bot-user-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.bot-users-secondary { margin-bottom:20px; }
.bot-users-secondary .chip-list > span { display:grid; gap:4px; }
.city-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
.city-warning { margin:18px 0 0; padding:12px 14px; background:#fff5cf; border-radius:10px; line-height:1.5; }
.city-admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.city-admin-card { overflow:hidden; background:#f8f8f4; border:1px solid var(--line); border-radius:15px; }
.city-admin-card--draft { background:#f3f3ef; }
.city-admin-card > header { padding:16px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); }
.city-admin-card > header > div:first-child { display:grid; gap:4px; }
.city-admin-card > header strong { font-size:18px; }
.city-admin-card > header small { color:var(--muted); }
.city-statuses { display:flex; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.city-edit-form { padding:16px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.city-card-save { display:flex; justify-content:flex-end; }
.city-region-editor { border-top:1px solid var(--line); background:#fff; }
.city-region-editor > summary { padding:14px 16px; cursor:pointer; font-size:13px; font-weight:900; list-style:none; }
.city-region-editor > summary::-webkit-details-marker { display:none; }
.city-region-editor > summary::after { content:'＋'; float:right; color:var(--muted); }
.city-region-editor[open] > summary { border-bottom:1px solid var(--line); }
.city-region-editor[open] > summary::after { content:'−'; }
.city-region-form { padding:16px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.city-region-form .wide { grid-column:1 / -1; }
.city-region-help { margin:0; padding:11px 12px; background:#f6f6f1; border-radius:10px; line-height:1.5; }
.city-admin-card > footer { padding:14px 16px; display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; background:white; border-top:1px solid var(--line); }
.city-admin-card > footer form { margin:0; }

@media (max-width:1000px) {
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .order-list,.two-column,.operator-admin-grid,.city-admin-grid { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:repeat(2,1fr); }
  .bot-message-grid { grid-template-columns:1fr; }
}
@media (max-width:720px) {
  .admin-sidebar { transform:translateX(-105%); transition:transform .2s; box-shadow:20px 0 50px rgba(0,0,0,.3); }
  .menu-open .admin-sidebar { transform:translateX(0); }
  .admin-main { margin-left:0; padding:0 12px 35px; }
  .admin-topbar { min-height:70px; }
  .admin-topbar h1 { font-size:25px; }
  .mobile-menu { display:block; width:38px; height:38px; background:white; border:1px solid var(--line); border-radius:9px; }
  .stats-grid { gap:8px; }
  .stats-grid article { min-height:115px; padding:17px; }
  .stats-grid strong { font-size:39px; }
  .admin-panel { padding:15px; }
  .form-grid { grid-template-columns:1fr; }
  .form-grid .wide { grid-column:auto; }
  .fieldset-grid,.theme-grid,.block-fields { grid-template-columns:1fr; }
  .fieldset-grid .wide,.block-fields .wide { grid-column:auto; }
  .content-intro,.sticky-save { align-items:stretch; flex-direction:column; }
  .order-card dl div { grid-template-columns:1fr; gap:3px; }
  .status-form { flex-direction:column; }
  .settings-status { grid-template-columns:1fr; }
  .panel-head { align-items:flex-start; }
  .order-total { font-size:28px; }
  .product-admin-item summary { grid-template-columns:auto 1fr; }
  .product-admin-item summary > .status { display:none; }
  .seo-example-grid,.seo-roadmap { grid-template-columns:1fr; }
  .seo-example-grid article.wide { grid-column:auto; }
  .seo-template-actions { align-items:stretch; flex-direction:column; }
}
