
html,body{margin:0}

#dash-root { --dash-gutter: clamp(16px, 4vw, 40px); }
.ap {
  --ap-blue: #0A84FF; --ap-green: #30D158; --ap-pink: #FF375F; --ap-orange: #FF9F0A;
  --ap-purple: #BF5AF2; --ap-teal: #64D2FF; --ap-gray: #8E8E93;
  --ap-hair: color-mix(in srgb, var(--color-fg) 9%, transparent);
  --ap-fill: color-mix(in srgb, var(--color-fg) 5%, transparent);
  --ap-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px -12px rgba(0,0,0,.14);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", var(--font-anthropic-sans), system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--color-fg); max-width: 76rem; margin-inline: auto;
  display: flex; flex-direction: column; gap: 28px; padding-block: 8px 40px;
  font-variant-numeric: tabular-nums;
}
.ap * { box-sizing: border-box; }
.ap-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-fg-muted); margin: 0; }
.ap-hero { display: flex; flex-direction: column; gap: 10px; }
.ap-h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
.ap-h1 .ap-grad { background: linear-gradient(90deg, var(--ap-blue), var(--ap-purple) 60%, var(--ap-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-lead { margin: 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.45; color: var(--color-fg-muted); max-width: 44rem; letter-spacing: -0.005em; }
.ap-lead b { color: var(--color-fg); font-weight: 600; }
.ap-bar-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ap-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--ap-fill); }
.ap-seg button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--color-fg-muted); padding: 7px 20px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.ap-seg button[aria-selected="true"] { background: var(--color-panel); color: var(--color-fg); box-shadow: 0 1px 3px rgba(0,0,0,.14), 0 0 0 .5px rgba(0,0,0,.05); }
.ap-period { font-size: 13px; color: var(--color-fg-muted); }
.ap-page { display: flex; flex-direction: column; gap: 20px; }
.ap-page[hidden] { display: none; }
.ap-card { background: var(--color-panel); border: 1px solid var(--ap-hair); border-radius: 22px; box-shadow: var(--ap-shadow); padding: 22px 24px; min-width: 0; position: relative; }
.ap-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ap-card-t { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.ap-card-s { margin: 0; font-size: 13px; color: var(--color-fg-muted); line-height: 1.4; }
.ap-sec-t { margin: 12px 0 -4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

/* hero grid */
.ap-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .ap-top { grid-template-columns: minmax(0, 1fr); } }
.ap-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) and (min-width: 560px) { .ap-side { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ap-big { font-size: clamp(44px, 6vw, 64px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin-top: 14px; }
.ap-big.ap-grad-num { background: linear-gradient(90deg, var(--ap-blue), var(--ap-purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-mid { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.ap-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ap-pill.up { color: var(--color-ok); background: color-mix(in srgb, var(--ap-green) 16%, transparent); }
.ap-pill.down { color: var(--color-bad); background: color-mix(in srgb, var(--ap-pink) 16%, transparent); }
.ap-pill.flat { color: var(--color-fg-muted); background: var(--ap-fill); }
.ap-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ap-muted { color: var(--color-fg-muted); font-size: 13px; }
.ap-area { position: relative; height: 230px; margin-top: 18px; }
.ap-mini { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.ap-mini-top { display: flex; align-items: center; gap: 8px; }
.ap-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ap-mini-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.ap-mini-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ap-spark { width: 96px; height: 40px; flex: none; }

/* platform storage bar */
.ap-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 20px; }
.ap-stack { display: flex; gap: 3px; height: 14px; margin: 22px 0 18px; border-radius: 7px; overflow: hidden; }
.ap-stack > div { height: 100%; min-width: 4px; }
.ap-stack > div:first-child { border-radius: 7px 0 0 7px; }
.ap-stack > div:last-child { border-radius: 0 7px 7px 0; }
.ap-leg { display: flex; flex-direction: column; }
.ap-leg-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--ap-hair); font-size: 15px; }
.ap-leg-row:first-child { border-top: 0; }
.ap-leg-name { font-weight: 500; letter-spacing: -0.01em; }
.ap-leg-val { font-weight: 600; }
.ap-leg-pct { color: var(--color-fg-muted); font-size: 13px; width: 3.2em; text-align: right; }

/* ranked list */
.ap-rank { list-style: none; margin: 14px 0 0; padding: 0; }
.ap-rank li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid var(--ap-hair); }
.ap-rank li:first-child { border-top: 0; }
.ap-rank-n { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--color-fg-muted); opacity: .55; }
.ap-rank li:first-child .ap-rank-n { opacity: 1; background: linear-gradient(180deg, var(--ap-orange), var(--ap-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-rank-t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.ap-rank-w { font-size: 13px; color: var(--color-fg-muted); margin-top: 3px; line-height: 1.4; }
.ap-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
.ap-rank-v { font-size: 15px; font-weight: 600; text-align: right; white-space: nowrap; }
.ap-rank-v small { display: block; font-size: 11px; font-weight: 500; color: var(--color-fg-muted); }

/* plan */
.ap-plan { list-style: none; counter-reset: p; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ap-plan li { counter-increment: p; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--ap-fill); font-size: 15px; line-height: 1.45; }
.ap-plan li::before { content: counter(p); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--ap-blue); }

/* team */
.ap-team-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .ap-team-top { grid-template-columns: minmax(0, 1fr); } }
.ap-rings-wrap { display: flex; align-items: center; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.ap-rings { width: 190px; height: 190px; flex: none; }
.ap-rings circle { transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.ap-ring-leg { display: flex; flex-direction: column; gap: 16px; flex: 1; min-width: 12rem; }
.ap-ring-item { display: flex; flex-direction: column; gap: 2px; }
.ap-ring-lab { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.ap-ring-val { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.ap-ring-sub { font-size: 13px; color: var(--color-fg-muted); }
.ap-alert { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ap-alert li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 14px; }
.ap-alert li.warn { background: color-mix(in srgb, var(--ap-orange) 12%, transparent); }
.ap-alert li.bad { background: color-mix(in srgb, var(--ap-pink) 12%, transparent); }
.ap-alert .ap-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; }
.ap-alert li.warn .ap-ic { background: var(--ap-orange); }
.ap-alert li.bad .ap-ic { background: var(--ap-pink); }
.ap-alert-t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ap-alert-d { font-size: 13px; color: var(--color-fg-muted); margin-top: 2px; line-height: 1.4; }
.ap-ok-all { margin-top: 14px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--ap-green) 12%, transparent); font-size: 15px; font-weight: 500; }

.ap-week { margin-top: 14px; overflow-x: auto; }
.ap-week-grid { display: grid; grid-template-columns: minmax(12rem, 1fr) repeat(7, 36px) 7.5rem; column-gap: 8px; align-items: center; min-width: 40rem; }
.ap-week-h { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-fg-muted); text-align: center; padding-bottom: 8px; }
.ap-week-h:first-child { text-align: left; }
.ap-week-h:last-child { text-align: right; }
.ap-week-task { padding: 12px 0; border-top: 1px solid var(--ap-hair); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.ap-week-task b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.ap-week-task span { font-size: 12px; color: var(--color-fg-muted); margin-top: 2px; }
.ap-cell { border-top: 1px solid var(--ap-hair); align-self: stretch; display: grid; place-items: center; }
.ap-c { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.ap-c.done { background: var(--ap-green); }
.ap-c.hold { background: var(--ap-orange); }
.ap-c.miss { border: 2px solid color-mix(in srgb, var(--ap-pink) 70%, transparent); }
.ap-c.none { width: 6px; height: 6px; background: var(--ap-hair); }
.ap-c svg { width: 14px; height: 14px; }
.ap-stat { border-top: 1px solid var(--ap-hair); align-self: stretch; display: flex; align-items: center; justify-content: flex-end; }
.ap-st { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ap-st.s-Selesai { color: var(--color-ok); background: color-mix(in srgb, var(--ap-green) 16%, transparent); }
.ap-st.s-Tertahan { color: var(--color-warn); background: color-mix(in srgb, var(--ap-orange) 18%, transparent); }
.ap-st.s-Belum { color: var(--color-bad); background: color-mix(in srgb, var(--ap-pink) 16%, transparent); }
.ap-st.s-Sebagian { color: var(--color-warn); background: color-mix(in srgb, var(--ap-orange) 18%, transparent); }
.ap-keys { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: var(--color-fg-muted); }
.ap-keys span { display: inline-flex; align-items: center; gap: 6px; }
.ap-keys i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }

.ap-tip { position: absolute; pointer-events: none; display: none; z-index: 3; background: var(--cds-surface-popover); border: 1px solid var(--cds-border); border-radius: 12px; box-shadow: var(--cds-shadow-popover); padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.ap-tip .d { color: var(--cds-text-secondary); font-size: 12px; }
.ap-tip .v { font-weight: 600; }
.ap-fail { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); min-height: inherit; height: 100%; }
.ap-fail::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: var(--color-bad); }
.ap-note { font-size: 12px; color: var(--color-fg-muted); margin: 10px 0 0; line-height: 1.4; }
/* ---------- instagram ---------- */
.ap-tiles4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: 20px; }
.ap-tiles4 .ap-card { gap: 10px; }
.ap-unit { font-size: 15px; font-weight: 500; color: var(--color-fg-muted); letter-spacing: 0; margin-left: 4px; }
.ap-split { display: flex; height: 14px; gap: 3px; margin: 20px 0 14px; }
.ap-split > div { height: 100%; }
.ap-split > div:first-child { border-radius: 7px 0 0 7px; }
.ap-split > div:last-child { border-radius: 0 7px 7px 0; }
.ap-split-leg { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ap-split-leg > div { display: flex; flex-direction: column; gap: 2px; }
.ap-split-leg .ap-mid { font-size: 28px; }
.ap-sub-t { margin: 22px 0 6px; font-size: 13px; font-weight: 600; color: var(--color-fg-muted); letter-spacing: .02em; }
.ap-bars { display: flex; flex-direction: column; }
.ap-bars-row { display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr 3.4em; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; }
.ap-bars-row .t { height: 8px; border-radius: 4px; background: var(--ap-fill); overflow: hidden; }
.ap-bars-row .t > div { height: 100%; border-radius: 4px; }
.ap-bars-row .p { text-align: right; font-weight: 600; }
.ap-flow { display: flex; align-items: stretch; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ap-flow-step { flex: 1 1 8rem; padding: 16px; border-radius: 16px; background: var(--ap-fill); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ap-flow-step .ap-mid { font-size: 28px; }
.ap-flow-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: 0 0 auto; padding: 0 2px; }
.ap-flow-arrow .ap-pill { background: color-mix(in srgb, var(--ap-blue) 14%, transparent); color: var(--ap-blue); }
.ap-flow-arrow span.a { color: var(--color-fg-muted); font-size: 18px; line-height: 1; }
.ap-flow-foot { margin-top: 14px; font-size: 13px; color: var(--color-fg-muted); }
.ap-flow-foot b { color: var(--color-fg); font-weight: 600; }
.ap-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.ap-pills button { appearance: none; border: 1px solid var(--ap-hair); background: transparent; color: var(--color-fg); font: inherit; font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; cursor: pointer; max-width: 22rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s, color .2s, border-color .2s; }
.ap-pills button[aria-pressed="true"] { background: var(--color-fg); color: var(--color-bg); border-color: var(--color-fg); }
.ap-ret { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 24px; margin-top: 18px; align-items: start; }
@media (max-width: 860px) { .ap-ret { grid-template-columns: minmax(0, 1fr); } }
.ap-ret-chart { position: relative; min-height: 270px; }
.ap-ret-stats { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (max-width: 860px) { .ap-ret-stats { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); } }
.ap-stat-box { padding: 14px 16px; border-radius: 16px; background: var(--ap-fill); display: flex; flex-direction: column; gap: 3px; }
.ap-stat-box .l { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--color-fg-muted); }
.ap-stat-box .v { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.ap-stat-box .s { font-size: 12px; color: var(--color-fg-muted); line-height: 1.35; }
.ap-tbl-box { margin-top: 16px; overflow: auto; max-height: 34rem; border-radius: 14px; border: 1px solid var(--ap-hair); }
.ap-tbl { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 14px; }
.ap-tbl th { position: sticky; top: 0; z-index: 2; background: var(--color-panel); text-align: right; padding: 0; border-bottom: 1px solid var(--ap-hair); white-space: nowrap; }
.ap-tbl th button { appearance: none; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--color-fg-muted); padding: 11px 12px; cursor: pointer; width: 100%; text-align: inherit; letter-spacing: .01em; }
.ap-tbl th[aria-sort] button { color: var(--color-fg); }
.ap-tbl td { padding: 11px 12px; border-bottom: 1px solid var(--ap-hair); text-align: right; white-space: nowrap; background: var(--color-panel); }
.ap-tbl tr:last-child td { border-bottom: 0; }
.ap-tbl tr:hover td { background: color-mix(in srgb, var(--color-fg) 3%, var(--color-panel)); }
.ap-tbl th:first-child, .ap-tbl td:first-child { position: sticky; left: 0; z-index: 1; text-align: left; white-space: normal; min-width: 15rem; max-width: 19rem; box-shadow: 1px 0 0 var(--ap-hair); }
.ap-tbl th:first-child { z-index: 3; }
.ap-tbl td:first-child { font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.ap-tbl .tl { text-align: left; }
.ap-tbl .na { color: var(--color-fg-muted); opacity: .6; }
.ap-tbl .vb { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.ap-tbl .vb i { display: inline-block; height: 6px; border-radius: 3px; background: var(--ap-blue); opacity: .85; }
.ap-aud { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 20px; }
.ap-gender { display: flex; justify-content: space-between; margin-top: 18px; gap: 12px; }
.ap-gender > div { display: flex; flex-direction: column; gap: 2px; }
.ap-gender > div:last-child { text-align: right; }
.ap-gender .ap-big { margin-top: 4px; font-size: 44px; }
.ap-age { display: flex; align-items: flex-end; gap: 8px; height: 170px; margin-top: 18px; }
.ap-age > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.ap-age .b { width: 100%; max-width: 30px; border-radius: 7px; background: var(--ap-blue); }
.ap-age .v { font-size: 12px; font-weight: 600; }
.ap-age .l { font-size: 11px; color: var(--color-fg-muted); white-space: nowrap; }

[data-dash-source-state=empty] { color: transparent; }
[data-dash-source-state=refreshing] { opacity: .5; transition: opacity var(--cds-dur-slow); }
@media (prefers-reduced-motion: no-preference) {
  .ap-page:not([hidden]) .ap-card { animation: apUp .6s cubic-bezier(.2,.8,.2,1) both; }
  .ap-page:not([hidden]) .ap-card:nth-child(2) { animation-delay: .05s; }
  .ap-side .ap-card:nth-child(2) { animation-delay: .1s; }
  .ap-side .ap-card:nth-child(3) { animation-delay: .15s; }
  @keyframes apUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .ap-rings circle { transition: none; } }

/* ---------- v3 additions ---------- */
.ap-tabsub { margin: -6px 0 0; font-size: 14px; color: var(--color-fg-muted); }
.ap-tabsub b { color: var(--color-fg); font-weight: 600; }
.ap-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: var(--color-warn); background: color-mix(in srgb, var(--ap-orange) 16%, transparent); white-space: nowrap; }
.ap-card.is-sample { background: color-mix(in srgb, var(--ap-orange) 3%, var(--color-panel)); border-style: dashed; }
.ap-seg { flex-wrap: wrap; }
.ap-seg button { padding: 7px 16px; }
.ap-score { display: flex; align-items: center; gap: 24px; margin-top: 14px; flex-wrap: wrap; }
.ap-score svg { width: 150px; height: 150px; flex: none; }
.ap-score-num { font-size: 40px; font-weight: 700; letter-spacing: -0.035em; }
.ap-score-leg { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 12rem; font-size: 14px; }
.ap-score-leg div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--ap-hair); padding-top: 9px; }
.ap-score-leg div:first-child { border-top: 0; padding-top: 0; }
.ap-score-leg span:first-child { color: var(--color-fg-muted); }
.ap-score-leg b { font-weight: 600; }
.ap-kgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 20px; }
.ap-kcard { display: flex; flex-direction: column; gap: 6px; }
.ap-kcard .ap-card-h { margin-bottom: 0; align-items: center; }
.ap-chip-b { font-size: 12px; font-weight: 600; color: var(--color-fg-muted); background: var(--ap-fill); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ap-knum { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ap-knum .ap-mid { font-size: 32px; }
.ap-prog { position: relative; height: 10px; border-radius: 5px; background: var(--ap-fill); margin-top: 10px; }
.ap-prog-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.ap-prog-pace { position: absolute; top: -5px; bottom: -5px; width: 2px; border-radius: 1px; background: var(--color-fg); opacity: .75; }
.ap-kfoot { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-top: 4px; flex-wrap: wrap; }
.ap-kfoot .st-aman { color: var(--color-ok); font-weight: 600; }
.ap-kfoot .st-waspada { color: var(--color-warn); font-weight: 600; }
.ap-kfoot .st-tertinggal { color: var(--color-bad); font-weight: 600; }
.ap-kfoot .st-netral { color: var(--color-fg-muted); font-weight: 600; }
.ap-weeks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.ap-weeks > div { background: var(--ap-fill); border-radius: 10px; padding: 7px 6px; text-align: center; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ap-weeks .w { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--color-fg-muted); }
.ap-weeks .v { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-weeks .empty .v { color: var(--color-fg-muted); opacity: .5; font-weight: 500; }
.ap-keyleg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--color-fg-muted); align-items: center; }
.ap-keyleg i { display: inline-block; width: 2px; height: 12px; background: var(--color-fg); opacity: .75; vertical-align: -2px; margin-right: 6px; }
.ap-rank .ap-mini-split { display: flex; height: 6px; gap: 2px; margin-top: 7px; max-width: 14rem; }
.ap-rank .ap-mini-split > div { height: 100%; border-radius: 3px; }
.ap-sub-tile { font-size: 12px; color: var(--color-fg-muted); }
.ap-hl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 12px; margin-top: 14px; }
.ap-hl > div { padding: 14px 16px; border-radius: 16px; background: var(--ap-fill); display: flex; flex-direction: column; gap: 4px; }
.ap-hl .l { font-size: 12px; font-weight: 600; color: var(--color-fg-muted); letter-spacing: .02em; }
.ap-hl .t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.ap-hl .v { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.ap-chart { position: relative; margin-top: 16px; }
.ap-tbl .tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--ap-fill); color: var(--color-fg-muted); }
.ap-tbl a { color: var(--ap-blue); text-decoration: none; font-weight: 600; }
.ap-tbl a:hover { text-decoration: underline; }

.ap-gsplit { display: flex; height: 6px; gap: 2px; margin-top: 10px; border-radius: 3px; overflow: hidden; }
.ap-gsplit > div { height: 100%; }
.ap-gleg { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--color-fg-muted); margin-top: 6px; flex-wrap: wrap; }
.ap-gleg b { font-weight: 600; }
.ap-vs { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.ap-vs-row { display: flex; flex-direction: column; gap: 5px; }
.ap-vs-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ap-vs-top b { font-weight: 600; letter-spacing: -0.01em; }
.ap-vs-bar { display: grid; grid-template-columns: 1fr 6.4em; gap: 8px; align-items: center; font-size: 12px; color: var(--color-fg-muted); }
.ap-vs-bar .t { height: 8px; border-radius: 4px; background: var(--ap-fill); overflow: hidden; }
.ap-vs-bar .t > div { height: 100%; border-radius: 4px; }
.ap-vs-bar span { text-align: right; font-variant-numeric: tabular-nums; }
.ap-tbl td.win { color: var(--color-ok); font-weight: 700; }

/* ---------- tab switcher ---------- */
.ap-nav { position: sticky; top: 0; z-index: 20; margin: 0 calc(-1 * var(--dash-gutter, 16px)); padding: 10px var(--dash-gutter, 16px) 12px;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--ap-hair); }
.ap-nav-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--color-fg-muted); }
.ap-nav-hint svg { width: 15px; height: 15px; }
.ap-seg.ap-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 0; background: none; border-radius: 0; flex-wrap: nowrap; }
@media (max-width: 900px) { .ap-seg.ap-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; } .ap-seg.ap-tabs button { flex: 0 0 auto; min-width: 9.5rem; scroll-snap-align: start; } }
.ap-seg.ap-tabs button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 11px 12px; border-radius: 16px; cursor: pointer;
  background: var(--color-panel); border: 1px solid var(--ap-hair); color: var(--color-fg); box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s, background .2s; font: inherit; min-width: 0; }
.ap-seg.ap-tabs button:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--ap-blue) 55%, transparent); box-shadow: 0 8px 20px -10px rgba(10,132,255,.45); }
.ap-seg.ap-tabs button:active { transform: scale(.97); }
.ap-seg.ap-tabs button:focus-visible { outline: 3px solid color-mix(in srgb, var(--ap-blue) 50%, transparent); outline-offset: 2px; }
.ap-tab-ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--ap-blue) 12%, transparent); color: var(--ap-blue); transition: background .2s, color .2s; }
.ap-tab-ic svg { width: 20px; height: 20px; }
.ap-tab-tx { display: flex; flex-direction: column; min-width: 0; }
.ap-tab-t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.ap-tab-d { font-size: 12px; color: var(--color-fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-seg.ap-tabs button[aria-selected="true"] { background: var(--ap-blue); border-color: var(--ap-blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(10,132,255,.7); transform: none; }
.ap-seg.ap-tabs button[aria-selected="true"] .ap-tab-ic { background: rgba(255,255,255,.22); color: #fff; }
.ap-seg.ap-tabs button[aria-selected="true"] .ap-tab-d { color: rgba(255,255,255,.85); }


/* =====================================================================
   v5 — bahasa desain "Fauget" + mode gelap.
   Semua warna lewat token; [data-theme="dark"] menukar tokennya.
   ===================================================================== */
#dash-root { --dash-gutter: 0; }
.ap {
  /* light */
  --ink: #191715; --muted: #6B6863; --paper: #EDEDEB; --card: #F4F4F4; --fill: #E9E8E5; --track: #E2E0DC;
  --line: #1F1D1B; --btn-line: #1F1D1B; --rule: #C9C7C3; --grid: #DCDAD6; --ref: #8C8984;
  --cream: #FFF6E3; --hover: #FBF1E4; --input: #FFFFFF;
  --side: #191715; --side-text: #CFCAC2; --side-muted: #8B857C; --side-hover: #26231F; --side-sep: #3A3632; --side-edge: transparent;
  --hello: #191715; --hello-text: #D9D4CC; --hello-line: #191715;
  --orange: #FF914D; --orange-2: #FFBD59; --yellow: #FFDE59; --orange-text: #B4501B;
  /* warna tiap sosmed: IG ungu, TikTok hitam, Facebook biru (+ versi muda & warna teks di atasnya) */
  --ig: #833AB4; --ig-2: #CDA8E8; --ig-on: #FFFFFF;
  --tt: #191715; --tt-2: #A9A39C; --tt-on: #FFFFFF;
  --fb: #1877F2; --fb-2: #A8C9F8; --fb-on: #FFFFFF;
  --ser2: #A16207;
  --good: #2F8F55; --good-text: #1F6B3E; --good-bg: rgba(47,143,85,.15);
  --bad: #D64545; --bad-text: #A23232; --bad-bg: rgba(214,69,69,.13);
  --warn-text: #8F5400;
  --tip-bg: #191715; --tip-text: #FFFFFF; --tip-muted: #BDB8B0;
  --shadow: none;
  /* tokens used by the older layers */
  --ap-purple: var(--orange); --ap-pink: var(--tt); --ap-blue: var(--orange-2); --ap-orange: var(--yellow); --ap-teal: #E2B33C;
  --ap-green: var(--good); --ap-gray: #A39E96;
  --ap-hair: rgba(25,23,21,.14); --ap-fill: rgba(25,23,21,.05);
  --color-fg: var(--ink); --color-fg-muted: var(--muted); --color-panel: var(--card); --color-bg: var(--paper);
  --color-ok: var(--good-text); --color-warn: var(--warn-text); --color-bad: var(--bad-text); --color-border-line: var(--ap-hair);
  --cds-chart-grid: var(--grid); --cds-chart-reference: var(--ref); --cds-chart-muted: #D8D2C6;
  --cds-surface-popover: var(--tip-bg); --cds-text-secondary: var(--tip-muted); --cds-border: var(--tip-bg);
  --cds-shadow-popover: 0 10px 28px rgba(0,0,0,.22);
  --serif: 'Yeseva One', 'DM Serif Display', Georgia, serif;
  --sans: 'Inter Variable', Inter, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--sans); color: var(--ink); background: var(--paper);
  max-width: none; margin: 0; padding: 0; gap: 0; display: block;
  font-feature-settings: 'cv11', 'ss01'; letter-spacing: -0.005em;
  transition: background-color .25s, color .25s;
}
.ap[data-theme="dark"] {
  --ink: #F2EEE8; --muted: #A9A39A; --paper: #121110; --card: #1C1A18; --fill: #262320; --track: #2E2A26;
  --line: #4A453F; --btn-line: #0E0D0C; --rule: #34302C; --grid: #322E2A; --ref: #8F8980;
  --cream: #2A2219; --hover: #2A2520; --input: #141311;
  --side: #0B0A09; --side-text: #CFCAC2; --side-muted: #7E786F; --side-hover: #1E1B18; --side-sep: #2A2622; --side-edge: #2A2622;
  --hello: #231E19; --hello-text: #D9D4CC; --hello-line: #FF914D;
  --orange-text: #FFA66B;
  --ig: #C061CB; --ig-2: #6A3770; --ig-on: #191715;
  --tt: #F2EEE8; --tt-2: #6E6862; --tt-on: #191715;
  --fb: #2D88FF; --fb-2: #1E4E8C; --fb-on: #191715;
  --ser2: #A8641E;
  --good: #49B675; --good-text: #7FD8A2; --good-bg: rgba(73,182,117,.18);
  --bad: #F06A6A; --bad-text: #FF9A9A; --bad-bg: rgba(240,106,106,.16);
  --warn-text: #FFC46B;
  --tip-bg: #F2EEE8; --tip-text: #191715; --tip-muted: #6B6863;
  --ap-hair: rgba(255,255,255,.12); --ap-fill: rgba(255,255,255,.06); --ap-teal: #E2B33C;
  --cds-chart-muted: #4A453F; --cds-shadow-popover: 0 10px 28px rgba(0,0,0,.55);
  color-scheme: dark;
}
.ap * { box-sizing: border-box; }
.ap ::selection { background: var(--yellow); color: #191715; }

/* ---------- shell ---------- */
.fg-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: var(--paper); }
.fg-side { background: var(--side); color: #fff; padding: 30px 22px 26px; display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--side-edge); scrollbar-width: thin; }
.fg-logo { display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.fg-logo svg { width: 26px; height: 26px; color: var(--orange); flex: none; }
.fg-logo b { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .02em; color: #fff; }
.fg-logo small { display: block; font-size: 11px; color: var(--side-muted); letter-spacing: .02em; margin-top: 1px; }
.fg-group { display: flex; flex-direction: column; gap: 2px; }
.fg-group[hidden] { display: none; }
.fg-group-t { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--side-muted); padding: 10px 12px 6px; }
.fg-nav button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: 100%; padding: 9px 12px;
  font-size: 15px; font-weight: 500; color: var(--side-text); cursor: pointer; border-radius: 10px; position: relative; transition: background .18s, color .18s; }
.fg-nav button svg { width: 20px; height: 20px; flex: none; stroke: currentColor; }
.fg-nav button:hover { background: var(--side-hover); color: #fff; }
.fg-nav button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fg-nav button[aria-current="page"] { color: var(--orange); }
.fg-nav button[aria-current="page"]::after { content: ""; position: absolute; right: -22px; top: 8px; bottom: 8px; width: 5px; border-radius: 3px 0 0 3px; background: var(--orange); }
.fg-nav .fg-count { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--orange); color: #191715; border-radius: 999px; padding: 2px 7px; }
.fg-nav .fg-ktab { padding-right: 34px; }
.fg-nav .fg-ktab span.t { text-transform: uppercase; font-size: 12.5px; letter-spacing: .03em; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fg-nav .fg-ktab i { width: 9px; height: 9px; border-radius: 50%; flex: none; border: 1px solid rgba(255,255,255,.35); }
.fg-x { all: unset; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--side-muted); cursor: pointer; font-size: 16px; line-height: 1; }
.fg-x:hover { background: #3A3632; color: #fff; }
.fg-x:focus-visible { outline: 2px solid var(--orange); }
.fg-sep { height: 1px; background: var(--side-sep); margin: 2px 8px; }
.fg-side-foot { margin-top: auto; font-size: 12px; color: var(--side-muted); line-height: 1.5; padding: 0 8px; }

.fg-main { min-width: 0; display: flex; flex-direction: column; }
.fg-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 24px 40px 20px; border-bottom: 1px solid var(--rule); background: var(--card); position: sticky; top: 0; z-index: 30; }
.fg-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); letter-spacing: .03em; line-height: 1.1; color: var(--ink); }
.fg-title.caps { text-transform: uppercase; font-size: clamp(20px, 2.3vw, 28px); letter-spacing: .04em; }
.fg-title-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.fg-top-r { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fg-who { display: flex; align-items: center; gap: 12px; text-align: right; }
.fg-who b { display: block; font-size: 15px; font-weight: 500; }
.fg-who small { font-size: 12px; color: var(--muted); }
.fg-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); border: 1.5px solid var(--btn-line); display: grid; place-items: center;
  font-family: var(--serif); font-size: 17px; color: #191715; flex: none; }
.fg-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: var(--yellow); color: #191715; border: 1.2px solid var(--btn-line); border-radius: 8px; padding: 10px 20px; font-size: 15px; font-weight: 500;
  transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.fg-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--btn-line); }
.fg-btn:active { transform: translateY(1px); box-shadow: none; }
.fg-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fg-btn.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fg-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.fg-btn.sm { padding: 6px 14px; font-size: 13px; border-radius: 7px; }
.fg-btn svg { width: 16px; height: 16px; }
.fg-btn[aria-pressed="false"] { opacity: .5; }
.fg-static { cursor: default; } .fg-static:hover { transform: none; box-shadow: none; }
.fg-theme { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  border: 1.2px solid var(--line); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500; }
.fg-theme:hover { background: var(--fill); }
.fg-theme:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fg-theme svg { width: 17px; height: 17px; }

.fg-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 40px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.fg-filter[hidden] { display: none; }
.fg-filter-l { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.fg-chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1.2px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; transition: background .15s; }
.fg-chip i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line); }
.fg-chip small { font-size: 12px; color: var(--muted); font-weight: 600; }
.fg-chip:hover { background: var(--fill); }
.fg-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fg-chip[aria-pressed="true"] small { color: inherit; opacity: .75; }
.fg-chip[disabled] { opacity: .4; cursor: not-allowed; }
.fg-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fg-filter-note { margin-left: auto; font-size: 12px; color: var(--muted); }

.fg-body { padding: 30px 40px 60px; display: flex; flex-direction: column; gap: 24px; }
.ap-page { gap: 24px; }

@media (max-width: 960px) {
  .fg-shell { grid-template-columns: minmax(0, 1fr); background: var(--paper); }
  .fg-side { position: sticky; top: 0; z-index: 40; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--side-edge); }
  .fg-logo small, .fg-side-foot, .fg-group-t, .fg-sep { display: none; }
  .fg-nav { display: flex; gap: 4px; }
  .fg-group { flex-direction: row; gap: 4px; }
  .fg-nav button { width: auto; white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  .fg-nav .fg-ktab span.t { -webkit-line-clamp: 1; max-width: 14rem; display: block; white-space: nowrap; text-overflow: ellipsis; }
  .fg-nav button[aria-current="page"] { background: var(--side-hover); }
  .fg-nav button[aria-current="page"]::after { right: 10px; left: 10px; top: auto; bottom: 2px; height: 3px; width: auto; border-radius: 2px; }
  .fg-top { position: static; padding: 16px; }
  .fg-filter { padding: 12px 16px; }
  .fg-filter-note { margin-left: 0; width: 100%; }
  .fg-body { padding: 18px 16px 40px; }
  .fg-who div { display: none; }
}

/* ---------- cards & type (override older layers) ---------- */
.ap-card, .ap-card.ap-mini { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 26px 28px; color: var(--ink); }
@media (max-width: 640px) { .ap-card, .ap-card.ap-mini { padding: 20px 18px; border-radius: 20px; } }
.ap-card.is-sample { border-style: dashed; }
.ap-card-t { font-family: var(--sans); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.ap-card-s { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.ap-card-h { margin-bottom: 6px; }
.ap-sec-t { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: .03em; margin: 10px 0 -6px; }
.ap-tabsub { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.ap-tabsub b { color: var(--ink); }
.ap-muted { color: var(--muted); }
.ap-mid { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.ap-big { font-family: var(--sans); }
.ap-mini-name { font-size: 15px; font-weight: 600; }
.ap-dot { border: 1px solid var(--line); }
.ap-badge { color: #191715; background: var(--yellow); border: 1px solid var(--btn-line); }
.ap-pill.up { color: var(--good-text); background: var(--good-bg); }
.ap-pill.down { color: var(--bad-text); background: var(--bad-bg); }
.ap-pill.flat { color: var(--muted); background: var(--ap-fill); }
.ap-chip-b { background: var(--yellow); color: #191715; border: 1px solid var(--btn-line); }
.ap-prog { background: var(--track); border: 1px solid var(--line); height: 12px; border-radius: 7px; }
.ap-prog-fill { border-radius: 6px; }
.ap-prog-pace { background: var(--ink); opacity: 1; }
.ap-weeks > div { background: var(--fill); border-radius: 10px; }
.ap-split > div, .ap-stack > div, .ap-gsplit > div { border: 1px solid var(--line); }
.ap-stack { gap: 0; } .ap-stack > div + div { border-left: 0; }
.ap-bars-row .t { background: var(--track); border: 1px solid var(--line); height: 10px; }
.ap-bars-row .t > div { border-radius: 3px; opacity: 1 !important; }
.ap-plan li { background: var(--fill); border: 1px solid transparent; }
.ap-plan li::before { background: var(--orange); color: #191715; border: 1px solid var(--btn-line); }
.ap-hl > div, .ap-stat-box, .ap-flow-step { background: var(--fill); border-radius: 16px; }
.ap-hl .t { text-transform: uppercase; font-size: 13.5px; letter-spacing: .02em; }
.ap-flow-arrow .ap-pill { background: var(--yellow); color: #191715; border: 1px solid var(--btn-line); }
.ap-rank li:first-child .ap-rank-n { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--orange); }
.ap-rank-n { font-family: var(--serif); font-weight: 400; color: var(--muted); }
.ap-rank-t { text-transform: uppercase; letter-spacing: .02em; font-size: 14px; }
.ap-rank li.clk { cursor: pointer; border-radius: 12px; transition: background .15s; }
.ap-rank li.clk:hover { background: var(--hover); }
.ap-tbl-box { border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.ap-tbl { color: var(--ink); }
.ap-tbl th { background: var(--fill); }
.ap-tbl th button { color: var(--muted); }
.ap-tbl th[aria-sort] button { color: var(--ink); }
.ap-tbl td { background: var(--card); border-bottom-color: var(--ap-hair); }
.ap-tbl tr:hover td { background: var(--hover); }
.ap-tbl tr.clk { cursor: pointer; }
.ap-tbl tr.clk:focus-visible td { background: var(--hover); outline: none; }
.ap-tbl td.caps { text-transform: uppercase; letter-spacing: .02em; font-size: 13px; }
.ap-tbl .go { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--orange-text); white-space: nowrap; }
.ap-tbl .vb i { background: var(--orange); border: 1px solid var(--line); height: 8px; }
.ap-tbl .tag { background: var(--fill); color: var(--ink); border: 1px solid var(--ap-hair); }
.ap-tbl td.win { color: var(--good-text); }
.ap-tbl td.lose { color: var(--bad-text); font-weight: 700; }
.ap-tbl a { color: var(--orange-text); }
.ap-pills button { border: 1.2px solid var(--line); color: var(--ink); background: var(--card); }
.ap-pills button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ap-tip { background: var(--tip-bg); color: var(--tip-text); border: 0; border-radius: 10px; box-shadow: var(--cds-shadow-popover); }
.ap-tip .d { color: var(--tip-muted); }
.ap-alert li.warn { background: rgba(255,189,89,.28); border: 1px solid var(--line); }
.ap-alert li.bad { background: var(--bad-bg); border: 1px solid var(--line); }
.ap-alert li.warn .ap-ic { background: var(--orange); color: #191715; }
.ap-alert li.bad .ap-ic { background: var(--bad); color: #fff; }
.ap-alert-d { color: var(--muted); }
.ap-ok-all { background: var(--good-bg); border: 1px solid var(--line); }
.ap-c.done { background: var(--orange); } .ap-c.done svg path { stroke: #191715; }
.ap-c.hold { background: var(--yellow); } .ap-c.hold svg rect { fill: #191715; }
.ap-c.miss { border-color: var(--bad); }
.ap-c.none { background: var(--ap-hair); }
.ap-keys i { border: 1px solid var(--line); }
.ap-st.s-Selesai { color: var(--good-text); background: var(--good-bg); }
.ap-st.s-Tertahan, .ap-st.s-Sebagian { color: #191715; background: var(--yellow); }
.ap-st.s-Belum { color: var(--bad-text); background: var(--bad-bg); }
.ap-kfoot .st-aman { color: var(--good-text); } .ap-kfoot .st-waspada { color: var(--warn-text); } .ap-kfoot .st-tertinggal { color: var(--bad-text); } .ap-kfoot .st-netral { color: var(--muted); }
.ap-keyleg { color: var(--muted); }
.ap-keyleg i { background: var(--ink); }
.ap-age .b { background: var(--orange); border: 1px solid var(--line); opacity: 1 !important; }
.ap-age .v { color: var(--ink); } .ap-age .l { color: var(--muted); }
.ap-vs-bar .t { background: var(--track); border: 1px solid var(--line); }
.ap-vs-bar .t > div { border-radius: 3px; }
.ap-vs-top b { text-transform: uppercase; letter-spacing: .02em; font-size: 13px; }
.ap-fail::before { background: var(--bad); }
.ap-week-task b { color: var(--ink); }
.ap-week-h { color: var(--muted); }
.ap-ring-sub, .ap-score-leg span:first-child { color: var(--muted); }
.ap-score-leg div { border-top-color: var(--ap-hair); }
.ap-leg-row { border-top-color: var(--ap-hair); }
.ap-rank li { border-top-color: var(--ap-hair); }
.ap-eyebrow { margin: 0; }
.dash-skeleton { color: transparent; }

/* ---------- shared new components ---------- */
.fg-grid-ov { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; }
.fg-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 24px; }
.fg-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 24px; }
@media (max-width: 1100px) { .fg-grid-ov { grid-template-columns: minmax(0, 1fr); } }
.fg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 18px; }
.fg-tile { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.fg-tile.is-sample { border-style: dashed; }
.fg-tile-top { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.fg-tile-top i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line); flex: none; margin-top: 4px; }
.fg-tile-top .ap-badge { margin-left: auto; }
.fg-tile-v { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fg-tile-v small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.fg-tile-v.empty { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; padding: 8px 0 4px; }
.fg-tile-s { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.fg-tile-s b { color: var(--ink); font-weight: 600; }
.fg-hello { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--hello) !important; color: #fff; border-color: var(--hello-line) !important; }
.fg-hello .ap-eyebrow { color: #B9B3AA; }
.fg-hello h2 { margin: 6px 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: .02em; line-height: 1.15; color: #fff; }
.fg-hello h2 .hl { color: var(--orange); }
.fg-hello p { margin: 0; color: var(--hello-text); font-size: 15px; line-height: 1.55; max-width: 48rem; }
.fg-hello p b { color: #fff; }
.fg-hello .fg-btn { border-color: var(--yellow); }
.fg-legend-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr)); gap: 12px; margin-top: 18px; }
.fg-legend-btns .fg-btn { justify-content: flex-start; padding: 11px 14px; }
.fg-legend-btns .fg-btn i { width: 10px; height: 10px; border-radius: 50%; border: 1.2px solid currentColor; background: transparent; }
.fg-legend-btns .fg-btn.dark { justify-content: center; }
.fg-legend-btns .fg-btn.plat { background: var(--card); color: var(--ink); }
.fg-legend-btns .fg-btn.plat i { width: 12px; height: 12px; border: 0; }
.fg-legend-btns .fg-btn.plat[aria-pressed="false"] i { background: transparent !important; border: 1.5px solid var(--muted); }
.fg-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.fg-sort select { appearance: none; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; padding-right: 16px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 4px center, right 0 center; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
.fg-sort select option { color: #191715; }
.fg-chart { position: relative; margin-top: 10px; }
.fg-pie-wrap { display: flex; justify-content: center; margin: 14px 0 10px; position: relative; }
.fg-pie-wrap svg { width: min(230px, 100%); height: auto; }
.fg-prog-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.fg-prog-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 4px 10px; align-items: center; }
.fg-prog-item i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line); }
.fg-prog-item b { font-size: 16px; font-weight: 600; }
.fg-prog-item span.p { font-size: 13px; color: var(--orange-text); font-weight: 600; }
.fg-prog-item p { grid-column: 2 / 4; margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.fg-prog-item p b { color: var(--ink); font-size: 13px; }
.fg-quote { display: grid; grid-template-columns: 60px 1fr auto; gap: 18px; align-items: center; }
@media (max-width: 640px) { .fg-quote { grid-template-columns: 48px 1fr; } .fg-quote .fg-quote-act { grid-column: 1 / 3; align-items: flex-start; flex-direction: row; } }
.fg-quote-av { width: 60px; height: 60px; border-radius: 12px; border: 1px solid var(--line); background: var(--orange); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: #191715; }
.fg-quote h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fg-quote p { margin: 0; font-size: 14px; line-height: 1.45; }
.fg-quote small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.fg-quote-act { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fg-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); white-space: nowrap; }
.fg-tag.t-Tinggi { background: var(--bad-bg); } .fg-tag.t-Sedang { background: var(--yellow); color: #191715; } .fg-tag.t-Rendah { background: var(--fill); }
.fg-tag.s-Selesai { background: var(--good-bg); } .fg-tag.s-Ditangani { background: var(--orange-2); color: #191715; } .fg-tag.s-Sudah { background: var(--yellow); color: #191715; } .fg-tag.s-Baru { background: var(--bad-bg); }
.fg-tag.Otomatis { background: var(--orange); color: #191715; } .fg-tag.Dicek { background: var(--yellow); color: #191715; }
.fg-tag.good { background: var(--good-bg); color: var(--good-text); border-color: transparent; } .fg-tag.badt { background: var(--bad-bg); color: var(--bad-text); border-color: transparent; }
.fg-tag.soft { background: var(--fill); border-color: transparent; color: var(--muted); }
.fg-rule { display: flex; flex-direction: column; gap: 10px; }
.fg-rule-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.fg-rule-big .v { font-size: 46px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.fg-meter { position: relative; height: 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--track); margin: 26px 0 2px; overflow: visible; }
.fg-meter > div { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; }
.fg-meter .tg { position: absolute; top: -6px; bottom: -6px; width: 2.5px; background: var(--ink); border-radius: 2px; }
.fg-meter .tg span { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; white-space: nowrap; }
.fg-mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.fg-mini-stats > div { background: var(--fill); border-radius: 14px; padding: 11px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fg-mini-stats .l { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.fg-mini-stats .v { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.fg-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-top: 18px; align-items: stretch; }
@media (max-width: 1100px) { .fg-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } }
@media (max-width: 560px) { .fg-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fg-node { position: relative; padding: 0 18px 0 0; }
.fg-node-in { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: var(--card); height: 100%; display: flex; flex-direction: column; gap: 6px; }
.fg-node:nth-child(odd) .fg-node-in { background: var(--cream); }
.fg-node-ic { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--btn-line); background: var(--yellow); display: grid; place-items: center; }
.fg-node-ic svg { width: 18px; height: 18px; }
.fg-node b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.fg-node .v { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.fg-node small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.fg-node::after { content: "→"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); }
.fg-node:last-child::after { display: none; }
.fg-note-box { border: 1px dashed var(--line); border-radius: 16px; padding: 14px 16px; background: var(--cream); font-size: 14px; line-height: 1.55; }
.fg-note-box ol, .fg-note-box ul { margin: 8px 0 0; padding-left: 20px; }
.fg-search { all: unset; box-sizing: border-box; border: 1.2px solid var(--line); border-radius: 10px; background: var(--input); color: var(--ink); padding: 9px 12px 9px 34px; font-size: 14px; width: min(100%, 22rem); position: relative; }
.fg-search-wrap { position: relative; display: inline-flex; width: min(100%, 22rem); }
.fg-search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; z-index: 1; }
.fg-search:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.fg-search::placeholder { color: var(--muted); }
.fg-tbl-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.ap-tbl td.wrap { white-space: normal; min-width: 18rem; max-width: 26rem; text-align: left; line-height: 1.4; }
.fg-isu { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fg-isu li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--fill); }
.fg-isu li .n { font-family: var(--serif); font-size: 22px; text-align: center; border-radius: 10px; border: 1px solid var(--btn-line); background: var(--orange-2); color: #191715; line-height: 38px; height: 40px; }
.fg-isu li:first-child .n { background: var(--orange); }
.fg-isu b { font-size: 14.5px; font-weight: 600; line-height: 1.35; display: block; }
.fg-isu small { font-size: 12.5px; color: var(--muted); }

/* ---------- daftar konten (bisa diklik, kapital, bisa scroll) ---------- */
.fg-clist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.fg-clist { margin-top: 12px; max-height: 620px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 6px 2px 2px; scrollbar-width: thin; overscroll-behavior: contain; }
.fg-citem { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: background .15s, transform .15s, border-color .15s; position: relative; }
.fg-citem:hover { background: var(--hover); border-color: var(--orange); transform: translateX(2px); }
.fg-citem:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fg-thumb { width: 56px; height: 72px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: var(--fill); display: grid; place-items: center; flex: none; }
.fg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fg-thumb span { font-family: var(--serif); font-size: 18px; color: #191715; }
.fg-ci-t { font-size: 14.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; line-height: 1.3; }
.fg-ci-m { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.fg-ci-m .fg-tag { font-size: 11px; padding: 2px 8px; }
.fg-ci-stats { display: grid; grid-template-columns: repeat(4, minmax(4.4rem, auto)); gap: 4px 16px; text-align: right; }
.fg-ci-stats div { display: flex; flex-direction: column; }
.fg-ci-stats b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fg-ci-stats b.na { color: var(--muted); font-weight: 500; }
.fg-ci-stats small { font-size: 11px; color: var(--muted); }
.fg-ci-go { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; background: var(--yellow); color: #191715; border: 1px solid var(--btn-line); padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.fg-ci-go svg { width: 14px; height: 14px; }
.fg-done { display: inline-flex; align-items: center; gap: 6px; }
.fg-done em { font-style: normal; display: inline-block; width: 44px; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; position: relative; }
.fg-done em i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--orange); }
.fg-scroll-hint { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 860px) {
  .fg-citem { grid-template-columns: 48px minmax(0, 1fr); }
  .fg-thumb { width: 48px; height: 62px; }
  .fg-ci-stats { grid-column: 1 / 3; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: left; }
  .fg-ci-go { grid-column: 1 / 3; justify-self: start; }
}

/* ---------- detail konten ---------- */
.fg-back { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); padding: 6px 2px; }
.fg-back:hover { color: var(--orange-text); }
.fg-back:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.fg-dhero { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 720px) { .fg-dhero { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; } }
.fg-dthumb { width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--fill); display: grid; place-items: center; }
.fg-dthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fg-dthumb span { font-family: var(--serif); font-size: 34px; color: #191715; }
.fg-dtitle { margin: 4px 0 10px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; }
.fg-dmeta { display: flex; flex-wrap: wrap; gap: 8px; }
.fg-dcomp { margin-top: 16px; max-width: 32rem; }
.fg-dcomp .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.fg-dcomp .row b { color: var(--ink); }
.fg-dcomp .bar { height: 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--track); margin-top: 6px; overflow: hidden; }
.fg-dcomp .bar > div { height: 100%; background: var(--orange); }
.fg-dcomp p { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.fg-dnote { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.45; display: flex; gap: 8px; }
.fg-dnote svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--orange-text); }
.fg-iact { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.fg-iact.c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 720px) { .fg-iact, .fg-iact.c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fg-iact > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.fg-iact svg { width: 24px; height: 24px; color: var(--ink); }
.fg-iact b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fg-iact b.na { font-size: 13px; font-weight: 600; color: var(--muted); }
.fg-iact small { font-size: 12px; color: var(--muted); }
.fg-seg { display: inline-flex; border: 1.2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.fg-seg button { all: unset; cursor: pointer; padding: 10px 22px; font-size: 15px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); }
.fg-seg button:last-child { border-right: 0; }
.fg-seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.fg-seg button:focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
.fg-dstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .fg-dstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fg-dstat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.fg-dstat .l { font-size: 13px; color: var(--muted); font-weight: 600; }
.fg-dstat .v { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fg-dstat .v small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.fg-dstat .s { font-size: 12px; color: var(--muted); line-height: 1.4; }
.fg-dstat .v.na { font-size: 15px; font-weight: 600; color: var(--muted); padding: 8px 0 4px; letter-spacing: 0; }
.fg-read { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fg-read li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--fill); font-size: 14.5px; line-height: 1.5; }
.fg-read li .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--btn-line); background: var(--yellow); color: #191715; }
.fg-read li .ic.good { background: #7FD8A2; } .fg-read li .ic.meh { background: var(--orange-2); }
.fg-read li .ic svg { width: 16px; height: 16px; }
.fg-read b { font-weight: 700; }
.fg-aff { list-style: none; margin: 12px 0 0; padding: 0; }
.fg-aff li { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ap-hair); }
.fg-aff li:first-child { border-top: 0; }
.fg-aff .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; }
.fg-aff .ic svg { width: 22px; height: 22px; color: var(--ink); }
.fg-aff b { font-size: 15.5px; font-weight: 600; display: block; }
.fg-aff small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.fg-aff .val { text-align: right; }
.fg-aff .val strong { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fg-aff .val span { font-size: 12.5px; font-weight: 600; }
.fg-aff .val span.good { color: var(--good-text); } .fg-aff .val span.meh { color: var(--muted); } .fg-aff .val span.bad { color: var(--bad-text); }
.fg-empty { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px dashed var(--line); border-radius: 16px; background: var(--fill); margin-top: 12px; }
.fg-empty svg { width: 22px; height: 22px; flex: none; color: var(--orange-text); margin-top: 1px; }
.fg-empty b { display: block; font-size: 14.5px; }
.fg-empty span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.fg-src { margin-top: 12px; }
.fg-src .ap-bars-row { grid-template-columns: minmax(7rem, 9rem) 1fr 4em; padding: 8px 0; font-size: 15px; }
.fg-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 8px; align-items: center; }
.fg-legend span { display: inline-flex; gap: 8px; align-items: center; }
.fg-legend i { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--orange); border-radius: 2px; }
.fg-legend i.dash { border-top: 3px dashed var(--ref); }
.fg-legend i.ig { border-top-color: var(--ig); } .fg-legend i.tt { border-top-color: var(--tt); }
.fg-split-tbl { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; max-width: 22rem; }
.fg-split-tbl b { font-weight: 700; } .fg-split-tbl span { color: var(--muted); }
.fg-split-tbl .r { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- arti istilah ---------- */
.fg-gloss { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 16px; }
.fg-gloss dl { margin: 0; }
.fg-gloss .g { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.fg-gloss dt { font-size: 16px; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fg-gloss dt small { font-size: 12px; font-weight: 600; color: var(--muted); }
.fg-gloss dd { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.fg-gloss dd em { font-style: normal; color: var(--muted); }

/* ---------- kecil-kecil ---------- */
.tt-dot { background: var(--tt); }
.pd-ig { background: var(--ig) !important; } .pd-tt { background: var(--tt) !important; } .pd-fb { background: var(--fb) !important; }
.fg-empty-l { padding: 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 14px; }
.fg-tag.s-Beres { background: var(--good-bg); color: var(--good-text); border-color: transparent; }
.fg-tag.s-Sedang { background: var(--orange-2); color: #191715; }
.fg-tag.s-Sudah { background: var(--yellow); color: #191715; }
.fg-tag.s-Baru { background: var(--bad-bg); color: var(--bad-text); }
.ap-sub-t { color: var(--muted); }
.ap-flow-foot { color: var(--muted); }
.ap-flow-foot b { color: var(--ink); }
.ap-gleg { color: var(--muted); }
.ap-gleg b { color: var(--ink); }
.ap-note { color: var(--muted); }
.ap-split-leg .ap-muted { display: block; font-size: 12.5px; }
.fg-hello .fg-btn { color: #191715; }
.ap-tbl td.na { color: var(--muted); }
.ap[data-theme="dark"] .fg-chip i[style] { border-color: transparent; }
.ap[data-theme="dark"] .fg-avatar { border-color: var(--orange); }
.ap[data-theme="dark"] .ap-card.fg-hello .ap-eyebrow { color: #A9A39A; }
.ap .ap-ring-val { color: var(--ink); }
.ap .ap-rings-wrap { color: var(--ink); }

/* v5.1: header di layar HP — tombol tema cukup ikon */
@media (max-width: 640px) {
  .fg-top-r { gap: 10px; }
  .fg-theme { padding: 9px 11px; }
  .fg-theme span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* v6: titik warna kecil di depan label (teks tetap warna tinta) */
.ap-ldot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; border: 1px solid var(--line); }
.fg-pl { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.fg-pl i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid var(--line); }

/* v6: tombol bahasa ID / EN */
.fg-lang { display: inline-flex; border: 1.2px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); flex: none; }
.fg-lang button { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 14px; font-size: 13.5px; font-weight: 700; letter-spacing: .05em; color: var(--muted); transition: background .15s, color .15s; }
.fg-lang button + button { border-left: 1.2px solid var(--line); }
.fg-lang button:hover { color: var(--ink); background: var(--fill); }
.fg-lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.fg-lang button:focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
@media (max-width: 640px) { .fg-lang button { padding: 9px 11px; } }

/* v6: halaman Resume minggu ini */
.rs-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rs-weeks { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.rs-auto { font-size: 12.5px; margin-left: auto; }
#rs-body { display: flex; flex-direction: column; gap: 22px; }
.rs-hero { display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding: 30px 32px; }
.rs-hero .rs-gist { margin: 8px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: .01em; color: #fff; max-width: 60rem; }
.rs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rs-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rs-stat .l { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #B9B3AA; }
.rs-stat b { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: #fff; line-height: 1.1; }
.rs-stat b.na { color: #8B857C; }
.rs-stat .s { font-size: 12.5px; color: #CFCAC2; }
.rs-act { display: flex; gap: 10px; flex-wrap: wrap; }
.rs-act .fg-btn.ghost-l { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.rs-act .fg-btn.ghost-l:hover { box-shadow: 0 3px 0 rgba(255,255,255,.35); }
.rs-card .ap-card-t { font-size: 22px; }
.rs-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rs-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; line-height: 1.55; }
.rs-list .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.2px solid var(--line); }
.rs-list .ic svg { width: 17px; height: 17px; }
.rs-list .ic.good { background: var(--good-bg); color: var(--good-text); }
.rs-list .ic.bad { background: var(--cream); color: var(--orange-text); }
.rs-list b, .rs-sar b, .rs-sar small b { font-weight: 700; }
.rs-judul { text-transform: uppercase; letter-spacing: .02em; }
.rs-sar { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rs-sar li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border-radius: 16px; background: var(--fill); border: 1px solid var(--rule); }
.rs-sar .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #191715; font-family: var(--serif); font-size: 20px; border: 1.2px solid var(--btn-line); }
.rs-sar li > div > b { display: block; font-size: 16.5px; line-height: 1.45; font-weight: 600; }
.rs-sar small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.rs-foot { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.rs-foot a { color: var(--orange-text); font-weight: 600; }
.rs-notes { border: 1px dashed var(--rule); border-radius: 18px; padding: 16px 20px; color: var(--muted); font-size: 13.5px; }
.rs-notes-h { display: flex; align-items: center; gap: 8px; color: var(--ink); margin-bottom: 6px; }
.rs-notes-h svg { width: 18px; height: 18px; }
.rs-notes ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }
@media (max-width: 860px) { .rs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rs-auto { margin-left: 0; width: 100%; } }
@media (max-width: 640px) { .rs-hero { padding: 22px 18px; } .rs-stat b { font-size: 23px; } .rs-list li { font-size: 15px; } }

/* v6: rapikan judul kartu angka + header + kamus */
.fg-tile-top { flex-wrap: wrap; row-gap: 6px; }
.fg-tile-top > span:not(.ap-badge) { flex: 1 1 7.5em; min-width: 0; }
.fg-top > div:first-child { flex: 1 1 280px; min-width: 0; }
#istilah-body { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 640px) {
  .fg-who { display: none; }
  .fg-logo { flex: none; } .fg-logo b { white-space: nowrap; }
  .rs-hero .rs-gist { font-size: 20px; line-height: 1.35; }
}

/* v6.1: kata yang bisa diklik di Weekly Resume */
.rs-link { all: unset; cursor: pointer; font-weight: 700; color: var(--orange-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; border-radius: 4px; }
.rs-link:hover { background: var(--cream); }
.rs-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.rs-link.rs-judul { text-transform: uppercase; letter-spacing: .02em; }

/* v6.2: filter tanggal (periode) */
.fg-seg2 { display: inline-flex; border: 1.2px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.fg-seg2 button { all: unset; box-sizing: border-box; cursor: pointer; padding: 7px 14px; font-size: 14px; font-weight: 500; color: var(--ink); }
.fg-seg2 button + button { border-left: 1.2px solid var(--line); }
.fg-seg2 button:hover { background: var(--fill); }
.fg-seg2 button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.fg-seg2 button:focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
.per-group { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.per-group:empty { display: none; }
.fg-chip.zero { opacity: .55; }
.per-all { font-size: 13px; color: var(--muted); }
.per-all b { color: var(--ink); }
#per-pill .chev { width: 14px; height: 14px; margin-left: -2px; }
#per-pill.fg-static .chev { display: none; }
#filter-periode.flash { animation: perflash 1.2s ease; }
@keyframes perflash { 0%, 100% { background: var(--paper); } 25% { background: var(--cream); } }
@media (prefers-reduced-motion: reduce) { #filter-periode.flash { animation: none; } }

/* v6.3 tanggal yang bisa diklik */
.fg-datebtn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.fg-datebtn:hover { color: var(--ink); text-decoration-style: solid; }
.fg-datebtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.fg-datebtn.fg-tag { text-decoration: none; border: 1px solid transparent; }
.fg-datebtn.fg-tag:hover { border-color: var(--line); color: var(--ink); }

/* ================= v8: overview baru, OKR, inbox, social listening, ekspor ================= */
.fg-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .fg-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.fg-ret-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: 10px; margin-top: 12px; }
.fg-ret-stats > div { background: var(--fill); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fg-ret-stats .l { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.fg-ret-stats .v { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.fg-ret-stats > .fg-ret-go { background: transparent; padding: 0; justify-content: center; align-items: flex-start; }
.fg-alerts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.fg-alert { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--fill); border-left: 4px solid var(--ref); }
.fg-alert:hover { background: var(--hover); }
.fg-alert:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fg-alert.lv-bad { border-left-color: var(--bad); } .fg-alert.lv-warn { border-left-color: var(--orange); } .fg-alert.lv-good { border-left-color: var(--good); }
.fg-alert b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.fg-alert-d { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.fg-alert-top { display: flex; gap: 8px; align-items: center; font-size: 11.5px; }
.fg-alert-lv { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; }
.lv-bad .fg-alert-lv { color: var(--bad-text); } .lv-warn .fg-alert-lv { color: var(--orange-text); } .lv-good .fg-alert-lv { color: var(--good-text); } .lv-info .fg-alert-lv { color: var(--muted); }
.fg-alert-top .ap-badge { margin-left: auto; }
.fg-sov { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; margin-top: 8px; }
.fg-sov i { display: block; }

/* tombol header + download per kartu */
.fg-act { padding: 8px 14px; }
.fg-act-main { background: var(--orange); color: #191715; border-color: var(--btn-line); }
.fg-btn.danger { background: var(--bad-bg); color: var(--bad-text); border-color: var(--bad); }
.fg-dl { all: unset; box-sizing: border-box; cursor: pointer; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border: 1px solid transparent; flex: 0 0 auto; margin-left: auto; align-self: flex-start; }
.ap-card-h .fg-dl { margin-left: 4px; }
.fg-dl:hover { color: var(--ink); background: var(--fill); border-color: var(--rule); }
.fg-dl:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.has-dl > .fg-dl, .fg-tiles > .fg-dl { position: absolute; top: 14px; right: 14px; }
.fg-tiles { position: relative; }
.fg-tiles > .fg-dl { top: -40px; right: 0; }
.ap-card-h .ap-badge + .fg-dl, .ap-card-h .ap-muted + .fg-dl { margin-left: 4px; }

/* modal */
.fg-modal { position: fixed; inset: 0; background: rgba(15,13,11,.48); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.fg-modal-box { background: var(--card); color: var(--ink); border: 1.2px solid var(--line); border-radius: 22px; width: min(620px, 100%); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.fg-modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fg-modal-h h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.fg-x-btn { all: unset; cursor: pointer; font-size: 26px; line-height: 1; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); }
.fg-x-btn:hover { background: var(--fill); color: var(--ink); }
.fg-modal-f { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.fg-range { display: flex; flex-direction: column; gap: 8px; }
.fg-range .fg-seg2 { flex-wrap: wrap; border-radius: 14px; }
.fg-range-c { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.fg-range-c input, .fg-form-f input, .fg-form-f select, .fg-form-f textarea, .fg-search, .fg-inbox-sel select, .fg-compose textarea, .fg-pick input {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--input); border: 1.2px solid var(--rule); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.fg-range-c input:focus, .fg-form-f input:focus, .fg-form-f select:focus, .fg-form-f textarea:focus, .fg-search:focus, .fg-compose textarea:focus, .fg-pick input:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--line); }
.fg-dl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 6px 14px; max-height: 300px; overflow-y: auto; padding: 4px 2px; }
.fg-dl-item { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.fg-dl-item input { accent-color: var(--orange); width: 16px; height: 16px; }
.fg-dl-item .ap-badge { font-size: 10px; padding: 1px 6px; }
.fg-wk-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.fg-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--tip-bg); color: var(--tip-text); padding: 11px 18px; border-radius: 12px; font-size: 14px; z-index: 60; box-shadow: var(--cds-shadow-popover); transition: opacity .4s; max-width: calc(100% - 32px); }
.fg-toast.bad { background: var(--bad); color: #fff; }
.fg-toast.out { opacity: 0; }
.fg-note { display: flex; gap: 10px; align-items: flex-start; background: var(--cream); border: 1px dashed var(--rule); border-radius: 14px; padding: 12px 14px; margin-bottom: 20px; color: var(--ink); }
.fg-note svg { flex: 0 0 auto; margin-top: 1px; color: var(--orange-text); stroke: currentColor; }
.fg-note p { margin: 0; font-size: 13.5px; line-height: 1.45; }

/* form */
.fg-form-f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); position: relative; }
.fg-form-f > span { color: var(--ink); }
.fg-form-f textarea { min-height: 70px; resize: vertical; }
.fg-form-f[hidden] { display: none; }
.fg-pick-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border: 1.2px solid var(--line); border-radius: 10px; z-index: 5; padding: 4px; display: flex; flex-direction: column; box-shadow: var(--cds-shadow-popover); }
.fg-pick-menu[hidden] { display: none; }
.fg-pick-menu button { all: unset; cursor: pointer; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.fg-pick-menu button:hover { background: var(--fill); }

/* OKR */
.fg-okr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; }
.fg-okr-sp { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.fg-okr-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 12px; margin-bottom: 20px; }
.fg-okr-sum > div { background: var(--card); border: 1px solid var(--ap-hair); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.fg-okr-sum .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.fg-okr-sum .v { font-family: var(--serif); font-size: 26px; }
.fg-okr-stc { display: flex; flex-wrap: wrap; gap: 4px; font-family: var(--sans) !important; font-size: 13px !important; }
.fg-okr-o { margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.fg-okr-h { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.fg-okr-tt { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.fg-okr-no { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 7px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.fg-okr-r { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.fg-okr-pct { font-family: var(--serif); font-size: 26px; font-weight: 400; }
.fg-okr-st { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.fg-okr-st.st-good { background: var(--good-bg); color: var(--good-text); } .fg-okr-st.st-warn { background: var(--hover); color: var(--orange-text); border: 1px solid var(--orange-2); }
.fg-okr-st.st-bad { background: var(--bad-bg); color: var(--bad-text); } .fg-okr-st.st-info { background: var(--fill); color: var(--muted); }
.fg-okr-bar { height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; flex: 1 1 auto; min-width: 60px; }
.fg-okr-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ref); }
.fg-okr-bar i.st-good { background: var(--good); } .fg-okr-bar i.st-warn { background: var(--orange); } .fg-okr-bar i.st-bad { background: var(--bad); }
.fg-okr-av { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--orange-2); color: #191715; font-size: 11px; font-weight: 700; }
.fg-kr-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.fg-kr { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; grid-template-areas: "t v p a" "m m m m"; gap: 6px 16px; align-items: center; background: var(--fill); border-radius: 14px; padding: 12px 14px; }
.fg-kr-t { grid-area: t; display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.fg-kr-t b { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.fg-kr-no { font-size: 11px; font-weight: 700; color: var(--muted); flex: 0 0 auto; }
.fg-kr-m { grid-area: m; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12.5px; color: var(--muted); }
.fg-kr-link { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.fg-kr-link.bad { color: var(--bad-text); }
.fg-kr-link.clk { all: unset; cursor: pointer; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.fg-kr-note { font-style: italic; }
.fg-kr-v { grid-area: v; font-size: 15px; white-space: nowrap; }
.fg-kr-v b { font-weight: 700; }
.fg-kr-p { grid-area: p; display: flex; align-items: center; gap: 8px; min-width: 0; }
.fg-kr-pct { font-size: 13px; font-weight: 700; min-width: 36px; text-align: right; }
.fg-kr-a { grid-area: a; display: flex; gap: 6px; }
@media (max-width: 900px) { .fg-kr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t t" "v a" "p p" "m m"; } }
.fg-okr-act { display: flex; gap: 8px; flex-wrap: wrap; }
.fg-okr-tree { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.fg-tree-n { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(80px, 200px) auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--fill); border-radius: 12px; border-left: 3px solid var(--orange); }
.fg-ci { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--ap-hair); font-size: 13.5px; }
.fg-ci p { margin: 2px 0 0; font-style: italic; color: var(--muted); }
.fg-okr-mini { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(50px, 90px) auto; gap: 10px; align-items: center; padding: 7px 0; cursor: pointer; font-size: 13.5px; }
.fg-okr-mini .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* inbox */
.fg-inbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .fg-inbox { grid-template-columns: minmax(0, 1fr); } }
.fg-inbox-l, .fg-inbox-r { display: flex; flex-direction: column; gap: 10px; }
.fg-inbox-r { position: sticky; top: 16px; }
.fg-inbox-f { display: flex; flex-direction: column; gap: 8px; }
.fg-seg2.sm button { padding: 6px 11px; font-size: 13px; }
.fg-inbox-sel { display: flex; gap: 8px; flex-wrap: wrap; }
.fg-inbox-sel select { padding: 6px 8px; }
.fg-search { width: 100%; }
.fg-inbox-n { margin: 0; font-size: 12.5px; }
.fg-inbox-list { display: flex; flex-direction: column; gap: 6px; max-height: 640px; overflow-y: auto; padding-right: 4px; }
.fg-msg { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--fill); border: 1.2px solid transparent; }
.fg-msg:hover { background: var(--hover); }
.fg-msg.on { border-color: var(--line); background: var(--card); }
.fg-msg:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.fg-msg-top { display: flex; gap: 8px; align-items: center; font-size: 12.5px; flex-wrap: wrap; }
.fg-msg-top i, .fg-pdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.fg-msg-top b { font-size: 13.5px; }
.fg-msg-top .ap-muted { margin-left: auto; font-size: 12px; }
.fg-msg p { margin: 0; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fg-msg-m { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.fg-tag.k-komplain { background: var(--bad-bg); } .fg-tag.k-pertanyaan { background: var(--hover); border-color: var(--orange-2); } .fg-tag.k-pujian { background: var(--good-bg); } .fg-tag.k-lainnya { background: var(--fill); }
.fg-tag.s-positif { background: var(--good-bg); } .fg-tag.s-negatif { background: var(--bad-bg); } .fg-tag.s-netral { background: var(--fill); }
.fg-th-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fg-bubble { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.fg-bubble p { margin: 0; }
.fg-bubble small { display: block; margin-top: 6px; font-size: 11.5px; opacity: .75; }
.fg-bubble.in { background: var(--fill); border-top-left-radius: 4px; align-self: flex-start; }
.fg-bubble.out { background: var(--ink); color: var(--paper); border-top-right-radius: 4px; align-self: flex-end; }
.fg-bubble.out.queued { background: var(--orange-2); color: #191715; }
.fg-compose { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--ap-hair); padding-top: 12px; margin-top: 4px; }
.fg-compose textarea { min-height: 84px; resize: vertical; }
.fg-tpl { display: flex; flex-wrap: wrap; gap: 6px; }
.fg-tpl .fg-chip { font-size: 12.5px; padding: 5px 10px; }
.fg-compose-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fg-pick { position: relative; flex: 1 1 180px; min-width: 0; }
.fg-pick input { width: 100%; }

/* social listening */
.fg-ml-body { margin-top: 10px; }
#listen-root .fg-tiles, #listen-root .fg-grid-ov, #listen-root .fg-grid-2 { margin-bottom: 24px; }
#listen-root > .ap-card { margin-bottom: 24px; }
.fg-hbars { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.fg-hbar { display: grid; grid-template-columns: minmax(80px, 34%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; margin-bottom: 7px; }
.fg-hbar .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg-hbar .tr, .fg-hbar .trw { height: 10px; background: var(--track); border-radius: 999px; overflow: hidden; display: flex; }
.fg-hbar .trw { background: transparent; }
.fg-hbar .tr i { display: block; height: 100%; border-radius: 999px; }
.fg-hbar .tr.stack { gap: 1px; } .fg-hbar .tr.stack i { border-radius: 0; }
.fg-hbar b { font-size: 13px; min-width: 36px; text-align: right; }
.fg-sent-split { display: flex; height: 16px; border-radius: 999px; overflow: hidden; gap: 2px; }
.fg-sent-split i { display: block; }
.fg-sent-leg { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.fg-sent-leg span { display: inline-flex; align-items: center; gap: 6px; }
.fg-sent-leg i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.fg-sent-leg b { color: var(--ink); }
.fg-tagcloud { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.fg-tag-w { font-weight: 600; color: var(--ink); }
.fg-tag-w small { font-size: 11px; color: var(--muted); font-weight: 600; }
.fg-feed-f { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.fg-chipset { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fg-chipset .fg-chip { padding: 5px 11px; font-size: 13px; }
.fg-feed { display: flex; flex-direction: column; gap: 8px; max-height: 620px; overflow-y: auto; padding-right: 4px; }
.fg-mention { background: var(--fill); border-radius: 12px; padding: 11px 13px; display: flex; flex-direction: column; gap: 5px; }
.fg-mention-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.fg-mention-top .fg-tag:last-child { margin-left: auto; }
.fg-mention p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.fg-mention-m { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.fg-mention-h { color: var(--ig); font-weight: 600; }
@media (max-width: 700px) { .fg-act span { display: none; } .fg-act { padding: 8px 10px; } }

#ov-ret-pick { max-width: min(340px, 52vw); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
#card-ov-retensi .ap-card-h { flex-wrap: wrap; }
.fg-inbox-f .fg-seg2 { align-self: flex-start; flex-wrap: wrap; border-radius: 14px; }
.fg-okr-mini .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }

/* ================= v9: tampilan bersih (penjelasan muncul kalau diklik) ================= */
.fg-hid { display: none !important; }
.fg-top #page-sub { display: none; }
.ap-page > .ap-tabsub { display: none; }
.fg-filter .fg-filter-note { display: none; }
.fg-side .fg-side-foot { font-size: 0; line-height: 0; color: transparent; }
.fg-side .fg-side-foot .ap-badge { font-size: 11px; line-height: 1.4; color: #191715; }
.fg-top > div:first-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fg-info { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); flex: 0 0 auto; transition: background .15s, color .15s; }
.fg-info svg { width: 16px; height: 16px; }
.fg-info:hover, .fg-info[aria-expanded="true"] { color: var(--ink); background: var(--fill); }
.fg-info:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.ap-card-h { align-items: center; }
.ap-card-h > .fg-info { margin-right: auto; margin-left: -2px; }
.has-info > .fg-info { position: absolute; top: 16px; right: 16px; }
#page-info { width: 30px; height: 30px; }
#page-info svg { width: 18px; height: 18px; }
.fg-pop { position: fixed; z-index: 70; background: var(--card); color: var(--ink); border: 1.2px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 14px 40px rgba(0,0,0,.22); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.45; max-height: 60vh; overflow: auto; }
.fg-pop-t { font-size: 14px; font-weight: 600; }
.fg-pop p, .fg-pop .ap-card-s, .fg-pop .ap-tabsub, .fg-pop .fg-title-sub { margin: 0; color: var(--ink); font-size: 13.5px; line-height: 1.45; display: block; }
.fg-pop .fg-note { margin: 0; padding: 10px 12px; }
.fg-pop .fg-filter-note { display: block; color: var(--muted); font-size: 12.5px; }
.fg-pop .fg-side-foot { font-size: 12.5px; color: var(--muted); padding: 0; margin: 0; }
.fg-tile.has-info { cursor: pointer; transition: background .15s; }
.fg-tile.has-info:hover { background: var(--hover); }
.fg-tile.has-info:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fg-tile-top .fg-info { margin-left: auto; width: 20px; height: 20px; opacity: .5; }
.fg-tile-top .fg-info svg { width: 14px; height: 14px; }
.fg-tile-top .ap-badge + .fg-info { margin-left: 2px; }
.fg-tile.has-info:hover .fg-info { opacity: 1; }
.fg-legend-mini { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.fg-alert .fg-alert-more { display: none; }
.fg-alert.open .fg-alert-more { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 4px; }
.fg-alert.open { background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.fg-kr-t { all: unset; box-sizing: border-box; cursor: pointer; }
.fg-kr-t:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.fg-kr-chev { color: var(--muted); display: inline-block; transition: transform .2s; font-size: 16px; line-height: 1; }
.fg-kr.open .fg-kr-chev { transform: rotate(90deg); }
.fg-kr:not(.open) .fg-kr-m { display: none; }

#card-ov-retensi .ap-card-h { flex-wrap: nowrap; }
#card-ov-retensi .fg-sort { min-width: 0; overflow: hidden; }
#ov-ret-pick { max-width: 240px; }
@media (max-width: 700px) { #card-ov-retensi .ap-card-h { flex-wrap: wrap; } #ov-ret-pick { max-width: 200px; } }

.fg-ret-stats .v.sm { font-size: 14px; }

#layanan-seg { margin-right: 10px; }
.per-custom { display: inline-flex; align-items: center; gap: 6px; }
.per-custom input { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--card); border: 1.2px solid var(--line); border-radius: 999px; padding: 5px 12px; min-width: 0; color-scheme: light; }
.ap[data-theme="dark"] .per-custom input { color-scheme: dark; }
.per-custom input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }

/* ---------- tugas tim (satu daftar) ---------- */
.fg-sec-gap { margin: 34px 0 6px; }
.fg-weeknav { display: inline-flex; align-items: center; gap: 10px; }
.fg-weeknav b { font-size: 15px; font-weight: 600; }
.fg-weeknav .fg-btn { padding: 4px 12px; font-size: 16px; line-height: 1; }
.fg-task-g { margin-bottom: 16px; }
.fg-task-g .ap-card-h { margin-bottom: 8px; }
.fg-task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--ap-hair); }
.fg-task:first-of-type { border-top: 0; }
.fg-task-ck { all: unset; box-sizing: border-box; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--line); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #191715; }
.fg-task-ck:hover:not(:disabled) { border-color: var(--orange); background: var(--hover); }
.fg-task-ck:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fg-task-ck:disabled { cursor: default; opacity: .6; }
.fg-task.done .fg-task-ck { background: var(--orange); border-color: var(--orange); }
.fg-task-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fg-task-b > b { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.fg-task.done .fg-task-b > b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.fg-task-m { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.fg-task-m .fg-okr-av { width: 20px; height: 20px; font-size: 10.5px; }
.fg-task-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fg-task-dl { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.fg-task-dl.late { color: var(--bad-text); font-weight: 600; }
.fg-task-sel { font: inherit; font-size: 13px; color: var(--ink); background: var(--card); border: 1.2px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.fg-task-sel:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
@media (max-width: 700px) { .fg-task { grid-template-columns: auto minmax(0, 1fr); } .fg-task-r { grid-column: 2; justify-content: flex-start; } }

/* ---------- ritme tim (Overview) ---------- */
.fg-ritme { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.fg-ritme-i { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1.2px solid var(--ap-hair); font-size: 13.5px; color: var(--ink); }
.fg-ritme-i .h { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fg-ritme-i b { font-weight: 600; }
.fg-ritme-i .n { font-size: 12.5px; color: var(--muted); }
.fg-ritme-i:hover { background: var(--hover); }
.fg-ritme-i:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fg-ritme-i.now { border-color: var(--orange); background: var(--hover); }
.fg-ritme-i.now .h { color: var(--orange-text); }
.fg-alert-pic { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--fill); color: var(--muted); }
.fg-alert-pic.st-beres { background: var(--good-bg); color: var(--good-text); }
.fg-alert-pic.st-jalan { background: var(--orange-2); color: #191715; }
.fg-alert-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 700px) {
  #per-mode { display: grid; grid-template-columns: repeat(3, auto); border-radius: 14px; }
  #per-mode button { text-align: center; padding: 7px 10px; }
  #per-mode button + button { border-left: 0; }
  #per-mode button:nth-child(n+4) { border-top: 1.2px solid var(--line); }
  #per-mode button:not(:nth-child(3n+1)) { border-left: 1.2px solid var(--line); }
  #tugas-root .fg-okr-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #tugas-root .fg-okr-sum > div { padding: 9px 10px; }
  #tugas-root .fg-okr-sum .v { font-size: 21px; }
}

/* ---------- skor konten ---------- */
.g-win { --sc: var(--good); --sc-bg: var(--good-bg); --sc-t: var(--good-text); }
.g-bagus { --sc: #6FB36B; --sc-bg: rgba(111,179,107,.18); --sc-t: var(--good-text); }
.g-std { --sc: #E7B416; --sc-bg: rgba(255,222,89,.35); --sc-t: #7A5A00; }
.g-kurang { --sc: var(--bad); --sc-bg: var(--bad-bg); --sc-t: var(--bad-text); }
.g-none { --sc: var(--line); --sc-bg: var(--fill); --sc-t: var(--muted); }
.ap[data-theme="dark"] .g-std { --sc-t: #FFDE59; --sc-bg: rgba(255,222,89,.16); }
.fg-dhero:has(.fg-shero) { grid-template-columns: 150px minmax(0, 1fr) 250px; }
.fg-shero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 6px 0 4px 26px; border-left: 1px solid var(--ap-hair); }
.fg-shero-l { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fg-sring { position: relative; flex: 0 0 auto; }
.fg-sring svg { width: 100%; height: 100%; display: block; }
.fg-sring .tr { fill: none; stroke: var(--fill); stroke-width: 9; }
.fg-sring .fl { fill: none; stroke: var(--sc); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.2,.8,.2,1); }
.fg-sring-v { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 34%; gap: 2px; }
.fg-sring-v b { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; color: var(--ink); }
.fg-sring-v small { font-size: 14px; color: var(--muted); font-weight: 600; }
.fg-sgrade { display: inline-flex; padding: 4px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--sc-bg); color: var(--sc-t); }
.fg-srank { font-size: 13px; color: var(--muted); }
.fg-srank b { color: var(--ink); }
.fg-stemp { font-size: 12px; color: var(--muted); background: var(--fill); padding: 3px 10px; border-radius: 999px; }
.fg-sdet .fg-slist { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.fg-srow { display: grid; grid-template-columns: minmax(0, 200px) minmax(80px, 1fr) 76px minmax(0, 1.3fr); gap: 16px; align-items: center; padding: 9px 0; border-top: 1px solid var(--ap-hair); }
.fg-srow:first-child { border-top: 0; }
.fg-srow-n { display: block; line-height: 1.35; }
.fg-srow-n .ap-muted { margin-left: 6px; white-space: nowrap; }
.fg-srow-n b { font-size: 14.5px; font-weight: 600; }
.fg-srow-n .ap-muted { font-size: 12px; }
.fg-sbar { height: 10px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.fg-sbar i { display: block; height: 100%; border-radius: 999px; }
.fg-sbar i.hi { background: var(--good); } .fg-sbar i.mid { background: #E7B416; } .fg-sbar i.lo { background: var(--bad); }
.fg-srow-v { font-family: var(--serif); font-size: 22px; text-align: right; }
.fg-srow-v.na { font-family: var(--sans); font-size: 11.5px; line-height: 1.25; color: var(--muted); }
.fg-srow-d { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.fg-srow-d .ap-muted { font-size: 12px; }
.fg-srow.na .fg-srow-n b { color: var(--muted); }
@media (max-width: 1100px) { .fg-dhero:has(.fg-shero) { grid-template-columns: 120px minmax(0, 1fr); } .fg-shero { grid-column: 1 / -1; order: -1; border-left: 0; border-bottom: 1px solid var(--ap-hair); padding: 0 0 16px; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 18px; } }
@media (max-width: 720px) { .fg-dhero:has(.fg-shero) { grid-template-columns: 96px minmax(0, 1fr); } .fg-srow { grid-template-columns: minmax(0, 1fr) 76px; gap: 6px 12px; } .fg-sbar { grid-column: 1 / -1; grid-row: 2; } .fg-srow-d { grid-column: 1 / -1; } }
/* overview */
.fg-skv { display: flex; gap: 22px; align-items: center; margin: 8px 0 14px; }
.fg-skv .fg-sring-v b { font-size: 36px; }
.fg-skv-s { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.fg-sdist { display: flex; flex-wrap: wrap; gap: 6px; }
.fg-sdist-i { display: inline-flex; gap: 5px; align-items: baseline; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--sc-bg); color: var(--sc-t); }
.fg-sdist-i b { font-size: 14px; }
.fg-slist-ov { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fg-slist-ov li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 6px; border-top: 1px solid var(--ap-hair); cursor: pointer; border-radius: 10px; }
.fg-slist-ov li:hover { background: var(--hover); }
.fg-slist-ov li:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.fg-skv-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fg-skv-t b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fg-skv-t .ap-muted { font-size: 12px; }
.fg-spill { display: inline-flex; align-items: center; justify-content: center; height: 34px; border-radius: 10px; background: var(--sc-bg); color: var(--sc-t); font-family: var(--serif); font-size: 19px; }
/* daftar konten */
.fg-citem { grid-template-columns: 56px minmax(0, 1fr) auto auto auto; }
.fg-ci-skor { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 66px; padding: 6px 8px; border-radius: 12px; background: var(--sc-bg); color: var(--sc-t); }
.fg-ci-skor b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; color: var(--ink); }
.fg-ci-skor small { font-size: 11px; font-weight: 700; }
@media (max-width: 860px) { .fg-citem { grid-template-columns: 48px minmax(0, 1fr) auto; } .fg-ci-stats, .fg-ci-go { grid-column: 1 / -1; } .fg-ci-skor { min-width: 54px; } .fg-ci-skor b { font-size: 21px; } }
.fg-menu { position: fixed; z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--cds-shadow-popover, 0 12px 32px rgba(0,0,0,.16)); display: flex; flex-direction: column; }
.fg-menu-i { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.fg-menu-i b { font-size: 14px; font-weight: 600; color: var(--ink); }
.fg-menu-i span { font-size: 12.5px; color: var(--muted); }
.fg-menu-i:hover, .fg-menu-i:focus-visible { background: var(--hover); outline: none; }
.fg-menu-sep { height: 1px; background: var(--ap-hair); margin: 4px 6px; }
.fg-modal .fg-seg2 { align-self: flex-start; margin-bottom: 4px; }

/* ---------- konteks mention ---------- */
.fg-mention.clk { cursor: pointer; transition: background .15s; }
.fg-mention.clk:hover { background: var(--hover); }
.fg-mention.clk:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fg-mention-ctx { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.fg-mention-ctx .fg-tag { font-size: 11px; padding: 2px 8px; }
.fg-mention-go { margin-left: auto; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .15s; }
.fg-mention.clk:hover .fg-mention-go, .fg-mention.clk:focus-visible .fg-mention-go { opacity: 1; }
@media (hover: none) { .fg-mention-go { opacity: 1; } }
.fg-mctx-s { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.fg-mpost { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--card); }
.fg-mpost-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.fg-mpost-t { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.fg-mpost-m { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.fg-mthread { display: flex; flex-direction: column; gap: 6px; padding-left: 14px; border-left: 2px solid var(--ap-hair); }
.fg-mbub { background: var(--fill); border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; gap: 4px; }
.fg-mbub.hl { background: var(--hover); box-shadow: inset 0 0 0 1.5px var(--orange); }
.fg-mbub.clk { cursor: pointer; } .fg-mbub.clk:hover { background: var(--hover); }
.fg-mbub-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; }
.fg-mbub-h .fg-tag { font-size: 11px; padding: 2px 8px; }
.fg-mbub p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.fg-mctx-st { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.fg-mctx-st > div { background: var(--fill); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.fg-mctx-st .l { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.fg-mctx-st b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.fg-mctx-note { font-size: 12px; margin-right: auto; max-width: 360px; line-height: 1.4; }
.fg-gs-status { font-size: 13.5px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; background: var(--fill); color: var(--ink); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fg-gs-status.ok { background: var(--good-bg); }
.fg-gs-status.bad { background: var(--bad-bg); color: var(--bad-text); }
.fg-gs-status a.fg-btn { text-decoration: none; }

/* ---------- klasifikasi inbox ---------- */
.k-peluang { --kc: #1F7A4D; --kb: rgba(47,143,85,.16); }
.k-kerjasama { --kc: #2E5FA8; --kb: rgba(46,95,168,.14); }
.k-komplain { --kc: var(--bad-text); --kb: var(--bad-bg); }
.k-pertanyaan { --kc: #8A5A00; --kb: rgba(255,189,89,.32); }
.k-mendukung { --kc: #7A3FA0; --kb: rgba(131,58,180,.13); }
.k-semangat { --kc: var(--orange-text); --kb: rgba(255,145,77,.2); }
.k-lucu { --kc: #8A6D00; --kb: rgba(255,222,89,.4); }
.k-lain { --kc: var(--muted); --kb: var(--fill); }
.ap[data-theme="dark"] .k-peluang { --kc: #7FD8A2; } .ap[data-theme="dark"] .k-kerjasama { --kc: #9DBDF2; } .ap[data-theme="dark"] .k-pertanyaan { --kc: #FFBD59; } .ap[data-theme="dark"] .k-mendukung { --kc: #D3A6F0; } .ap[data-theme="dark"] .k-lucu { --kc: #FFDE59; } .ap[data-theme="dark"] .k-semangat { --kc: #FFB07A; }
.fg-tag.k-peluang, .fg-tag.k-kerjasama, .fg-tag.k-komplain, .fg-tag.k-pertanyaan, .fg-tag.k-mendukung, .fg-tag.k-semangat, .fg-tag.k-lucu, .fg-tag.k-lain { background: var(--kb); color: var(--kc); border-color: transparent; }
.fg-inbox-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 12px; }
.fg-klas-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fg-klas-chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--kb, var(--card)); color: var(--kc, var(--ink)); border: 1.2px solid transparent; font-size: 13.5px; font-weight: 600; }
.fg-klas-chip:not([class*=" k-"]) { border-color: var(--line); }
.fg-klas-chip b { font-family: var(--serif); font-weight: 400; font-size: 16px; color: var(--ink); }
.fg-klas-chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fg-klas-chip.lead span::before { content: "★ "; }
.fg-klas-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fg-msg.lead { box-shadow: inset 3px 0 0 #2F8F55; }
.fg-klas-box { border-radius: 14px; background: var(--kb); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.fg-klas-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fg-klas-row .fg-filter-l { margin: 0; }
.fg-klas-sel { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--kc, var(--ink)); background: var(--card); border: 1.2px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.fg-klas-sel.sm { font-size: 12.5px; padding: 3px 8px; max-width: 150px; }
.fg-klas-sel:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.fg-klas-ai { font-size: 12px; color: var(--muted); }
.fg-lead { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; color: var(--kc); }
.fg-work td { vertical-align: top; }
.fg-work td small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.fg-work td.nowrap { white-space: nowrap; }
.fg-work tr.lead td:first-child { box-shadow: inset 3px 0 0 #2F8F55; }
.fg-work { table-layout: fixed; width: 100%; min-width: 860px; }
.fg-work col.c-from { width: 14%; } .fg-work col.c-msg { width: 27%; } .fg-work col.c-klas { width: 15%; } .fg-work col.c-reply { width: 29%; } .fg-work col.c-st { width: 15%; }
.fg-work td .fg-kr-link { display: block; width: fit-content; margin-top: 4px; }
.fg-work th:first-child, .fg-work td:first-child { padding-left: 12px; }
.fg-work td, .fg-work th { overflow-wrap: anywhere; }
.fg-work-msg { }
.fg-work-msg span { display: block; font-size: 13.5px; line-height: 1.4; }
.fg-work-reply { }
.fg-work .fg-klas-sel.sm { max-width: 100%; }
.fg-work-reply textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; color: var(--ink); background: var(--card); border: 1.2px solid var(--line); border-radius: 10px; padding: 6px 8px; resize: vertical; }
.fg-work-reply textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; }
.fg-work-prev { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; line-height: 1.35; }
.fg-work-ctl { display: flex; gap: 6px; margin-top: 5px; align-items: center; }
.fg-work-tpl { font: inherit; font-size: 12px; color: var(--ink); background: var(--card); border: 1.2px solid var(--line); border-radius: 8px; padding: 4px 6px; min-width: 0; flex: 1; }
.fg-inbox-t .fg-inbox-f { margin-bottom: 8px; }

/* ---------- catatan IT ---------- */
.it-lang { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.it-doc { display: flex; flex-direction: column; gap: 12px; max-width: 980px; }
.it-hero { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; font-size: 14.5px; line-height: 1.55; }
.it-hero p { margin: 0 0 8px; } .it-hero p:last-child { margin: 0; }
.it-sec { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.it-sec > summary { cursor: pointer; list-style: none; padding: 16px 20px; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.it-sec > summary::-webkit-details-marker { display: none; }
.it-sec > summary::after { content: "›"; color: var(--muted); font-size: 20px; transition: transform .2s; }
.it-sec[open] > summary::after { transform: rotate(90deg); }
.it-sec > summary:hover { background: var(--hover); }
.it-sec > summary:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.it-sec > div { padding: 0 20px 18px; font-size: 14px; line-height: 1.6; }
.it-sec ul, .it-sec ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.it-sec p { margin: 8px 0; }
.it-doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--fill); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.it-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 6px 0; }
.it-tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.it-tbl td { padding: 8px; border-bottom: 1px solid var(--ap-hair); vertical-align: top; }
.it-tbl td:first-child { white-space: nowrap; }
@media (max-width: 700px) { .it-tbl, .it-tbl tbody, .it-tbl tr, .it-tbl td { display: block; } .it-tbl thead { display: none; } .it-tbl td { border: 0; padding: 2px 0; } .it-tbl tr { padding: 8px 0; border-bottom: 1px solid var(--ap-hair); } .it-tbl td:first-child { white-space: normal; } }
@media (max-width: 900px) {
  .fg-work { min-width: 0; } .fg-work colgroup, .fg-work thead { display: none; }
  .fg-work, .fg-work tbody, .fg-work tr, .fg-work td { display: block; width: auto; }
  .fg-work tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .fg-work td { border: 0 !important; padding: 3px 0 !important; }
  .fg-work tr.lead td:first-child { box-shadow: none; } .fg-work tr.lead { box-shadow: inset 3px 0 0 #2F8F55; padding-left: 10px; }
}

/* ---------- bukti tugas ---------- */
.ap-cell.sab, .ap-week-h.sab { background: var(--hover); }
.ap-week-h.sab { border-radius: 8px 8px 0 0; color: var(--orange-text); font-weight: 700; }
.fg-bukti { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.fg-bukti-need { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--bad-bg); color: var(--bad-text); }
.fg-bukti-c { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); max-width: 260px; }
.fg-bukti-c > a, .fg-bukti-c > button:not(.fg-bukti-x) { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; font-size: 12.5px; color: var(--ink); min-width: 0; }
.fg-bukti-c > a span, .fg-bukti-c > button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg-bukti-c > a:hover, .fg-bukti-c > button:not(.fg-bukti-x):hover { text-decoration: underline; text-underline-offset: 3px; }
.fg-bukti-c > a:focus-visible, .fg-bukti-c > button:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-radius: 999px; }
.fg-bukti-c svg { flex: 0 0 auto; color: var(--muted); }
.fg-bukti-x { all: unset; cursor: pointer; padding: 2px 9px 2px 4px; font-size: 13px; color: var(--muted); }
.fg-bukti-x.sure { color: var(--bad-text); font-weight: 700; font-size: 12px; }
.fg-bukti-add { all: unset; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink); padding: 3px 10px; border: 1.2px dashed var(--line); border-radius: 999px; }
.fg-bukti-add:hover { background: var(--hover); border-color: var(--orange); }
.fg-bukti-add:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.fg-bukti-rule { margin: 0; font-size: 14px; line-height: 1.45; background: var(--fill); border-radius: 12px; padding: 10px 12px; }
.fg-bukti-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; align-items: center; }
.fg-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px 14px; border: 1.6px dashed var(--line); border-radius: 14px; cursor: pointer; text-align: center; }
.fg-drop:hover, .fg-drop.on { background: var(--hover); border-color: var(--orange); }
.fg-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fg-drop:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.fg-drop b { font-size: 14.5px; } .fg-drop span { font-size: 12.5px; color: var(--muted); }
.fg-bukti-lk { display: flex; gap: 8px; }
.fg-bukti-lk input { flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--ink); background: var(--card); border: 1.2px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.fg-bukti-lk input:focus { outline: 2px solid var(--orange); outline-offset: 0; }
.fg-bukti-st { margin: 0; font-size: 13px; color: var(--good-text); } .fg-bukti-st.bad { color: var(--bad-text); }
.fg-bukti-media { max-width: 100%; max-height: 70vh; border-radius: 12px; display: block; margin: 0 auto; background: #000; }

/* ---------- checklist tugas rutin per minggu ---------- */
.fg-rutin-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 12px 0 16px; }
.fg-rutin-pick .fg-chip small { margin-left: 6px; font-size: 11px; opacity: .7; }
.fg-rutin-rng { font-size: 13px; color: var(--muted); }
.fg-wk-grid { display: grid; grid-template-columns: minmax(11rem, 1.3fr) repeat(7, 34px) minmax(11rem, 1.2fr) 7rem; column-gap: 8px; align-items: center; min-width: 46rem; }
.fg-wk-grid .ap-week-h.tl { text-align: left; }
.fg-wk-bukti { border-top: 1px solid var(--ap-hair); align-self: stretch; display: flex; flex-wrap: wrap; align-content: center; gap: 5px; padding: 8px 0; }
.fg-wk-bukti .fg-bukti-c { max-width: 180px; }
.fg-wk-sheet { font-size: 12px; font-style: italic; }
.ap-st.s-nanti { color: var(--muted); background: var(--fill); }

/* ---------- tugas per peran ---------- */
.fg-role-sec { font-size: 18px; font-weight: 700; margin: 22px 0 10px; letter-spacing: -0.01em; }
.fg-role-sec-r { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .fg-role-sec-r .ap-muted { font-size: 13px; }
.fg-role-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .fg-role-board { grid-template-columns: minmax(0, 1fr); } }
.fg-role { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; }
.fg-role-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fg-role-h h3 { margin: 0; font-size: 16px; font-weight: 700; }
.fg-role-h .ap-muted { font-size: 12.5px; white-space: nowrap; }
.fg-role-empty { margin: 4px 0; font-size: 13px; color: var(--muted); }
.fg-role-add { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; font-size: 13px; font-weight: 600; padding: 8px; border: 1.2px dashed var(--line); border-radius: 10px; margin-top: 4px; }
.fg-role-add:hover { background: var(--hover); border-color: var(--orange); }
.fg-role-add:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fg-tmini { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--ap-hair); }
.fg-tmini .fg-task-ck { margin-top: 1px; }
.fg-tmini-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fg-tmini-b > b { font-size: 14px; font-weight: 600; line-height: 1.35; }
.fg-tmini.done .fg-tmini-b > b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.fg-tmini .fg-task-m { font-size: 12px; gap: 4px 8px; }
.fg-tmini.done .fg-task-ck { background: var(--orange); border-color: var(--orange); }
.fg-tmini-a { display: flex; gap: 2px; }
.fg-icbtn { all: unset; cursor: pointer; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted); }
.fg-icbtn:hover { background: var(--hover); color: var(--ink); }
.fg-icbtn:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }

