﻿:root {
  --bg: #eef1f6;
  --pane: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #f5c518;
  --accent-ink: #111827;
  --side: #0b1220;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: var(--font); color: var(--text); background: var(--bg); }
a { color: inherit; }
.shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.side {
  background: linear-gradient(180deg, #0b1220 0%, #152238 100%);
  color: #e5e7eb; padding: 1.25rem 1rem 1.5rem;
  display: flex; flex-direction: column; gap: .85rem;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
.brand { display: flex; gap: .75rem; align-items: center; text-decoration: none; color: #fff; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800;
}
.brand strong { display: block; font-size: .95rem; }
.brand em { display: block; font-style: normal; font-size: .72rem; color: #94a3b8; font-weight: 600; }
.search-wrap input {
  width: 100%; border: 1px solid #243044; background: #111827; color: #fff;
  border-radius: 12px; padding: .65rem .8rem; font: inherit; font-size: .85rem;
}
.nav { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.nav .group { margin: .7rem 0 .25rem; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #64748b; font-weight: 700; padding: 0 .4rem; }
.nav a {
  display: block; text-decoration: none; color: #cbd5e1; border-radius: 10px;
  padding: .55rem .7rem; font-size: .84rem; font-weight: 600;
}
.nav a:hover, .nav a.active { background: rgba(245, 197, 24, .14); color: #fff; }
.back-mail {
  display: block; text-align: center; text-decoration: none; color: #0b1220;
  background: var(--accent); font-weight: 800; border-radius: 12px; padding: .7rem; font-size: .85rem;
}
.main { padding: 1.5rem 1.75rem 3rem; max-width: 980px; }
.hero {
  background: var(--pane); border: 1px solid var(--line); border-radius: 22px;
  padding: 1.5rem 1.6rem; margin-bottom: 1.25rem;
  background-image: radial-gradient(ellipse at top right, rgba(245,197,24,.18), transparent 50%);
}
.hero h1 { margin: 0 0 .4rem; font-size: 1.7rem; letter-spacing: -.02em; }
.hero p { margin: 0; color: var(--muted); line-height: 1.55; max-width: 42rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .85rem; margin-top: 1.1rem; }
.card {
  display: block; text-decoration: none; background: var(--pane); border: 1px solid var(--line);
  border-radius: 16px; padding: 1rem; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: #f5c518; transform: translateY(-1px); }
.card .ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: .8rem; margin-bottom: .55rem; background: #fef3c7; color: #92400e;
}
.card strong { display: block; font-size: .92rem; margin-bottom: .25rem; }
.card span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.article h1 { margin: 0 0 .35rem; font-size: 1.55rem; letter-spacing: -.02em; }
.article .lead { color: var(--muted); margin: 0 0 1.2rem; line-height: 1.5; }
.article h2 { margin: 1.5rem 0 .55rem; font-size: 1.05rem; }
.article ol, .article ul { margin: 0 0 1rem; padding-left: 1.2rem; line-height: 1.55; color: #1f2937; }
.article li { margin: .35rem 0; }
.article .tip {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: .85rem 1rem;
  font-size: .88rem; line-height: 1.45; margin: 1rem 0;
}
.shot {
  margin: 1rem 0 1.25rem; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: #0f172a; box-shadow: 0 12px 40px rgba(15, 23, 42, .12);
}
.shot-cap {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: .55rem .85rem; background: #111827; color: #94a3b8; font-size: .72rem; font-weight: 700;
}
.shot-body { background: #e8edf5; padding: .85rem; min-height: 180px; }
.ui {
  background: #fff; border-radius: 14px; border: 1px solid #dbe1ea; overflow: hidden;
  font-size: .72rem; color: #111;
}
.ui-top { display: flex; gap: .4rem; align-items: center; padding: .45rem .6rem; background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.ui-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.ui-grid { display: grid; grid-template-columns: 88px 1fr 1.1fr; min-height: 150px; }
.ui-side { background: #0b1220; color: #e2e8f0; padding: .55rem; }
.ui-side .pill { background: #f5c518; color: #111; border-radius: 8px; padding: .35rem .4rem; font-weight: 800; margin-bottom: .45rem; text-align: center; }
.ui-side .row { opacity: .75; padding: .28rem .2rem; border-radius: 6px; margin: .15rem 0; }
.ui-side .row.on { background: rgba(245,197,24,.18); opacity: 1; }
.ui-list { border-right: 1px solid #e5e7eb; padding: .5rem; }
.ui-list .item { padding: .4rem .35rem; border-radius: 8px; margin-bottom: .25rem; border: 1px solid transparent; }
.ui-list .item.on { background: #fffbeb; border-color: #fde68a; }
.ui-list .from { font-weight: 700; }
.ui-list .sub { color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-read { padding: .6rem; }
.ui-read h4 { margin: 0 0 .35rem; font-size: .85rem; }
.ui-read p { margin: 0; color: #4b5563; line-height: 1.4; }
.btn-y { display: inline-block; background: #f5c518; color: #111; font-weight: 800; border-radius: 8px; padding: .35rem .55rem; margin-left: auto; }
.kbd { display: inline-block; border: 1px solid #d1d5db; background: #f9fafb; border-radius: 6px; padding: .05rem .35rem; font-size: .75em; font-weight: 700; }
.empty-search { color: var(--muted); padding: 2rem 0; }
.ui-center { padding: .75rem; display: grid; gap: .45rem; }
.ui-bar { height: 10px; border-radius: 6px; background: #e5e7eb; }
.ui-bar.w60 { width: 60%; } .ui-bar.w40 { width: 40%; } .ui-bar.w80 { width: 80%; }
.ui-tile { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding: .6rem; }
.ui-tile div { background: #f1f5f9; border-radius: 10px; padding: .55rem; min-height: 52px; font-weight: 700; }
.ui-login { max-width: 220px; margin: .4rem auto; background: #fff; border-radius: 14px; padding: .85rem; border: 1px solid #e5e7eb; }
.ui-login .field { height: 22px; border-radius: 8px; background: #f3f4f6; margin: .35rem 0; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: relative; height: auto; }
  .ui-grid { grid-template-columns: 1fr; }
  .ui-side, .ui-list { border-right: 0; border-bottom: 1px solid #e5e7eb; }
}
