:root{--crc-heritage-blue: #173963;--crc-river-blue: #57c1e9;--crc-cognac-brown: #a0672d;--crc-river-charcoal: #363936;--crc-river-stone: #d5d2c5;--crc-river-mist: #ffffff;--color-bg: #f4f2ec;--color-card-bg: var(--crc-river-mist);--color-surface: #faf9f5;--color-text: var(--crc-river-charcoal);--color-text-muted: #63665f;--color-border: #e5e2d8;--color-border-strong: var(--crc-river-stone);--color-primary: var(--crc-heritage-blue);--color-primary-hover: #102a4a;--color-accent: var(--crc-river-blue);--color-accent-bg: #eaf7fd;--color-highlight-text: var(--crc-cognac-brown);--color-highlight-bg: #f7ede2;--color-error: #b3261e;--color-error-bg: #fbeae8;--focus-ring: 0 0 0 3px rgba(87, 193, 233, .45);--radius-sm: 6px;--radius: 10px;--radius-lg: 14px;--card-width: 880px;--shadow-sm: 0 1px 2px rgba(23, 57, 99, .06);--shadow-md: 0 1px 3px rgba(23, 57, 99, .08), 0 8px 24px rgba(23, 57, 99, .07);--shadow-lg: 0 4px 12px rgba(23, 57, 99, .1), 0 24px 48px rgba(23, 57, 99, .16)}*{box-sizing:border-box}body{margin:0;font-family:Segoe UI Variable Text,Segoe UI,system-ui,-apple-system,sans-serif;background:var(--color-bg);background-image:radial-gradient(120% 60% at 50% 0%,rgba(87,193,233,.09),transparent 70%);background-attachment:fixed;color:var(--color-text);line-height:1.5;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;justify-content:center;align-items:center;padding:3rem 1rem}.card{background:var(--color-card-bg);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:2.25rem;width:var(--card-width);max-width:100%;background-image:linear-gradient(90deg,var(--crc-heritage-blue),var(--crc-river-blue));background-size:100% 4px;background-repeat:no-repeat;background-origin:border-box}h1{font-size:1.5rem;font-weight:700;letter-spacing:-.015em;line-height:1.25;margin:0 0 .4rem;color:var(--color-primary)}h1+p{margin-top:0}input[type=text],input[type=date],select,textarea{width:100%;padding:.6rem .7rem;border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--color-card-bg);font-family:inherit;font-size:1rem;margin-bottom:.75rem;color:var(--color-text);transition:border-color .15s ease,box-shadow .15s ease}input[type=text]:hover,input[type=date]:hover,select:hover,textarea:hover{border-color:var(--crc-river-stone)}input[type=text]:focus,input[type=date]:focus,select:focus,textarea:focus{outline:none;border-color:var(--color-accent);box-shadow:var(--focus-ring)}input::placeholder,textarea::placeholder{color:#9a9c95}input[readonly],textarea[readonly]{background:var(--color-surface);color:var(--color-text-muted)}button{background:var(--color-primary);color:#fff;border:1px solid transparent;border-radius:var(--radius-sm);padding:.6rem 1.2rem;font-family:inherit;font-size:.95rem;font-weight:600;cursor:pointer;box-shadow:var(--shadow-sm);transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .05s ease}button:hover:not(:disabled){background:var(--color-primary-hover)}button:active:not(:disabled){transform:translateY(1px);box-shadow:none}button:disabled{opacity:.45;cursor:default;box-shadow:none}:focus-visible{outline:none;box-shadow:var(--focus-ring);border-radius:var(--radius-sm)}button.skip{background:transparent;color:var(--color-text-muted);border:1px solid var(--color-border-strong);margin-left:.5rem;box-shadow:none}button.skip:hover:not(:disabled){background:var(--color-surface);border-color:var(--crc-river-stone);color:var(--color-primary)}.actions{margin-top:.5rem}.start-form{display:flex;flex-direction:column;gap:.85rem}.question{font-size:1.05rem;font-weight:500}.prefill{font-size:.85rem;color:var(--color-highlight-text);background:var(--color-highlight-bg);border:1px solid rgba(160,103,45,.18);padding:.45rem .65rem;border-radius:var(--radius-sm)}.field-help{font-size:.85rem;color:var(--color-text-muted);margin:.4rem 0 0}.checkboxes label{display:block;margin-bottom:.4rem}.progress{font-size:.85rem;color:var(--color-text-muted)}.error{color:var(--color-error);font-size:.9rem}.form-section h2,.review-section h2{font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--color-primary);border-bottom:1px solid var(--color-border);padding-bottom:.45rem;margin:2rem 0 .9rem}.form-field{margin-bottom:1.1rem}.field-label{display:block;font-weight:500;margin-bottom:.3rem}.req{color:var(--color-error)}.opt{color:var(--color-text-muted);font-weight:400;font-size:.85rem}.hint{font-size:.85rem;color:var(--color-text-muted)}.broker-list{max-height:220px;overflow-y:auto;border:1px solid var(--color-border);border-radius:6px;padding:.5rem .75rem}.review-table{width:100%;border-collapse:collapse;font-size:.92rem}.review-table td{padding:.35rem .5rem;border-bottom:1px solid var(--color-border);vertical-align:top}.review-label{width:45%;color:var(--color-text-muted)}.review-empty{color:var(--color-text-muted);font-style:italic}.dev-table-wrap{overflow-x:auto;margin-top:.9rem}.dev-table{width:100%;border-collapse:collapse;font-size:.92rem}.dev-table th{text-align:left;padding:.55rem .75rem;background:var(--color-surface);border-bottom:2px solid var(--color-border-strong);font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--color-primary);white-space:nowrap}.dev-table thead th:first-child{border-top-left-radius:var(--radius-sm)}.dev-table thead th:last-child{border-top-right-radius:var(--radius-sm)}.dev-table td{padding:.6rem .75rem;border-bottom:1px solid var(--color-border);vertical-align:middle}.dev-table tbody tr:nth-child(2n){background:var(--color-surface)}.dev-table tbody tr:hover{background:var(--color-accent-bg)}.dev-table tbody tr:last-child td{border-bottom:none}.dev-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.dev-table button{padding:.35rem .8rem;font-size:.82rem;white-space:nowrap}.dev-table .dev-total,.dev-table .dev-primary{font-weight:600;color:var(--color-primary)}.dev-table .dev-sub{display:block;font-size:.8rem;color:var(--color-text-muted)}.dev-tag{display:inline-block;margin-left:.4rem;padding:.05rem .45rem;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.02em;background:var(--color-highlight-bg);color:var(--color-highlight-text)}.dev-tag.alert{background:var(--color-error-bg);color:var(--color-error)}.dev-window-picker{display:flex;flex-wrap:wrap;gap:8px;margin-top:1rem}.dev-window-picker button{background:var(--color-card-bg);color:var(--color-text-muted);border:1px solid var(--color-border-strong);padding:.35rem .85rem;font-size:.85rem;font-weight:500;box-shadow:none}.dev-window-picker button:hover:not(:disabled){background:var(--color-surface);border-color:var(--color-accent);color:var(--color-primary)}.dev-window-picker button:disabled{background:var(--color-primary);border-color:var(--color-primary);color:#fff;opacity:1;cursor:default}.info-note{background:var(--color-accent-bg);border:1px solid rgba(87,193,233,.35);border-left:3px solid var(--color-primary);padding:.6rem .85rem;border-radius:var(--radius-sm);font-size:.9rem;line-height:1.45}.info-note a{word-break:break-all}.invoice-log{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:.75rem .9rem;margin:.75rem 0;max-height:20rem;overflow-y:auto;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8rem;line-height:1.5;white-space:pre-wrap;word-break:break-word}.lae-slot{border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:.75rem .9rem;margin:.75rem 0}.lae-slot-title{font-size:.95rem;margin:0 0 .2rem}.lae-required{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--color-error);margin-left:.4rem}.lae-add{display:inline-block;margin-top:.5rem;padding:.4rem .75rem;font-size:.9rem;border:1px dashed var(--color-border);border-radius:var(--radius-sm);cursor:pointer;background:var(--color-surface)}.lae-add:hover{border-color:var(--color-primary);color:var(--color-primary)}.lae-add input{display:none}.lae-field{padding:.5rem 0 .1rem;border-top:1px solid var(--color-border)}.lae-field:first-of-type{border-top:none}.lae-field.flagged{border-left:3px solid var(--color-error);padding-left:.6rem}.lae-field-label{display:block;font-weight:600;font-size:.9rem;margin-bottom:.25rem}.lae-cite{font-weight:400;color:var(--color-text-muted);margin-left:.4rem}.lae-review-reason{font-size:.85rem;color:var(--color-error);margin:0 0 .5rem}.lae-grid-wrap{overflow-x:auto;margin-bottom:.5rem}.lae-grid{width:100%;border-collapse:collapse;font-size:.85rem}.lae-grid th,.lae-grid td{border:1px solid var(--color-border);padding:.3rem .5rem;text-align:center;white-space:nowrap}.lae-grid th{background:var(--color-surface);font-weight:600}.lae-grid-option{text-align:center;font-weight:600;background:var(--color-surface)}.lae-custom-row{display:flex;gap:.5rem;align-items:start}.lae-custom-row input{flex:1}button.lae-inline-toggle{padding:0;border:none;background:none;box-shadow:none;font-size:inherit;text-decoration:underline;color:var(--color-primary)}button.lae-add{box-shadow:none;color:inherit;font-weight:400}.lae-preview{width:100%;height:75vh;margin:.75rem 0;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface)}.other-input{margin-top:.4rem}.file-list{list-style:none;padding:0;margin:.4rem 0 0}.file-list li{display:flex;align-items:center;justify-content:space-between;font-size:.9rem;padding:.35rem .6rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);margin-bottom:.3rem}.file-remove{background:transparent;color:var(--color-error);border:none;padding:0 .3rem;font-size:1rem;line-height:1;box-shadow:none}button.file-remove:hover:not(:disabled){background:var(--color-error-bg);color:var(--color-error);border-radius:var(--radius-sm)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#1739636b;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:1rem;z-index:10}.modal{background:var(--color-card-bg);border-radius:var(--radius-lg);padding:1.75rem;width:100%;max-width:540px;max-height:85vh;overflow-y:auto;box-shadow:var(--shadow-lg)}.modal h2{margin-top:0;font-size:1.15rem;color:var(--color-primary)}.changes-table th{text-align:left;padding:.35rem .5rem;border-bottom:1px solid var(--color-border);font-size:.85rem;color:var(--color-text-muted)}.change-old{color:var(--color-text-muted);text-decoration:line-through;white-space:pre-wrap}.change-new{color:var(--color-primary);white-space:pre-wrap}.value-bullets{margin:.2rem 0 .3rem 1.1rem;padding:0}.candidate-card{display:flex;gap:.6rem;align-items:flex-start;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:.85rem;margin-bottom:.6rem;cursor:pointer;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.candidate-card:hover{border-color:var(--crc-river-stone);background:var(--color-card-bg);box-shadow:var(--shadow-sm)}.candidate-card.selected{border-color:var(--color-accent);background:var(--color-accent-bg);box-shadow:var(--focus-ring)}.candidate-card input[type=checkbox]{margin-top:.2rem}.candidate-title{font-weight:500}.score-badge{display:inline-block;background:var(--color-highlight-bg);color:var(--color-highlight-text);border-radius:999px;padding:.1rem .6rem;font-size:.8rem;margin-left:.4rem}.draft-field{margin-bottom:1.1rem}.draft-field h2{font-size:1rem;color:var(--color-primary);margin:0 0 .3rem}.draft-field p,.draft-field ul{white-space:pre-wrap;margin:0}.sync-target-hint{margin-top:.5rem}.email-draft-row{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--color-border)}.email-draft-controls{display:flex;gap:.5rem;align-items:center}.email-draft-controls input{flex:1;margin-bottom:0}.chat-transcript{display:flex;flex-direction:column;gap:.5rem;max-height:420px;overflow-y:auto;padding:.5rem .25rem;margin-bottom:.75rem}.chat-bubble{max-width:80%;padding:.55rem .85rem;border-radius:14px;font-size:.95rem;line-height:1.4;white-space:pre-wrap;animation:bubble-in .25s ease-out}.chat-bubble.assistant{align-self:flex-start;background:var(--color-accent-bg);color:var(--color-text);border-bottom-left-radius:4px}.chat-bubble.user{align-self:flex-end;background:var(--color-primary);color:#fff;border-bottom-right-radius:4px}.chat-divider{align-self:center;font-size:.78rem;color:var(--color-text-muted);background:var(--color-surface);border:1px solid var(--color-border);border-radius:999px;padding:.2rem .7rem;margin:.3rem 0}.chat-bubble.typing{display:flex;gap:.25rem;align-items:center;padding:.7rem .9rem}.chat-bubble.typing .dot{width:6px;height:6px;border-radius:50%;background:var(--color-text-muted);animation:typing-bounce 1s infinite ease-in-out}.chat-bubble.typing .dot:nth-child(2){animation-delay:.15s}.chat-bubble.typing .dot:nth-child(3){animation-delay:.3s}@keyframes bubble-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes typing-bounce{0%,60%,to{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}.chat-input-row{display:flex;gap:.5rem;align-items:flex-end}.chat-input-row textarea{flex:1;margin-bottom:0;resize:none;min-height:2.6rem}.chat-remove{margin-top:.6rem;display:block}.ranked-table-wrap{display:flex;justify-content:center;margin:.5rem 0 1rem}.ranked-table{width:100%;border-collapse:collapse;font-size:.92rem;background:var(--color-card-bg)}.ranked-table th{background:var(--color-surface);color:var(--color-primary);font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;font-weight:700;text-align:left;padding:.6rem .75rem;border-bottom:2px solid var(--color-border-strong)}.ranked-table td{padding:.65rem .75rem;border-bottom:1px solid var(--color-border);vertical-align:middle}.ranked-table tbody tr:hover{background:var(--color-accent-bg)}.ranked-table tbody tr:last-child td{border-bottom:none}.rank-col,.score-col,.action-col{text-align:center;white-space:nowrap}.rank-badge{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--color-primary);color:#fff;font-weight:700;font-size:.82rem}.ranked-icp-name{font-weight:500}.hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem;margin-top:1.5rem}.hub-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;text-align:left;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:1.25rem 1.35rem 1.35rem;cursor:pointer;box-shadow:none;overflow:hidden;text-decoration:none;color:inherit;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease}button.hub-tile:hover:not(:disabled),a.hub-tile:hover{background:var(--color-card-bg);border-color:var(--color-accent);box-shadow:var(--shadow-md);transform:translateY(-2px)}button.hub-tile:active:not(:disabled),a.hub-tile:active{transform:translateY(0);box-shadow:var(--shadow-sm)}.hub-tile.external:after{content:"↗"}.hub-tile:after{content:"→";position:absolute;top:1.2rem;right:1.2rem;color:var(--color-accent);font-size:1rem;opacity:0;transform:translate(-4px);transition:opacity .15s ease,transform .15s ease}.hub-tile:hover:after{opacity:1;transform:translate(0)}.hub-ribbon{position:absolute;top:.7rem;right:-1.65rem;width:5.75rem;padding:.1rem 0;transform:rotate(45deg);background:var(--crc-cognac-brown);color:#fff;font-size:.58rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;text-align:center;box-shadow:var(--shadow-sm);pointer-events:none}.hub-tile.beta:after{content:none}.hub-tile.beta .hub-tile-title{padding-right:2.75rem}.hub-tile-title{font-size:1rem;font-weight:600;letter-spacing:-.005em;color:var(--color-primary);padding-right:1.5rem;text-wrap:balance}.hub-tile-desc{font-size:.88rem;line-height:1.45;color:var(--color-text-muted)}.back-to-hub{background:transparent;color:var(--color-text-muted);border:none;padding:0;font-size:.85rem;font-weight:500;cursor:pointer;margin-bottom:1rem;display:inline-block;box-shadow:none;transition:color .15s ease}.back-to-hub:hover:not(:disabled){background:transparent;color:var(--color-primary)}.card-nav{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap}.card-nav .back-to-hub{margin-bottom:0}.card-nav+h1{margin-top:1rem}.link-button{background:transparent;border:none;box-shadow:none;padding:0;font:inherit;color:var(--color-primary);text-decoration:underline;cursor:pointer}.link-button:hover:not(:disabled){background:transparent;color:var(--color-primary-hover)}.sticky-actions{position:sticky;bottom:0;background:var(--color-card-bg);padding:.9rem 0;border-top:1px solid var(--color-border);margin-top:1.25rem}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.card.invoice-layout{width:1120px;display:grid;grid-template-columns:248px minmax(0,1fr);gap:2.5rem;align-items:start}.invoice-main{min-width:0}.invoice-lede{max-width:56ch;margin-bottom:1.5rem}.invoice-file-input{display:none}.invoice-dropzone{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;padding:2.75rem 1.5rem;background:var(--color-surface);border:1.5px dashed var(--color-border-strong);border-radius:var(--radius);box-shadow:none;color:var(--color-text);cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .05s ease}.invoice-dropzone:hover:not(:disabled),.invoice-dropzone.dragging{background:var(--color-accent-bg);border-color:var(--color-accent);border-style:solid}.invoice-dropzone:active:not(:disabled){transform:none}.invoice-dropzone-icon{width:34px;height:34px;color:var(--color-primary);margin-bottom:.25rem}.invoice-dropzone-title{font-size:1rem;font-weight:600;color:var(--color-primary)}.invoice-dropzone-sub{font-size:.85rem;font-weight:400;color:var(--color-text-muted)}.invoice-footnote{margin-top:1rem;font-size:.8rem;line-height:1.6;color:var(--color-text-muted);max-width:56ch}.invoice-status{border:1px solid var(--color-border);border-left:3px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--color-surface);padding:.9rem 1.1rem;margin-bottom:1rem}.invoice-status.queued,.invoice-status.running{border-left-color:var(--color-accent);background:var(--color-accent-bg)}.invoice-status.done{border-left-color:var(--color-primary)}.invoice-status.error{border-left-color:var(--color-error);background:var(--color-error-bg)}.invoice-status-head{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.invoice-status-head strong{font-size:.95rem}.invoice-status-file{font-size:.8rem;color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.invoice-status-detail{margin:.35rem 0 0;font-size:.85rem;line-height:1.55;color:var(--color-text-muted)}.invoice-dot{width:7px;height:7px;border-radius:50%;flex:none;background:var(--color-border-strong)}.invoice-dot.queued,.invoice-dot.running{background:var(--color-accent);animation:invoice-pulse 1.6s ease-in-out infinite}.invoice-dot.done{background:var(--color-primary)}.invoice-dot.error{background:var(--color-error)}@keyframes invoice-pulse{0%,to{opacity:1;box-shadow:0 0 #57c1e980}50%{opacity:.75;box-shadow:0 0 0 4px #57c1e900}}.invoice-history{border-right:1px solid var(--color-border);padding-right:1.5rem}.invoice-history h2{font-size:.72rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--color-text-muted);margin:0 0 .9rem}.invoice-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.3rem;padding:1.75rem .75rem;border:1px dashed var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-muted)}.invoice-empty-icon{width:28px;height:28px;color:var(--color-border-strong)}.invoice-empty p{margin:.2rem 0 0;font-size:.85rem;font-weight:600;color:var(--color-text)}.invoice-empty span{font-size:.78rem;line-height:1.5}.invoice-history-row{display:flex;align-items:center;gap:.25rem;border-radius:var(--radius-sm)}.invoice-history-row.current{background:var(--color-accent-bg)}.invoice-history-open{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;background:transparent;border:none;border-radius:var(--radius-sm);padding:.55rem .6rem;text-align:left;cursor:pointer;font:inherit;color:inherit;box-shadow:none}.invoice-history-open:hover:not(:disabled){background:var(--color-surface)}.invoice-history-row.current .invoice-history-open:hover:not(:disabled){background:transparent}.invoice-history-open:active:not(:disabled){transform:none}.invoice-history-name{display:flex;align-items:center;gap:.45rem;max-width:100%;font-size:.85rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.invoice-history-meta{font-size:.74rem;color:var(--color-text-muted);padding-left:1.15rem}.invoice-history-download{display:flex;align-items:center;justify-content:center;background:transparent;border:1px solid transparent;border-radius:var(--radius-sm);color:var(--color-text-muted);cursor:pointer;padding:.35rem;box-shadow:none}.invoice-history-download:hover:not(:disabled){background:var(--color-card-bg);border-color:var(--color-border-strong);color:var(--color-primary)}.invoice-history-download:active:not(:disabled){transform:none}@media(max-width:1180px){.card.invoice-layout{width:var(--card-width);grid-template-columns:minmax(0,1fr);gap:1.75rem}.invoice-history{order:2;border-right:none;border-top:1px solid var(--color-border);padding-right:0;padding-top:1.5rem}.invoice-main{order:1}}.card.lae-layout{width:1120px;display:grid;grid-template-columns:var(--lae-sidebar, 248px) 10px minmax(0,1fr);gap:1.25rem;align-items:start}.lae-main{min-width:0}.lae-history{padding-right:.25rem}.lae-history h2{font-size:.72rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--color-text-muted);margin:0 0 .9rem}.lae-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.3rem;padding:1.75rem .75rem;border:1px dashed var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-muted)}.lae-empty p{margin:.2rem 0 0;font-size:.85rem;font-weight:600;color:var(--color-text)}.lae-empty span{font-size:.78rem;line-height:1.5}.lae-history-row{display:flex;align-items:center;border-radius:var(--radius-sm)}.lae-history-row.current{background:var(--color-accent-bg)}.lae-history-open{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;background:transparent;border:none;border-radius:var(--radius-sm);padding:.55rem .6rem;text-align:left;cursor:pointer;font:inherit;color:inherit;box-shadow:none}.lae-history-open:hover:not(:disabled){background:var(--color-surface)}.lae-history-row.current .lae-history-open:hover:not(:disabled){background:transparent}.lae-history-open:active:not(:disabled){transform:none}.lae-history-name{display:flex;align-items:center;gap:.45rem;max-width:100%;font-size:.85rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lae-history-meta{font-size:.74rem;color:var(--color-text-muted);padding-left:1.15rem}.lae-dot{width:7px;height:7px;border-radius:50%;flex:none;background:var(--color-border-strong)}.lae-dot.queued,.lae-dot.running{background:var(--color-accent);animation:invoice-pulse 1.6s ease-in-out infinite}.lae-dot.succeeded{background:var(--color-primary)}.lae-dot.failed{background:var(--color-error)}.lae-tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--color-border);margin-bottom:1.25rem}.lae-tab{background:transparent;border:none;border-bottom:2px solid transparent;border-radius:0;box-shadow:none;padding:.5rem .85rem;font:inherit;font-size:.85rem;font-weight:600;color:var(--color-text-muted);cursor:pointer}.lae-tab:hover:not(:disabled){color:var(--color-text);background:transparent}.lae-tab:active:not(:disabled){transform:none}.lae-tab.current{color:var(--color-primary);border-bottom-color:var(--color-primary)}.lae-rev{border-top:1px solid var(--color-border);padding:1rem 0}.lae-rev-head{display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap}.lae-rev-version{font-weight:700;font-size:.85rem;color:var(--color-primary)}.lae-rev-when{font-size:.85rem;font-weight:500}.lae-rev-who{font-size:.78rem;color:var(--color-text-muted)}.lae-diff{margin:.6rem 0 0;padding-left:.75rem;border-left:2px solid var(--color-border)}.lae-diff-label{font-size:.78rem;font-weight:600;color:var(--color-text-muted)}.lae-diff-before,.lae-diff-after{margin:.15rem 0 0;font-size:.82rem;line-height:1.5;white-space:pre-wrap}.lae-diff-before{color:var(--color-error)}.lae-diff-before:before{content:"− "}.lae-diff-after:before{content:"+ "}@media(max-width:1180px){.card.lae-layout{width:var(--card-width);grid-template-columns:minmax(0,1fr);gap:1.75rem}.lae-resizer{display:none}.lae-history{order:2;border-right:none;border-top:1px solid var(--color-border);padding-right:0;padding-top:1.5rem}.lae-main{order:1}}.lae-choice{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin:1.5rem 0}.lae-choice-card{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;text-align:left;padding:1.1rem 1.2rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);box-shadow:none;color:inherit;font:inherit;cursor:pointer}.lae-choice-card:hover:not(:disabled){border-color:var(--color-primary);background:var(--color-surface)}.lae-choice-card:disabled{opacity:.6;cursor:not-allowed}.lae-choice-card:active:not(:disabled){transform:none}.lae-choice-title{font-size:.98rem;font-weight:700;color:var(--color-primary)}.lae-choice-body{font-size:.82rem;line-height:1.55;color:var(--color-text-muted)}.lae-pick{display:flex;align-items:flex-start;gap:.6rem;padding:.5rem 0;cursor:pointer}.lae-pick input{margin-top:.25rem;flex:none}.lae-pick>span{display:flex;flex-direction:column;gap:.1rem;min-width:0}.lae-pick-meta{font-size:.76rem;color:var(--color-text-muted)}.lae-progress{height:6px;border-radius:999px;background:var(--color-border);overflow:hidden;margin:.75rem 0 1rem}.lae-progress>span{display:block;height:100%;background:var(--color-primary);transition:width .4s ease}.lae-batch-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;gap:.6rem;padding:.4rem 0;border-bottom:1px solid var(--color-border)}.lae-batch-row:last-child{border-bottom:none}.lae-batch-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem}.lae-batch-meta{font-size:.76rem;color:var(--color-text-muted);text-align:right}.lae-view-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:.35rem}.lae-view-head .lae-slot-title{margin:0}.lae-back{flex:none;background:transparent;border:none;box-shadow:none;padding:.15rem .3rem;font:inherit;font-size:.8rem;color:var(--color-text-muted);cursor:pointer}.lae-back:hover:not(:disabled){color:var(--color-text);background:transparent;text-decoration:underline}.lae-back:active:not(:disabled){transform:none}.lae-resizer{align-self:stretch;min-height:120px;position:relative;cursor:col-resize;touch-action:none}.lae-resizer:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;transform:translate(-50%);background:var(--color-border);transition:background .15s ease,width .15s ease}.lae-resizer:hover:before,.lae-resizer:focus-visible:before{width:3px;background:var(--color-accent)}.lae-resizer:focus-visible{outline:none}body.lae-resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}.lae-history-group,.invoice-history-group{margin-bottom:.9rem}.lae-history-period,.invoice-history-period{font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--color-text-muted);margin:.5rem 0 .25rem;padding-left:.6rem;opacity:.75}.lae-history-delete,.invoice-history-delete{flex:none;background:transparent;border:none;box-shadow:none;padding:.25rem .45rem;margin-right:.15rem;font-size:1rem;line-height:1;color:var(--color-text-muted);cursor:pointer;opacity:0;transition:opacity .12s ease,color .12s ease}.lae-history-row:hover .lae-history-delete,.lae-history-row:focus-within .lae-history-delete,.invoice-history-row:hover .invoice-history-delete,.invoice-history-row:focus-within .invoice-history-delete{opacity:1}.lae-history-delete:hover:not(:disabled),.invoice-history-delete:hover:not(:disabled){color:var(--color-error);background:transparent}.lae-history-delete:focus-visible,.invoice-history-delete:focus-visible{opacity:1;color:var(--color-error)}.lae-history-delete:active:not(:disabled),.invoice-history-delete:active:not(:disabled){transform:none}
