/* Native Filament polish, inspired by the locally licensed Vuexy spacing,
   paper surfaces and soft navigation states. No Bootstrap or runtime build. */
.fi-body {
    --pdd-bg: #f6f8f7;
    --pdd-paper: #fff;
    --pdd-ink: #263d36;
    --pdd-muted: #52685f;
    --pdd-line: #e3ebe7;
    --pdd-accent: #047857;
    --pdd-tint: #e8f5ee;
    --pdd-shadow: 0 3px 12px rgb(27 56 43 / 6%);
    background: var(--pdd-bg);
    color: var(--pdd-ink);
    font-family: var(--font-family), ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.dark .fi-body {
    --pdd-bg: #121d1a;
    --pdd-paper: #1b2924;
    --pdd-ink: #e7f1eb;
    --pdd-muted: #adbbb4;
    --pdd-line: #34453d;
    --pdd-accent: #6ee7b7;
    --pdd-tint: #223e32;
    --pdd-shadow: 0 3px 12px rgb(0 0 0 / 16%);
}
.fi-body .fi-sidebar { background: var(--pdd-paper); border-inline-end: 1px solid var(--pdd-line); }
.fi-body .fi-sidebar-header { background: var(--pdd-paper); box-shadow: none; border-bottom: 1px solid var(--pdd-line); }
.fi-body .fi-logo { color: var(--pdd-accent); font-weight: 750; letter-spacing: -.04em; }
.fi-body .fi-sidebar-nav { row-gap: 1.6rem; }
.fi-body .fi-sidebar-group-label { color: var(--pdd-muted); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.fi-body .fi-sidebar-item-button { border-radius: .5rem; padding-block: .65rem; transition: background-color .15s; }
.fi-body .fi-sidebar-item-active > .fi-sidebar-item-button { background: var(--pdd-tint); box-shadow: inset 3px 0 var(--pdd-accent); }
.fi-body .fi-sidebar-item-active .fi-sidebar-item-label,
.fi-body .fi-sidebar-item-active .fi-sidebar-item-icon { color: var(--pdd-accent); }
.fi-body .fi-sidebar-item:not(.fi-sidebar-item-active) > .fi-sidebar-item-button:hover { background: var(--pdd-bg); }
.fi-body .fi-topbar > nav { background: var(--pdd-paper); border-bottom: 1px solid var(--pdd-line); box-shadow: var(--pdd-shadow); }
.fi-body .fi-header-heading { letter-spacing: -.035em; color: var(--pdd-ink); }
.fi-body .fi-header-subheading { color: var(--pdd-muted); font-size: .875rem; }
.fi-body .fi-section,
.fi-body .fi-ta-ctn,
.fi-body .fi-wi-stats-overview-stat { border-radius: .75rem; background: var(--pdd-paper); box-shadow: var(--pdd-shadow); --tw-ring-color: var(--pdd-line); }
.fi-body .fi-section-header-heading,
.fi-body .fi-wi-stats-overview-stat-value { color: var(--pdd-ink); }
.fi-body .fi-wi-stats-overview-stat-value { font-size: 1.5rem; letter-spacing: -.03em; }
.fi-body .fi-wi-stats-overview-stat { border-top: 3px solid var(--pdd-line); }
.fi-body .fi-ta-header-cell { background: var(--pdd-bg); }
.fi-body .fi-ta-header-cell-label { color: var(--pdd-muted); font-size: .75rem; }
.fi-body .fi-btn { border-radius: .5rem; }
.fi-body :is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--pdd-accent); outline-offset: 3px; }
/* ---- Dashboard: compact hero ---- */
.pdd-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .9rem 1.5rem; padding: 1.1rem 1.4rem; border: 1px solid var(--pdd-line); border-radius: .9rem; background: linear-gradient(110deg, var(--pdd-paper) 45%, var(--pdd-tint)); box-shadow: var(--pdd-shadow); }
.pdd-hero-content { min-width: 0; flex: 1 1 26rem; }
.pdd-eyebrow { display: flex; align-items: center; gap: .5rem; color: var(--pdd-accent); font-size: .625rem; line-height: 1.6; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.pdd-hero h2 { margin-top: .25rem; color: var(--pdd-ink); font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.25; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.pdd-hero p { margin-top: .3rem; max-width: 46rem; font-size: .8125rem; line-height: 1.6; color: var(--pdd-muted); }
.pdd-quick-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pdd-quick-link { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1px solid var(--pdd-line); border-radius: .5rem; color: var(--pdd-ink); background: var(--pdd-paper); font-size: .78rem; font-weight: 600; transition: box-shadow .15s; }
.pdd-quick-link:first-child { background: #047857; color: #fff; border-color: #047857; }
.pdd-quick-link:hover { box-shadow: 0 0 0 2px var(--pdd-accent); }
.pdd-link-icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.pdd-section-label { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.pdd-section-label h2 { font-size: 1rem; font-weight: 650; color: var(--pdd-ink); }
.pdd-section-label > span { color: var(--pdd-muted); font-size: .75rem; }
@media (min-width: 1024px) { .fi-body .fi-main { padding-inline: 2rem; } }
@media (max-width: 767px) { .pdd-hero { padding: 1rem; } .pdd-quick-link { min-height: 2.5rem; } }
.pdd-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.4rem 2rem; }
.pdd-status-row > div { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; font-size: .8125rem; color: var(--pdd-ink); }
.pdd-status-row small { color: var(--pdd-muted); font-weight: 400; }
.pdd-status-row meter { display: block; width: 100%; height: .65rem; border: 0; border-radius: 1rem; background: var(--pdd-tint); }
.pdd-status-row meter::-webkit-meter-bar { background: var(--pdd-tint); border: 0; border-radius: 1rem; }
.pdd-status-row meter::-webkit-meter-optimum-value { background: var(--pdd-accent); border-radius: 1rem; }
.pdd-status-row meter::-moz-meter-bar { background: var(--pdd-accent); border-radius: 1rem; }
.pdd-status-empty { padding: .5rem 0; color: var(--pdd-muted); font-size: .875rem; line-height: 1.8; }
.pdd-status-empty strong { display: block; margin-top: .5rem; color: var(--pdd-ink); }
@media (prefers-reduced-motion: reduce) { .fi-body .fi-sidebar-item-button, .pdd-quick-link { transition: none; } }

/* ---- Sector tokens (one source of truth: cards, legend and map markers read these) ---- */
.pdd-sec-folu { --sec: #15803d; --sec-tint: #e7f4ea; }
.pdd-sec-energi { --sec: #c2410c; --sec-tint: #fdeee4; }
.pdd-sec-pertanian { --sec: #a16207; --sec-tint: #fbf3dc; }
.pdd-sec-limbah { --sec: #7c3aed; --sec-tint: #f1ebfd; }
.pdd-sec-ippu { --sec: #475569; --sec-tint: #edf0f4; }
.pdd-sec-kelautan_perikanan { --sec: #0e7490; --sec-tint: #e2f4f8; }
.dark .pdd-sec-folu { --sec: #4ade80; --sec-tint: #163323; }
.dark .pdd-sec-energi { --sec: #fb923c; --sec-tint: #3a2414; }
.dark .pdd-sec-pertanian { --sec: #facc15; --sec-tint: #352d10; }
.dark .pdd-sec-limbah { --sec: #a78bfa; --sec-tint: #2a2146; }
.dark .pdd-sec-ippu { --sec: #94a3b8; --sec-tint: #232b36; }
.dark .pdd-sec-kelautan_perikanan { --sec: #22d3ee; --sec-tint: #0f3039; }

/* ---- Compact KPI cards ---- */
.pdd-dashboard .fi-wi-stats-overview-stat { padding: .85rem 1.1rem; }
.pdd-dashboard .fi-wi-stats-overview-stat .grid { gap: .15rem; }
.pdd-dashboard .fi-wi-stats-overview-stat-label { font-size: .75rem; }
.pdd-dashboard .fi-wi-stats-overview-stat-description { font-size: .75rem; }
.pdd-dashboard .fi-wi-stats-overview { gap: .9rem; }
.pdd-dashboard .fi-wi-widgets, .pdd-dashboard .fi-page > section { row-gap: 1.1rem; }

/* ---- Panels (map, sectors) ---- */
.pdd-panel { border: 1px solid var(--pdd-line); border-radius: .9rem; background: var(--pdd-paper); box-shadow: var(--pdd-shadow); padding: 1rem 1.15rem 1.1rem; }
.pdd-panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.pdd-panel-head h2 { font-size: .95rem; font-weight: 650; color: var(--pdd-ink); letter-spacing: -.01em; }
.pdd-panel-head p { font-size: .75rem; color: var(--pdd-muted); margin-top: .15rem; max-width: 52rem; }
.pdd-panel-count { font-size: .75rem; color: var(--pdd-muted); white-space: nowrap; }
.pdd-panel-count b { color: var(--pdd-ink); font-size: .95rem; font-variant-numeric: tabular-nums; }
.pdd-panel-link { font-size: .78rem; font-weight: 600; color: var(--pdd-accent); white-space: nowrap; }
.pdd-panel-link:hover { text-decoration: underline; }

/* ---- World map ---- */
.pdd-worldmap-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 13.5rem; gap: .9rem; }
.pdd-worldmap { height: 330px; border-radius: .7rem; border: 1px solid var(--pdd-line); z-index: 0; background: var(--pdd-bg); }
.pdd-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; align-content: start; }
.pdd-legend li { display: grid; grid-template-columns: .7rem minmax(0, 1fr) auto; align-items: center; gap: .55rem; padding: .4rem .55rem; border-radius: .5rem; font-size: .78rem; color: var(--pdd-ink); cursor: default; }
.pdd-legend li:hover, .pdd-legend li:focus-visible { background: var(--sec-tint); outline: none; }
.pdd-legend li.is-empty { color: var(--pdd-muted); }
.pdd-legend-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--sec); }
.pdd-legend li.is-empty .pdd-legend-dot { opacity: .35; }
.pdd-legend b { font-variant-numeric: tabular-nums; font-weight: 650; }
.pdd-mappop { display: grid; gap: .15rem; font-size: .75rem; min-width: 12rem; }
.pdd-mappop b { font-size: .8rem; }
.pdd-mappop span, .pdd-mappop em { color: #52685f; }
.pdd-mappop a { margin-top: .2rem; font-weight: 600; color: #047857; }
@media (max-width: 900px) { .pdd-worldmap-wrap { grid-template-columns: minmax(0, 1fr); } .pdd-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pdd-worldmap { height: 260px; } }

/* ---- Sector cards ---- */
.pdd-sector-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
@media (min-width: 640px) { .pdd-sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pdd-sector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pdd-sector-card { display: flex; flex-direction: column; border: 1px solid var(--pdd-line); border-radius: .8rem; overflow: hidden; background: var(--pdd-paper); transition: border-color .15s, box-shadow .15s; }
.pdd-sector-card:hover { border-color: var(--sec); box-shadow: 0 0 0 1px var(--sec); }
.pdd-sector-art { height: 84px; padding-top: 4px; color: var(--sec); background-color: var(--sec-tint);
  background-image: radial-gradient(color-mix(in srgb, var(--sec) 22%, transparent) 1px, transparent 1.3px); background-size: 12px 12px; background-position: 6px 6px; }
.pdd-sector-art svg { display: block; width: 100%; height: 100%; }
.pdd-sector-body { padding: .7rem .85rem .8rem; display: grid; gap: .55rem; }
.pdd-sector-title { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.pdd-sector-title h3 { font-size: .85rem; font-weight: 650; line-height: 1.3; color: var(--pdd-ink); }
.pdd-sector-status { flex: none; font-size: .625rem; font-weight: 650; letter-spacing: .02em; padding: .1rem .45rem; border-radius: 999px; border: 1px solid var(--pdd-line); color: var(--pdd-muted); white-space: nowrap; }
.pdd-sector-status.is-active { color: var(--sec); border-color: var(--sec); background: var(--sec-tint); }
.pdd-sector-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .75rem; margin: 0; }
.pdd-sector-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; border-bottom: 1px dashed var(--pdd-line); padding-bottom: .2rem; }
.pdd-sector-stats dt { font-size: .7rem; color: var(--pdd-muted); }
.pdd-sector-stats dd { margin: 0; font-size: .85rem; font-weight: 650; color: var(--pdd-ink); font-variant-numeric: tabular-nums; }
.pdd-sector-codes { display: flex; flex-wrap: wrap; gap: .25rem; }
.pdd-sector-codes span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .64rem; padding: .05rem .35rem; border-radius: .3rem; background: var(--sec-tint); color: var(--sec); }
.pdd-sector-codes span.more { background: transparent; color: var(--pdd-muted); }
.pdd-sector-empty { font-size: .72rem; color: var(--pdd-muted); line-height: 1.5; }

/* ---- Standards strip (right → left) ---- */
.pdd-standards { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .9rem; padding: .45rem .5rem .45rem 1rem; border: 1px solid var(--pdd-line); border-radius: .9rem; background: var(--pdd-paper); }
.pdd-standards-label { font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pdd-muted); white-space: nowrap; }
.pdd-marquee { display: flex; overflow: hidden; outline: none; border-radius: .6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent); }
.pdd-marquee:focus-visible { box-shadow: 0 0 0 2px var(--pdd-accent); }
.pdd-marquee-track { display: flex; flex: none; gap: .5rem; padding-right: .5rem; list-style: none; margin: 0; animation: pdd-marquee 55s linear infinite; }
.pdd-marquee:hover .pdd-marquee-track, .pdd-marquee:focus-within .pdd-marquee-track, .pdd-marquee:focus .pdd-marquee-track { animation-play-state: paused; }
@keyframes pdd-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.pdd-std { display: flex; align-items: center; gap: .5rem; padding: .3rem .7rem .3rem .35rem; border: 1px solid var(--pdd-line); border-radius: 999px; background: var(--pdd-bg); white-space: nowrap; }
.pdd-std-mark { display: grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding: 0 .35rem; border-radius: 999px; font-size: .58rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: #47625a; }
.pdd-std-logo { height: 1.6rem; width: auto; max-width: 4.5rem; object-fit: contain; }
.pdd-std-text { display: grid; line-height: 1.15; }
.pdd-std-text b { font-size: .72rem; font-weight: 650; color: var(--pdd-ink); }
.pdd-std-text small { font-size: .62rem; color: var(--pdd-muted); }
.pdd-std.is-engine .pdd-std-mark { background: #047857; }
.pdd-std.is-option .pdd-std-mark { background: #0f766e; }
.pdd-std.is-market .pdd-std-mark { background: #1d4ed8; }
.pdd-std.is-knowledge .pdd-std-mark { background: #57534e; }
.pdd-std.is-planned { opacity: .7; }
.pdd-std.is-planned .pdd-std-mark { background: transparent; color: var(--pdd-muted); border: 1px dashed var(--pdd-muted); }
.dark .pdd-std-mark { color: #0b1512; background: #a8bdb5; }
.dark .pdd-std.is-engine .pdd-std-mark { background: #6ee7b7; }
.dark .pdd-std.is-option .pdd-std-mark { background: #5eead4; }
.dark .pdd-std.is-market .pdd-std-mark { background: #93c5fd; }
.dark .pdd-std.is-knowledge .pdd-std-mark { background: #d6d3d1; }
@media (max-width: 640px) { .pdd-standards { grid-template-columns: minmax(0, 1fr); padding: .6rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .pdd-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .pdd-marquee-track { animation: none; }
  .pdd-marquee-track[aria-hidden="true"] { display: none; }
  .pdd-sector-card { transition: none; }
}

/* ---- Language switch (top bar + login page) ---- */
.pdd-locale { display: inline-flex; padding: 2px; border: 1px solid var(--pdd-line, #e3ebe7); border-radius: 999px; background: var(--pdd-bg, #f6f8f7); margin-inline-end: .6rem; }
.pdd-locale a { min-width: 2.1rem; padding: .2rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-align: center; color: var(--pdd-muted, #52685f); }
.pdd-locale a:hover { color: var(--pdd-ink, #263d36); }
.pdd-locale a.is-active { background: var(--pdd-paper, #fff); color: var(--pdd-accent, #047857); box-shadow: 0 1px 3px rgb(0 0 0 / 12%); }
.pdd-locale-simple { display: flex; justify-content: center; margin-top: 1.25rem; }
.pdd-locale-simple .pdd-locale { margin: 0; }

/* ---- Dashboard backdrop: photo behind the cards, softened so cards stay readable ---- */
.pdd-dash-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.pdd-dash-bg::before { content: ""; position: absolute; inset: -40px; background: var(--pdd-dash-img) center 35% / cover no-repeat; filter: blur(11px) saturate(1.1); }
.pdd-dash-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(10 32 40 / 40%) 0%, rgb(10 32 40 / 18%) 30%, rgb(246 248 247 / 55%) 70%, rgb(246 248 247 / 85%) 100%); }
.dark .pdd-dash-bg::after { background: linear-gradient(180deg, rgb(6 14 12 / 62%) 0%, rgb(6 14 12 / 55%) 40%, rgb(18 29 26 / 88%) 100%); }
/* the page background must not hide the backdrop on the dashboard */
.fi-body:has(.pdd-dash-bg) { background: transparent; }
html:has(.pdd-dash-bg) { background: var(--pdd-bg, #f6f8f7); }
.dark:has(.pdd-dash-bg) { background: #121d1a; }
/* title and subtitle sit on the photo */
.pdd-dashboard .fi-header-heading { color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / 35%); }
.pdd-dashboard .fi-header-subheading { color: rgb(255 255 255 / 88%); text-shadow: 0 1px 8px rgb(0 0 0 / 35%); }
/* glass cards over the photo */
.pdd-dashboard :is(.pdd-hero, .pdd-standards, .pdd-panel, .fi-section, .fi-ta-ctn, .fi-wi-stats-overview-stat) {
  background: rgb(255 255 255 / 86%); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-color: rgb(255 255 255 / 55%); }
.pdd-dashboard .pdd-hero { background: linear-gradient(110deg, rgb(255 255 255 / 90%) 40%, rgb(232 245 238 / 82%)); }
.dark .pdd-dashboard :is(.pdd-hero, .pdd-standards, .pdd-panel, .fi-section, .fi-ta-ctn, .fi-wi-stats-overview-stat) {
  background: rgb(27 41 36 / 80%); border-color: rgb(255 255 255 / 8%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pdd-dashboard :is(.pdd-hero, .pdd-standards, .pdd-panel, .fi-section, .fi-ta-ctn, .fi-wi-stats-overview-stat) { background: var(--pdd-paper); }
}

/* ---- Methodology hub ---- */
.pdd-hub-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.pdd-hub-card { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: .8rem !important; background: var(--pdd-paper) !important; white-space: normal !important; height: 100%; transition: box-shadow .15s; }
.pdd-hub-card:hover, .pdd-hub-card:focus-visible { box-shadow: 0 0 0 2px var(--pdd-accent); }
.pdd-hub-card .pdd-std-mark { min-width: 2.6rem; height: 2.6rem; font-size: .66rem; }
.pdd-hub-card-body { display: grid; gap: .1rem; min-width: 0; }
.pdd-hub-card-body b { font-size: .9rem; color: var(--pdd-ink); }
.pdd-hub-card-body small { font-size: .72rem; color: var(--pdd-muted); }
.pdd-hub-counts { color: var(--pdd-accent) !important; font-weight: 600; }
.pdd-hub-head { display: flex; gap: 1rem; align-items: center; }
.pdd-hub-head .pdd-std-mark { min-width: 3.2rem; height: 3.2rem; font-size: .75rem; }
.pdd-hub-head h2 { font-size: 1.15rem; font-weight: 700; color: var(--pdd-ink); }
.pdd-hub-sources { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--pdd-line); font-size: .8rem; }
.pdd-hub-source { display: inline-flex; gap: .5rem; align-items: center; }
.pdd-hub-source > a:first-child { color: var(--pdd-accent); font-weight: 600; }
.pdd-hub-import { font-size: .72rem; padding: .1rem .5rem; border: 1px solid var(--pdd-accent); border-radius: 999px; color: var(--pdd-accent); }
.pdd-hub-codes { display: flex; flex-wrap: wrap; gap: .5rem; }
.pdd-hub-code { display: grid; gap: .1rem; text-align: left; padding: .45rem .7rem; border: 1px solid var(--pdd-line); border-radius: .6rem; background: var(--pdd-bg); max-width: 17rem; }
.pdd-hub-code b { font-size: .8rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--pdd-ink); }
.pdd-hub-code small { font-size: .68rem; line-height: 1.3; }
.pdd-hub-code:hover { border-color: var(--pdd-accent); }
.pdd-hub-code.is-active { border-color: var(--pdd-accent); box-shadow: 0 0 0 1px var(--pdd-accent); background: var(--pdd-tint); }
.pdd-hub-calc { justify-self: start; font-size: .6rem; font-weight: 700; padding: 0 .35rem; border-radius: 999px; background: #047857; color: #fff; }

/* ---- Floating chat dock ---- */
.pdd-dock { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.pdd-dock-bubble { position: relative; width: 3.4rem; height: 3.4rem; border-radius: 999px; display: grid; place-items: center; background: #047857; color: #fff; box-shadow: 0 8px 24px rgb(4 120 87 / 35%); transition: transform .15s; }
.pdd-dock-bubble:hover { transform: translateY(-2px); }
.pdd-dock-bubble svg { width: 1.5rem; height: 1.5rem; }
.pdd-dock-dot { position: absolute; top: .45rem; right: .45rem; width: .65rem; height: .65rem; border-radius: 999px; background: #f59e0b; border: 2px solid #047857; }
.pdd-dock-panel { width: min(24.5rem, calc(100vw - 2rem)); height: min(36rem, calc(100vh - 7rem)); display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--pdd-line); border-radius: 1rem; background: var(--pdd-paper); box-shadow: 0 18px 48px rgb(15 40 30 / 22%); }
.pdd-dock-head { display: flex; justify-content: space-between; align-items: center; padding: .6rem .75rem; background: #047857; color: #fff; }
.pdd-dock-title { display: flex; gap: .45rem; align-items: center; font-size: .88rem; }
.pdd-dock-ico { width: 1.1rem; height: 1.1rem; }
.pdd-dock-actions { display: flex; gap: .15rem; }
.pdd-dock-actions > * { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .45rem; color: #fff; }
.pdd-dock-actions > *:hover { background: rgb(255 255 255 / 16%); }
.pdd-dock-actions svg { width: 1.05rem; height: 1.05rem; }
.pdd-dock-context { display: flex; flex-wrap: wrap; gap: .35rem; padding: .45rem .7rem; border-bottom: 1px solid var(--pdd-line); background: var(--pdd-bg); }
.pdd-dock-chip { display: inline-flex; gap: .3rem; align-items: center; max-width: 100%; font-size: .72rem; padding: .12rem .5rem; border-radius: 999px; background: var(--pdd-tint); color: var(--pdd-accent); }
.pdd-dock-chip button { font-size: .9rem; line-height: 1; margin-left: .1rem; }
.pdd-dock-chip-ico { width: .85rem; height: .85rem; flex: none; }
.pdd-dock-log { flex: 1; overflow-y: auto; padding: .8rem .75rem; display: flex; flex-direction: column; gap: .6rem; }
.pdd-dock-msg { max-width: 88%; padding: .5rem .7rem; border-radius: .8rem; font-size: .83rem; line-height: 1.5; background: var(--pdd-bg); border: 1px solid var(--pdd-line); overflow-wrap: anywhere; align-self: flex-start; }
.pdd-dock-msg.is-user { align-self: flex-end; background: #047857; color: #fff; border-color: #047857; white-space: pre-wrap; }
.pdd-dock-msg.is-err { border-color: #fca5a5; }
.pdd-dock-msg .pdd-prose { font-size: .83rem; }
.pdd-dock-msg .pdd-prose table { display: block; overflow-x: auto; font-size: .75rem; }
.pdd-dock-src { margin-top: .4rem; font-size: .72rem; }
.pdd-dock-src summary { cursor: pointer; color: var(--pdd-muted); }
.pdd-dock-src ol { margin: .25rem 0 0 1rem; list-style: decimal; }
.pdd-dock-empty { margin: auto; text-align: center; font-size: .82rem; color: var(--pdd-muted); padding: 1rem; }
.pdd-dock-input { display: flex; gap: .45rem; align-items: flex-end; padding: .6rem; border-top: 1px solid var(--pdd-line); }
.pdd-dock-input textarea { flex: 1; resize: none; border: 1px solid var(--pdd-line); border-radius: .6rem; padding: .45rem .6rem; font-size: .83rem; background: var(--pdd-paper); color: var(--pdd-ink); }
.pdd-dock-input textarea:focus { outline: 2px solid var(--pdd-accent); outline-offset: 0; }
.pdd-dock-input button { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .6rem; background: #047857; color: #fff; flex: none; }
.pdd-dock-input button:disabled, .pdd-dock-input textarea:disabled { opacity: .55; }
.pdd-dock-input button svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 640px) { .pdd-dock { right: .75rem; bottom: .75rem; } .pdd-dock-panel { height: calc(100vh - 6rem); } }
@media (prefers-reduced-motion: reduce) { .pdd-dock-bubble, .pdd-hub-card { transition: none; } }

.pdd-hub-logo { width: 2.6rem; height: 2.6rem; object-fit: contain; flex: none; border-radius: .5rem; background: #fff; padding: .15rem; box-shadow: 0 0 0 1px var(--pdd-line); }
.pdd-hub-logo-lg { width: 3.4rem; height: 3.4rem; }
.pdd-std-logo { background: #fff; border-radius: .35rem; padding: .1rem; }

/* ---- Document viewer (human review) ---- */
.pdd-viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; margin-top: -.75rem; }
.pdd-viewer-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; font-size: .8rem; color: var(--pdd-muted); }
.pdd-viewer-nav { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: var(--pdd-ink); }
.pdd-viewer { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: 1rem; align-items: start; }
.pdd-viewer-doc { border: 1px solid var(--pdd-line); border-radius: .8rem; overflow: hidden; background: var(--pdd-paper); }
.pdd-viewer-doc iframe { display: block; width: 100%; height: calc(100vh - 13rem); min-height: 32rem; border: 0; }
.pdd-viewer-side { position: sticky; top: 5rem; max-height: calc(100vh - 7rem); overflow-y: auto; border: 1px solid var(--pdd-line); border-radius: .8rem;
  background: var(--pdd-paper); padding: .9rem; display: grid; gap: .6rem; }
.pdd-viewer-side h3 { font-size: .88rem; font-weight: 650; color: var(--pdd-ink); }
.pdd-viewer-text { white-space: pre-wrap; font-size: .74rem; line-height: 1.5; background: var(--pdd-bg); border: 1px solid var(--pdd-line); border-radius: .5rem; padding: .55rem .65rem; max-height: 22rem; overflow: auto; color: var(--pdd-ink); }
.pdd-viewer-text.is-table { border-left: 3px solid #b45309; border-radius: 0 .5rem .5rem 0; }
.pdd-viewer-review { display: grid; gap: .55rem; padding-top: .7rem; border-top: 1px solid var(--pdd-line); font-size: .82rem; }
.pdd-viewer-review textarea { border: 1px solid var(--pdd-line); border-radius: .5rem; padding: .45rem .6rem; font-size: .8rem; background: var(--pdd-paper); color: var(--pdd-ink); }
.pdd-review-badge { font-size: .7rem; font-weight: 650; padding: .05rem .5rem; border-radius: 999px; border: 1px solid; }
.pdd-review-badge.is-valid { color: #047857; border-color: #6ee7b7; background: #ecfdf5; }
.pdd-review-badge.is-perlu_koreksi { color: #b45309; border-color: #fcd34d; background: #fffbeb; }
.pdd-doc-link { color: var(--pdd-ink); text-decoration: underline; text-decoration-color: var(--pdd-line); text-underline-offset: 2px; }
.pdd-doc-link:hover { text-decoration-color: var(--pdd-accent); color: var(--pdd-accent); }
@media (max-width: 1100px) { .pdd-viewer { grid-template-columns: minmax(0, 1fr); } .pdd-viewer-side { position: static; max-height: none; } }

.pdd-viewer-canvas { position: relative; height: calc(100vh - 13rem); min-height: 32rem; overflow: auto; background: #525659; }
.pdd-viewer-canvas canvas { display: block; margin: 0 auto; background: #fff; }
.pdd-viewer-canvas [data-status] { position: absolute; inset: 1rem auto auto 1rem; color: #fff; font-size: .8rem; }

/* project workspace */
.pdd-ws-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
@media (max-width: 900px) { .pdd-ws-grid { grid-template-columns: 1fr; } }
.pdd-ws-dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: .86rem; }
.pdd-ws-dl dt { color: var(--pdd-muted, #6b7280); }
.pdd-ws-editor { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1rem; }
@media (max-width: 900px) { .pdd-ws-editor { grid-template-columns: 1fr; } }
.pdd-ws-sections { display: grid; gap: .3rem; align-content: start; }
.pdd-ws-sections button { display: grid; grid-template-columns: auto 1fr; gap: .1rem .5rem; text-align: left; padding: .45rem .55rem;
  border: 1px solid var(--pdd-line); border-radius: .5rem; font-size: .82rem; background: var(--pdd-paper); color: var(--pdd-ink); }
.pdd-ws-sections button small { grid-column: 2; font-size: .7rem; }
.pdd-ws-sections button.is-active { border-color: #15803d; box-shadow: inset 3px 0 0 #15803d; }
.pdd-ws-dot { width: .6rem; height: .6rem; border-radius: 999px; margin-top: .3rem; background: #d1d5db; }
.pdd-ws-dot.is-draft { background: #f59e0b; } .pdd-ws-dot.is-revised { background: #0ea5e9; } .pdd-ws-dot.is-approved { background: #16a34a; }
.pdd-ws-pane { display: grid; gap: .6rem; }
.pdd-ws-label { display: grid; gap: .25rem; font-size: .8rem; font-weight: 600; color: var(--pdd-ink); }
.pdd-ws-label textarea { font-weight: 400; border: 1px solid var(--pdd-line); border-radius: .5rem; padding: .5rem .6rem; font-size: .84rem;
  line-height: 1.5; background: var(--pdd-paper); color: var(--pdd-ink); }
.pdd-ws-preview { font-size: .85rem; line-height: 1.55; max-height: 34rem; overflow: auto; }
.pdd-ws-preview table { border-collapse: collapse; margin: .5rem 0; font-size: .78rem; }
.pdd-ws-preview th, .pdd-ws-preview td { border: 1px solid var(--pdd-line); padding: .25rem .45rem; }
.pdd-ws-preview h1 { font-size: 1.1rem; font-weight: 700; } .pdd-ws-preview h2 { font-size: 1rem; font-weight: 650; margin-top: .8rem; }
.pdd-ws-preview h3 { font-weight: 600; margin-top: .6rem; } .pdd-ws-preview blockquote { color: #6b7280; border-left: 3px solid var(--pdd-line); padding-left: .6rem; }

.pdd-queue-bar { height: .5rem; border-radius: 999px; background: var(--pdd-line); overflow: hidden; }
.pdd-queue-bar span { display: block; height: 100%; background: #16a34a; }

/* ================================================================== Design refresh (2026-11)
   One layer over the rules above: brand mark, calmer surfaces, readable tables, consistent controls.
   Everything reads the --pdd-* tokens, so light and dark stay in step. */
.fi-body {
    --pdd-bg: #f4f6f3;
    --pdd-ink: #1c2f29;
    --pdd-muted: #566b62;
    --pdd-line: #dfe7e2;
    --pdd-accent: #046c4e;
    --pdd-accent-strong: #065f46;
    --pdd-tint: #e6f3ec;
    --pdd-radius: .875rem;
    --pdd-shadow: 0 1px 2px rgb(22 48 38 / 5%), 0 8px 24px -12px rgb(22 48 38 / 14%);
}
.dark .fi-body { --pdd-accent-strong: #34d399; --pdd-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -12px rgb(0 0 0 / 55%); }
/* soft light at the top of every page instead of a flat grey */
.fi-body:not(:has(.pdd-dash-bg)) { background: radial-gradient(1200px 420px at 18% -8%, color-mix(in srgb, var(--pdd-tint) 85%, transparent), transparent 70%) no-repeat, var(--pdd-bg); }

/* ---- Brand ---- */
.pdd-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--pdd-ink); }
.pdd-brand-mark { width: 2.1rem; height: 2.1rem; flex: none; border-radius: .6rem; box-shadow: 0 4px 10px -4px rgb(6 95 70 / 55%); }
.pdd-brand-mark rect { fill: #065f46; }
.pdd-brand-mark path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pdd-brand-mark .leaf { stroke: #d1fae5; }
.pdd-brand-mark .vein { stroke: #6ee7b7; }
.pdd-brand-text { display: flex; flex-direction: column; font-size: 1.02rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.pdd-brand-text small { margin-top: .15rem; font-size: .625rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--pdd-muted); }

/* ---- Top bar and sidebar ---- */
.fi-body .fi-topbar > nav { background: color-mix(in srgb, var(--pdd-paper) 82%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); box-shadow: none; }
.fi-body .fi-sidebar-item-button { padding-block: .55rem; }
.fi-body .fi-sidebar-item-active > .fi-sidebar-item-button { box-shadow: none; background: var(--pdd-tint); }
.fi-body .fi-sidebar-item-active > .fi-sidebar-item-button::before { content: ""; position: absolute; inset-block: .45rem; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--pdd-accent); }
.fi-body .fi-sidebar-item-button { position: relative; }
.fi-body .fi-sidebar-item-label { font-weight: 550; }

/* ---- Page header ---- */
.fi-body .fi-header-heading { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); font-weight: 750; line-height: 1.15; text-wrap: balance; }
.fi-body .fi-breadcrumbs-item-label { font-size: .78rem; color: var(--pdd-muted); }

/* ---- Surfaces ---- */
.fi-body .fi-section,
.fi-body .fi-ta-ctn,
.fi-body .fi-wi-stats-overview-stat,
.fi-body .fi-modal-window { border-radius: var(--pdd-radius); }
.fi-body .fi-section-header { padding-block: .9rem; }
.fi-body .fi-section-header-heading { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.fi-body .fi-section-header-description { color: var(--pdd-muted); }
.fi-body .fi-wi-stats-overview-stat { border-top: 0; }
.fi-body .fi-wi-stats-overview-stat-value,
.fi-body .fi-ta-cell,
.fi-body [class*="pdd-"] :is(strong, b, td) { font-variant-numeric: tabular-nums; }

/* ---- Tables: a title that wraps gets room to do it, rows respond to the pointer ---- */
.fi-body .fi-ta-header-cell { background: color-mix(in srgb, var(--pdd-bg) 70%, var(--pdd-paper)); }
.fi-body .fi-ta-header-cell-label { font-weight: 650; letter-spacing: .045em; text-transform: uppercase; font-size: .6875rem; }
.fi-body .fi-ta-table td:has(.whitespace-normal) { min-width: 17rem; max-width: 30rem; }
.fi-body .fi-ta-table .whitespace-normal { text-wrap: pretty; }
.fi-body .fi-ta-row { transition: background-color .12s; }
.fi-body .fi-ta-row:hover { background: color-mix(in srgb, var(--pdd-tint) 45%, transparent); }
.fi-body .fi-ta-text-item-label { color: var(--pdd-ink); }
.fi-body .fi-badge { border-radius: 999px; font-weight: 600; }

/* ---- Controls ---- */
.fi-body .fi-btn { border-radius: .625rem; font-weight: 650; transition: transform .08s, box-shadow .15s, background-color .15s; }
.fi-body .fi-btn:active { transform: translateY(1px); }
.fi-body .fi-btn.fi-color-primary:not(.fi-btn-outlined) { background: linear-gradient(180deg, #05825e, var(--pdd-accent-strong)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 6px 14px -8px rgb(6 95 70 / 70%); }
.fi-body .fi-btn.fi-color-primary:not(.fi-btn-outlined):hover { background: linear-gradient(180deg, #047857, #064e3b); }
.dark .fi-body .fi-btn.fi-color-primary:not(.fi-btn-outlined) { background: linear-gradient(180deg, #10b981, #059669); color: #052e22; }
.fi-body .fi-input-wrp { border-radius: .625rem; }
.fi-body .fi-fo-field-wrp-label > span { font-weight: 600; color: var(--pdd-ink); }
.fi-body :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--pdd-accent); outline-offset: 2px; }
.fi-body .fi-tabs { border-radius: .75rem; }
.fi-body .fi-tabs-item { border-radius: .55rem; font-weight: 600; }
/* plain file inputs (knowledge upload, evidence files) */
.fi-body input[type="file"] { font-size: .85rem; color: var(--pdd-muted); max-width: 100%; }
.fi-body input[type="file"]::file-selector-button { margin-inline-end: .75rem; padding: .5rem .9rem; border: 1px solid var(--pdd-line); border-radius: .625rem; background: var(--pdd-paper); color: var(--pdd-ink); font: inherit; font-weight: 650; cursor: pointer; transition: background-color .15s, border-color .15s; }
.fi-body input[type="file"]::file-selector-button:hover { background: var(--pdd-tint); border-color: var(--pdd-accent); }
/* thin scrollbars inside panels */
.fi-body * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--pdd-muted) 45%, transparent) transparent; }

/* ---- Login and other simple pages ---- */
.fi-simple-layout:has(.pdd-auth-bg) { background: transparent; }
.pdd-auth-bg::after { background: linear-gradient(160deg, rgb(4 40 32 / 72%) 0%, rgb(8 48 40 / 45%) 45%, rgb(244 246 243 / 30%) 100%); }
.dark .pdd-auth-bg::after { background: linear-gradient(160deg, rgb(3 16 13 / 82%), rgb(6 22 18 / 70%)); }
/* no backdrop-filter here: it would turn the card into the containing block of the fixed backdrop inside it */
.fi-simple-layout .fi-simple-main { border-radius: 1.25rem; background: rgb(255 255 255 / 94%); box-shadow: 0 30px 60px -30px rgb(3 30 24 / 65%); --tw-ring-color: rgb(255 255 255 / 50%); }
.dark .fi-simple-layout .fi-simple-main { background: rgb(22 34 30 / 94%); --tw-ring-color: rgb(255 255 255 / 8%); }
.fi-simple-layout .fi-simple-header { align-items: center; }
.fi-simple-layout .fi-simple-header .pdd-brand-mark { width: 2.6rem; height: 2.6rem; }
.fi-simple-layout .fi-simple-header-heading { font-size: 1.35rem; letter-spacing: -.03em; }
/* the lead is rendered before the header; show it after the heading */
.fi-simple-page:has(.pdd-auth-lead) { display: flex; flex-direction: column; }
.fi-simple-page:has(.pdd-auth-lead) > section { order: -2; }
.pdd-auth-bg::before { filter: blur(26px) saturate(1.1); }
.pdd-auth-lead { order: -1; margin: .6rem 0 1.25rem; text-align: center; font-size: .86rem; line-height: 1.5; color: var(--pdd-muted, #566b62); text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
    .fi-body .fi-btn, .fi-body .fi-ta-row { transition: none; }
    .fi-body .fi-btn:active { transform: none; }
}

/* chip colours for pages that style inline (AI agents): one pair per theme */
.fi-body { --pdd-blue-bg: #e3edfd; --pdd-blue-ink: #1e40af; --pdd-amber-bg: #fff7dc; --pdd-amber-ink: #8a4b0b; }
.dark .fi-body { --pdd-blue-bg: #17274a; --pdd-blue-ink: #9cc0ff; --pdd-amber-bg: #33270d; --pdd-amber-ink: #f6c66a; }

/* ---- Asisten AI: chat layout (greeting + input first; conversation in the middle, information on the right) ---- */
.pdd-ask { display: grid; gap: 1.5rem; align-items: start; min-height: calc(100dvh - 9rem); }
@media (min-width: 1100px) { .pdd-ask:has(.pdd-ask-side:not([style*="display: none"])) { grid-template-columns: minmax(0, 1fr) 21rem; } }
.pdd-ask-main { display: flex; flex-direction: column; width: 100%; max-width: 48rem; margin-inline: auto; min-height: calc(100dvh - 9rem); }
.pdd-ask.is-empty .pdd-ask-main { justify-content: center; padding-bottom: 12vh; }
.pdd-ask-ico { width: 1rem; height: 1rem; flex: none; }
.pdd-ask-hello { text-align: center; margin-bottom: 1.75rem; }
.pdd-ask-spark { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; border-radius: .9rem; background: var(--pdd-tint); color: var(--pdd-accent); }
.pdd-ask-spark svg { width: 1.4rem; height: 1.4rem; }
.pdd-ask-hello h1 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.15; color: var(--pdd-ink); text-wrap: balance; }
.pdd-ask-hello p { margin-top: .6rem; color: var(--pdd-muted); text-wrap: balance; }
.pdd-ask-bar { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.pdd-ask-ghost { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border-radius: .6rem; font-size: .82rem; font-weight: 600; color: var(--pdd-muted); }
.pdd-ask-ghost:hover { background: var(--pdd-tint); color: var(--pdd-accent); }
.pdd-ask-log { display: flex; flex-direction: column; gap: 1.75rem; }
.pdd-ask.is-chat .pdd-ask-log { flex: 1; padding-block: .75rem 1.5rem; }
.pdd-ask-turn { display: flex; flex-direction: column; gap: .6rem; }
.pdd-ask-q { align-self: flex-end; max-width: 85%; padding: .65rem 1rem; border-radius: 1.1rem 1.1rem .3rem 1.1rem; background: var(--pdd-tint); color: var(--pdd-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.pdd-ask-a { color: var(--pdd-ink); overflow-wrap: anywhere; }
.pdd-ask-a .pdd-prose { font-size: .95rem; line-height: 1.7; }
.pdd-ask-a .pdd-prose table { display: block; overflow-x: auto; }
.pdd-ask-a.is-error { padding: .65rem .9rem; border-radius: .75rem; border: 1px solid color-mix(in srgb, #dc2626 35%, transparent); color: #b91c1c; font-size: .88rem; }
.dark .pdd-ask-a.is-error { color: #fca5a5; }
.pdd-ask-a.is-thinking { display: flex; align-items: center; gap: .6rem; color: var(--pdd-muted); font-size: .9rem; }
.pdd-ask-dots { display: inline-flex; gap: .25rem; }
.pdd-ask-dots i { width: .4rem; height: .4rem; border-radius: 999px; background: var(--pdd-accent); animation: pdd-ask-dot 1.1s infinite ease-in-out; }
.pdd-ask-dots i:nth-child(2) { animation-delay: .15s; }
.pdd-ask-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes pdd-ask-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.pdd-ask-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .75rem; color: var(--pdd-muted); }
.pdd-ask-meta.is-right { justify-content: flex-end; }
.pdd-ask-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border: 1px solid var(--pdd-line); border-radius: 999px; font-weight: 600; color: var(--pdd-muted); }
.pdd-ask-chip:hover, .pdd-ask-chip.is-on { border-color: var(--pdd-accent); color: var(--pdd-accent); background: var(--pdd-tint); }
.pdd-ask-composer { position: sticky; bottom: 1rem; z-index: 5; padding: .85rem .9rem .6rem 1.1rem; border: 1px solid var(--pdd-line); border-radius: 1.25rem; background: var(--pdd-paper); box-shadow: var(--pdd-shadow); transition: border-color .15s, box-shadow .15s; }
.pdd-ask-composer:focus-within { border-color: color-mix(in srgb, var(--pdd-accent) 55%, var(--pdd-line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pdd-accent) 12%, transparent), var(--pdd-shadow); }
.pdd-ask-composer textarea { display: block; width: 100%; min-height: 2.9rem; max-height: 220px; padding: .2rem 0; border: 0; background: transparent; resize: none; font-size: 1rem; line-height: 1.5; color: var(--pdd-ink); box-shadow: none; }
.fi-body .pdd-ask-composer textarea:focus, .fi-body .pdd-ask-composer textarea:focus-visible { outline: none; box-shadow: none; }
.pdd-ask-composer textarea::placeholder { color: color-mix(in srgb, var(--pdd-muted) 75%, transparent); }
.pdd-ask-composer-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .35rem; }
.pdd-ask-ctx { display: flex; flex: 1; flex-wrap: wrap; gap: .3rem; min-width: 0; }
.pdd-ask-ctx b { padding: .12rem .55rem; border-radius: 999px; background: var(--pdd-tint); color: var(--pdd-accent); font-size: .72rem; font-weight: 600; }
.pdd-ask-send { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--pdd-accent); color: var(--pdd-paper); transition: transform .08s, opacity .15s; }
.pdd-ask-send svg { width: 1.15rem; height: 1.15rem; }
.pdd-ask-send:hover { transform: translateY(-1px); }
.pdd-ask-send:disabled { opacity: .45; }
.pdd-ask-error { margin-top: .5rem; font-size: .82rem; }
.pdd-ask-suggest { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.25rem; }
.pdd-ask-suggest button { padding: .7rem .9rem; border: 1px solid var(--pdd-line); border-radius: .9rem; background: color-mix(in srgb, var(--pdd-paper) 70%, transparent); text-align: start; font-size: .86rem; line-height: 1.4; color: var(--pdd-muted); transition: border-color .15s, color .15s, background-color .15s; }
.pdd-ask-suggest button:hover { border-color: var(--pdd-accent); color: var(--pdd-ink); background: var(--pdd-paper); }
.pdd-ask-note { margin-top: .9rem; text-align: center; font-size: .74rem; color: var(--pdd-muted); text-wrap: balance; }
/* in a conversation the input floats over the text: a solid strip below and a fade above keep it readable */
.pdd-ask.is-chat .pdd-ask-note { display: none; }
.pdd-ask.is-chat .pdd-ask-composer { box-shadow: 0 1.5rem 0 0 var(--pdd-bg), var(--pdd-shadow); }
.pdd-ask.is-chat .pdd-ask-composer::before { content: ""; position: absolute; inset: -2rem -1px auto; height: 2rem; background: linear-gradient(to top, var(--pdd-bg), transparent); pointer-events: none; }
/* right-hand information panel */
.pdd-ask-side { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1100px) { .pdd-ask-side { position: sticky; top: 5rem; max-height: calc(100dvh - 6.5rem); overflow-y: auto; padding-inline-end: .25rem; } }
.pdd-ask-side section { padding: 1rem 1.05rem; border: 1px solid var(--pdd-line); border-radius: var(--pdd-radius, .875rem); background: var(--pdd-paper); }
.pdd-ask-side h2 { margin-bottom: .7rem; font-size: .6875rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--pdd-muted); }
.pdd-ask-side .pdd-muted { font-size: .8rem; line-height: 1.5; }
.pdd-ask-sources { display: flex; flex-direction: column; gap: .85rem; margin: 0; padding: 0; list-style: none; font-size: .82rem; }
.pdd-ask-sources li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem; }
.pdd-ask-sources .mono { color: var(--pdd-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.pdd-ask-sources small { display: block; margin-top: .1rem; color: var(--pdd-muted); font-size: .72rem; }
.pdd-ask-sources p { margin-top: .3rem; color: var(--pdd-muted); font-size: .76rem; line-height: 1.45; }
.pdd-ask-label { display: block; margin: .2rem 0 .35rem; font-size: .78rem; font-weight: 600; color: var(--pdd-ink); }
.pdd-ask-select { width: 100%; margin-bottom: .8rem; padding: .45rem .7rem; border: 1px solid var(--pdd-line); border-radius: .6rem; background-color: var(--pdd-paper); background-repeat: no-repeat; background-position: right .55rem center; padding-inline-end: 2.1rem; color: var(--pdd-ink); font-size: .84rem; }
.pdd-ask-cats { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.pdd-ask-cats label { cursor: pointer; }
.pdd-ask-cats input { position: absolute; opacity: 0; pointer-events: none; }
.pdd-ask-cats span { display: inline-block; padding: .25rem .65rem; border: 1px solid var(--pdd-line); border-radius: 999px; font-size: .76rem; color: var(--pdd-muted); transition: background-color .15s, border-color .15s, color .15s; }
.pdd-ask-cats input:checked + span { border-color: var(--pdd-accent); background: var(--pdd-tint); color: var(--pdd-accent); font-weight: 600; }
.pdd-ask-cats input:focus-visible + span { outline: 2px solid var(--pdd-accent); outline-offset: 2px; }
.pdd-ask-hist { display: flex; justify-content: space-between; gap: .6rem; width: 100%; padding: .45rem .55rem; margin-inline: -.55rem; border-radius: .55rem; text-align: start; font-size: .82rem; line-height: 1.35; color: var(--pdd-ink); box-sizing: content-box; }
.pdd-ask-hist:hover, .pdd-ask-hist.is-on { background: var(--pdd-tint); }
.pdd-ask-hist small { flex: none; color: var(--pdd-muted); font-size: .7rem; }
@media (prefers-reduced-motion: reduce) { .pdd-ask-dots i { animation: none; opacity: .6; } }

/* Asisten AI: specialist and model pickers in the input row */
.pdd-ask-ico.is-small { width: .8rem; height: .8rem; opacity: .7; }
.pdd-ask-pick { position: relative; flex: none; }
.pdd-ask-pill { display: inline-flex; align-items: center; gap: .4rem; max-width: 15rem; padding: .35rem .65rem; border: 1px solid var(--pdd-line); border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--pdd-muted); transition: background-color .15s, border-color .15s, color .15s; }
.pdd-ask-pill > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdd-ask-pill:hover { background: var(--pdd-bg); color: var(--pdd-ink); }
.pdd-ask-pill.is-on { border-color: var(--pdd-accent); background: var(--pdd-tint); color: var(--pdd-accent); }
.pdd-ask-pill.is-plain { border-color: transparent; font-weight: 550; }
.pdd-ask-menu { position: absolute; bottom: calc(100% + .5rem); inset-inline-start: 0; z-index: 30; width: min(21rem, calc(100vw - 3rem)); max-height: min(24rem, 60dvh); overflow-y: auto; padding: .4rem; border: 1px solid var(--pdd-line); border-radius: .9rem; background: var(--pdd-paper); box-shadow: 0 18px 40px -18px rgb(10 30 22 / 45%), 0 2px 6px rgb(10 30 22 / 8%); }
.pdd-ask-pick.is-end .pdd-ask-menu { inset-inline: auto 0; width: min(17rem, calc(100vw - 3rem)); }
.pdd-ask-menu p { margin: .55rem .6rem .25rem; font-size: .6563rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--pdd-muted); }
.pdd-ask-menu p:first-child { margin-top: .3rem; }
.pdd-ask-menu button { display: flex; flex-direction: column; gap: .1rem; width: 100%; padding: .45rem .6rem; border-radius: .55rem; text-align: start; }
.pdd-ask-menu button.is-row { flex-direction: row; align-items: baseline; justify-content: space-between; gap: .6rem; }
.pdd-ask-menu button:hover { background: var(--pdd-bg); }
.pdd-ask-menu button.is-on { background: var(--pdd-tint); }
.pdd-ask-menu button.is-on b { color: var(--pdd-accent); }
.pdd-ask-menu b { font-size: .84rem; font-weight: 600; color: var(--pdd-ink); overflow-wrap: anywhere; }
.pdd-ask-menu small { font-size: .73rem; line-height: 1.35; color: var(--pdd-muted); }
/* before the first question the input sits mid-page: menus open downwards there, upwards once it is at the bottom */
.pdd-ask.is-empty .pdd-ask-menu { top: calc(100% + .5rem); bottom: auto; max-height: min(22rem, 45dvh); }
