/* Webmail Al Ikhlas */
:root { --g: #1E7B34; --gd: #0F4A23; --gs: #F0F7EC; --ink: #1C201B; --mut: #677366; --line: rgba(20,40,30,.09); --bg: #F3F4EF; --gold: #F2C14E; --red: #B91C1C; --blue: #2563EB; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
.wm-body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
.wm-body svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--g); }
.wm-muted { color: var(--mut); font-size: .9rem; line-height: 1.5; }
/* tombol */
.wm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: background .15s, box-shadow .15s; }
.wm-btn--primary { background: var(--g); color: #fff; } .wm-btn--primary:hover { background: var(--gd); }
.wm-btn--ghost { background: #fff; border: 1px solid var(--line); } .wm-btn--ghost:hover { background: #FAFAF7; }
.wm-btn--block { width: 100%; margin-top: 1.1rem; padding: .8rem; }
.wm-btn:disabled { opacity: .55; cursor: not-allowed; }
.wm-link { color: var(--g); font-weight: 600; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.wm-center { display: block; margin: .9rem auto 0; }
.wm-icon { width: 38px; height: 38px; border-radius: 99px; display: inline-grid; place-items: center; color: #3d423b; }
.wm-icon:hover { background: rgba(0,0,0,.05); }
.wm-danger { color: var(--red) !important; }
/* masuk */
.wm-auth { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; background: radial-gradient(120% 90% at 0% 0%, #1E7B34 0%, #0F4A23 55%, #0b3519 100%); }
.wm-auth-card { width: min(420px, 100%); background: #fff; border-radius: 26px; padding: 2rem 1.6rem; box-shadow: 0 30px 70px -30px rgba(0,0,0,.5); }
@media (min-width: 480px) { .wm-auth-card { padding: 2.3rem 2.2rem; } }
.wm-auth h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.9rem; color: var(--gd); margin: 1.1rem 0 .3rem; }
.wm-auth label { display: block; font-size: .82rem; font-weight: 700; color: var(--gd); margin-top: 1rem; margin-bottom: .4rem; }
.wm-auth input:not([type=checkbox]), .wm-input { width: 100%; height: 48px; padding: 0 .95rem; border-radius: 14px; border: 1.5px solid rgba(20,40,30,.13); background: #fff; font-size: .95rem; }
.wm-auth input:focus, .wm-input:focus, .wm-editor:focus, .wm-recips:focus-within { outline: none; border-color: var(--g); box-shadow: 0 0 0 4px rgba(30,123,52,.14); }
.wm-addr { display: flex; align-items: center; border: 1.5px solid rgba(20,40,30,.13); border-radius: 14px; overflow: hidden; }
.wm-addr:focus-within { border-color: var(--g); box-shadow: 0 0 0 4px rgba(30,123,52,.14); }
.wm-addr input { border: 0 !important; box-shadow: none !important; min-width: 0; }
.wm-addr span { padding: 0 .85rem; color: var(--mut); font-size: .85rem; white-space: nowrap; background: #FAFAF7; align-self: stretch; display: flex; align-items: center; border-left: 1px solid var(--line); }
@media (max-width: 380px) { .wm-addr span { font-size: .72rem; padding: 0 .5rem; } }
.wm-row-between { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; }
.wm-row-between label { margin-top: 0; }
.wm-check { display: flex !important; gap: .5rem; align-items: center; font-weight: 500 !important; color: var(--mut) !important; font-size: .85rem !important; }
.wm-check input { accent-color: var(--g); width: 17px; height: 17px; }
.wm-err { color: var(--red); font-size: .88rem; margin: .7rem 0 0; }
.wm-msg { font-size: .88rem; margin: .7rem 0 0; } .wm-msg.ok { color: #15803d; } .wm-msg.bad { color: var(--red); }
.wm-foot { color: rgba(255,255,255,.6); font-size: .8rem; margin-top: 1.3rem; }
/* tata letak */
.wm-app { height: 100vh; height: 100dvh; display: grid; grid-template-columns: 250px minmax(300px, 400px) minmax(0, 1fr); }
@media (max-width: 1180px) { .wm-app { grid-template-columns: 220px minmax(280px, 340px) 1fr; } }
.wm-side { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 1rem .8rem; min-height: 0; overflow-y: auto; }
.wm-brand { display: flex; gap: .6rem; align-items: center; padding: .2rem .4rem 1rem; }
.wm-brand b { display: block; color: var(--gd); font-size: .95rem; } .wm-brand span { display: block; font-size: .72rem; color: var(--mut); overflow-wrap: anywhere; }
.wm-compose-btn { width: 100%; padding: .8rem; border-radius: 16px; margin-bottom: .8rem; }
.wm-folders { display: grid; gap: 2px; }
.wm-folder { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .6rem .75rem; border-radius: 12px; font-size: .9rem; font-weight: 500; color: #3d423b; text-align: left; }
.wm-folder:hover { background: var(--bg); }
.wm-folder[aria-current="true"] { background: var(--gs); color: var(--gd); font-weight: 700; }
.wm-folder em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 99px; background: var(--g); color: #fff; }
.wm-folder em.dim { background: transparent; color: var(--mut); }
.wm-quota { margin-top: auto; padding: 1rem .5rem .6rem; font-size: .75rem; color: var(--mut); }
.wm-quota .bar { height: 6px; border-radius: 99px; background: #EEF0EA; overflow: hidden; margin-bottom: .35rem; } .wm-quota .bar i { display: block; height: 100%; background: var(--g); } .wm-quota .bar.hi i { background: var(--red); }
.wm-side-foot { border-top: 1px solid var(--line); padding-top: .6rem; display: grid; gap: 2px; }
.wm-side-link { display: flex; gap: .6rem; align-items: center; padding: .55rem .75rem; border-radius: 12px; font-size: .88rem; color: #3d423b; text-align: left; }
.wm-side-link:hover { background: var(--bg); }
.wm-listpane { display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--line); }
.wm-listhead { display: flex; align-items: center; gap: .4rem; padding: .8rem .8rem .3rem 1rem; }
.wm-listhead h2 { flex: 1; margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.45rem; color: var(--gd); }
.wm-search { position: relative; margin: .3rem .8rem .5rem; }
.wm-search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--mut); width: 16px; height: 16px; }
.wm-search input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); padding: 0 .8rem 0 2.2rem; font-size: .88rem; }
.wm-search input:focus { outline: none; background: #fff; border-color: var(--g); }
.wm-bulk { display: flex; align-items: center; gap: .4rem; padding: .3rem .8rem .5rem; border-bottom: 1px solid var(--line); min-height: 42px; flex-wrap: wrap; }
.wm-cb { width: 28px; display: grid; place-items: center; } .wm-cb input { width: 17px; height: 17px; accent-color: var(--g); cursor: pointer; }
.wm-bulk-n { font-size: .78rem; color: var(--mut); }
.wm-bulk-acts, .wm-folder-acts { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.wm-bulk-acts button, .wm-folder-acts button { padding: .3rem .55rem; border-radius: 8px; font-size: .78rem; font-weight: 600; color: #3d423b; }
.wm-bulk-acts button:hover, .wm-folder-acts button:hover { background: var(--bg); }
.wm-list { flex: 1; overflow-y: auto; min-height: 0; }
.wm-item { display: flex; gap: .3rem; align-items: flex-start; padding: .7rem .8rem; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.wm-item:hover { background: #FAFAF7; }
.wm-item.unread { background: #F5FAF2; } .wm-item.unread::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--g); }
.wm-item.sel { background: #FEF9E7; } .wm-item.active { background: var(--gs); }
.wm-item .wm-cb { padding-top: .1rem; }
.wm-item-b { flex: 1; min-width: 0; }
.wm-item-top { display: flex; gap: .5rem; align-items: baseline; }
.wm-item-from { flex: 1; min-width: 0; font-size: .9rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-item.unread .wm-item-from, .wm-item.unread .wm-item-subj { font-weight: 700; }
.wm-item-date { font-size: .72rem; color: var(--mut); white-space: nowrap; }
.wm-item-subj { font-size: .85rem; color: #2c312a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .1rem; }
.wm-item-snip { font-size: .78rem; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .1rem; }
.wm-item-ic { display: inline-flex; gap: .25rem; align-items: center; color: var(--mut); }
.wm-item-ic svg { width: 13px; height: 13px; }
.wm-star { color: #D4A017 !important; } .wm-star svg { fill: #F2C14E; }
.wm-listempty { padding: 3rem 1rem; text-align: center; color: var(--mut); font-size: .9rem; }
.wm-more { margin: .6rem auto 1rem; display: block; padding: .5rem 1rem; border-radius: 99px; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; }
.wm-readpane { min-height: 0; overflow-y: auto; background: var(--bg); }
.wm-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: .6rem; color: var(--mut); }
.wm-empty svg { width: 44px; height: 44px; stroke-width: 1.5; opacity: .5; }
.wm-read { margin: 1rem; background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 1.1rem 1.2rem 1.5rem; }
@media (min-width: 900px) { .wm-read { margin: 1.2rem; padding: 1.5rem 1.8rem 2rem; } }
.wm-read-tools { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; margin: -.3rem -.4rem .6rem; }
.wm-read-tools .sp { flex: 1; }
.wm-tool { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .6rem; border-radius: 10px; font-size: .8rem; font-weight: 600; color: #3d423b; }
.wm-tool:hover { background: var(--bg); }
.wm-read h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.25; color: var(--gd); margin: .2rem 0 1rem; overflow-wrap: anywhere; }
.wm-meta { display: flex; gap: .8rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.wm-avatar { width: 42px; height: 42px; border-radius: 99px; display: grid; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; font-size: .95rem; }
.wm-meta-b { flex: 1; min-width: 0; font-size: .84rem; color: var(--mut); line-height: 1.5; }
.wm-meta-b b { color: var(--ink); font-size: .95rem; } .wm-meta-b .addr { overflow-wrap: anywhere; }
.wm-meta-date { font-size: .78rem; color: var(--mut); white-space: nowrap; }
.wm-banner { margin: 1rem 0 0; padding: .65rem .9rem; border-radius: 12px; background: #FFFBEB; border: 1px solid #FDE68A; font-size: .84rem; color: #78350F; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.wm-banner.spam { background: #FEF2F2; border-color: #FECACA; color: #7F1D1D; }
.wm-banner button { font-weight: 700; text-decoration: underline; }
.wm-frame { width: 100%; border: 0; display: block; margin-top: 1rem; min-height: 120px; }
.wm-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; line-height: 1.6; margin-top: 1rem; font-family: inherit; }
.wm-atts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.wm-att { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .75rem; border-radius: 12px; border: 1px solid var(--line); background: #FAFAF7; text-decoration: none; color: var(--ink); max-width: 100%; }
.wm-att:hover { border-color: var(--g); }
.wm-att span { font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.wm-att small { font-size: .72rem; color: var(--mut); }
.wm-thread { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .84rem; }
.wm-thread button { display: block; width: 100%; text-align: left; padding: .5rem .6rem; border-radius: 10px; }
.wm-thread button:hover { background: var(--bg); }
.wm-reply-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
/* tulis email */
.wm-compose { position: fixed; z-index: 60; right: 1.2rem; bottom: 0; width: min(640px, calc(100vw - 2.4rem)); height: min(680px, 88vh); background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 20px 60px -10px rgba(0,0,0,.35); display: flex; flex-direction: column; overflow: hidden; }
.wm-compose.max { right: 50%; transform: translateX(50%); bottom: 4vh; height: 92vh; width: min(980px, 96vw); border-radius: 18px; }
.wm-compose-h { display: flex; align-items: center; gap: .4rem; padding: .6rem .6rem .6rem 1rem; background: var(--gd); color: #fff; }
.wm-compose-h b { flex: 1; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-compose-h .wm-icon { color: #fff; width: 32px; height: 32px; } .wm-compose-h .wm-icon:hover { background: rgba(255,255,255,.12); }
.wm-compose-b { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.wm-fld { display: flex; align-items: flex-start; gap: .5rem; padding: .35rem 1rem; border-bottom: 1px solid var(--line); }
.wm-fld > label { width: 3.6rem; font-size: .82rem; color: var(--mut); padding-top: .55rem; flex-shrink: 0; }
.wm-fld input.plain { flex: 1; border: 0; height: 36px; font-size: .92rem; min-width: 0; }
.wm-fld input.plain:focus { outline: none; }
.wm-fld .wm-ccbtn { font-size: .8rem; color: var(--mut); padding: .55rem .3rem 0; font-weight: 600; }
.wm-recips { flex: 1; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; min-height: 36px; position: relative; border-radius: 8px; }
.wm-recips input { flex: 1; min-width: 8rem; border: 0; height: 32px; font-size: .92rem; }
.wm-recips input:focus { outline: none; }
.wm-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .25rem .15rem .6rem; border-radius: 99px; background: var(--gs); color: var(--gd); font-size: .8rem; font-weight: 600; max-width: 100%; }
.wm-chip.bad { background: #FEE2E2; color: var(--red); }
.wm-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-chip button { width: 20px; height: 20px; border-radius: 99px; font-size: .75rem; }
.wm-chip button:hover { background: rgba(0,0,0,.08); }
.wm-sug { position: absolute; left: 0; top: 100%; z-index: 5; min-width: 260px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.25); padding: .3rem; }
.wm-sug button { display: block; width: 100%; text-align: left; padding: .45rem .6rem; border-radius: 8px; font-size: .84rem; }
.wm-sug button:hover, .wm-sug button.on { background: var(--gs); }
.wm-sug small { display: block; color: var(--mut); font-size: .74rem; }
.wm-tb { display: flex; flex-wrap: wrap; gap: 2px; padding: .35rem .7rem; border-bottom: 1px solid var(--line); background: #FAFAF7; }
.wm-tb button { min-width: 32px; height: 32px; border-radius: 8px; font-size: .85rem; padding: 0 .45rem; color: #3d423b; }
.wm-tb button:hover { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.wm-editor { flex: 1; min-height: 220px; padding: 1rem; font-size: .95rem; line-height: 1.6; outline: none; overflow-wrap: anywhere; }
.wm-editor blockquote { margin: .5rem 0; padding-left: .8rem; border-left: 3px solid #D6D9D2; color: #4b5048; }
.wm-editor:empty::before { content: attr(data-ph); color: #9aa096; }
.wm-catts { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem 1rem; }
.wm-catts .wm-att { padding: .35rem .4rem .35rem .65rem; }
.wm-catts .wm-att button { width: 22px; height: 22px; border-radius: 99px; }
.wm-compose-f { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wm-compose-f .sp { flex: 1; }
.wm-compose-f small { font-size: .75rem; color: var(--mut); }
/* modal */
.wm-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; background: rgba(14,27,22,.5); }
.wm-modal-c { width: min(520px, 100%); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 22px; padding: 1.5rem; position: relative; }
.wm-modal-c h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.5rem; color: var(--gd); margin: 0 0 .3rem; }
.wm-modal-c label { display: block; font-size: .8rem; font-weight: 700; color: var(--gd); margin: 1rem 0 .4rem; }
.wm-modal-c .x { position: absolute; top: .7rem; right: .8rem; width: 34px; height: 34px; border-radius: 99px; }
.wm-modal-c .x:hover { background: var(--bg); }
.wm-sigbox { min-height: 90px; border: 1.5px solid rgba(20,40,30,.13); border-radius: 14px; padding: .7rem .9rem; font-size: .9rem; }
.wm-sec { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.wm-sec h4 { margin: 0; font-size: .95rem; color: var(--gd); }
.wm-blocked { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .85rem; }
.wm-blocked li { display: flex; justify-content: space-between; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.wm-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--gd); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-size: .875rem; transition: all .3s; max-width: calc(100vw - 2rem); text-align: center; }
.wm-toast.show { opacity: 1; transform: translate(-50%, 0); }
.wm-only-mobile { display: none !important; }
.wm-scrim { display: none; }
/* HP & tablet kecil */
@media (max-width: 860px) {
  .wm-app { grid-template-columns: minmax(0, 1fr); }
  .wm-only-mobile { display: inline-grid !important; }
  .wm-tool.wm-only-mobile { display: inline-flex !important; }
  .wm-read-tools .sp { display: none; }
  .wm-side { position: fixed; z-index: 50; inset: 0 auto 0 0; width: min(290px, 84vw); transform: translateX(-102%); transition: transform .28s ease, box-shadow .28s; }
  .wm-app.side-open .wm-side { transform: none; box-shadow: 20px 0 60px -20px rgba(0,0,0,.4); }
  .wm-app.side-open .wm-scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(14,27,22,.4); }
  .wm-readpane { position: fixed; inset: 0; z-index: 40; transform: translateX(100%); transition: transform .25s ease; }
  .wm-app.reading .wm-readpane { transform: none; }
  .wm-read { margin: 0; border-radius: 0; border: 0; min-height: 100%; padding-top: .6rem; }
  .wm-fab { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; border-radius: 18px; background: var(--g); color: #fff; place-items: center; box-shadow: 0 12px 30px -8px rgba(30,123,52,.6); }
  .wm-fab svg { width: 22px; height: 22px; }
  .wm-compose, .wm-compose.max { inset: 0; width: 100%; height: 100%; border-radius: 0; transform: none; right: 0; bottom: 0; }
  .wm-bulk-acts button { padding: .3rem .45rem; }
}
@media print {
  .wm-side, .wm-listpane, .wm-read-tools, .wm-reply-bar, .wm-fab, .wm-thread { display: none !important; }
  .wm-app { display: block; height: auto; } .wm-readpane { overflow: visible; background: #fff; } .wm-read { border: 0; margin: 0; }
}
