:root{
  --bg:#f3f6f4;--surface:#fff;--ink:#15231d;--muted:#66746d;--line:#dce5df;
  --brand:#173f31;--brand-2:#235c47;--accent:#e3b74a;--soft:#e9f2ed;--success:#1d7a54;
  --warning:#9a6411;--danger:#b33a3a;--shadow:0 20px 55px rgba(22,52,41,.12);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.mobile-only{display:none!important}
.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(390px,.8fr);background:linear-gradient(135deg,#10291f 0%,#173f31 58%,#245a45 100%)}
.auth-brand{padding:clamp(36px,7vw,96px);display:flex;flex-direction:column;justify-content:center;color:#f5fbf7;position:relative;overflow:hidden}.auth-brand:after{content:"";position:absolute;width:420px;height:420px;border:1px solid rgba(255,255,255,.09);border-radius:50%;right:-180px;bottom:-170px;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.018)}
.brand-mark{width:64px;height:64px;border-radius:18px;background:var(--accent);color:#173f31;display:grid;place-items:center;font-weight:900;letter-spacing:-1px;box-shadow:0 14px 30px rgba(0,0,0,.2);z-index:1}.brand-mark.compact{width:38px;height:38px;border-radius:11px;font-size:13px;box-shadow:none}
.eyebrow{font-size:12px;letter-spacing:.15em;font-weight:800;margin:24px 0 10px;color:inherit;opacity:.78}.auth-brand h1{font-size:clamp(32px,4vw,56px);line-height:1.02;letter-spacing:-.055em;max-width:850px;margin:0;z-index:1}.auth-brand h1 span{color:#f0c85d}.brand-copy{font-size:clamp(15px,1.3vw,18px);line-height:1.45;max-width:760px;color:#dcebe3;z-index:1}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:920px;margin-top:28px;z-index:1}.feature-grid article{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);backdrop-filter:blur(10px);padding:18px;border-radius:18px}.feature-grid strong{display:block;margin-bottom:7px}.feature-grid span{font-size:13px;line-height:1.45;color:#d4e5dc}.validation-note{margin-top:24px;max-width:760px;padding:13px 16px;border-radius:13px;background:rgba(238,192,75,.13);border:1px solid rgba(238,192,75,.3);font-size:13px;color:#fae6aa;z-index:1}.validation-note strong{margin-right:4px}
.auth-panel{display:grid;place-items:center;padding:34px;background:#eef3f0}.auth-card{width:min(100%,480px);background:var(--surface);padding:38px;border-radius:28px;box-shadow:var(--shadow);border:1px solid rgba(23,63,49,.08)}.auth-heading .eyebrow{color:var(--brand);margin-top:0}.auth-heading h2{font-size:30px;letter-spacing:-.035em;margin:4px 0}.auth-heading p{color:var(--muted);margin:8px 0 24px}.segmented{display:grid;grid-template-columns:1fr 1fr;background:#edf2ef;padding:4px;border-radius:12px;margin-bottom:22px}.segment{border:0;background:transparent;padding:10px;border-radius:9px;font-weight:750;color:var(--muted)}.segment.active{background:#fff;color:var(--brand);box-shadow:0 2px 8px rgba(16,50,36,.1)}
label{display:block;font-size:13px;font-weight:750;margin:14px 0 7px;color:#30453b}input,textarea,select{width:100%;border:1px solid #cfdbd4;background:#fff;color:var(--ink);border-radius:12px;padding:12px 13px;outline:0;transition:.18s}input:focus,textarea:focus,select:focus{border-color:#4d8b70;box-shadow:0 0 0 3px rgba(35,92,71,.12)}textarea{resize:vertical}.field-hidden{display:none}.optional{color:#85918b;font-weight:500}.form-error{min-height:20px;margin:8px 0 0;color:var(--danger);font-size:13px}
.button{border:0;border-radius:12px;padding:11px 15px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .12s,filter .12s}.button:hover{filter:brightness(.98)}.button:active{transform:translateY(1px)}.button:disabled{cursor:not-allowed;opacity:.5}.button.primary{background:var(--brand);color:white}.button.secondary{background:#edf3ef;color:var(--brand);border:1px solid #dce8e1}.button.success{background:var(--success);color:#fff;width:100%}.button.warning{background:#fff6df;color:#83550c;border:1px solid #ecd89d}.button.danger{background:var(--danger);color:#fff}.button.large{width:100%;padding:14px;margin-top:17px}.button.small{padding:9px 12px;font-size:13px}
.app-shell{min-height:100vh;background:var(--bg)}.topbar{height:66px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:20}.topbar-brand{display:flex;align-items:center;gap:11px}.topbar-brand strong,.topbar-brand span{display:block}.topbar-brand strong{font-size:14px}.topbar-brand span{font-size:12px;color:#bcd3c8}.topbar-actions{display:flex;align-items:center;gap:10px}.environment-pill{font-size:11px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);padding:6px 9px;border-radius:999px;color:#dceae3}.user-button{display:flex;align-items:center;gap:8px;background:transparent;color:#fff;border:0;font-weight:700}.user-button>span:first-child{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#f0c85d;color:#173f31}.icon-button{border:0;background:transparent;color:inherit;width:36px;height:36px;border-radius:10px;font-size:20px;display:grid;place-items:center}.icon-button:hover{background:rgba(255,255,255,.1)}
.workspace{display:grid;grid-template-columns:330px minmax(0,1fr);height:calc(100vh - 66px)}.sidebar{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.sidebar-actions{padding:18px;display:grid;gap:9px;border-bottom:1px solid var(--line)}.sidebar-title{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 9px}.sidebar-title h2{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#718078;margin:0}.room-list{overflow:auto;flex:1;padding:5px 10px 16px}.room-item{width:100%;border:0;background:transparent;text-align:left;padding:13px;border-radius:15px;display:grid;gap:6px;color:var(--ink);margin-bottom:5px}.room-item:hover,.room-item.active{background:#edf4f0}.room-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.room-item-title{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-item-time{font-size:11px;color:#89958f}.room-item-meta{font-size:12px;color:#6b7972;display:flex;align-items:center;gap:7px}.room-item-preview{font-size:12px;color:#77847e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-status{width:8px;height:8px;border-radius:50%;background:#5f9c7e}.mini-status.paused{background:#d59a2c}.mini-status.confirmed{background:#387cc4}.room-list-empty{padding:28px 14px;text-align:center;color:var(--muted);font-size:13px}.sidebar-foot{padding:14px 18px;border-top:1px solid var(--line);display:grid;gap:3px;background:#fafcfb}.sidebar-foot strong{font-size:12px}.sidebar-foot span{font-size:11px;color:var(--muted);line-height:1.4}
.empty-state{display:grid;place-content:center;justify-items:center;text-align:center;padding:40px;background:radial-gradient(circle at center,#fff 0,#f5f8f6 47%,#eef3f0 100%)}.empty-illustration{width:88px;height:88px;border-radius:28px;background:#dfece5;color:var(--brand);display:grid;place-items:center;font-size:44px;font-weight:900;box-shadow:inset 0 0 0 1px #c9ddd1}.empty-state .eyebrow{color:var(--brand);margin-bottom:8px}.empty-state h2{font-size:clamp(28px,3vw,48px);letter-spacing:-.045em;margin:0}.empty-state>p:not(.eyebrow){max-width:620px;color:var(--muted);line-height:1.6;margin:16px 0 24px}
.room-view{min-width:0;display:flex;flex-direction:column}.room-header{height:77px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 20px;gap:12px}.room-heading{min-width:0;flex:1}.room-title-line{display:flex;align-items:center;gap:10px}.room-title-line h1{font-size:19px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-heading p{margin:4px 0 0;font-size:12px;color:var(--muted)}.room-header-actions{display:flex;gap:8px}.status-chip{font-size:11px;font-weight:800;padding:5px 9px;border-radius:999px;background:#e6f3eb;color:#1d714d}.status-chip.paused{background:#fff0cb;color:#8d5c0c}.status-chip.confirmed{background:#e4effa;color:#2364a2}.paused-banner{padding:10px 20px;background:#fff4d9;border-bottom:1px solid #eddaa6;color:#80560d;font-size:13px}.paused-banner strong{margin-right:5px}.room-content{display:grid;grid-template-columns:minmax(0,1fr) 310px;min-height:0;flex:1}.chat-column{min-width:0;display:flex;flex-direction:column;background:#e9efeb;position:relative}.messages{flex:1;overflow:auto;padding:24px clamp(16px,3vw,42px);display:flex;flex-direction:column;gap:11px;background-image:radial-gradient(rgba(23,63,49,.055) 1px,transparent 1px);background-size:20px 20px}.message-row{display:flex}.message-row.own{justify-content:flex-end}.message-bubble{max-width:min(72%,620px);background:#fff;border-radius:5px 17px 17px 17px;padding:10px 12px 7px;box-shadow:0 3px 12px rgba(36,58,48,.07);border:1px solid rgba(23,63,49,.06)}.own .message-bubble{background:#dff0e6;border-radius:17px 5px 17px 17px}.message-author{font-size:11px;font-weight:800;color:#4c6d5d;margin-bottom:3px}.message-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.45}.message-meta{font-size:10px;color:#84918b;text-align:right;margin-top:4px}.risk-card{max-width:min(82%,660px);align-self:center;background:#fff7e2;border:1px solid #e9d28b;border-radius:14px;padding:11px 13px;color:#76500e;font-size:12px;display:flex;gap:9px;line-height:1.4}.risk-card.high{background:#fff0ef;border-color:#e7b5b1;color:#922f2f}.risk-card strong{display:block}.day-divider{text-align:center;margin:8px 0}.day-divider span{font-size:11px;color:#6f7e76;background:rgba(255,255,255,.82);padding:6px 10px;border-radius:999px}.connection-banner{text-align:center;font-size:11px;color:#6f7e76;background:#f6faf7;padding:5px;border-top:1px solid var(--line)}.connection-banner.online{color:#20734e}.connection-banner.offline{color:#a33b3b}.composer{display:flex;gap:9px;padding:12px 16px;background:#fff;border-top:1px solid var(--line);align-items:flex-end}.composer textarea{resize:none;min-height:44px;max-height:130px;border-radius:18px;padding:11px 15px;background:#f7f9f8}.send-button{width:44px;height:44px;border:0;border-radius:50%;background:var(--brand);color:#fff;font-size:18px;flex:0 0 auto}.send-button:disabled{opacity:.35;cursor:not-allowed}
.transaction-panel{background:#fff;border-left:1px solid var(--line);overflow:auto}.panel-section{padding:18px;border-bottom:1px solid var(--line)}.panel-kicker{font-size:10px;letter-spacing:.12em;font-weight:900;color:#7c8983;margin:0 0 12px}.summary-list{margin:0}.summary-list div{display:grid;gap:3px;padding:9px 0;border-bottom:1px dashed #e2e8e4}.summary-list div:last-child{border:0}.summary-list dt{font-size:11px;color:#7d8a84}.summary-list dd{margin:0;font-size:13px;font-weight:750}.panel-title-row{display:flex;align-items:center;justify-content:space-between}.panel-title-row span{font-size:11px;color:var(--muted)}.participant-list{display:grid;gap:10px}.participant{display:grid;grid-template-columns:35px 1fr auto;align-items:center;gap:9px}.participant-avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#e4eee8;color:var(--brand);font-size:12px;font-weight:900}.participant-info strong,.participant-info span{display:block}.participant-info strong{font-size:12px}.participant-info span{font-size:10px;color:var(--muted)}.participant-check{font-size:11px;font-weight:800;color:#999}.participant-check.ok{color:var(--success)}.confirmation-section{text-align:center}.confirmation-icon{width:43px;height:43px;margin:0 auto 8px;border-radius:14px;background:#e4f1e9;color:var(--success);display:grid;place-items:center;font-weight:900;font-size:22px}.confirmation-section h3{font-size:14px;margin:6px 0}.confirmation-section p{font-size:11px;line-height:1.5;color:var(--muted);margin:6px 0 13px}.audit-details{padding:15px 18px}.audit-details summary{cursor:pointer;font-size:12px;font-weight:800}.event-list{padding-top:12px;display:grid;gap:12px}.event-item{font-size:11px;color:var(--muted);padding-left:13px;border-left:2px solid #dce8e1}.event-item strong{display:block;color:#3d5248;margin-bottom:2px}
.modal{border:0;border-radius:24px;padding:0;width:min(620px,calc(100vw - 28px));box-shadow:0 30px 90px rgba(17,45,34,.3);color:var(--ink)}.modal::backdrop{background:rgba(10,30,22,.54);backdrop-filter:blur(4px)}.modal>form,.modal>div:not(.modal-head){margin:0}.modal form,.modal.small-modal{padding:24px}.modal:not(.small-modal)>form{padding:24px}.small-modal{width:min(480px,calc(100vw - 28px));padding:24px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.modal-head .eyebrow{color:var(--brand);margin:0 0 4px}.modal-head h2{margin:0;font-size:23px;letter-spacing:-.03em}.modal-head .icon-button{color:#52645b}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-note{margin-top:14px;background:#edf4f0;border:1px solid #dbe8e0;padding:11px 12px;border-radius:12px;font-size:12px;color:#596b62;line-height:1.45}.warning-note{background:#fff4da;border-color:#eddaa6;color:#80560d}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.modal-copy{color:var(--muted);font-size:13px;line-height:1.5}.invite-code{background:#f2f6f3;border:1px dashed #afc5b8;border-radius:14px;padding:15px;word-break:break-all;font:13px ui-monospace,SFMono-Regular,Menlo,monospace;color:#254839;min-height:54px}.toast{position:fixed;right:22px;top:78px;z-index:100;background:#173f31;color:#fff;padding:11px 15px;border-radius:12px;box-shadow:var(--shadow);font-size:13px;opacity:0;transform:translateY(-8px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}.toast.error{background:#9e3434}
@media(max-width:1100px){.room-content{grid-template-columns:minmax(0,1fr) 270px}.feature-grid{grid-template-columns:1fr}.feature-grid article:nth-child(n+3){display:none}}
@media(max-width:900px){.auth-layout{grid-template-columns:1fr}.auth-brand{min-height:auto;padding:24px 28px}.auth-brand h1{font-size:32px}.auth-brand .eyebrow{margin:14px 0 8px}.brand-copy{font-size:15px;line-height:1.4;margin:12px 0}.validation-note{margin-top:12px}.feature-grid{display:none}.auth-panel{padding:18px}.workspace{grid-template-columns:1fr}.sidebar{position:absolute;inset:66px 0 0 0;z-index:8}.room-view{position:absolute;inset:66px 0 0 0;z-index:10;background:var(--bg)}.room-content{grid-template-columns:1fr}.transaction-panel{display:none}.mobile-only{display:grid!important}.room-header{height:auto;min-height:72px;padding:10px 12px}.room-header-actions .button{font-size:0;width:38px;height:38px;padding:0}.room-header-actions .button:before{font-size:16px}.room-header-actions #inviteButton:before{content:"＋"}.room-header-actions #pauseButton:before{content:"Ⅱ"}.message-bubble{max-width:86%}.environment-pill,#userName{display:none}.topbar{padding:0 12px}}
@media(max-width:520px){.auth-brand{padding:18px 16px}.auth-brand h1{font-size:28px}.auth-card{padding:25px 20px;border-radius:22px}.two-fields{grid-template-columns:1fr}.modal-actions{display:grid;grid-template-columns:1fr 1fr}.room-title-line{align-items:flex-start;flex-direction:column;gap:4px}.room-title-line h1{max-width:220px}.messages{padding:16px 10px}.composer{padding:9px}.topbar-brand span{display:none}}
