/* The report's light sidebar is shared by reporting and document writing. */
.sidebar,.design-report .sidebar { background:#f7f7f9; color:#25232c; border-right:1px solid #e6e5e9; font-size:16px; line-height:1.5; }
.sidebar .brand { color:#292631; }
.sidebar .nav-label,.sidebar .saved-item small,.sidebar .sidebar-note p { color:#77727f; }
.sidebar .nav-item,.sidebar .saved-item { color:#625c6d; }
.sidebar .nav-item { font-size:15px; padding:14px 11px; }
.sidebar .nav-item.active,.sidebar .nav-item:hover,.sidebar .saved-item.active,.sidebar .saved-item:hover { background:#ece7f5; color:#5b329d; }
.sidebar .nav-item.active::before,.sidebar .nav-item.active::after { background:#7042bd; }
.sidebar .selection-nav,.sidebar .saved-all-button,.sidebar .sidebar-note { background:transparent; color:#625670; border-color:#e1dce8; }
.sidebar .sidebar-note strong { color:#51495c; }
.sidebar .saved-block { border-color:#e6e5e9; margin-bottom:0; }

/* Reference top bar: white surface, line icons and softly highlighted actions. */
.sidebar,.design-report .sidebar { padding-top:0; background:#fff; }
.sidebar .brand { min-height:80px; height:80px; color:#8654d8; font-size:27px; font-weight:800; letter-spacing:-.8px; border-bottom:1px solid #e5e5e8; }
/* The logo SVG keeps shadow room under its letters, so nudge it down to center the letters themselves. */
.sidebar .brand-logo { display:block; width:136px; height:36px; max-width:100%; object-fit:contain; transform:translateY(3px); }

/* The sidebar opens and folds from its own header; on desktop the folded state stays as a rail. */
.sidebar-brand { position:relative; flex-shrink:0; }
.sidebar-toggle { position:absolute; top:24px; right:-4px; display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:8px; background:transparent; color:#6f6977; cursor:pointer; }
.sidebar-toggle:hover { background:#f5f1fa; color:#7540c5; }
.sidebar-toggle:focus-visible { outline:2px solid #8654d8; outline-offset:2px; }
@media(min-width:761px) {
  :root body.sidebar-collapsed { --sidebar:72px; }
  .sidebar-collapsed .sidebar { padding:0 15px 20px 9px; overflow-x:hidden; }
  .sidebar-collapsed .sidebar-brand { display:flex; align-items:center; justify-content:center; height:80px; margin:0 -15px 0 -9px; border-bottom:1px solid #e5e5e8; }
  .sidebar-collapsed .sidebar .brand { display:none; }
  .sidebar-collapsed .sidebar-toggle { position:static; }
  .sidebar-collapsed .sidebar :is(.nav-label,.saved-block,.sidebar-note,#planningSelectionCount) { display:none; }
  .sidebar-collapsed .sidebar .nav-item { justify-content:center; gap:0; padding:12px 0; font-size:0; }
  .sidebar-collapsed .sidebar .nav-item span { font-size:12px; }
}
.workspace-topbar,.design-report .report-topbar.workspace-topbar {
  display:flex; align-items:center; justify-content:flex-start; flex-wrap:nowrap;
  gap:24px; min-height:80px; height:auto; padding:14px 30px; margin:0;
  background:#fff; border-bottom:1px solid #e5e5e8; color:#29272d;
}
.workspace-topbar .report-topbar-title,.workspace-topbar .topbar-brand { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.workspace-topbar .report-topbar-title strong,.workspace-topbar .topbar-brand>span:last-child { color:#39363e; font-size:15px; font-weight:550; }
.workspace-topbar .menu-button { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:32px; height:40px; padding:0; border:0; background:transparent; color:#38343d; border-radius:8px; }
/* On desktop the sidebar's own toggle replaces the top bar menu button. */
@media(min-width:761px) { .workspace-topbar .menu-button,.design-report .workspace-topbar .menu-button { display:none; } }
.workspace-topbar :is(.topbar-navigation,.influencer-topnav),.workspace-topbar .topbar-actions { display:flex; align-items:center; gap:12px; min-width:0; }
.workspace-topbar .topbar-actions { margin-left:auto; }
.workspace-topbar :is(.topbar-link,.influencer-tab) { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:46px; padding:0 14px; margin:0; border:0; border-radius:12px; background:transparent; color:#39363e; text-decoration:none; white-space:nowrap; font:500 15px/1.4 Pretendard,sans-serif; cursor:pointer; }
.workspace-topbar :is(.topbar-icon,.influencer-tab>svg) { flex-shrink:0; width:21px; height:21px; }
.workspace-topbar :is(.topbar-link,.influencer-tab):hover,.workspace-topbar .menu-button:hover { background:#f5f1fa; color:#7540c5; }
.workspace-topbar :is(.topbar-count,.influencer-tab>b) { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-width:28px; height:28px; padding:0 7px; border-radius:50%; background:#69bd9d; color:#fff; font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
.workspace-topbar .topbar-highlight { padding-inline:19px; border-radius:999px; background:#fcf6e9; color:#5c4b2f; }
.workspace-topbar .topbar-highlight:hover { background:#f8edcf; color:#634617; }
.workspace-topbar .request-actions { margin-left:auto; align-self:center; gap:14px; }
.design-report .workspace-topbar .request-actions { margin-left:auto; align-self:center; }
.workspace-topbar .saved-status { color:#88818d; background:none; padding:0; font-size:12px; font-weight:400; }
.workspace-topbar .top-actions { display:flex; align-items:center; gap:10px; margin:0; }
.workspace-topbar .topbar-tool { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-width:76px; height:42px; padding:0 14px; border:1px solid #dedde1; border-radius:12px; color:#56525b; background:#fff; font:500 14px/1 Pretendard,sans-serif; cursor:pointer; }
.workspace-topbar .topbar-tool:hover { background:#faf8fc; border-color:#bca4d6; }
.workspace-topbar .utility-menu>summary { list-style:none; }
.workspace-topbar .utility-menu>summary::-webkit-details-marker { display:none; }
.workspace-topbar .utility-menu>div { top:calc(100% + 10px); padding:8px; border-radius:12px; }
.workspace-topbar :is(button,a,summary):focus-visible { outline:2px solid #8654d8; outline-offset:3px; }
@media(max-width:1200px) {
  .workspace-topbar,.design-report .report-topbar.workspace-topbar { gap:12px; padding-inline:20px; }
  .workspace-topbar :is(.topbar-navigation,.influencer-topnav),.workspace-topbar .topbar-actions { gap:4px; }
  .workspace-topbar :is(.topbar-link,.influencer-tab) { gap:7px; padding-inline:10px; font-size:14px; }
  .workspace-topbar .saved-status { display:none; }
  .workspace-topbar .topbar-tool { min-width:48px; padding-inline:10px; }
  .workspace-topbar .topbar-tool-label { display:none; }
}
@media(min-width:761px) and (max-width:1050px) {
  .workspace-topbar,.design-report .report-topbar.workspace-topbar { flex-wrap:wrap; gap:8px 16px; }
  .workspace-topbar :is(.topbar-navigation,.influencer-topnav) { order:3; flex-basis:100%; }
}
@media(max-width:760px) {
  .workspace-topbar,.design-report .report-topbar.workspace-topbar { flex-wrap:wrap; gap:8px; min-height:72px; padding:12px 16px; }
  .workspace-topbar .report-topbar-title strong,.workspace-topbar .topbar-brand>span:last-child { display:inline; font-size:14px; }
  .workspace-topbar .report-topbar-title,.workspace-topbar .topbar-brand { gap:8px; }
  .workspace-topbar :is(.topbar-navigation,.influencer-topnav),.workspace-topbar .topbar-actions { order:3; flex-basis:100%; justify-content:flex-start; gap:4px; margin:0; }
  .workspace-topbar :is(.topbar-link,.influencer-tab) { gap:6px; min-height:42px; padding-inline:10px; font-size:13px; }
  .workspace-topbar :is(.topbar-link .topbar-icon,.influencer-tab>svg) { width:18px; height:18px; }
  .workspace-topbar :is(.topbar-count,.influencer-tab>b) { min-width:24px; height:24px; padding-inline:5px; font-size:12px; }
  .workspace-topbar .topbar-tool { height:36px; min-width:40px; gap:4px; padding-inline:8px; border-radius:10px; }
  .workspace-topbar .top-actions { gap:6px; }
  .workspace-topbar .back-link { max-width:none; }
}
@media(max-width:360px) {
  .workspace-topbar,.design-report .report-topbar.workspace-topbar { padding-inline:12px; }
  .workspace-topbar :is(.topbar-link,.influencer-tab) { padding-inline:7px; font-size:12px; }
}

/* Modal close buttons: the "×" glyph sits below the middle of its line box, so draw a centered X instead (one size everywhere).
   Flex, not grid: the hidden "×" text stays in the markup for older styles and must not take a row of its own. */
:is(#savedModalClose,#selectionClose,#sceneDialogClose,#closeHistoryButton,#drawerClose,[data-close-dialog],[data-influencer-close]) {
  display:inline-flex; align-items:center; justify-content:center; gap:0; flex-shrink:0; width:36px; height:36px; min-width:36px; padding:0; border-radius:50%; font-size:0; line-height:0; color:#3c3742; cursor:pointer;
}
:is(#savedModalClose,#selectionClose,#sceneDialogClose,#closeHistoryButton,#drawerClose,[data-close-dialog],[data-influencer-close])::before {
  content:""; flex:none; width:16px; height:16px; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat;
}
:is(#savedModalClose,#selectionClose,#sceneDialogClose,#closeHistoryButton,#drawerClose,[data-close-dialog],[data-influencer-close]):focus-visible { outline:2px solid #7442c8; outline-offset:2px; }
