/* Token brand Portopage (docs/brand, UI final). Tema portfolio user diatur terpisah di site.css. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/static/fonts/plus-jakarta-sans-latin-ext.woff2?v=12") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/static/fonts/plus-jakarta-sans-latin.woff2?v=12") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #F5F7FB; --surface: #fff; --surface-2: #EEF2F8; --ink: #0F172A; --muted: #55637A; --line: #D8E0EC; --line-strong: #77869D;
  --accent: #1D4ED8; --accent-hover: #1E40AF; --accent-active: #1E3A8A; --accent-soft: #EFF6FF; --accent-line: #BFDBFE;
  --ok: #17663A; --ok-soft: #E3F4EA; --ok-dot: #22A06B; --warn: #8A5300; --warn-soft: #FFF1D6; --err: #B42318; --err-soft: #FDE8E6; --err-line: #CF6257;
  --r: 10px; --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --head: var(--font);
  --left: 280px; --right: 440px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); display: flex; flex-direction: column; }
h2, h3 { font-family: var(--head); margin: 0; line-height: 1.2; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.top-l, .top-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brand { font-family: var(--head); font-size: 18px; font-weight: 700; margin-right: 4px; }
.brand-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.brand-mark { width: 22px; height: 26px; flex: none; }
.brand-name b { color: var(--accent); font-weight: inherit; }
.chip { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.chip.busy { background: var(--accent-soft); color: var(--accent); }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.save-state::before { content: "✓"; font-weight: 800; }
.save-state.busy::before { content: "…"; }
.save-state.err { color: var(--err); }
.save-state.err::before { content: "!"; }
.chip.err { background: var(--err-soft); color: var(--err); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.primary:active { background: var(--accent-active); border-color: var(--accent-active); }
.btn.danger { color: var(--err); border-color: var(--err-line); }
.btn.danger:hover { background: var(--err-soft); border-color: var(--err); }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn[aria-pressed="false"] { color: var(--muted); }
.btn.add { width: 100%; margin-top: 12px; border-style: dashed; }
.btn.link { border: 0; background: none; color: var(--accent); padding: 4px 0; min-height: 32px; }
.btn.link:hover { background: none; text-decoration: underline; }
.icon { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 15px; flex: 0 0 auto; }
.icon:hover { background: var(--accent-soft); color: var(--ink); }
.icon:disabled { opacity: .3; cursor: not-allowed; background: none; }
.icon.del:hover { background: var(--err-soft); color: var(--err); }

/* layout desktop: daftar | preview | laci edit */
.app { flex: 1; min-height: 0; }
.pane { min-height: 0; overflow-y: auto; }
.pane-blocks, .pane-edit { background: var(--surface); }
.pane-blocks { padding: 12px 16px 32px; }
@media (min-width: 901px) {
  .app { display: grid; grid-template-columns: var(--left) minmax(0, 1fr) 0px; transition: grid-template-columns .2s ease; }
  .app.has-edit { grid-template-columns: var(--left) minmax(0, 1fr) var(--right); }
  .app.no-left { --left: 0px; }
  .pane-blocks { grid-column: 1; border-right: 1px solid var(--line); }
  .pane-preview { grid-column: 2; }
  .pane-edit { grid-column: 3; border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(15, 23, 42, .06); }
  .app.no-left .pane-blocks { visibility: hidden; padding: 0; border: 0; }
  .app:not(.has-edit) .pane-edit { visibility: hidden; border: 0; }
  .mobnav, .mob-only { display: none !important; }
}
@media (min-width: 901px) and (max-width: 1280px) { :root { --left: 248px; --right: 400px; } }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 12px; }
.empty { color: var(--muted); padding: 32px 8px; text-align: center; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 -16px; padding: 0 16px; }
.tabs button { border: 0; background: none; padding: 8px 12px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

/* daftar blok */
.blocklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.blk { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 2px 4px 2px 0; }
.blk:hover { border-color: var(--line-strong); }
.blk.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); background: var(--accent-soft); }
.blk.off .blk-main { opacity: .55; }
.blk.drag { opacity: .4; }
.blk.over { border-top: 3px solid var(--accent); }
.blk-grip { cursor: grab; color: var(--line-strong); padding: 8px 2px 8px 8px; user-select: none; font-size: 14px; }
.blk-main { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 6px 4px; cursor: pointer; border-radius: 6px; }
.blk-main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk-main small { color: var(--muted); font-size: 12px; }
.blk .icon { width: 28px; }

/* preview: halaman di-render selebar aslinya lalu di-scale */
.pane-preview { display: flex; flex-direction: column; overflow: hidden; }
.pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; flex-wrap: wrap; }
.pv-l, .pv-r { display: flex; align-items: center; gap: 8px; }
.pv-zoom { font-size: 13px; color: var(--muted); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 32px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.pv-stage { flex: 1; min-height: 0; position: relative; display: flex; justify-content: center; padding: 0 16px 16px; }
.pv-box { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
#preview { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }

/* laci edit */
.insp { display: flex; flex-direction: column; min-height: 100%; }
.insp-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; gap: 8px; padding: 14px 16px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.insp-head > div { flex: 1; min-width: 0; }
.insp-head h2 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insp-type { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.insp-body { padding: 4px 16px 16px; flex: 1; }
.insp-foot { display: flex; gap: 8px; padding: 12px 16px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }

.sec { border-bottom: 1px solid var(--line); }
.sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; font-family: var(--head); font-weight: 700; font-size: 15px; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary::after { content: "▾"; color: var(--muted); font-size: 13px; transition: transform .15s; }
.sec:not([open]) > summary::after { transform: rotate(-90deg); }
.sec > summary small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 8px; flex: 1; }
.sec-body { padding-bottom: 8px; }

/* field */
.field { display: block; margin-bottom: 14px; }
.field-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.lbl { display: block; font-size: 13px; font-weight: 600; }
.field-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.limit { font-size: 12px; color: var(--warn); background: var(--warn-soft); padding: 4px 8px; border-radius: 6px; margin: 6px 0 0; }
input[type=text], input[type=url], input[type=number], textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; background: #fff; }
textarea { resize: vertical; min-height: 40px; line-height: 1.45; }
textarea.auto { resize: none; overflow: hidden; }
input:hover, textarea:hover, select:hover { border-color: var(--muted); }
input::placeholder, textarea::placeholder { color: #6B7A90; }
.bbtn { min-width: 32px; height: 28px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; font-weight: 800; cursor: pointer; font-size: 13px; padding: 0 8px; }
.bbtn:hover { background: var(--accent-soft); border-color: var(--accent); }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* editor poin */
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plist li { display: flex; align-items: flex-start; gap: 4px; }
.plist .num { flex: 0 0 24px; padding-right: 2px; text-align: right; font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 10px; }
.plist .num.over { color: var(--warn); }
.plist textarea { flex: 1; padding: 7px 10px; }
.plist .icon { width: 28px; height: 28px; margin-top: 4px; }
.plist-add { margin-top: 6px; }

/* tabel data chart */
.rowsx { display: grid; grid-template-columns: minmax(0, 1fr) 96px 28px; gap: 6px 6px; align-items: center; }
.rowsx .rh { font-size: 12px; font-weight: 600; color: var(--muted); }
.rowsx input { padding: 6px 8px; }

/* gambar */
.imgf { display: flex; align-items: center; gap: 12px; }
.imgf .thumb { width: 88px; height: 72px; border-radius: 8px; border: 1px dashed var(--line-strong); background: var(--surface-2) center/contain no-repeat; flex: 0 0 auto; display: grid; place-items: center; color: var(--muted); font-size: 11px; text-align: center; padding: 4px; cursor: pointer; }
.imgf .thumb.has { border-style: solid; }
.imgf .thumb.drop { border-color: var(--accent); background-color: var(--accent-soft); }
.imgf-b { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* daftar item (kartu) */
.group { margin-bottom: 14px; }
.items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.insp-body, .sec-body, .group, .item, .item-body { min-width: 0; }
.item { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.item[open] { border-color: var(--line-strong); box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
.item > summary { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; min-height: 44px; }
.item > summary::-webkit-details-marker { display: none; }
.item > summary::before { content: "▸"; color: var(--muted); margin-right: 2px; }
.item[open] > summary::before { content: "▾"; }
.item > summary .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item > summary .t.muted { color: var(--muted); font-weight: 400; font-style: italic; }
.item > summary .mini { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; background: var(--surface-2); flex: 0 0 auto; }
.item > summary .idx { font-size: 12px; color: var(--muted); font-weight: 700; min-width: 16px; }
.item > summary .idx.over { color: var(--warn); }
.item-body { padding: 10px 12px 2px; border-top: 1px solid var(--line); background: #FAFBFC; border-radius: 0 0 8px 8px; }
.swatch { display: flex; align-items: center; gap: 8px; }
.swatch input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }

/* modal & toast */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; z-index: 50; }
.modal-box { background: var(--surface); border-radius: 14px; width: min(760px, 100%); max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 16px; overflow-y: auto; }
.typegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.typegrid button { text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.typegrid button:hover { border-color: var(--accent); background: var(--accent-soft); }
.typegrid b { display: block; font-family: var(--head); }
.typegrid small { color: var(--muted); }
.assetgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.assetgrid button { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px; cursor: pointer; display: grid; gap: 4px; }
.assetgrid button:hover { border-color: var(--accent); }
.assetgrid img { width: 100%; height: 84px; object-fit: contain; background: var(--surface-2); border-radius: 4px; }
.assetgrid small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows { display: grid; gap: 8px; }
.rowline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.toast { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(15, 23, 42, .3); }
.toast.err { background: var(--err); }
.toast button { background: none; border: 1px solid rgba(255, 255, 255, .6); color: #fff; border-radius: 6px; padding: 2px 10px; font-weight: 600; cursor: pointer; }

/* HP: satu panel per layar */
.mobnav { display: none; }
@media (max-width: 900px) {
  .app { display: block; overflow: hidden; }
  .pane { display: none; height: 100%; }
  .app[data-pane="blocks"] .pane-blocks, .app[data-pane="edit"] .pane-edit { display: block; }
  .app[data-pane="preview"] .pane-preview { display: flex; }
  .desk-only { display: none !important; }
  .mobnav { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line); }
  .mobnav button { border: 0; background: none; min-height: 52px; font-weight: 600; color: var(--muted); border-top: 3px solid transparent; }
  .mobnav button[aria-current="true"] { color: var(--ink); border-top-color: var(--accent); }
  .icon, .blk .icon, .plist .icon { width: 44px; height: 44px; }
  .btn, .btn.small { min-height: 44px; }
  .top-r .btn { min-height: 44px; padding: 6px 10px; font-size: 14px; }
  .pv-stage { padding: 0 8px 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- editor: breadcrumb, konflik simpan, tema ---- */
.crumb { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.crumb:hover { background: var(--accent-soft); color: var(--ink); }
.top-l .brand { max-width: 36vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conflict { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--err-soft); color: var(--err); border-bottom: 1px solid var(--err-line); font-size: 14px; }
.set-h { font-size: 15px; margin: 16px 0 0; }
.themes { display: grid; gap: 8px; }
.theme { display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.theme:hover { border-color: var(--accent); }
.theme[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); background: var(--accent-soft); }
.theme-sw { flex: 0 0 72px; height: 56px; border-radius: 8px; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 12px); grid-template-rows: 1fr 12px; gap: 3px; padding: 6px 8px; align-content: space-between; justify-content: start; }
.theme-sw b { grid-column: 1 / -1; font-size: 22px; line-height: 1; font-weight: 600; }
.theme-sw i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.theme-t { min-width: 0; }
.theme-t b { display: block; font-size: 14px; }
.theme-t small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin-top: 14px; }

/* ---- beranda: profil & daftar portfolio ---- */
body.home { display: block; height: auto; min-height: 100%; }
.brand-link { color: var(--ink); text-decoration: none; }
.who { gap: 6px; }
.who-l { font-size: 13px; color: var(--muted); font-weight: 600; }
.who-b { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; background: var(--surface); }
.who-b:hover { border-color: var(--accent); background: var(--accent-soft); }
.who-b[aria-current="page"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-family: var(--head); font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.avatar.big { width: 64px; height: 64px; font-size: 24px; }
.avatar.ghost { background: var(--bg); color: var(--muted); border: 2px dashed var(--line-strong); }
.home-main { padding: 40px 24px 64px; }
.home-wrap { max-width: 1120px; margin: 0 auto; }
.home-wrap.narrow { max-width: 720px; padding-top: 5vh; }
.home-wrap h1 { font-family: var(--head); font-size: 32px; line-height: 1.2; margin: 0; }
.lead { color: var(--muted); margin: 8px 0 0; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.pcard { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pcard:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.pcard.new { border-style: dashed; background: transparent; }
.pcard-t { min-width: 0; display: grid; gap: 2px; }
.pcard-t b { font-family: var(--head); font-size: 18px; line-height: 1.25; }
.pcard-t small { color: var(--muted); font-size: 14px; }
.pcard-t .count { font-weight: 600; color: var(--accent); }
.phead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.phead-t { flex: 1; min-width: 220px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 32px; }
.fcard { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.fcard:hover { border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
.fcard-thumb { display: block; border-bottom: 1px solid var(--line); background: var(--bg); }
.thumbx { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.thumbx iframe { position: absolute; top: 0; left: 0; width: 1280px; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.fcard-b { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.fcard-b h2 { font-size: 20px; }
.fcard-b h2 a { color: var(--ink); text-decoration: none; }
.fcard-b h2 a:hover { text-decoration: underline; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-info { background: var(--accent-soft); color: var(--accent); }
.chip-mute { background: var(--bg); color: var(--muted); }
.fmeta { font-size: 13px; color: var(--muted); margin: 0; }
.fcard-a { display: flex; gap: 8px; margin-top: 4px; }
.fcard-m { display: flex; gap: 4px 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.danger-link { color: var(--err) !important; }
.blank { max-width: 480px; margin: 48px auto; text-align: center; padding: 40px 24px; border: 1px dashed var(--line-strong); border-radius: 16px; }
.blank p { color: var(--muted); margin: 8px 0 20px; }
.modal-box.narrow { width: min(520px, 100%); }
.form-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.form-err { color: var(--err); background: var(--err-soft); padding: 8px 12px; border-radius: 8px; font-size: 14px; margin: 0 0 8px; }
@media (max-width: 900px) {
  .home-main { padding: 24px 16px 48px; }
  .home-wrap h1 { font-size: 26px; }
  .who-l { display: none; }
  .phead .btn { flex: 1; }
  .fgrid { grid-template-columns: 1fr; }
  .top-l .brand { max-width: 50vw; }
}

/* pilihan bergambar (tata letak) */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.pickb { display: grid; gap: 6px; justify-items: center; padding: 8px 4px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); min-height: 44px; }
.pickb:hover { border-color: var(--accent); background: var(--accent-soft); }
.pickb[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); color: var(--ink); }
.glyph { width: 48px; height: 32px; display: grid; gap: 2px; }
.glyph i { background: var(--line-strong); border-radius: 2px; }
.pickb[aria-checked="true"] .glyph i { background: var(--accent); }
.g-tl, .g-tr { grid-template-columns: 1fr 1fr; }
.g-tl i:first-child, .g-tr i:last-child, .g-tt i:last-child, .g-gb i:first-child, .g-gs i:first-child { background: repeating-linear-gradient(var(--line-strong) 0 2px, transparent 2px 6px) !important; }
.g-tt, .g-gb { grid-template-rows: 3fr 2fr; }
.g-gb { grid-template-rows: 2fr 3fr; }
.g-gs { grid-template-columns: 1fr 1fr; }
.g-gs i:last-child { background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 10px) !important; opacity: .7; }
.g-c1 { grid-template-rows: 1fr 1fr; }
.g-c2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.g-c3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
.g-mo { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; }
.g-mo i:first-child { grid-column: span 2; grid-row: span 2; }
.g-rw { grid-template-columns: repeat(4, 1fr); }

/* pegangan untuk mengatur lebar panel kiri/kanan */
.resizer { display: none; }
@media (min-width: 901px) {
  .app { position: relative; }
  .resizer { display: block; position: absolute; top: 0; bottom: 0; width: 12px; margin: 0 -6px; z-index: 5; cursor: col-resize; touch-action: none; }
  .resizer::after { content: ""; position: absolute; top: 0; bottom: 0; left: 5px; width: 2px; background: transparent; transition: background .15s; }
  .resizer:hover::after, .resizer:focus-visible::after, .app.resizing .resizer::after { background: var(--accent); }
  .resizer:focus-visible { outline: none; }
  .rz-left { left: var(--left); }
  .rz-right { right: var(--right); }
  .app.no-left .rz-left, .app:not(.has-edit) .rz-right { display: none; }
  .app.resizing { transition: none; user-select: none; cursor: col-resize; }
  .app.resizing iframe { pointer-events: none; }
}

/* dialog "Buat draft dari CV" (AI) */
.ai-notes { margin: 4px 0 8px; padding-left: 20px; font-size: 14px; display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.ai-plan { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 8px 12px; border-radius: 8px; margin: 4px 0 8px; }
.form input[type="file"] { font: inherit; font-size: 14px; max-width: 100%; }
.ai-fields { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: inherit; }
.ai-fields[disabled] { opacity: .55; }
.ai-progress { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 14px; line-height: 1.45; }
.ai-progress > div { flex: 1; min-width: 0; }
.ai-progress .spin { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: aispin 1s linear infinite; }
@keyframes aispin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ai-progress .spin { animation: none; } }
.paywall { padding: 14px 16px; border: 1px solid #EBD3A0; border-radius: 12px; background: var(--warn-soft); color: var(--ink); font-size: 14px; line-height: 1.5; display: grid; gap: 6px; }
.paywall p { margin: 0; }
.paywall-t { font-size: 15px; color: var(--warn); }
.paywall-offer { font-weight: 600; }
.paywall-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn-badge { margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--warn-soft); color: var(--warn); }
.btn.primary .btn-badge { background: rgba(255,255,255,.22); color: inherit; }
.blank-a { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.paths { display: grid; gap: 10px; margin-top: 20px; }
.path { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; min-height: 44px; }
.path:hover { border-color: var(--accent); }
.path[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); background: var(--accent-soft); }
.path-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.path small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.conflict.ai-check { background: var(--accent-soft); color: var(--ink); border-bottom-color: var(--line); }
.conflict.ai-check .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- draft awal: pilih bidang (home) + pengingat draft contoh ---- */
.conflict.starter { background: var(--warn-soft); color: var(--warn); border-bottom-color: #EBD3A0; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 4px; }
.fchip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; min-height: 44px; }
.fchip:hover { border-color: var(--accent); }
.fchip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.fchip[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.fchip-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--bg); color: var(--muted); }
.fchip[aria-pressed="true"] .fchip-n { background: var(--accent); color: #fff; }
.fchip-t { display: grid; min-width: 0; }
.fchip-t b { font-size: 14px; line-height: 1.3; }
.fchip-t small { font-size: 12px; color: var(--muted); }
.welcome { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; }
.note { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 14px; line-height: 1.5; }
@media (max-width: 560px) { .fchip-t small { display: none; } .fchip { padding: 8px 10px; } }

/* ---- panel setelah Publish + salin link ---- */
.share { display: grid; gap: 16px; }
.share p { margin: 0; }
.share-row { display: flex; gap: 8px; }
.share-row .share-url { flex: 1 1 auto; min-width: 0; min-height: 44px; font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); background: var(--accent-soft); }
.share-row .btn { min-height: 44px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-actions .btn { min-height: 44px; }
.btn.is-off { opacity: .55; cursor: not-allowed; }
@media (max-width: 520px) { .share-row { flex-direction: column; } .share-actions .btn { flex: 1 1 calc(50% - 4px); } }

/* ---- brand Portopage: modal konfirmasi, panel share, layar sentuh ---- */
.confirm { display: grid; gap: 12px; }
.confirm p { margin: 0; }
.confirm-url { font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); background: var(--accent-soft); padding: 10px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.confirm-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.confirm-a .btn { min-height: 44px; }
.confirm-a .btn.link { margin-left: auto; }
@media (max-width: 520px) { .confirm-a { flex-direction: column; align-items: stretch; } .confirm-a .btn.link { margin-left: 0; } }
.share-actions .btn svg, .btn svg.ic { width: 18px; height: 18px; flex: none; }
.share-done { display: flex; justify-content: flex-end; }
.set-badge { margin-top: 4px; }
.set-badge .check { margin-bottom: 4px; }
.set-badge .check[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
/* layar sentuh: semua kontrol minimal 44px */
@media (pointer: coarse) {
  .btn, .btn.small, .btn.link, .seg button, .tabs button, .bbtn, .who-b, .crumb { min-height: 44px; }
  .icon, .blk .icon, .plist .icon { width: 44px; height: 44px; }
  .check { min-height: 44px; }
  .top-r .btn { min-height: 44px; }
}

/* ---- AI sebagai fitur utama: kartu beranda, dialog unggah, progres, gagal (audit UX 24 Nov) ---- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
svg.ic { width: 18px; height: 18px; flex: none; }
.btn svg.ic { width: 18px; height: 18px; }
.ai-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 20px; align-items: center; margin-top: 24px; padding: 20px 24px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 16px; }
.ai-hero.is-soon { background: var(--surface); border-color: var(--line); }
.ai-hero-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.ai-hero-ic svg.ic { width: 26px; height: 26px; }
.ai-hero-ic.sm { width: 32px; height: 32px; }
.ai-hero-ic.sm svg.ic { width: 18px; height: 18px; }
.ai-hero.is-soon .ai-hero-ic { background: var(--surface-2); color: var(--accent); }
.ai-hero-b { min-width: 0; }
.ai-hero-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-hero-h h2 { font-size: 20px; }
.ai-hero-p { margin: 6px 0 10px; color: var(--ink); }
.ai-hero-pts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.ai-hero-pts li { display: flex; align-items: center; gap: 6px; }
.ai-hero-pts svg.ic { width: 16px; height: 16px; color: var(--ok-dot); stroke-width: 2.5; }
.ai-hero.is-soon .ai-hero-pts svg.ic { color: var(--muted); }
.ai-hero-a { display: grid; gap: 6px; justify-items: end; text-align: right; }
.ai-go { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.ai-hero-s { font-size: 12px; color: var(--muted); max-width: 240px; }
@media (max-width: 760px) {
  .ai-hero { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .ai-hero-ic { width: 40px; height: 40px; align-self: start; }
  .ai-hero-ic svg.ic { width: 22px; height: 22px; }
  .ai-hero-a { grid-column: 1 / -1; justify-items: stretch; text-align: left; }
  .ai-go { width: 100%; }
  .ai-hero-s { max-width: none; }
  .ai-hero-pts { flex-direction: column; }
}
.home-wrap.narrow .ai-hero { margin-top: 20px; }
.welcome-t { font-size: 17px; margin: 0 0 14px; }
.welcome-alt { margin: 12px 0 0; text-align: center; }
.ai-soon-h { display: flex; gap: 12px; align-items: flex-start; }
.ai-soon-h p { margin: 0; }
.ai-soon .ai-hero-ic { background: var(--surface-2); color: var(--accent); }
.ai-title-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--accent); color: #fff; vertical-align: -5px; }
.ai-title-ic svg.ic { width: 15px; height: 15px; }

/* chip status kartu */
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip-live { background: var(--ok-soft); color: var(--ok); }
.chip-live .dot { background: var(--ok-dot); }
.chip-ai { background: var(--accent-soft); color: var(--accent); }
.chip-ai svg.ic { width: 13px; height: 13px; }
.fmeta-ai { display: flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.fmeta-ai svg.ic { width: 14px; height: 14px; }
.linkrow { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 4px 4px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.linkrow > svg.ic { width: 16px; height: 16px; }
.linkrow-u { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.linkrow .btn { background: var(--surface); }
.fcard-a { align-items: center; }
.fcard-a .more { margin-left: auto; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); }
.icon svg.ic { width: 18px; height: 18px; }

/* menu aksi "⋯": popover di layar lebar, bottom sheet di HP */
.menu { position: absolute; z-index: 70; min-width: 220px; max-width: calc(100vw - 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); padding: 4px; display: flex; flex-direction: column; }
.menu [role=menuitem] { appearance: none; border: 0; background: none; color: var(--ink); font: 600 14px/1.2 var(--font); text-align: left; min-height: 44px; padding: 0 12px; border-radius: 8px; display: flex; align-items: center; gap: 12px; cursor: pointer; width: 100%; text-decoration: none; }
.menu [role=menuitem]:hover, .menu [role=menuitem]:focus-visible { background: var(--surface-2); outline-offset: -2px; }
.menu [role=menuitem] svg.ic { color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.menu .danger, .menu .danger svg.ic { color: var(--err); }
.menu-t { margin: 4px 12px 8px; font-size: 13px; font-weight: 700; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-scrim { position: fixed; inset: 0; z-index: 69; background: rgba(15, 23, 42, .45); }
.menu.menu-sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-width: none; border-radius: 16px 16px 0 0; border-width: 1px 0 0; padding: 8px 8px calc(16px + env(safe-area-inset-bottom)); box-shadow: none; }
.menu.menu-sheet::before { content: ""; width: 40px; height: 4px; border-radius: 999px; background: var(--line-strong); align-self: center; margin: 4px 0 8px; }

/* dialog unggah AI */
.ai-form { gap: 14px; display: grid; }
.ai-value { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 14px; line-height: 1.45; }
.ai-value p { margin: 0; }
.ai-value svg.ic { color: var(--accent); margin-top: 1px; }
.dz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .dz-grid { grid-template-columns: 1fr; } }
.dz-field { margin-bottom: 0; min-width: 0; }
.dz { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 18px 12px; margin-top: 4px; border: 2px dashed var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.dz:hover, .dz.over { border-color: var(--accent); background: var(--accent-soft); }
.dz-field:has(input:focus-visible) .dz { outline: 3px solid var(--accent); outline-offset: 2px; }
.dz-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.dz-t { display: grid; gap: 2px; }
.dz-t b { font-size: 14px; }
.dz-h { font-size: 12px; color: var(--muted); }
.dz-btn { pointer-events: none; }
.dz.dz-sm { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; text-align: left; padding: 10px 12px; }
.dz-field.is-error .dz, .dz-field.is-error .filerow { border-color: var(--err); }
.fieldset-disabled .dz, .ai-fields[disabled] .dz { cursor: not-allowed; }
.dz-files { display: grid; gap: 6px; margin-top: 4px; }
.filerow { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font-size: 14px; }
.filerow > svg.ic { color: var(--accent); }
.filerow-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.filerow b { color: var(--muted); font-weight: 600; font-size: 13px; flex: none; }
.filerow .icon { width: 40px; height: 40px; }
.dz-err { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0; color: var(--err); font-size: 13px; font-weight: 600; }
.dz-err svg.ic { width: 16px; height: 16px; margin-top: 1px; }
.ai-more { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.ai-more > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.ai-more[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.ai-more-b { display: grid; gap: 0; }
.ai-cost { margin: 0; font-size: 13px; color: var(--muted); }
.ai-fields input[type=text], .ai-fields select { width: 100%; min-width: 0; min-height: 44px; }
.ai-run { display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.ai-run-h { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.ai-bar { height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; position: relative; }
.ai-bar i { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 999px; background: var(--accent); animation: aibar 1.4s ease-in-out infinite; }
@keyframes aibar { to { left: 100%; } }
.ai-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.ai-steps li { display: flex; align-items: center; gap: 8px; }
.ai-steps li.done { color: var(--ok); }
.ai-steps li.done svg.ic { stroke-width: 2.5; }
.ai-steps li.now { font-weight: 700; }
.ai-steps li.todo { color: var(--muted); }
.ai-steps .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: aispin 1s linear infinite; flex: none; margin: 0 1px; }
.todo-dot { width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.ai-run-s { margin: 0; font-size: 13px; color: var(--muted); }
.ai-run-a { display: flex; justify-content: flex-end; }
.ai-run-a .btn { min-height: 44px; }
.ai-err { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--err-soft); border: 1px solid var(--err-line); color: var(--ink); }
.ai-err > svg.ic { color: var(--err); width: 22px; height: 22px; }
.ai-err > div > b { display: block; color: var(--err); }
.ai-err p { margin: 4px 0 10px; font-size: 14px; }
.ai-err-a { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-err-a .btn { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .ai-bar i { animation: none; left: 0; width: 100%; opacity: .5; } .ai-steps .spin { animation: none; } }
.meter { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; }
.meter i { flex: 1; height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; display: block; }
.meter em { display: block; height: 100%; background: var(--warn); min-width: 0; }
.paywall { border-color: #EBD3A0; }
@media (max-width: 520px) { .ai-form .form-foot .btn { flex: 1; min-height: 44px; } }
.fcard-b > * { min-width: 0; }
.ai-hero-s { max-width: 260px; }
@media (max-width: 560px) {
  .dz { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; text-align: left; padding: 12px; }
}

/* ---- builder HP (≤700px): header satu baris: ←, nama + status, ⋯, Publish ---- */
.mob-more { display: none; }
@media (max-width: 700px) {
  body:not(.home) > .top { flex-wrap: nowrap; gap: 4px; padding: 8px 8px 8px 4px; min-height: 60px; }
  body:not(.home) > .top .top-l { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; gap: 6px; }
  body:not(.home) > .top .top-r { flex: none; flex-wrap: nowrap; gap: 6px; }
  .crumb { padding: 4px 8px; }
  #crumbProfile { display: none; }
  .crumb span[aria-hidden] { font-size: 20px; color: var(--ink); }
  .top-l .brand { flex: 1 1 auto; min-width: 0; max-width: none; font-size: 16px; margin: 0; }
  .save-state { font-size: 0; gap: 0; }
  .save-state::before { font-size: 14px; }
  #pubState { flex: none; font-size: 12px; padding: 3px 8px; }
  #lnkWeb, #btnVersions, #btnPptx, #btnCopyLink { display: none !important; }
  .mob-more { display: inline-grid; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); }
  #btnPublish { padding: 6px 12px; }
}
@media (max-width: 380px) { #pubState { display: none; } }
/* panel setelah Publish: ikon centang di judul; di HP tampil sebagai bottom sheet */
.live-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); vertical-align: -5px; }
.live-ic svg.ic { width: 16px; height: 16px; stroke-width: 2.5; }
@media (max-width: 700px) {
  .modal:has(.modal-box.as-sheet) { place-items: end stretch; padding: 0; }
  .modal-box.as-sheet { width: 100%; max-height: 90vh; border-radius: 16px 16px 0 0; }
}
