:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #edf3f0;
  --border: #dfe8e3;
  --text: #19352d;
  --text-2: #526a61;
  --muted: #637b71;
  --accent: #19634b;
  --accent-ink: #ffffff;
  --series-1: #19634b;
  --good: #0f7b3f;
  --good-bg: #e3f4ea;
  --warn: #8a5a00;
  --warn-bg: #fdf0d5;
  --bad: #b42323;
  --bad-bg: #fbe5e4;
  --info-bg: #e7f1eb;
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--mono); font-size: 13px; }
pre { background: var(--surface-2); padding: 12px; border-radius: var(--radius); overflow-x: auto; margin: 0; }
h1 { font-size: clamp(25px, 2.4vw, 32px); letter-spacing: -.035em; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.subtitle { color: var(--text-2); margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Komponen */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 20px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; border-top: 3px solid #c9dcd1; }
.stat .label { color: var(--text-2); font-size: 13px; }
.stat .value { font-size: 30px; letter-spacing: -.035em; font-weight: 650; font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #f6f9f7; color: var(--text-2); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.approved, .badge.ok { background: var(--good-bg); color: var(--good); }
.badge.pending { background: var(--warn-bg); color: var(--warn); }
.badge.rejected, .badge.revoked, .badge.err { background: var(--bad-bg); color: var(--bad); }

.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; background: var(--info-bg); }
.flash.success { background: var(--good-bg); color: var(--good); }
.flash.error { background: var(--bad-bg); color: var(--bad); }

form.stack { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 500; }
label .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input, textarea, select {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; padding: 11px 13px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { min-height: 90px; resize: vertical; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form input { width: auto; flex: 1; min-width: 140px; }

button, .btn {
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  border-radius: 8px; padding: 10px 18px; display: inline-block; white-space: nowrap;
}
button:hover, .btn:hover { filter: brightness(1.12); text-decoration: none; }
button.secondary, .btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
button.danger { background: var(--surface); color: var(--bad); border-color: var(--border); }
button.small, .btn.small { padding: 4px 10px; font-size: 13px; }
button.link { background: none; border: 0; color: var(--accent); padding: 0; font-weight: 500; }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 6px; color: var(--text-2); }
.tabs a.active { background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; }

.key-reveal { background: var(--good-bg); border: 1px solid var(--good); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; }
.key-reveal code { font-size: 14px; word-break: break-all; background: var(--surface); padding: 6px 8px; border-radius: 4px; display: block; margin: 8px 0; }

/* Grafik batang harian: satu seri, warna --series-1 */
.bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding-top: 8px; border-bottom: 1px solid var(--border); }
.bars .bar { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; }
.bars .bar .fill { width: 100%; background: var(--series-1); border-radius: 4px 4px 0 0; min-height: 0; }
.bars .bar:hover .fill { filter: brightness(1.15); }
.bars .bar .tip {
  display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--surface); font-size: 12px; padding: 4px 8px; border-radius: 4px;
  white-space: nowrap; pointer-events: none; z-index: 2;
}
.bars .bar:hover .tip { display: block; }
.bars-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 4px; }
.bars-wrap { position: relative; }
.bars-wrap .ymax { position: absolute; top: -6px; right: 0; color: var(--muted); font-size: 12px; }
.meter { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; min-width: 60px; }
.meter > span { display: block; height: 100%; background: var(--series-1); border-radius: 3px; }

.file-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 6px; margin-top: 8px; }
.file-list button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); color: var(--text); font: 13px var(--mono); padding: 6px 10px; border-radius: 0; }
.file-list button:hover { background: var(--surface-2); }
.empty { color: var(--muted); padding: 24px; text-align: center; }
details summary { cursor: pointer; color: var(--accent); font-size: 14px; }

/* Identitas Biro Pengadaan Barang dan Jasa Setda Prov. Kalbar */
::selection { background: #e7ce8d; color: #123e34; }
:focus-visible { outline: 3px solid #c29943; outline-offset: 4px; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 20; background: white; padding: 12px 20px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 44px; height: 60px; flex-shrink: 0; object-fit: contain; }
.brand-name { min-width: 0; }
.brand strong { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.015em; line-height: 1.35; overflow-wrap: anywhere; }
.brand small { display: block; font-size: 10px; letter-spacing: .04em; color: #c6d8cd; margin-top: 5px; line-height: 1.5; }
.auth-intro .brand { container-type: inline-size; }
.auth-intro .brand strong { font-size: clamp(11px, 3.6cqi, 19px); white-space: nowrap; overflow-wrap: normal; }
.auth-intro .brand small { font-size: clamp(9px, 2.4cqi, 12px); letter-spacing: .025em; }
.auth-intro .brand-mark { width: 52px; height: 71px; }
.sidebar { background: #123e34; color: #d1e3d9; padding: 27px 18px 18px; display: flex; flex-direction: column; gap: 7px; }
.sidebar-caption { color: #dfbd70; font-size: 9px; letter-spacing: .2em; margin: 17px 12px 8px; padding-bottom: 20px; border-bottom: 1px solid #ffffff1c; }
.nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #a1bdb0; padding: 17px 14px 10px; }
.nav-icon { width: 19px; height: 19px; flex-shrink: 0; }
.sidebar .nav { display: flex; align-items: center; gap: 12px; color: #d1e3d9; font-size: 13px; padding: 11px 14px; border-radius: 7px; margin-bottom: 4px; border: 1px solid transparent; }
.sidebar .nav:hover { background: #ffffff0c; text-decoration: none; }
.sidebar .nav.active { color: #fff; background: #ffffff12; border-color: #ffffff12; box-shadow: inset 3px 0 #dfbd70; }
.sidebar .nav.active .nav-icon { color: #dfbd70; }
.spacer { flex: 1; min-height: 32px; }
.sidebar-docs { display: flex; align-items: center; gap: 10px; padding: 14px 9px; color: #dbe8df; font-size: 12px; border: 1px solid #ffffff24; border-radius: 8px; }
.sidebar-docs small { display: block; color: #a1bdb0; font-size: 9px; margin-top: 3px; }
.sidebar-docs > span:last-child { margin-left: auto; color: #dfbd70; }
.me { border-top: 1px solid #ffffff1c; display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 20px 2px 0; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d9e8dd; color: #123e34; flex-shrink: 0; font-size: 13px; font-weight: 700; }
.me-info { min-width: 0; flex: 1; }
.me-info strong, .me-info > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-info strong { font-size: 12px; color: #fff; }
.me-info > span { font-size: 10px; color: #a1bdb0; }
button.logout { background: transparent; border: 0; color: #d1e3d9; padding: 6px; font-size: 20px; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #ffffff; border-bottom: 1px solid var(--border); padding: 21px 36px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; }
.crumb-divider { color: #b1beb7; margin: 0 14px; }
.version-tag { display: flex; gap: 8px; align-items: center; font-size: 10px; letter-spacing: .06em; color: #526a61; white-space: nowrap; }
.version-tag code { font-size: 10px; background: #edf3f0; padding: 2px 6px; border-radius: 4px; }
.status-dot { display: inline-block; height: 6px; width: 6px; background: #78be92; border-radius: 50%; flex-shrink: 0; }
.workspace main { padding: 32px 36px; width: 100%; max-width: 1440px; margin: 0 auto; flex: 1; min-width: 0; }
.workspace-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 0 36px; padding: 20px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.dashboard-hero { background: #123e34; color: white; border-radius: 14px; padding: 30px 34px; margin-bottom: 26px; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; }
.dashboard-hero:after { content: ''; position: absolute; right: -90px; top: -140px; width: 480px; height: 480px; border: 1px solid #ffffff0c; border-radius: 50%; pointer-events: none; }
.eyebrow { flex-wrap: wrap; line-height: 1.8; font-size: 10px; letter-spacing: .17em; font-weight: 600; color: #dfbd70; display: flex; align-items: center; gap: 10px; }
.dashboard-hero h1 { color: #fff; margin: 12px 0 9px; }
.dashboard-hero p { color: #c0d5c9; font-size: 13px; line-height: 1.8; margin: 0 0 20px; }
.hero-btn { background: #e4c57e; color: #173c30; border-color: #e4c57e; font-size: 12px; }
.hero-btn span { margin-left: 16px; }
.hero-code { padding: 20px; text-align: center; min-width: 230px; border-left: 1px solid #ffffff1c; }
.hero-code > span { color: #aec6b8; font-size: 9px; letter-spacing: .2em; }
.hero-code strong { display: block; font: 58px/1.5 var(--mono); color: #dfbd70; letter-spacing: -.08em; }
.hero-code em { font-style: normal; color: #e6eee9; font-size: 33px; letter-spacing: -.06em; }
.hero-code code { font-size: 10px; color: #aec6b8; }
.card h2 { letter-spacing: -.025em; }
.card ol { padding-left: 20px; color: var(--text-2); font-size: 14px; }
.card ol li { padding: 5px 0; }
.card, .stat { box-shadow: 0 3px 8px #173c3003; }
tbody tr:hover { background: #f8fbf9; }
.empty { padding: 42px 22px; border-style: dashed; font-size: 13px; }
.empty:before { content: '⋮'; display: block; color: #9bb7a8; font-size: 30px; margin-bottom: 8px; }
.subtitle { font-size: 14px; line-height: 1.7; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: #fbfcfa; }
.auth-intro { background: #123e34; padding: 38px clamp(30px, 5vw, 80px); color: white; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-intro:before { content: ''; position: absolute; width: 680px; height: 680px; border: 1px solid #d0e4d710; border-radius: 50%; left: -340px; top: 18%; box-shadow: 0 0 0 65px #d0e4d705, 0 0 0 130px #d0e4d704; pointer-events: none; }
.auth-intro > * { position: relative; }
.intro-content { margin: auto 0; padding: 60px 0 38px; max-width: 470px; }
.gold-line { width: 25px; height: 1px; background: #dfbd70; }
.intro-content h2 { font-size: clamp(32px, 3.35vw, 49px); font-weight: 550; letter-spacing: -.045em; line-height: 1.2; margin: 23px 0 19px; }
.intro-content h2 em { color: #e4c57e; font-style: normal; }
.intro-content > p { color: #c0d5c9; font-size: 14px; max-width: 380px; line-height: 1.9; margin-bottom: 32px; }
.api-window { border: 1px solid #ffffff24; background: #0d3029; border-radius: 12px; box-shadow: 0 18px 36px #07231c26; overflow: hidden; }
.api-window-bar { display: flex; gap: 15px; align-items: center; color: #a1bdb0; font-size: 10px; border-bottom: 1px solid #ffffff10; padding: 13px 18px; }
.api-window-bar > span:last-child { margin-left: auto; font-family: var(--mono); font-size: 9px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #638579; }
.window-dots i:first-child { background: #c0a368; }
.api-endpoint { display: flex; align-items: center; gap: 10px; padding: 20px 20px 6px; }
.api-endpoint > span { color: #b7e3c3; background: #a3d8ac16; font: 10px var(--mono); padding: 4px 7px; border: 1px solid #a3d8ac26; border-radius: 4px; }
.api-endpoint code { color: #d9e9df; font-size: 11px; overflow-wrap: anywhere; }
.api-window pre { background: none; color: #e3eee7; font-size: 12px; line-height: 1.9; padding: 12px 22px 20px; }
.code-comment { color: #93b2a4; font-size: 10px; }
.code-key { color: #a9d2b7; }
.code-number { color: #e4c57e; }
.code-dim { color: #93b2a4; }
.api-window-footer { border-top: 1px solid #ffffff10; padding: 12px 20px; display: flex; align-items: center; gap: 7px; color: #a1bdb0; font-size: 9px; }
.api-window-footer > span:last-child { margin-left: auto; font-family: var(--mono); }
.intro-features { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 23px; color: #c0d5c9; font-size: 10px; }
.intro-features > span { display: flex; gap: 8px; align-items: center; }
.intro-features svg { width: 15px; height: 15px; color: #dfbd70; }
.intro-footer { display: flex; gap: 14px; align-items: center; color: #a1bdb0; font-size: 10px; padding-top: 24px; border-top: 1px solid #ffffff17; }
.intro-footer strong { color: #cfdfd5; font-weight: 400; }
.equator-mark { font-size: 28px; font-weight: 300; color: #dfbd70; letter-spacing: -.08em; }
.auth-side { display: flex; flex-direction: column; padding: 40px clamp(24px, 5vw, 80px) 24px; min-width: 0; }
.auth-wrap { width: 100%; max-width: 390px; margin: auto; padding: 55px 0; }
.auth-card { border: 0; background: none; padding: 0; box-shadow: none; }
.section-kicker { color: #678172; font-size: 9px; letter-spacing: .18em; font-weight: 650; display: block; margin-bottom: 17px; }
.auth-card h1 { font-size: clamp(27px, 2.5vw, 35px); letter-spacing: -.045em; line-height: 1.18; }
.auth-card .subtitle { margin-top: 13px; margin-bottom: 32px; max-width: 340px; color: #637b71; font-size: 13px; }
.auth-card label { font-size: 12px; gap: 8px; font-weight: 600; }
.auth-card input { background: #fff; padding: 13px 14px; border-radius: 7px; font-size: 13px; font-weight: 400; }
input::placeholder { color: #7b8d83; opacity: 1; }
.auth-card form.stack { gap: 20px; }
.auth-card button { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; padding: 13px 17px; font-size: 12px; }
.auth-card > p:last-child { text-align: center; margin-top: 24px; font-size: 12px; }
.auth-card > p:last-child a { font-weight: 650; }
.auth-note { display: flex; align-items: center; gap: 12px; color: #637b71; border-top: 1px solid var(--border); padding-top: 23px; font-size: 10px; margin-top: 30px; }
.auth-note svg { width: 16px; height: 16px; }
.auth-footer > span { max-width: 270px; }
.auth-footer a { white-space: nowrap; }
.auth-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 9px; color: var(--muted); }
@media (min-width: 1600px) { .intro-content { margin-left: auto; margin-right: auto; width: 100%; } }
@media (max-width: 1050px) {
  .layout { grid-template-columns: 236px minmax(0, 1fr); }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .sidebar .brand strong { font-size: 14px; }
  .sidebar .brand small { font-size: 9px; }
  .workspace main { padding: 25px; }
  .topbar { padding: 20px 25px; }
  .hero-code { min-width: 160px; padding: 12px; }
  .hero-code strong { font-size: 45px; }
  .hero-code em { font-size: 25px; }
  .auth-intro { padding: 32px; }
  .auth-side { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding: 20px 18px; gap: 8px; }
  .sidebar > .brand { margin-bottom: 8px; }
  .sidebar-caption, .sidebar .spacer, .sidebar-docs { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav-label { width: 100%; padding: 6px 9px; font-size: 9px; }
  .sidebar .nav { margin: 0; padding: 8px; font-size: 11px; gap: 6px; }
  .nav-icon { width: 16px; height: 16px; }
  .me { margin-top: 8px; padding-top: 12px; }
  .topbar { padding: 16px 20px; font-size: 11px; }
  .workspace main { padding: 24px 18px; }
  .workspace-footer { margin: 0 18px; flex-wrap: wrap; }
  .dashboard-hero { padding: 24px; }
  .hero-code { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 16px; }
  .stat .label { font-size: 11px; }
  .stat .value { font-size: 25px; }
  .card { padding: 19px; }
  .auth-layout { display: flex; flex-direction: column; }
  .auth-intro { padding: 24px; }
  .intro-content { padding: 28px 0 0; max-width: 100%; margin: 0; }
  .intro-content h2 { font-size: 32px; margin: 15px 0 12px; }
  .intro-content > p { margin: 0; max-width: 430px; font-size: 12px; }
  .api-window, .intro-features, .intro-footer { display: none; }
  .auth-side { padding: 28px 24px 20px; flex: 1; }
  .auth-wrap { padding: 12px 0 42px; }
  .auth-card { padding: 0; }
  .auth-card h1 { font-size: 28px; }
  .auth-card .subtitle { margin-bottom: 25px; }
}
/* Halaman autentikasi: jarak mengikuti tinggi viewport. */
@media (min-width: 761px) {
  .auth-screen { min-height: 100dvh; }
  .auth-screen .auth-intro { padding-top: clamp(20px, 3vh, 38px); padding-bottom: clamp(20px, 3vh, 38px); }
  .auth-screen .intro-content { padding: clamp(16px, 3vh, 40px) 0; }
  .auth-screen .auth-side { padding-top: 24px; padding-bottom: 20px; }
  .auth-screen .auth-wrap { padding: clamp(16px, 3vh, 36px) 0; }
}
@media (min-width: 761px) and (max-height: 1000px) {
  .auth-screen .intro-content h2 { font-size: clamp(28px, 2.8vw, 38px); margin: 14px 0 12px; }
  .auth-screen .intro-content > p { font-size: 12px; line-height: 1.7; margin: 0 0 18px; }
  .auth-screen .api-window-bar { padding: 8px 18px; }
  .auth-screen .api-endpoint { padding: 12px 18px 4px; }
  .auth-screen .api-window pre { font-size: 11px; line-height: 1.5; padding: 8px 18px 12px; }
  .auth-screen .api-window-footer { padding: 8px 18px; }
  .auth-screen .intro-features { margin-top: 14px; }
  .auth-screen .intro-footer { padding-top: 14px; }
  .auth-screen .auth-card h1 { font-size: 30px; }
  .auth-screen .section-kicker { margin-bottom: 12px; }
  .auth-screen .auth-card .subtitle { margin: 10px 0 22px; }
  .auth-screen .auth-card form.stack { gap: 16px; }
  .auth-screen .auth-card input { padding: 11px 14px; }
  .auth-screen .auth-card > p:last-child { margin-top: 18px; }
  .auth-screen .auth-note { margin-top: 20px; padding-top: 16px; }
}
@media (min-width: 761px) and (max-height: 800px) {
  .auth-screen .intro-features, .auth-screen .intro-footer { display: none; }
  .auth-screen .intro-content { padding: 16px 0 0; }
  .auth-screen .intro-content h2 { font-size: 30px; }
}
@media (min-width: 761px) and (max-height: 580px) {
  .auth-screen .api-window pre, .auth-screen .api-window-footer { display: none; }
  .auth-screen .api-endpoint { padding-bottom: 12px; }
  .auth-screen .auth-side { padding-top: 16px; padding-bottom: 16px; }
  .auth-screen .auth-wrap { padding: 8px 0; }
  .auth-screen .auth-note { margin-top: 12px; padding-top: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button, input { transition: background-color .15s, border-color .15s, box-shadow .15s; }
}

/* Ornamen tenun geometris dan khatulistiwa pada halaman autentikasi. */
.auth-screen .auth-side { position: relative; isolation: isolate; background: #fbfcfa; }
.kalbar-ornaments { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.woven-corner { position: absolute; width: clamp(220px, 25vw, 350px); height: auto; top: -25px; right: -25px; color: #97702e; opacity: .5; transform: rotate(-6deg); mask-image: linear-gradient(225deg, #000 40%, transparent 90%); }
.equator-ornament { position: absolute; width: clamp(260px, 33vw, 470px); height: auto; bottom: -100px; left: -130px; color: #326952; opacity: .24; stroke: currentColor; stroke-width: 1.5; }
.woven-border { position: absolute; width: min(85%, 560px); height: auto; bottom: 45px; right: -24px; color: #97702e; opacity: .5; mask-image: linear-gradient(90deg, transparent, #000 35%); }
.auth-screen .auth-wrap { position: relative; z-index: 1; border-radius: 16px; background: radial-gradient(ellipse at center, #fbfcfa 60%, #fbfcfa00 75%); }
.auth-screen .auth-footer { position: relative; z-index: 1; justify-content: flex-end; }
@media (max-width: 760px) {
  .woven-corner { width: 200px; top: -30px; right: -35px; opacity: .35; }
  .equator-ornament { width: 280px; bottom: -120px; left: -150px; }
  .woven-border { bottom: 14px; opacity: .35; }
}

/* Penjelajah folder R2 */
.grid-2 > .card { min-width: 0; }
.r2-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 14px; background: var(--surface-2); border-radius: 8px; font-size: 12px; overflow-wrap: anywhere; }
.r2-breadcrumbs button { white-space: normal; overflow-wrap: anywhere; text-align: left; }
.r2-toolbar { margin: 14px 0; gap: 10px; }
.r2-entries { border: 1px solid var(--border); border-radius: 8px; max-height: 380px; overflow-y: auto; }
button.r2-entry { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: var(--surface); color: var(--text); padding: 13px 14px; text-align: left; white-space: normal; font-size: 12px; font-weight: 500; }
button.r2-entry:last-child { border-bottom: 0; }
button.r2-entry:hover, button.r2-entry.selected { background: var(--info-bg); filter: none; }
.r2-entry .nav-icon { color: var(--accent); }
.r2-folder .nav-icon { color: #9a742f; }
.r2-entry-name { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.r2-entry-name small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.r2-entry-action { flex-shrink: 0; color: var(--accent); font-size: 10px; }
.r2-selection { padding: 12px; background: var(--good-bg); color: var(--good); border-radius: 6px; overflow-wrap: anywhere; }
.r2-pagination { margin-top: 12px; text-align: right; }
.r2-search { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.r2-search form { margin-top: 12px; }
#r2-loading { display: block; height: 20px; }
.r2-search .file-list button { overflow-wrap: anywhere; white-space: normal; }

.json-preview { max-height: 480px; overflow: auto; line-height: 1.7; tab-size: 2; }
.json-preview code { white-space: pre; }

/* Pendaftaran: pasangan kolom mempersingkat formulir pada monitor. */
@media (min-width: 1100px) {
  .auth-register .auth-wrap { max-width: 460px; }
  .auth-register .auth-card form.registration-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .registration-form .full-width { grid-column: 1 / -1; }
  .registration-form label { min-width: 0; }
  .registration-form label:has(input[type="password"]) { display: grid; grid-template-rows: auto auto; }
  .registration-form label .hint { grid-row: 3; }
  .registration-form input { min-width: 0; }
}
@media (min-width: 761px) and (max-height: 800px) {
  .auth-register .auth-wrap { padding-top: 12px; padding-bottom: 12px; }
  .auth-register .auth-card form.registration-form { gap: 12px; }
  .auth-register .auth-card .subtitle { margin-bottom: 16px; }
  .auth-register .auth-card label { gap: 5px; }
  .auth-register .auth-card input { padding-top: 9px; padding-bottom: 9px; }
  .auth-register .auth-card { margin-bottom: 12px; }
}

/* Panduan pengguna API */
.guide-address > code { display: block; font-size: clamp(15px, 2vw, 23px); overflow-wrap: anywhere; }
.guide-address .section-kicker { margin-bottom: 10px; }
.guide-address p { margin-bottom: 0; }
.guide-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; font-size: 13px; }
.guide-section { scroll-margin-top: 24px; }
.guide-section p, .guide-section li { font-size: 14px; line-height: 1.8; }
.guide-section li { margin-bottom: 8px; }
.guide-section pre { margin: 16px 0; line-height: 1.7; max-height: 600px; }
.guide-section > :last-child { margin-bottom: 0; }
@media print {
  .sidebar, .topbar, .workspace-footer, .guide-toc, .skip-link { display: none; }
  .layout { display: block; }
  .workspace main { padding: 0; }
  .guide-section pre { max-height: none; white-space: pre-wrap; overflow-wrap: anywhere; }
  .guide-section table { font-size: 11px; }
}

/* Notifikasi dan audit */
.sidebar .nav-count { margin-left: auto; font-size: 10px; padding: 0 6px; }
.notification-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.notification-card.unread { border-left: 3px solid #b58b38; }
.notification-message { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.audit-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; align-items: end; }
.audit-filters label { min-width: 0; }
.audit-changes { margin-top: 16px; }
.audit-changes > div { min-width: 0; }
.audit-changes pre { max-height: 360px; }
@media (max-width: 760px) { .topbar { flex-wrap: wrap; } }

.forgot-link { align-self: flex-end; margin-top: -7px; }
button:disabled { cursor: not-allowed; opacity: .55; }

/* Dataset API tester */
.tester-controls { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.tester-group { border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; padding: 14px; }
.tester-group legend { font-weight: 600; padding: 0 6px; }
.tester-column-picker { border: 1px solid var(--border); padding: 14px; border-radius: var(--radius); }
.tester-column-picker summary { cursor: pointer; font-weight: 600; }
.tester-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; max-height: 260px; overflow: auto; }
.tester-columns label { display: flex; flex-direction: row; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.tester-columns input[type="checkbox"] { width: auto; margin-top: 4px; flex-shrink: 0; }
.tester-query-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tester-query-row > input, .tester-query-row > select { flex: 1 1 170px; min-width: 0; }
.tester-rows { display: grid; gap: 12px; margin-bottom: 12px; }
.tester-result { margin-top: 24px; }
.tester-request { overflow-wrap: anywhere; }
.tester-examples { display: grid; gap: 18px; }
.api-tester pre { max-height: 440px; white-space: pre; }
.api-tester [data-query-error] { color: var(--bad, #a12828); }
