/* Portacaba Campaign Hub — gaya visual (palet Original) */
:root {
  color-scheme: light;
  --snow: #EEE9DF;
  --paper: #FAF7F1;
  --white: #FFFFFF;
  --line: #DDD5C6;
  --line2: #E5DED1;
  --line3: #CFC6B5;
  --ink: #1E1C19;
  --ink2: #4A453E;
  --muted: #5E5850;
  --muted2: #8A8276;
  --yellow: #FBA723;
  --yellow-t: #FCE3B6;
  --yellow-ink: #7A4A00;
  --red: #A42E34;
  --red-t: #EBCACB;
  --red-bg: #F6E3E1;
  --red-line: #E3BDB9;
  --red-ink: #5C1A1F;
  --blue: #0F43A9;
  --blue-t: #CCD7EE;
  --blue-bg: #DCE4F5;
  --green: #166049;
  --green-t: #C9DDD4;
  --green-bg: #D5E6DE;
  --display: Anton, 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: Montserrat, 'Helvetica Neue', Arial, sans-serif;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--snow); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
a:hover { color: #0B3280; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }

/* ---------- Kerangka ---------- */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 0 0 248px; background: var(--ink); color: var(--snow); padding: 28px 18px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { padding: 0 10px; }
.brand-name { font-family: var(--display); font-size: 30px; letter-spacing: .04em; line-height: 1.05; }
.brand-sub { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--yellow); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 44px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--snow); }
.nav a:hover { background: rgba(238, 233, 223, .10); color: var(--snow); }
.nav a.on { background: var(--yellow); color: var(--ink); }
.nav svg { flex: 0 0 18px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 10px; }
.me { display: flex; align-items: center; gap: 10px; }
.me-name { font-weight: 600; font-size: 13px; }
.me-role { font-size: 11px; color: #A39B8E; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: #CFC6B5; font-size: 13px; font-weight: 600; text-align: left; text-decoration: underline; min-height: 32px; }
.linkbtn:hover { color: var(--snow); }
.main { flex: 999 1 560px; min-width: 0; padding: 36px 44px 72px; display: flex; flex-direction: column; gap: 24px; }

@media (max-width: 900px) {
  .side { flex: 1 1 100%; position: static; height: auto; padding: 16px; gap: 12px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav a { padding: 10px 12px; }
  .nav a span { display: none; }
  .nav a.on span { display: inline; }
  .side-foot { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 0; }
  .main { padding: 24px 16px 56px; }
}

/* ---------- Tipografi & header halaman ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-head .head-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere; }
.lede { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); }
.h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); font-style: italic; }
.num { font-variant-numeric: tabular-nums; }
.head-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.waves { flex: 0 0 auto; }
@media (max-width: 640px) { .title { font-size: 36px; } .waves { display: none; } }

/* ---------- Tombol & kontrol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; min-height: 44px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.btn-dark { background: var(--ink); color: var(--snow); }
.btn-dark:hover { background: #000; color: var(--snow); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #F09A0E; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line3); }
.btn-ghost:hover { background: var(--paper); }
.btn-danger { background: transparent; color: var(--red); border: 1.5px solid var(--red-line); }
.btn-danger:hover { background: var(--red-bg); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line3); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.icon-btn:hover { background: var(--white); }
.icon-btn.flat { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 8px; }
.icon-btn.flat:hover { background: var(--line2); }
.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 14px; min-height: 38px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--line3); background: transparent; color: var(--ink2); }
.chip.on { background: var(--ink); color: var(--snow); border-color: var(--ink); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.seg { display: inline-flex; background: #E2DBCD; border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; padding: 9px 18px; min-height: 40px; border-radius: 999px; font-weight: 600; }
.seg button.on { background: var(--ink); color: var(--snow); }
.select, .input { font-size: 14px; padding: 10px 14px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line3); background: var(--paper); color: var(--ink); max-width: 100%; }
.select { font-weight: 600; padding-right: 32px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar .grow { flex: 1 1 240px; min-width: 0; }
.spacer { margin-left: auto; }

/* ---------- Kartu, pill, avatar ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card.tight { padding: 16px 18px; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head a, .card-head .linkish { font-size: 13px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.st-Ide, .st-Draft, .st-Brief { background: #E2DBCD; color: var(--ink2); }
.st-Perencanaan, .st-Terjadwal, .st-Produksi { background: var(--blue-bg); color: var(--blue); }
.st-Siap { background: #FDE7C2; color: var(--yellow-ink); }
.st-Live, .st-Aktif { background: var(--yellow); color: var(--ink); }
.st-Selesai, .st-Berakhir, .st-Approved { background: var(--green-bg); color: var(--green); }
.st-Dievaluasi, .st-Tayang { background: var(--ink); color: var(--snow); }
.chtag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.ch-shp { background: var(--yellow); color: var(--ink); }
.ch-tts { background: var(--green); color: #fff; }
.ch-web { background: var(--blue); color: #fff; }
.ch-ig { background: var(--red); color: #fff; }
.chdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }
.avatar.lg { width: 34px; height: 34px; flex-basis: 34px; font-size: 11px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.empty { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); padding: 8px 0; }
.empty-block { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 8px; }
.kpi-value { font-family: var(--display); font-size: 34px; line-height: 1; }
.kpi-sub { font-size: 13px; color: var(--muted); }
.bar { height: 8px; background: var(--line2); border-radius: 99px; overflow: hidden; position: relative; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--yellow); }
.bar.thin { height: 6px; }
.good { color: var(--green); }
.bad { color: var(--red); }
.warn { color: var(--yellow-ink); }

/* ---------- Tata letak dua kolom ---------- */
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-main { flex: 2.4 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.col-side { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }

/* ---------- Kartu campaign di beranda ---------- */
.ccard { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.ccard:hover { color: var(--ink); border-color: var(--line3); }
.ccard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ccard-name { font-family: var(--display); font-size: 25px; text-transform: uppercase; line-height: 1.1; margin-top: 6px; }
.ccard-count { text-align: right; flex: 0 0 auto; }
.ccard-count b { display: block; font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; color: var(--red); white-space: nowrap; }
.ccard-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line2); padding-top: 12px; flex-wrap: wrap; }

/* ---------- Strip & gantt ---------- */
.scroll-x { overflow-x: auto; }
.strip { display: grid; row-gap: 8px; align-items: center; }
.strip .day { font-size: 11px; min-width: 0; text-align: center; padding: 4px 0; line-height: 1.25; border-radius: 6px; color: var(--muted); }
.strip .day b { display: block; font-size: 9px; letter-spacing: .04em; min-height: 11px; }
.strip .day.today { background: var(--ink); color: var(--snow); }
.strip .day.wknd { color: var(--muted2); }
.strip .rowlabel { font-size: 13px; font-weight: 600; padding-right: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-bar { height: 28px; margin: 0 1px; border-radius: 7px; font-size: 11px; font-weight: 700; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; text-decoration: none; border: 1.5px solid; }
a.seg-bar:hover { filter: brightness(.96); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 22px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- Daftar ---------- */
.list-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line2); }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.list-row .t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.list-row .s { font-size: 12px; color: var(--muted); }
.due { font-size: 12px; font-weight: 700; white-space: nowrap; }
.alerts { background: var(--red-bg); border: 1px solid var(--red-line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; color: var(--red-ink); }
.alerts .h2 { color: #7E1F25; }
.alert { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.alert svg { flex: 0 0 18px; margin-top: 1px; }
.ok-box { background: var(--green-bg); color: #0F4634; border-radius: var(--radius); padding: 18px 20px; font-size: 13px; }

/* ---------- Kalender bulan ---------- */
.month { min-width: 700px; }
.month-dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding-bottom: 8px; }
.month-dows div { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 10px; }
.week { position: relative; border-top: 1px solid var(--line); }
.week-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.week-cells div { border-right: 1px solid var(--line2); padding: 8px 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; }
.week-cells div.out { background: #EFEAE1; }
.week-cells .n { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.week-cells .out .n { color: #9A9286; }
.week-cells .today .n { background: var(--ink); color: var(--snow); }
.week-cells .mk { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--red); text-align: right; }
.week-bars { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-flow: row dense; row-gap: 4px; padding: 40px 0 10px; min-height: 118px; align-content: start; }
.week-bars .seg-bar { height: 24px; margin: 0 4px; border-radius: 6px; text-overflow: ellipsis; }

/* ---------- Periode ---------- */
.period-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.period-name { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; text-transform: uppercase; }
.countdown { text-align: right; }
.countdown b { display: block; font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--red); }
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.phase { border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.phase .ph-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.phase .ph-range { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.phase .ph-len { font-size: 12px; font-weight: 600; }
.phase .ph-todo { font-size: 12px; line-height: 1.5; opacity: .92; }
.chain-row { width: 100%; border: 0; border-top: 1px solid var(--line2); background: transparent; padding: 8px 0; min-height: 50px; display: flex; align-items: center; text-align: left; color: var(--ink); }
.chain-row:hover { background: #F3EEE5; }
.chain-row.on { background: #FCEFD6; }
.chain-label { flex: 0 0 190px; padding: 0 12px 0 8px; display: flex; flex-direction: column; gap: 2px; }
.chain-track { flex: 1; position: relative; height: 26px; }
.chain-track span.sg { position: absolute; top: 0; height: 26px; border-radius: 6px; font-size: 10px; font-weight: 700; display: flex; align-items: center; padding: 0 6px; white-space: nowrap; overflow: hidden; border: 1.5px solid; }
.today-line { position: absolute; top: -8px; bottom: -8px; border-left: 2px solid var(--red); }
.next-row { width: 100%; border: 0; border-top: 1px solid var(--line2); background: transparent; padding: 10px 4px; min-height: 48px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ink); }
.next-row:hover { background: #F3EEE5; }
.next-row .badge { flex: 0 0 58px; font-family: var(--display); font-size: 20px; line-height: 1; }

/* ---------- Campaign ---------- */
.clist { display: flex; flex-direction: column; gap: 2px; padding: 10px; }
.clist h3 { margin: 12px 8px 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.citem { width: 100%; border: 0; border-radius: 12px; padding: 12px 14px; min-height: 44px; display: flex; flex-direction: column; gap: 6px; background: transparent; text-align: left; color: var(--ink); text-decoration: none; }
.citem:hover { background: #F3EEE5; color: var(--ink); }
.citem.on { background: var(--ink); color: var(--snow); }
.citem.on .s { color: #CFC6B5; }
.citem .r1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.citem .n { font-size: 14px; font-weight: 700; }
.citem .s { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.detail-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 26px; }
.detail-card .waves { position: absolute; right: -20px; top: 76px; opacity: .45; pointer-events: none; }
.detail-name { margin: 0; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.02; text-transform: uppercase; overflow-wrap: anywhere; }
.brief { margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.45; color: var(--ink2); max-width: 680px; white-space: pre-line; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.steps button { width: 100%; border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; color: var(--muted2); font-size: 11px; font-weight: 600; min-height: 32px; }
.steps button i { height: 6px; border-radius: 99px; background: #E2DBCD; display: block; }
.steps button.done i { background: var(--yellow); }
.steps button.cur { color: var(--ink); }
.steps button:hover i { filter: brightness(.94); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line3); }
.tabs button { border: 0; background: transparent; padding: 12px 16px; min-height: 44px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--yellow); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.facts div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.05; }
.pstrip { display: flex; gap: 3px; height: 30px; }
.pstrip div { border-radius: 7px; font-size: 11px; font-weight: 700; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; border: 1.5px solid; }
.check { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; border: 1.5px solid #B8AE9C; background: var(--white); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.check.on { background: var(--green); border-color: var(--green); }
.done-text { color: var(--muted2); text-decoration: line-through; font-weight: 500 !important; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.kcard { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 0; color: var(--ink); }
.kcard:hover { border-color: var(--line3); }
.kthumb { height: 88px; display: flex; align-items: flex-end; padding: 12px; font-family: var(--display); font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.kbody { padding: 14px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Tabel ---------- */
.table-card { padding: 0; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; background: #E9E3D7; padding: 12px 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { padding-left: 18px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl td { padding: 13px 10px; border-top: 1px solid var(--line2); vertical-align: top; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #F3EEE5; }
.tbl .r { text-align: right; }
.code { font-family: 'Courier New', monospace; font-size: 12px; color: var(--muted); }
.flag { font-size: 12px; font-weight: 600; color: var(--red); }

/* ---------- Kanban ---------- */
.kanban { min-width: 880px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kcol { background: var(--line2); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 380px; }
.kcol-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; }
.kcol-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.count { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--paper); color: var(--ink2); }
.tcard { background: var(--paper); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 0 var(--line); }
.tcard.late { box-shadow: inset 0 0 0 2px var(--red); }
.tcard .ttl { border: 0; background: none; padding: 0; text-align: left; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.tcard .ttl:hover { text-decoration: underline; }
.ctag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; background: #E2DBCD; color: var(--ink2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tsteps li { background: var(--white); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.tsteps b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1; color: var(--red); }

/* ---------- Hasil ---------- */
.hbar { display: flex; flex-direction: column; gap: 6px; }
.hbar .top { display: flex; justify-content: space-between; font-size: 13px; gap: 10px; }
.hbar .track { height: 14px; background: var(--line2); border-radius: 4px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 4px; }
.stack { display: flex; height: 18px; border-radius: 4px; overflow: hidden; gap: 2px; }
.insight { background: var(--ink); color: var(--snow); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.insight p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.5; position: relative; white-space: pre-line; }
.mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }

/* ---------- Modal & form ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(30, 28, 25, .55); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; z-index: 50; }
.modal { width: 100%; max-width: 680px; background: var(--paper); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .flabel { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font-size: 14px; padding: 10px 12px; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line3); background: var(--white); color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field .help { font-size: 12px; color: var(--muted); }
.field .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.field .chips label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line3); border-radius: 999px; padding: 6px 12px; min-height: 38px; cursor: pointer; background: var(--white); }
.field .chips input { width: auto; min-height: 0; margin: 0; }
.fieldset-note { grid-column: 1 / -1; background: var(--white); border: 1px dashed var(--line3); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--ink2); }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.modal-foot .right { display: flex; gap: 10px; margin-left: auto; }
.form-error { background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red-ink); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .modal { padding: 20px; } }

/* ---------- Toast ---------- */
#toast-root { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: var(--snow); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.toast.err { background: var(--red); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login { width: 100%; max-width: 420px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 34px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.login .brand { padding: 0; }
.login .brand-name { font-size: 36px; }
.login .brand-sub { color: var(--red); }
.login form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Pengaturan ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.user-row:first-of-type { border-top: 0; }
.user-row .grow { flex: 1 1 160px; min-width: 0; }

@media (max-width: 900px) {
  .camp-detail { order: -1; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .detail-name { font-size: 32px; }
  .period-name { font-size: 30px; }
}
