/* A quieter research surface: hierarchy and spacing carry the layout. */
:root { --rule: #e3dcd2; --soft: #eee7ed; }
button, select { border-radius: 3px; }
button:hover:not(:disabled) { border-color: #b9a5b5; }
.desk-search { background: transparent; border-color: transparent; border-bottom-color: var(--rule); border-radius: 0; padding: 10px 0; }
.desk-search:hover:not(:disabled) { background: transparent; border-color: transparent; border-bottom-color: var(--plum); }
.desk-navigation > button { border-radius: 0; }
.desk-navigation > button[aria-current] { background: transparent; box-shadow: inset 2px 0 var(--plum); }
.queue-item { border-bottom: 0; }
.queue-item .queue-remove { border: 0; background: transparent; }
.work-tabs { min-height: 36px; padding: 0 28px; background: transparent; }
.work-tabs:has(.work-tab:only-child) { display: none; }
.work-tab { border-right: 0; margin-right: 20px; min-width: 0; }
.work-tab.selected { background: transparent; box-shadow: inset 0 -2px var(--plum); }
.work-tab button { padding: 10px 0; }
.work-tab .tab-close { padding: 8px; margin-left: 10px; }
.topbar { min-height: 46px; background: transparent; }
.desk-location small { display: inline; margin-left: 12px; font: inherit; color: var(--muted); }
.wrap { padding: 28px 32px 32px; }
.identity { margin-bottom: 21px; align-items: flex-start; }
.identity h1 { font-size: clamp(24px, 2.3vw, 32px); font-weight: 600; letter-spacing: -.9px; margin-bottom: 8px; }
.identity .meta { font-size: 12px; }
.identity-actions { padding-top: 3px; gap: 18px; }
.identity-actions button { border: 0; border-bottom: 1px solid transparent; background: transparent; padding: 5px 0; color: var(--plum); }
.identity-actions button:hover:not(:disabled) { border-bottom-color: var(--plum); }
.identity-actions button:disabled { color: var(--muted); opacity: 1; }
#exportStatus:empty { display: none; }
.period-context { display: flex; flex-direction: column; padding: 0; }
.view-tabs { order: -1; gap: 25px; margin: 0 0 18px; }
.view-tabs button { font-size: 12px; padding: 11px 0; }
.period-bar { border-top: 0; border-bottom: 0; padding: 0; gap: 20px; align-items: center; }
.period-bar label { flex-direction: row; align-items: center; gap: 8px; font-size: 11px; }
.period-bar select { background-color: transparent; border: 0; border-bottom: 1px solid #c4b9c0; border-radius: 0; padding: 8px 24px 8px 0; font-size: 12px; font-weight: 500; color: var(--ink); }
.period-pair { gap: 10px; flex-wrap: wrap; }
.period-step { display: flex; gap: 10px; }
.period-pair button { padding: 8px 0; border: 0; background: transparent; min-width: 0; font-size: 10px; color: var(--plum); }
.period-pair button:disabled { color: var(--muted); }
.period-bar .latest { font-size: 11px; background: transparent; border: 0; padding: 8px 0; color: var(--plum); }
.period-bar .latest:disabled { display: none; }
.period-note { margin: 8px 0 22px; font-size: 10px; }
.view-head { margin-bottom: 12px; }
.view-head h2 { font-size: 15px; }
.overview-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 16px 0 22px; padding: 18px 0; }
.overview-card { border: 0; border-right: 1px solid var(--rule); border-radius: 0; background: transparent; padding: 0 20px; min-width: 0; min-height: 0; transition: background-color .15s; }
.overview-card:first-child { padding-left: 0; }
.overview-card:last-child { border-right: 0; }
.overview-card:hover:not(:disabled) { background: #5b2b5405; border-color: var(--rule); }
.overview-card:hover strong { color: var(--plum); }
.overview-card small { font-size: 11px; }
.overview-card strong { margin: 14px 0 8px; font-size: clamp(21px,2vw,29px); font-weight: 500; font-variant-numeric: tabular-nums; }
.overview-card .delta { font-size: 11px; }
.overview-card .overview-spark { display: block; margin-top: 20px; height: 32px; color: var(--plum); }
.overview-spark .row-spark { width: 100%; height: 32px; }
.overview-links { gap: 24px; margin: 18px 0 12px; }
.overview-links button { border: 0; border-bottom: 1px solid var(--plum); border-radius: 0; padding: 5px 0; color: var(--plum); background: transparent; font-size: 12px; }
.context-grid { gap: 26px; }
.context-item { border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 18px 0; background: transparent; }
.inspect { border: 0; border-left: 1px solid var(--rule); border-radius: 0; background: transparent; padding: 4px 0 12px 22px; }
.financial-layout.compact .inspect { border-left: 0; border-bottom: 1px solid var(--rule); padding: 0 0 18px; }
.analysis-toolbar select, .analysis-second select, .analysis-views select { border: 0; border-bottom: 1px solid #c4b9c0; border-radius: 0; background-color: transparent; }
.analysis-presets { gap: 0; }
.analysis-presets button { background: transparent; border: 0; border-radius: 0; padding: 8px 10px; }
.analysis-presets button[aria-pressed=true] { background: var(--soft); color: var(--plum); }
.analysis-scope { border: 0; border-radius: 0; border-bottom: 1px solid var(--rule); }
.footer { font-size: 10px; padding-top: 28px; }
@media(max-width:1100px) {
  .overview-card { padding: 0 13px; }
  .period-bar { gap: 10px 18px; }
  .period-bar label { flex-wrap: wrap; }
}
@media(max-width:760px) {
  .wrap { padding: 22px 16px; }
  .topbar { min-height: 46px; }
  .desk-location small { margin-left: 0; display: block; }
  .identity { margin-bottom: 15px; }
  .identity h1 { font-size: 25px; line-height: 1.2; }
  .identity-actions { width: auto; gap: 18px; }
  .identity-actions button { flex: none; min-height: 36px; }
  .view-tabs { gap: 20px; margin-bottom: 14px; }
  .period-bar { gap: 10px 16px; align-items: flex-start; }
  .period-bar label, .period-bar label.compare-mode { flex: 1 1 150px; align-items: flex-start; flex-direction: column; gap: 0; }
  .period-pair { gap: 0; width: 100%; }
  .period-pair select { width: auto; }
  .period-step { gap: 16px; }
  .period-bar .latest { width: auto; margin-left: 0; }
  .period-note { margin: 8px 0 18px; }
  .overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
  .overview-card { padding: 18px 14px; border-bottom: 1px solid var(--rule); }
  .overview-card:first-child { padding-left: 14px; }
  .overview-card:nth-child(even) { border-right: 0; }
  .overview-card:last-child { border-bottom: 0; grid-column: 1/-1; }
  .overview-card .overview-spark { height: 25px; margin-top: 15px; }
  .overview-spark .row-spark { height: 25px; }
  .overview-card strong { font-size: 26px; }
  .inspect { border-left: 0; border-bottom: 1px solid var(--rule); padding: 0 0 18px; }
  .desk-search { margin-top: 8px; }
}

@media (max-width: 760px) {
  .sidebar.navigation-open {
    position: fixed;
    inset: 0 0 auto;
    max-height: 100dvh;
    overflow-y: auto;
    z-index: 30;
    background: var(--surface);
    box-shadow: 0 10px 30px #1c181419;
  }
  .sidebar.navigation-open .desk-nav-toggle {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface);
  }
}

.complete-profile-return{display:inline-flex;padding:10px 12px;border:1px solid var(--rule);border-radius:4px;font-size:12px;color:var(--plum);text-decoration:none}.complete-profile-return[hidden]{display:none}

/* Directory controls stay distinct from the research tables. */
.home-active .wrap { max-width: 1440px; padding: 28px 32px; }
.home-heading { align-items: center; padding-bottom: 22px; margin-bottom: 24px; }
.home-heading h1 { font-size: 28px; letter-spacing: -.7px; margin-bottom: 8px; }
.home-heading p:not(.home-kicker) { max-width: none; font-size: 13px; }
.home-edition { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.home-edition strong { padding: 4px 8px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; }
.home-grid { grid-template-columns: minmax(0,1fr) 300px; gap: 32px; }
.home-search-title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.home-search-label { font-size: 12px; margin-bottom: 10px; }
.home-search-line { border: 1px solid #b8a6b4; border-radius: 6px; padding: 0 14px; background: var(--surface); box-shadow: 0 2px 4px #1c181405; }
.home-search-icon { color: var(--plum); font-size: 25px; margin-right: 10px; }
.home-search-line input { padding: 14px 0; font-size: 15px; }
.home-search-line input:focus-visible { outline: 0; }
.home-search-line:focus-within { outline: 2px solid var(--plum); outline-offset: 2px; }
.home-filters { margin: 16px 0 24px; gap: 12px; }
.home-filters label { font-size: 11px; }
.home-filters select { border: 1px solid var(--rule); background-color: var(--surface); border-radius: 4px; padding: 10px; font-size: 12px; min-height: 40px; }
.home-result-heading { font-size: 11px; padding-bottom: 12px; }
.home-result { padding: 18px 10px; min-height: 80px; }
.home-result:hover, .home-result:focus-visible { background: var(--soft); }
.home-result strong { font-size: 14px; }
.home-result small { font-size: 11px; }
.home-result-arrow { display: block; font-size: 18px; }
.home-result-figures strong { font-weight: 600; }
.home-status:empty { display: none; }
.home-work { padding-left: 24px; }
.home-work h2 { font-size: 13px; margin-bottom: 10px; }
.home-work-link { min-height: 54px; padding: 12px 0; }
.home-work-link strong, .home-starts strong { font-size: 12px; }
.home-work-link small, .home-starts small { font-size: 11px; }
.home-work-link > span:last-child, .home-starts strong span { display: inline; }
.home-research-options { margin-top: 24px; padding-top: 14px; }
.home-research-options > summary { font-size: 12px; }
.home-research-options[open] > summary { margin-bottom: 10px; }
.home-footer { margin-top: 28px; font-size: 10px; }
.platform-tools > .nav-group-label { padding: 0; margin-top: 0; }
.platform-tools > a { min-height: 34px; padding: 8px 10px; font-size: 12px; }
.platform-tools > details { margin-top: 4px; }
.desk-account { flex-shrink: 0; padding: 16px 24px; margin: 0; border-top: 1px solid var(--rule); line-height: 1.6; }
@media(max-width:1100px) {
  .home-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .home-work { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding: 24px 0 0; }
  .home-work section + section { margin-top: 0; }
  .home-research-options { margin-top: 0; }
}
@media(max-width:760px) {
  .home-active .wrap { padding: 22px 16px; }
  .home-heading { align-items: flex-start; gap: 12px; margin-bottom: 22px; }
  .home-heading h1 { font-size: 26px; }
  .home-edition strong { margin: 0; }
  .home-search-label { line-height: 1.6; }
  .home-filters { flex-wrap: wrap; gap: 10px; }
  .home-filters label { flex: 1 1 100px; }
  .home-result { gap: 10px; padding: 16px 4px; }
  .home-result strong { font-size: 13px; }
  .home-result small { font-size: 11px; }
  .home-result-figures { max-width: 90px; }
  .home-work { grid-template-columns: 1fr; }
  .desk-account { padding: 12px 0; margin-top: 14px; }
  .sidebar:not(.navigation-open) .desk-account { display: none; }
}
@media(max-width:760px) {
  .home-active .sidebar { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; }
  .home-active .sidebar > .wordmark { flex: 1; }
  .home-active .sidebar > .desk-nav-toggle { width: auto; margin: 0; min-height: 40px; padding: 8px 12px; gap: 12px; }
  .home-active .sidebar > .desk-search { display: none; }
  .home-active .sidebar > .desk-navigation { flex-basis: 100%; }
  .home-active .sidebar > .desk-account { flex-basis: 100%; }
}

.desk-navigation > .desk-compare-link { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; min-height: 36px; font-size: 12px; color: var(--plum); font-weight: 600; }
.desk-navigation > .desk-compare-link:hover { background: var(--soft); }
.home-heading-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.home-compare { display: inline-flex; align-items: center; gap: 14px; padding: 11px 14px; border: 1px solid var(--plum); background: var(--plum); border-radius: 5px; color: var(--surface); font-size: 12px; font-weight: 600; text-decoration: none; }
.home-compare:hover { background: #472142; }
@media(max-width:760px) {
  .home-heading-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .desk-navigation > .desk-compare-link { min-height: 44px; }
}
