@layer reset, base, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, ul, ol { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  button:disabled { cursor: not-allowed; opacity: .5; }
  a { color: inherit; }
  [hidden] { display: none !important; }
  svg { display: block; flex-shrink: 0; }
}
@layer base {
  :root {
    color-scheme: light;
    --ink: #123d32;
    --ink-hover: #205343;
    --muted: #58635e;
    --lime: #dfedab;
    --ground: #fbfcf9;
    --surface: #f1f3ee;
    --line: #dce2d8;
    --white: #fff;
    --danger: #923c29;
    --danger-bg: #fff0e9;
    --radius: 14px;
    --space: 8px;
    --easing: cubic-bezier(.16, 1, .3, 1);
    font-family: 'Segoe UI Variable Text', 'Segoe UI', Arial, sans-serif;
    font-synthesis: none;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--ground);
  }
  body { min-width: 320px; min-height: 100dvh; display: flex; flex-direction: column; }
  h1, h2, h3, .brand { font-family: 'Segoe UI Variable Display', 'Segoe UI', Arial, sans-serif; line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
  h1 { font-size: clamp(2.5rem, 4.5vw, 4.25rem); font-weight: 750; }
  h2 { font-size: 1.65rem; font-weight: 700; }
  h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; }
  p { text-wrap: pretty; }
  button, input, select, textarea, a { touch-action: manipulation; }
  button { color: inherit; }
  a { text-underline-offset: 4px; }
  :focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
  input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  ::selection { color: var(--ink); background: var(--lime); }
  .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; }
  .skip-link { position: fixed; left: 16px; top: -100px; padding: 12px 20px; background: var(--ink); color: white; z-index: 100; border-radius: 8px; }
  .skip-link:focus { top: 12px; }
  .icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  #main { width: min(1200px, calc(100% - 112px)); margin: 0 auto; padding: 58px 0 48px; flex: 1; }
  #main:focus { outline: none; }
  .microcopy, .subtle-label { font-size: .8125rem; color: var(--muted); line-height: 1.55; }
  .title-dot { color: inherit; }
  .button { min-height: 48px; padding: 12px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-size: .9375rem; font-weight: 600; background: var(--ink); color: var(--white); border: 1px solid transparent; border-radius: 10px; text-decoration: none; transition: background 160ms ease, box-shadow 160ms ease; }
  .button:hover { background: var(--ink-hover); }
  .button:focus-visible { outline-color: var(--ink); }
  .button.secondary { color: var(--ink); border-color: var(--ink); background: transparent; }
  .button.secondary:hover { background: var(--surface); }
  .text-button { padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; background: none; border: none; text-decoration: underline; text-underline-offset: 5px; font-size: .9375rem; }
  .text-button:hover, .quiet-link:hover { color: var(--ink-hover); }
  .quiet-link { font-size: .875rem; }
  .danger { color: var(--danger); }
  .button-row { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
}
@layer components {
  .explore-picker, .explore-handoff { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px; background: var(--surface); border-radius: 20px; }
  .explore-picker h2, .explore-handoff h2 { margin-bottom: 8px; }
  .explore-picker p, .explore-handoff p { margin: 0; max-width: 62ch; }
  .explore-picker .field { min-width: 220px; margin: 0; }
  .explore-disclaimer { margin: 16px 0 36px; max-width: 80ch; }
  .explore-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin: 24px 0 36px; }
  .explore-role { border-top: 1px solid var(--line); padding-top: 24px; }
  .explore-role h3 { font-size: 1.65rem; margin-bottom: 12px; }
  .explore-role p { margin-bottom: 16px; max-width: 55ch; }
  .explore-role .button { margin-top: 8px; }
  .opportunity-route { list-style: none; display: grid; gap: 12px; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
  .opportunity-route li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
  .route-number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: .75rem; font-weight: 650; }
  .opportunity-route strong { display: block; font-size: .875rem; }
  .opportunity-route .quiet-link { min-height: 32px; margin-top: 2px; font-size: .875rem; }
  .opportunity-route .route-capture { min-height: 44px; margin-top: 2px; font-size: .875rem; }
  .opportunity-route .microcopy { margin: 2px 0 0; }
  .explore-handoff { background: var(--lime); }
  .explore-handoff .button { flex-shrink: 0; }
  .explore-companies { margin-top: 36px; max-width: 80ch; }
  .explore-companies summary { cursor: pointer; padding-block: 12px; font-weight: 650; }
  .explore-companies p { margin: 12px 0; }
  .explore-companies ul { list-style: none; padding: 0; }
  .explore-companies li { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .explore-entry { margin-top: 24px; }
  @media (max-width: 900px) { .site-header { flex-wrap: wrap; } #nav { order: 3; width: 100%; min-height: 60px; justify-content: space-between; } }
  @media (max-width: 600px) {
    .explore-picker, .explore-handoff { align-items: stretch; flex-direction: column; padding: 24px; gap: 20px; }
    .explore-picker .field { min-width: 0; }
    .explore-roles { grid-template-columns: 1fr; gap: 28px; }
    #nav { flex-wrap: wrap; height: auto; justify-content: flex-start; gap: 0 20px; }
    #nav a { min-height: 48px; }
  }
  .site-header { width: 100%; min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 44px; background: #f2f4ef; }
  .brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.5rem; font-weight: 750; white-space: nowrap; }
  .brand svg { width: 36px; height: 36px; }
  .brand > span { position: relative; }
  .pilot { display: block; font-family: 'Segoe UI', sans-serif; font-size: .55rem; font-weight: 600; letter-spacing: .14em; margin-top: 5px; color: var(--muted); }
  #nav { display: flex; align-self: stretch; gap: 34px; }
  #nav a { position: relative; align-content: center; text-decoration: none; color: #45574d; font-size: .9375rem; padding: 6px 2px; }
  #nav a:hover { color: var(--ink); }
  #nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
  #nav a[aria-current="page"]::after { content: ''; height: 3px; position: absolute; bottom: 20px; left: 0; right: 0; background: var(--ink); border-radius: 2px; }
  .profile-link { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
  .profile-link svg { width: 29px; height: 29px; stroke-width: 1.25; stroke: currentColor; fill: none; }
  .profile-link[aria-current="page"] { text-decoration: underline; }
  .page-heading { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
  .date-line { font-size: .8125rem; color: var(--muted); margin-bottom: 16px; }
  .date-line::first-letter { text-transform: uppercase; }
  .lead { font-size: 1.125rem; color: #43544a; margin-top: 16px; max-width: 64ch; }
  .heading-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 14px; flex-shrink: 0; padding-top: 16px; }
  .home-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
  .home-tools .quiet-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
  .demo-badge { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; background: var(--surface); border-radius: 6px; padding: 7px 10px; font-size: .75rem; color: #49584e; }
  .demo-badge button { background: none; border: none; text-decoration: underline; padding: 4px; color: var(--ink); }
  .small-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
  .today-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; }
  .focus-card { background: var(--lime); border-radius: 24px; padding: 34px; display: flex; gap: 24px; align-items: flex-start; position: relative; }
  .focus-content { min-width: 0; flex: 1; }
  .eyebrow { display: flex; align-items: center; gap: 10px; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; margin-bottom: 22px; }
  .square-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: currentColor; }
  .focus-card h2 { font-size: clamp(1.8rem, 2.55vw, 2.45rem); line-height: 1.14; letter-spacing: -.035em; overflow-wrap: anywhere; }
  .focus-role { margin-top: 16px; font-size: 1rem; color: #2f4e34; overflow-wrap: anywhere; }
  .focus-date { margin-top: 16px; display: flex; align-items: center; gap: 9px; font-size: .9375rem; color: #2f4e34; }
  .focus-date .icon { width: 18px; height: 18px; }
  .focus-actions { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
  .focus-actions .text-button { font-size: .875rem; }
  .date-stamp { flex-shrink: 0; min-width: 66px; padding-left: 22px; border-left: 1px solid #9db877; margin-top: 22px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
  .date-stamp span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
  .date-stamp b { font-size: 3.75rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.15; margin: 4px 0; }
  .next-panel { padding: 30px; border-radius: 24px; background: var(--surface); min-width: 0; }
  .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
  .task-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 24px 0; border: none; background: none; border-bottom: 1px solid var(--line); min-height: 92px; }
  .task-row:last-child { border-bottom: none; padding-bottom: 4px; }
  .task-row:hover strong { text-decoration: underline; text-underline-offset: 4px; }
  .row-copy { display: flex; flex-direction: column; min-width: 0; }
  .row-copy strong { font-size: 1.05rem; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
  .row-copy > span { color: var(--muted); font-size: .875rem; margin-top: 4px; overflow-wrap: anywhere; }
  .row-copy small { color: var(--muted); font-size: .8125rem; margin-top: 10px; }
  .panel-empty { color: var(--muted); line-height: 1.7; padding-top: 40px; }
  .week-strip { display: flex; gap: 26px; align-items: center; padding: 26px 0; border-block: 1px solid var(--line); margin-top: 36px; }
  .week-strip h2 { font-size: 1.0625rem; letter-spacing: -.02em; }
  .week-strip p { padding-left: 26px; border-left: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
  .week-strip a { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: .9375rem; min-height: 44px; }
  .week-strip a:hover { text-decoration: underline; }
  .home-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 28px; }
  .home-bottom > p:first-child { font-size: 1.0625rem; }
  .home-bottom .microcopy { text-align: right; }
  .welcome-card { align-items: center; justify-content: space-between; padding: 44px; min-height: 340px; }
  .welcome-card h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
  .welcome-card > div:first-child { max-width: 660px; }
  .welcome-card p:not(.eyebrow) { max-width: 53ch; margin-top: 20px; color: #2f4e34; }
  .welcome-mark { font-size: 9rem; font-weight: 300; line-height: 1; padding: 0 24px; }
  .onboarding-note { margin: 28px 0 0; display: flex; gap: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
  .onboarding-note strong { flex-shrink: 0; font-size: .9375rem; font-weight: 600; }
  .onboarding-note p { color: var(--muted); font-size: .875rem; max-width: 65ch; }
  .attention-line { display: flex; gap: 12px; align-items: center; margin: -12px 0 24px; color: var(--danger); background: var(--danger-bg); padding: 12px 16px; border-radius: 8px; font-size: .875rem; }
  .overdue { color: var(--danger) !important; }
  .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 44px; padding: 20px 0; color: var(--muted); font-size: .75rem; border-top: 1px solid var(--line); }
  .site-footer > div { display: flex; align-items: center; gap: 24px; }
  .site-footer .text-button { font-size: .75rem; text-decoration: none; }
  .site-footer .text-button:hover { text-decoration: underline; }
  .system-notice { background: var(--danger-bg); color: #713322; border-bottom: 1px solid #e8c7b8; padding: 16px 44px; font-size: .9375rem; }
  .toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
  .search-field { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 440px; min-width: 240px; border: 1px solid #7c8979; border-radius: 10px; background: white; padding: 0 14px; }
  .search-field input { border: none; background: none; padding: 12px 0; min-width: 0; width: 100%; min-height: 48px; color: var(--ink); }
  input::placeholder, textarea::placeholder { color: #687368; opacity: 1; }
  .filter select { border: 1px solid #7c8979; background: transparent; padding: 12px; border-radius: 10px; min-height: 48px; color: var(--ink); }
  .view-switch { display: flex; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
  .view-switch button { min-height: 38px; padding: 8px 16px; border: none; background: transparent; border-radius: 7px; font-size: .875rem; }
  .view-switch button[aria-pressed="true"] { background: var(--ink); color: white; }
  .results-count { font-size: .8125rem; margin-bottom: 12px; color: var(--muted); }
  .application-list { border-top: 1px solid var(--line); }
  .application-row { display: grid; grid-template-columns: 44px minmax(0, 1.3fr) 120px minmax(0, 1fr) 20px; width: 100%; gap: 20px; align-items: center; border: none; background: none; border-bottom: 1px solid var(--line); text-align: left; padding: 24px 12px; }
  .application-row:hover { background: var(--surface); }
  .company-monogram { display: grid; place-items: center; width: 42px; height: 46px; border-radius: 9px; background: #e4e9de; font-size: 1.125rem; font-weight: 600; }
  .application-main { display: flex; flex-direction: column; min-width: 0; }
  .application-main strong { font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
  .application-main > span { font-size: .875rem; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
  .application-next { font-size: .875rem; overflow-wrap: anywhere; }
  .application-next small { display: block; color: var(--muted); font-size: .75rem; margin-top: 5px; }
  .stage-badge { display: inline-flex; align-items: center; justify-content: center; justify-self: start; padding: 5px 9px; border-radius: 6px; font-size: .75rem; font-weight: 600; background: #e7ebe4; color: #3c4e40; }
  .stage-entrevista { background: #e6edc6; color: #3d502b; }
  .stage-enviada { background: #e2ece8; color: #355449; }
  .stage-oferta { background: #dcebc8; color: #355121; }
  .stage-cerrada { background: #ece9e3; color: #645d4f; }
  .empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px 64px; }
  .empty-glyph { font-size: 3.5rem; margin-bottom: 14px; color: #4c654d; }
  .empty-state h2 { font-size: 1.65rem; }
  .empty-state p { max-width: 50ch; margin: 16px 0 26px; color: var(--muted); }
  .board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
  .board-column { min-width: 0; background: var(--surface); border-radius: 12px; padding: 14px; }
  .board-column h2 { font-size: .9375rem; display: flex; justify-content: space-between; margin-bottom: 18px; letter-spacing: -.02em; }
  .board-column h2 span { font-size: .8125rem; color: var(--muted); }
  .board-card { display: block; padding: 16px 0; text-align: left; width: 100%; background: none; border: none; border-top: 1px solid #d3ddcf; }
  .board-card > * { display: block; overflow-wrap: anywhere; }
  .board-card strong { font-size: .9375rem; font-weight: 650; }
  .board-card span { font-size: .8125rem; color: var(--muted); margin-top: 8px; }
  .board-card small { font-size: .75rem; margin-top: 20px; }
  .board-card:hover strong { text-decoration: underline; }
  .board-empty { color: var(--muted); font-size: .75rem; padding: 16px 0; }
  .agenda { max-width: 820px; }
  .agenda > section { margin-bottom: 36px; }
  .agenda h2 { padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 1.25rem; display: flex; gap: 12px; align-items: center; }
  .agenda h2 span { font-size: .875rem; color: var(--muted); }
  .agenda .task-row { padding: 20px 0; }
  .contacts-list { border-top: 1px solid var(--line); }
  .contact-row { display: flex; gap: 20px; width: 100%; padding: 24px 10px; align-items: center; text-align: left; background: none; border: none; border-bottom: 1px solid var(--line); }
  .contact-row:hover { background: var(--surface); }
  .contact-avatar { width: 48px; height: 48px; background: #e6ecd9; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; font-weight: 650; }
  .contact-row > span:nth-child(2) { min-width: 0; }
  .contact-row strong { display: block; overflow-wrap: anywhere; }
  .contact-row small { display: block; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
  .contact-last { font-size: .8125rem; margin-left: auto; color: var(--muted); }
  .messages-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 64px; }
  .message-settings h2 { margin-bottom: 28px; }
  .message-settings .button { width: 100%; margin-top: 8px; }
  .message-settings .microcopy { margin: 18px 0; }
  .message-output { background: var(--surface); padding: 28px; border-radius: 20px; min-width: 0; }
  .message-output .section-heading { margin-bottom: 24px; }
  .message-output textarea { min-height: 340px; }
  .message-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
  .message-footer .button { flex-shrink: 0; }
  .message-output #copy-status { margin-top: 12px; }
  .profile-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .privacy-panel { border-radius: 20px; padding: 30px; background: var(--surface); }
  .privacy-panel h2 { font-size: 1.8rem; margin-bottom: 20px; }
  .privacy-panel > p:not(.eyebrow) { color: var(--muted); font-size: .875rem; margin-bottom: 22px; }
  .privacy-panel .button, .privacy-panel .text-button { display: flex; width: fit-content; margin-top: 10px; }
  .privacy-panel hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
  #profile-saved { font-size: .875rem; margin-left: 16px; }
  .field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
  .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; min-width: 0; }
  .field > span { font-size: .875rem; font-weight: 600; }
  .required-label { font-size: .6875rem; font-weight: 400; color: var(--muted); margin-left: 5px; }
  .field input, .field select, .field textarea { border: 1px solid #7c8979; border-radius: 8px; padding: 12px; background: var(--white); min-height: 48px; width: 100%; color: var(--ink); min-width: 0; font-size: .9375rem; }
  .field input[type="date"], .field input[type="time"] { min-width: 0; appearance: none; }
  .field textarea { resize: vertical; line-height: 1.6; }
  .field small { color: var(--muted); font-size: .75rem; }
  .form-error { color: #7d2f1d; background: var(--danger-bg); border-radius: 8px; padding: 14px 16px; margin-bottom: 22px; font-size: .875rem; }
  .drawer { position: fixed; inset: 0 0 0 auto; margin: 0; border: none; width: min(600px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: 0; color: var(--ink); background: var(--ground); box-shadow: -12px 0 48px #102d2520; }
  dialog::backdrop { background: #0e271e55; }
  .drawer[open] { animation: reveal-panel 280ms var(--easing); }
  @keyframes reveal-panel { from { clip-path: inset(0 0 0 10%); transform: translateX(28px); } to { clip-path: inset(0); transform: translateX(0); } }
  #drawer-content { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 32px 32px; }
  .drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
  .drawer-header h2 { font-size: 1.75rem; margin-top: 8px; overflow-wrap: anywhere; }
  .icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: none; border-radius: 50%; flex-shrink: 0; }
  .icon-button:hover { background: var(--surface); }
  .form-intro { color: var(--muted); font-size: .9375rem; margin-bottom: 26px; }
  .form-section { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 6px; }
  .form-section h3 { margin-bottom: 22px; }
  .extra-fields { border-top: 1px solid var(--line); margin-top: 6px; }
  .extra-fields summary { cursor: pointer; padding: 20px 0; font-size: .9375rem; font-weight: 600; }
  .extra-fields summary span { font-size: .75rem; color: var(--muted); font-weight: 400; margin-left: 10px; }
  .extra-fields[open] summary { margin-bottom: 10px; }
  .form-actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
  .detail-company { font-size: 1.125rem; overflow-wrap: anywhere; }
  .detail-meta { display: flex; gap: 16px; align-items: center; margin: 16px 0 28px; font-size: .8125rem; color: var(--muted); }
  .detail-next { background: var(--lime); border-radius: 16px; padding: 24px; margin: 0 0 28px; }
  .detail-next .eyebrow { margin-bottom: 12px; }
  .detail-next h3 { font-size: 1.5rem; overflow-wrap: anywhere; }
  .detail-next p:not(.eyebrow) { margin-top: 10px; color: #345237; font-size: .9375rem; }
  .detail-next .button { margin-top: 24px; font-size: .875rem; }
  .detail-route { padding: 18px 0 4px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
  .detail-route > p:not(.subtle-label) { margin: 6px 0 14px; max-width: 58ch; color: var(--muted); font-size: .9375rem; }
  .detail-route .detail-actions { margin-bottom: 16px; }
  .catalog-role-cue { padding: 12px 14px; border-radius: 10px; background: var(--surface); color: var(--ink); }
  .preparation { margin-bottom: 26px; }
  .preparation .microcopy { margin: 10px 0 18px; }
  .check-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 48px; font-size: .9375rem; cursor: pointer; }
  .check-row input { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; }
  .check-row:has(input:checked) span { text-decoration: line-through; color: var(--muted); }
  .detail-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
  .detail-section { padding-top: 24px; border-top: 1px solid var(--line); margin-bottom: 24px; }
  .detail-section h3 { margin-bottom: 14px; }
  .contact-inline { border: none; background: none; display: flex; flex-direction: column; gap: 4px; text-align: left; min-height: 44px; padding: 0; }
  .contact-inline span { color: var(--muted); font-size: .875rem; }
  .external-link { display: block; padding: 10px 0; margin-bottom: 24px; }
  .notes-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9375rem; color: var(--muted); }
  .history { list-style: none; padding: 0; }
  .history li { display: flex; gap: 14px; margin: 14px 0; font-size: .8125rem; }
  .history time { flex-shrink: 0; color: var(--muted); }
  .history span { overflow-wrap: anywhere; }
  .confirm { width: min(450px, calc(100% - 32px)); border: none; padding: 32px; border-radius: 20px; color: var(--ink); background: var(--ground); }
  .confirm h2 { font-size: 1.5rem; }
  .confirm p { margin-top: 16px; color: var(--muted); font-size: .9375rem; }
  .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ink); color: white; border-radius: 12px; box-shadow: 0 6px 22px #123d3226; z-index: 20; width: max-content; max-width: calc(100% - 32px); font-size: .875rem; }
  .toast button { background: none; border: none; color: var(--lime); text-decoration: underline; min-height: 36px; }
  .toast .toast-close { font-size: 1.25rem; color: white; text-decoration: none; padding: 0 8px; }
}
@layer responsive {
  @media (min-width: 1101px) {
    #main[data-view="hoy"] h1 { font-size: clamp(4.25rem, 5.5vw, 5rem); }
    #main[data-view="hoy"] .lead { font-size: 1.25rem; }
    #main[data-view="hoy"] .focus-card h2 { font-size: 2.625rem; }
    #main[data-view="hoy"] .focus-role { font-size: 1.125rem; }
    #main[data-view="hoy"] .focus-actions .button { font-size: 1.0625rem; }
  }
  @media (min-width: 1500px) { #main { padding-top: 72px; } .focus-card { padding: 40px; min-height: 330px; } }
  @media (max-width: 1100px) {
    .site-header { padding: 0 28px; gap: 20px; }
    #nav { gap: 22px; }
    .brand { font-size: 1.3rem; }
    .profile-link span { display: none; }
    #main { width: calc(100% - 64px); }
    .focus-card { padding: 28px; }
    .date-stamp { min-width: 54px; padding-left: 16px; }
    .date-stamp b { font-size: 3rem; }
    .focus-actions { gap: 12px; }
    .next-panel { padding: 26px; }
    .profile-layout, .messages-layout { gap: 32px; }
    .messages-layout { grid-template-columns: 280px minmax(0, 1fr); }
    .application-row { gap: 14px; grid-template-columns: 42px minmax(0, 1.3fr) 96px minmax(0, 1fr) 18px; }
    .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (max-width: 800px) {
    .site-header { flex-wrap: wrap; gap: 0 16px; padding: 20px 24px 0; min-height: 126px; }
    .brand { font-size: 1.4rem; }
    .profile-link { margin-left: auto; }
    .profile-link span { display: inline; }
    #nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; height: 60px; }
    #nav a { font-size: .875rem; }
    #nav a[aria-current="page"]::after { bottom: 5px; }
    #main { width: calc(100% - 48px); padding-top: 32px; }
    .page-heading { align-items: flex-start; }
    .heading-actions { padding-top: 8px; }
    .heading-actions .button { font-size: .8125rem; padding-inline: 12px; gap: 8px; }
    .today-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .focus-card h2 { font-size: 2.1rem; }
    .focus-card { min-height: 290px; }
    .date-stamp { margin-top: 24px; min-width: 76px; }
    .date-stamp b { font-size: 4rem; }
    .next-panel { background: none; padding: 0; border-radius: 0; }
    .task-row { padding: 20px 0; min-height: 88px; }
    .task-row:last-child { padding-bottom: 16px; }
    .row-copy small { margin-top: 6px; }
    .week-strip { margin-top: 20px; flex-wrap: wrap; gap: 8px 20px; }
    .week-strip p { border: none; padding-left: 0; font-size: .8125rem; }
    .home-bottom { margin-top: 24px; }
    .site-footer { margin-inline: 24px; }
    .welcome-card { padding: 32px; }
    .welcome-mark { display: none; }
    .onboarding-note { flex-direction: column; gap: 8px; }
    .profile-layout { grid-template-columns: 1fr; }
    .messages-layout { grid-template-columns: 1fr; gap: 28px; }
    .message-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
    .message-settings h2, .message-settings > .field:first-of-type { grid-column: 1 / -1; }
    .message-settings .button { align-self: end; margin: 0 0 22px; }
    .message-settings .microcopy { margin: 0; }
    .application-row { grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 8px 16px; }
    .application-main { grid-column: 2; }
    .application-row > .icon { grid-column: 3; grid-row: 1; }
    .application-row .stage-badge { grid-column: 2; }
    .application-next { grid-column: 2; }
    .company-monogram { grid-row: 1 / 3; align-self: start; }
    .contact-last { display: none; }
    .contact-row > .icon { margin-left: auto; }
  }
  @media (max-width: 540px) {
    .site-header { padding: 16px 20px 0; }
    .brand { font-size: 1.25rem; gap: 8px; }
    .brand svg { width: 30px; height: 30px; }
    .profile-link { font-size: .75rem; gap: 6px; }
    .profile-link svg { width: 25px; height: 25px; }
    #nav { gap: 8px; }
    #nav a { font-size: .8125rem; }
    #main { width: calc(100% - 40px); padding-top: 28px; padding-bottom: 32px; }
    h1 { font-size: 2.65rem; }
    .page-heading { flex-direction: column; gap: 20px; margin-bottom: 26px; }
    .date-line { font-size: .75rem; margin-bottom: 10px; }
    .lead { font-size: 1rem; margin-top: 12px; }
    .heading-actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0; gap: 12px; }
    .heading-actions .button { font-size: .8125rem; min-height: 44px; }
    .demo-badge { font-size: .6875rem; }
    .focus-card { border-radius: 20px; padding: 26px 24px; gap: 14px; min-height: 0; }
    .focus-card h2 { font-size: 1.85rem; max-width: 16ch; }
    .focus-role { font-size: .875rem; }
    .focus-date { font-size: .8125rem; }
    .eyebrow { margin-bottom: 18px; font-size: .6875rem; }
    .date-stamp { display: none; }
    .focus-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 26px; }
    .focus-actions .button { width: 100%; justify-content: space-between; }
    .focus-actions .text-button { justify-content: center; }
    .welcome-card .focus-actions .button { justify-content: center; }
    .welcome-card h2 { max-width: none; font-size: 2rem; }
    .welcome-card p:not(.eyebrow) { font-size: .9375rem; }
    .next-panel .section-heading h2 { font-size: 1.4rem; }
    .week-strip { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
    .week-strip h2 { grid-column: 1; }
    .week-strip p { grid-column: 1; grid-row: 2; }
    .week-strip a { grid-column: 2; grid-row: 1 / 3; font-size: .8125rem; gap: 6px; }
    .home-bottom { display: block; }
    .home-bottom > p:first-child { font-size: .9375rem; }
    .home-bottom .microcopy { text-align: left; margin-top: 12px; }
    .site-footer { flex-direction: column; align-items: flex-start; gap: 2px; margin-inline: 20px; padding-block: 16px; }
    .site-footer > div { justify-content: space-between; width: 100%; gap: 16px; }
    .system-notice { padding: 14px 20px; }
    .toolbar { gap: 12px; }
    .search-field { flex-basis: 100%; max-width: none; min-width: 0; }
    .filter { flex: 1; min-width: 0; }
    .filter select { width: 100%; font-size: .8125rem; padding-inline: 8px; }
    .view-switch button { padding-inline: 12px; font-size: .8125rem; }
    .board { grid-template-columns: 1fr; }
    .board-column { padding: 18px; }
    .board-empty { padding: 0; }
    .empty-state { padding-inline: 0; }
    .field-grid { grid-template-columns: 1fr; }
    .field input, .field select, .field textarea { font-size: 16px; }
    .messages-layout { gap: 24px; }
    .message-settings { display: block; }
    .message-settings .microcopy { margin: 0 0 14px; }
    .message-output { padding: 22px 18px; }
    .message-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
    .message-output textarea { min-height: 380px; }
    .privacy-panel { padding: 24px; }
    #drawer-content { padding-inline: 22px; }
    .drawer-header { padding-top: 22px; margin-bottom: 24px; }
    .drawer-header h2 { font-size: 1.5rem; }
    .detail-next { padding: 22px; }
    .detail-next .button { width: 100%; gap: 8px; font-size: .8125rem; }
    .form-actions .button { width: 100%; }
    .toast { bottom: 14px; padding: 10px 12px; font-size: .8125rem; gap: 8px; }
    .toast > .icon { display: none; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
}

@layer components {
  .help-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
  .help-steps { padding-left: 24px; margin: 24px 0; }
  .help-steps li { padding-left: 6px; margin: 20px 0; }
  .help-steps strong, .help-steps span { display: block; }
  .help-steps span { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
  .stage-guidance { margin: 0 0 24px; color: var(--muted); font-size: .9375rem; }
  .stage-guidance strong { display: block; color: var(--ink); margin-bottom: 6px; }
  .inline-contact { margin-bottom: 22px; }
  .inline-contact .microcopy { margin-bottom: 18px; }
  #draft-channel:not(:empty) { margin-bottom: 20px; }
}

@layer components {
  .message-continuation { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
  .message-continuation p { margin-bottom: 16px; overflow-wrap: anywhere; }
  .message-continuation strong, .message-continuation span { display: block; }
  .message-continuation span { color: var(--muted); font-size: .875rem; margin-top: 6px; }
  .message-continuation .button { max-width: 100%; text-align: left; }
}

/* Search preferences extend the existing Operate surface without another dashboard. */
.explore-profile { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:24px 0; border-bottom:1px solid var(--line); }
.explore-profile p { max-width:65ch; margin:6px 0 0; }
.search-profile { margin-bottom:32px; }
.search-profile fieldset { border:0; padding:0; margin:24px 0; }
.search-profile legend { font-weight:650; margin-bottom:12px; }
.search-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; }
.search-choice { display:flex; align-items:center; gap:10px; min-height:44px; cursor:pointer; }
.search-choice input { width:20px; height:20px; accent-color:var(--ink); flex-shrink:0; }
.search-profile details { margin:20px 0; }
.search-profile summary, .affinity-detail summary { cursor:pointer; font-weight:650; padding:12px 0; }
.affinity-detail { margin:8px 0 20px; }
.affinity-detail p { font-size:.875rem; }
@media(max-width:540px) { .explore-profile { align-items:flex-start; flex-direction:column; gap:16px; } .search-choices { grid-template-columns:1fr; } }
