/* Xamin-inspired presentation layer. Existing brand tokens and application contracts
   stay in styles.css and app.js. Layouts start with a single mobile column. */
:root { --section-space: clamp(48px, 7vw, 100px); }
body { background: var(--card); }
[hidden] { display: none !important; }
.page:focus { outline: none; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, input, select { min-height: 44px; }
input, select, .field { min-width: 0; max-width: 100%; }
input, select { font-size: 16px; }
.primary, .ghost { border-radius: 7px; padding: 12px 20px; }
.primary { box-shadow: none; }
.primary:hover { box-shadow: 0 6px 18px #23271c18; }
.eyebrow { font-size: 11px; letter-spacing: .16em; }
.eyebrow::before { content: ''; display: inline-block; width: 22px; height: 2px; margin: 0 9px 3px 0; background: var(--wheat); }
.section-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -.04em; }
.masthead { padding: 0 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.masthead-inner { max-width: 1240px; padding: 16px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.brand-logo { width: 46px; height: 46px; }
.brand h1 { font-size: 24px; }
.menu-toggle { width: 44px; height: 44px; border-radius: 7px; }
.account .ghost { background: var(--moss); color: var(--white); }
.nav-link { min-height: 44px; }
#page-home { --section-space: clamp(36px, 4vw, 64px); }
.hero { position: relative; max-width: 1240px; gap: 32px; padding: 36px 20px 44px; }
.hero-copy { position: relative; z-index: 1; }
.hero h2 { font-size: clamp(44px, 6vw, 76px); font-weight: 650; line-height: 1.06; letter-spacing: -.055em; margin: 20px 0 24px; }
.hero h2 span { font-family: var(--display); font-weight: 500; font-style: italic; }
.hero p { font-size: 17px; max-width: 490px; color: var(--ink-soft); }
.home-examples { margin: -10px 0 22px; padding: 7px 12px; border-radius: 10px; background: var(--paper-soft); color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.home-examples .home-example { display: inline-flex; align-items: center; min-height: 44px; font: inherit; color: var(--moss-deep); text-underline-offset: 3px; vertical-align: middle; }
.hero-actions { gap: 12px; }
.hero-actions button { width: 100%; }
.hero-proof { gap: 10px 18px; margin-top: 26px; font-size: 11px; }
.hero-visual { position: relative; min-width: 0; padding: 12px 4px 24px; isolation: isolate; }
.visual-orbit { position: absolute; z-index: -1; inset: -15px -30px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-soft); }
.visual-orbit::before { content: ''; position: absolute; inset: 22px; border: 1px dashed var(--line-strong); border-radius: 50%; }
.visual-orbit::after { content: ''; position: absolute; top: 6%; right: 18%; width: 17px; height: 17px; border-radius: 50%; background: var(--wheat); box-shadow: -290px 300px 0 2px var(--moss); }
.hero-preview { padding: 16px; border-radius: 12px; transform: none; box-shadow: 0 24px 60px #23271c15; }
.preview-bar { font-size: 11px; padding-bottom: 16px; }
.preview-live { font-size: 9px; }
.preview-heading { border-radius: 6px; padding: 12px; }
.preview-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.preview-stats article { display: flex; flex-direction: column; align-items: start; padding: 12px 8px; gap: 3px; border: 0; background: var(--card); border-radius: 6px; }
.preview-stats small { font-size: 8px; letter-spacing: .04em; }
.preview-stats strong { font-size: 25px; margin: 0; }
.preview-stats span { display: none; }
.preview-chart { margin-top: 20px; }
.preview-chart-heading { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--ink-soft); margin-bottom: 12px; }
.preview-chart svg { display: block; width: 100%; height: auto; }
.chart-grid { stroke: var(--line); stroke-dasharray: 3 5; }
.chart-area { fill: var(--moss); opacity: .08; }
.chart-line { stroke: var(--moss); stroke-width: 3; stroke-linejoin: round; }
.chart-secondary { stroke: var(--wheat); stroke-width: 2; stroke-linejoin: round; }
.preview-list { border: 0; padding: 0 2px; }
.preview-list > div { font-size: 11px; }
.visual-note { position: relative; margin: -2px 0 0 30px; display: flex; align-items: center; gap: 12px; width: fit-content; padding: 12px 20px; background: var(--moss-deep); color: var(--white); border-radius: 8px; box-shadow: var(--shadow-sm); }
.visual-note > span { color: #e6cd91; }
.visual-note svg { display: block; width: 30px; height: 30px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; }
.visual-note strong, .visual-note small { display: block; }
.visual-note strong { font-size: 12px; }
.visual-note small { color: #dcdfd1; font-size: 10px; margin-top: 3px; letter-spacing: .06em; }
.ticker-section { margin: 0; background: var(--white); box-shadow: none; }
.ticker-caption { max-width: 1240px; margin: auto; padding: 14px 20px 0; font-size: 10px; }
.ticker { padding-block: 16px; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.content-wrap { max-width: 1240px; padding: var(--section-space) 20px; }
.section-heading { max-width: 670px; margin: 0 auto 36px; text-align: center; }
.section-heading > p { font-size: 16px; }
.steps { gap: 16px; }
.step-card { padding: 26px 22px; border-radius: 9px; background: var(--white); }
.step-num { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); font-size: 14px; }
.step-card h3 { margin-top: 18px; font-size: 18px; font-weight: 650; }
.step-card p { line-height: 1.8; }
.video-section { width: 80%; margin: 0 auto 24px; }
.video-stage { min-width: 0; background: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.video-stage video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--ink); }
.video-fallback { position: relative; }
.video-fallback img { display: block; width: 100%; height: auto; }
.video-fallback-action { padding: 0 22px 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.video-fallback-action > span { color: var(--paper); font-size: 12px; }
.video-fallback-action .ghost { background: var(--card); }
.video-copy { max-width: 670px; margin: 0 auto 40px; }
.video-copy p { color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
@media (max-width: 700px) {
  .video-section { width: 100%; }
}
.text-action { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; text-decoration: none; font-weight: 650; border-bottom: 1px solid var(--line-strong); }
.cta-section { padding-top: 0; }
.home-cta { position: relative; overflow: hidden; margin: 0; padding: 32px 26px; border-radius: 12px; }
.home-cta p { max-width: 630px; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; }
.home-cta .primary { background: var(--paper); color: var(--moss-deep); box-shadow: none; border-color: var(--paper); }
.guide-page, .contact-page { padding-top: 48px; }
.page-intro { margin-bottom: 36px; }
.guide-card { padding: 26px; border-radius: 9px; box-shadow: none; }
.guide-card p { line-height: 1.85; }
.guide-index { border-radius: 9px; }
.guide-index a { min-height: 44px; }
.guide-card table { display: block; overflow-x: auto; }
.contact-card { border-radius: 9px; padding: 22px; box-shadow: none; }
.feedback-panel { border-radius: 12px; }
#page-market { margin: 20px 12px 48px; min-height: 650px; border-radius: 12px; box-shadow: none; }
.workspace-intro { margin: 2px 0 24px; }
.workspace-intro h2 { font-size: 30px; letter-spacing: -.035em; margin: 6px 0; }
.workspace-intro p { color: var(--ink-soft); margin: 0; font-size: 14px; }
#search-form, .inline-form { border-radius: 8px; background: var(--white); box-shadow: none; }
#search-form { padding: 18px; }
.tabs { padding: 8px; }
.tab { font-size: 13px; border-radius: 6px; }
.panel { border-radius: 9px; box-shadow: none; }
.panel h2 { font-size: 18px; padding-bottom: 14px; }
.placeholder { padding: 48px 22px; border-style: solid; border-radius: 9px; line-height: 1.8; }
.view-toggle button { min-height: 40px; }
.chip button { min-width: 32px; min-height: 36px; }
.admin-page { max-width: 1440px; padding: 36px 12px 64px; }
.admin-intro { max-width: none; padding: 0 8px; margin-bottom: 28px; }
.admin-intro .section-title { font-size: 32px; }
.admin-intro > p { font-size: 14px; }
.admin-page #admin-content { border-radius: 12px; box-shadow: none; }
.admin-sidebar { min-width: 0; background: var(--ink); }
.admin-sidebar-brand, .admin-sidebar-note { display: none; }
.admin-side-tabs { background: transparent; border: 0; padding: 10px; gap: 5px; }
.admin-side-tab { display: flex; align-items: center; gap: 12px; min-height: 46px; color: #dcdfd1; border-radius: 7px; font-weight: 500; }
.admin-side-tab:hover { color: var(--white); background: #ffffff10; }
.admin-side-tab.active { background: var(--moss); border-color: transparent; box-shadow: none; color: var(--white); }
.admin-side-tab:focus-visible { outline: 3px solid var(--wheat); }
.admin-nav-icon { flex: 0 0 18px; width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.admin-tab-content { padding: 22px 14px; }
.admin-view-header { border: 0; margin-bottom: 26px; padding: 0; }
.admin-view-header h2 { font-size: clamp(23px, 2.5vw, 32px); font-weight: 650; letter-spacing: -.035em; margin: 8px 0; }
.admin-view-header p { font-size: 14px; line-height: 1.7; }
.admin-page-stack { gap: 22px; }
.admin-page .panel { padding: 20px 16px; border-color: var(--line); }
.stat-strip.platform-stat-strip, .quality-stat-strip { grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
.stat { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); overflow: hidden; }
.stat::before { content: ''; position: absolute; left: 0; top: 20px; width: 3px; height: 28px; border-radius: 0 3px 3px 0; background: var(--moss); }
.stat:nth-child(3n)::before { background: var(--wheat); }
.stat .stat-value { font-size: 32px; line-height: 1.2; margin-bottom: 8px; overflow-wrap: anywhere; }
.stat .stat-label { display: block; font-size: 11px; letter-spacing: .035em; }
.admin-subheading { font-family: var(--body); font-size: 16px; font-weight: 600; margin-top: 28px; }
.admin-data-summary { padding: 14px; background: var(--paper-soft); border-radius: 6px; line-height: 1.8; }
.table-scroll { border: 1px solid var(--line); border-radius: 7px; margin-top: 12px; }
table.data th { background: var(--card); padding: 7px 8px; border-bottom: 1px solid var(--line); font-size: 10px; line-height: 1.2; }
table.data td { padding: 5px 8px; font-size: 13px; line-height: 1.25; }
table.data .skill-link, table.data .linklike { min-height: 0; line-height: inherit; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #55683c06; }
.table-scroll:focus-visible { outline: 3px solid var(--wheat); outline-offset: 2px; }
.admin-form-actions button, .reco-actions button { white-space: normal; }
.admin-pagination button, .export-actions .ghost { min-height: 44px; }
.admin-pagination button { min-width: 40px; }
.site-footer { padding: 30px 20px; background: var(--paper); text-align: left; }
.footer-inner { display: flex; flex-direction: column; gap: 20px; max-width: 1200px; margin: 0 auto 22px; }
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 22px; font-weight: 700; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 13px; }
.site-footer > p { max-width: 1200px; margin: auto; font-size: 12px; line-height: 1.8; border-top: 1px solid var(--line); padding-top: 20px; }
dialog {
  width: calc(100% - 32px); max-width: 480px; margin: auto;
  max-height: calc(100dvh - 32px); overflow-y: auto;
  border-radius: 12px; padding: 26px; box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: #23271c88; backdrop-filter: blur(3px); }
dialog h2 { font-family: var(--body); letter-spacing: -.03em; }
dialog form > .field + .field { margin-top: 18px; }
dialog .dialog-actions { flex-wrap: wrap; gap: 10px; margin-top: 22px; }
#login-dialog .dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#login-dialog .dialog-actions button { padding-inline: 12px; }
#login-dialog #btn-login { grid-column: 1 / -1; }
@media (min-width: 560px) {
  #login-dialog .dialog-actions { display: flex; }
  .hero-actions button { width: auto; }
  .hero-preview { padding: 22px; }
  .preview-stats span { display: block; font-size: 9px; }
  .preview-stats small { font-size: 9px; }
  .stat-strip.platform-stat-strip, .quality-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tab-content { padding: 28px; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 861px) {
  .hero { align-items: start; gap: 52px; padding-block: 40px 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-preview { transform: rotate(-2deg); }
  .visual-note { margin: -4px 0 0 40px; }
  .hero-actions button { padding-inline: 16px; }
  .hero-proof { gap: 10px 14px; }
  .home-cta { padding: 48px; }
  .admin-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .admin-sidebar-brand { display: flex; gap: 10px; align-items: center; padding: 28px 20px; border-bottom: 1px solid #ffffff15; color: var(--white); font-weight: 650; }
  .admin-sidebar-brand img { border-radius: 50%; }
  .admin-sidebar-brand small { display: block; color: #bdc6a8; font-size: 10px; font-weight: 400; margin-top: 3px; }
  .admin-side-tabs { border: 0; padding: 22px 12px; }
  .admin-sidebar-note { display: block; margin: 16px 22px; padding-top: 20px; border-top: 1px solid #ffffff15; color: #bdc6a8; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
  .admin-page .panel { padding: 24px; }
  #page-market .tabs { padding: 26px 12px; }
  #page-market .tabs-label { margin-bottom: 12px; }
  #page-market .tab { padding: 13px 10px; }
  .guide-index { top: 24px; }
}
@media (min-width: 1100px) {
  .hero { gap: 72px; padding-block: 48px 52px; }
  .hero-visual { padding-inline: 12px; }
  .hero-proof { font-size: 12px; }
  .step-card { padding: 30px 24px; }
  .stat-strip.platform-stat-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .quality-stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-page { padding-inline: 24px; }
}
@media (min-width: 1404px) { #page-market { margin-inline: auto; } }
/* Preserve a compact navigation menu until all account and navigation items fit. */
@media (min-width: 861px) and (max-width: 1099px) {
  .masthead-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .menu-toggle { display: flex; }
  .main-nav, .account { display: none; }
  .masthead-inner.menu-open .main-nav { display: flex; grid-column: 1 / -1; flex-direction: column; align-items: stretch; }
  .masthead-inner.menu-open .account { display: flex; grid-column: 1 / -1; }
  .nav-link { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .ticker { overflow-x: auto; }
}
.video-copy .video-meta { font-size: 11px; letter-spacing: .02em; color: var(--ink-soft); }
@media (min-width: 1100px) {
  .account { max-width: 250px; }
  .account > span { max-width: 140px; font-size: 11px; }
}
@media (min-width: 640px) and (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { align-items: center; }
}
.ticker-freshness { display: block; margin-top: 6px; text-transform: none; letter-spacing: .02em; }
.ticker-track > span[aria-hidden="true"] { display: contents; }
.ticker-track:has(> .ticker-item:only-child) { animation: none; white-space: normal; padding: 0 20px; }

/* Market report and saved workspace */
#view-trends .panel, #view-saved .panel { background: var(--white); }
.report-heading, .saved-heading { margin: 4px 0 18px; }
.report-heading h2, .saved-heading h2 { margin: 4px 0 2px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.04em; line-height: 1.15; }
.report-heading p, .saved-heading p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.market-stat-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
.market-stat { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.market-stat > div { display: flex; flex-direction: column; min-width: 0; }
.market-stat strong { color: var(--ink); font-size: clamp(24px, 3vw, 32px); font-weight: 750; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.market-stat div span { margin-top: 5px; color: var(--ink-soft); font-size: 12px; }
.stat-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: var(--paper-soft); color: var(--moss-deep); font-size: 22px; line-height: 1; }
.stat-icon svg { display: block; width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; }
.stat-icon.rising { background: #edf1e6; color: var(--moss-deep); }
.stat-icon.declining { background: #f8ece8; color: var(--madder); }
.report-top-grid, .report-stack { display: grid; gap: 14px; }
.report-top-grid { grid-template-columns: minmax(0, 1fr); }
.report-top-grid .panel, .report-stack .panel { margin: 0; min-width: 0; }
.report-top-grid .panel { padding: 18px; }
.report-stack { margin-top: 14px; }
.report-demand-panel .sub { margin-bottom: 16px; }
.demand-bars { list-style: none; padding: 0; margin: 0; }
.demand-bar-row { display: grid; grid-template-columns: minmax(95px, 1fr) minmax(80px, 1.2fr) 44px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.demand-bar-row:last-child { border-bottom: 0; }
.demand-bar-row .skill-link { text-align: left; font-size: 13px; font-weight: 650; line-height: 1.25; }
.demand-bar-row strong { font-size: 12px; font-family: var(--mono); text-align: right; }
.demand-track { display: block; height: 14px; border-radius: 4px; overflow: hidden; background: var(--paper); }
.demand-track > span { display: block; height: 100%; border-radius: inherit; background: var(--moss); }
.demand-bar-row:nth-child(2) .demand-track > span { background: #82916b; }
.demand-bar-row:nth-child(3) .demand-track > span { background: #a5b18d; }
.demand-bar-row:nth-child(n+4) .demand-track > span { background: #c3cbb0; }
.skills-table-heading { display: flex; flex-direction: column; gap: 12px; }
.skill-search-label { display: flex; flex-direction: column; gap: 4px; color: var(--ink-soft); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.skill-search-label input { width: 100%; min-width: 0; background: var(--card); font-weight: 400; text-transform: none; letter-spacing: 0; }
.skills-demand-panel .table-scroll { margin-top: 6px; }
.skills-demand-panel .table-help { margin: 10px 0 0; }
.report-actions { display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; padding: 4px 0; }
.report-actions button { width: 100%; }
#view-trends .almanac-panel { padding: 18px; }
#view-trends .mover-table-grid .table-scroll { border: 0; }
#view-trends .mover-table-grid section { min-width: 0; }
#view-trends .mover-table-grid h3 { padding: 8px 10px; border-radius: 7px; background: var(--paper-soft); }
.saved-stat-grid { grid-template-columns: 1fr; }
.saved-grid { display: grid; gap: 14px; }
.saved-section { margin: 0; padding: 18px; }
.saved-list { display: grid; gap: 9px; }
.saved-item { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); min-width: 0; }
.saved-item-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; background: var(--paper-deep); color: var(--moss-deep); font-size: 18px; }
.saved-item-body { min-width: 0; flex: 1; }
.saved-item-body > button { min-height: 30px; text-align: left; font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.saved-item-body p { margin: 2px 0 0; color: var(--ink-soft); font-size: 12px; overflow-wrap: anywhere; }
.saved-type { display: block; color: var(--moss-deep); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.saved-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; color: var(--ink-soft); font-size: 11px; white-space: nowrap; }
.saved-item-actions button { min-height: 30px; font-size: 11px; }
.saved-empty { margin: 0; padding: 22px; border-radius: 10px; background: var(--paper-soft); color: var(--ink-soft); font-size: 13px; line-height: 1.5; }

/* Dedicated skill view */
#page-skill { background: var(--paper-soft); }
#page-skill .skill-page-main { max-width: 1160px; margin: 0 auto; padding: 24px 16px 60px; }
.skill-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 14px; text-decoration: none; font-weight: 650; }
.skill-page-heading { margin-bottom: 18px; }
.skill-page-heading h2 { margin: 4px 0 2px; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.05em; }
.skill-page-heading p { margin: 0; color: var(--ink-soft); }
.skill-scope { margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.skill-scope-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 16px; align-items: baseline; }
.skill-scope-title h3 { margin: 0 0 12px; font-size: 17px; }
.skill-scope-title > span { color: var(--ink-soft); font-size: 12px; }
.skill-metric-grid { display: grid; gap: 8px; }
.skill-metric-grid > div { display: flex; flex-direction: column; padding: 14px; border-radius: 9px; background: var(--paper-soft); }
.skill-metric-grid strong { font-size: 22px; line-height: 1.2; }
.skill-metric-grid span { margin-top: 5px; color: var(--ink-soft); font-size: 11px; }
.skill-overview-grid { display: grid; gap: 14px; }
.skill-overview-grid .panel { margin: 0; padding: 18px; background: var(--white); }
.skill-overview-grid h3 { margin: 18px 0 5px; font-size: 14px; }
.skill-overview-grid h3 + p { margin: 0; font-size: 13px; }
.skill-category { margin: -8px 0 14px; font-weight: 700; }
.related-skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.related-skill-list .skill-link { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; background: var(--paper-soft); }
.skill-sector-list { list-style: none; margin: 0; padding: 0; }
.skill-sector-list li { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(80px, 1.2fr) 42px; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.skill-sector-list strong { font-family: var(--mono); font-size: 11px; text-align: right; }
.example-postings { margin: 0; padding-left: 20px; }
.example-postings li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }

@media (min-width: 560px) {
  .market-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-actions { flex-direction: row; }
  .report-actions button { width: auto; }
  .skills-table-heading { flex-direction: row; align-items: start; justify-content: space-between; }
  .skill-search-label { width: min(240px, 40%); }
}
@media (min-width: 861px) {
  #page-market .tabs { background: var(--white); }
  #page-market .tab { min-height: 48px; display: flex; align-items: center; gap: 7px; color: var(--ink-soft); }
  #page-market .tab:hover { background: var(--paper-soft); color: var(--moss-deep); }
  #page-market .tab.active { background: #f7eac6; color: var(--ink); }
  #page-market .tab.active > span { color: var(--moss-deep); }
  .skill-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1120px) {
  #view-trends .market-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .report-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saved-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .saved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saved-grid .saved-section:first-child { grid-column: 1 / -1; }
}

/* Compact report lists and recommendations */
#view-trends .movers-heading { padding-bottom: 8px; margin-bottom: 6px; }
#view-trends .mover-table-grid { gap: 10px; }
#view-trends .mover-table-grid h3 { margin: 3px 0 5px; padding: 5px 8px; }
.movers-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 14px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.movers-footer .sub { margin: 0; }
.movers-footer .linklike { font-size: 13px; font-weight: 700; text-decoration: none; }
#view-trends .mover-table th, #skills-demand-table th { padding: 7px 8px; line-height: 1.2; }
#view-trends .mover-table td, #skills-demand-table td { padding: 5px 8px; line-height: 1.25; }
#view-trends .mover-table .skill-link, #skills-demand-table .skill-link,
.report-detail-table .skill-link, .demand-bar-row .skill-link, .reco-card .skill-link { min-height: 0; }
.demand-bar-row { padding: 5px 0; gap: 8px; }
.report-demand-panel .sub { margin-bottom: 8px; }
.skills-table-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; margin-top: 8px; }
.skills-table-footer .sub { margin: 0; }
.skills-table-footer .linklike { flex: 0 0 auto; font-weight: 700; text-decoration: none; }
.open-trend-table { display: inline-flex; align-items: center; margin-top: 8px; font-size: 13px; font-weight: 700; text-decoration: none; }
#view-recommendations .reco-card { padding: 10px 14px; margin-bottom: 7px; border-radius: 9px; }
#view-recommendations .reco-head { gap: 5px 8px; }
#view-recommendations .reco-rationale { margin: 4px 0; line-height: 1.4; }
#view-recommendations .reco-meta { margin: 4px 0 0; line-height: 1.35; }
#view-recommendations .score-bars { margin-top: 5px; }
#view-recommendations .reco-actions { margin-top: 5px; gap: 6px; }
#view-recommendations .reco-card .caveat { margin: 6px 0; padding: 6px 9px; }

/* Full report data pages */
#page-report-detail { background: var(--paper-soft); }
#page-report-detail .report-detail-main { max-width: 1160px; margin: 0 auto; padding: 24px 16px 60px; }
.report-detail-heading { margin-bottom: 18px; }
.report-detail-heading h2 { margin: 4px 0 2px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; }
.report-detail-heading p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.report-detail-panel { padding: 18px; background: var(--white); }
.report-detail-panel .table-scroll { margin-top: 8px; }
.report-detail-table th { padding: 7px 8px; }
.report-detail-table td { padding: 5px 8px; }
.full-movers-grid section { min-width: 0; }
.report-detail-panel .full-movers-grid { gap: 10px; }
.report-detail-panel .full-movers-grid .table-scroll { margin-top: 0; }
.full-movers-grid h3 { margin: 3px 0 5px; padding: 5px 8px; border-radius: 7px; background: var(--paper-soft); }

/* Compact skill transition in Switch roles */
.skill-transition-panel .almanac h3 { margin: 3px 0 5px; line-height: 1.25; }
.skill-transition-panel .skill-transition-gap-heading { margin: 10px 0 5px; font-family: var(--display); font-size: 15px; line-height: 1.25; }
.skill-transition-panel > ul { list-style: none; margin: 0; padding: 0; }
.skill-transition-panel .almanac li, .skill-transition-panel > ul li {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 2px 8px; padding: 3px 0;
  border-bottom: 1px dotted var(--line); font-size: 13px; line-height: 1.25;
}
.skill-transition-panel .skill-link { min-height: 0; line-height: 1.25; }
.skill-transition-panel .delta { font-size: 11px; line-height: 1.25; }
.skill-transition-panel p { margin: 4px 0; }
@media (min-width: 720px) {
  .skill-transition-panel .almanac > div { padding-inline: 8px; }
}
