.crm-actions{max-width:960px;min-width:0}.crm-actions .field{display:block;margin:12px 0}.crm-actions input,.crm-actions textarea,.crm-actions select{max-width:100%;width:100%;min-width:0}.crm-actions fieldset{border:0;padding:0;margin:0;min-width:0}.crm-actions input[type=checkbox]{width:20px;height:20px}.crm-actions details{margin:16px 0}.crm-actions summary{cursor:pointer;min-height:36px}.crm-actions .btn{min-height:44px;margin:4px 8px 4px 0;white-space:normal}.crm-actions [role=alert]{color:#a22;overflow-wrap:anywhere}.crm-action-current{padding:12px 0;border-bottom:1px solid #ddd}.crm-actions iframe{display:block}.crm-action-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0;overflow-wrap:anywhere}.crm-action-row small{display:block}.ux-project-row:has(>.crm-action-row){flex-wrap:wrap}.ux-project-row>.crm-action-row{grid-column:1/-1;flex:0 0 100%;order:3;min-width:0;border-top:1px solid var(--line);color:var(--ink,#202b2b);text-decoration:none;justify-content:space-between;gap:8px 20px;padding:10px 0 2px;min-height:44px}.ux-project-row>.crm-action-row>span:first-child{min-width:0;flex:1 1 220px}.ux-project-row>.crm-action-row strong{display:block;font-size:13px;font-weight:600;line-height:1.4}.ux-project-row>.crm-action-row small{font-size:12px;color:var(--muted);margin-top:3px}.crm-action-go{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:12px;font-weight:600;color:var(--accent,#314c39)}.crm-action-row:focus-visible{outline:2px solid var(--focus,#46632b);outline-offset:3px;border-radius:6px}.crm-action-row:hover .crm-action-go{text-decoration:underline}.crm-actions,.crm-action-row{overflow-wrap:anywhere}.crm-action-overdue{color:#a22}
.saved-proposal-adjustment{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;border-top:1px solid var(--line,#D9DDD5);padding-top:16px;margin-top:16px}.saved-proposal-adjustment>*{min-width:0}.saved-proposal-adjustment>:nth-child(2n){text-align:right}
.saved-proposal-head{display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:space-between;margin-bottom:12px}.saved-proposal-head span{font-size:13px;color:var(--muted,#626B69)}
.crm-proposal-context{border-bottom:1px solid var(--line,#D9DDD5);padding-bottom:12px;margin-bottom:20px}.crm-proposal-context p{margin:4px 0}.saved-proposal-reader{max-width:760px;line-height:1.5}.saved-proposal-reader h2{font-size:22px;margin:0 0 12px}.saved-proposal-reader h3{font-size:16px;margin:0 0 12px}.saved-proposal-reader small{display:block;font-size:13px;font-weight:400;color:var(--muted,#626B69)}.saved-proposal-lines>section{padding:16px 0;border-top:1px solid var(--line,#D9DDD5)}.saved-proposal-lines dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}.saved-proposal-lines dt{font-size:13px;color:var(--muted,#626B69);margin-bottom:4px}.saved-proposal-lines dd{margin:0;font-weight:600}.crm-proposal-original{border-top:1px solid var(--line,#D9DDD5);padding-top:12px}.crm-actions .crm-proposal-original summary{min-height:44px}.crm-proposal-original iframe{width:100%;height:70vh;border:1px solid var(--line,#D9DDD5);background:white}.crm-actions summary:focus-visible{outline:2px solid var(--focus,#46632B);outline-offset:4px;border-radius:4px}@media(max-width:520px){.saved-proposal-lines dl{grid-template-columns:repeat(2,minmax(0,1fr))}.saved-proposal-lines dl>div:first-child{grid-column:1/-1}.saved-proposal-lines dl>div:first-child dd{font-weight:400}}

.crm-actions{max-width:46rem}
.crm-actions .crm-action-project{margin:0 0 12px;color:var(--muted);font-size:.875rem}
.crm-actions .crm-action-current{padding:0 0 16px;border-bottom:1px solid var(--line)}
.crm-action-facts{display:flex;flex-wrap:wrap;gap:12px 28px;margin:0}
.crm-action-facts dt{color:var(--muted);font-size:.8125rem}
.crm-action-facts dd{margin:3px 0 0;font-weight:600}
.crm-action-overdue{display:inline-block;margin-left:4px;font-size:.8125rem}
.crm-action-note{white-space:pre-wrap;margin:12px 0 0}
.crm-proposal-panel{padding:16px 0;border-bottom:1px solid var(--line)}
.crm-proposal-panel h3{font-size:.875rem;margin:0 0 8px;color:var(--muted)}
.crm-proposal-name{display:flex;flex-wrap:wrap;gap:4px 12px;margin:0 0 6px}
.crm-proposal-panel p:last-child{margin-bottom:0}
.crm-actions>details{margin:0;border-bottom:1px solid var(--line);padding:4px 0}
.crm-actions>details>summary{align-content:center;padding:8px 0;min-height:44px}
.crm-actions>details[open]{padding-bottom:16px}
.crm-actions [role=alert]:empty{margin:0}
.saved-proposal-brand{display:flex;align-items:center;flex-wrap:wrap;gap:12px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:20px}.saved-proposal-brand>strong{font-size:18px;min-width:0;flex:1 1 160px}.saved-proposal-logo{display:block;width:auto;height:auto;max-width:180px;max-height:64px;object-fit:contain}

/* Actions are a working card with an optional document, not a chain of disclosures. */
.crm-actions.crm-actions{max-width:960px;--crm-surface:#fff;--crm-soft:#f5f6f7;--crm-line:#e8ecef;--crm-muted:#667581;font-family:Gilroy,sans-serif;color:#25333d}
.crm-actions :is(button,input,textarea,select){font:inherit}
.crm-actions [hidden]{display:none!important}
.crm-actions .crm-action-project{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.4;margin:0 0 16px;color:var(--crm-muted)}
.crm-actions .icon{width:18px;height:18px;flex:none}
.crm-actions .crm-action-status{display:flex;align-items:center;flex-wrap:wrap;gap:6px;background:#eef2f5;border-radius:10px;padding:7px 10px;font-size:12px;margin-bottom:12px;width:fit-content}
.crm-actions .crm-action-status.is-overdue{background:#fcf1ed;color:#b54a32}
.crm-actions .crm-action-status.is-done{background:#eef4e7;color:#546b38}
.crm-actions .crm-action-status small{font-size:11px;font-weight:400}
.crm-actions .crm-action-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px;align-items:start}
.crm-actions .crm-action-fields,.crm-actions .crm-proposal-panel,.crm-actions .crm-action-current,.crm-actions .crm-related-panel{background:var(--crm-surface);border:0;border-radius:22px;padding:18px;min-width:0}
.crm-actions .crm-action-current{margin-bottom:14px}
.crm-actions .crm-action-current h2{font-size:18px;line-height:1.35;margin:0 0 16px}
.crm-actions .crm-action-fields .field{display:block;margin:0 0 14px;color:var(--crm-muted);font-size:12px;line-height:1.4}
.crm-actions .field>span{display:flex;gap:5px;align-items:center;margin-bottom:6px}
.crm-actions .field>span>.icon{width:14px;height:14px}
.crm-actions .crm-action-fields :is(input:not([type=checkbox]),select,textarea){width:100%;min-width:0;max-width:100%;box-sizing:border-box;background:var(--crm-soft);border:1px solid transparent;border-radius:13px;padding:11px 12px;color:#25333d;font:500 14px/1.4 Gilroy,sans-serif;min-height:44px;margin:0;box-shadow:none}
/* Legacy shell input rules load after this module. Keep one field surface and one ring. */
#app .crm-actions .crm-action-fields :is(input:not([type=checkbox]),textarea){border-color:transparent!important;box-shadow:none!important}
#app .crm-actions .crm-action-fields :is(input:not([type=checkbox]),textarea):not(.m001-input-invalid){background-color:#f5f6f7!important;outline:none!important}
#app .crm-actions .crm-action-fields :is(input:not([type=checkbox]),textarea):not(.m001-input-invalid):focus-visible{outline:2px solid #9ab963!important;outline-offset:0!important}
.crm-actions .crm-action-fields input[name=title]{font-size:16px;font-weight:600}
.crm-actions .crm-action-fields textarea{height:68px;min-height:68px;resize:vertical;max-height:180px}
.crm-actions .crm-action-fields input::placeholder,.crm-actions .crm-action-fields textarea::placeholder{font-weight:400;color:#6d7984}
.crm-actions :is(input,textarea,select):focus-visible{outline:2px solid #9ab963;outline-offset:2px}
.crm-actions .crm-event-time{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.crm-actions .crm-done-choice{position:relative;display:inline-flex;align-items:center;min-height:38px;padding:0 12px;background:var(--crm-soft);border-radius:11px;cursor:pointer;font-size:12px;gap:8px;color:#687b87}
.crm-actions .crm-done-choice>span{display:flex;align-items:center;gap:7px}
.crm-actions .crm-done-choice:has(:checked){background:#eaf2dd;color:#46612e}
.crm-actions .crm-done-choice input,.crm-actions .crm-source-choice>input{position:absolute;width:1px;height:1px;opacity:0;inset:auto auto auto 12px;margin:0}
.crm-actions .crm-done-choice:focus-within,.crm-actions .crm-source-choice:focus-within{outline:2px solid #9ab963;outline-offset:2px}
.crm-actions .crm-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;min-width:0}
.crm-actions .crm-card-heading h2{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:600;line-height:1.35;margin:0;min-width:0}
.crm-actions .crm-card-heading h2 .icon{color:#7d909c}
.crm-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;min-height:40px;line-height:1.3;font-size:12px;font-weight:600;border-radius:12px;padding:10px 12px;margin:0;transition:background-color 160ms,transform 160ms,box-shadow 160ms;text-decoration:none}
.crm-actions .btn.quiet{background:#f2f4f5;color:#405663}
.crm-actions .btn.primary{background:linear-gradient(110deg,#d7fa67,#cef453);color:#26342b}
.crm-actions .btn:active{transform:scale(.98)}
.crm-actions .btn:disabled{opacity:.5;cursor:wait;transform:none}
.crm-actions .btn:focus-visible,.crm-actions .crm-event-row:focus-visible,.crm-actions .crm-linked-document:focus-visible{outline:2px solid #7e9f4c;outline-offset:3px}
.crm-actions .crm-card-heading>.btn{font-size:11px;min-height:36px;padding:8px 10px;flex:none}
.crm-actions .crm-proposal-empty{font-size:12px;color:var(--crm-muted);margin:4px 0 0;line-height:1.5}
.crm-actions .crm-linked-document{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px 10px;align-items:center;border-radius:13px;padding:12px;background:#f5f6f7;color:inherit;text-decoration:none}
.crm-actions .crm-linked-document>span>strong{display:block;font-size:14px;line-height:1.35}
.crm-actions .crm-linked-document small{display:block;font-size:11px;color:var(--crm-muted);margin-top:3px}
.crm-actions .crm-linked-document>b{grid-column:2;font-size:18px;font-weight:700}
.crm-actions .crm-action-symbol{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#edf0f2;color:#7c8f9b;flex:none}
.crm-actions .crm-source-notice{font-size:12px;line-height:1.45;padding:10px 12px;border-radius:12px;background:#f8f1e7;color:#806442;margin:10px 0}
.crm-actions .crm-proposal-picker{padding-top:12px;margin-top:12px;border-top:1px solid var(--crm-line);animation:crm-panel-in 180ms ease-out}
.crm-actions .crm-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:13px}
.crm-actions .crm-icon-button{width:34px;min-height:34px;padding:8px}
.crm-actions .crm-source-choices{display:grid;gap:7px}
.crm-actions .crm-source-choice{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) 20px;gap:7px;align-items:center;min-height:48px;padding:10px;background:#f5f6f7;border:1px solid transparent;border-radius:13px;cursor:pointer;transition:background-color 160ms,border-color 160ms;min-width:0}
.crm-actions .crm-source-choice:has(:checked){background:#f0f5e7;border-color:#b8ce93}
.crm-actions .crm-source-choice .crm-action-symbol{width:28px;height:28px;background:transparent}
.crm-actions .crm-source-copy{min-width:0}
.crm-actions .crm-source-copy strong{display:block;font-size:12px;font-weight:600;line-height:1.35}
.crm-actions .crm-source-copy small{display:block;font-size:10px;color:var(--crm-muted);line-height:1.35;margin-top:3px}
.crm-actions .crm-source-choice>b{grid-column:2;font-size:14px;font-weight:600}
.crm-actions .crm-source-check{grid-column:3;grid-row:1;width:18px;height:18px;border:1px solid #d1d9dd;border-radius:50%;display:grid;place-items:center;background:#fff}
.crm-actions .crm-source-check .icon{width:12px;height:12px;visibility:hidden}
.crm-actions .crm-source-choice:has(:checked) .crm-source-check{background:#cffa61;border-color:#cffa61}
.crm-actions .crm-source-choice:has(:checked) .crm-source-check .icon{visibility:visible;color:#33492a}
.crm-actions .crm-picker-note{font-size:11px;color:var(--crm-muted);line-height:1.5;margin:10px 0 0}
.crm-actions .crm-source-search{font-size:11px;color:var(--crm-muted);margin:4px 0}
.crm-actions .crm-source-search input{font:inherit;background:#f5f6f7;border:0;border-radius:11px;padding:12px}
.crm-actions .crm-action-footer{display:flex;justify-content:flex-end;gap:8px;align-items:center;background:#f5f6f7;padding:12px 0;margin:0}
.crm-actions .crm-action-footer>.primary{min-width:180px}
.crm-actions .crm-draft-status{font-size:11px;line-height:1.45;color:var(--crm-muted);margin:8px 4px 0}
.crm-actions .crm-draft-status:empty{display:none}
.crm-actions .crm-action-sections{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
.crm-actions .crm-action-sections>.btn{background:#fff;flex:1 1 150px;font-size:12px;min-height:44px}
.crm-actions .crm-action-sections>.btn[aria-expanded=true]{background:#eaf0e1;color:#405a2b}
.crm-actions .crm-related-panel{margin-bottom:12px;animation:crm-panel-in 180ms ease-out}
.crm-actions .crm-related-panel h2{font-size:14px;margin:0 0 10px}
.crm-actions .crm-event-row{display:grid;grid-template-columns:34px minmax(0,1fr) 14px;gap:10px;align-items:center;color:inherit;text-decoration:none;padding:12px 0;border-bottom:1px solid var(--crm-line)}
.crm-actions .crm-event-row:last-child{border:0;padding-bottom:0}
.crm-actions .crm-event-row strong{display:block;font-size:13px;line-height:1.4}
.crm-actions .crm-event-row small{display:block;font-size:11px;color:var(--crm-muted);margin-top:3px}
.crm-actions .crm-event-row>.icon{width:14px;height:14px;color:var(--crm-muted)}
.crm-actions .crm-document-history article{display:flex;align-items:flex-start;gap:10px;padding:12px 0;border-bottom:1px solid var(--crm-line)}
.crm-actions .crm-document-history article:last-child{border:0}
.crm-actions .crm-document-history strong{font-size:13px}
.crm-actions .crm-document-history p{font-size:12px;margin:5px 0;line-height:1.45}
.crm-actions .crm-document-history small{font-size:11px;color:var(--crm-muted)}
.crm-actions .crm-event-removal{margin:0 0 8px}
.crm-actions .crm-event-removal>[data-delete-open]{background:transparent;color:#89939b;font-weight:400;font-size:11px}
.crm-actions .crm-delete-confirm{background:#fff;border-radius:16px;padding:14px;animation:crm-panel-in 180ms ease-out}
.crm-actions .crm-delete-confirm p{font-size:13px;margin:0 0 10px}
.crm-actions .crm-delete-confirm .btn{margin-right:6px}
.crm-actions .crm-danger{color:#b44630!important;background:#fbefeb!important}
.crm-actions .crm-conflict-notice,.crm-actions .crm-draft-recovery{grid-column:1/-1;background:#fbf2eb;padding:16px;border-radius:18px;font-size:12px;line-height:1.5}
.crm-actions .crm-conflict-notice>strong{display:flex;gap:7px;align-items:center;font-size:14px}
.crm-actions .crm-conflict-notice p{margin:8px 0}
.crm-actions .crm-conflict-notice .check-field{display:flex;gap:9px;align-items:center;margin:12px 0 0;font-weight:600}
.crm-actions .crm-conflict-notice input{width:18px;height:18px;flex:none;accent-color:#6a8a42}
.crm-actions .crm-draft-recovery .btn{margin:5px 5px 0 0}
.crm-actions [data-crm-error]:not(:empty){background:#fcf0ec;border-radius:13px;padding:12px;font-size:12px;line-height:1.5;margin:10px 0}
.crm-actions [data-crm-error]:focus{outline:none}
.crm-actions [data-options-error]:empty{display:none}
.crm-actions [data-options-error]{font-size:12px;line-height:1.45;margin:0 0 10px}
.crm-actions .crm-source-copy small{font-size:11px}
.crm-actions .crm-recovery-card{background:#fff;border-radius:22px;max-width:520px;padding:20px;min-width:0}
.crm-actions .crm-recovery-card>.crm-action-symbol{margin-bottom:14px;width:40px;height:40px}
.crm-actions .crm-recovery-card h2{font-size:18px;line-height:1.3;margin:0 0 10px}
.crm-actions .crm-recovery-card p{font-size:13px;line-height:1.5;color:var(--crm-muted);margin:0 0 16px}
.crm-actions .crm-recovery-card [role=alert]{color:#aa422e}
.crm-actions .crm-list-loading{display:grid;gap:10px;padding:12px 0;min-height:64px}
.crm-actions .crm-list-loading span{display:block;background:#eef1f3;border-radius:9px;height:20px}
.crm-actions .crm-list-loading span:last-child{width:68%;height:14px}
.crm-actions .crm-draft-recovery{margin:0 0 12px}
.crm-actions .crm-action-fields .field:last-of-type{margin-bottom:12px}
.crm-actions .crm-action-fields input[type=date],.crm-actions .crm-action-fields input[type=time]{font-size:14px;min-inline-size:0;font-variant-numeric:tabular-nums}
.crm-actions .crm-action-fields .sv-choice-trigger{min-height:44px;font-size:14px}
.crm-actions .crm-event-row:hover{background:#f8f9fa}
.crm-actions .crm-linked-document:hover{background:#eef1f3}
.crm-actions .btn.quiet:hover:not(:disabled){background:#e9edef}
.crm-actions .btn.primary:hover:not(:disabled){box-shadow:0 3px 8px #4b651519}
.crm-actions :is(input,textarea){caret-color:#435f2e}
.crm-actions ::selection{background:#d8f79b;color:#26342b}
.crm-actions :is(.crm-linked-document>b,.crm-source-choice>b){font-variant-numeric:tabular-nums}
.crm-actions .crm-document-card{background:#fff;border-radius:22px;padding:20px;min-width:0;max-width:760px}
.crm-actions .crm-document-card .crm-proposal-context{border-bottom:1px solid var(--crm-line);padding-bottom:14px;margin-bottom:18px}
.crm-actions .crm-document-status{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.5;color:#536674;margin:0}
.crm-actions .crm-document-status .icon{width:16px;height:16px;margin-top:1px}
.crm-actions .crm-document-date{font-size:11px;color:var(--crm-muted);margin:6px 0 0 23px}
.crm-actions .crm-document-note,.crm-actions .crm-document-fallback{font-size:12px;line-height:1.5;color:var(--crm-muted);max-width:760px;margin:12px 4px}
.crm-actions .crm-proposal-original{border-top:1px solid var(--crm-line);margin:16px 0 0;padding:8px 0 0}
.crm-actions .crm-proposal-original>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 0;list-style:none;color:#405663;font-size:13px;font-weight:600}
.crm-actions .crm-proposal-original>summary::marker{content:''}
.crm-actions .crm-proposal-original>summary::-webkit-details-marker{display:none}
.crm-actions .crm-proposal-original>summary:after{display:none!important}
.crm-actions .crm-proposal-original>summary>.icon:last-child{margin-left:auto;width:14px;height:14px;transform:rotate(90deg);transition:transform 160ms ease-out}
.crm-actions .crm-proposal-original[open]>summary>.icon:last-child{transform:rotate(-90deg)}
.crm-actions .crm-proposal-original[open]>iframe{margin-top:10px;border-color:var(--crm-line);border-radius:12px;box-sizing:border-box}
@keyframes crm-panel-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){.crm-actions .crm-action-layout{grid-template-columns:minmax(0,1fr);gap:12px}.crm-actions .crm-action-fields,.crm-actions .crm-proposal-panel,.crm-actions .crm-related-panel{padding:16px}.crm-actions .crm-action-footer>.primary{min-width:0;flex:1}.crm-actions .crm-action-footer{gap:8px}.crm-actions .crm-action-sections{gap:7px}.crm-actions .crm-action-sections>.btn{flex:1 1 120px;font-size:11px;padding:10px 8px}.crm-actions .crm-source-choice{grid-template-columns:28px minmax(0,1fr) 20px}}
@media(max-width:650px){#app .crm-actions .crm-action-fields :is(input:not([type=checkbox]),textarea){font-size:16px}.crm-actions .crm-document-card{padding:16px}.crm-actions .crm-action-fields .sv-choice-trigger{font-size:16px}}
@media(max-width:360px){.crm-actions .crm-event-time{grid-template-columns:minmax(0,1fr);gap:0}}
@media(prefers-reduced-motion:reduce){.crm-actions :is(.btn,.crm-source-choice){transition:none}.crm-actions :is(.crm-proposal-picker,.crm-related-panel,.crm-delete-confirm){animation:none}}
@media(prefers-reduced-motion:reduce){.crm-actions .crm-proposal-original>summary>.icon:last-child{transition:none}}
