/* Kirtara Mail — tata letak ala Gmail dengan identitas warna Kirtara (plum #3A1450, coral #FF7A59). */
:root {
  --bg: #f6f3f9;
  --surface: #fff;
  --text: #1f1f1f;
  --muted: #5f6368;
  --line: #e6e1ec;
  --plum: #3A1450;
  --plum-2: #5B2A86;
  --coral: #FF7A59;
  --nav-active: #eadcf5;
  --nav-hover: #ece8f1;
  --compose: #ffe4da;
  --compose-hover: #ffd6c8;
  --row-read: #f6f3f9;
  --row-hover-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  --sel: #e8dcf3;
  --danger: #c5221f;
  --focus: 0 0 0 2px #fff, 0 0 0 4px #8a5cb8;
  --radius: 16px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea { font: inherit; color: inherit; }
a { color: #1a5fd0; }
.hide { display: none !important; }
.muted { color: var(--muted); }
.sprite { display: none; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

/* ---------- tombol umum ---------- */
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: #444746; flex: none; }
.icon-btn:hover { background: rgba(68,71,70,.08); }
.icon-btn:active { background: rgba(68,71,70,.14); }
.icon-btn[disabled] { opacity: .38; pointer-events: none; }
.btn-primary { background: var(--plum-2); color: #fff; border-radius: 999px; padding: 10px 24px; font-weight: 600; letter-spacing: .1px; }
.btn-primary:hover { background: var(--plum); box-shadow: 0 1px 3px rgba(58,20,80,.35); }
.btn-primary[disabled] { opacity: .6; pointer-events: none; }
.btn-text { color: var(--plum-2); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.btn-text:hover { background: #f3ecf9; }
.btn-outline { border: 1px solid #747775; border-radius: 999px; padding: 8px 20px 8px 16px; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: #444746; }
.btn-outline:hover { background: #f3f0f6; }
.btn-block { width: 100%; }
.chip { border: 1px solid #c4c0ca; border-radius: 8px; padding: 4px 12px; font-size: 13px; color: #444746; }
.chip[aria-pressed="true"] { background: var(--nav-active); border-color: transparent; color: var(--plum); font-weight: 600; }

/* ---------- login ---------- */
.login-body { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, #efe3f7 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #ffe6dc 0%, transparent 55%), var(--bg); }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 28px; padding: 36px 36px 28px; box-shadow: 0 1px 3px rgba(60,64,67,.15), 0 8px 28px rgba(58,20,80,.08); }
.login-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.login-brand img { border-radius: 12px; }
.login-title { font-size: 20px; font-weight: 700; color: var(--plum); }
.login-sub { color: var(--muted); font-size: 13px; }
.login-card h1 { font-size: 26px; font-weight: 500; margin: 0 0 6px; }
.login-lead { color: var(--muted); margin: 0 0 22px; }
.login-error { background: #fce8e6; color: var(--danger); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.login-help { color: var(--muted); font-size: 13px; text-align: center; margin: 18px 0 0; }
.login-foot { margin-top: 22px; color: var(--muted); font-size: 12px; text-align: center; }
.login-foot a { color: var(--muted); }
.fld { display: block; margin-bottom: 16px; }
.fld > span { display: block; font-size: 12.5px; font-weight: 600; color: #444746; margin-bottom: 6px; }
.fld input { width: 100%; height: 48px; border: 1px solid #c4c0ca; border-radius: 10px; padding: 0 14px; background: #fff; font-size: 15px; }
.fld input:focus { outline: none; border-color: var(--plum-2); box-shadow: 0 0 0 1px var(--plum-2); }
.login-card .btn-primary { height: 48px; margin-top: 6px; font-size: 15px; }

/* ---------- topbar ---------- */
.app { overflow: hidden; }
.topbar { height: 64px; display: flex; align-items: center; gap: 4px; padding: 8px 12px 8px 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #444746; width: 214px; padding-left: 6px; flex: none; }
.brand img { border-radius: 9px; }
.brand span { font-size: 21px; letter-spacing: -.2px; color: var(--plum); font-weight: 400; }
.brand b { font-weight: 700; }
.search { flex: 1; max-width: 720px; height: 48px; background: #ece6f2; border-radius: 24px; display: flex; align-items: center; padding: 0 4px; transition: background .15s, box-shadow .15s; }
.search:focus-within { background: #fff; box-shadow: 0 1px 1px rgba(65,69,73,.3), 0 1px 3px 1px rgba(65,69,73,.15); }
.search input { flex: 1; border: 0; background: transparent; height: 100%; font-size: 16px; outline: none; min-width: 0; }
.search input::-webkit-search-cancel-button { display: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 4px; position: relative; }
.avatar-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.avatar-btn:hover { background: rgba(68,71,70,.08); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px; background: var(--plum-2); flex: none; text-transform: uppercase; user-select: none; }
.avatar-lg { width: 44px; height: 44px; font-size: 18px; }
.avatar[data-c="0"] { background: #5B2A86; } .avatar[data-c="1"] { background: #E8603C; } .avatar[data-c="2"] { background: #1E8E6E; }
.avatar[data-c="3"] { background: #1A73E8; } .avatar[data-c="4"] { background: #B0457E; } .avatar[data-c="5"] { background: #7B6F00; }
.avatar[data-c="6"] { background: #00838F; } .avatar[data-c="7"] { background: #6D4C41; }

.menu { position: absolute; z-index: 60; background: #fff; border-radius: 12px; box-shadow: 0 4px 8px 3px rgba(60,64,67,.15), 0 1px 3px rgba(60,64,67,.3); padding: 8px 0; min-width: 220px; }
.menu button { display: flex; gap: 14px; align-items: center; width: 100%; padding: 10px 20px; text-align: left; }
.menu button:hover { background: #f1eef5; }
.menu svg { color: #444746; }
.menu form { margin: 0; }
.account-menu { right: 0; top: 48px; min-width: 300px; }
.acc-head { display: flex; gap: 12px; align-items: center; padding: 12px 20px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acc-head b { display: block; font-size: 15px; }
.acc-head small { color: var(--muted); }
.move-menu { max-height: 60vh; overflow: auto; }
.move-menu .menu-title { padding: 6px 20px 8px; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- kerangka ---------- */
.shell { display: flex; height: calc(100vh - 64px); height: calc(100dvh - 64px); }
.sidenav { width: 256px; flex: none; padding: 8px 8px 16px 0; overflow-y: auto; }
.compose-btn { display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 24px 0 18px; margin: 0 0 16px 8px; border-radius: 16px; background: var(--compose);
  font-weight: 600; font-size: 14.5px; color: #3c2a1f; transition: box-shadow .15s, background .15s; }
.compose-btn:hover { background: var(--compose-hover); box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15); }
.compose-btn svg { width: 22px; height: 22px; color: #c24a26; }
.folders { list-style: none; margin: 0; padding: 0; }
.folders li a { display: flex; align-items: center; gap: 18px; height: 32px; padding: 0 12px 0 26px; border-radius: 0 16px 16px 0; color: #1f1f1f; text-decoration: none; font-size: 14px; }
.folders li a:hover { background: var(--nav-hover); }
.folders li a.active { background: var(--nav-active); font-weight: 700; color: var(--plum); }
.folders li a.unread { font-weight: 700; }
.folders li a svg { width: 20px; height: 20px; color: #444746; }
.folders li a.active svg { color: var(--plum); }
.folders .count { margin-left: auto; font-size: 12.5px; }
.folders .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folders .sec { padding: 16px 0 6px 26px; font-size: 14px; font-weight: 600; color: #1f1f1f; }
.folders li a[data-level="1"] { padding-left: 42px; }
.folders li a[data-level="2"] { padding-left: 58px; }
.skeleton-line { height: 28px; margin: 6px 16px 6px 26px; border-radius: 8px; background: linear-gradient(90deg, #ece8f1, #f6f3f9, #ece8f1); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.nav-scrim { display: none; }
.fab { display: none; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 16px; border-radius: 16px; background: var(--compose); font-weight: 600; color: #3c2a1f;
  box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15); }
.fab svg { width: 22px; height: 22px; color: #c24a26; }

.pane { flex: 1; min-width: 0; background: var(--surface); border-radius: var(--radius); margin: 0 16px 16px 0; display: flex; flex-direction: column; overflow: hidden; }
.view-list, .view-msg { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.toolbar { height: 48px; flex: none; display: flex; align-items: center; gap: 2px; padding: 0 8px 0 10px; border-bottom: 1px solid #f0edf3; }
.tb-sep { width: 1px; height: 20px; background: #dad6df; margin: 0 6px; }
.bulk, .tb-filters { display: flex; align-items: center; gap: 2px; }
.tb-filters { gap: 8px; margin-left: 10px; }
.pager { margin-left: auto; display: flex; align-items: center; gap: 0; color: var(--muted); font-size: 12.5px; }
.pager span { margin-right: 8px; white-space: nowrap; }

.chk { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; cursor: pointer; flex: none; position: relative; }
.chk:hover { background: rgba(68,71,70,.08); }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk span { width: 18px; height: 18px; border: 2px solid #5f6368; border-radius: 3px; display: block; position: relative; }
.chk input:checked + span { background: var(--plum-2); border-color: var(--plum-2); }
.chk input:checked + span::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chk input:indeterminate + span::after { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 2px; background: #5f6368; }
.chk input:focus-visible + span { box-shadow: var(--focus); }

/* ---------- daftar pesan ---------- */
.list { flex: 1; overflow-y: auto; }
.row { display: flex; align-items: center; height: 40px; padding: 0 16px 0 10px; border-bottom: 1px solid #f0edf3; cursor: pointer; position: relative; background: var(--row-read); }
.row.unread { background: #fff; }
.row.unread .r-from, .row.unread .r-subj, .row.unread .r-date { font-weight: 700; color: #1f1f1f; }
.row:hover { box-shadow: var(--row-hover-shadow); z-index: 1; }
.row.selected { background: var(--sel); }
.row .chk { margin-right: -6px; }
.star-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #8f8a96; flex: none; }
.star-btn:hover { background: rgba(68,71,70,.08); color: #444746; }
.star-btn.on { color: #f4b400; }
.r-from { width: 200px; flex: none; padding: 0 12px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1f1f1f; }
.r-main { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.r-subj { color: #1f1f1f; }
.r-att { display: inline-flex; vertical-align: -4px; margin-right: 6px; color: #5f6368; }
.r-att svg { width: 16px; height: 16px; }
.r-date { width: 88px; flex: none; text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.r-folder { font-size: 11.5px; background: #ece8f1; color: #444746; border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.r-acts { display: none; position: absolute; right: 8px; top: 0; height: 40px; align-items: center; background: inherit; padding-left: 8px; }
.row:hover .r-acts { display: flex; }
.row:hover .r-date { visibility: hidden; }
.r-acts .icon-btn { width: 36px; height: 36px; }
.empty { padding: 72px 24px; text-align: center; color: var(--muted); }
.empty svg { width: 64px; height: 64px; color: #d3cbdc; display: block; margin: 0 auto 12px; }
.loading-bar { height: 3px; background: linear-gradient(90deg, transparent, var(--coral), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: lb 1s linear infinite; }
@keyframes lb { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* ---------- baca pesan ---------- */
.msg { flex: 1; overflow-y: auto; padding: 18px 24px 40px 72px; }
.msg-subject { font-size: 22px; font-weight: 400; margin: 0 0 18px -0px; display: flex; gap: 12px; align-items: center; word-break: break-word; }
.msg-subject .r-folder { font-size: 12px; }
.msg-head { display: flex; gap: 12px; align-items: flex-start; margin-left: -56px; }
.msg-head .avatar { width: 40px; height: 40px; font-size: 17px; }
.msg-who { flex: 1; min-width: 0; }
.msg-who b { font-size: 14px; }
.msg-who .addr { color: var(--muted); font-size: 12.5px; }
.msg-to { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.msg-to button { color: var(--muted); vertical-align: middle; }
.msg-details { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.msg-details dt { text-align: right; }
.msg-details dd { margin: 0; color: #1f1f1f; word-break: break-all; }
.msg-meta { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.msg-body { margin-top: 18px; }
.msg-frame { width: 100%; border: 0; display: block; min-height: 60px; }
.atts { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 4px; padding-top: 16px; border-top: 1px solid #f0edf3; }
.att { width: 200px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 10px 10px 12px; display: flex; gap: 10px; align-items: center; text-decoration: none; color: #1f1f1f; }
.att:hover { background: #f8f6fa; }
.att svg { color: var(--coral); }
.att .att-n { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att .att-s { font-size: 11.5px; color: var(--muted); }
.att > div { min-width: 0; flex: 1; }
.msg-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- jendela tulis ---------- */
.compose-dock { position: fixed; right: 16px; bottom: 0; display: flex; gap: 16px; align-items: flex-end; z-index: 50; pointer-events: none; }
.cmp { width: 560px; max-width: calc(100vw - 32px); height: min(620px, calc(100vh - 80px)); background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12), 0 5px 5px -3px rgba(0,0,0,.2);
  display: flex; flex-direction: column; pointer-events: auto; overflow: hidden; }
.cmp.min { height: auto; width: 280px; }
.cmp.min .cmp-body { display: none; }
.cmp.max { position: fixed; inset: 5vh 8vw; width: auto; height: auto; max-width: none; border-radius: 12px; z-index: 80; }
.cmp-scrim { position: fixed; inset: 0; background: rgba(32,33,36,.5); z-index: 79; pointer-events: auto; }
.cmp-head { height: 40px; flex: none; display: flex; align-items: center; padding: 0 6px 0 16px; background: #f2edf7; color: #1f1f1f; font-weight: 600; cursor: pointer; }
.cmp-head .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cmp-head .icon-btn { width: 30px; height: 30px; color: #444746; }
.cmp-head .icon-btn svg { width: 18px; height: 18px; }
.cmp-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cmp-f { display: flex; align-items: center; border-bottom: 1px solid #f0edf3; margin: 0 16px; min-height: 40px; gap: 8px; }
.cmp-f label { color: var(--muted); font-size: 14px; flex: none; }
.cmp-f input { flex: 1; border: 0; outline: none; height: 38px; font-size: 14px; min-width: 0; background: transparent; }
.cmp-f .cc-tog { color: var(--muted); font-size: 13px; padding: 4px; }
.cmp-f .cc-tog:hover { text-decoration: underline; color: #1f1f1f; }
.cmp-scroll { flex: 1; overflow-y: auto; padding: 8px 16px 8px; min-height: 0; }
.cmp-editor { min-height: 140px; outline: none; font-size: 14px; line-height: 1.55; word-wrap: break-word; }
.cmp-editor:empty::before { content: attr(data-ph); color: #9aa0a6; }
.cmp-editor blockquote { margin: 0 0 0 6px; border-left: 2px solid #d0c6db; padding-left: 12px; }
.cmp-sig { margin-top: 10px; border: 1px dashed #d8cfe2; border-radius: 10px; padding: 6px 8px 2px; position: relative; }
.cmp-sig-label { font-size: 11px; color: var(--plum-2); font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.cmp-sig-label button { margin-left: auto; color: var(--plum-2); font-size: 11px; text-decoration: underline; }
.cmp-sig iframe { width: 100%; border: 0; height: 200px; display: block; pointer-events: none; }
.cmp-quote { margin-top: 10px; }
.cmp-quote-tog { background: #e8e3ee; border-radius: 6px; width: 28px; height: 12px; display: inline-grid; place-items: center; font-size: 11px; line-height: 1; color: #444746; }
.cmp-quote-body { margin-top: 8px; color: #5f5770; font-size: 13px; border-left: 2px solid #d0c6db; padding-left: 10px; max-height: 240px; overflow: auto; white-space: pre-wrap; }
.cmp-atts { display: flex; flex-direction: column; gap: 6px; padding: 4px 16px; }
.cmp-att { background: #f3f0f6; border-radius: 6px; padding: 6px 6px 6px 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #1a5fd0; }
.cmp-att span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-att small { color: var(--muted); font-weight: 400; }
.cmp-att .icon-btn { width: 26px; height: 26px; }
.cmp-att .icon-btn svg { width: 16px; height: 16px; }
.cmp-fmt { display: flex; gap: 0; padding: 2px 12px; margin: 0 12px; border-radius: 8px; box-shadow: 0 1px 2px rgba(60,64,67,.25); }
.cmp-fmt .icon-btn { width: 32px; height: 32px; border-radius: 6px; }
.cmp-fmt .icon-btn svg { width: 18px; height: 18px; }
.cmp-foot { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 12px 12px 16px; }
.cmp-send { background: var(--plum-2); color: #fff; height: 36px; border-radius: 18px; padding: 0 22px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.cmp-send:hover { background: var(--plum); box-shadow: 0 1px 3px rgba(58,20,80,.4); }
.cmp-send[disabled] { opacity: .6; pointer-events: none; }
.cmp-send svg { width: 16px; height: 16px; }
.cmp-foot .grow { flex: 1; }
.cmp-status { font-size: 12px; color: var(--muted); margin-left: 8px; }
.cmp-err { color: var(--danger); font-size: 12.5px; padding: 0 16px 4px; }

/* ---------- toast & modal ---------- */
.toast { position: fixed; left: 24px; bottom: 24px; background: #2b1a36; color: #f3eef8; padding: 14px 20px; border-radius: 6px; z-index: 100; box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px rgba(0,0,0,.14);
  display: flex; gap: 16px; align-items: center; max-width: calc(100vw - 48px); }
.toast.err { background: #8c1d18; }
.toast button { color: #ffb59f; font-weight: 700; }
.modal { border: 0; padding: 0; border-radius: 24px; width: min(640px, calc(100vw - 32px)); box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.modal::backdrop { background: rgba(32,33,36,.5); }
.modal-card { padding: 20px 24px 18px; margin: 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h2 { font-size: 22px; font-weight: 500; margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 12px; }
.sig-preview-label { font-size: 12.5px; font-weight: 600; color: #444746; margin: 4px 0 6px; }
.sig-preview { width: 100%; height: 280px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; background: #fff; }
.modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 14px; }
.form-err { color: var(--danger); font-size: 13px; margin-right: auto; }
.err-page { max-width: 480px; margin: 15vh auto; text-align: center; font-family: var(--font); }
.err-page h1 { font-size: 64px; color: var(--plum); margin: 0; }

/* ---------- responsif ---------- */
@media (max-width: 1100px) {
  .r-from { width: 160px; }
  .tb-filters { display: none; }
}
@media (max-width: 860px) {
  .brand { width: auto; }
  .brand span { display: none; }
  .sidenav { position: fixed; left: 0; top: 0; bottom: 0; z-index: 70; background: #fff; padding-top: 16px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 16px rgba(0,0,0,.2); width: 280px; }
  body.nav-open .sidenav { transform: none; }
  body.nav-open .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 65; }
  .pane { margin: 0; border-radius: 0; }
  .shell { height: calc(100dvh - 64px); }
  .row { height: auto; min-height: 72px; flex-wrap: wrap; padding: 8px 12px 8px 4px; align-content: center; }
  .row .chk { order: 0; }
  .r-from { order: 1; flex: 1; width: auto; padding-left: 4px; }
  .r-date { order: 2; width: auto; }
  .r-main { order: 3; flex-basis: 100%; padding-left: 40px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .star-btn { order: 4; position: absolute; right: 6px; bottom: 4px; }
  .row:hover .r-acts { display: none; }
  .row:hover .r-date { visibility: visible; }
  .msg { padding: 14px 16px 40px; }
  .msg-head { margin-left: 0; }
  .fab { display: inline-flex; position: fixed; right: 16px; bottom: 20px; z-index: 40; }
  .r-main { padding-right: 28px; }
  .compose-dock { right: 0; left: 0; bottom: 0; }
  .cmp, .cmp.max { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; border-radius: 0; }
  .cmp.min { inset: auto 0 0 0; height: auto; width: 100%; }
  .grid2 { grid-template-columns: 1fr; }
  .pager span { display: none; }
  .search { height: 44px; }
}
.r-draft { color: var(--danger); background: #fce8e6; }
.cmp-editor:focus-visible, .cmp-f input:focus-visible { box-shadow: none; }
