/* Parama Mail — tema sederhana untuk halaman pengunjung.
   Latar abu-abu muda, kartu putih, satu warna aksen biru-ungu. Mendukung tema gelap. */
:root {
  --bg: #f4f7fc; --surface: #ffffff; --surface-2: #f3f6fb; --line: #e2e8f2;
  --ink: #0f1b33; --muted: #5f6b82; --accent: #2563eb; --accent-2: #0ea5e9; --accent-ink: #ffffff; --accent-soft: #e8f0ff;
  --grad: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --ok: #12a150; --warn: #c2770c; --danger: #e5484d; --frame-bg: #ffffff;
  --f: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(20, 20, 43, .04), 0 8px 24px -12px rgba(20, 20, 43, .12);
  --shadow-lg: 0 2px 6px rgba(20, 20, 43, .05), 0 24px 48px -20px rgba(30, 64, 175, .25);
  --glow: rgba(37, 99, 235, .16); --dots: rgba(15, 27, 51, .06);
  --sun: inline-block; --moon: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080d18; --surface: #0f1726; --surface-2: #15203a; --line: #22304a;
    --ink: #e8eefb; --muted: #93a1bb; --accent: #60a5fa; --accent-2: #38bdf8; --accent-ink: #ffffff; --accent-soft: #142849;
    --grad: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    --ok: #3ddc84; --warn: #f5b041; --danger: #ff6b6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .8);
    --glow: rgba(59, 130, 246, .22); --dots: rgba(255, 255, 255, .05);
    --sun: none; --moon: inline-block; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080d18; --surface: #0f1726; --surface-2: #15203a; --line: #22304a;
  --ink: #e8eefb; --muted: #93a1bb; --accent: #60a5fa; --accent-2: #38bdf8; --accent-ink: #ffffff; --accent-soft: #142849;
  --grad: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
  --ok: #3ddc84; --warn: #f5b041; --danger: #ff6b6b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .8);
  --glow: rgba(59, 130, 246, .22); --dots: rgba(255, 255, 255, .05);
  --sun: none; --moon: inline-block; color-scheme: dark;
}

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--f); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
svg { flex: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- Atas ---------- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.mark { width: 34px; height: 34px; }
.mark-bg { fill: var(--accent); }
.theme-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.theme-btn:hover { color: var(--ink); }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ic-sun { display: var(--sun); } .ic-moon { display: var(--moon); }

/* ---------- Tata letak ---------- */
.layout { flex: 1; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 24px; padding-bottom: 40px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.inbox-col { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 901px) { .mailbox { position: sticky; top: 20px; } }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); padding-top: 16px; } }

/* ---------- Kotak alamat ---------- */
.mailbox { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.mb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.postmark { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-radius: 999px; padding: 3px 9px; }
.postmark.off { color: var(--muted); background: var(--surface-2); }
.addr { display: block; font: 700 17px/1.4 var(--f-mono); padding: 14px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line); overflow-wrap: anywhere; cursor: pointer; text-align: center; }
.addr:hover { border-color: var(--accent); }
.addr .at { color: var(--accent); }
.addr .dom { color: var(--muted); }

.domains { display: flex; flex-wrap: wrap; gap: 6px; }
.domains:empty { display: none; }
.dchip { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 5px 11px; font: 600 12.5px var(--f-mono); cursor: pointer; }
.dchip:hover { color: var(--ink); border-color: var(--muted); }
.dchip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover { border-color: var(--accent); color: var(--accent); }
.tool.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tool.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.tool.danger:hover { border-color: var(--danger); color: var(--danger); }
.tool[disabled] { opacity: .5; cursor: default; }
.tool.spin svg { animation: spin .7s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

.links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.link { border: 0; background: none; padding: 2px 0; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.link:hover, .link[aria-expanded="true"] { color: var(--accent); text-decoration-color: currentColor; }
.meta { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.meta b { color: var(--ink); font-weight: 600; }

/* ---------- Tombol & form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: transparent; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: default; }
.panel { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.lbl { font-size: 12px; font-weight: 700; color: var(--muted); }
.hint { margin: 0; color: var(--muted); font-size: 12.5px; }
.hint.ok { color: var(--ok); font-weight: 600; } .hint.bad { color: var(--danger); font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row input { flex: 1 1 140px; }
input, select { min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); padding: 8px 12px; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.pick-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pick-row input { flex: 1 1 140px; font-family: var(--f-mono); font-weight: 600; }
.pick-row .at { font: 700 16px var(--f-mono); color: var(--accent); }
.pick-row select { flex: 1 1 120px; font-family: var(--f-mono); font-size: 14px; }
.more-block { display: flex; flex-direction: column; gap: 8px; }
.more-block + .more-block { border-top: 1px solid var(--line); padding-top: 12px; }
.key { font: 600 12.5px var(--f-mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; flex: 1 1 100%; }
.confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }

/* ---------- Kotak masuk ---------- */
.notice { border-radius: 12px; padding: 11px 14px; background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); font-size: 14px; }
.mailroom { overflow: hidden; min-height: 460px; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pane-head h2 { margin: 0; font-size: 16px; font-weight: 800; }
.count { color: var(--muted); font-weight: 600; font-size: 14px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
.live.off i { background: var(--warn); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; text-align: left; background: none; border: 0; padding: 13px 18px 13px 30px; cursor: pointer; }
.item:hover { background: var(--surface-2); }
.dot { position: absolute; left: 14px; top: 20px; width: 7px; height: 7px; border-radius: 50%; }
.item.unread .dot { background: var(--accent); }
.item .from { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.unread .from, .item.unread .subj { font-weight: 800; }
.item .time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.item .subj, .item .prev { grid-column: 1 / 3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .subj { font-size: 14.5px; }
.item .prev { color: var(--muted); font-size: 13px; }
.chips { grid-column: 1 / 3; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.chip { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.chip.code { font-family: var(--f-mono); color: var(--accent); background: var(--accent-soft); border-color: transparent; }

.empty { padding: 56px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.empty p { margin: 0; max-width: 34ch; font-size: 14px; }
.empty-title { color: var(--ink); font-weight: 800; font-size: 16px !important; }
.empty-art { width: 120px; height: 90px; margin-bottom: 12px; }
.ea-back { fill: var(--accent-soft); stroke: color-mix(in srgb, var(--accent) 40%, transparent); stroke-width: 2; }
.ea-line { fill: none; stroke: color-mix(in srgb, var(--accent) 40%, transparent); stroke-width: 2; }
.ea-paper { fill: var(--surface); stroke: var(--line); stroke-width: 2; animation: float 3s ease-in-out infinite; }
.ea-text { stroke: var(--line); stroke-width: 4; stroke-linecap: round; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-4px); } }

/* Membaca email: daftar diganti isi email, tombol kembali di atas */
.reader { display: none; }
.mailroom.reading .list-pane { display: none; }
.mailroom.reading .reader { display: block; }
.reader-empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.reader-empty p { margin: 0; }
.reader-body { display: flex; flex-direction: column; }
.r-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.r-back { align-self: flex-start; }
.r-subj { margin: 0; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.r-from { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.r-from b { font-weight: 700; }
.r-from .addrsm { color: var(--muted); font-family: var(--f-mono); font-size: 12.5px; overflow-wrap: anywhere; }
.r-from time { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.r-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.otp { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; }
.otp span { font-size: 12px; font-weight: 700; color: var(--muted); }
.otp b { font: 700 26px/1 var(--f-mono); letter-spacing: .14em; color: var(--ink); }
.otp .btn { margin-left: auto; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.att { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 13px; }
.att:hover { border-color: var(--accent); }
.att .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; font-weight: 700; }
.att .sz { color: var(--muted); }
.r-note { padding: 10px 20px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface-2); }
.r-frame { display: block; width: 100%; border: 0; min-height: 360px; background: var(--frame-bg); }
.r-text { margin: 0; padding: 18px 20px 24px; white-space: pre-wrap; overflow-wrap: anywhere; font: 14.5px/1.7 var(--f); }

/* ---------- Bawah ---------- */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; background: var(--surface); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot-in { padding-block: 16px; display: flex; gap: 6px 20px; flex-wrap: wrap; justify-content: space-between; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; max-width: calc(100% - 32px); }

@media (max-width: 480px) {
  .theme-label { display: none; }
  .mailbox { padding: 16px; }
  .addr { font-size: 15px; }
  .otp .btn { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Menu atas ---------- */
.top-in .brand { margin-right: auto; }
.nav { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.nav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
@media (max-width: 560px) {
  .top-in { flex-wrap: wrap; padding-block: 10px; }
  .nav { order: 3; width: 100%; }
  .nav a { flex: 1; text-align: center; }
}

/* ---------- Halaman OTP Gmail (/gmail) ---------- */
.single { flex: 1; max-width: 560px; padding-top: 28px; padding-bottom: 40px; }
.otp-card { padding: clamp(18px, 4vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.otp-card h1 { margin: 0; font-size: clamp(21px, 4.5vw, 26px); line-height: 1.2; letter-spacing: -.01em; }
.otp-lede { margin: 0; color: var(--muted); }
.otp-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.otp-label input { color: var(--ink); font-family: var(--f-mono); }
.otp-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--surface-2); border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px 18px; min-height: 80px; }
.otp-box b { font: 700 clamp(26px, 7vw, 34px)/1 var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.otp-box.got { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.otp-box.got b { color: var(--ink); }
.otp-meta { margin: 0; font-size: 13.5px; color: var(--muted); min-height: 1.4em; }
.otp-meta.bad { color: var(--danger); }
.otp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.otp-actions .btn { flex: 1 1 180px; }
.btn.big { min-height: 48px; font-size: 15px; }
.otp-foot { margin: 0; font-size: 12.5px; color: var(--muted); }

.otp-links { display: flex; flex-direction: column; gap: 8px; }
.otp-link { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.otp-link a.btn { flex: 1 1 220px; min-height: 48px; overflow-wrap: anywhere; text-align: center; }

/* Halaman OTP Gmail: kolom alamat Gmail bisa diketik */
.addr-in { width: 100%; color: var(--ink); font: 700 16px/1.4 var(--f-mono); min-height: 52px; cursor: text; }
.addr-in:focus { border-style: solid; }
.r-links { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 22px; }
.r-links .lbl { margin-bottom: 2px; }
.r-none { padding: 18px 20px 24px; color: var(--muted); margin: 0; }
.chip.link { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: transparent; }

/* Akun & halaman login */
.acct { display: flex; align-items: center; gap: 8px; margin: 0; }
.acct-name { font: 600 13px var(--f-mono); color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .acct-name { display: none; } }
.login-body { justify-content: center; position: relative; overflow-x: hidden; }
.login-body::before { content: ""; position: fixed; inset: -20% -10% auto; height: 70vh; z-index: -1;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.login-wrap { width: 100%; max-width: 410px; margin: 0 auto; padding: 48px 16px; display: flex; flex-direction: column; gap: 20px; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.login-box { padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 14px; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 24px 48px -24px rgba(16, 24, 40, .25); }
.login-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.login-badge svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.login-box h1 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.02em; }
.login-sub { margin: -6px 0 4px; color: var(--muted); font-size: 14px; }
.login-sub b { color: var(--ink); font-weight: 600; }
.login-err { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.login-err svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; margin-top: 1px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-in { position: relative; display: flex; align-items: center; }
.field-in > svg { position: absolute; left: 13px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.field-in input { width: 100%; min-height: 48px; padding-left: 42px; }
.field-in input[type="password"], .field-in input#loginPw { padding-right: 46px; }
.field-in:focus-within > svg { stroke: var(--accent); }
.pw-toggle { position: absolute; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.pw-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.login-btn { margin-top: 6px; width: 100%; }
.login-foot { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }


/* =====================================================================
   Tema v2 — latar bercahaya, header kaca, menu berikon, kartu lebih lembut
   ===================================================================== */
body { background:
  radial-gradient(900px 420px at 15% -120px, var(--glow), transparent 70%),
  radial-gradient(700px 380px at 95% -80px, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%),
  radial-gradient(var(--dots) 1px, transparent 1.2px) 0 0 / 22px 22px,
  var(--bg); background-attachment: fixed; }
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.top-in { min-height: 66px; gap: 14px; }
.brand { font-size: 18.5px; }
.brand .mark { width: 36px; height: 36px; filter: drop-shadow(0 6px 14px rgba(37, 99, 235, .35)); }
.top-in .brand { margin-right: 0; }
.nav { margin: 0 auto; background: color-mix(in srgb, var(--surface-2) 85%, transparent); border-radius: 12px; padding: 4px; gap: 2px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 9px; font-size: 13.5px; }
.nav a .ic, .icon-btn .ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav a[aria-current="page"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(20, 20, 43, .06), 0 0 0 1px var(--line); }
.top-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .top-right { margin-left: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; min-width: 38px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.acct { gap: 8px; padding: 3px 3px 3px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.acct .icon-btn { border: 0; min-height: 32px; min-width: 32px; padding: 4px; }
.avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; }
.acct-name { color: var(--ink); font-size: 13px; }

.intro { padding-top: 30px; padding-bottom: 4px; }
.intro h1 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; letter-spacing: -.025em; font-weight: 800;
  background: linear-gradient(90deg, var(--ink) 30%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; font-size: 15px; }
.layout, .page { padding-top: 18px; }
.page { flex: 1; padding-bottom: 40px; }

.box { border-radius: 18px; border-color: color-mix(in srgb, var(--line) 85%, transparent); box-shadow: var(--shadow); background: color-mix(in srgb, var(--surface) 94%, transparent); }
.mailbox { position: relative; overflow: hidden; padding: 22px; }
.mailbox::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.addr { border: 1.5px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 35%, var(--surface))); border-radius: 14px; padding: 16px 14px; font-size: 17.5px; }
.addr:hover { border-color: var(--accent); }
.addr-in { background: var(--surface-2); border-style: solid; }
.tool { border-radius: 12px; min-height: 68px; transition: transform .12s, border-color .15s, box-shadow .15s, color .15s; }
.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tool.primary, .btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .7); }
.tool.primary:hover, .btn.primary:hover { filter: brightness(1.06); color: #fff; }
.btn { border-radius: 11px; }
.dchip[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.postmark { background: color-mix(in srgb, var(--ok) 14%, transparent); }

.pane-head { padding: 16px 20px; }
.pane-head h2 { font-size: 16.5px; }
.item { padding: 14px 20px 14px 32px; transition: background .12s; }
.item.unread .dot { background: var(--grad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.chip.code { background: var(--grad); color: #fff; }
.otp { background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-2) 12%, var(--surface))); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.empty-art { filter: drop-shadow(0 12px 24px color-mix(in srgb, var(--accent) 25%, transparent)); }

/* Template Pesan di website */
.tpl-box { padding: 22px; }
.tpl-compose { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .tpl-compose { grid-template-columns: minmax(0, 1fr); } }
.tpl-left { display: flex; flex-direction: column; gap: 12px; }
.tpl-fields { display: flex; flex-direction: column; gap: 10px; }
.lbl-col { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lbl-col small { font-weight: 500; }
.lbl-col input, .lbl-col select { width: 100%; color: var(--ink); }
.tpl-btns { display: flex; flex-direction: column; gap: 8px; }
.tpl-right textarea { width: 100%; min-height: 460px; resize: vertical; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); padding: 14px 16px; font: 500 13px/1.65 var(--f-mono); white-space: pre; overflow-x: auto; }
.tpl-right textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

.login-badge { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .7); }
.login-box { box-shadow: var(--shadow-lg); }
.foot { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px); }

@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; padding-block: 10px; row-gap: 10px; }
  .nav { order: 3; width: 100%; margin: 0; }
  .nav a { flex: 1; justify-content: center; padding: 8px 6px; font-size: 12.5px; }
  .theme-label { display: none; }
  .intro { padding-top: 20px; }
}
@media (max-width: 420px) { .nav a span { font-size: 12px; } .nav a .ic { display: none; } }
@media (min-width: 901px) { .mailbox { position: sticky; top: 86px; } }
.tpl-right textarea { white-space: pre-wrap; overflow-x: hidden; }

.ok-note { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); margin-bottom: 14px; }
.page > .notice { margin-bottom: 14px; }

/* Editor template di website */
.tpl-manage { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--line); }
.tpl-manage .btn { flex: 1 1 auto; }
.tpl-editor { padding: 22px; margin-bottom: 16px; border: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tpl-ed-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tpl-ed-head h2 { margin: 0; font-size: 17px; }
.tpl-ed-form { display: flex; flex-direction: column; gap: 12px; }
.tpl-ed-form textarea { width: 100%; min-height: 320px; resize: vertical; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); padding: 14px 16px; font: 500 13px/1.65 var(--f-mono); }
.tpl-ed-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

.tpl-compose.simple .tpl-right textarea { min-height: 520px; }

/* Logo kustom */
img.mark-img { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; flex: none; }
.login-brand img.mark-img { width: 40px; height: 40px; }
