/* Sistem UI HRIS — tema biru.
   Prinsip dari taste-skill: satu sistem token, skala jarak 4–128, satu gaya tombol & kartu,
   satu set ikon (Lucide), teks ≥13px, target sentuh ≥44px, gerak halus & reduced-motion. */
:root {
  --brand: #7845e5;
  --brand-600: #6131c9;
  --brand-soft: #f1ebfd;

  --bg: #ffffff;
  --tint: #f3effb;      /* kartu akses cepat, kolom cari */
  --surface: #f4f6fa;   /* hover baris */
  --card: #ffffff;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e9f0;
  --line-2: #cfd6e2;

  --ok: #12703f;   --ok-soft: #e1f3e8;
  --warn: #8a5300; --warn-soft: #fbf0dc;
  --bad: #c0281c;  --bad-soft: #fde8e6;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --t-h1: 26px; --t-h2: 18px; --t-h3: 16px; --t-body: 16px; --t-small: 14px; --t-label: 13px;
  --nav: 64px; --side: 288px;
  --jnt: #008036; --jnt-dark: #006b2d; --jnt-soft: #e8f4ec;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
  --m-in: 150ms; --m-out: 120ms; --m-press: 90ms;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .07);
  color-scheme: light;
}
@media (min-width: 1024px) { :root { --nav: 80px; --t-h1: 30px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: var(--t-body); line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: var(--t-h1); font-weight: 700; color: var(--brand); }
h2 { font-size: var(--t-h2); font-weight: 700; }
h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
.i { flex: none; display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); }
.label { font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
.skip-link { position: absolute; left: var(--s-4); top: -60px; z-index: 100; background: var(--card); color: var(--ink); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); border: 1px solid var(--line-2); }
.skip-link:focus { top: var(--s-2); }

/* ───────── Header ───────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: calc(var(--nav) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--s-3) 0; display: flex; align-items: center; gap: var(--s-2);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: var(--s-3); min-width: 0; color: var(--brand); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brandlogo { width: 40px; height: 40px; flex: none; display: block; object-fit: contain; }
.logo__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.logo__text b { font-size: 13.5px; font-weight: 800; letter-spacing: 0; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo__text small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brandtile { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; }
.brandtile .brandlogo { width: 36px; height: 36px; }
.sidebar__brand { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.sidebar__brand b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__brand small { font-size: 13px; color: rgba(255, 255, 255, .78); }
.auth__aside .logo__text b { color: #fff; font-size: 16px; }
.auth__aside .logo__text small { color: rgba(255, 255, 255, .8); }
.brandmark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: 0; flex: none; }
.topbar__search { flex: 1; max-width: 440px; display: none; }
.topbar__search input { height: 44px; min-height: 44px; border-radius: 22px; border: 0; background-color: var(--tint); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: var(--s-1); }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md); border: 0; background: none; color: var(--ink-2); cursor: pointer; flex: none; transition: background-color var(--m-out) var(--ease); }
.icon-btn:hover { background: var(--surface); transition-duration: var(--m-in); }
.icon-btn .badge { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.me { display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-1) 0 var(--s-3); min-height: 44px; border-radius: 22px; color: var(--ink); }
.me:hover { background: var(--surface); }
.me__name { display: none; font-size: var(--t-small); font-weight: 600; text-align: right; line-height: 1.2; }
.me__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-label); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.avatar--brand { background: var(--brand); color: #fff; width: 36px; height: 36px; font-size: 13px; }
.avatar--lg { width: 72px; height: 72px; font-size: 22px; }

/* ───────── Sidebar biru ───────── */
.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; width: min(296px, 86vw);
  display: flex; flex-direction: column; gap: var(--s-5); background: var(--brand); color: #fff;
  padding: calc(env(safe-area-inset-top) + var(--s-4)) var(--s-4) calc(env(safe-area-inset-bottom) + var(--s-5));
  border-top-right-radius: var(--r-xl); border-bottom-right-radius: var(--r-xl);
  transform: translateX(-100%); visibility: hidden; transition: transform 220ms var(--ease), visibility 0s linear 220ms;
}
.sidebar.is-open { transform: none; visibility: visible; transition: transform 220ms var(--ease-enter), visibility 0s; }
.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(17, 24, 39, .45); opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease); }
.scrim.is-open { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.sidebar__head { display: flex; align-items: center; gap: var(--s-3); }
.sidebar__head .brandmark { background: #fff; color: var(--brand); }
.sidebar__head b { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .icon-btn { color: #fff; }
.sidebar .icon-btn:hover { background: rgba(255, 255, 255, .14); }
.sidebar__cta {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2); height: 48px; border-radius: 24px; flex: none;
  background: #fff; color: var(--brand); font-weight: 600; font-size: 15px;
  transition: transform var(--m-out) var(--ease), box-shadow var(--m-out) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .sidebar__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition-duration: var(--m-in); } }
.sidebar__cta:active { transform: translateY(1px) scale(.985); }
.sidebar__nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 calc(-1 * var(--s-2)); padding: 0 var(--s-2); }
.sidebar__group { font-size: var(--t-label); font-weight: 500; color: rgba(255, 255, 255, .65); padding: var(--s-4) var(--s-3) var(--s-2); }
.sidebar__nav a {
  display: flex; align-items: center; gap: var(--s-3); min-height: 46px; padding: 0 var(--s-3); border-radius: var(--r-md); flex: none;
  color: rgba(255, 255, 255, .86); font-weight: 500; font-size: 15px; transition: background-color var(--m-out) var(--ease), color var(--m-out) var(--ease);
}
.sidebar__nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; transition-duration: var(--m-in); }
.sidebar__nav a[aria-current="page"] { background: rgba(255, 255, 255, .18); color: #fff; font-weight: 600; }
.sidebar__nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #fff; color: var(--brand); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.sidebar__foot { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-2) 0; border-top: 1px solid rgba(255, 255, 255, .18); font-size: var(--t-label); flex: none; }
.sidebar__foot .k { font-weight: 600; color: rgba(255, 255, 255, .7); }
.sidebar__foot .row { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; color: #fff; font-size: var(--t-small); }
.sidebar__foot .meter { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.sidebar__foot .meter i { display: block; height: 100%; background: #fff; border-radius: 3px; }
.sidebar__foot .v { color: rgba(255, 255, 255, .8); }
.sidebar__foot a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.sidebar__close { margin-left: auto; }

/* ───────── Kerangka konten ───────── */
.shell { min-height: 100vh; }
main { padding: calc(var(--nav) + env(safe-area-inset-top) + var(--s-5)) var(--s-4) calc(env(safe-area-inset-bottom) + var(--s-7)); display: flex; flex-direction: column; gap: var(--s-5); max-width: 1320px; }
.menu-btn .badge { top: 8px; right: 8px; min-width: 10px; width: 10px; height: 10px; padding: 0; }

@media (min-width: 640px) {
  .topbar { padding-inline: var(--s-5); gap: var(--s-4); }
  .topbar__search { display: block; }
  main { padding-inline: var(--s-5); }
}
@media (min-width: 1024px) {
  .topbar { padding: 0 var(--s-6) 0 0; }
  .topbar .logo { width: var(--side); padding-left: var(--s-5); padding-right: var(--s-3); flex: none; gap: 10px; }
  .me__name { display: block; }
  .sidebar {
    top: var(--nav); width: var(--side); transform: none; visibility: visible; transition: none;
    padding: var(--s-7) var(--s-5) var(--s-5); border-radius: 0 56px 0 0;
  }
  .sidebar__head, .scrim, .menu-btn, .sidebar__close { display: none !important; }
  main { margin-left: var(--side); max-width: none; padding: calc(var(--nav) + var(--s-7)) clamp(32px, 3.5vw, 64px) var(--s-8); gap: var(--s-6); }
}

/* ───────── Kepala halaman ───────── */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.page-head__title { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.page-head p { margin-top: var(--s-1); color: var(--muted); max-width: 62ch; }
.square-btn { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; transition: background-color var(--m-out) var(--ease), transform var(--m-out) var(--ease); }
.square-btn:hover { background: var(--brand-600); transform: translateY(-1px); }
.section-title { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: calc(-1 * var(--s-2)); }

/* ───────── Grid tata letak ───────── */
.cols { display: grid; gap: var(--s-5); align-items: start; }
.stack { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
@media (min-width: 1100px) {
  .cols--main-side { grid-template-columns: minmax(0, 1fr) clamp(340px, 26vw, 440px); gap: var(--s-6); }
  .cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
  .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
  .side-sticky { position: sticky; top: calc(var(--nav) + var(--s-6)); }
}
@media (min-width: 760px) and (max-width: 1099px) { .cols--2, .cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ───────── Kartu ───────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: 0 1px 2px rgba(17, 24, 39, .03); min-width: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.card__pad { padding: var(--s-5) var(--s-5) var(--s-4); }
a.card, .card--link { display: block; color: inherit; transition: transform var(--m-out) var(--ease), border-color var(--m-out) var(--ease), box-shadow var(--m-out) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  a.card:hover, .card--link:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow); transition-duration: 180ms; }
}

/* Akses cepat: kartu berbentuk map */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-3); padding-top: 10px; }
@media (min-width: 900px) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); } }
.folder {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4); min-height: 148px;
  padding: var(--s-4); background: var(--tint); color: var(--ink); border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
  transition: transform var(--m-out) var(--ease), box-shadow var(--m-out) var(--ease);
}
.folder::before { content: ""; position: absolute; left: 0; top: -10px; width: 44%; height: 18px; background: inherit; border-radius: var(--r-md) 0 0 0; }
.folder::after { content: ""; position: absolute; left: calc(44% - 10px); top: -10px; width: 24px; height: 18px; background: inherit; transform: skewX(35deg); border-top-right-radius: 8px; }
@media (min-width: 900px) { .folder { padding: var(--s-5); min-height: 168px; } }
a.folder:hover { transform: translateY(-2px); box-shadow: var(--shadow); transition-duration: 180ms; }
.folder .k { font-size: var(--t-label); font-weight: 700; color: var(--ink-2); }
.folder b { display: block; font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.folder .v { display: block; font-size: var(--t-small); color: var(--brand); font-weight: 500; }
.folder .ic { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--brand); display: grid; place-items: center; }
.folder .top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-2); }
.folder--brand { background: var(--brand); color: #fff; }
.folder--brand .k, .folder--brand .v { color: rgba(255, 255, 255, .88); }
.folder--brand .ic { background: rgba(255, 255, 255, .18); color: #fff; }
.folder--alert b { color: var(--bad); }
.meter { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: #fff; }

.enter { animation: enter 600ms var(--ease-enter) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

/* ───────── Baris & tabel ───────── */
.rows { display: flex; flex-direction: column; }
.row-link {
  display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: 64px;
  color: inherit; border-top: 1px solid var(--line); transition: background-color var(--m-out) var(--ease);
}
.rows > :first-child { border-top: 0; }
a.row-link:hover, a.trow:hover { background: var(--surface); transition-duration: var(--m-in); }
.row-link .grow { flex: 1; min-width: 0; }
.row-link .t, .trow .t { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-link .s, .trow .s { display: block; font-size: var(--t-small); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-link .chev { color: var(--muted); transition: transform var(--m-out) var(--ease); }
a.row-link:hover .chev { transform: translateX(3px); color: var(--brand); transition-duration: var(--m-in); }
.glyph { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.glyph--muted { background: var(--surface); color: var(--muted); }
.glyph--ok { background: var(--ok-soft); color: var(--ok); }

/* Tabel: di HP jadi daftar, di layar lebar jadi kolom */
.table { display: flex; flex-direction: column; }
.thead { display: none; }
.trow { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: 64px; border-top: 1px solid var(--line); color: inherit; transition: background-color var(--m-out) var(--ease); }
.table > .trow:first-child, .thead + .trow { border-top: 0; }
.trow .first { display: flex; align-items: center; gap: var(--s-3); flex: 1; min-width: 0; }
.trow .first > div { min-width: 0; }
.tc { display: none; font-size: var(--t-small); color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .end { flex: none; display: flex; justify-content: flex-end; align-items: center; gap: var(--s-2); }
@media (min-width: 900px) {
  .thead, .trow { display: grid; grid-template-columns: var(--cols); gap: var(--s-4); align-items: center; padding: 0 var(--s-5); }
  .thead { min-height: 44px; font-size: var(--t-label); font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line-2); }
  .thead .end { text-align: right; }
  .trow { min-height: 60px; }
  .trow .s.m-only { display: none; }
  .tc { display: block; }
}

/* ───────── Status ───────── */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: var(--t-label); font-weight: 600; white-space: nowrap; background: var(--surface); color: var(--muted); flex: none; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--plain::before { display: none; }
.chip--brand { background: var(--brand-soft); color: var(--brand); }
.chip--pending { background: var(--warn-soft); color: var(--warn); }
.chip--approved, .chip--done, .chip--active { background: var(--ok-soft); color: var(--ok); }
.chip--rejected, .chip--inactive { background: var(--bad-soft); color: var(--bad); }

/* ───────── Segmen ───────── */
.segments { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--s-4)); padding: 2px var(--s-4); }
.segments::-webkit-scrollbar { display: none; }
.segments a { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 var(--s-4); border-radius: 20px; background: var(--tint); color: var(--ink-2); font-size: var(--t-small); font-weight: 600; transition: background-color var(--m-out) var(--ease); }
.segments a:hover { background: var(--brand-soft); color: var(--brand); }
.segments a[aria-current="page"] { background: var(--brand); color: #fff; }
@media (min-width: 640px) { .segments { margin: 0; padding: 2px 0; flex-wrap: wrap; } }
.toolbar { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; justify-content: space-between; }

/* ───────── Empty & notice ───────── */
.empty { text-align: center; padding: var(--s-7) var(--s-5); display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.empty .glyph { width: 52px; height: 52px; margin-bottom: var(--s-2); }
.empty p { color: var(--muted); max-width: 40ch; }
.empty .btn { margin-top: var(--s-3); }
.notice { display: flex; gap: var(--s-3); align-items: flex-start; border-radius: var(--r-md); padding: var(--s-4); background: var(--brand-soft); color: var(--ink); font-size: 15px; }
.notice .i { margin-top: 2px; color: var(--brand); }
.notice--bad { background: var(--bad-soft); color: var(--bad); }
.notice--bad .i { color: var(--bad); }
a.notice { transition: transform var(--m-out) var(--ease); }
a.notice:hover { transform: translateY(-1px); }

/* ───────── Tombol ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: 48px; padding: 0 var(--s-5);
  border-radius: var(--r-md); border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
  background: var(--brand); color: #fff; transition: background-color var(--m-out) var(--ease), border-color var(--m-out) var(--ease), transform var(--m-out) var(--ease);
}
.btn--secondary { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn--danger { background: var(--card); color: var(--bad); border-color: var(--line-2); }
.btn--sm { height: 44px; padding: 0 var(--s-4); font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--brand-600); transform: translateY(-1px); transition-duration: var(--m-in); }
  .btn--secondary:hover, .btn--danger:hover { background: var(--surface); border-color: var(--ink-2); }
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.link { color: var(--brand); font-weight: 600; font-size: var(--t-small); display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ───────── Form ───────── */
.form { display: flex; flex-direction: column; gap: var(--s-5); }
.form-section { display: grid; gap: var(--s-4); }
.form-section > h3 { grid-column: 1 / -1; }
.form-section + .form-section { padding-top: var(--s-5); border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .form-section { grid-template-columns: 1fr 1fr; column-gap: var(--s-5); }
  .field--wide { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.field > label, .field > .field__label { font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--bad); margin-left: 2px; }
.field__help { font-size: var(--t-label); color: var(--muted); }
.field__error { font-size: var(--t-label); color: var(--bad); font-weight: 600; display: flex; gap: 6px; align-items: center; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background-color: var(--card); width: 100%; min-height: 48px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 14px;
  transition: border-color var(--m-out) var(--ease), box-shadow var(--m-out) var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: #9aa5b8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(120, 69, 229, .22); }
[aria-invalid="true"], .has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
input[type="search"] { padding-left: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 16px center; }
.sig { font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive; font-size: 24px; }
.grid-2 { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; column-gap: var(--s-5); } }

.choices { display: flex; flex-direction: column; gap: var(--s-2); }
.choices--inline { flex-direction: row; flex-wrap: wrap; }
.choices--inline .choice { flex: 1 1 140px; }
.choice { display: flex; gap: var(--s-3); align-items: center; min-height: 48px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--card); cursor: pointer; line-height: 1.4; transition: border-color var(--m-out) var(--ease), background-color var(--m-out) var(--ease); }
.choice:hover { border-color: #9aa5b8; }
.choice input { width: 20px; height: 20px; min-height: 0; margin: 0; flex: none; accent-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

.upload { position: relative; display: flex; align-items: center; gap: var(--s-3); min-height: 68px; padding: var(--s-3) var(--s-4); border: 1.5px dashed var(--line-2); border-radius: var(--r-md); cursor: pointer; background: var(--surface); transition: border-color var(--m-out) var(--ease); }
.upload:hover { border-color: var(--brand); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.upload .grow { flex: 1; min-width: 0; }
.upload b { font-weight: 600; display: block; }
.upload span { font-size: var(--t-label); color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form__status { font-size: var(--t-small); color: var(--muted); min-height: 1.5em; }
.form__status.is-bad { color: var(--bad); }
.form-foot { display: flex; flex-direction: column; gap: var(--s-3); }
@media (min-width: 760px) {
  .form-foot { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: var(--s-5); border-top: 1px solid var(--line); }
  .form-foot .btn--block { width: auto; min-width: 220px; order: 2; }
}

/* ───────── Detail ───────── */
.facts { display: grid; grid-template-columns: 1fr; margin: 0; }
.facts > div { padding: var(--s-3) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: var(--s-3); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-size: var(--t-small); color: var(--muted); }
.facts dd { margin: 0; white-space: pre-wrap; word-break: break-word; font-weight: 500; }
@media (max-width: 479px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }
@media (min-width: 1100px) { .facts--2 { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } .facts--2 > div:nth-child(2) { border-top: 0; padding-top: 0; } }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { position: relative; padding: 0 0 var(--s-5) 32px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--card); }
.steps li::after { content: ""; position: absolute; left: 9px; top: 26px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.is-done::before { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px var(--card); }
.steps li.is-bad::before { border-color: var(--bad); background: var(--bad); box-shadow: inset 0 0 0 4px var(--card); }
.steps li.is-now::before { border-color: var(--warn); }
.steps b { font-weight: 600; display: block; }
.steps span { font-size: var(--t-small); color: var(--muted); }
.steps q { display: block; margin-top: var(--s-2); padding: var(--s-3); background: var(--surface); border-radius: var(--r-sm); font-size: 15px; quotes: "“" "”"; }

.profile-head { display: flex; gap: var(--s-4); align-items: center; }
.profile-head h1, .profile-head h2 { font-size: 22px; color: var(--ink); }
.tags { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-2); }
.progress { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.progress .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

/* ───────── Masuk / daftar ───────── */
.auth { min-height: 100vh; display: grid; background: var(--bg); }
.auth__aside { display: none; }
.auth__main { display: grid; place-items: center; padding: var(--s-6) var(--s-4); }
.auth__box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: var(--s-5); }
.auth__foot { text-align: center; font-size: 15px; color: var(--muted); }
@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--s-5); }
  .auth__aside { display: flex; flex-direction: column; justify-content: space-between; padding: var(--s-7); background: var(--brand); color: #fff; border-radius: var(--r-xl); }
  .auth__aside .logo { color: #fff; }
  .auth__aside .brandmark { background: #fff; color: var(--brand); }
  .auth__aside h2 { font-size: 44px; letter-spacing: -0.035em; line-height: 1.08; max-width: 13ch; }
  .auth__aside ul { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: flex; flex-direction: column; gap: var(--s-4); color: rgba(255, 255, 255, .88); }
  .auth__aside li { display: flex; gap: var(--s-3); align-items: center; }
  .auth__aside li .glyph { background: rgba(255, 255, 255, .16); color: #fff; }
  .auth__main .logo--mobile { display: none; }
}

/* ───────── Toast ───────── */
#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + var(--s-5)); z-index: 100; display: flex; align-items: center; gap: var(--s-2); max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-md); font-size: 15px; font-weight: 500; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--bad); }
@media (min-width: 1024px) { #toast { left: calc(50% + var(--side) / 2); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* ───────── Dokumen cetak ───────── */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 16mm 16mm 18mm; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; }
  body { background: #fff; }
}
.pd { font-family: var(--font); color: #111827; font-size: 11pt; line-height: 1.45; }
.pd-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--jnt); color: #fff; border-bottom: 5px solid var(--jnt-dark); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pd-logo { width: 60px; height: 60px; background: #fff; border-radius: 10px; display: grid; place-items: center; flex: none; }
.pd-logo img { width: 52px; height: 52px; object-fit: contain; }
.pd-id { flex: 1; min-width: 0; }
.pd-co { font-size: 17pt; font-weight: 800; letter-spacing: .01em; color: #fff; line-height: 1.1; }
.pd-sub { font-size: 10pt; color: rgba(255, 255, 255, .9); margin-top: 2px; }
.pd-no { font-size: 8.5pt; color: rgba(255, 255, 255, .9); text-align: right; }
.pd-no b { font-size: 10pt; color: #fff; }
.pd-title { text-align: center; font-size: 14pt; font-weight: 700; color: #111827; letter-spacing: .02em; text-transform: uppercase; margin: 24px 0 18px; padding-bottom: 8px; background: linear-gradient(var(--jnt), var(--jnt)) center bottom / 120px 2px no-repeat; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pd-meta { border-collapse: collapse; margin-bottom: 14px; }
.pd-meta th { text-align: left; font-weight: 400; color: #6b7280; padding: 2px 16px 2px 0; white-space: nowrap; }
.pd-meta td { font-weight: 600; padding: 2px 0; }
.pd-meta td::before { content: ": "; font-weight: 400; }
.pd-table { width: 100%; border-collapse: collapse; }
.pd-table th, .pd-table td { border: 1px solid #cfd6e2; padding: 7px 10px; text-align: left; vertical-align: top; }
.pd-table thead th { background: var(--jnt); color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pd-table tbody th { width: 34%; background: var(--jnt-soft); font-weight: 600; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pd-note { margin-top: 10px; font-style: italic; color: #6b7280; font-size: 10pt; }
.pd-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; break-inside: avoid; }
.pd-sigs--1 .pd-sig { grid-column: 2; }
.pd-sig { text-align: center; }
.pd-sig__mark { height: 84px; margin-top: 4px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.pd-sig__mark span { font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive; font-size: 22pt; color: var(--brand); line-height: 1; }
.pd-sig__mark small { font-size: 7.5pt; color: #6b7280; margin-top: 2px; }
.pd-sig__name { margin: 6px auto 0; padding-top: 4px; border-top: 1px solid #111827; width: 70%; font-weight: 600; }
.pd-foot { margin-top: 36px; font-size: 8pt; color: #6b7280; border-top: 1.5px solid var(--jnt); padding-top: 6px; }

@media (max-width: 639px) { .toolbar > div, .toolbar > form { flex: 1 1 100% !important; min-width: 0 !important; } }
@media (max-width: 1023px) { .sidebar { gap: var(--s-4); } .sidebar__nav a { min-height: 44px; } .sidebar__group { padding-top: var(--s-3); } .sidebar__foot a { min-height: 36px; } }

/* Layar sangat lebar: konten maksimal 1600px, ditengahkan di area kanan sidebar */
@media (min-width: 1980px) { main { padding-inline: calc((100vw - var(--side) - 1600px) / 2); } }
/* HP: nama aplikasi ringkas di header */
@media (max-width: 479px) { .topbar .logo__text small { display: none; } .topbar .logo__text b { font-size: 13px; } .topbar .brandlogo { width: 34px; height: 34px; } }

/* ───────── Notifikasi, pengumuman, meeting, tugas ───────── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.head-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.chip--sm { height: 22px; padding: 0 8px; font-size: 12px; }
.chip--sm::before { display: none; }
.chip--high { background: var(--bad-soft); color: var(--bad); }
.chip--high::before { display: none; }
.chip--rec-daily { background: var(--brand-soft); color: var(--brand); }
.chip--rec-weekly { background: var(--ok-soft); color: var(--ok); }
.chip--rec-monthly { background: var(--warn-soft); color: var(--warn); }
.chip--rec-once { background: var(--surface); color: var(--ink-2); }
.chip--task-todo { background: var(--surface); color: var(--ink-2); }
.chip--task-doing { background: var(--warn-soft); color: var(--warn); }
.chip--task-done { background: var(--ok-soft); color: var(--ok); }
.glyph--bad { background: var(--bad-soft); color: var(--bad); }

.day-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); font-size: var(--t-label); font-weight: 700; color: var(--ink-2); background: var(--surface); }
.day-head > span:last-child { color: var(--muted); font-weight: 600; }
.day-head.is-today { background: var(--brand-soft); color: var(--brand); }
.day-head.is-bad { background: var(--bad-soft); color: var(--bad); }
@media (min-width: 900px) { .day-head { padding-inline: var(--s-5); } }

.nitem { position: relative; display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-top: 1px solid var(--line); color: inherit; text-align: left; transition: background-color var(--m-out) var(--ease); }
.rows > .nitem:first-child { border-top: 0; }
a.nitem:hover, .nitem[role="button"]:hover { background: var(--surface); cursor: pointer; }
.nitem.is-unread { background: #faf8ff; }
.nitem.is-important .glyph { background: var(--bad-soft); color: var(--bad); }
.nitem__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nitem__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-2); font-size: var(--t-label); color: var(--muted); }
.nitem__meta > span:first-child { font-weight: 600; color: var(--ink-2); }
.nitem__meta time::before { content: "·"; margin-right: var(--s-2); }
.nitem__title { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }
.nitem.is-unread .nitem__title { font-weight: 700; }
.nitem__text { display: block; font-size: var(--t-small); color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; }
.nitem__text.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.nitem__from { font-size: var(--t-label); color: var(--muted); }
.nitem .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; margin-top: 6px; }
@media (min-width: 900px) { .nitem { padding: var(--s-4) var(--s-5); } }
.preview { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.preview .nitem { cursor: default; }

.picker { border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; background: var(--card); }
.picker__bar { display: flex; gap: var(--s-2); align-items: center; padding: var(--s-2); border-bottom: 1px solid var(--line); background: var(--surface); }
.picker__bar input { flex: 1; min-height: 44px; }
.picker__bar .link { flex: none; padding: 0 var(--s-2); background: none; border: 0; cursor: pointer; font: inherit; font-size: var(--t-small); font-weight: 600; }
.picker__list { max-height: 312px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.picker__none { padding: var(--s-4); }
.picker__foot { padding: var(--s-2) var(--s-3); border-top: 1px solid var(--line); background: var(--surface); }
.pick { display: flex; gap: var(--s-3); align-items: center; min-height: 56px; padding: var(--s-2) var(--s-3); border-top: 1px solid var(--line); cursor: pointer; }
.pick:first-child { border-top: 0; }
.pick:hover { background: var(--surface); }
.pick:has(input:checked) { background: var(--brand-soft); }
.pick input { width: 20px; height: 20px; min-height: 0; margin: 0; flex: none; accent-color: var(--brand); }
.pick .grow { flex: 1; min-width: 0; }
.pick b, .pick small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick b { font-weight: 600; font-size: 15px; }
.pick small { font-size: var(--t-label); color: var(--muted); }

.choices--rec { display: grid; grid-template-columns: 1fr; gap: var(--s-2); }
@media (min-width: 560px) { .choices--rec { grid-template-columns: 1fr 1fr; } }
.choices--rec .choice span b { display: block; font-weight: 600; }
.choices--rec .choice span small { display: block; font-size: var(--t-label); color: var(--muted); }

.mtime { flex: none; width: 52px; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.mtime b { font-size: 15px; font-weight: 700; }
.mtime small { font-size: var(--t-label); color: var(--muted); }
.pager { display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; }
.datelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.datelist li { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--line); font-size: var(--t-small); }
.datelist li:first-child { border-top: 0; }
.datelist li b { font-weight: 600; }
.datelist li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.datelist li.is-today b { color: var(--brand); }
.note { padding-left: var(--s-4); border-left: 3px solid var(--brand-soft); display: flex; flex-direction: column; gap: var(--s-2); }

.task { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2); min-height: 64px; border-top: 1px solid var(--line); }
.task:first-child, .day-head + .task { border-top: 0; }
.tcheck { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.tcheck > span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background-color var(--m-out) var(--ease), border-color var(--m-out) var(--ease); }
button.tcheck:hover > span { border-color: var(--ok); color: var(--ok); }
.task.is-done .tcheck > span { background: var(--ok); border-color: var(--ok); color: #fff; }
.task__main { flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; justify-content: center; color: inherit; }
.task__main .t { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task__main .s { display: block; font-size: var(--t-small); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task__main .doing { color: var(--warn); font-weight: 600; }
.task__main:hover .t { color: var(--brand); }
.task.is-done .t { text-decoration: line-through; color: var(--muted); }
.task__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: flex-end; flex: none; }
@media (max-width: 639px) {
  .task { flex-wrap: wrap; row-gap: 0; }
  .task__main { flex-basis: calc(100% - 60px); }
  .task__meta { width: 100%; justify-content: flex-start; padding: 0 0 var(--s-2) 52px; }
  .task__meta:empty { display: none; }
}
@media (min-width: 900px) { .task { padding-right: var(--s-5); } }
button.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: var(--t-small); font-weight: 600; }
/* Menu desktop lebih rapat agar semua menu muat tanpa digulir */
@media (min-width: 1024px) {
  .sidebar { padding-top: var(--s-5); gap: var(--s-4); }
  .sidebar__nav a { min-height: 40px; }
  .sidebar__group { padding: var(--s-3) var(--s-3) var(--s-1); }
}
@media (min-width: 1024px) and (max-height: 980px) { .sidebar__foot { display: none !important; } }
.pd-sig__mark img { display: block; max-width: 70%; height: 58px; object-fit: contain; }

/* ───────── Tanda tangan digital ───────── */
.sigbox { display: flex; flex-direction: column; gap: var(--s-2); }
.sigbox__saved, .sigbox__draw { display: flex; flex-direction: column; gap: var(--s-2); }
.sigbox[data-mode="saved"] .sigbox__draw, .sigbox[data-mode="draw"] .sigbox__saved { display: none; }
.sigbox__saved img { display: block; width: 100%; max-width: 420px; height: 120px; object-fit: contain; object-position: left center; padding: var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; }
.sigbox__pad { position: relative; height: 180px; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.sigbox__pad:hover { border-color: var(--brand); }
.sigbox__pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 1; }
.sigbox__line { position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1px solid var(--line-2); }
.sigbox__hint { position: absolute; left: 24px; bottom: 18px; font-size: var(--t-label); color: var(--muted); transition: opacity var(--m-out) var(--ease); }
.sigbox.has-ink .sigbox__hint { opacity: 0; }
.sigbox__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.sigbox__bar .link { display: inline-flex; align-items: center; gap: 6px; }
.sigbox__save { display: flex; gap: var(--s-2); align-items: center; font-size: var(--t-small); color: var(--ink-2); min-height: 44px; cursor: pointer; }
.sigbox__save input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--brand); }
.has-error .sigbox__pad { border-color: var(--bad); }
.sig-done { display: flex; flex-direction: column; gap: var(--s-2); }
.sig-done img, .sig-img { display: block; max-width: 280px; max-height: 96px; object-fit: contain; }
.notice--warn { background: var(--warn-soft); }
.notice--warn .i { color: var(--warn); }
.policy-body { font-size: 15px; line-height: 1.7; max-width: 75ch; }
.master-add { display: flex; gap: var(--s-3); align-items: flex-start; flex-wrap: wrap; }
.master-add .btn { margin-top: 27px; }
.d-only { display: none; }
@media (min-width: 640px) { .d-only { display: inline; } }
@media (max-width: 639px) { .master-add .btn { margin-top: 0; width: 100%; } }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-4); }
.sig-grid figure { margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.sig-grid img { width: 100%; height: 72px; object-fit: contain; object-position: left center; border-bottom: 1px solid var(--line-2); padding-bottom: var(--s-1); }
.sig-grid figcaption b { display: block; font-size: var(--t-small); }
.sig-grid figcaption span { font-size: var(--t-label); color: var(--muted); }
