.identity-auth .auth-card{padding:20px}.identity-auth .auth-card h1{margin-bottom:16px}.identity-auth .auth-card>.stack{margin-top:12px}.identity-auth .notice{margin-bottom:12px}.identity-strength{display:grid;gap:4px}.identity-strength details>p{margin:4px 0}.identity-strength ul{margin:0;padding-left:20px}.identity-account,.identity-settings{display:grid;gap:16px}.identity-account>.page-title{margin-bottom:0}.identity-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px}.identity-heading>*,.identity-account section,.identity-fields>*,.identity-documents>*{min-width:0}.identity-account p,.identity-user-detail p,.identity-review p,.identity-review td{overflow-wrap:anywhere}.identity-heading h2,.identity-heading p{margin:0}.identity-fields,.identity-documents{display:grid;gap:12px}.identity-password,.identity-auth-settings{max-width:640px}.identity-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.identity-toolbar>.field{flex:1 1 240px}.identity-users .admin-users-table td{overflow-wrap:anywhere}.identity-review details>.field{margin:12px 0}.identity-review details>.btn{margin:4px 8px 4px 0}@media (min-width: 768px){.identity-settings{grid-template-columns:minmax(0,2fr) minmax(240px,1fr);align-items:start}.identity-fields,.identity-documents{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1100px){.identity-documents{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width: 480px){.identity-auth{padding:16px 12px}.identity-auth .auth-card{padding:16px}.identity-users .admin-users-table tr{gap:8px}.identity-users .admin-users-table td:before{display:inline;margin-right:8px}.identity-users .admin-users-table td[data-label=Actions]:before,.identity-review .admin-users-table td[data-label=Action]:before{display:none}}.contract-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(132px,.55fr);gap:8px;margin-bottom:16px}.contract-filters>.btn{justify-self:start}.contract-card h2,.contract-filename,.contract-invitation{overflow-wrap:anywhere}.contract-card a{display:grid;gap:8px}.contract-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.contract-form{max-width:760px}.contract-role-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.contract-role-choice{border:0;padding:0;margin:0;min-width:0}.contract-role-choice legend{padding:0;color:var(--muted);font-weight:600}.contract-role-choice label{overflow-wrap:anywhere;min-width:0}.contract-invitation{max-width:760px}.page-title.contract-title{flex-wrap:nowrap;align-items:flex-start}.contract-title .expandable-title{flex:1;font-size:22px;line-height:1.2}.contract-title .contract-status{flex:0 0 32px;width:32px;height:32px;padding:0;margin-top:6px;justify-content:center}.contract-terms{max-height:32dvh;overflow-y:auto;overflow-wrap:anywhere;white-space:pre-wrap}.contract-invitation-guarantees{margin:0;padding-left:20px}.tab-unread-dot{display:inline-block;width:10px;height:10px;margin-left:8px;border-radius:50%;background:var(--danger);box-shadow:0 0 0 3px color-mix(in srgb,var(--danger) 18%,transparent);animation:chat-unread-pulse 2s ease-in-out infinite;vertical-align:middle}@keyframes chat-unread-pulse{50%{box-shadow:0 0 0 5px color-mix(in srgb,var(--danger) 8%,transparent)}}@media (prefers-reduced-motion: reduce){.tab-unread-dot{animation:none}}.contract-workspace>div,.contract-workspace .guarantees .card-list>div{min-width:0}.contract-workspace .contract-chat-panel,.contract-workspace .contract-chat-content{min-width:0;min-height:0}.contract-workspace .contract-chat-panel[hidden]{display:none}@media (min-width: 768px){.contract-filters{grid-template-columns:minmax(0,1fr) 190px auto}}.app-shell:has(.contract-workspace.chat-selected){height:100dvh;min-height:0}.app-shell:has(.contract-workspace.chat-selected)>.app-header{flex-shrink:0}.app-main:has(.contract-workspace.chat-selected){display:flex;flex-direction:column;min-height:0;overflow:visible}.app-main:has(.contract-workspace.chat-selected)>:not(.contract-workspace){flex-shrink:0}.contract-workspace.chat-selected{display:flex;flex:1;min-height:0;padding-bottom:env(safe-area-inset-bottom)}.contract-workspace.chat-selected>div:first-child{display:none}.contract-workspace .contract-chat-panel.chat-active{display:flex;flex:1;margin-top:0}.contract-workspace .chat-active .contract-chat-content{display:flex;flex:1}.contract-workspace .chat-active .contract-conversation{flex:1}.contract-workspace .chat-active .chat-thread{flex:1;min-height:0;max-height:none}.expandable-title{min-width:0;max-width:100%;width:100%}.expandable-title>button{display:block;width:100%;min-width:0;min-height:44px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.expandable-title>button[aria-expanded=true]{white-space:normal;overflow-wrap:anywhere}.contract-conversation{min-width:0}.contract-conversation .chat-message{overflow-wrap:anywhere;flex-shrink:0}.contract-conversation .chat-message header{flex-wrap:wrap}.contract-conversation .chat-composer{display:grid;grid-template-columns:minmax(0,1fr) 44px auto;position:relative;flex-shrink:0}.contract-conversation .chat-composer .chat-attach{padding:0;font-size:24px;font-weight:400}.contract-conversation .chat-composer input[type=file]{min-height:0;width:1px;padding:0;border:0}.contract-conversation .chat-attachment-preview{grid-column:1 / -1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.contract-conversation .chat-attachment-preview span{overflow-wrap:anywhere;min-width:0;flex:1 1 120px}.contract-conversation>.error-state{flex-shrink:0;overflow-wrap:anywhere}.guarantees{padding-bottom:calc(80px + env(safe-area-inset-bottom))}.guarantees .guarantee-add{position:fixed;right:max(16px,calc((100vw - 1180px)/2 + 16px));bottom:max(16px,env(safe-area-inset-bottom));z-index:10;width:56px;height:56px;padding:0;border-radius:50%;font-size:32px;line-height:1}.guarantees .guarantee-card{display:flex;flex-direction:column;gap:8px}.guarantee-summary{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:start;column-gap:8px}.guarantee-summary h3{margin:0;font-size:16px;line-height:1.4}.guarantee-summary h3 button{display:flex;align-items:flex-start;gap:8px;width:100%;min-height:44px;padding:8px 0;border:0;background:none;color:inherit;font:inherit;font-weight:650;text-align:left;cursor:pointer}.guarantee-summary h3 button>span{flex:1;min-width:0;overflow-wrap:anywhere}.guarantee-card:not(.is-expanded) h3 button>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.guarantee-summary h3 svg{flex:0 0 16px;margin-top:3px}.guarantee-summary .guarantee-status{width:32px;height:32px;padding:0;margin-top:4px;justify-content:center}.guarantee-drag-handle{display:grid;place-items:center;width:32px;min-height:44px;padding:0;border:0;border-radius:8px;background:none;color:var(--muted);cursor:grab;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.guarantee-drag-handle:hover,.guarantee-drag-handle:focus-visible{background:var(--ground);color:var(--ink)}.guarantee-drag-handle[aria-pressed=true]{cursor:grabbing;background:var(--ground);color:var(--ink)}.guarantee-dragging>.guarantee-card{outline:2px solid var(--muted);outline-offset:2px}.guarantee-drop-target>.guarantee-card{outline:2px dashed var(--success);outline-offset:2px}.guarantee-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.deposit-qr{display:flex;justify-content:center;padding:8px}.deposit-qr svg{background:#fff;max-width:100%;height:auto}.deposit-amount{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;font-variant-numeric:tabular-nums}.deposit-amount .small{margin-left:auto}.guarantee-summary>.guarantee-amount{grid-column:2 / -1}.guarantee-amount{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;min-width:0}.guarantee-amount strong{font-size:22px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}.guarantee-asset{color:var(--ink);font-size:13px}.guarantee-funding{width:100%;font-size:12px;line-height:1.5}.funding-funded{color:var(--success)}.funding-pending,.funding-partial{color:var(--warning)}.funding-unknown,.funding-settled{color:var(--muted)}.guarantee-expanded{display:flex;flex-direction:column;gap:16px}.guarantee-expanded[hidden]{display:none}.guarantee-hero{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:14px;padding:12px 0 4px}.guarantee-vault{width:112px;max-width:100%;height:auto;color:var(--muted)}.guarantee-vault.vault-unagreed{opacity:.3}.guarantee-vault.vault-funded{color:var(--success)}.guarantee-vault.vault-funded .guarantee-vault-door{fill:color-mix(in srgb,var(--success) 18%,var(--surface))}.guarantee-vault.vault-partial{color:var(--warning)}.guarantee-hero .guarantee-amount{margin-top:8px}.guarantee-hero .guarantee-amount strong{font-size:clamp(24px,3vw,32px)}.guarantee-progress{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0}.guarantee-progress li{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;position:relative;color:var(--muted);font-size:11px;text-align:center;overflow-wrap:anywhere}.guarantee-progress li:before{content:"";position:absolute;top:12px;left:-50%;width:100%;border-top:2px solid var(--line)}.guarantee-progress li:first-child:before{display:none}.guarantee-progress li>span{position:relative;display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;background:var(--surface)}.guarantee-progress .past{color:var(--success)}.guarantee-progress .past:before{border-color:var(--success)}.guarantee-progress .complete:before{border-color:var(--success)}.guarantee-progress .current:nth-child(2):before{border-color:var(--success)}.guarantee-progress .current:nth-child(3):before{border-color:var(--success)}.guarantee-progress .current{color:var(--ink);font-weight:650}.guarantee-progress .current>span{background:var(--ink);color:var(--surface);border-color:var(--ink)}.guarantee-actions:empty{display:none}.guarantee-actions{gap:8px}.guarantee-details{border-top:1px solid var(--line);color:var(--muted)}.guarantee-details>summary{font-size:13px}.guarantee-details>.stack{padding-block:8px;color:var(--ink)}.dialog-backdrop.fullscreen{padding:0;align-items:stretch}.dialog-backdrop.fullscreen>.dialog{width:100%;max-width:none;height:100dvh;max-height:none;border-radius:0;display:flex;flex-direction:column;padding:max(20px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}.fullscreen .dialog-header{flex:0 0 auto}.guarantee-reader{flex:1;min-height:0;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.7;padding-block:16px}@media (max-width: 380px){.guarantee-hero{grid-template-columns:76px minmax(0,1fr);gap:10px}.guarantee-hero .guarantee-amount strong{font-size:22px}.guarantee-summary h3{font-size:15px}}.guarantees p,.guarantees h3,.guarantees code,.guarantees .btn{overflow-wrap:anywhere;min-width:0}.guarantees summary{min-height:44px;padding-block:10px;cursor:pointer}.guarantee-terms{display:grid;gap:8px;padding-block:8px;border-block:1px solid var(--line)}.guarantees .guarantee-form{gap:8px}.guarantees .guarantee-form textarea{min-height:64px;height:64px;resize:vertical}.guarantee-amount-input{display:flex;gap:8px}.guarantee-amount-input input{flex:1;min-width:0}.guarantees .guarantee-movement{gap:6px;padding-block:10px;border-bottom:1px solid var(--line)}.guarantees .guarantee-movement a{display:inline-flex;align-items:center;min-height:44px}@media (max-height: 700px){.guarantees .guarantee-signing,.guarantees .guarantee-review{gap:6px}}@media (min-width: 600px){.guarantees .guarantee-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:12px}.guarantees .guarantee-form>p,.guarantees .guarantee-form>.row,.guarantees .guarantee-form>.error-state,.guarantees .guarantee-form>.form-actions,.guarantees .guarantee-form>.btn{grid-column:1 / -1}}.dispute-workspace,.dispute-chat,.dispute-form,.dispute-admin,.dispute-queue{min-width:0;overflow-wrap:anywhere}.dispute-toolbar,.dispute-compose-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.dispute-toolbar h2,.dispute-workspace h4{margin:0}.dispute-workspace>.panel,.dispute-chat.panel,.dispute-form.panel,.dispute-admin .panel{padding:16px}.dispute-workspace.stack,.dispute-form.stack,.dispute-chat.stack{gap:12px}.dispute-workspace code,.dispute-admin code{display:block;overflow-wrap:anywhere;max-width:100%}.dispute-workspace details>summary,.dispute-chat summary,.dispute-admin summary{min-height:44px;padding:10px 0;cursor:pointer}.dispute-workspace details[open]>summary,.dispute-admin details[open]>summary{margin-bottom:8px}.dispute-payouts{display:grid;gap:12px}.dispute-payouts>div{padding-left:12px;border-left:3px solid var(--accent);min-width:0}.dispute-fields{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}.dispute-fees{grid-template-columns:repeat(2,minmax(0,1fr))}.dispute-fees select{padding-inline:6px}.dispute-slider{display:flex;align-items:center;gap:8px}.dispute-slider input{flex:1}.dispute-slider output{min-width:40px;text-align:right}.dispute-form .dispute-presets{flex-wrap:nowrap;gap:4px}.dispute-presets .btn{padding-inline:7px;flex:1;white-space:nowrap}.dispute-workspace>details.panel{padding-block:4px}.dispute-workspace>section:has(>h3:first-child){gap:8px}.dispute-workspace>section:has(>h3:first-child)>details>summary{padding-block:6px}.dispute-resolution.stack{gap:8px}.dispute-form textarea,.dispute-composer textarea{min-height:76px}.dispute-allocation{display:flex;flex-wrap:wrap;gap:8px 16px;font-variant-numeric:tabular-nums}.dispute-thread{min-height:0;overflow-y:auto;overscroll-behavior:contain;display:grid;align-content:start;gap:8px;padding:5px}.dispute-message{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-right:16px;background:var(--ground);min-width:0}.dispute-message.own{margin-right:0;margin-left:16px;background:var(--surface);border-left:3px solid var(--accent)}.dispute-message small{color:var(--muted)}.dispute-compose-actions{align-items:flex-start}.dispute-compose-actions details{flex:1;min-width:0}.dispute-attachment{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.dispute-attachment span{min-width:0;overflow-wrap:anywhere}.dispute-record{display:grid;gap:8px}.dispute-record>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:12px}.dispute-record dt{color:var(--muted)}.dispute-queue article{display:grid;gap:8px}.dispute-queue .btn{justify-self:start}.dispute-workspace:has(>.dispute-form){gap:4px}.dispute-queue:has(>.dispute-workspace),.dispute-admin:has(>form){gap:4px}.dispute-admin>form.panel{padding:12px;gap:8px}.dispute-admin>form .dispute-fields{gap:6px}.dispute-admin>form .field{gap:4px}@media (max-width: 540px){.dispute-admin>form .dispute-fields{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:4px}.dispute-admin>form .field:nth-child(n+3){grid-column:1 / -1}.dispute-admin>form select{padding-inline:6px}}.dispute-workspace>.dispute-form{padding:10px 12px;gap:3px}.dispute-form .dispute-allocation{row-gap:0}.dispute-form .dispute-fields{gap:8px}.dispute-form .field{gap:4px}.dispute-form .error-state{padding:8px 10px}.dialog:has(>.dispute-workspace){height:min(860px,calc(100dvh - 32px));min-height:0;overflow:hidden}.dialog:has(>.dispute-workspace)>.dialog-header{flex:0 0 auto}.dispute-workspace{height:min(760px,calc(100dvh - 48px));min-height:0}.dialog>.dispute-workspace{flex:1;height:auto}.dispute-workspace>.dispute-toolbar,.dispute-workspace>.tabs,.dispute-workspace>.panel{flex:0 0 auto}.dispute-workspace .tabs{margin-bottom:0}.dispute-workspace>.dispute-details[hidden],.dispute-workspace>.dispute-chat-panel[hidden]{display:none}.dispute-details{flex:1;min-height:0;overflow-y:auto;padding:5px}.dispute-details>.panel{padding:16px}.dispute-details>.dispute-form{padding:10px 12px;gap:3px}.dispute-chat-panel{display:flex;flex:1;min-height:0}.dispute-chat{height:min(640px,75dvh);min-height:0}.dispute-chat-panel>.dispute-chat{flex:1;height:auto}.dispute-chat>.dispute-toolbar{flex:0 0 auto}.dispute-chat>.dispute-toolbar h2{font-size:1rem}.dispute-chat .tab{padding-inline:10px}.dispute-channel{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;flex:1;min-height:0}.dispute-channel-info p{margin:0}.dispute-composer{gap:6px;padding:5px}.dispute-composer .field{gap:4px}.dispute-composer textarea{min-height:56px;height:56px;resize:none}.dispute-workspace .tab-unread-dot,.dispute-chat .tab-unread-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--danger, #a23938);margin-left:6px;animation:none}.dispute-workspace>.panel{padding:10px 12px;gap:4px}.dispute-workspace>.panel>h3{margin:0;font-size:1rem}.dispute-workspace>.panel>details>summary{display:none}.dispute-workspace>.panel>details>.stack{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.dispute-workspace>.panel .field{gap:4px}.dialog>.dispute-workspace>.dispute-toolbar h2,.dispute-chat-panel .dispute-chat>.dispute-toolbar h2{display:none}.dispute-workspace.stack,.dispute-chat.stack{gap:8px}.dispute-chat.panel{padding:10px}.dispute-composer .field>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.dispute-composer textarea{min-height:44px;height:44px}@media (min-width: 768px){.dispute-payouts{grid-template-columns:repeat(2,minmax(0,1fr))}}.finance-details{display:grid;gap:.75rem 1rem;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.finance-details dd{margin:.25rem 0 0;overflow-wrap:anywhere;min-width:0}.finance-page code,.finance-page dd{overflow-wrap:anywhere;max-width:100%;min-width:0}.finance-page .row{flex-wrap:wrap}.finance-page fieldset{min-width:0;border:0;padding:0}.finance-details>.finance-wide{grid-column:1 / -1}.finance-details>div,.finance-page .field,.finance-page .panel,.finance-page h3{min-width:0;overflow-wrap:anywhere}.finance-disclosure>summary{min-height:44px;padding:.65rem 0;cursor:pointer;font-weight:600}.finance-disclosure>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.finance-disclosure[open]>summary{margin-bottom:.5rem}.finance-checks{list-style:none;padding:0}.finance-checks li{border-left:2px solid var(--line);padding-left:.75rem}.finance-page .finance-form-grid{gap:.75rem 1rem}.finance-fees{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.finance-form-grid>.finance-fees,.finance-form-grid>.finance-wide,.finance-form-grid>.finance-details,.finance-form-grid>.form-actions,.finance-form-grid>p,.finance-form-grid>button{grid-column:1 / -1}@media (min-width: 600px){.finance-page .finance-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}.management{min-width:0}.management .management-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}.management article,.management .management-panel{padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-width:0}.management h2,.management dd,.management p,.management a{overflow-wrap:anywhere}.management .management-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.management .management-filters>.field{flex:1;min-width:min(100%,120px)}.management .management-check{display:flex;align-items:center;gap:12px;min-height:44px}.management .management-check input{width:20px;height:20px}.management .management-links a{display:block;min-height:48px;padding:12px;border:1px solid var(--line);border-radius:var(--radius-control)}.management article.stack{gap:8px}.management article h2{font-size:21px}.management .management-reason{min-height:72px}.management-details{display:grid;gap:10px;margin:0}.management-details>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px}.management-details dt,.management-details dd{min-width:0;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.management-details>.management-detail-wide{grid-template-columns:minmax(0,1fr);gap:2px}.management a{color:var(--ink)}.management .management-role-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:4px 12px}.management .management-grid.management-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.management .management-links a{display:flex;align-items:center}@media (min-width: 1100px){.management .management-grid.management-links{grid-template-columns:repeat(3,minmax(0,1fr))}}.clause-library{max-width:860px}.clause-preview-notice{margin-bottom:16px}.clause-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:8px}.clause-library fieldset{border:0;margin:0;padding:0;min-width:0}.clause-library legend{color:var(--muted);font-weight:600;padding:0}.clause-library .panel>.btn{align-self:flex-start}.clause-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.clause-text{white-space:pre-wrap;overflow-wrap:anywhere}.clause-library h2{overflow-wrap:anywhere}.help-page .tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;overflow:visible}.help-page .tab{min-width:0;padding:10px 4px}.help-signers{display:grid;gap:12px;margin:0}.help-signers>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}.help-signers dd{margin:0}.help-resources{display:flex;flex-wrap:wrap;gap:8px}.help-signing-flow{display:grid;gap:8px;padding-left:24px;margin:0}:root{--ink: #183b44;--muted: #587078;--accent: #0b5360;--accent-hover: #073e49;--blue: #467c9f;--surface: #ffffff;--ground: #f5f7f6;--line: #dce5e5;--success: #236747;--warning: #846016;--danger: #a23938;--radius: 14px;--radius-control: 9px;--focus: #78a9bc;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color-scheme:light}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--ground);color:var(--ink);font-size:15px;line-height:1.5;min-width:0}button,input,textarea,select{font:inherit;color:inherit}button{background:none;border:0;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}a{color:var(--accent);text-underline-offset:3px}h1,h2,h3,p,dl,dd{margin:0}h1{font-size:26px;line-height:1.2;letter-spacing:-.02em}h2{font-size:20px;line-height:1.3}img{max-width:100%;display:block}.auth-layout{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:var(--ground)}.auth-card{width:min(420px,100%);padding:24px}.auth-card h1{margin-bottom:20px}.app-shell{min-height:100%;display:flex;flex-direction:column}.app-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--line);flex-wrap:wrap}.app-brand{display:flex;flex-shrink:0;align-items:center;gap:8px;font-weight:650;color:var(--ink);text-decoration:none;min-width:0}.app-brand img{flex:0 0 26px;width:26px;height:26px}.app-header-spacer{flex:1}.app-header>.btn{flex-shrink:0;white-space:nowrap;color:var(--ink)}.app-main{flex:1;width:100%;max-width:1180px;margin:0 auto;padding:16px;min-width:0;overflow-x:hidden}.page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap;min-width:0}.page-title h1{min-width:0;overflow-wrap:anywhere}.stack{display:flex;flex-direction:column;gap:12px}.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.row>code{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-all;font-size:.8125rem;line-height:1.35}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:var(--radius-control);border:1px solid var(--line);background:var(--surface);font-weight:600;text-decoration:none}.btn:hover{border-color:var(--muted)}.scroll-block{max-height:40vh;overflow-y:auto;padding-right:4px}.btn.btn-address{display:block;width:100%;max-width:100%;min-height:44px;padding:12px 14px;text-align:left;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8125rem;font-weight:500;line-height:1.4;overflow-wrap:anywhere;word-break:break-all;white-space:normal}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--action-text, #fff)}.btn.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn.ghost{border-color:transparent;background:transparent}.btn.small{min-height:44px;padding:0 12px;font-size:14px}.icon-btn{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--radius-control);border:1px solid transparent;background:transparent}.icon-btn:hover{background:var(--ground)}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>label,.field-label{font-size:13px;font-weight:600;color:var(--muted)}input,textarea,select{width:100%;min-width:0;min-height:46px;padding:11px 12px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);font-size:16px}textarea{min-height:96px;resize:vertical}input[type=checkbox],input[type=radio]{flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:12px;margin:0;accent-color:var(--accent)}label:has(>input[type=checkbox]),label:has(>input[type=radio]){display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-height:44px;cursor:pointer}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #0b53601f}.form-stack{display:flex;flex-direction:column;gap:14px}.form-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px;min-width:0}.card-list{display:grid;gap:12px}@media (min-width: 768px){.card-list{grid-template-columns:repeat(2,minmax(0,1fr))}}.badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:var(--ground);border:1px solid var(--line);font-size:12px;font-weight:600}.badge.success{background:#e8f3ec;border-color:#b9dcc7;color:var(--success)}.badge.warning{background:#fbf3e2;border-color:#e5d3a8;color:var(--warning)}.badge.danger{background:#fbeaea;border-color:#e6bcbc;color:var(--danger)}.muted{color:var(--muted)}.small{font-size:13px}.empty-state{padding:28px 16px;text-align:center;color:var(--muted)}.error-state{padding:12px 14px;border-radius:var(--radius-control);border:1px solid #e6bcbc;background:#fbeaea;color:var(--danger)}.notice{padding:10px 12px;border-radius:var(--radius-control);border:1px solid var(--line);background:var(--ground)}.spinner{width:18px;height:18px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.spinner{animation:none}}.toast-region{position:fixed;z-index:80;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:min(440px,calc(100% - 32px));display:grid;gap:8px;pointer-events:none}.toast{margin:0;padding:12px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 4px 20px #183b442e;overflow-wrap:anywhere}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;align-items:flex-start;justify-content:center;padding:16px;overflow-y:auto;background:#183b4473}.dialog{width:min(560px,100%);min-width:0;display:flex;flex-direction:column;gap:12px;margin:auto;background:var(--surface);border-radius:var(--radius);padding:20px;overflow-wrap:anywhere}.dialog>form,.dialog>.stack{display:flex;flex-direction:column;gap:12px}.dialog>form .form-actions{margin-top:4px}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dialog>.btn{align-self:flex-start}.dialog summary{min-height:44px;padding-block:10px;cursor:pointer}.advanced-toggle{align-self:flex-start;width:auto}.advanced-toggle[aria-expanded=true]{border-color:var(--accent);color:var(--accent)}[data-testid=password-strength-meter] [role=progressbar]{height:8px;border-radius:999px;background:var(--line);overflow:hidden;margin-bottom:8px}.strength-bar{height:100%;width:25%;border-radius:999px;background:var(--danger);transition:width .15s ease,background-color .15s ease}.strength-bar[data-level="0"]{width:4%}.strength-bar[data-level="2"]{width:50%;background:var(--warning)}.strength-bar[data-level="3"]{width:75%;background:var(--blue)}.strength-bar[data-level="4"]{width:100%;background:var(--success)}@media (prefers-reduced-motion: reduce){.strength-bar{transition:none}}.chat{display:flex;flex-direction:column;gap:10px;min-height:0}.chat-thread{display:flex;flex-direction:column;gap:10px;max-height:60vh;overflow-y:auto;padding:4px}.chat-message{max-width:min(78%,560px);padding:10px 12px;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface)}.chat-message.own{align-self:flex-end;background:#e7f0f1;border-color:#c9dedf}.chat-message header{display:flex;align-items:baseline;gap:8px;margin-bottom:4px}.chat-message header strong{font-weight:650}.chat-message header time{font-size:12px}.chat-message header time:before{content:"·";margin-right:6px}.chat-composer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.chat-composer input[type=file]{width:auto;flex:1 1 190px;min-height:44px;font-size:13px}.chat-composer input[type=text],.chat-composer input:not([type]){flex:1 1 100%}@media (min-width: 768px){.chat-composer input[type=text],.chat-composer input:not([type]){flex:1 1 260px}.chat-composer input[type=file]{flex:0 1 210px}}.admin-shell{display:flex;flex-direction:column;gap:16px}.admin-nav-toggle{display:none}.admin-nav{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:6px;border-bottom:1px solid var(--line)}.admin-nav-link{flex:0 1 auto;max-width:100%;padding:10px 12px;min-height:44px;display:inline-flex;align-items:center;border-radius:var(--radius-control);color:var(--ink);text-decoration:none;font-weight:600;font-size:14px;overflow-wrap:anywhere}.admin-nav-link:hover,.admin-nav-link[aria-current=page]{background:var(--ground);box-shadow:inset 0 -2px var(--ink)}.admin-table-wrap{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse;font-size:14px}.admin-table th,.admin-table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);overflow-wrap:normal;-webkit-hyphens:none;hyphens:none}.admin-table th{white-space:nowrap}.admin-table td:last-child{white-space:nowrap}.admin-table td button{white-space:nowrap}@media (max-width: 480px){.dialog-backdrop{padding:12px}.dialog{padding:16px}.admin-table{font-size:13px}.admin-table th,.admin-table td{padding:8px 10px}.app-header{flex-wrap:wrap;gap:6px;padding:8px 12px}.app-header .btn.ghost.small{padding:0 10px}.admin-nav-toggle{display:flex;justify-content:space-between;width:100%;text-align:left;white-space:normal}.admin-nav{display:none}.admin-nav[data-expanded=true]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.admin-nav-link{min-width:0;white-space:normal}.admin-users-table,.admin-users-table tbody{display:block}.admin-users-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.admin-users-table tr{display:grid;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.admin-users-table td,.admin-users-table td:last-child{display:block;padding:0;border:0;white-space:normal;overflow-wrap:anywhere}.admin-users-table td:before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;margin-bottom:3px}}.account-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:180px;padding:6px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);box-shadow:0 6px 18px #183b441f;z-index:30}.account-menu-item{display:block;width:100%;padding:10px 12px;min-height:44px;text-align:left;border-radius:var(--radius-control);color:var(--ink);text-decoration:none}.account-menu-item:hover{background:var(--ground)}.contract-chat-panel{display:none;margin-top:16px}.contract-chat-panel.chat-active{display:block}.contract-workspace{display:grid;gap:16px;min-width:0}.combo-trigger{justify-content:space-between;text-align:left;padding:10px 12px;overflow-wrap:anywhere}.combo-trigger>span:first-child{min-width:0}.combo-popup{display:flex;flex-direction:column;gap:4px;margin-top:6px;padding:6px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);max-height:240px;overflow-y:auto}.combo-option{text-align:left;padding:10px 12px;min-height:44px;border-radius:var(--radius-control);background:var(--surface)}.combo-option:hover,.combo-option[data-active=true],.combo-option[aria-selected=true]{background:var(--ground)}.tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:16px}.tab{padding:10px 14px;min-height:44px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}.tab[aria-selected=true]{color:var(--ink);border-bottom-color:var(--accent)}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
