/* Webmail — gaya tampilan (desktop & mobile) */
:root {
  --primary: #1D4ED8;
  --dark: #0F2A6B;
  --ink: #0B1220;
  --ink-2: #2B3345;
  --muted: #5B6475;
  --line: #E3E7EF;
  --line-2: #EEF1F6;
  --bg: #F5F7FB;
  --soft: #F1F4F9;
  --primary-soft: color-mix(in srgb, var(--primary) 10%, #fff);
  --primary-soft-2: color-mix(in srgb, var(--primary) 16%, #fff);
  --danger: #B42318;
  --ok: #0F5B3E;
  --warn: #9A3412;
  --radius: 12px;
  --topbar: 64px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--primary); }
a:hover { color: var(--dark); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spacer { flex: 1; }
.pre { white-space: pre-wrap; }
.danger-text { color: var(--danger) !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; background: transparent; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 85%, #000); color: #fff; }
.btn-ghost { border-color: #D3D9E5; background: #fff; color: var(--ink); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-soft); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; flex-shrink: 0; }
.icon-btn:hover { background: #EAEEF5; color: var(--ink); }
.icon-btn.disabled { opacity: .35; pointer-events: none; }
.icon-btn.starred { color: #D97706; }
.icon-btn.starred svg { fill: currentColor; }
.link-btn { border: 0; background: none; color: var(--primary); font-weight: 700; font-size: 13px; cursor: pointer; padding: 8px; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; line-height: 1.5; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input:not([type]), select, textarea {
  min-height: 46px; border: 1px solid #D3D9E5; border-radius: 10px; padding: 0 12px; background: #fff; font-size: 15px; width: 100%; }
textarea { padding: 10px 12px; min-height: 90px; resize: vertical; line-height: 1.5; }
input[type=color] { width: 64px; height: 44px; border: 1px solid #D3D9E5; border-radius: 10px; padding: 4px; background: #fff; }
input[type=file] { font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 0; border-color: var(--primary); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 40px; cursor: pointer; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form { display: flex; gap: 10px; align-items: center; }
.inline-form.wrap { flex-wrap: wrap; margin-bottom: 14px; }
.inline-form input { flex: 1; min-width: 180px; }
.inline-form select { width: auto; }
.narrow-field { max-width: 240px; }

/* ---------- Pesan ---------- */
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; border: 1px solid; line-height: 1.5; }
.alert-success { background: #E7F5EF; border-color: #B8E0CC; color: var(--ok); }
.alert-error { background: #FDECEC; border-color: #F4C2BE; color: #8F1D14; }
.alert-info { background: var(--primary-soft); border-color: var(--primary-soft-2); color: var(--dark); }
.alert-warn { background: #FFF4E5; border-color: #FBD7A6; color: var(--warn); }
.notice { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px; background: #FFF8EB; color: #7A3E06; font-size: 14px; margin-bottom: 14px; }

/* ---------- Halaman login ---------- */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-brand { flex: 1 1 520px; background: var(--dark); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.auth-lines { position: absolute; right: -180px; bottom: -200px; opacity: .18; pointer-events: none; }
.auth-logo { align-self: flex-start; background: #fff; border-radius: 12px; padding: 12px 18px; position: relative; }
.auth-logo img { height: 40px; width: auto; display: block; }
.auth-copy { max-width: 470px; position: relative; display: flex; flex-direction: column; gap: 16px; }
.auth-copy h1 { font-size: 42px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.auth-copy p { margin: 0; font-size: 17px; line-height: 1.6; color: #D5E0FF; }
.auth-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-pills span { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); }
.auth-foot { margin: 0; font-size: 13px; color: #B7C6EE; position: relative; }
.auth-form { flex: 1 1 440px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg); }
.login-form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.login-form h2 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.login-form p { margin: 6px 0 0; }
.auth-logo-sm img { height: 34px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }

/* Instalasi & login admin */
.install-wrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; }
.install-card { width: 100%; max-width: 640px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.install-card h1 { font-size: 26px; font-weight: 800; }
.install-card h2 { font-size: 16px; font-weight: 800; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.install-logo { height: 44px; width: auto; align-self: flex-start; }
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 8px 10px; border-radius: 10px; background: var(--soft); }
.checklist .dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; color: #fff; }
.checklist .ok .dot { background: #0F766E; }
.checklist .bad { background: #FDECEC; }
.checklist .bad .dot { background: var(--danger); }
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #D3D9E5; border-radius: 10px; cursor: pointer; font-size: 14px; }

/* ---------- Kerangka aplikasi ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar); display: flex; align-items: center; gap: 14px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
.brand img { height: 34px; width: auto; display: block; }
.badge-admin { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.search { flex: 1 1 320px; max-width: 680px; display: flex; align-items: center; gap: 10px; height: 46px; background: var(--soft); border-radius: 12px; padding: 0 14px; color: var(--muted); }
.search input { border: 0; background: transparent; min-height: 0; height: 100%; padding: 0; outline: none; }
.search:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--primary); }
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px; border-radius: 12px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--soft); }
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-meta b { font-size: 14px; }
.user-meta small { font-size: 12px; color: var(--muted); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(15,42,107,.14); padding: 6px; z-index: 40; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 8px; border: 0; background: none; color: var(--ink); text-decoration: none; font-size: 14px; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--soft); }
.menu-head { padding: 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-head small { color: var(--muted); }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; }
.avatar-lg { width: 46px; height: 46px; font-size: 15px; }
.avatar-xl { width: 56px; height: 56px; font-size: 18px; }

.shell { display: flex; align-items: flex-start; min-height: calc(100vh - var(--topbar)); }
.sidebar { width: 252px; flex-shrink: 0; position: sticky; top: var(--topbar); max-height: calc(100vh - var(--topbar)); overflow-y: auto; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.btn-compose { min-height: 52px; border-radius: 14px; font-size: 15px; margin-bottom: 14px; }
.folder-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:hover { background: #E8EEFC; color: var(--ink); }
.nav-item.on { background: var(--primary-soft-2); color: var(--dark); font-weight: 700; }
.nav-item .count { font-size: 12px; font-weight: 800; }
.nav-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding: 16px 12px 6px; }
.nav-sep { height: 1px; background: var(--line); margin: 10px 8px; }
.side-note { font-size: 12px; color: var(--muted); padding: 12px; margin: auto 0 0; line-height: 1.5; }
.drawer-head { display: none; }
.backdrop { display: none; }
.main { flex: 1; min-width: 0; padding: 18px 20px 40px 4px; }
.bottom-nav, .fab { display: none; }

/* ---------- Panel ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
.panel.pad, .pad { padding: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.panel-head.flat { padding: 0 0 12px; }
.panel-head p { margin: 2px 0 0; }
.h-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.h-sub { font-size: 16px; font-weight: 800; }
.small-h { font-size: 14px; }
.page-head { margin: 4px 0 18px; }
.page-head p { margin: 6px 0 0; max-width: 760px; }
.narrow { max-width: 760px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.chip span { opacity: .7; }
.chip:hover { background: #E3E8F1; color: var(--ink); }
.chip.on { background: var(--dark); color: #fff; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.toolbar { display: flex; align-items: center; gap: 2px; padding: 8px 12px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); flex-wrap: wrap; min-height: 56px; }
.check-all { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; }
.bulk-actions { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.bulk-actions.idle { opacity: .45; }
.move-to { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
.move-to select { min-height: 38px; width: auto; max-width: 180px; font-size: 13px; }
.pager { display: inline-flex; align-items: center; gap: 2px; }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty svg { opacity: .5; }

/* ---------- Daftar email ---------- */
.mail-list, .contact-list { list-style: none; margin: 0; padding: 0; }
.mail-row, .contact-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line-2); background: #FBFCFE; }
.mail-row.unread { background: #fff; }
.mail-row:hover, .contact-row:hover { background: #F0F4FF; }
.contact-row.on { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.row-check { display: flex; align-items: center; justify-content: center; width: 48px; flex-shrink: 0; cursor: pointer; }
.row-link { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px 13px 0; color: inherit; text-decoration: none; }
.contact-row .row-link { align-items: center; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.row-from { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread .row-from { font-weight: 800; }
.row-date { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.unread .row-date { color: var(--primary); font-weight: 700; }
.row-subject { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.unread .row-subject { font-weight: 700; }
.tag-replied { color: var(--muted); display: inline-flex; }
.row-bottom { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.row-preview { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-ico { color: var(--ink-2); display: inline-flex; }
.row-star { color: #D97706; font-size: 15px; line-height: 1; }

/* ---------- Baca email ---------- */
.inline-actions { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.read .toolbar { border-top: 0; }
.read-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 18px; }
.read-subject { font-size: 24px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; word-break: break-word; }
.sender { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sender-meta { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; word-break: break-word; }
.rcpt summary { cursor: pointer; list-style: none; }
.rcpt summary::-webkit-details-marker { display: none; }
.rcpt summary::after { content: ' ▾'; }
.hdr-table { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; padding: 12px 14px; background: var(--soft); border-radius: 10px; font-size: 13px; }
.hdr-table dt { color: var(--muted); }
.hdr-table dd { margin: 0; word-break: break-word; }
.pill-ok { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: #E7F5EF; color: var(--ok); font-size: 13px; font-weight: 700; text-decoration: none; }
.save-contact { background: var(--soft); border-color: var(--line); margin: 0; display: flex; flex-direction: column; gap: 14px; }
.save-contact-head { display: flex; justify-content: space-between; align-items: center; }
.mail-frame { width: 100%; border: 0; min-height: 180px; display: block; background: #fff; }
.attachments h2 { margin-bottom: 10px; font-weight: 700; }
.att-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.att { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 12px; width: 290px; max-width: 100%; background: #fff; }
.att-ico { width: 40px; height: 40px; border-radius: 8px; background: #FDECEC; color: var(--danger); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.att-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.att-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-fwd { cursor: pointer; }
.att-new .att-ico { background: var(--primary-soft); color: var(--primary); }
.reply-bar { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line-2); }

/* ---------- Tulis email ---------- */
.compose { display: flex; flex-direction: column; }
.compose-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hfield { display: flex; align-items: center; gap: 10px; padding: 6px 20px; min-height: 54px; border-bottom: 1px solid var(--line-2); position: relative; flex-wrap: wrap; }
.hlabel { width: 64px; font-size: 14px; color: var(--muted); font-weight: 600; flex-shrink: 0; }
.hvalue { flex: 1; font-size: 15px; min-width: 0; word-break: break-all; }
.hfield > input { flex: 1; border: 0; min-height: 40px; padding: 0; min-width: 120px; outline: none; }
.subject-input { font-weight: 600; }
.rcpt-box { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; cursor: text; }
.rcpt-box input { flex: 1; min-width: 140px; border: 0; min-height: 38px; padding: 0; outline: none; }
.rchip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--primary-soft); color: var(--dark); font-size: 14px; font-weight: 600; max-width: 100%; }
.rchip.bad { background: #FDECEC; color: #8F1D14; }
.rchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rchip button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; }
.rchip button:hover { background: rgba(0,0,0,.08); }
.suggest { position: absolute; left: 90px; top: calc(100% - 4px); z-index: 20; width: 420px; max-width: calc(100% - 110px); background: #fff; border: 1px solid #D3D9E5; border-radius: 12px; box-shadow: 0 12px 32px rgba(15,42,107,.14); padding: 6px; list-style: none; margin: 0; }
.suggest li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; cursor: pointer; }
.suggest li.on, .suggest li:hover { background: var(--primary-soft); }
.suggest .s-meta { display: flex; flex-direction: column; min-width: 0; }
.suggest .s-meta small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 8px 14px; border-bottom: 1px solid var(--line-2); background: #FAFBFD; }
.editor-toolbar button { width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--ink-2); font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.editor-toolbar button:hover { background: #EAEEF5; }
.editor-toolbar select { width: auto; min-height: 36px; font-size: 13px; padding: 0 8px; margin-right: 4px; }
.color-btn { position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; font-weight: 800; }
.color-btn:hover { background: #EAEEF5; }
.color-btn input { position: absolute; inset: auto 6px 4px 6px; width: auto; height: 4px; padding: 0; border: 0; border-radius: 2px; opacity: 1; }
.tsep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.editor { min-height: 300px; padding: 20px 24px; font-size: 15px; line-height: 1.7; outline: none; overflow-wrap: anywhere; }
.editor:focus { box-shadow: inset 0 0 0 2px var(--primary-soft-2); }
.editor blockquote { margin: 0 0 0 .8ex; border-left: 2px solid #ccd3e0; padding-left: 1ex; color: #3a4356; }
.editor img { max-width: 100%; height: auto; }
.editor .wm-quote-head { color: var(--muted); font-size: 14px; }
.att-zone { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.dropzone { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 1.5px dashed #B9C4DA; border-radius: 12px; font-size: 14px; color: var(--ink-2); font-weight: 600; cursor: pointer; padding: 10px; text-align: center; position: relative; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.compose-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: #FAFBFD; }
.opt { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); min-height: 44px; }
.opt select { width: auto; min-height: 36px; font-size: 13px; }

/* ---------- Kontak ---------- */
.two-col { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.two-col > .panel { flex: 999 1 520px; min-width: 0; }
.side-col { flex: 1 1 320px; max-width: 420px; min-width: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 0 20px 14px; }
.search-inline { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; height: 44px; background: var(--soft); border-radius: 10px; padding: 0 12px; color: var(--muted); }
.search-inline input { border: 0; background: transparent; min-height: 0; height: 100%; padding: 0; outline: none; }
.contact-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0 0 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- Tabel & admin ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table .num { text-align: right; }
.st { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.st.ok { background: #E7F5EF; color: var(--ok); }
.st.bad { background: #FDECEC; color: #8F1D14; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.stat-num.warn { color: var(--warn); }
.cols-cards { align-items: start; }
.cols-cards > .panel { margin-bottom: 0; }
.steps { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.logo-preview { display: inline-flex; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; align-self: flex-start; }
.logo-preview img { height: 40px; width: auto; }

/* ---------- Mobile ---------- */
.only-mobile { display: none !important; }
@media (max-width: 960px) {
  .only-mobile { display: inline-flex !important; }
  .hide-mobile { display: none !important; }
  .topbar { gap: 8px; padding: 0 8px; }
  .brand img { height: 28px; }
  .search { height: 44px; }
  .sidebar { position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; max-height: none; width: 292px; max-width: 86vw; background: #fff; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 8px 0 30px rgba(11,18,32,.15); padding-top: 10px; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px 8px; }
  .drawer-head img { height: 30px; }
  body.drawer-open .sidebar { transform: none; }
  body.drawer-open .backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(11,18,32,.45); }
  .main { padding: 12px 10px 110px; }
  .panel, .card { border-radius: 14px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; position: relative; }
  .bottom-nav a span { height: 28px; width: 56px; display: flex; align-items: center; justify-content: center; border-radius: 999px; }
  .bottom-nav a.on { color: var(--primary); font-weight: 700; }
  .bottom-nav a.on span { background: var(--primary-soft-2); }
  .dot-count { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
  .fab { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 31; height: 56px; padding: 0 20px; border-radius: 18px; background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 40%, transparent); }
  .fab:hover { color: #fff; }
  .admin .bottom-nav { display: none; }
  .admin .main { padding-bottom: 40px; }
  .toolbar { padding: 6px 4px; }
  .bulk-form .bulk-actions.idle { display: none; }
  .bulk-form .bulk-actions:not(.idle) { order: 5; width: 100%; padding-top: 4px; }
  .move-to select { max-width: 130px; }
  .pager .small { display: none; }
  .row-check { width: 42px; }
  .row-link { padding-right: 12px; }
  .read-body { padding: 16px; }
  .read-subject { font-size: 20px; }
  .hfield { padding: 4px 14px; }
  .hlabel { width: 52px; }
  .editor { padding: 16px; min-height: 260px; font-size: 16px; }
  .suggest { left: 12px; max-width: calc(100% - 24px); }
  .compose-head { position: sticky; top: var(--topbar); z-index: 10; background: #fff; }
  .att-zone { padding: 0 14px 14px; }
  .compose-foot { padding: 12px 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-col { max-width: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input:not([type]), select, textarea { font-size: 16px; }
}
@media (max-width: 760px) {
  .auth-brand { flex-basis: 100%; padding: 28px 22px 64px; gap: 18px; min-height: 0; }
  .auth-copy h1 { font-size: 26px; }
  .auth-copy p { font-size: 15px; }
  .auth-pills, .auth-foot { display: none; }
  .auth-form { margin-top: -28px; border-radius: 22px 22px 0 0; padding: 28px 20px 40px; align-items: flex-start; position: relative; }
  .auth-logo { padding: 9px 13px; }
  .auth-logo img { height: 30px; }
  .auth-logo-sm { display: none !important; }
  .install-card { padding: 22px; }
  .search { flex-basis: 0; }
  .user-menu summary { padding: 2px; }
}
@media print {
  .topbar, .sidebar, .bottom-nav, .fab, .toolbar, .reply-bar, .save-contact, .notice { display: none !important; }
  .main { padding: 0; }
  .panel { border: 0; }
}
