/* Bee Growth – admin arayüzü */
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --line: #e6e3dc;
  --line-strong: #d6d2c8;
  --text: #19191c;
  --muted: #6e6c74;
  --faint: #9b98a0;
  --accent: #c8901a;
  --accent-soft: #f6ecd6;
  --ok: #2f7a55; --ok-soft: #e4f1ea;
  --info: #2c5d8f; --info-soft: #e5eef7;
  --warn: #9a6a0d; --warn-soft: #f8efd9;
  --prog: #5a4bb0; --prog-soft: #ecebf8;
  --err: #a8372f; --err-soft: #f7e5e3;
  --radius: 6px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
}
html, body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14.5px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
.small-caps { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 18px 18px; border-right: 1px solid var(--line); background: var(--surface-2); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 8px 26px; }
.brand-mark { width: 22px; height: 22px; background: var(--text); clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; background: var(--accent); clip-path: inherit; }
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius); text-decoration: none; color: var(--muted); font-weight: 500; }
.side-nav a:hover { background: #efede7; color: var(--text); }
.side-nav a.is-active { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.ico { width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--i) center/contain no-repeat; mask: var(--i) center/contain no-repeat; flex: none; }
.ico-grid { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 1h6v6H1zM9 1h6v6H9zM1 9h6v6H1zM9 9h6v6H9z' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E"); }
.ico-people { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6' cy='5' r='3' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M1 15c0-3 2.2-5 5-5s5 2 5 5M11 2.5a3 3 0 0 1 0 5.5M13 10c1.3.8 2 2.6 2 5' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E"); }
.ico-window { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='2' width='14' height='12' rx='1' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M1 5.5h14' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E"); }
.ico-gear { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='2.5' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M8 1v2.2M8 12.8V15M1 8h2.2M12.8 8H15M3 3l1.6 1.6M11.4 11.4 13 13M3 13l1.6-1.6M11.4 4.6 13 3' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E"); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 12px 8px 0; border-top: 1px solid var(--line); }
.env-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.env-dot.on { background: var(--ok); }
.env-dot.mock { background: var(--accent); }
.link-btn { background: none; border: 0; color: var(--muted); padding: 0; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.main { padding: 34px 44px 80px; max-width: 1480px; width: 100%; }

/* ---------- Page head ---------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -.015em; margin: 0; line-height: 1.1; }
.page-head .sub { color: var(--muted); margin-top: 6px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { font-size: 12.5px; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 8px; }
.crumb:hover { color: var(--text); }
h2.section-title { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 34px 0 12px; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius); font-weight: 600; font-size: 13.5px; padding: 8px 14px; }
.btn-dark { background: var(--text); border-color: var(--text); }
.btn-dark:hover { background: #000; }
.btn-light { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); }
.btn-light:hover { background: var(--surface-2); border-color: #c5c0b4; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #b17e12; color: #fff; }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: #efede7; }
.btn-danger-soft { background: var(--err-soft); color: var(--err); border: 1px solid #ebcdc9; }
.btn-danger-soft:hover { background: #f2d6d2; color: var(--err); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn:disabled, .btn.disabled { opacity: .45; }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.panel-pad { padding: 20px 22px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 14.5px; font-weight: 700; margin: 0; }
.panel-head .actions { margin-left: auto; display: flex; gap: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.stat { padding: 18px 20px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: -1px; }
.stat:nth-child(6n) { border-right: 0; }
.stat .v { font-family: var(--serif); font-size: 32px; line-height: 1; letter-spacing: -.02em; margin-top: 10px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .h { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.stat.alert .v { color: var(--err); }
.stat.accent .v { color: var(--accent); }

/* ---------- Badges ---------- */
.badge-s { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: #efede8; color: #55535b; }
.badge-s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-s.success { background: var(--ok-soft); color: var(--ok); }
.badge-s.info { background: var(--info-soft); color: var(--info); }
.badge-s.warning { background: var(--warn-soft); color: var(--warn); }
.badge-s.progress { background: var(--prog-soft); color: var(--prog); }
.badge-s.progress::before { animation: pulse 1.2s ease-in-out infinite; }
.badge-s.danger { background: var(--err-soft); color: var(--err); }
.badge-s.muted { background: #f0efec; color: var(--faint); }
.tag { display: inline-block; padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tag.mock { border-color: #e6c77f; color: var(--warn); background: var(--accent-soft); }
.score { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--serif); font-size: 20px; }
.score small { font-family: var(--font); font-size: 11px; color: var(--faint); }
.score.success { color: var(--ok); } .score.info { color: var(--info); } .score.warning { color: var(--warn); } .score.danger { color: var(--err); } .score.neutral { color: var(--faint); }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fcfbf8; }
.tbl .name { font-weight: 600; text-decoration: none; }
.tbl .name:hover { text-decoration: underline; text-underline-offset: 3px; }
.tbl-wrap { overflow-x: auto; }
.empty { padding: 40px 22px; text-align: center; color: var(--muted); }

/* ---------- Filters / forms ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters .form-select, .filters .form-control { width: auto; min-width: 150px; }
.form-control, .form-select { border-radius: var(--radius); border-color: var(--line-strong); font-size: 14px; padding: 8px 11px; background-color: var(--surface); }
.form-control:focus, .form-select:focus { border-color: #b8b2a5; box-shadow: 0 0 0 3px rgba(200, 144, 26, .15); }
.form-control-sm, .form-select-sm { padding: 5px 9px; font-size: 13px; }
.form-label { font-weight: 600; font-size: 12.5px; color: #3d3c42; margin-bottom: 5px; }
.form-text { font-size: 12px; color: var(--faint); }
.form-error ul { margin: 0 0 14px; padding: 10px 14px 10px 30px; background: var(--err-soft); color: var(--err); border-radius: var(--radius); }
.form-error:empty, .validation-summary-valid { display: none; }
.field-validation-error { color: var(--err); font-size: 12px; }
.form-section { padding: 22px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section h4 { font-size: 13px; font-weight: 700; margin: 0 0 14px; }
.form-check-input:checked { background-color: var(--text); border-color: var(--text); }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; }

/* ---------- Flash ---------- */
.flash { padding: 11px 16px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-err { background: var(--err-soft); color: var(--err); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a, .tabs button { background: none; border: 0; padding: 10px 14px; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 13.5px; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .is-active { color: var(--text); border-bottom-color: var(--text); }
.tab-pane { display: none; }
.tab-pane.is-active { display: block; }

/* ---------- Demo cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.demo-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.thumb { aspect-ratio: 16 / 10; background: #ebe8e1; overflow: hidden; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 12px; }
.thumb .badge-s { position: absolute; left: 10px; top: 10px; }
.demo-card .body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.demo-card .title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.demo-card .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }

/* ---------- Detail ---------- */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 9px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; word-break: break-word; }
.preview-frame { display: flex; gap: 20px; align-items: flex-start; }
.device { border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; overflow: hidden; }
.device-bar { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.device-bar i { width: 7px; height: 7px; border-radius: 50%; background: #dcd8cf; }
.device-desktop { flex: 1; min-width: 0; }
.device-desktop .viewport { width: 100%; aspect-ratio: 1440 / 900; position: relative; overflow: hidden; }
.device-desktop iframe { width: 1440px; height: 900px; border: 0; transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.device-mobile { width: 260px; flex: none; border-radius: 22px; padding: 8px; background: #1b1b1e; }
.device-mobile .viewport { width: 244px; height: 528px; position: relative; overflow: hidden; border-radius: 15px; background: #fff; }
.device-mobile iframe { width: 390px; height: 844px; border: 0; transform: scale(.6256); transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.shots a { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-decoration: none; background: var(--surface); }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; display: block; }
.shots span { display: block; font-size: 11.5px; padding: 6px 8px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: grid; gap: 6px; font-size: 11.5px; color: var(--muted); }
.swatch i { width: 74px; height: 52px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); display: block; }
.prose-pre { white-space: pre-wrap; font-size: 13px; line-height: 1.6; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; max-height: 520px; overflow: auto; }
.score-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.score-cell { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.score-cell .k { font-size: 11.5px; color: var(--muted); }
.bar { height: 4px; background: #eeebe5; border-radius: 2px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--text); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.checks li:last-child { border-bottom: 0; }
.checks .st { width: 16px; height: 16px; border-radius: 50%; margin-top: 2px; }
.checks .pass .st { background: var(--ok-soft); box-shadow: inset 0 0 0 4px var(--ok); }
.checks .warn .st { background: var(--warn-soft); box-shadow: inset 0 0 0 4px var(--accent); }
.checks .fail .st { background: var(--err-soft); box-shadow: inset 0 0 0 4px var(--err); }
.checks .d { color: var(--muted); font-size: 12px; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--faint); font-size: 12px; }
.timeline .err { color: var(--err); }
.versions { list-style: none; margin: 0; padding: 0; }
.versions li a { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.versions li a:hover { background: var(--surface-2); }
.versions li a.is-active { background: var(--accent-soft); }
.versions .vn { font-family: var(--serif); font-size: 18px; }
.versions .vk { font-size: 12px; color: var(--muted); }
.action-list { display: grid; gap: 8px; }
.action-list form { margin: 0; }
.action-list .btn { width: 100%; text-align: left; }
.progress-box { border: 1px solid #d9d3f2; background: var(--prog-soft); color: var(--prog); border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; display: flex; gap: 12px; align-items: center; }
.progress-box .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice-box { border: 1px solid #ecd9a8; background: var(--accent-soft); color: #6f4f08; border-radius: 8px; padding: 12px 16px; font-size: 13px; }
details.raw summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }

/* ---------- Auth ---------- */
.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 36px 34px; }
.auth-card .brand { padding: 0; }
.auth-title { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) { .stats { grid-template-columns: repeat(3, 1fr); } .stat:nth-child(6n) { border-right: 1px solid var(--line); } .stat:nth-child(3n) { border-right: 0; } .split { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 12px 0 0; }
  .side-nav { flex-direction: row; overflow-x: auto; }
  .side-foot { display: none; }
  .main { padding: 22px 16px 60px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3n) { border-right: 1px solid var(--line); } .stat:nth-child(2n) { border-right: 0; }
  .preview-frame { flex-direction: column; }
  .kv { grid-template-columns: 1fr; }
}
