:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #6b665e;
  --line: #e6e1d8;
  --line-strong: #cfc8bb;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fdeee6;
  --ok: #166534;
  --ok-soft: #e6f4ea;
  --warn: #92400e;
  --warn-soft: #fef3c7;
  --bad: #b91c1c;
  --bad-soft: #fde8e8;
  --info: #1e40af;
  --info-soft: #e8eefc;
  --radius: 10px;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 36px 0 20px; font-weight: 650; }
h2 { font-size: 16px; margin: 0 0 14px; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .94em; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.wordmark.big { font-size: 30px; }
nav { display: flex; gap: 4px; flex: 1; }
nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; }
nav a:hover { color: var(--ink); background: var(--bg); }
nav a.on { color: var(--ink); background: var(--accent-soft); }
.top-r { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.bal { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.link { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }

/* controls */
label { display: block; font-size: 14px; font-weight: 550; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, summary:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: #a8380a; border-color: #a8380a; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--bg); }
.btn.sm { white-space: nowrap; min-height: 32px; padding: 0 12px; font-size: 13px; }
.err { color: var(--bad); font-size: 14px; min-height: 1.4em; margin: 8px 0; }

/* layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding-bottom: 60px; }
.sum { position: sticky; top: 84px; }
.field { margin-bottom: 18px; }
.field small { display: block; margin-top: 6px; font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drip { margin: 4px 0 18px; }
.drip summary { cursor: pointer; font-weight: 550; font-size: 14px; padding: 6px 0; }
.drip .two { margin-top: 12px; }
.facts { margin: 0 0 18px; display: grid; gap: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; }
.total strong { font-size: 22px; }
#svcInfo:empty { display: none; }

.banner { margin-top: 20px; padding: 12px 16px; border-radius: 8px; font-size: 14px; background: var(--warn-soft); color: var(--warn); border: 1px solid #f3dc95; }
.banner.bad { background: var(--bad-soft); color: var(--bad); border-color: #f4bcbc; }

/* tables */
.bar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.bar input[type=search] { max-width: 340px; }
.bar select { max-width: 220px; }
.inline { display: flex; gap: 8px; }
.inline input { width: 240px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #fcfbf8; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdfcf9; }
.r { text-align: right; }
td.nowrap { white-space: nowrap; }
td.trunc { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted); margin-right: 4px; }
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.st.pending { background: var(--warn-soft); color: var(--warn); }
.st.run { background: var(--info-soft); color: var(--info); }
.st.done { background: var(--ok-soft); color: var(--ok); }
.st.bad { background: var(--bad-soft); color: var(--bad); }
.st.na { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.empty { text-align: center; color: var(--muted); padding: 36px 0; }
.acts { display: flex; gap: 6px; justify-content: flex-end; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 36px; width: 100%; max-width: 380px; }
.login-card p.muted { margin: 6px 0 24px; }
.login-card .btn { width: 100%; margin-top: 6px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .sum { position: static; }
  .top-in { gap: 12px; flex-wrap: wrap; height: auto; padding: 10px 20px; }
  nav { order: 3; flex-basis: 100%; }
  .top-r { margin-left: auto; }
  h1 { font-size: 24px; margin-top: 24px; }
  .card { padding: 18px; }
  .inline { width: 100%; } .inline input { flex: 1; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---- penyempurnaan tampilan ---- */
:root { --serif: 'Fraunces', Georgia, 'Times New Roman', serif; --shadow: 0 1px 0 rgba(28,26,23,.04), 0 8px 24px -12px rgba(28,26,23,.14); }
body { background: var(--bg) radial-gradient(1100px 380px at 85% -120px, #fbe3d3 0%, rgba(251,227,211,0) 70%) no-repeat; }
h1 { font-family: var(--serif); font-weight: 700; font-size: 38px; letter-spacing: -0.025em; margin: 44px 0 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.wordmark.big { font-size: 34px; gap: 12px; margin-bottom: 4px; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); position: relative; flex: none; }
.mark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5 16V7l6 6 6-6v9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"); background-size: cover; }
.top { background: rgba(255,255,255,.88); backdrop-filter: blur(8px); }
nav a.on { background: var(--ink); color: #fff; }

.card { box-shadow: var(--shadow); border-radius: 14px; }
.step { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; margin: 0 0 16px; }
.step span { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; display: grid; place-items: center; font-family: var(--mono); }
.step:not(:first-child) { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
input, select, textarea { border-radius: 9px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #b5ad9e; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.btn { box-shadow: 0 1px 0 rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.18); }
#orderBtn { width: 100%; min-height: 50px; font-size: 16px; margin-top: 4px; }

/* ringkasan: satu-satunya blok gelap, jadi titik fokus */
.sum { background: var(--ink); color: #f4f1ea; border-color: var(--ink); }
.sum h2 { font-family: var(--serif); font-size: 20px; color: #fff; }
.sum .facts > div { border-bottom-color: rgba(255,255,255,.12); }
.sum .facts dt, .sum .muted { color: #a8a196; }
.sum .total { border-top: 1px solid rgba(255,255,255,.12); margin-top: 6px; padding-top: 18px; }
.sum .total span { color: #d8d2c6; }
.sum .total strong { color: #ffb98f; font-size: 26px; }

.table-wrap { box-shadow: var(--shadow); border-radius: 14px; }
th { position: sticky; top: 0; }
.tag { background: var(--bg); }
.login-card { box-shadow: var(--shadow); border-radius: 18px; padding: 40px 36px; }
.login-card .muted { margin-bottom: 28px; }
@media (max-width: 820px) { h1 { font-size: 30px; margin-top: 28px; } }
