/* HAVAL LAWYER / Unified task board 2.1: compact workflow, no duplicate legal list. */
#page-tasks{--hv-task-green:#176248;--hv-task-line:var(--line,#dbe5df)}
#page-tasks .hv-unified-compact{padding:10px 12px!important;margin:0 0 12px!important;border-color:var(--hv-task-line)!important;box-shadow:none!important}
#page-tasks .hv-unified-toolbar{display:flex;align-items:center;justify-content:space-between;gap:11px;flex-wrap:wrap}
#page-tasks .hv-unified-toolbar>strong{color:var(--ink);font-size:12px;white-space:nowrap}
#page-tasks .hv-unified-toolbar-filters{display:flex;align-items:end;justify-content:flex-end;flex-wrap:wrap;gap:7px;min-width:0}
#page-tasks .hv-unified-year-field{display:flex;flex-direction:column;gap:3px;color:var(--muted);font-size:9px;font-weight:750;min-width:94px}
#page-tasks .hv-unified-year-field input,#page-tasks .hv-unified-year-field select{height:31px!important;min-height:31px!important;max-width:150px;width:100%;border-radius:8px;font-size:11px;padding:4px 8px;background:var(--panel);color:var(--ink);border:1px solid var(--hv-task-line)}
#page-tasks .hv-unified-main-generate{height:32px;font-size:10px!important;white-space:nowrap;padding:5px 10px!important}
#page-tasks .hv-unified-toolbar #hvRcReload{height:32px;min-height:32px;font-size:10px;padding:5px 8px;white-space:nowrap}
#page-tasks .hv-unified-settings{border-top:1px solid var(--hv-task-line);margin:9px -1px 0;padding-top:6px}
#page-tasks .hv-unified-settings>summary{display:flex;align-items:center;gap:10px;padding:3px 2px;list-style:none;cursor:pointer;color:var(--hv-task-green);font-size:11px;font-weight:800}
#page-tasks .hv-unified-settings>summary::-webkit-details-marker{display:none}
#page-tasks .hv-unified-settings>summary small{margin-inline-start:auto;color:var(--muted);font-size:9px;font-weight:500}
#page-tasks .hv-unified-settings>summary svg{width:15px;height:15px;transition:transform .16s}
#page-tasks .hv-unified-settings[open]>summary svg{transform:rotate(180deg)}
#page-tasks .hv-unified-advanced-body{padding:12px 2px 3px;display:grid;gap:10px}
#page-tasks .hv-unified-advanced-body>.hv-rc-heading{padding:0 0 4px}
#page-tasks .hv-unified-advanced-body>.hv-rc-heading>div p{max-width:850px}
#page-tasks .hv-unified-advanced-body>.hv-rc-controls{margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
#page-tasks .hv-unified-advanced-body>.hv-rc-switches{margin:0}
#page-tasks .hv-unified-source-hidden,#portalView .hv-unified-source-hidden{display:none!important}
#page-tasks .hv-unified-sr-only{display:none!important}
#page-tasks .hv-unified-advanced-body .hv-rc-activation{padding-top:8px;margin-top:0}
#page-tasks .hv-unified-advanced-body .hv-rc-actions{margin:8px 0 0}
#page-tasks .hv-unified-advanced-body .hv-rc-caution{margin:0}
#page-tasks .task-board{align-items:start;gap:10px}
#page-tasks .task-lane{border-radius:12px;background:var(--panel);border:1px solid var(--hv-task-line);min-height:130px}
#page-tasks .task-lane-head{padding:10px 11px;background:var(--panel)}
#page-tasks .task-lane-title{font-size:12px}
#page-tasks .task-lane-body{padding:7px;gap:6px;min-height:70px}
#page-tasks .task-card{padding:9px;border-radius:9px;border-color:var(--hv-task-line);box-shadow:none}
#page-tasks .task-card:hover{transform:none;border-color:#b8d7c3;box-shadow:0 3px 12px #112f2510}
#page-tasks .task-card h4{font-size:12px;margin:0 0 4px}
#page-tasks .task-card p{font-size:10px}
#page-tasks .hv-recurring-task-card{border-inline-start:3px solid #277858;padding:9px!important;cursor:default;background:var(--panel);opacity:1}
#page-tasks .hv-recurring-task-card .task-period{font-size:9px;color:var(--hv-task-green);background:#e8f5ee;font-weight:750;border-radius:6px}
#page-tasks .hv-recurring-task-card .hv-unified-law-chip{font-size:9px;color:var(--muted);background:var(--bg);border:1px solid var(--hv-task-line);padding:2px 5px;border-radius:5px}
#page-tasks .hv-recurring-task-card h4{line-height:1.55}
#page-tasks .hv-unified-period{font-size:10px;color:var(--muted);font-weight:650;white-space:nowrap}
#page-tasks .hv-unified-task-meta{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:6px 0 0;flex-wrap:wrap}
#page-tasks .hv-unified-task-meta small{font-size:9px;color:var(--muted);line-height:1.6}
#page-tasks .hv-unified-task-details{border-top:1px solid var(--hv-task-line);margin-top:8px;padding-top:5px}
#page-tasks .hv-unified-task-details summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;color:var(--hv-task-green);font-weight:750;font-size:10px;cursor:pointer;min-height:25px}
#page-tasks .hv-unified-task-details summary::-webkit-details-marker{display:none}
#page-tasks .hv-unified-task-details summary span{font-size:9px;color:var(--muted)}
#page-tasks .hv-unified-task-info{color:var(--muted);font-size:9px;margin:6px 0;line-height:1.6}
#page-tasks .hv-unified-files{display:grid;gap:4px;margin:7px 0}
#page-tasks .hv-unified-files small{font-size:10px;color:var(--muted)}
#page-tasks .hv-unified-fileline{display:flex;align-items:center;gap:5px;justify-content:space-between;border:1px solid var(--hv-task-line);border-radius:7px;padding:4px 6px;min-width:0}
#page-tasks .hv-unified-fileline button{font-size:10px;text-align:start;background:transparent;border:0;color:var(--hv-task-green);cursor:pointer;overflow-wrap:anywhere;min-width:0}
#page-tasks .hv-unified-fileline button.hv-unified-delete{color:#c04444;min-width:28px;flex:none;display:grid;place-items:center}
#page-tasks .hv-unified-fileline .hv-unified-delete svg{width:14px;height:14px}
#page-tasks .hv-unified-task-actions{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}
#page-tasks .hv-unified-task-actions button{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid var(--hv-task-line);border-radius:7px;background:var(--panel);color:var(--ink);font-size:10px;cursor:pointer}
#page-tasks .hv-unified-task-actions svg{width:13px;height:13px}
#page-tasks .hv-unified-task-status{display:flex;align-items:center;gap:5px}
#page-tasks .hv-unified-task-status select{min-width:0;flex:1;height:31px;font-size:10px;border:1px solid var(--hv-task-line);border-radius:7px;color:var(--ink);background:var(--panel)}
#page-tasks .hv-unified-task-status button{white-space:nowrap;border-radius:7px;background:#176248;color:white;border:0;min-height:31px;padding:5px 8px;font-size:10px;font-weight:750;cursor:pointer}
#page-tasks .hv-unified-compact :is(button,input,select,summary):focus-visible,
#page-tasks .hv-recurring-task-card :is(button,select,summary):focus-visible{outline:2px solid #bc923c;outline-offset:2px}
#page-tasks .hv-rc-file-line{display:inline-flex;align-items:center;gap:4px}
#page-tasks .hv-rc-file-delete{border:0;background:transparent;color:#bd4242;font-size:10px;cursor:pointer}
@media(max-width:1150px){#page-tasks .task-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){#page-tasks .task-board{grid-template-columns:minmax(0,1fr)}
#page-tasks .hv-unified-toolbar{align-items:stretch;flex-direction:column}
#page-tasks .hv-unified-toolbar-filters{justify-content:flex-start}
#page-tasks .hv-unified-year-field{min-width:95px;flex:1 1 95px}
#page-tasks .hv-unified-settings>summary small{display:none}
#page-tasks .hv-unified-advanced-body>.hv-rc-controls{grid-template-columns:minmax(0,1fr)}
#page-tasks .hv-unified-main-generate{flex:1 1 auto}
}
#portalView #hvRecurringClient.hv-unified-client-bar{padding:9px 11px;margin:0 0 10px;box-shadow:none}
#portalView #hvRecurringClient.hv-unified-client-bar>header{margin-bottom:6px;gap:6px}
#portalView #hvRecurringClient.hv-unified-client-bar h2{font-size:12px}
#portalView #hvRecurringClient.hv-unified-client-bar header p{font-size:10px}
#portalView .hv-unified-client-bar .hv-rec-client-filters{margin:0 0 4px}
#portalView .hv-unified-client-bar .hv-rec-client-filters input,
#portalView .hv-unified-client-bar .hv-rec-client-filters select{height:32px}
#portalView #hvRecurringClient.hv-unified-client-bar #hvRecurringClientMessage{margin:2px 0;font-size:10px}
#portalView .hv-recurring-client-card{cursor:default;border-inline-start:3px solid #277858}
#portalView .hv-recurring-client-card h4{font-size:12px;line-height:1.6}
#portalView .hv-recurring-client-card .hv-unified-law-chip{font-size:9px;color:var(--muted)}
#portalView .hv-recurring-client-card .hv-unified-task-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:10px}
#portalView .hv-recurring-client-card .hv-unified-task-details{border-top:1px solid var(--line);padding-top:7px;margin-top:7px}
#portalView .hv-recurring-client-card .hv-unified-task-details summary{font-size:10px;color:var(--ok);cursor:pointer;font-weight:750}
#portalView .hv-recurring-client-card .hv-unified-task-details .hv-unified-task-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
#portalView .hv-recurring-client-card .hv-unified-task-actions button{display:inline-flex;align-items:center;gap:4px;color:var(--ok);background:transparent;border:1px solid var(--line);border-radius:7px;padding:5px 8px;font-size:10px;cursor:pointer}
#portalView .hv-recurring-client-card .hv-unified-task-actions svg{width:13px;height:13px}

/* v3 correction: four original cards are the ONLY place where tasks are shown.
   The giant draft/preview table and duplicate saved list are never displayed. */
#page-tasks .hv-tasks-legacy-hidden,
#portalView .hv-tasks-legacy-hidden{display:none!important}
#page-tasks .hv-simplified-recurring{margin:0 0 10px!important;padding:8px 12px!important;border:1px solid var(--line)!important;border-radius:11px!important}
#page-tasks .hv-tasks-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;min-height:34px}
#page-tasks .hv-tasks-toolbar-title{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
#page-tasks .hv-tasks-toolbar-title strong{color:var(--ink);font-size:12px}
#page-tasks .hv-tasks-toolbar-title small{color:var(--muted);font-size:10px}
#page-tasks .hv-tasks-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
#page-tasks .hv-tasks-filter{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;font-weight:700;white-space:nowrap}
#page-tasks .hv-tasks-filter input,#page-tasks .hv-tasks-filter select{border:1px solid var(--line);border-radius:8px;height:32px;padding:4px 7px;color:var(--ink);background:var(--panel);font-size:11px;font-family:inherit;max-width:155px;min-width:85px}
#page-tasks .hv-tasks-filter-year{display:none!important}
#page-tasks #hvRcGenerate.hv-tasks-generate,#page-tasks #hvRcReload.hv-tasks-reload{border-radius:8px;height:32px;min-height:32px;font-size:10px;padding:4px 9px;white-space:nowrap}
#page-tasks .hv-tasks-settings{margin:7px 0 0;border-top:1px solid var(--line);padding:5px 0 0}
#page-tasks .hv-tasks-settings>summary{display:flex;align-items:center;gap:6px;color:var(--ok,#176248);font-size:10px;font-weight:800;cursor:pointer;list-style:none;width:max-content;max-width:100%;padding:4px 2px}
#page-tasks .hv-tasks-settings>summary::-webkit-details-marker{display:none}
#page-tasks .hv-tasks-settings>summary svg{width:14px;height:14px}
#page-tasks .hv-tasks-settings[open]>summary svg:last-child{transform:rotate(180deg)}
#page-tasks .hv-tasks-settings>.hv-rc-activation{margin:7px 0 3px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
#page-tasks .hv-tasks-settings .hv-rc-activation header small{max-width:800px}
#page-tasks .hv-tasks-settings .hv-rc-actions{margin:9px 0 0}
#page-tasks .hv-tasks-alert{display:block;color:var(--muted);font-size:10px;line-height:1.5}
#page-tasks .task-board{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start}
#page-tasks .task-lane{min-width:0;min-height:140px;overflow:hidden;border-radius:12px}
#page-tasks .task-lane-head{position:sticky;top:0;z-index:2;padding:10px 12px}
#page-tasks .task-lane-body{max-height:min(63vh,750px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:8px;min-width:0}
#page-tasks .task-lane-body .task-empty.hidden{display:none!important}
#page-tasks .task-card.hv-legal-task{background:var(--panel);padding:9px!important;border:1px solid var(--line);border-inline-start:3px solid #177050;border-radius:9px;box-shadow:none;min-width:0;cursor:default}
#page-tasks .hv-legal-task-head{display:flex;justify-content:space-between;align-items:start;gap:6px;font-size:11px;line-height:1.5;color:var(--ink)}
#page-tasks .hv-legal-task-head strong{min-width:0;overflow-wrap:anywhere;font-size:11px}
#page-tasks .hv-legal-task-head>span{font-size:9px;white-space:nowrap;color:var(--muted);flex:none}
#page-tasks .hv-legal-task-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin-top:7px}
#page-tasks .hv-legal-task-meta small{font-size:9px;color:var(--muted);line-height:1.5}
#page-tasks .hv-legal-status{font-size:9px;font-weight:750;border-radius:6px;padding:3px 6px;background:#e9ede9;color:#637067}
#page-tasks .hv-legal-status.status-completed{background:#e1f4e7;color:#146a42}
#page-tasks .hv-legal-status.status-overdue{background:#fbe8e8;color:#a64040}
#page-tasks .hv-legal-status.status-soon{background:#fff0d4;color:#986111}
#page-tasks .hv-legal-expand{margin-top:7px;padding-top:5px;border-top:1px solid var(--line);font-size:10px}
#page-tasks .hv-legal-expand>summary{display:flex;justify-content:space-between;align-items:center;gap:6px;color:var(--ok,#176248);font-weight:750;list-style:none;cursor:pointer;padding:3px 0}
#page-tasks .hv-legal-expand>summary::-webkit-details-marker{display:none}
#page-tasks .hv-legal-expand>summary svg{width:14px;height:14px}
#page-tasks .hv-legal-expand[open]>summary svg{transform:rotate(180deg)}
#page-tasks .hv-legal-range{font-size:9px;line-height:1.6;color:var(--muted);margin:5px 0}
#page-tasks .hv-legal-files{display:grid;gap:4px;margin:6px 0}
#page-tasks .hv-legal-files>small{color:var(--muted)}
#page-tasks .hv-legal-file{display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:6px;padding:3px 5px;min-width:0}
#page-tasks .hv-legal-file button{border:0;background:transparent;color:var(--ok,#176248);font-family:inherit;font-size:9px;overflow-wrap:anywhere;cursor:pointer;min-width:0;text-align:start}
#page-tasks .hv-legal-file .hv-legal-delete{color:#c34343;margin-inline-start:auto;flex:none;min-width:22px;display:grid;place-items:center}
#page-tasks .hv-legal-delete svg{width:14px;height:14px}
#page-tasks .hv-legal-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:7px 0 4px}
#page-tasks .hv-legal-actions button{font-size:9px;color:var(--ok,#176248);background:var(--panel);border:1px solid var(--line);border-radius:7px;padding:5px 7px;cursor:pointer;font-weight:750}
#page-tasks .hv-legal-actions select{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:7px;font-size:10px;padding:5px;flex:1;min-width:100px;max-width:100%}
#page-tasks .hv-legal-actions button[data-hv-rec-action="save"]{background:#176248;color:white;border-color:#176248}
#page-tasks :is(.hv-tasks-toolbar,.hv-legal-task,.hv-tasks-settings) :is(button,input,select,summary):focus-visible{outline:2px solid #ba913d;outline-offset:2px}
@media(max-width:1160px){#page-tasks .task-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#page-tasks .task-board{grid-template-columns:minmax(0,1fr)}
 #page-tasks .task-lane-body{max-height:60vh}
 #page-tasks .hv-tasks-toolbar{align-items:start;flex-direction:column}
 #page-tasks .hv-tasks-filter{min-width:0;flex:1 1 auto}
 #page-tasks #hvRcGenerate.hv-tasks-generate{flex:1 1 auto}
}
#portalView .hv-client-simple-tasks{padding:9px 12px;margin-bottom:10px}
#portalView .hv-client-simple-tasks .hv-tasks-legacy-hidden{display:none!important}
#portalView .hv-client-simple-tasks header{margin:0 0 6px}
#portalView .hv-client-simple-tasks h2{font-size:12px}
#portalView .hv-client-simple-tasks .hv-rec-client-filters{margin:0}
#portalView .hv-client-simple-tasks .hv-rec-client-filters input,
#portalView .hv-client-simple-tasks .hv-rec-client-filters select{height:32px}
#portalView .hv-legal-task{padding:9px;border-inline-start:3px solid #176248}
#portalView .hv-legal-task-head{display:flex;align-items:start;justify-content:space-between;gap:6px;font-size:11px}
#portalView .hv-legal-task-head span{font-size:10px;color:var(--muted)}
#portalView .hv-legal-task-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:10px;margin:6px 0}
#portalView .hv-legal-status{font-weight:750;border-radius:5px;padding:3px 6px;background:#e8ede9;color:#344b3c}
#portalView .hv-legal-expand{border-top:1px solid var(--line);padding-top:6px;margin-top:6px;font-size:10px}
#portalView .hv-legal-expand summary{color:var(--ok,#176248);font-weight:750;cursor:pointer}
#portalView .hv-legal-expand .hv-legal-actions{display:flex;gap:6px;margin-top:7px;flex-wrap:wrap}
#portalView .hv-legal-expand button{border:1px solid var(--line);border-radius:6px;color:var(--ok,#176248);background:transparent;font-size:10px;padding:5px 7px;cursor:pointer}

/* Full task history — discreet year separators, identical behavior in four lanes. */
#page-tasks .hv-year-divider,#portalView .hv-year-divider{display:flex;align-items:center;gap:8px;width:100%;min-width:0;margin:9px 0 5px;color:var(--muted);font-size:10px;font-weight:800;line-height:1;letter-spacing:.01em;pointer-events:none}
#page-tasks .hv-year-divider::after,#portalView .hv-year-divider::after{content:"";flex:1;height:1px;background:var(--line,#dce5df);min-width:10px}
#page-tasks .hv-year-divider span,#portalView .hv-year-divider span{white-space:nowrap;padding:3px 6px;border-radius:5px;background:var(--bg,#f7f8f7)}
#page-tasks .hv-history-instance,#portalView .hv-history-instance{border-inline-start-color:#889b90!important}
#page-tasks .hv-history-instance.completed,#portalView .hv-history-instance.completed{opacity:.84}
#page-tasks .hv-task-year-divider+.task-card{margin-top:0}
#page-tasks .hv-simplified-recurring .hv-tasks-toolbar-title small{display:none}
#page-tasks .hv-simplified-recurring .hv-tasks-settings>.hv-tasks-filter,#page-tasks .hv-simplified-recurring .hv-tasks-settings>.hv-tasks-generate{margin:7px 6px 5px 0}
#page-tasks .hv-simplified-recurring .hv-tasks-settings>.hv-tasks-filter{display:inline-flex;gap:6px}
#page-tasks .hv-simplified-recurring .hv-tasks-settings>.hv-tasks-filter input,#page-tasks .hv-simplified-recurring .hv-tasks-settings>.hv-tasks-filter select{height:33px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);padding:5px 8px;font-size:11px}
#page-tasks .hv-simplified-recurring .hv-tasks-settings>.hv-tasks-generate{height:33px;font-size:11px;min-height:33px;padding:5px 9px}
#page-tasks .hv-simplified-recurring .hv-tasks-tools>.hv-tasks-reload{height:33px}
#page-tasks .hv-simplified-recurring .hv-tasks-tools{gap:6px}
#portalView .hv-client-simple-tasks .hv-tasks-legacy-hidden{display:none!important}
#page-tasks .hv-year-divider:first-child,#portalView .hv-year-divider:first-child{margin-top:0}

/* Task evidence compactness, linked renewals, and full lane focus. */
#page-tasks .hv-legal-file,#portalView .hv-legal-file{display:inline-flex;align-items:center;gap:3px;width:auto;min-width:0;padding:3px}
#page-tasks .hv-legal-file .hv-proof-icon,#portalView .hv-proof-icon{display:inline-grid;place-items:center;min-width:30px;min-height:30px;border:1px solid var(--line,#dce5df);border-radius:7px;background:var(--panel,#fff);color:var(--ok,#176248);cursor:pointer;padding:5px}
#page-tasks .hv-proof-icon svg,#portalView .hv-proof-icon svg{width:16px;height:16px}
#page-tasks .hv-legal-files,#portalView .hv-legal-files{display:flex;flex-wrap:wrap;gap:5px}
#page-tasks .hv-legal-note{border:1px solid var(--line);border-radius:8px;background:var(--bg);padding:8px;overflow-wrap:anywhere;margin:7px 0}
#page-tasks .hv-legal-note strong{display:block;font-size:10px}
#page-tasks .hv-legal-note p{font-size:10px;color:var(--muted);margin:5px 0;line-height:1.7;white-space:pre-wrap}
#page-tasks .hv-legal-note button{border:1px solid var(--line);border-radius:6px;padding:5px 7px;background:var(--panel);color:var(--ok);font-size:10px;cursor:pointer}
#page-tasks .hv-linked-renewal,#portalView .hv-linked-renewal{border-inline-start:3px solid #b18b39!important}
#page-tasks .hv-linked-description{margin-top:7px;font-size:9px;line-height:1.65;color:var(--muted)}
#page-tasks .task-lane-head,#portalView .task-lane-head{display:flex;align-items:center}
#page-tasks .hv-lane-focus-btn,#portalView .hv-lane-focus-btn{display:inline-grid;place-items:center;flex:none;min-width:28px;min-height:28px;margin-inline-start:6px;border:1px solid var(--line,#dce5df);border-radius:8px;background:var(--panel,#fff);color:var(--ink,#173a29);cursor:pointer}
#page-tasks .hv-lane-focus-btn svg,#portalView .hv-lane-focus-btn svg{width:15px;height:15px}
.hv-lane-modal-open{overflow:hidden!important}
.hv-lane-backdrop{position:fixed;inset:0;z-index:9900;background:#0c211bbc;backdrop-filter:blur(2px)}
#page-tasks .task-lane.hv-lane-maximized,#portalView .task-lane.hv-lane-maximized{position:fixed!important;inset:clamp(12px,3vw,38px)!important;z-index:9901!important;display:flex!important;flex-direction:column!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;background:var(--panel,#fff);box-shadow:0 24px 90px #0004;border-radius:16px;overflow:hidden}
#page-tasks .hv-lane-maximized .task-lane-body,#portalView .hv-lane-maximized .task-lane-body{flex:1;max-height:none!important;min-height:0;overflow:auto!important;padding:13px}
#page-tasks .hv-lane-maximized .task-card,#portalView .hv-lane-maximized .task-card{max-width:850px;margin-inline:auto;width:100%}
#page-tasks .hv-lane-maximized .hv-lane-focus-btn svg,#portalView .hv-lane-maximized .hv-lane-focus-btn svg{transform:rotate(180deg)}
@media(max-width:650px){#page-tasks .task-lane.hv-lane-maximized,#portalView .task-lane.hv-lane-maximized{inset:8px!important}}
.hv-legal-proof-dialog{border:1px solid var(--line,#dce5df);border-radius:14px;background:var(--panel,#fff);color:var(--ink,#183d2b);width:min(96vw,1060px);height:min(92dvh,900px);max-width:none;max-height:none;padding:0;box-shadow:0 24px 100px #0005;overflow:hidden}
.hv-legal-proof-dialog::backdrop{background:#10241cc4;backdrop-filter:blur(2px)}
.hv-proof-shell{display:flex;flex-direction:column;height:100%;min-height:0}
.hv-proof-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:54px;border-bottom:1px solid var(--line,#dce5df);padding:9px 14px}
.hv-proof-bar strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hv-proof-bar>div{display:flex;gap:7px;align-items:center;flex:none}
.hv-proof-bar a,.hv-proof-bar button{display:inline-flex;align-items:center;gap:6px;justify-content:center;background:transparent;border:1px solid var(--line,#dce5df);color:inherit;padding:7px 9px;border-radius:8px;font-size:11px;cursor:pointer;text-decoration:none}
.hv-proof-bar svg{width:15px;height:15px}
.hv-proof-content{flex:1;min-height:0;display:grid;place-items:center;background:var(--bg,#f6f8f6);color:var(--muted,#54645a);font-size:12px;overflow:auto}
.hv-proof-content iframe{height:100%;width:100%;border:0;background:white}
.hv-proof-content img{max-width:100%;max-height:100%;object-fit:contain}
@media(max-width:600px){.hv-legal-proof-dialog{width:99vw;height:96dvh}.hv-proof-bar{padding:7px}.hv-proof-bar strong{font-size:10px;max-width:45vw}}
