/* ==========================================================================
   KELAS F PORTAL — Gaya Utama (style.css) v2
   Tema: elegan akademik — emerald & gold, modern, mobile-first
   Highlight menu aktif mengikuti token hijau dashboard (--brand: #0f7a5f)
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --brand: #0f7a5f;
  --brand-600: #0c604b;
  --brand-700: #0a4f3e;
  --brand-soft: #e6f4ef;
  --gold: #c9a227;
  --gold-soft: #f7eed2;
  --ink: #14211d;
  --ink-soft: #4a5a54;
  --line: #dfe8e4;
  --bg: #f6faf8;
  --card: #ffffff;
  --shadow: 0 10px 30px -12px rgba(10, 79, 62, .18);
  --shadow-lg: 0 24px 60px -20px rgba(10, 79, 62, .28);
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 68px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}
[data-theme="dark"] {
  --ink: #eaf3ef;
  --ink-soft: #9db3ab;
  --line: #1f3a31;
  --bg: #0b1a15;
  --card: #10241d;
  --brand-soft: rgba(15, 122, 95, .18);
  --gold-soft: rgba(201, 162, 39, .14);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ---------- Navbar (atas, horizontal) ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 0 clamp(14px, 4vw, 40px);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.nav-brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  box-shadow: var(--shadow);
}
.nav-brand .logo svg { display: block; }
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; flex-wrap: wrap;
}
/* Highlight menu hijau aktif — gradient emerald sama dengan hero/dashboard */
.nav-links a {
  display: block; padding: 9px 16px; border-radius: 999px;
  color: var(--ink-soft); font-weight: 600; font-size: .92rem;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-links a.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  box-shadow: var(--shadow);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  display: grid; place-items: center; font-size: 1.05rem; transition: var(--transition);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.admin-link svg { display: block; }
.admin-link.is-admin { color: var(--gold, #d4a72c); border-color: var(--gold, #d4a72c); }
.hamburger { display: none; }

@media (max-width: 900px) {
  .hamburger { display: grid; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--card); padding: 14px 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-140%); transition: var(--transition);
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 16px; border-radius: 12px; }
}

/* ---------- Layout Umum ---------- */
.container { width: min(1180px, 100% - clamp(28px, 7vw, 72px)); margin-inline: auto; }
.page { flex: 1; padding: clamp(24px, 5vw, 52px) 0 clamp(50px, 7vw, 80px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 26px;
  padding: clamp(34px, 6vw, 70px);
  margin-top: clamp(16px, 3vw, 28px);
  background:
    radial-gradient(900px 340px at 88% -10%, rgba(201, 162, 39, .28), transparent 60%),
    radial-gradient(700px 320px at -6% 110%, rgba(15, 122, 95, .5), transparent 60%),
    linear-gradient(135deg, #0b3f31, #0f7a5f 55%, #0a5f4a);
  color: #f2faf7;
  box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px);
  background-size: 26px 26px; opacity: .35; pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(1.7rem, 4.4vw, 3rem); line-height: 1.18; margin: 16px 0 12px; letter-spacing: -.02em; }
.hero p { max-width: 640px; color: rgba(242,250,247,.86); font-size: clamp(.98rem, 2vw, 1.08rem); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22);
  font-size: .84rem; font-weight: 600;
}
.chip.solid { background: var(--gold); color: #26303a; border-color: transparent; }

/* ---------- Kartu & Grid ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: clamp(14px, 2.4vw, 22px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.section-title { display: flex; align-items: center; gap: 12px; margin: 30px 0 16px; }
.section-title .bar { width: 6px; height: 26px; border-radius: 6px; background: linear-gradient(var(--brand), var(--gold)); }
.section-title h2 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); letter-spacing: -.01em; }
.section-title .sub { color: var(--ink-soft); font-size: .92rem; margin-left: 4px; }

.stat-card { text-align: left; }
.stat-card .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 1.3rem; margin-bottom: 12px;
}
.stat-card .num { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.stat-card .lbl { color: var(--ink-soft); font-size: .86rem; }

/* ---------- Tabel ---------- */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--card); }
th, td { padding: 12px 14px; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: color-mix(in srgb, var(--brand-soft) 60%, var(--card)); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; position: sticky; top: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 34%, transparent); }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Jadwal Harian ---------- */
.sched-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.sched-filter input[type="date"], .sched-filter select {
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-weight: 600;
}
.daily-cards { display: none; flex-direction: column; gap: 12px; }
.slot-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; box-shadow: var(--shadow);
  animation: rise .35s ease both;
}
.slot-time {
  flex: 0 0 auto; text-align: center; min-width: 84px;
  padding: 8px 10px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff;
  font-weight: 700; font-size: .82rem; line-height: 1.45;
}
.slot-time small { display: block; font-weight: 500; opacity: .85; font-size: .68rem; }
.slot-body { flex: 1; min-width: 0; }
.slot-body h4 { font-size: .98rem; margin-bottom: 2px; }
.slot-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; color: var(--ink-soft); font-size: .8rem; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
}
.tag.sem { background: var(--gold-soft); color: #8a7018; }
.tag.off { background: var(--brand-soft); color: var(--brand-600); }
.tag.onl { background: #e8f0fe; color: #1a56b2; }
.tag.place { background: var(--line); color: var(--ink-soft); }
.empty-state { text-align: center; padding: 40px 16px; color: var(--ink-soft); }
.empty-state .big { font-size: 2.4rem; margin-bottom: 8px; }

@media (max-width: 700px) {
  .daily-table { display: none; }
  .daily-cards { display: flex; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Grid Jadwal Semester ---------- */
.sem-grid { display: grid; grid-template-columns: 118px repeat(4, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.sem-grid .h { font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.sem-grid .cell {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; min-height: 96px; font-size: .84rem;
  display: flex; flex-direction: column; gap: 4px;
}
.sem-grid .cell .mk { font-weight: 700; line-height: 1.35; }
.sem-grid .cell .ds { color: var(--ink-soft); font-size: .76rem; line-height: 1.4; }
.sem-grid .day-col { display: grid; gap: 10px; }
.sem-grid .day-head { font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-600)); border-radius: 12px; padding: 10px; text-align: center; }
.sem-grid .ses { font-size: .72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.sem-grid .cell.empty { background: transparent; border-style: dashed; opacity: .55; display: grid; place-items: center; font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Kalender & PDF ---------- */
.pdf-card { display: flex; flex-direction: column; gap: 12px; }
.pdf-frame {
  width: 100%; border: 0; border-radius: var(--radius-sm);
  background: #eef2f0; min-height: 520px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.pdf-frame.mobile-fit { min-height: 76vh; }
@media (max-width: 640px) { .pdf-frame { min-height: 68vh; } }
.pdf-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.pdf-toolbar h3 { font-size: 1.05rem; }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .86rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff;
  border: 0; box-shadow: var(--shadow); transition: var(--transition);
}
.link-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.link-btn.ghost { background: var(--card); color: var(--brand); border: 1px solid var(--line); box-shadow: none; }

/* ---------- Absensi ---------- */
.abs-stat { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.abs-pill {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.h { background: #22c55e; } .dot.i { background: #eab308; }
.dot.s { background: #3b82f6; } .dot.a { background: #ef4444; }
.badge { padding: 3px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.badge.hadir { background: #dcfce7; color: #15803d; }
.badge.izin  { background: #fef9c3; color: #a16207; }
.badge.sakit { background: #dbeafe; color: #1d4ed8; }
.badge.alpa  { background: #fee2e2; color: #b91c1c; }
.sem-item > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-weight: 700;
  transition: var(--transition);
}
.sem-item > summary:hover { border-color: var(--brand); }
.sem-item[open] > summary { border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-bottom-color: transparent; }
.sem-item .cnt { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Assignment ---------- */
.assignment { display: flex; gap: 16px; align-items: flex-start; }
.assignment .a-ico {
  flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 1.25rem;
}
.assignment .a-body { flex: 1; }
.assignment h3 { font-size: 1.02rem; margin-bottom: 4px; }
.assignment .a-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-soft); font-size: .82rem; margin-bottom: 8px; }
.due { color: #b45309; font-weight: 700; }
.attach {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 8px 14px; border: 1px dashed var(--brand); border-radius: 10px;
  color: var(--brand); font-size: .82rem; font-weight: 700; background: var(--brand-soft); word-break: break-all;
}
.attach:hover { background: color-mix(in srgb, var(--brand-soft) 70%, var(--card)); }

/* ---------- Artikel ---------- */
.article-card .thumb {
  height: 150px; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand) 70%, var(--gold));
  display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 2rem;
  box-shadow: var(--shadow);
}
.article-card h3 { font-size: 1rem; margin-bottom: 4px; }
.article-card .a-meta { color: var(--ink-soft); font-size: .8rem; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.footer {
  margin-top: auto; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  padding: 26px clamp(16px, 4vw, 40px);
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
  color: var(--ink-soft); font-size: .86rem;
}
.footer .brand { color: var(--brand); font-weight: 800; }

/* ---------- Notfound ---------- */
.notfound { min-height: 80vh; display: grid; place-items: center; padding: 30px; }
.notfound-card { text-align: center; max-width: 420px; }
.nf-code { font-size: 4.5rem; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--brand), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { margin: 8px 0; }
.notfound p { color: var(--ink-soft); margin-bottom: 20px; }

/* ---------- Tombol umum ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: .9rem; transition: var(--transition);
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #b98f1c); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--line); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(60px);
  background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: 999px;
  font-size: .88rem; font-weight: 600; opacity: 0; pointer-events: none;
  transition: var(--transition); z-index: 200; box-shadow: var(--shadow-lg); max-width: 92vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Loader ---------- */
.loader { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 0; color: var(--ink-soft); }
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero mini (halaman dalam) ---------- */
.page-hero { border-radius: 22px; padding: clamp(22px, 4vw, 40px); margin-bottom: 26px;
  background: linear-gradient(135deg, #0b3f31, #0f7a5f); color: #f2faf7; box-shadow: var(--shadow-lg); }
.page-hero h1 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); letter-spacing: -.02em; }
.page-hero p { color: rgba(242,250,247,.84); font-size: .96rem; margin-top: 6px; max-width: 640px; }

/* ---------- Layanan Cepat: Carousel geser (HP) / grid responsif (desktop) ---------- */
.section-title .sub { font-weight: 600; }
.quick-carousel { position: relative; margin-top: 8px; }
.quick-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82%, 82%);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 16px;
  padding: 6px 4px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.quick-track::-webkit-scrollbar { display: none; }
.quick-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.quick-card {
  scroll-snap-align: center;
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 160px;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); color: var(--ink); }
.quick-card:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 3px; }
.quick-card.focus { border-color: var(--brand); box-shadow: 0 10px 30px -10px rgba(10, 79, 62, .35); }
.quick-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.55rem;
  background: var(--brand-soft); color: var(--brand);
  margin-bottom: 4px;
}
.quick-card .quick-title { font-size: 1.04rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.quick-card .quick-desc { font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
.quick-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 4px;
}
.quick-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); transition: all .25s ease; cursor: pointer;
}
.quick-dots span.on { width: 22px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--gold)); }

/* ≥640px tampil sebagai grid 3 kolom (atau wrap 5) */
@media (min-width: 640px) {
  .quick-track {
    grid-auto-columns: minmax(48%, 48%);
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  .quick-dots { display: none; }
}
@media (min-width: 980px) {
  .quick-track {
    grid-template-columns: repeat(5, 1fr);
    scroll-snap-type: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .navbar, .footer, .sched-filter, .pdf-toolbar, .quick-dots { display: none !important; }
  body { background: #fff; }
  .card, table, .slot-card, .sem-item > summary, .quick-card { box-shadow: none !important; border-color: #ccc; }
}

/* ============================================================
   FITUR BARU (v2) — bar info, pencarian, tag tambahan
   ============================================================ */
#kf-metabar {
  width: min(1180px, 100% - clamp(28px, 7vw, 72px));
  margin: 18px auto 4px;
}
#kf-metabar .kf-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.kf-updated {
  font-size: .78rem; font-weight: 600; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; display: inline-block;
}
.kf-drive-chip {
  font-size: .78rem; font-weight: 700; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  border-radius: 999px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1); transition: var(--transition, filter .2s);
}
.kf-drive-chip:hover { filter: brightness(1.08); }
.kf-warn {
  font-size: .8rem; font-weight: 600; color: #8a4a06;
  background: #fff3da; border: 1px solid #f0d9a0; border-radius: var(--radius-sm);
  padding: 10px 14px;
}
:root[data-theme="dark"] .kf-warn { background: #3a2f10; color: #f0d9a0; border-color: #5c4a1a; }

.kf-search { margin: 4px 0 18px; }
.kf-search input {
  width: 100%; padding: 12px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font-family: inherit; font-size: .92rem; transition: var(--transition, border-color .2s);
}
.kf-search input:focus { outline: none; border-color: var(--brand); }

.tag.auto { background: #e8f0fe; color: #1a56b2; }
.tag.manual { background: var(--brand-soft); color: var(--brand-600); }

.asg-group-title, .art-group-title { margin-top: 22px; }
