/* Taste + GSAP refinement. Approved dashboard layout remains authoritative. */
:root {
  --blue:#2258e8; --navy:#172b4d; --muted:#64748b;
  --paper:#f5f7fb; --line:#e3e9f2; --radius:14px;
  --ui-ease:cubic-bezier(.2,.8,.2,1);
}
body { -webkit-font-smoothing:antialiased; }
h1 { font-size:26px; font-weight:700; letter-spacing:-.6px; }
h2 { font-size:17px; font-weight:650; }
h3 { font-size:15px; font-weight:650; }
button { border-radius:8px; font-weight:500; }
input,select,textarea { border-color:#dce4ef; border-radius:8px; }
input:hover,select:hover,textarea:hover { border-color:#aabbd7; }
input:focus,select:focus,textarea:focus { border-color:var(--blue); }
.primary { box-shadow:0 3px 6px #2258e81a; }
.mobile-nav-toggle { display:none; }
.sidebar { padding:22px 14px 16px; background:#fff; }
.brand { padding:0 8px 23px; gap:11px; }
.brandcopy { display:grid; gap:3px; }
.brand b { font-size:21px; letter-spacing:.5px; line-height:1.25; }
.brandcategory { font-size:13px; font-weight:600; color:#455f85; letter-spacing:2px; }
.brand small { font-size:11px; margin-top:0; color:#64748b; letter-spacing:2px; line-height:1.4; }
.brandmark { width:42px; height:42px; flex-shrink:0; border-radius:12px; box-shadow:0 4px 10px #2258e822; }
.brandmark:after { width:17px; height:17px; }
.parent { font-size:14px; padding:12px 10px; }
.navlist { gap:4px; }
.navlist[hidden] { display:none; }
.parent:hover { background:#f3f6fc; }
.navitem { position:relative; min-height:40px; padding:8px 10px 8px 22px; font-size:14px; color:#455570; }
.navitem .icon { width:19px; height:19px; }
.navitem.active { background:#edf3ff; color:#1e50d6; }
.navitem.active:before { content:""; position:absolute; left:0; top:11px; bottom:11px; width:3px; border-radius:3px; background:var(--blue); }
.navitem small { background:#f1f3f7; color:#67758a; font-weight:400; font-size:10px; }
.divider { margin:20px 8px 10px; }
.sidefoot { border-top:1px solid var(--line); padding-top:10px; }
.sidefoot a,.sidefoot button { padding:8px 10px; font-size:12px; min-height:36px; }
.sidefoot .icon { width:17px; height:17px; }
.accountline { margin:8px 10px 0; color:#64748b; font-size:11px; }
.topbar { height:60px; padding:0 24px; background:#ffffffed; }
.topbar>b { font-size:13px; color:#51617b; font-weight:550; }
.searchbox input { border-color:#e7ecf3; width:270px; background:#f6f8fb; font-size:12px; }
.avatar { background:#eaf0ff; color:#2258e8; font-weight:650; }
.content { padding:18px 24px; }
.pageheading { gap:16px; align-items:center; }
.pageheading .badge { font-size:11px; background:#eaf3ee; color:#2e7050; border:1px solid #dcebe2; padding:2px 8px; }
.pageheading .badge.warn { background:#fff3d9; color:#956011; border-color:#f1e0b9; }
.subheading { font-size:13px; margin:4px 0 12px; color:#6d7c91; }
.filterbar { gap:12px; padding:10px 14px; border-radius:12px; box-shadow:0 1px 2px #1c355303; }
.filterbar label { gap:6px; font-size:12px; }
.filterbar select { font-size:12px; min-width:92px; min-height:34px; background:#fbfcfe; padding:5px 22px 5px 9px; }
.filterbar select[name=product] { max-width:210px; }
.filterbar select[name=scope] { min-width:116px; }
.filterbar .source { font-size:12px; white-space:nowrap; }
.sourcebar { font-size:12px; color:#5d6d84; margin:8px 2px 12px; }
.sourcebar a { color:#5a70a1; }
.kpis { gap:12px; }
.kpi { background:#fff; border-radius:12px; padding:14px; box-shadow:0 2px 4px #182b4603; min-width:0; }
.kpis>.kpi:first-child { background:#f7faff; border-color:#cadbff; box-shadow:inset 0 3px 0 #2c60ec,0 2px 4px #182b4603; }
.kpihead { gap:8px; font-size:12px; font-weight:550; color:#57677f; }
.iconbox { width:28px; height:28px; background:#f0f5ff; border-radius:7px; }
.iconbox .icon { width:18px; height:18px; }
.metric { margin-top:12px; gap:5px; flex-wrap:wrap; line-height:1.2; }
.metric strong { font-size:30px; font-weight:720; letter-spacing:-1px; color:#15294b; max-width:100%; overflow-wrap:anywhere; white-space:normal; }
.metric span { font-size:11px; }
.kpi small { margin-top:8px; font-size:12px; color:#64748b; }
.card { border-radius:var(--radius); padding:16px 20px; box-shadow:0 3px 8px #1c355304; }
.cardhead { margin-bottom:16px; gap:10px; }
.cardhead .link { font-size:12px; white-space:nowrap; padding:0; min-height:26px; }
.cardhead small { font-size:11px; color:#5d6d84; text-align:right; }
.chartrow { gap:16px; margin-top:16px; grid-template-columns:1.35fr 1fr; }
.chartsvg { height:180px; }
.chartsvg text { fill:#5d6d84; font-size:14px; }
.chartsvg .barlabel { fill:#243b5e; font-size:14px; font-weight:650; }
.donutwrap { min-height:180px; justify-content:center; gap:24px; }
.donut { width:176px; height:176px; }
.legend { flex:1; max-width:190px; display:grid; gap:20px; }
.legend-row { display:grid; grid-template-columns:12px 1fr auto; column-gap:8px; row-gap:3px; align-items:center; font-size:13px; }
.legend-row b { font-size:17px; font-weight:650; color:#243b5e; }
.legend-row small { grid-column:2/4; font-size:12px; color:#5d6d84; }
.dot { width:9px; height:9px; border-radius:3px; }
.bottomrow { grid-template-columns:1.25fr 1.1fr .9fr; gap:16px; }
.tablewrap { border-radius:8px; }
table { font-size:12px; }
th { background:#f5f7fb; color:#6a7890; font-size:11px; font-weight:550; padding:9px 9px; }
td { padding:10px 9px; border-color:#edf1f6; color:#3c506e; }
tbody tr:last-child td { border-bottom:0; }
tr:hover td { background:#f7faff; }
.productname { max-width:100%; white-space:normal; text-align:left; line-height:1.55; font-size:12px; color:#2455bb; overflow-wrap:anywhere; }
.bottomrow .tablewrap { overflow:visible; }
.bottomrow table { table-layout:fixed; }
.bottomrow th:not(:first-child) { text-align:right; }
.bottomrow th:first-child { width:54%; }
.bottomrow .card:nth-child(2) th:first-child { width:30%; }
.bottomrow .card:nth-child(2) th:nth-child(2) { width:18%; }
.bottomrow .card:nth-child(2) th:nth-child(3) { width:26%; }
.bottomrow .card:nth-child(2) th:nth-child(4) { width:26%; }
.bottomrow .card:nth-child(2) td,.bottomrow .card:nth-child(2) th { padding-left:5px; padding-right:5px; }
.bottomrow th:nth-child(2) { width:20%; }
.bottomrow th:nth-child(3) { width:26%; }
.bottomrow td,.bottomrow th { padding:7px 6px; }
.bottomrow td.num { font-size:12px; }
.bottomrow .productname { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:0; line-height:17px; font-size:12px; padding:0; }
.bottomrow .card>.link { display:inline-flex; align-items:center; margin-top:9px; font-size:12px; min-height:26px; }
.satisfaction .bigblue { font-size:42px; font-weight:720; letter-spacing:-1.5px; margin-top:4px; }
.satisfaction p { font-size:12px; color:#52657e; margin:4px 0; }
.satisfaction>small { font-size:12px; }
.recovery-track { width:100%; height:6px; margin:18px 0 0; border-radius:5px; background:#edf2fb; overflow:hidden; }
.recovery-track span { display:block; height:100%; border-radius:5px; background:#3b6ded; }
.statustags { margin-top:20px; gap:7px; }
.badge { border-radius:5px; font-size:11px; padding:3px 8px; }
.badge.gray { background:#f2f4f8; color:#697990; }
.targetstrip { border-color:#dce6f9; background:#f7faff; padding:12px 18px; gap:14px; margin-top:16px; }
.targetstrip>.icon { color:var(--blue); }
.targetstrip h2 { font-size:15px; }
.targetstrip p,.targetstrip .link { font-size:12px; }
.notice { background:#f3f6fb; border-color:#e5eaf2; color:#64748b; font-size:12px; }
.notice summary { cursor:pointer; padding:2px 0; }
.notice p { margin-top:8px; }
.editorhead { margin-bottom:24px; align-items:center; }
.editorhead .muted { margin-top:6px; font-size:13px; }
.productlist { gap:20px; }
.producttile { padding:12px 12px 16px; }
.producttile img { height:170px; border-radius:9px; background:#f3f6fb; }
.producttile h3 { padding:0 6px; min-height:25px; margin:2px 0 12px; }
.producttile .actions { padding:0 6px; justify-content:space-between; }
.editorgrid { grid-template-columns:minmax(0,1fr) 300px; }
.editorgrid .card { padding:24px; }
.editorgrid .previewimg { margin-bottom:14px; }
.editorgrid details { padding:12px 14px; background:#f8fafc; border:1px solid #e8edf4; border-radius:8px; }
.editorgrid details summary { font-weight:550; cursor:pointer; }
.editorgrid details[open] summary { margin-bottom:16px; }
.field label { font-size:13px; color:#4e617d; }
.field input,.field textarea,.field select { background:#fcfdff; }
.authbg { background:radial-gradient(ellipse at 15% 0%,#dfeaff 0%,transparent 55%),#f6f8fc; }
.authcard { width:460px; border-radius:20px; padding:38px; box-shadow:0 20px 60px #183b7610; border-color:#dfe7f2; }
.authcard .brand { justify-content:flex-start; padding:0 0 26px; margin:0 0 24px; border-bottom:1px solid #edf1f7; }
.authcard h1,.authcard .lead { text-align:left; }
.authcard .lead { font-size:13px; margin-top:8px; line-height:1.7; }
.authcard .primary { border-radius:8px; min-height:44px; }
.authcard input { min-height:44px; }
dialog { border-radius:16px; padding:28px; box-shadow:0 24px 90px #162f5133; border-color:#e2e9f2; }
dialog::backdrop { background:#162b4d65; }
dialog h2 { font-size:21px; margin-bottom:22px; }
.checks label { border:1px solid #e7edf6; background:#f9fbfe; font-size:13px; padding:12px; }
.checks label:has(input:checked) { border-color:#bbcff8; background:#edf4ff; }
.checks input { width:16px; height:16px; }
.dialogactions { border-top:1px solid var(--line); padding-top:20px; }
[data-page=accounts] td,[data-page=accounts] th { text-align:left; }
[data-page=accounts] td:last-child { white-space:nowrap; }
[data-page=accounts] td button { min-height:32px; font-size:12px; }
.permission-tags { display:flex; flex-wrap:wrap; gap:6px; white-space:normal; }
#toast { background:#183867; border:1px solid #32517d; border-radius:10px; box-shadow:0 8px 24px #1c355325; font-size:13px; }
@media(hover:hover) and (pointer:fine) {
  button,a,input,select,textarea { transition:background-color 150ms var(--ui-ease),border-color 150ms var(--ui-ease),color 150ms var(--ui-ease),box-shadow 150ms var(--ui-ease); }
  button:active { transform:translateY(1px); }
  .producttile { transition:box-shadow 180ms var(--ui-ease),border-color 180ms var(--ui-ease); }
  .producttile:hover { border-color:#c1d0e8; box-shadow:0 8px 22px #1c35530c; }
  .link:hover { color:#103da6; text-decoration:underline; text-underline-offset:4px; }
}
@media(min-width:1051px) {
 .filterbar label:nth-child(4) { flex:1 1 230px; max-width:350px; }
 .filterbar label:nth-child(4) select { flex:1; width:100%; min-width:0; max-width:none; }
}
@media(min-width:1351px) {
  .sidebar { width:248px; } .workspace { margin-left:248px; }
  .content { padding:18px 24px 28px; }
}
@media(min-width:1700px) { .content { padding:28px 32px; } .chartsvg { height:230px; } }
@media(max-width:1350px) {
  .content { padding:20px 16px; }
  .filterbar { gap:9px; }
  .kpi { padding:14px 10px; }
  .metric strong { font-size:25px; }
  .kpihead { gap:6px; font-size:11px; }
  .donutwrap { gap:8px; }
  .donut { width:160px; height:160px; }
  .bottomrow { grid-template-columns:1.25fr 1.1fr; }
  .bottomrow>.card:last-child { grid-column:1/-1; }
  .satisfaction { display:grid; grid-template-columns:auto 1fr; column-gap:24px; align-items:center; }
  .satisfaction .bigblue { grid-row:1/4; }
  .satisfaction .statustags { grid-column:1/-1; margin-top:12px; }
  .satisfaction .recovery-track { grid-column:2; margin-top:7px; }
}
@media(max-width:1050px) {
  .chartrow { grid-template-columns:1fr; }
  .metric strong { font-size:30px; }
  .editorgrid { grid-template-columns:minmax(0,1fr); }
  .topbar { padding:0 18px; }
  .filterbar label { flex-wrap:wrap; }
}
@media(max-width:700px) {
  .sidebar { padding:12px; max-height:80px; position:relative; }
  .sidebar.is-open { max-height:80vh; }
  .sidebar:not(.is-open)>:not(.brand):not(.mobile-nav-toggle) { display:none; }
  .mobile-nav-toggle { display:block; position:absolute; top:18px; right:12px; font-size:12px; min-height:44px; }
  .brand { padding:0 4px 12px; margin-bottom:5px; }
  .brand small { margin-top:2px; }
  .parent { padding:8px; min-height:44px; }
  .navitem { padding:10px 8px; min-height:44px; font-size:12px; }
  .navitem.active:before { display:none; }
  .sidefoot { flex-wrap:wrap; gap:0; }
  .sidefoot a,.sidefoot button { width:50%; min-height:44px; }
  .workspace { margin-left:0; }
  .topbar { height:50px; padding:0 14px; }
  .topbar>b { font-size:11px; }
  .content { padding:20px 12px; }
  h1 { font-size:23px; }
  .pageheading { gap:10px; }
  .subheading { margin-bottom:14px; }
  .filterbar { padding:12px; gap:12px 10px; }
  .filterbar label { flex:1 1 45%; display:flex; flex-direction:column; align-items:stretch; gap:5px; }
  .filterbar select { width:100%; max-width:100%!important; min-height:42px; }
  .filterbar .source { min-height:40px; padding:5px 8px; }
  .sourcebar { font-size:10px; margin:10px 0 14px; gap:5px; }
  .kpis { gap:10px; }
  .kpi { padding:13px 12px; }
  .kpihead { white-space:normal; line-height:1.4; min-height:28px; font-size:12px; }
  .metric strong { font-size:27px; }
  .kpi small { font-size:10px; }
  .card { padding:16px; }
  .cardhead { align-items:flex-start; }
  .cardhead small { max-width:130px; }
  .chartsvg { height:130px; }
  .chartsvg text { font-size:23px; }
  .chartsvg .barlabel { font-size:24px; }
  .donutwrap { flex-wrap:nowrap; gap:14px; min-height:170px; }
  .donut { width:150px; height:150px; }
  .legend-row { font-size:12px; }
  .legend-row b { font-size:15px; }
  .bottomrow { grid-template-columns:1fr; }
  .bottomrow>.card:last-child { grid-column:auto; }
  .bottomrow .productname { min-height:44px; display:flex; align-items:center; }
  .bottomrow .card>.link { min-height:44px; margin-top:4px; }
  .bottomrow td,.bottomrow th { padding:6px; }
  .satisfaction { display:block; }
  .satisfaction .recovery-track { margin-top:16px; }
  .targetstrip { gap:8px; padding:14px; }
  .targetstrip .link { min-height:44px; }
  .editorhead { flex-wrap:wrap; gap:16px; }
  .editorgrid .card { padding:18px; }
  .authcard { padding:28px; border-radius:16px; }
  .producttile img { height:180px; }
  .checks label { min-height:44px; }
  .dialogactions button { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }

/* Product viewers get content without edit controls. */
.detail-copy{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}
