
    @font-face { font-family: Cormorant; src: url('assets/fontes/cormorant-garamond-500.woff2'); font-weight: 500; font-display: swap; }
    @font-face { font-family: Cormorant; src: url('assets/fontes/cormorant-garamond-600.woff2'); font-weight: 600; font-display: swap; }
    @font-face { font-family: Cormorant; src: url('assets/fontes/cormorant-garamond-500-italico.woff2'); font-weight: 500; font-style: italic; font-display: swap; }
    :root {
      --chao: #F1EDE6; --campo: #FBF8F3; --lateral: #E8E1D6;
      --tinta: #231A1A; --suave: #66574F; --vinho: #5E1426; --vinho-fundo: #3B0D18;
      --ouro: #A8885A; --linha: #D6CCBF; --selecao: #EEE0DD; --verde: #375745;
      --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
      --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px;
    }
    * { box-sizing: border-box; }
    body { margin: 0; height: 100dvh; overflow: hidden; color: var(--tinta); background: var(--chao); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
    button, input, select { font: inherit; color: inherit; }
    button, a, select { -webkit-tap-highlight-color: transparent; }
    button, select { cursor: pointer; }
    button { border: 0; }
    a { color: var(--vinho); text-underline-offset: 3px; }
    button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--vinho); outline-offset: 3px; }
    button:disabled { opacity: .48; cursor: not-allowed; }
    h1, h2, h3, p { margin: 0; }
    h1 { font: 600 34px/1.1 Cormorant, serif; }
    h2 { font-size: 17px; line-height: 1.3; font-weight: 650; }
    h3 { font-size: 14px; font-weight: 650; }
    small, .note { font-size: 12px; color: var(--suave); }
    .muted { color: var(--suave); }
    .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .shell { display: grid; grid-template-columns: 204px minmax(0, 1fr); height: calc(100dvh - 30px); }
    .sidebar { background: var(--lateral); border-right: 1px solid var(--linha); padding: 28px 12px 16px; display: flex; flex-direction: column; }
    .brand { font: 600 28px/1 Cormorant, serif; letter-spacing: .065em; color: var(--vinho); text-transform: uppercase; }
    .brand em { display: block; font: 500 18px/1.3 Cormorant, serif; letter-spacing: 0; text-transform: none; color: var(--suave); }
    .sidebar .brand { margin: 0 12px 34px; }
    .sidebar nav { display: grid; gap: 4px; }
    .nav-link { display: flex; gap: 12px; align-items: center; min-height: 42px; padding: 10px 12px; border-radius: 5px; text-decoration: none; color: var(--suave); font-weight: 550; }
    .nav-link:hover { background: #F1EBE2; color: var(--tinta); }
    .nav-link[aria-current=page] { background: var(--campo); color: var(--vinho); box-shadow: 0 1px 2px #231A1A0D; }
    .nav-link[aria-current=page] span { font-weight: 700; }
    .icon { width: 18px; height: 18px; flex: none; }
    .sidebar-foot { margin-top: auto; border-top: 1px solid var(--ouro); padding: 16px 12px 0; }
    .avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--selecao); color: var(--vinho); font-size: 12px; font-weight: 700; flex: none; }
    .identity { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
    .workspace { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
    .topbar { height: 52px; flex: none; border-bottom: 1px solid var(--linha); padding: 0 28px; display: flex; align-items: center; justify-content: space-between; color: var(--suave); font-size: 12px; }
    .topbar strong { color: var(--tinta); font-weight: 550; }
    .topbar .mobile-brand { display: none; }
    .content { display: flex; min-height: 0; flex: 1; }
    main { min-width: 0; flex: 1; overflow-y: auto; padding: 28px; }
    .page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
    .page-head p { margin-top: 6px; color: var(--suave); font-size: 13px; }
    .engraving { object-fit: contain; mix-blend-mode: multiply; width: 76px; height: 76px; }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 12px; border: 1px solid #B8A99A; background: var(--campo); border-radius: 4px; font-weight: 600; text-decoration: none; font-size: 13px; }
    .btn:hover { background: var(--lateral); }
    .btn.primary { background: var(--vinho); border-color: var(--vinho); color: #fff; }
    .btn.primary:hover { background: var(--vinho-fundo); }
    .text-button { display: inline-flex; align-items: center; background: transparent; color: var(--vinho); padding: 8px 0; min-height: 36px; font-size: 13px; font-weight: 600; text-decoration: none; }
    .text-button:hover { text-decoration: underline; }
    .badge { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #C9BCAF; border-radius: 3px; padding: 2px 6px; font-size: 12px; line-height: 1.35; color: #54473F; background: #F5F0E9; white-space: nowrap; }
    .badge.partner { color: #304D3B; border-color: #A1B1A3; background: #EAF0E8; }
    .title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
    .section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
    .progress { width: 100%; height: 5px; accent-color: var(--vinho); display: block; border: 0; border-radius: 0; overflow: hidden; background: var(--linha); }
    .progress::-webkit-progress-bar { background: var(--linha); }
    .progress::-webkit-progress-value { background: var(--vinho); }
    .stats { display: grid; grid-template-columns: repeat(4, 1fr) 1.5fr; border: 1px solid var(--linha); border-radius: 5px; margin-bottom: 28px; background: var(--campo); }
    .stat { padding: 16px 20px; border-right: 1px solid var(--linha); }
    .stat:last-child { border: 0; }
    .stat strong { font-size: 20px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
    .stat span { display: block; color: var(--suave); font-size: 12px; margin-top: 4px; }
    .stat progress { margin-top: 8px; }
    .home-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr); gap: 28px; }
    .queue { border-top: 1px solid var(--ouro); }
    .queue-row { padding: 14px 0; border-bottom: 1px solid var(--linha); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
    .queue-row .name { font-weight: 600; color: var(--tinta); text-decoration: none; }
    .queue-row .name:hover { color: var(--vinho); text-decoration: underline; }
    .queue-row small { display: block; margin-top: 3px; }
    .queue-label { margin-top: 24px; margin-bottom: 4px; }
    .question-link { display: flex; padding: 12px 0; gap: 12px; align-items: center; border-bottom: 1px solid var(--linha); color: var(--tinta); text-decoration: none; }
    .question-link span { flex: 1; }
    .question-link:hover { color: var(--vinho); }
    .feature { align-self: start; background: var(--campo); border: 1px solid var(--linha); border-radius: 6px; padding: 20px; }
    .feature .feature-title { margin-bottom: 16px; display: flex; justify-content: space-between; gap: 16px; }
    .feature .engraving { width: 60px; height: 60px; }
    .feature p { margin-top: 4px; }
    .feature-foot { border-top: 1px solid var(--ouro); margin-top: 20px; padding-top: 16px; }
    .feature .btn { margin-top: 16px; width: 100%; }
    .segments { display: inline-flex; background: var(--campo); border: 1px solid #B8A99A; border-radius: 4px; flex: none; }
    .segments button { min-height: 30px; padding: 5px 9px; font-size: 12px; background: transparent; border-right: 1px solid var(--linha); }
    .segments button:last-child { border: 0; }
    .segments button:hover { background: var(--lateral); }
    .segments button[aria-pressed=true] { background: var(--vinho); color: white; }
    .filters { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
    .search { flex: 1; min-width: 160px; position: relative; }
    .search .icon { position: absolute; top: 11px; left: 11px; color: var(--suave); }
    input[type=search] { border: 1px solid #BCAD9D; background: var(--campo); border-radius: 4px; min-height: 40px; width: 100%; padding: 8px 12px 8px 36px; }
    input::placeholder { color: var(--suave); opacity: 1; }
    select { border: 1px solid #BCAD9D; border-radius: 4px; background: var(--campo); min-height: 40px; padding: 8px 30px 8px 10px; max-width: 100%; }
    .tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--linha); overflow-x: auto; min-width: 0; margin-bottom: 16px; }
    .tab { display: flex; align-items: center; gap: 7px; border-bottom: 2px solid transparent; background: transparent; padding: 10px 0 12px; color: var(--suave); white-space: nowrap; font-size: 13px; min-height: 42px; }
    .tab[aria-pressed=true] { color: var(--vinho); border-color: var(--vinho); font-weight: 650; }
    .tab .count { font-size: 12px; padding: 1px 5px; background: #E7DFD4; border-radius: 3px; color: #55463F; font-variant-numeric: tabular-nums; }
    .table-wrap { overflow-y: auto; max-height: calc(100dvh - 325px); border: 1px solid var(--linha); border-radius: 4px; margin-top: 12px; background: var(--campo); }
    table { border-collapse: collapse; width: 100%; table-layout: fixed; }
    th { position: sticky; top: 0; z-index: 1; background: #EDE6DC; font-size: 12px; color: var(--suave); font-weight: 600; text-align: left; }
    td, th { padding: 12px 14px; border-bottom: 1px solid var(--linha); }
    td { font-size: 12px; vertical-align: middle; }
    td strong { font-size: 13px; display: block; font-weight: 600; }
    td small { font-size: 12px; display: block; margin-top: 3px; }
    tr[data-open] { cursor: pointer; }
    tr[data-open]:hover { background: #F2EBE3; }
    tr.selected { background: var(--selecao); }
    tr.selected td:first-child strong::after { content: ' →'; color: var(--vinho); }
    .work-table th:nth-child(1) { width: 23%; }
    .work-table th:nth-child(2) { width: 11%; }
    .work-table th:nth-child(3) { width: 27%; }
    .work-table th:nth-child(4) { width: 18%; }
    .work-table th:nth-child(5) { width: 21%; }
    .content.has-detail main { padding: 24px 20px; }
    .has-detail .work-table .group-cell, .has-detail .work-table .award-cell { display: none; }
    .has-detail .work-table th:nth-child(1) { width: 39%; }
    .has-detail .work-table th:nth-child(4) { width: 27%; }
    .has-detail .work-table th:nth-child(5) { width: 34%; }
    .has-detail .work-table td, .has-detail .work-table th { padding: 12px 10px; }
    .has-detail .work-table .badge { white-space: normal; }
    .empty { padding: 32px 20px; text-align: center; color: var(--suave); }
    .empty .engraving { width: 64px; height: 64px; margin-bottom: 12px; }
    .empty h3 { color: var(--tinta); margin-bottom: 6px; }
    .board-toolbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 16px; }
    .board { display: flex; gap: 16px; overflow: auto; max-width: 100%; height: calc(100dvh - 287px); padding: 0 0 16px; overscroll-behavior-x: contain; }
    .board-column { flex: 0 0 238px; min-width: 0; border-radius: 5px; background: #EAE4DA; padding: 12px; }
    .column-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 8px; gap: 8px; }
    .column-head h2 { font-size: 12px; font-weight: 650; }
    .column-head small { border: 1px solid #C7B9A9; padding: 0 5px; border-radius: 3px; }
    .project-card { display: block; width: 100%; text-align: left; padding: 14px; margin-bottom: 10px; background: var(--campo); border: 1px solid #D0C3B4; border-radius: 5px; color: var(--tinta); }
    .project-card:hover { border-color: var(--ouro); background: #fffaf3; }
    .project-card.selected { border-color: var(--vinho); background: #F5EAE5; }
    .project-card strong { display: block; font-size: 13px; margin: 5px 0; }
    .project-card small { display: block; }
    .project-card .unknown-map { border-top: 1px dashed #C6B5A3; padding-top: 10px; margin-top: 12px; color: var(--suave); font-size: 12px; }
    .column-empty { border: 1px dashed #BCAE9E; border-radius: 4px; padding: 18px 12px; font-size: 12px; color: var(--suave); text-align: center; }
    .detail { width: 440px; flex: none; background: var(--campo); border-left: 1px solid #C4B49F; display: flex; flex-direction: column; min-height: 0; }
    .detail.barrel { width: min(650px, 58%); }
    .detail-top { height: 48px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--linha); font-size: 12px; color: var(--suave); }
    .detail-close { display: flex; align-items: center; gap: 6px; background: transparent; color: var(--suave); min-height: 36px; padding: 6px 0; }
    .detail-body { padding: 24px; overflow-y: auto; }
    .detail-title { display: flex; gap: 16px; justify-content: space-between; margin-bottom: 20px; }
    .detail-title h2 { font: 600 30px/1.1 Cormorant, serif; margin: 8px 0; }
    .detail-title .example { margin-top: 4px; }
    .detail-title .engraving { width: 64px; height: 80px; }
    .detail section + section { border-top: 1px solid var(--linha); margin-top: 24px; padding-top: 20px; }
    .detail section > h3 { margin-bottom: 12px; }
    .detail p + p { margin-top: 8px; }
    .detail .note { margin-top: 8px; }
    .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
    .field dt { color: var(--suave); font-size: 12px; margin-bottom: 4px; }
    .field dd { margin: 0; font-size: 13px; }
    .links { display: flex; gap: 16px; margin: 16px 0; }
    .answer-progress { display: flex; align-items: center; gap: 16px; margin: -8px 0 20px; color: var(--suave); font-size: 12px; }
    .answer-progress progress { max-width: 240px; }
    .answer-layout { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(300px, 1.1fr); border: 1px solid var(--linha); border-radius: 5px; background: var(--campo); height: calc(100dvh - 320px); min-height: 280px; }
    .answer-list { overflow-y: auto; border-right: 1px solid var(--linha); }
    .answer-row { width: 100%; text-align: left; background: transparent; border-bottom: 1px solid var(--linha); padding: 16px 20px; }
    .answer-row strong { font-weight: 600; display: block; margin-bottom: 6px; }
    .answer-row small { display: block; }
    .answer-row:hover, .answer-row.selected { background: var(--selecao); }
    .answer-detail { padding: 28px; overflow-y: auto; }
    .answer-detail h2 { font-size: 20px; margin: 14px 0 16px; }
    .answer-detail h3 { margin: 24px 0 10px; }
    blockquote { font: italic 500 25px/1.25 Cormorant, serif; color: var(--vinho); border-top: 1px solid var(--ouro); border-bottom: 1px solid var(--ouro); padding: 20px 0; margin: 20px 0; }
    .tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
    @media (max-width: 1100px) and (min-width: 761px) {
      .shell { grid-template-columns: 174px minmax(0,1fr); }
      main { padding: 24px 20px; }
      .home-grid { grid-template-columns: 1fr; }
      .feature { max-width: 600px; }
      .stat { padding: 12px; }
      .detail { width: 390px; }
      .has-detail .work-table .state-cell { display: none; }
    }
    @media (max-width: 760px) {
      body { font-size: 14px; }
      .shell { display: block; height: calc(100dvh - 44px); }
      .sidebar { display: none; }
      .workspace { height: 100%; }
      .topbar { height: 58px; padding: 0 16px; }
      .topbar .mobile-brand { display: block; font-size: 22px; }
      .topbar .mobile-brand em { font-size: 13px; }
      .topbar .desktop-crumb { display: none; }
      .topbar .session-note { font-size: 12px; max-width: 130px; text-align: right; }
      main { padding: 24px 16px 100px; }
      h1 { font-size: 32px; }
      .page-head { margin-bottom: 20px; align-items: flex-start; }
      .page-head p { font-size: 12px; max-width: 270px; }
      .page-head .engraving { width: 54px; height: 64px; }
      .stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; }
      .stat { padding: 12px 10px; }
      .stat strong { font-size: 18px; }
      .stat span { font-size: 12px; }
      .stat:nth-child(4) { border: 0; }
      .stat:last-child { grid-column: 1 / -1; border-top: 1px solid var(--linha); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
      .stat:last-child strong { font-size: 14px; }
      .stat:last-child span { margin: 0; font-size: 12px; }
      .stat:last-child progress { margin: 4px 0 0; }
      .home-grid { grid-template-columns: 1fr; gap: 28px; }
      .queue-row { gap: 8px; padding: 12px 0; }
      .queue-row .name { font-size: 13px; }
      .queue-row small { font-size: 12px; }
      .segments button { min-height: 44px; min-width: 44px; padding: 7px; font-size: 12px; }
      .btn, .text-button, input[type=search], select { min-height: 44px; }
      .tabs { gap: 20px; margin-bottom: 16px; }
      .tab { min-height: 44px; font-size: 12px; }
      .filters { gap: 8px; }
      .filters .search { flex-basis: 100%; }
      .filters select { width: 100%; }
      .search .icon { top: 13px; }
      .table-wrap { overflow: visible; max-height: none; border: 0; background: transparent; margin-top: 12px; }
      .work-table, .work-table tbody { display: block; }
      .work-table thead { display: none; }
      .work-table tr { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--linha); border-radius: 4px; margin-bottom: 10px; padding: 14px; background: var(--campo); gap: 8px; }
      .work-table tr.selected { background: var(--selecao); }
      .work-table td, .has-detail .work-table td { display: block; padding: 0; border: 0; }
      .work-table td:first-child { grid-column: 1; grid-row: 1; }
      .work-table td strong { font-size: 14px; }
      .work-table .group-cell { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--suave); }
      .work-table .award-cell { grid-column: 1 / -1; grid-row: 3; margin: 3px 0 7px; }
      .work-table .award-cell strong { font-size: 12px; font-weight: 500; }
      .work-table .state-cell { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
      .work-table .eval-cell { grid-column: 1 / -1; grid-row: 4; border-top: 1px solid var(--linha); padding-top: 10px; display: flex; align-items: center; justify-content: space-between; }
      .eval-cell::before { content: 'Avaliação'; font-size: 12px; color: var(--suave); }
      .eval-cell small { display: none; }
      .board-toolbar { align-items: flex-start; }
      .board-toolbar p { max-width: 180px; }
      .board { height: calc(100dvh - 340px); min-height: 380px; }
      .board-column { flex-basis: 252px; }
      .detail, .detail.barrel { position: fixed; inset: 44px 0 0; z-index: 15; width: 100%; border: 0; }
      .detail-top { height: 52px; padding: 0 16px; }
      .detail-close { min-height: 44px; }
      .detail-body { padding: 20px 16px 40px; }
      .detail-title h2 { font-size: 30px; }
      .detail-title { margin-bottom: 16px; }
      .answer-progress { flex-wrap: wrap; gap: 8px; margin-top: 0; }
      .answer-progress progress { max-width: 100%; }
      .answer-layout { display: block; height: auto; min-height: 0; }
      .answer-list { border: 0; overflow: visible; }
      .answer-row { padding: 16px; }
      .answer-detail { display: none; }
      .answer-tabs { gap: 16px; }
      .answer-tabs .tab:nth-child(2) { gap: 5px; }
      .answer-tabs .count { font-size: 12px; }
      .bottom-nav { position: fixed; display: grid; grid-template-columns: repeat(5, 1fr); z-index: 10; bottom: 0; left: 0; right: 0; background: var(--campo); border-top: 1px solid #BFAE98; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); }
      .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 0; min-height: 48px; background: transparent; text-decoration: none; color: var(--suave); font-size: 12px; }
      .bottom-nav [aria-current=page], .bottom-nav [aria-expanded=true] { color: var(--vinho); font-weight: 700; background: var(--selecao); border-radius: 4px; }
    }
    /* Refinamento da rodada 3: identidade preservada, leitura e adaptação corrigidas. */
    .group-label, .partner-note { color: var(--suave); font-size: 12px; }
    .detail-close { padding: 6px 8px; }
    .detail-close:focus-visible { outline-offset: 0; }
    .detail-body { overflow-wrap: break-word; }
    .detail .badge { white-space: normal; }
    .record-link { display: block; padding: 10px 0; min-height: 44px; }
    .answer-layout { grid-template-columns: minmax(240px, .8fr) minmax(350px, 1.2fr); }
    .answer-detail { padding: 24px 36px; }
    .answer-detail section { max-width: 65ch; }
    .answer-summary > .badge { margin-bottom: 12px; }
    .answer-evidence, .answer-unlocked { margin-top: 24px; }
    .answer-evidence h3, .answer-unlocked h3 { margin: 0 0 12px; }
    .answer-evidence blockquote { margin: 12px 0 20px; }
    .answer-evidence blockquote + blockquote { border-top: 0; margin-top: -20px; }
    @media (max-width: 760px) {
      .topbar .session-note { display: none; }
      .content { overflow: hidden; }
      main { padding-bottom: 108px; }
      .stats { grid-template-columns: repeat(2, 1fr); }
      .stat:nth-child(2) { border-right: 0; }
      .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--linha); }
      .board { display: grid; gap: 16px; height: auto; min-height: 0; overflow: visible; padding-bottom: 16px; }
      .board-column { width: 100%; }
      .empty-column, .board-help { display: none; }
      .board-toolbar p { max-width: 190px; }
      .project-card:last-child { margin-bottom: 0; }
      .detail-title h2 { overflow-wrap: normal; }
      .answer-summary .fields { margin-bottom: 0; }
      .detail.answer section + section { margin-top: 24px; padding-top: 20px; }
      .answer-tabs { gap: 12px; flex-wrap: wrap; overflow: visible; }
      .answer-tabs .tab { gap: 5px; }
    }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
  
/* Extensão da fase real: a estrutura, as cores e os componentes vêm do protótipo. */
html, body, #root { height: 100%; }
body { font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { background: transparent; }
button, input:not([type=hidden]), select, summary, .btn, .text-button, .nav-link { min-height: 44px; }
button:disabled { cursor: wait; }
textarea { resize: vertical; }
textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--vinho); outline-offset: 3px; }
:focus-visible { scroll-margin: 10px; }
.shell { height: 100dvh; }
.nav-link { width: 100%; text-align: left; }
.session-controls { display: flex; align-items: center; gap: 20px; }
.signout { padding: 8px; }
.session-name { font-size: 13px; }
.brand, h1, .detail-title h2, blockquote { font-variant-numeric: lining-nums; }
h1:focus, h2:focus { outline: none; }
.page-head > div { min-width: 0; }
.page-head > .btn { flex-shrink: 0; }
.stats { grid-template-columns: repeat(4,1fr) 1.4fr; }
.home-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 40px; }
.queue-row > div { min-width: 0; }
.queue-row .name { text-align: left; padding: 0; color: var(--tinta); }
.queue-row small { display: block; }
.queue-label { margin: 28px 0 8px; }
.question-link { width: 100%; text-align: left; background: transparent; min-height: 48px; }
.activity { min-width: 0; }
.activity-row { padding: 15px 0; border-bottom: 1px solid var(--linha); overflow-wrap: anywhere; }
.activity-row:first-of-type { padding-top: 0; }
.activity-row time { display: block; margin-top: 5px; }
.backup { border-top: 1px solid var(--linha); margin-top: 32px; padding-top: 12px; }
.segments button { min-width: 44px; min-height: 44px; }
.segments { max-width: 100%; }
.tabs { flex-wrap: wrap; column-gap: 20px; row-gap: 0; overflow: visible; }
.tab { min-height: 44px; }
.filters .search input { font-size: 14px; }
.table-wrap { max-height: none; overflow: visible; }
th { position: static; }
.work-table td { overflow-wrap: anywhere; }
.record-name { width: 100%; display: block; text-align: left; padding: 6px 0; }
.record-name:hover { color: var(--vinho); }
.record-name:focus-visible { outline-offset: 1px; }
.result-count { margin-top: 12px; }
.board { height: auto; min-height: 440px; padding: 4px 4px 16px; align-items: stretch; }
.board-column { flex-basis: 238px; }
.board-column.empty-column { flex-basis: 180px; }
.card-facts { margin: 16px 0 12px; padding-top: 12px; border-top: 1px solid var(--linha); }
.card-facts span { color: var(--suave); font-size: 12px; }
.card-facts strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.project-card { min-height: 190px; }
.project-card .badge { display: inline-flex; }
.detail { width: 440px; }
.detail.barrel { width: min(560px,52%); }
.detail-top { height: 56px; padding: 0 20px; }
.detail-close { min-width: 80px; justify-content: center; }
.detail-title { align-items: flex-start; margin-bottom: 20px; }
.detail-title h2 { overflow-wrap: anywhere; }
.detail-title .engraving { width: 50px; height: 62px; flex: none; }
.editor { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.editor-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1; padding: 24px; overflow-wrap: anywhere; scroll-padding: 12px; }
.editable-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.edit-group { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--linha); }
.edit-group h3, .known-fields h3 { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field.wide { grid-column: 1 / -1; }
.form-field label, .field-label { font-weight: 600; font-size: 13px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #9C8A78; border-radius: 4px; background: #FFFCF8; color: var(--tinta); font-size: 16px; }
.form-field input[type=date] { padding: 8px; }
.form-field textarea { min-height: 105px; line-height: 1.5; }
.form-field .segments { align-self: flex-start; }
.form-field .note { margin: 0; }
.form-actions { flex: none; display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--linha); padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); background: var(--campo); min-height: 74px; }
.form-actions .btn { flex: none; min-width: 100px; }
.save-status { font-size: 12px; line-height: 1.4; color: var(--vinho); overflow-wrap: anywhere; }
.winery-summary { line-height: 1.6; }
.winery-summary h3 { margin: 20px 0 8px; }
.links a { min-height: 44px; display: inline-flex; align-items: center; }
.internal-notes { margin-top: 24px; border-top: 1px solid var(--linha); padding-top: 12px; }
.internal-notes summary { cursor: pointer; display: list-item; padding: 12px 0; color: var(--suave); }
.internal-notes p { margin: 8px 0; font-size: 13px; }
.conflict { margin-top: 24px; padding: 16px; background: #F6EDDC; border: 1px solid var(--ouro); }
.conflict p { margin-top: 8px; }
.conflict dt { font-size: 12px; color: var(--suave); margin-top: 12px; }
.conflict dd { margin: 2px 0 0; }
.answer-layout { height: calc(100dvh - 306px); min-height: 420px; grid-template-columns: minmax(230px,.8fr) minmax(340px,1.2fr); }
.answer-detail { display: flex; padding: 0; min-height: 0; overflow: hidden; }
.answer-detail .detail-title h2 { font: 650 20px/1.35 var(--sans); margin: 0; }
.answer-detail .detail-title .engraving { display: none; }
.answer-detail .editor-scroll { padding: 28px; }
.answer-evidence h3 { margin-top: 20px; }
.answer-evidence blockquote { font-size: 25px; }
.answer-progress { margin-top: 0; }
.auth-page { min-height: 100dvh; height: 100%; display: grid; place-items: center; padding: 32px 24px; overflow-y: auto; }
.auth-box { width: min(100%,440px); flex: none; overflow: visible; padding: 36px; border: 1px solid var(--linha); background: var(--campo); border-radius: 5px; }
.auth-box .brand { margin-bottom: 36px; font-size: 32px; }
.auth-box h1 { margin-bottom: 12px; }
.auth-box > p { color: var(--suave); }
.auth-box .form-field { margin: 24px 0; }
.auth-box form > .primary { width: 100%; }
.auth-box form > .text-button { margin-top: 12px; }
.auth-box .message { margin-top: 16px; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.access-code { margin-top: 24px; }
.access-code .note { margin-top: 8px; }
.message { font-size: 13px; color: var(--vinho); overflow-wrap: anywhere; }
.skeleton { height: 24px; background: var(--lateral); margin-top: 20px; border-radius: 3px; }
.skeleton:nth-last-child(2) { width: 70%; }
@media (max-width:1100px) and (min-width:761px) {
 .home-grid { grid-template-columns: 1fr; gap: 28px; }
 .detail, .detail.barrel { width: 46%; }
 .has-detail .work-table .state-cell { display: none; }
 .has-detail .form-grid { grid-template-columns: 1fr; }
 .answer-layout { grid-template-columns: minmax(180px,.7fr) minmax(300px,1.3fr); }
}
@media (max-width:760px) {
 .shell { height: 100dvh; }
 .topbar { height: 68px; padding: 0 16px; }
 .topbar .session-controls { gap: 8px; }
 .session-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
 main { padding: 24px 16px; }
 .workspace { height: calc(100% - 69px - env(safe-area-inset-bottom)); }
 .content { overflow: hidden; }
 .page-head { flex-wrap: wrap; gap: 16px; }
 .page-head > div { flex: 1; min-width: 190px; }
 .page-head .btn { min-height: 44px; }
 .page-head p { font-size: 13px; }
 .stats { grid-template-columns: repeat(2,1fr); }
 .stat:last-child { grid-column: 1 / -1; }
 .home-grid { grid-template-columns: 1fr; gap: 32px; }
 .queue-row .name { font-size: 14px; }
 .queue-row { align-items: center; }
 .filters .search { min-width: 0; }
 .filters .search input { font-size: 16px; }
 .work-table .eval-cell { gap: 8px; }
 .work-table .state-cell .badge { white-space: normal; max-width: 115px; }
 .table-wrap { margin-top: 16px; }
 .record-name { padding: 0; }
 .board { display: grid; min-height: 0; gap: 20px; padding: 0 0 16px; overflow: visible; }
 .board-column { width: 100%; }
 .board-column.empty-column { display: none; }
 .project-card:last-child { margin-bottom: 0; }
 .board-help { display: none; }
 .detail, .detail.barrel { position: fixed; inset: 0; width: 100%; height: 100dvh; z-index: 20; border: 0; }
 .detail-top { height: 56px; padding: 0 16px; }
 .editor-scroll { padding: 20px 16px 28px; }
 .form-actions { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); min-height: 70px; }
 .detail-title h2 { font-size: 30px; }
 .form-grid { gap: 16px 12px; }
 .answer-layout { display: block; height: auto; min-height: 0; }
 .answer-detail { display: none; }
 .answer-list { border: 0; overflow: visible; }
 .answer-progress { flex-wrap: wrap; }
 .bottom-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); min-height: 69px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
 .bottom-nav .nav-link { min-height: 56px; font-size: 12px; justify-content: center; }
 .bottom-nav[inert] { visibility: hidden; }
 .auth-box { padding: 28px 24px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; animation: none !important; } }
button, a, summary { min-width: 44px; }
.detail-close { min-height: 44px; } @media (min-width:761px) { .bottom-nav { display: none; } }
/* Acabamento após a primeira conferência visual, desktop e celular juntos. */
.section-head { min-height: 44px; }
.answer-context { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--linha); }
.answer-context h3 { margin: 12px 0 8px; }
.answer-evidence h3 { margin-top: 12px; }
.answer-evidence blockquote { margin: 12px 0; padding: 12px 0; }
.answer-evidence + .editable-fields .edit-group { margin-top: 20px; padding-top: 16px; }
@media (min-width:761px) {
 .answers-page { display: flex; flex-direction: column; overflow: hidden; }
 .answers-page > * { flex: none; }
 .answers-page > .answers-host { flex: 1; min-height: 0; }
 .answer-layout { height: 100%; min-height: 0; }
 .answer-detail .editor-scroll { padding: 24px 28px; }
}
