.sheet-v2 { padding:16px; min-width:0; }
.sheet-v2 * { box-sizing:border-box; }
.sheet-v2 label { display:grid; gap:6px; min-width:0; }
.sheet-v2 input,.sheet-v2 select,.sheet-v2 textarea { width:100%; min-width:0; min-height:48px; padding:10px; font:inherit; color:var(--text-primary); background:var(--card); border:1px solid var(--card-border); border-radius:8px; }
.sheet-v2 button { min-height:48px; padding:12px 16px; border:1px solid var(--card-border); border-radius:8px; font:inherit; cursor:pointer; }
.sheet-v2 button:disabled { opacity:.5; cursor:default; }
.sheet-toolbar,.sheet-actions,.sheet-intervals { display:flex; flex-wrap:wrap; gap:12px; align-items:end; }
.sheet-toolbar label { flex:1 1 240px; }
.sheet-intervals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.sheet-list { display:grid; gap:12px; }
.sheet-summary { padding:12px; border:1px solid var(--card-border); border-radius:8px; overflow-wrap:anywhere; }
.sheet-person { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; padding:16px; border:1px solid var(--card-border); border-radius:10px; }
.sheet-person > div:first-child { display:grid; gap:6px; flex:1 1 200px; }
.sheet-person em,.sheet-person span { color:var(--text-secondary); }
.sheet-person strong { overflow-wrap:anywhere; }
.sheet-v2 [data-sheet-form] { margin-top:16px; display:grid; gap:16px; padding:16px; border:1px solid var(--card-border); border-radius:10px; }
.sheet-v2 label.sheet-candidate { display:grid; grid-template-columns:32px minmax(0,1fr); align-items:center; min-height:48px; width:100%; text-align:left; margin:8px 0; }
.sheet-v2 .sheet-candidate input[type=checkbox] { width:24px; height:24px; min-height:24px; padding:0; }
.sheet-candidate[hidden] { display:none; }
.sheet-v2 [role=alert] { color:var(--neg-text); }
.sheet-v2 [data-sheet-management] { margin-top:24px; border-top:1px solid var(--card-border); padding-top:16px; }
.sheet-v2 [data-sheet-management] form { display:grid; gap:12px; margin:16px 0; }
.sheet-v2 pre { white-space:pre-wrap; overflow-wrap:anywhere; max-width:100%; }
.sheet-v2 details { overflow-wrap:anywhere; padding:8px 0; }
@media(max-width:600px) { .sheet-toolbar { display:grid; grid-template-columns:minmax(0,1fr); }.sheet-person { display:block; }.sheet-person .sheet-actions { margin-top:12px; }.sheet-actions button { flex:1 1 130px; } }

/* Context remains beside the person or action that opened the panel. */
.sheet-v2 .sheet-panel { flex-basis:100%; width:100%; min-width:0; border-left:4px solid var(--accent,#345f72); padding:16px; margin:12px 0; background:var(--card); border-radius:8px; }
.sheet-panel h3 { margin:0 0 12px; overflow-wrap:anywhere; }
.sheet-panel form { display:grid; gap:16px; }
.sheet-panel > button { margin-top:12px; }
.sheet-v2 .sheet-primary { background:var(--accent,#345f72); color:white; font-weight:700; }
.sheet-v2 .sheet-remove { color:var(--neg-text,#933); background:transparent; }
.sheet-feedback { flex-basis:100%; padding:12px; font-weight:600; }
.sheet-empty { padding:16px; border:1px dashed var(--card-border); border-radius:8px; }
.sheet-history-event { padding:12px 0; border-bottom:1px solid var(--card-border); }
.sheet-v2 .sheet-candidate { cursor:pointer; padding:8px; border:1px solid var(--card-border); border-radius:8px; }
.sheet-panel p,.sheet-panel span { overflow-wrap:anywhere; }
.sheet-v2 button:focus-visible,.sheet-v2 input:focus-visible { outline:3px solid var(--accent,#345f72); outline-offset:2px; }

.sheet-panel-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.sheet-panel-heading h3 { flex:1 1 220px; margin:0; }
.sheet-panel p { margin:8px 0; }
.sheet-v2 .sheet-panel [data-sheet-form] { margin:0; padding:12px; }
.sheet-v2 button[aria-expanded=true] { outline:3px solid var(--accent,#345f72); outline-offset:2px; }

/* Approved tablet hierarchy: two main actions, two periods, contextual editor. */
.sheet-v2 .sheet-self { border-left:4px solid var(--accent,#345f72); }
.sheet-action-status { padding:12px 0; font-weight:600; }
.sheet-period-work { grid-column:1/-1; }
.action-plan .action-report-secondary,button.action-report-secondary { width:auto; min-width:0; max-width:100%; min-height:44px; padding:10px 16px; justify-self:end; background:transparent; color:var(--text); font-size:14px; line-height:1.2; }
.planning-weights { font-size:14px; padding:10px 12px; }

.action-task .action-report-secondary { grid-column:2/-1; justify-self:end; white-space:normal; }
