@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url("vendor/poppins/poppins-400.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url("vendor/poppins/poppins-600.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url("vendor/poppins/poppins-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --blue: #2359d2;
  --ink: #182640;
  --muted: #52617a;
  --line: #dce4f0;
  font: 14px/1.5 Poppins, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; display: grid; grid-template-columns: 218px minmax(0, 1fr); background: #f3f6fb; color: var(--ink); }
.sidebar {
  position: sticky; top: 0; height: 100dvh; padding: 25px 16px;
  background: linear-gradient(165deg, #172f76, #183d95 68%, #2050b8); color: white;
}
.brand { display: flex; align-items: center; gap: 11px; margin: 0 6px 36px; font-size: 1.2rem; font-weight: 700; }
.brand small { display: block; font-size: .76rem; font-weight: 500; color: #d7e3ff; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; background: white; color: #1c429d; border-radius: 10px; }
nav { display: grid; gap: 6px; }
nav a { display: flex; align-items: center; gap: 10px; color: #e7eeff; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
nav .nav-icon { width: 14px; height: 14px; flex: 0 0 14px; color: #c8dafd; }
.icon-overview {
  background:
    linear-gradient(currentColor, currentColor) top left / 6px 6px,
    linear-gradient(currentColor, currentColor) top right / 6px 6px,
    linear-gradient(currentColor, currentColor) bottom left / 6px 6px,
    linear-gradient(currentColor, currentColor) bottom right / 6px 6px;
  background-repeat: no-repeat;
}
.icon-news {
  border: 1px solid currentColor; border-radius: 2px;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 3px) center / 7px 7px no-repeat;
}
.icon-topics {
  border-radius: 50%; border: 1px solid currentColor;
  background: radial-gradient(circle, currentColor 0 2px, transparent 2.5px);
}
nav a:hover, nav a[aria-current] { background: #ffffff26; color: white; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px clamp(16px, 3vw, 34px); background: white; border-bottom: 1px solid var(--line); }
.simulation { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 20px; color: #224b9e; background: #eaf0ff; padding: 4px 10px; }
main { max-width: 1440px; margin: auto; padding: 22px clamp(16px, 3vw, 34px) 40px; }
h1 { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; margin: 0; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 3px; }
h3, p { margin: 0; }
.intro { margin-bottom: 12px; }
.intro p, .muted, small { color: var(--muted); }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; }
label { display: grid; gap: 5px; font-size: .84rem; font-weight: 600; }
input, select, button { font: inherit; min-height: 40px; border: 1px solid #c7d3e6; border-radius: 8px; background: white; color: inherit; padding: 7px 11px; }
button { cursor: pointer; font-weight: 600; }
button:hover:enabled { border-color: var(--blue); }
button.primary { background: var(--blue); color: white; border-color: var(--blue); }
button.primary:hover { background: #1846af; }
button:disabled, select:disabled { opacity: .58; cursor: default; }
:focus-visible { outline: 3px solid #4c84f3; outline-offset: 2px; }
.summary-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 0; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.summary-metrics div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; padding: 8px 12px; min-width: 0; }
.summary-metrics div + div { border-left: 1px solid var(--line); }
.summary-metrics dt { color: var(--muted); font-size: 12px; }
.summary-metrics dt small { font-size: 11px; }
.summary-metrics dd { margin: 0; color: #183d95; font-size: 15px; font-weight: 700; }
.coverage, .dashboard-analytics { display: grid; gap: 16px; margin-top: 16px; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 8px 14px; }
.period-chip { padding: 5px 10px; border-radius: 6px; border: 1px solid #ccdaf7; color: #24488e; font-size: 12px; }
.topic-trend-chart, .topic-share-chart { position: relative; min-width: 0; }
.topic-trend-chart { height: clamp(190px, 24vw, 290px); margin-top: 8px; }
.topic-share-chart { height: 185px; margin: 8px 0; }
.topic-chart-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; background: #f3f6fb; color: var(--muted); border-radius: 8px; }
.coverage { grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr); }
#top-topic-panel { align-self: start; }
.coverage.news-only { grid-template-columns: minmax(0, 1fr); }
#news { min-width: 0; }
.coverage:not(.news-only) #news { border-left: 1px solid var(--line); padding-left: 16px; }
#article-search-form { display: flex; min-width: 0; gap: 6px; }
#article-search-form input { width: clamp(100px, 24vw, 300px); min-width: 0; }
.topbar .simulation { flex-shrink: 0; }
.donut {
  width: 150px; aspect-ratio: 1; border-radius: 50%; margin: 18px auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  isolation: isolate; position: relative; background: #eaf0f9;
}
.donut::before { content: ""; inset: 16px; z-index: -1; position: absolute; border-radius: 50%; background: white; }
.donut strong { font-size: 1.7rem; line-height: 1.2; }
.donut span { color: var(--muted); font-size: .76rem; }
.trend-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 4px; }
.trend-legend { display: flex; flex: 1 1 480px; flex-wrap: wrap; gap: 3px 8px; list-style: none; padding: 0; margin: 0; }
.trend-legend button { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 6px; border-color: transparent; font-size: 12px; }
.trend-legend button::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--series-color); }
.trend-legend button[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.trend-legend button[aria-pressed="false"]::before { opacity: .4; }
.trend-legend button.is-highlighted { border-color: #ccdaf7; background: #f0f5ff; }
#include-all-topics { min-height: 34px; color: #1848ae; font-size: .82rem; }
#topics-included { font-size: .8rem; }
@media (pointer: coarse) { .trend-legend button { min-height: 40px; } }
#top-topic { margin: 8px 0 0; padding-left: 20px; }
#top-topic li { margin-bottom: 2px; padding-left: 3px; }
#top-topic button {
  display: flex; width: 100%; min-height: 32px; padding: 4px 6px; flex-wrap: wrap;
  justify-content: space-between; gap: 3px 10px; text-align: left; color: #1848ae; border-color: transparent;
}
#top-topic button span { font-size: 12px; }
#top-topic button span:last-child { color: var(--muted); }
#top-topic .topic-name::before { content: ""; display: inline-block; margin-right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--series-color); }
#top-topic button:hover, #top-topic button[aria-pressed="true"] { border-color: #ccdaf7; background: #f0f5ff; }
.volume { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 116px; margin-top: 19px; background: repeating-linear-gradient(to top, #eaf0f9 0 1px, transparent 1px 25%); }
.volume div { display: flex; align-items: end; min-width: 0; }
.volume span { width: 100%; text-align: center; font-size: .68rem; font-weight: 600; color: white; border-radius: 3px 3px 0 0; background: var(--blue); }
.volume div:hover span { background: #143b9b; }
.hours { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: .72rem; }
.pos { --tone: #19734b; --tag: #e4f5eb; }
.net { --tone: #475c81; --tag: #eaf0f9; }
.neg { --tone: #9c313b; --tag: #fbe9ea; }
#status { padding: 9px 11px; background: #f3f6fb; border-radius: 6px; font-size: .84rem; }
.filters { margin: 12px 0; }
#export { margin-left: auto; color: #224b9e; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 12px; background: var(--tag); color: var(--tone); font-size: .8rem; font-weight: 600; }
.topic-search { max-width: 340px; margin: 12px 0; }
.topic-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.topic-row button { grid-column: 2; grid-row: 1 / span 2; }
dialog {
  width: min(960px, calc(100% - 48px)); max-width: 100%; max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid var(--line); border-radius: 14px; color: inherit;
  background: white; box-shadow: 0 18px 62px #142a4240; overscroll-behavior: contain;
}
dialog::backdrop { background: #15254988; }
.detail-header {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: start; justify-content: space-between;
  gap: 16px; padding: clamp(16px, 3vw, 28px); background: #f3f6fb; border-bottom: 1px solid var(--line);
}
.detail-header form { flex-shrink: 0; }
dialog h2 { margin: 8px 0 0; font-size: clamp(1.25rem, 3vw, 1.9rem); line-height: 1.2; }
.detail-reader { padding: clamp(16px, 3vw, 28px); }
.detail-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .85rem;
}
.detail-actions a { color: var(--blue); font-weight: 600; }
.detail-actions span { color: var(--muted); margin-left: 4px; }
.article-image { display: block; max-width: 100%; max-height: 60vh; object-fit: contain; margin-bottom: 16px; border-radius: 8px; }
.detail-metadata { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; margin: 0 0 24px; }
.detail-metadata div { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.detail-metadata dt { color: var(--muted); font-size: .82rem; font-weight: 600; }
.detail-metadata dd { margin: 4px 0 0; }
.detail-metadata dd.tag { margin-top: 4px; }
.article-body { max-width: 72ch; }
.article-body p { margin-top: 12px; line-height: 1.7; }
@media (max-width: 600px) {
  dialog { width: 100%; max-height: calc(100dvh - 24px); }
  .detail-metadata { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  body { grid-template-columns: 172px minmax(0, 1fr); }
}
@media (max-width: 680px) {
  body { display: block; }
  .sidebar { height: auto; position: static; padding: 11px 15px; }
  .brand { margin: 0 0 9px; }
  nav { display: flex; gap: 5px; }
  nav a { padding: 7px 9px; }
  .topbar { font-size: .84rem; padding-block: 9px; }
  main { padding-top: 21px; }
  #article-search-form { flex: 1; }
  #article-search-form input { width: 0; flex: 1; padding-inline: 8px; }
  .panel { padding: 14px; }
  #export { margin-left: 0; }

}

#period-control { margin-bottom: 14px; }
.period-aligned-right #period-picker, .period-aligned-right summary { margin-inline-start: auto; }
.period-aligned-right .period-popover { left: auto; right: 0; }
#period-picker { position: relative; width: fit-content; max-width: 100%; }
#period-picker summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; width: fit-content;
  cursor: pointer; list-style: none; padding: 8px 12px; border: 1px solid #c7d3e6;
  border-radius: 8px; color: #1848ae; background: white;
}
#period-picker summary::-webkit-details-marker { display: none; }
#period-picker summary::after {
  content: ""; width: 6px; height: 6px; margin: 0 2px 3px 0;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
#active-period { font-size: .87rem; }
.period-popover {
  position: absolute; left: 0; z-index: 3; margin-top: 6px; width: min(520px, calc(100vw - 32px));
  display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr); gap: 14px;
  box-shadow: 0 12px 30px #142a4220;
}
.period-presets, .period-dates { display: grid; gap: 6px; align-content: start; }
.period-presets button { text-align: left; }
.period-presets button[aria-pressed="true"] { background: #eaf0ff; border-color: var(--blue); color: #1848ae; }
.period-dates input { width: 100%; min-width: 0; }
#period-validation { font-size: .82rem; }
#period-validation:empty { display: none; }
#coverage-status:empty { margin: 0; }
#coverage-status { margin-top: 8px; }
#coverage-retry { margin-top: 5px; }
@media (max-width: 520px) {
  .period-popover { grid-template-columns: minmax(0, 1fr); }
  .period-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .period-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .period-dates p, .period-dates small { grid-column: 1 / -1; }
}
.period-popover { max-height: min(570px, 65dvh); overflow: auto; }
.period-calendar { margin-top: 4px; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calendar-heading button { min-height: 30px; padding: 1px 9px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 5px; }
.calendar-days span { text-align: center; font-size: .76rem; color: var(--muted); }
.calendar-days button { min-height: 31px; padding: 1px; font-size: .84rem; border-color: transparent; }
.calendar-days button[aria-pressed="true"] { background: #eaf0ff; color: #1848ae; border-color: #ccdaf7; }
@media (max-width: 520px) {
  .period-popover { position: static; max-height: none; overflow: visible; }
  .period-calendar { grid-column: 1 / -1; }
}

.topic-workspace { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.9fr); gap: 16px; align-items: start; }
.topic-workspace > section { min-width: 0; }
#topic-workspace-status { grid-column: 1 / -1; color: var(--muted); }
#topic-workspace-status:empty, #topic-form-error:empty { display: none; }
.topic-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 13px 0; }
.topic-controls label { min-width: 0; flex: 1 1 110px; }
.topic-controls input, .topic-controls select { width: 100%; min-width: 0; }
.workspace-list { list-style: none; margin: 12px 0; padding: 0; }
.workspace-list > li { border-top: 1px solid var(--line); padding: 10px 0; }
.my-topic-row, .catalog-topic-row, .subtopic-row { align-items: center; gap: 8px; display: grid; }
.my-topic-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.workspace-topic-link { border: 0; padding: 3px 0; text-align: left; color: #1848ae; min-height: 34px; overflow-wrap: anywhere; }
.workspace-topic-link:hover { text-decoration: underline; }
.topic-type, .follow-status { display: inline-block; padding: 3px 8px; border-radius: 12px; background: #eaf0ff; color: #24488e; font-size: .76rem; font-weight: 600; }
.topic-settings { position: relative; }
.topic-settings summary { cursor: pointer; color: #1848ae; font-size: .8rem; padding: 5px 2px; }
.topic-settings-actions {
  position: absolute; z-index: 2; right: 0; top: 100%; display: grid; width: max-content; gap: 4px;
  padding: 6px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 20px #142a4220;
}
.topic-settings-actions button { text-align: left; }
.catalog-topic-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); }
.catalog-category-label { display: block; }
.catalog-sentiments, .catalog-actions, .topic-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.catalog-actions { justify-content: flex-end; }
.catalog-actions button { font-size: .8rem; min-height: 34px; }
.topic-pages { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .82rem; }
.topic-pages button { padding-inline: 7px; min-height: 33px; }
.topic-dialog { width: min(680px, calc(100% - 32px)); }
.topic-editor-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.topic-editor-form textarea { padding: 8px; font: inherit; border: 1px solid #c7d3e6; border-radius: 8px; resize: vertical; }
.topic-field-wide { grid-column: 1 / -1; }
#topic-form-error { color: #9c313b; }
.subtopic-row { grid-template-columns: minmax(0, 1fr) auto auto; }
#subtopic-form-title { margin-bottom: 10px; }
.keyword-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.keyword-chips li { padding: 5px 10px; border-radius: 14px; background: #eaf0ff; color: #24488e; overflow-wrap: anywhere; }
.keyword-expression { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; background: #f3f6fb; border: 1px solid var(--line); border-radius: 8px; margin: 0; }
@media (max-width: 1050px) { .topic-workspace { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .catalog-topic-row { grid-template-columns: minmax(0, 1fr); }
  .catalog-actions { justify-content: flex-start; }
  .topic-dialog { width: 100%; }
  .topic-editor-form { grid-template-columns: minmax(0, 1fr); }
}

/* Ringkasan liputan */
.news-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; color: #1848ae; }
.news-selection strong { padding: 4px 8px; border-radius: 6px; background: #eaf0ff; font-size: 12px; font-weight: 600; }
.news-selection button { min-height: 30px; padding: 3px 8px; font-size: 12px; }
.news-items { list-style: none; padding: 0; margin: 4px 0 10px; }
.news-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 3px 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.news-headline { border: 0; padding: 0; min-height: 0; width: fit-content; text-align: left; color: #1848ae; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.news-headline:hover, .news-headline[aria-current="true"] { text-decoration: underline; }
.news-meta, .article-excerpt { grid-column: 1 / -1; margin: 0; }
.news-meta { font-size: 12px; color: var(--muted); }
.article-excerpt { font-size: 13px; color: var(--muted); }
.news-pages { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; text-align: center; gap: 6px; font-size: 12px; }
.news-pages button { min-height: 32px; padding: 4px 8px; font-size: 12px; }

.issue-grid, .initiator-grid { display: grid; gap: 16px; align-items: stretch; min-width: 0; }
.issue-grid { grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr); }
.initiator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.issue-grid > *, .initiator-grid > * { min-width: 0; }
.issue-timeline, .issue-topics { max-height: 340px; overflow: auto; padding: 3px 6px 3px 2px; }
.timeline-date { border-left: 2px solid #c7d3e6; padding-left: 12px; position: relative; margin-top: 8px; }
.timeline-date::before { content: ""; position: absolute; top: 6px; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.timeline-date h3 { color: #1848ae; font-size: 12px; }
.timeline-date ul, .issue-tags, .issue-sentiment-counts { list-style: none; padding: 0; margin: 5px 0 0; }
.issue-link, .issue-tags button {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%;
  border: 0; padding: 5px 4px; min-height: 32px; text-align: left; overflow-wrap: anywhere;
}
.issue-link { color: #1848ae; }
.issue-link[aria-expanded="true"], .issue-tags button[aria-pressed="true"] { background: #eaf0ff; }
.issue-link:hover, .issue-tags button:hover { background: #f3f6fb; }
.issue-link small, .issue-tags small { white-space: nowrap; font-size: 11px; }
.issue-content { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 10px; }
.issue-topic + .issue-topic { border-top: 1px solid var(--line); }
.issue-tags { margin: 0 0 6px 7px; }
.issue-tags button { font-size: 12px; font-weight: 400; }
.issue-sentiment { text-align: center; }
.issue-sentiment h3 { font-size: 14px; }
.issue-sentiment p { font-size: 12px; }
.issue-sentiment .donut { margin: 10px auto; width: min(145px, 100%); }
.issue-sentiment .donut strong { font-size: 21px; }
.issue-sentiment-counts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 9px; }
.issue-sentiment-counts li { font-size: 12px; }

.source-cloud { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; justify-content: center; margin: 12px 0; color: #2359a8; }
.source-cloud span { font-size: clamp(14px, calc(var(--weight) * 1rem), 28px); font-weight: 600; text-align: center; }
.source-ranking { padding-left: 20px; margin: 8px 0 0; }
.source-ranking li { border-top: 1px solid var(--line); padding: 5px 0; }
.source-ranking strong { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.insight-empty { background: #f3f6fb; color: var(--muted); padding: 12px; border-radius: 8px; margin: 10px 0 0; }

.entity-controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin: 12px 0 8px; }
.entity-controls label { min-width: 0; }
.entity-controls select { width: 100%; max-width: min(260px, 75vw); }
.graph-controls { display: flex; flex-wrap: wrap; gap: 4px; }
.graph-controls button { min-width: 34px; min-height: 34px; padding: 4px 7px; }
.entity-stage { height: 330px; position: relative; background: #f6f9ff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.entity-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.entity-stage canvas:active { cursor: grabbing; }
.entity-stage .insight-empty { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; text-align: center; }
.entity-detail { margin-top: 8px; font-size: 12px; color: var(--muted); }
#entity-dialog { width: min(1180px, calc(100% - 32px)); }
#entity-dialog .entity-stage { height: min(62dvh, 560px); }

#news-dialog { width: min(1140px, calc(100% - 32px)); }
.news-dialog-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.news-dialog-layout > section { min-width: 0; padding: 16px; }
#news-dialog-list, #news-dialog-reader { overflow: auto; max-height: 72dvh; }
#news-dialog-reader { border-left: 1px solid var(--line); }
#news-dialog-reader .detail-reader { padding: 10px 0 0; }
#news-dialog-reader .detail-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#reader-title { font-size: 17px; }
.news-dialog-back { display: none; }
@media (max-width: 980px) {
  .coverage, .issue-grid { grid-template-columns: minmax(0, 1fr); }
  .coverage:not(.news-only) #news { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 12px; }
}
@media (max-width: 760px) {
  .issue-content, .initiator-grid, .news-dialog-layout { grid-template-columns: minmax(0, 1fr); }
  #news-dialog, #entity-dialog { width: 100%; }
  #news-dialog-list, #news-dialog-reader { overflow: visible; max-height: none; }
  #news-dialog-reader { display: none; border-left: 0; }
  .news-dialog-layout.show-reader #news-dialog-list { display: none; }
  .news-dialog-layout.show-reader #news-dialog-reader { display: block; }
  .news-dialog-back { display: inline-block; margin-bottom: 12px; }
  .trend-panel { display: flex; flex-direction: column; }
  .topic-trend-chart { order: 1; }
  .trend-controls { order: 2; }
  #topics-included { order: 3; }
  .summary-metrics div { padding: 6px 8px; }
  .summary-metrics dt small { display: block; }
  .entity-stage { height: 280px; }
}

/* KOL & Entitas */
.kol-stack { display: grid; gap: 16px; min-width: 0; }
.kol-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kol-pair > *, .kol-stack > * { min-width: 0; }
.kol-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.kol-carousel > button { min-width: 36px; padding-inline: 8px; }
#kol-carousel-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 8px 0; }
#kol-carousel-items button { display: grid; justify-items: center; align-content: start; gap: 6px; width: 100%; height: 100%; padding: 8px; border-color: transparent; overflow-wrap: anywhere; }
#kol-carousel-items button[aria-pressed="true"] { background: #eaf0ff; border-color: #bfd1fb; color: #1848ae; }
#kol-carousel-items button strong { font-size: 13px; font-weight: 600; }
#kol-carousel-items button small { font-size: 12px; align-self: end; }
.kol-avatar-frame { display: grid; place-items: center; flex: none; width: 54px; height: 54px; overflow: hidden; border-radius: 50%; background: #eaf0ff; color: #1848ae; font-weight: 700; }
.kol-avatar-frame img { width: 100%; height: 100%; object-fit: cover; }
.kol-carousel-page { text-align: center; font-size: 12px; }
#kol-status:empty, #kol-search-status:empty, #kol-statement-status:empty, #kol-news-status:empty, #kol-media-status:empty, #kol-channel-status:empty { display: none; }
.kol-search summary { cursor: pointer; font-size: 17px; font-weight: 600; }
.kol-search-results { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; margin: 0; }
.kol-search-results button { display: grid; text-align: left; }
.kol-search-results small { font-size: 12px; }
.kol-profile-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
#kol-avatar .kol-avatar-frame { width: 72px; height: 72px; font-size: 20px; }
#kol-name { font-size: 28px; font-weight: 700; line-height: 1.18; overflow-wrap: anywhere; }
#kol-sectors { margin-top: 8px; font-size: 12px; }
.kol-profile-metrics { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0; }
.kol-profile-metrics strong { color: #1848ae; }
.kol-related { margin: 0; }
.kol-related div { border-top: 1px solid var(--line); padding: 9px 0; }
.kol-related dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.kol-related dd { margin: 2px 0 0; }
.kol-chart-pair { display: grid; grid-template-columns: minmax(115px, 1.15fr) minmax(120px, 1fr); gap: 12px; align-items: center; }
.kol-chart-box { position: relative; min-width: 0; }
.kol-trend-box { height: 180px; margin-top: 6px; }
.kol-donut-box { height: 160px; margin: 8px 0; }
.kol-donut-box.is-empty::before { content: ""; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 100px; height: 100px; border-radius: 50%; border: 14px solid #eaf0f9; }
.kol-chart-legend { display: grid; gap: 5px; list-style: none; padding: 0; margin: 5px 0; font-size: 12px; }
.kol-chart-legend li { display: flex; align-items: center; gap: 6px; }
.kol-chart-legend i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.kol-chart-legend strong { margin-left: auto; font-weight: 600; }
.kol-trend-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.kol-statements { list-style: none; padding: 0; margin: 8px 0; max-height: 315px; overflow: auto; }
.kol-statements li { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.kol-statements small { display: block; font-size: 12px; }
.kol-statements blockquote { margin: 6px 0; }
.kol-channels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin: 10px 0 4px; }
.kol-channels button { display: grid; place-items: center; gap: 4px; background: #eef1f5; border-color: transparent; padding: 6px 2px; font-size: 11px; }
.kol-channels button[aria-selected="true"] { color: white; background: var(--blue); }
.kol-channel-icon { position: relative; display: grid; place-items: center; width: 15px; height: 15px; font-size: 15px; line-height: 1; font-family: system-ui, sans-serif; }
.kol-icon-all, .kol-icon-news { font-size: 0; border: 1px solid currentColor; border-radius: 2px; }
.kol-icon-all::after { content: ""; width: 9px; height: 9px; background: linear-gradient(currentColor,currentColor) center/1px 100% no-repeat, linear-gradient(currentColor,currentColor) center/100% 1px no-repeat; }
.kol-icon-news::after { content: ""; width: 8px; height: 5px; border-block: 1px solid currentColor; }
.kol-icon-instagram { border: 1.5px solid currentColor; border-radius: 4px; }
.kol-icon-instagram::after { content: ""; width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }
.kol-icon-youtube { height: 11px; margin: 2px 0; border: 1.5px solid currentColor; border-radius: 3px; }
.kol-icon-youtube::after { content: ""; border-left: 4px solid currentColor; border-block: 3px solid transparent; }
#kol-sentiment-status { margin: 5px 0 8px; }
.kol-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
.kol-news-grid li { align-content: start; }
.kol-social-table { overflow: auto; }
.kol-social-table table { width: 100%; min-width: 540px; border-collapse: collapse; text-align: left; }
.kol-social-table th, .kol-social-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; }
.kol-social-table th button { padding: 3px 5px; min-height: 32px; white-space: nowrap; }
.kol-social-table th[aria-sort="descending"] button::after { content: " ↓"; }
.kol-social-table th[aria-sort="ascending"] button::after { content: " ↑"; }
.kol-social-table a { color: var(--blue); }
.entity-map-dialog { width: min(1180px, calc(100% - 32px)); }
.entity-map-dialog .entity-stage { height: min(62dvh, 560px); }
@media (max-width: 1000px) {
  .kol-pair { grid-template-columns: minmax(0, 1fr); }
  .kol-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .kol-pair, .kol-chart-pair, .kol-news-grid { grid-template-columns: minmax(0, 1fr); }
  .kol-carousel { gap: 5px; }
  #kol-carousel-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kol-channels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kol-chart-pair .kol-chart-legend { width: min(100%, 210px); margin-inline: auto; }
  .sidebar nav { flex-wrap: wrap; }
}

/* Akses Increative */
body.login-page {
  display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100dvh;
  align-items: center; background: linear-gradient(155deg, #142b71 0%, #214ca8 54%, #eaf0ff 54%);
}
.login-main { width: min(100%, 460px); padding: 24px; }
.login-brand { margin: 0 0 16px; color: white; }
.login-brand small { color: #d7e3ff; }
.login-panel { padding: clamp(18px, 6vw, 32px); box-shadow: 0 8px 32px #142a4230; }
.login-panel form { display: grid; gap: 14px; margin-top: 16px; }
.login-panel input { min-width: 0; width: 100%; }
.login-panel button { margin-top: 4px; }
.login-errors { margin: 12px 0 0; padding: 10px 10px 10px 26px; border: 1px solid #f0c9cd; border-radius: 8px; color: #9c313b; background: #fff4f5; }
.topbar-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.topbar-actions button { min-height: 34px; padding: 4px 9px; }
@media (max-width: 520px) {
  .topbar-actions .simulation { font-size: 10px; }
  .topbar-actions { flex-wrap: nowrap; }
}
