.briefs-page {
  --brief-yes:#27714d;--brief-no:#ad4137;
  min-width:0;container-type:inline-size;
}
:root[data-theme=dark] .briefs-page {--brief-yes:#7ac99b;--brief-no:#ee948c}
.briefs-head .primary {font-size:.9rem}
.brief-tabs {display:flex;align-items:center;gap:.3rem 1.5rem;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.brief-tabs button {border:0;border-radius:0;background:transparent;padding:.65rem 0 .8rem;color:var(--muted);line-height:1.4}
.brief-tabs button[aria-selected=true] {color:var(--ink)}
.brief-tabs button:hover {color:var(--ink)}
.brief-tab-count {font-variant-numeric:tabular-nums}
.brief-toolbar {display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;margin:.9rem 0}
.brief-toolbar input {min-width:min(100%,12rem);width:clamp(14rem,38%,31rem);margin-right:auto}
.brief-toolbar :is(input,button,select),.brief-filters :is(input,select) {min-height:2.35rem;font-size:.88rem}
.brief-toolbar select {max-width:100%}
.brief-filters {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.55rem .8rem;align-items:end;margin:0 0 1rem}
.brief-filters>label {min-width:0}
.brief-filters :is(input,select) {width:100%;min-width:0}
.brief-filters .employee-action {justify-self:start}
.briefs-page [hidden] {display:none!important}
.brief-workspace {display:grid;align-items:start;min-width:0}
.brief-workspace.with-card {grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:clamp(.85rem,1.45vw,1.6rem)}
.brief-workspace.is-expanded {grid-template-columns:minmax(0,1fr);margin-top:1rem}
.brief-list-pane {min-width:0}
.brief-list-scroll {overflow:auto;max-height:max(18rem,calc(100dvh - 13.75rem));scrollbar-width:thin;border-radius:.5rem}
.briefs-page:has(.brief-filters:not([hidden])) .brief-list-scroll {max-height:max(18rem,calc(100dvh - 18.5rem))}
.brief-table {width:100%;border-collapse:separate;border-spacing:0;font-size:.9rem;line-height:1.35;background:var(--panel)}
.brief-table th,.brief-table td {text-align:start;vertical-align:middle;padding:.72rem .65rem;border-bottom:1px solid var(--line)}
.brief-table th {position:sticky;inset-block-start:0;z-index:1;background:var(--panel);font-size:.8rem;font-weight:550}
.brief-table td {min-width:4.75rem}
.brief-table td:first-child {min-width:8.5rem;overflow-wrap:anywhere}
.brief-table td:nth-child(3) {white-space:nowrap;font-variant-numeric:tabular-nums}
.brief-table tbody tr {cursor:pointer}
.brief-table tbody tr:hover,.brief-table tbody tr:focus-within {background:var(--shade)}
.brief-table tbody tr.is-selected {background:color-mix(in srgb,var(--interaction-green) 9%,var(--panel))}
.brief-table tbody tr.is-selected td:first-child {box-shadow:inset 2px 0 var(--link-underline)}
.brief-name {font-weight:550;text-decoration:underline var(--link-underline);text-underline-offset:.19em}
.brief-table tbody tr:is(:hover,:has(:focus-visible)) {--link-underline:var(--interaction-green)}
.brief-type,.brief-training-note {display:block;margin-top:.15rem;color:var(--muted);font-size:.77rem}
.brief-voter-strip {display:flex;align-items:center;gap:.24rem;width:max-content}
.brief-vote-timer {color:var(--muted);font-size:.78rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.brief-table [data-brief-clock] {display:block}
.briefs-page [data-brief-clock]:empty {display:none}
.brief-voter-portrait {display:inline-flex;padding:3px;border-radius:50%;flex:none}
.brief-voter-portrait[data-vote=accept],.brief-voter-portrait[data-vote=training-accept] {padding:1px;border:2px solid var(--brief-yes)}
.brief-voter-portrait[data-vote=reject],.brief-voter-portrait[data-vote=training-reject] {padding:1px;border:2px solid var(--brief-no)}
.brief-voter-portrait[data-vote=waiting] .team-avatar {border:0}
.brief-voter-portrait .team-avatar {width:1.5rem;height:1.5rem;line-height:1}
.brief-decision {background:var(--shade)}
.brief-decision-accepted {color:var(--brief-yes);background:color-mix(in srgb,var(--brief-yes) 10%,var(--panel))}
.brief-decision-rejected {color:var(--brief-no);background:color-mix(in srgb,var(--brief-no) 10%,var(--panel))}
.brief-card {min-width:0;container-type:inline-size;border:1px solid var(--line);border-radius:.75rem;padding:0 clamp(.8rem,1.4vw,1.45rem);background:var(--panel);overflow:auto;max-height:max(22rem,calc(100dvh - 11.5rem));scrollbar-width:thin}
.brief-workspace.is-expanded .brief-card {max-height:none}
.brief-card-head {padding:.7rem 0 1rem}
.brief-card-top,.brief-section-head,.brief-project-action {display:flex;align-items:center;justify-content:space-between;gap:.5rem .8rem}
.brief-identifier {color:var(--muted);font-variant-numeric:tabular-nums;font-size:.78rem;overflow-wrap:anywhere}
.brief-card-tools {display:flex;align-items:center;gap:.2rem}
.brief-card-tools .flat {width:2rem;height:2rem;line-height:1;display:grid;place-items:center;font-size:1.2rem}
.brief-card-tools .brief-close {font-size:1.45rem}
.brief-card-summary {display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem 1rem}
.brief-card-identity {min-width:0;flex:1}
.brief-personal-vote {display:grid;justify-items:end;gap:.5rem;min-width:0;max-width:52%;margin-top:.5rem;font-size:.85rem}
.brief-personal-vote button {max-width:100%;overflow-wrap:anywhere;font-size:inherit}
.brief-personal-vote .error {margin:0}
.brief-card-title {margin:.5rem 0 .45rem;font-size:clamp(1.35rem,3.3cqi,1.8rem);font-weight:510;line-height:1.18;overflow-wrap:anywhere}
.brief-card-title:focus {outline:none}
.brief-card-meta {display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .85rem;font-size:.85rem}
.brief-card-meta>span:not(.brief-decision) {color:var(--muted)}
.brief-project-action {margin:.8rem 0 0;justify-content:flex-start;flex-wrap:wrap;font-size:.85rem}
.brief-card>.brief-tabs {gap:.25rem 1.05rem;font-size:.9rem;border-top:1px solid var(--line)}
.brief-card-content {padding:1rem 0 1.1rem}
.brief-section-head {margin-bottom:.8rem;flex-wrap:wrap}
.brief-section-head h3,.brief-description h3 {margin:0;font-size:.98rem;font-weight:560}
.brief-voting .brief-section-head h3 {margin-inline-end:auto}
.brief-section-head .employee-action {font-size:.82rem}
.brief-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:.75rem 1rem;margin:0}
.brief-facts div {min-width:0;overflow-wrap:anywhere}
.brief-facts dt,.brief-vote-totals dt {color:var(--muted);font-size:.78rem}
.brief-facts dd {margin:.12rem 0 0;font-size:.9rem}
.brief-facts .client-staff .team-avatar {width:1.8rem;height:1.8rem}
.brief-facts .client-staff {gap:.45rem}
.brief-description,.brief-facts~.brief-voting {padding-top:1rem;margin-top:1rem;border-top:1px solid var(--line)}
.brief-description p,.brief-history-list p,.brief-vote-comment {margin:.4rem 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem}
.brief-final-result {display:flex;align-items:center;flex-wrap:wrap;gap:.4rem .65rem;margin:.2rem 0 .6rem;font-size:.85rem}
.brief-vote-form {display:grid;justify-items:end;gap:.5rem;max-width:100%;min-width:0}
.brief-vote-form fieldset {padding:0;margin:0;min-width:0;border:0}
.brief-vote-form legend {width:100%;text-align:end;font-size:.85rem;font-weight:550;margin-bottom:.4rem}
.brief-vote-options,.brief-workflow-actions {display:flex;gap:.45rem 1rem;align-items:center;flex-wrap:wrap}
.brief-vote-options label {display:inline-flex;align-items:center;gap:.35rem;cursor:pointer}
.brief-vote-options {justify-content:flex-end}
.brief-vote-options input {width:auto;margin:0;accent-color:var(--accent)}
.brief-vote-options input[value=accept]:checked {accent-color:var(--action-green);outline-color:var(--action-green)}
.brief-vote-details {display:grid;gap:.45rem;width:17rem;max-width:100%;min-width:0}
.brief-vote-details textarea {width:100%;resize:vertical}
.brief-vote-details .actions {justify-content:flex-end;margin:0}
.brief-workflow-actions {justify-content:start;flex-wrap:wrap}
.brief-workflow-actions,.brief-previous-round {margin-top:.75rem}
.brief-previous-round summary {cursor:pointer}
.brief-vote-totals {display:flex;align-items:center;flex-wrap:wrap;gap:.65rem 1.8rem;margin:1rem 0}
.brief-vote-totals dd {font-size:1.5rem;font-variant-numeric:tabular-nums;margin:.05rem 0 0;line-height:1.2}
.brief-vote-list,.brief-history-list {list-style:none;padding:0;margin:0}
.brief-vote-list li {display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,auto);align-items:center;gap:.25rem .55rem;padding:.58rem 0;border-bottom:1px solid var(--line)}
.brief-vote-list li:last-child,.brief-history-list li:last-child {border:0}
.brief-voter-info,.brief-individual-result {display:grid;gap:.1rem;font-size:.85rem;overflow-wrap:anywhere}
.brief-voter-info a {width:fit-content}
.brief-individual-result {text-align:end}
.brief-voter-info small,.brief-individual-result time {font-size:.74rem;color:var(--muted)}
.brief-vote-comment {grid-column:2/-1;margin:0;font-size:.82rem}
.brief-history-list li {border-bottom:1px solid var(--line);padding:.65rem 0}
.brief-history-meta {display:flex;align-items:center;flex-wrap:wrap;gap:.2rem .85rem;font-variant-numeric:tabular-nums;font-size:.77rem;color:var(--muted)}
.brief-empty-note {margin:.8rem 0;color:var(--muted);font-size:.88rem}
@container (max-width:52rem){
  .brief-workspace.with-card {grid-template-columns:minmax(0,1fr)}
  .brief-workspace.with-card .brief-list-scroll {max-height:14rem}
  .brief-card {max-height:none}
}
@container (max-width:32rem){
  .brief-toolbar input {width:100%;min-width:0}
  .brief-toolbar select {flex:1;min-width:0}
  .brief-tabs {gap:.15rem .9rem}
  .brief-table,.brief-table tbody {display:block}
  .brief-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .brief-table tbody tr {display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name date" "client client" "voters decision" "timer timer";align-items:center;gap:.22rem .65rem;padding:.65rem .55rem;border-bottom:1px solid var(--line)}
  .brief-table tbody td {display:block;min-width:0;padding:0;border:0}
  .brief-table td:first-child {grid-area:name;min-width:0}
  .brief-table td:nth-child(2) {grid-area:client;color:var(--muted);font-size:.82rem}
  .brief-table td:nth-child(3) {grid-area:date;align-self:start;font-size:.78rem;color:var(--muted)}
  .brief-table td:nth-child(4) {grid-area:voters;overflow-x:auto;scrollbar-width:thin}
  .brief-table td:nth-child(5) {grid-area:decision;justify-self:end}
  .brief-table td:nth-child(6) {grid-area:timer;justify-self:end}
  .brief-table tbody tr.is-selected {box-shadow:inset 2px 0 var(--link-underline)}
  .brief-table tbody tr.is-selected td:first-child {box-shadow:none}
}
@container (max-width:23rem){
  .brief-facts {grid-template-columns:minmax(0,1fr)}
}
