/* ============================================================
   Lintu admin — стиль mix-13: синий #393AC6, оранжевый #FE8A66,
   фон #F5F1E8, чёрный текст. Никаких рамок ради рамок.
   ============================================================ */
:root {
  --blue:    #393AC6;
  --blue-d:  #2a2b9b;
  --orange:  #FE8A66;
  --bg:      #F5F1E8;
  --ink:     #161618;
  --muted:   rgba(22,22,24,0.62);
  --line:    rgba(0,0,0,0.12);
  --card:    #ffffff;
  --green:   #2b8a3e;
  --red:     #c92a2a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.dot { color: var(--orange); }

/* ====== app-bar ====== */
.app-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: var(--blue);
  color: #fff;
}
.app-bar .brand { color: #fff; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.app-bar .brand em { font-style: normal; opacity: 0.6; font-weight: 400; }
.app-bar nav { display: flex; gap: 8px; }
.app-bar nav a {
  color: rgba(255,255,255,0.78);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.app-bar nav a:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.app-bar nav a.active { background: var(--orange); color: var(--blue-d); }
.app-bar .who { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.app-bar .who form { display: inline; }
.app-bar .who .link {
  background: none; border: 0; color: rgba(255,255,255,0.7);
  cursor: pointer; font: inherit; padding: 0;
}
.app-bar .who .link:hover { color: #fff; text-decoration: underline; }

/* ====== container ====== */
.container { max-width: 1200px; margin: 0 auto; padding: 32px; }

/* ====== auth ====== */
.auth { min-height: calc(100vh - 0px); display: grid; place-items: center; padding: 40px 24px; }
.auth-card {
  background: var(--card); padding: 40px 36px; border-radius: 22px;
  width: 100%; max-width: 420px;
  box-shadow: 0 30px 80px rgba(57, 58, 198, 0.08);
}
.auth-card h1 { font-size: 36px; letter-spacing: -0.02em; margin-bottom: 6px; font-weight: 400; }
.auth-card .lede { color: var(--muted); margin-bottom: 24px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.auth-card input { font: 16px inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.auth-card input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.auth-card button { margin-top: 10px; }

/* ====== hero / dashboard ====== */
.hero { margin-bottom: 32px; }
.hero .eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.hero h1 { font-size: clamp(48px, 7vw, 88px); letter-spacing: -0.025em; font-weight: 400; }
.hero .lede { color: var(--muted); max-width: 56ch; margin-top: 8px; font-size: 16px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.tile {
  background: var(--card); border-radius: 22px; padding: 26px 28px;
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  min-height: 140px; transition: transform .15s;
}
.tile:hover { transform: translateY(-2px); text-decoration: none; }
.tile .num { font-size: 56px; line-height: 1; letter-spacing: -0.04em; color: var(--blue); }
.tile .lbl { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 8px; grid-column: 1; }
.tile .arrow { color: var(--blue); font-size: 22px; }
.tile.primary { background: var(--blue); color: #fff; }
.tile.primary .num, .tile.primary .arrow { color: #fff; }
.tile.primary .lbl { color: rgba(255,255,255,0.8); }
.tile.muted { opacity: 0.85; }

.soon { background: var(--card); border-radius: 22px; padding: 28px; }
.soon h2 { font-size: 18px; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 14px; }
.soon ul { list-style: none; display: grid; gap: 8px; }
.soon li { color: var(--muted); padding-left: 14px; position: relative; }
.soon li::before { content: "·"; position: absolute; left: 0; color: var(--orange); }

/* ====== page-head ====== */
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.02em; font-weight: 400; }
.page-head .actions { display: flex; gap: 12px; align-items: center; }
.page-head form { display: inline; }

/* ====== buttons ====== */
.btn-primary, .btn-secondary, .btn-danger, .btn-link {
  font: inherit; cursor: pointer; border: 0;
  padding: 11px 22px; border-radius: 999px;
  font-size: 14px; letter-spacing: 0.06em;
  text-transform: lowercase;
  transition: transform .1s, background-color .15s;
  display: inline-block; text-align: center; line-height: 1;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn-secondary:hover { background: var(--blue); color: #fff; text-decoration: none; }
.btn-danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-link { color: var(--blue); background: transparent; padding: 11px 0; }

/* ====== table ====== */
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 22px; overflow: hidden; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.dim td { opacity: 0.45; }
.tbl tr:hover td { background: rgba(57, 58, 198, 0.03); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .slug { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tbl .row-actions a { font-size: 13px; }

/* ====== chip ====== */
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 11px; letter-spacing: 0.06em; margin-left: 6px; }
.chip.orange { background: var(--orange); color: var(--blue-d); }
.chip.green { background: #d3f9d8; color: var(--green); }
.chip.red { background: #ffe3e3; color: var(--red); }
.chip.grey { background: #e6e6e6; color: #555; }

/* ====== form ====== */
.form { background: var(--card); padding: 32px; border-radius: 22px; display: grid; gap: 24px; }
.form label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.form label.check { flex-direction: row; display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0.02em; font-size: 14px; color: var(--ink); }
.form input[type=text], .form input:not([type]), .form input[type=email], .form input[type=password], .form input[type=number], .form input[type=url], .form textarea, .form select {
  font: 15px inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf6; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form textarea { min-height: 80px; line-height: 1.45; resize: vertical; }
.form fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; display: grid; gap: 14px; }
.form fieldset legend { padding: 0 8px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.form-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }

/* ====== dropzone (фото) ====== */
.dropzone {
  display: grid; grid-template-columns: 200px 1fr; gap: 18px;
  align-items: center; padding: 16px; border: 2px dashed var(--line);
  border-radius: 16px; background: #fafaf6; transition: background-color .15s, border-color .15s;
  text-transform: none; letter-spacing: 0; color: var(--ink);
}
.dropzone.drag { border-color: var(--blue); background: #eef0ff; }
.dropzone.uploading { opacity: 0.55; pointer-events: none; }
.dz-preview {
  width: 100%; aspect-ratio: 4/3; border-radius: 12px;
  background: #ddd center/cover no-repeat;
}
.dz-body { display: grid; gap: 6px; }
.dz-label { font-size: 15px; }
.dz-label .link { font: inherit; background: none; border: 0; color: var(--blue); cursor: pointer; text-decoration: underline; padding: 0; }
.dz-hint { font-size: 12px; color: var(--muted); }
.dz-path { font: 12px ui-monospace, monospace; color: var(--muted); word-break: break-all; }
.dz-error { font-size: 13px; color: var(--red); }
@media (max-width: 700px) { .dropzone { grid-template-columns: 1fr; } }

/* ====== alerts ====== */
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-size: 14px; }
.alert.notice { background: #e8f0ff; color: var(--blue-d); }
.alert.error { background: #ffe3e3; color: var(--red); }
.alert.green { background: #d3f9d8; color: var(--green); }

/* ====== publish detail ====== */
.tbl details summary { cursor: pointer; color: var(--blue); font-size: 13px; }
.tbl pre { font: 12px ui-monospace, monospace; background: var(--bg); padding: 10px; border-radius: 8px; margin-top: 8px; overflow-x: auto; white-space: pre-wrap; max-height: 280px; overflow-y: auto; }
