.workspace-shell { display:flex; width:100%; min-width:0; min-height:100dvh; }
.auth-screen { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); width:100%; min-height:100dvh; background:var(--canvas); }
.auth-screen .welcome-copy { padding:clamp(30px,5vw,90px); min-height:100dvh; align-items:stretch; }
.auth-screen .welcome-copy>* { width:100%; max-width:420px; margin-left:auto; margin-right:auto; }
.auth-screen .welcome-copy h1 { font-size:clamp(30px,3.2vw,46px); letter-spacing:-1.4px; line-height:1.13; margin-top:15px; margin-bottom:15px; }
.auth-screen .welcome-copy>p { line-height:1.6; }
.auth-screen .welcome-art { grid-row:auto; min-height:100%; aspect-ratio:auto; }
.auth-screen .welcome-art img,.auth-screen .welcome-art video { object-fit:cover; object-position:center; }
.auth-form { margin-top:24px; }
.auth-form fieldset { padding:0; margin:0; border:0; min-width:0; }
.auth-form label { display:block; font-size:12px; margin:18px 0 8px; color:var(--ink); }
.auth-form input,.auth-form select { width:100%; min-width:0; font-size:14px; min-height:44px; }
.auth-form .button { min-height:44px; margin-top:24px; }
.auth-form h2 { font-size:20px; line-height:1.4; }
.auth-form>p { margin-top:8px; font-size:12px; line-height:1.6; }
.auth-hint { display:block; font-size:11px; color:var(--muted); margin-top:7px; line-height:1.5; }
.welcome-copy .auth-status,.auth-status { color:var(--muted); font-size:12px; line-height:1.6; margin-top:18px; }
.auth-error,.welcome-copy .auth-error { margin-top:16px; padding:11px 13px; font-size:12px; line-height:1.6; color:#ffb7c4; border:1px solid #70434e; background:#27151b; border-radius:8px; overflow-wrap:anywhere; }
.account-actions { display:flex; flex-wrap:wrap; gap:7px; padding:0 0 18px; }
.account-actions .button { padding:7px 8px; min-height:35px; font-size:10px; flex:1 1 auto; }
.account-actions #manage-users { flex-basis:100%; }
.account-notice { font-size:10px; line-height:1.5; overflow-wrap:anywhere; margin:0 0 10px; }
.account-dialog { margin:auto; width:min(740px,calc(100vw - 32px)); max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); padding:26px; border:1px solid var(--line-strong); border-radius:14px; overflow:auto; }
.password-dialog { width:min(460px,calc(100vw - 32px)); }
.account-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.account-dialog-heading h2 { font-size:23px; letter-spacing:-.5px; }
.account-dialog .auth-form { margin-top:10px; }
.account-dialog .auth-form .primary { width:100%; }
.account-form-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:18px; }
.account-form-grid>div { min-width:0; }
.create-user-form { border-top:1px solid var(--line); padding-top:24px; }
.create-user-form h3 { font-size:17px; margin:0; }
.users-list { margin:16px 0 28px; }
.user-row { display:flex; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); }
.user-identity { display:flex; flex-direction:column; gap:5px; min-width:0; flex:1; overflow-wrap:anywhere; }
.user-identity strong { font-size:13px; font-weight:600; }
.user-identity span,.user-identity small { font-size:11px; color:var(--muted); line-height:1.4; }
.user-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; min-width:0; flex:0 1 440px; }
.user-actions select { font-size:12px; min-height:38px; max-width:170px; padding:8px; }
.user-actions .button { font-size:11px; min-height:38px; padding:8px 10px; }
.auth-screen #retry-session { margin-top:14px; }
@media(max-width:900px) and (min-width:580px) {
  .auth-screen { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .auth-screen .welcome-copy { padding:36px 24px; }
  .auth-screen .welcome-copy h1 { font-size:30px; }
}
@media(max-width:700px) {
  .workspace-shell { display:block; }
  .workspace-shell .sidebar { height:auto; min-height:62px; padding:13px 16px; flex-wrap:wrap; }
  .workspace-shell .sidebar-bottom { display:flex; align-items:center; flex-wrap:wrap; flex:1 1 100%; gap:8px; }
  .workspace-shell .profile { display:flex; flex:1 1 auto; border:0; padding:0; min-width:0; }
  .workspace-shell .profile-version { display:none; }
  .workspace-shell .profile>div { min-width:0; overflow-wrap:anywhere; }
  .workspace-shell .account-actions { display:flex; flex-wrap:wrap; padding:0; gap:6px; }
  .workspace-shell .account-actions #manage-users { flex-basis:auto; }
  .workspace-shell .quiet-button { display:none; }
  .workspace-shell .account-notice { flex-basis:100%; margin:0; }
}
@media(max-width:579px) {
  .auth-screen { grid-template-columns:minmax(0,1fr); }
  .auth-screen .welcome-art { grid-row:1; width:100%; height:min(100vw,48dvh); aspect-ratio:auto; min-height:0; max-height:none; }
  .auth-screen .welcome-copy { padding:28px 24px 34px; min-height:0; }
  .auth-screen .welcome-copy h1 { font-size:32px; }
  .account-dialog { padding:20px 16px; }
  .account-form-grid { grid-template-columns:minmax(0,1fr); }
  .user-row { align-items:flex-start; flex-direction:column; gap:12px; }
  .user-actions { width:100%; flex:auto; justify-content:flex-start; }
  .user-actions select { flex:1 1 100%; max-width:none; }
  .user-actions .button { flex:none; }
}
/* 0.3: full-width workspace and persistent cover. */
#auth-title,.neon-brand { color:#edfbff; text-shadow:0 0 7px #b5edff99,0 0 23px #73d9ff66,0 0 48px #41b5ff44; }
.login-footer { display:flex; justify-content:space-between; color:var(--muted); font-size:10px; letter-spacing:2px; padding-top:38px; }
#continue-board { margin-top:28px; }
.workspace-shell { flex-direction:column; min-height:100dvh; }
.workspace-topbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:14px 24px; border-bottom:1px solid var(--line); width:100%; }
.neon-brand { font-size:21px; font-weight:650; text-decoration:none; letter-spacing:-.6px; }
.topbar-account { display:flex; align-items:center; flex-wrap:wrap; gap:18px; }
.topbar-account .profile { display:flex; align-items:center; gap:9px; padding:0; border:0; }
.topbar-account .profile small { display:block; }
.topbar-account .profile-version { display:none; }
.topbar-account .account-actions { padding:0; gap:8px; }
.topbar-account .account-actions #manage-users { flex-basis:auto; }
.topbar-account .account-actions .button { font-size:12px; }
.workspace-shell .main { width:100%; max-width:none; padding:0 24px; }
.board-heading { padding-top:22px; padding-bottom:20px; min-height:0; }
.board-heading h1 { font-size:30px; }
.board-tabs { gap:18px; align-items:center; }
.board-tabs #manage-columns { margin-left:auto; }
.board-tabs .text-button { display:flex; align-items:center; gap:8px; padding:14px 0; }
.workspace-shell .board { display:grid; grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(220px,1fr); min-height:calc(100dvh - 310px); }
.workspace-shell .board.archive-view { grid-auto-flow:row; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); grid-auto-columns:auto; align-content:start; align-items:start; }
.column-setting { display:flex; gap:14px; align-items:center; padding:16px 0; border-bottom:1px solid var(--line); }
.column-setting strong { flex:1; overflow-wrap:anywhere; min-width:0; }
.column-setting span { color:var(--muted); font-size:12px; }
#add-column-form { align-items:end; margin-top:20px; }
#add-column-form .field { flex:1; min-width:0; }
#remove-column-form p { font-size:14px; line-height:1.6; }
@media(max-width:700px) {
 .workspace-topbar { padding:14px 16px; gap:12px; }
 .topbar-account { gap:10px; width:100%; justify-content:space-between; }
 .topbar-account .profile { display:flex; font-size:11px; }
 .workspace-shell .main { padding:0 12px; }
 .workspace-shell .board { grid-auto-columns:minmax(240px,82vw); }
 .board-heading { padding:20px 0 12px; }
 .column-setting { flex-wrap:wrap; }
 #add-column-form { flex-wrap:wrap; }
}
.auth-screen .welcome-copy { position:relative; padding-bottom:80px; }
.auth-screen .welcome-copy>.login-footer { position:absolute; bottom:24px; left:24px; right:24px; width:auto; max-width:420px; padding-top:0; }
.project-navigation { display:flex; flex-wrap:wrap; align-items:end; gap:10px; padding:18px 0 0; }
.project-navigation label { display:flex; flex-direction:column; gap:6px; font-size:11px; color:var(--muted); min-width:0; }
.project-navigation select { min-width:150px; max-width:280px; }
.project-navigation .button { min-height:39px; }
.attachment-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); }
.attachment-row img { width:90px; height:70px; object-fit:cover; border-radius:8px; }
.attachment-row a { overflow-wrap:anywhere; min-width:0; color:var(--ink); }
.attachment-row small { color:var(--muted); }
.attachment-row button { margin-left:auto; }
#unsaved-text { width:100%; margin-top:14px; }
#show-unsaved { align-self:flex-start; padding:10px 0; }
@media(max-width:579px) {.project-navigation label {flex:1 1 60%;}.project-navigation select {width:100%;max-width:none;}.project-navigation .button {flex:0 0 auto;}}

#storage-dialog { padding: 24px; max-width: min(620px, calc(100vw - 24px)); overflow-wrap: anywhere; }
#storage-dialog p { margin: 16px 0; line-height: 1.6; }
#storage-dialog details { margin-top: 20px; }
.neon-cyan { --neon: #72e6ff; } .neon-mint { --neon: #66ffbc; } .neon-lime { --neon: #ccff66; } .neon-violet { --neon: #b99aff; } .neon-pink { --neon: #ff80cd; } .neon-orange { --neon: #ffb367; } .neon-blue { --neon: #7ca7ff; } .neon-white { --neon: #edf8ff; }
.board-path {display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-width:0;}
.path-part {font:inherit;letter-spacing:inherit;color:inherit;background:none;border:0;padding:4px 0;cursor:pointer;overflow-wrap:anywhere;text-align:left;border-bottom:2px solid var(--neon);}
.path-part:hover,.path-part:focus-visible {color:var(--neon);text-shadow:0 0 18px color-mix(in srgb,var(--neon) 35%,transparent);}
.path-separator {color:#6c7682;font-weight:400;}
.column {border-top:4px solid var(--neon,#72e6ff);}
.column .column-dot {background:var(--neon,#72e6ff);box-shadow:0 0 9px color-mix(in srgb,var(--neon) 40%,transparent);}
#properties-dialog {width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:26px;border:1px solid #343d48;border-radius:16px;background:#0c1015;color:#eef2f7;}
.properties-heading,.properties-footer {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.properties-heading h2 {margin:6px 0;overflow-wrap:anywhere;}.properties-heading small {color:#9aa7b5;}
#properties-form {display:grid;gap:20px;}#properties-form input,#properties-form textarea,#properties-form select {width:100%;min-width:0;}
.palette-field {border:0;padding:0;margin:0;}.palette-field legend {margin-bottom:12px;}
.neon-palette {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.neon-swatch {display:flex;align-items:center;gap:7px;padding:12px 7px;border:1px solid #303943;border-radius:8px;cursor:pointer;font-size:12px;}
#properties-form .neon-swatch input {width:auto;accent-color:var(--neon);}.swatch-dot {width:10px;height:10px;background:var(--neon);border-radius:50%;flex-shrink:0;}
.neon-swatch:has(input:checked) {border-color:var(--neon);background:color-mix(in srgb,var(--neon) 8%,#0c1015);}
.resource-row {display:grid;grid-template-columns:115px 1fr 1.4fr 32px;gap:9px;margin-top:12px;align-items:end;}.resource-row label {display:grid;gap:6px;font-size:12px;color:#aeb9c8;min-width:0;}
.properties-footer {justify-content:flex-end;}#properties-error {color:#ff9ab1;}
.column-color-label {display:grid;gap:4px;font-size:12px;}.column-color-label select {max-width:140px;}
@media(max-width:600px){.board-path{font-size:28px;gap:8px}.neon-palette{grid-template-columns:repeat(2,minmax(0,1fr));}.resource-row{grid-template-columns:1fr 1fr 30px;}.resource-row label:nth-child(3){grid-column:1/3;}.resource-row button{grid-column:3;grid-row:1/3;}#properties-dialog{padding:18px;}.column-setting{flex-wrap:wrap;}}

#properties-dialog{border-top:4px solid var(--neon,#72e6ff);}
.view-switch{display:flex;gap:6px;margin:12px 0 16px;}.view-switch [aria-pressed="true"]{border-color:#72e6ff;background:#17303b;color:#c7f6ff;}
#graph-legend{font-size:12px;margin-bottom:16px;line-height:1.7;}#graph-legend>span{display:inline-block;margin:0 16px 8px 0;}#graph-selection{color:#aebaca;margin:2px 0;}
.relation-blocker{color:#ff657e;}.relation-parallel{color:#72a7ff;}.relation-resolved{color:#66ffbc;}.relation-soft{color:#ffdf73;}
.relation-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 0;border-bottom:1px solid #303a45;font-size:12px;}.relation-row>span:nth-child(2){flex:1;min-width:120px;overflow-wrap:anywhere;}
.board.graph-view{position:relative;display:flex;flex-direction:column;align-items:center;gap:54px;overflow:visible;min-height:0;flex:none;padding:12px 16px 36px;}
.graph-view .column{width:78%;min-height:110px;flex:none;padding-bottom:16px;position:relative;z-index:1;}
.graph-view .column:first-of-type{width:100%;}.graph-view .column:nth-of-type(2){width:92%;}.graph-view .column:last-of-type{width:62%;}
.graph-view .column-header{padding-top:13px;padding-bottom:13px;}.graph-view .card-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;padding-bottom:14px;min-height:0;overflow:visible;flex:none;}.graph-view .task-card{margin:0;max-width:360px;position:relative;transition:opacity .15s,border-color .15s;}.graph-view .empty-column{min-height:30px;}
.task-edges{position:absolute;left:0;top:0;pointer-events:none;z-index:2;overflow:visible;}.task-edge{fill:none;stroke-width:1.4;opacity:.26;transition:opacity .15s,stroke-width .15s;}.edge-blocker{stroke:#ff657e;}.edge-parallel{stroke:#72a7ff;}.edge-resolved{stroke:#66ffbc;}.edge-soft{stroke:#ffdf73;}.arrow-blocker{fill:#ff657e;}.arrow-parallel{fill:#72a7ff;}.arrow-resolved{fill:#66ffbc;}.arrow-soft{fill:#ffdf73;}
.graph-focused .task-card:not(.graph-related){opacity:.25;}.graph-focused .task-edge:not(.edge-active){opacity:.055;}.task-edge.edge-active{opacity:1;stroke-width:2.5;}.graph-view .graph-related{border-color:#9ba9ba;}.graph-view .graph-selected{border-color:#72e6ff;box-shadow:0 0 15px #72e6ff25;}
@media(max-width:600px){.board.graph-view{padding:10px 6px 30px;gap:42px;}.graph-view .column,.graph-view .column:nth-of-type(2),.graph-view .column:last-of-type{width:100%;}.graph-view .card-list{grid-template-columns:minmax(0,1fr);padding-bottom:18px;}.graph-view .task-card{max-width:none;}}
@media(prefers-reduced-motion:reduce){.graph-view .task-card,.task-edge{transition:none;}}
.relation-override,.ahtung-badge{color:#ffdf73;}.ahtung-badge{display:block;border-left:3px solid #ff657e;padding-left:7px;font-size:11px;margin:8px 0;}.ahtung-card{border-color:#bb6659;}
.edge-override{stroke:#ff657e;stroke-width:2.2;}.edge-override-yellow{stroke:#ffdf73;stroke-width:2.2;}.arrow-override{fill:#ffdf73;}
#dependency-message{color:#ffdf73;border-left:3px solid #ff657e;padding:10px 12px;font-size:13px;line-height:1.5;}#force-dependency{border-color:#ff657e;color:#ffdf73;margin-bottom:14px;}
.graph-card{position:relative;padding:0 17px;min-width:0;}.graph-card .task-card{width:100%;height:100%;}.graph-view .card-list{gap:30px 18px;}
.link-port{position:absolute;top:50%;transform:translateY(-50%);width:28px;height:34px;padding:0;border:0;background:#101920;color:#72e6ff;border-radius:50%;z-index:4;touch-action:none;cursor:crosshair;}.link-port-in{left:0;}.link-port-out{right:0;}.link-port-active{background:#72e6ff;color:#091117;box-shadow:0 0 14px #72e6ff66;}.drawing-edge{position:absolute;left:0;top:0;pointer-events:none;z-index:5;overflow:visible;}
#link-dialog{width:min(600px,calc(100vw - 24px));padding:24px;background:#0c1118;color:#eff6ff;border:1px solid #435362;border-radius:12px;max-height:calc(100dvh - 24px);overflow:auto;}#link-form{display:grid;gap:18px;}#link-description{overflow-wrap:anywhere;line-height:1.5;}#drawn-link-error{color:#ff9dba;}
@media(pointer:coarse){.link-port{width:40px;height:44px;}.graph-card{padding:0 24px;}}

/* Compact graph canvas, matching the approved funnel's surfaces and scale. */
.board.graph-view{background:#090d12;border:1px solid #26313c;border-radius:14px;padding:28px 28px 40px;gap:38px;}
.graph-view .column{width:72%;background:#11171e;border-color:#2b3541;border-top:3px solid var(--neon);border-radius:10px;min-height:0;padding:0 12px 10px;}
.graph-view .column:first-of-type{width:90%;}.graph-view .column:nth-of-type(2){width:82%;}.graph-view .column:last-of-type{width:58%;}
.graph-view .column-header{padding:12px 2px;font-size:13px;}.graph-view .column-count{color:var(--neon);}
.graph-view .card-list{grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:48px 34px;padding:8px 4px 26px;}
.graph-view .task-card{max-width:none;min-height:100px;padding:12px;background:#19222c;border:1px solid #35414e;border-radius:7px;box-shadow:none;z-index:3;}
.graph-view .task-card h3{font-size:12px;line-height:1.5;margin:8px 0;}.graph-view .card-id,.graph-view .priority{font-size:10px;}.graph-view .card-bottom{margin-top:10px;}.graph-view .avatar{width:22px;height:22px;font-size:10px;}
.graph-view .empty-column{min-height:24px;padding:4px;border:0;}.graph-view .add-card{padding:5px;font-size:11px;}.graph-card{padding:0 10px;}
.link-port{width:20px;height:24px;background:transparent;color:var(--wire,#ff657e);font-size:15px;}.link-port-in{left:-3px;}.link-port-out{right:-3px;}.link-port-active{background:var(--wire,#ff657e);color:#091117;box-shadow:0 0 12px var(--wire,#ff657e);}
#board[data-draw-type=parallel]{--wire:#72a7ff;}#board[data-draw-type=resolved]{--wire:#66ffbc;}#board[data-draw-type=soft]{--wire:#ffdf73;}
.link-drop-target .task-card{border-color:var(--wire,#ff657e)!important;box-shadow:0 0 18px color-mix(in srgb,var(--wire,#ff657e) 35%,transparent);}
.task-edge{stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.6;}.graph-focused .task-card:not(.graph-related){opacity:.5;}.graph-focused .task-edge:not(.edge-active){opacity:.15;}.task-edge.edge-active{stroke-width:2.8;filter:drop-shadow(0 0 3px currentColor);}
.edge-override{stroke:#ff9b54;}.arrow-override{fill:#ff9b54;}.relation-override,.ahtung-badge{color:#ff9b54;}.ahtung-badge{border-color:#ff9b54;}
#link-palette{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;background:#11171e;border:1px solid #283440;border-radius:10px;margin-bottom:8px;}
#link-palette button{font:inherit;color:inherit;background:transparent;border:1px solid transparent;border-radius:6px;padding:8px 10px;cursor:crosshair;}#link-palette button[aria-pressed=true]{border-color:currentColor;background:#ffffff09;box-shadow:0 0 12px #ffffff08;}#link-palette .relation-blocker{color:#ff657e;}#link-palette .relation-parallel{color:#72a7ff;}#link-palette .relation-resolved{color:#66ffbc;}#link-palette .relation-soft{color:#ffdf73;}
#graph-selection{min-height:22px;font-size:12px;}.drawing-link .task-card{opacity:1!important;}.drawing-link .link-port{opacity:1;}
@media(max-width:600px){.board.graph-view{padding:18px 12px;gap:28px;}.graph-view .column,.graph-view .column:first-of-type,.graph-view .column:nth-of-type(2),.graph-view .column:last-of-type{width:92%;}.graph-view .card-list{grid-template-columns:minmax(0,1fr);gap:48px;}.graph-card{padding:0 16px;}.link-port{width:32px;height:40px;}#link-palette{gap:3px;}#link-palette button{padding:8px 6px;}}

.graph-view .column.backlog-pipe{width:80%;padding:0;border:1px solid #675588;border-top:3px solid #b99aff;border-radius:28px;background:linear-gradient(180deg,#252032 0%,#14121d 55%,#252032 100%);box-shadow:inset 0 1px 12px #b99aff15;overflow:hidden;}.backlog-toggle{display:flex;justify-content:space-between;align-items:center;width:100%;padding:15px 24px;border:0;background:transparent;color:#dbc9ff;font:inherit;font-size:13px;cursor:pointer;}.backlog-pipe #backlog-content{padding:4px 18px 12px;}.backlog-pipe .card-list{padding:12px 0;}.backlog-pipe .task-card{cursor:grab;}.backlog-toggle:focus-visible{outline:2px solid #d6bdff;outline-offset:-4px;}.graph-view .backlog-pipe:has([aria-expanded=true]){border-radius:20px;}

/* Vertical anchors and direct curves from the approved prototype. */
.graph-view .graph-card{padding:0;}
.graph-view .link-port{left:50%;right:auto;transform:translateX(-50%);width:28px;height:24px;font-size:13px;opacity:.7;}
.graph-view .link-port-in{top:-15px;bottom:auto;}.graph-view .link-port-out{top:auto;bottom:-15px;}
.graph-view .graph-card:hover .link-port,.graph-view .link-port:focus-visible,.graph-view.drawing-link .link-port{opacity:1;}
.graph-view .card-list{gap:44px 16px;padding:14px 4px 30px;}
.graph-view .task-card{min-height:82px;padding:12px;}.graph-view .card-bottom{margin-top:8px;}.graph-view .task-card h3{font-weight:500;}.graph-view .mini-progress{display:none;}
.task-edge{stroke-width:1.5;opacity:.42;}.task-edge.edge-active{stroke-width:2.2;filter:none;}.graph-focused .task-edge:not(.edge-active){opacity:.1;}
.graph-view .column:nth-last-of-type(2){width:64%;}.graph-view .column:last-of-type{width:52%;}
@media(max-width:600px){.graph-view .column:nth-last-of-type(2),.graph-view .column:last-of-type{width:92%;}.graph-view .link-port{width:38px;height:32px;}.graph-view .link-port-in{top:-19px;}.graph-view .link-port-out{bottom:-19px;}}

/* Agreements keep review state separate from dependency colors. */
.agreement-badge{display:block;margin:8px 0 2px;color:#ffdf73;font-size:11px;font-weight:600;line-height:1.5;}
.task-agreement-alert{padding:14px 16px;border:1px solid #655c34;border-radius:10px;background:#ffdf7308;margin-bottom:22px;display:grid;gap:8px;}
.task-agreement-alert[hidden]{display:none;}
.task-agreement-alert strong{font-size:13px;color:#ffdf73;}
.task-agreement-alert .text-button{text-align:left;overflow-wrap:anywhere;white-space:normal;}
.agreement-link-button{flex-basis:100%;text-align:left;justify-content:flex-start;margin-top:4px;font-size:12px;white-space:normal;}
.agreement-dialog{width:min(660px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px;border:1px solid #435362;border-radius:14px;background:#0c1118;color:#eff6ff;}
.agreement-dialog::backdrop{background:#030609c9;backdrop-filter:blur(4px);}
.agreement-dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.agreement-dialog h2{font-size:21px;margin:0;}
.agreement-dialog h3{font-size:14px;line-height:1.5;margin:5px 0;overflow-wrap:anywhere;}
.agreement-dialog small{color:#9aa8b8;font-size:11px;overflow-wrap:anywhere;}
.agreement-dialog .field{display:grid;gap:8px;margin:12px 0;font-size:13px;}
.agreement-dialog textarea,.agreement-dialog select{box-sizing:border-box;width:100%;min-width:0;background:#151c25;border:1px solid #3f4c5b;color:#eff6ff;border-radius:8px;padding:10px;font:inherit;}
.agreement-dialog textarea{resize:vertical;min-height:76px;}
.agreement-dialog .button{white-space:normal;height:auto;min-height:36px;}
.agreement-dialog details{border-top:1px solid #303a45;padding:14px 0;}
.agreement-dialog summary{cursor:pointer;font-size:13px;color:#b2eaff;}
.agreement-caption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#aab7c4;}
.agreement-endpoints{font-size:13px;line-height:1.6;color:#aab7c4;overflow-wrap:anywhere;}
.agreement-copy{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:13px;}
#agreement-current{font-size:16px;margin:20px 0;}
#agreement-status{font-size:13px;}
.agreement-pending-text{color:#ffdf73;}
.agreement-complete-text{color:#9eb2c4;}
#agreement-reviews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0;}
.agreement-task{display:flex;flex-direction:column;gap:8px;padding:14px;min-width:0;border:1px solid #303a45;border-radius:10px;}
.agreement-task p{margin:0;font-size:12px;}
.agreement-task>span{font-size:12px;}
.agreement-task .button{margin-top:auto;}
#agreement-review-form{padding:16px;border:1px solid #536474;border-radius:10px;margin:14px 0;}
.agreement-actions{display:flex;gap:8px;flex-wrap:wrap;}
#agreement-events{padding-left:18px;font-size:12px;}
#agreement-events li{padding:8px 0;}
#agreement-events p{margin:0 0 4px;}
.agreement-error{color:#ffa6b7;font-size:13px;line-height:1.5;overflow-wrap:anywhere;}
.edge-hit{fill:none;stroke:transparent;stroke-width:18;pointer-events:stroke;cursor:pointer;}
.edge-hit:focus{outline:none;stroke:#ffffff18;}
.edge-review-marker{pointer-events:none;}
.edge-review-marker circle{fill:#141a20;stroke:#ffdf73;stroke-width:1;}
.edge-review-marker text{fill:#ffdf73;font:bold 11px sans-serif;}
@media(max-width:540px){.agreement-dialog{padding:16px;}#agreement-reviews{grid-template-columns:1fr;}.agreement-dialog h2{font-size:18px;}.agreement-actions>.button{flex:1;}.agreement-badge{font-size:10px;}}
