:root{color:#211d1b;font-synthesis:none;--ink:#211d1b;--muted:#746861;--forest:#e51f1f;--forest-deep:#211d1b;--moss:#ff8079;--paper:#fffaf4;--warm:#f7f2ea;--line:#ded4ca;--danger:oklch(48% .13 28);--success:oklch(43% .09 29);--space-xs:.5rem;--space-sm:.75rem;--space-md:1rem;--space-lg:1.5rem;--space-xl:2rem;--space-2xl:3rem;background:#f7f2ea;font-family:Avenir Next,PingFang SC,Noto Sans CJK SC,sans-serif}*{box-sizing:border-box}body{background:var(--warm);min-width:320px;min-height:100vh;margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid var(--moss);outline-offset:3px}.skip-link{z-index:600;background:var(--paper);color:var(--forest);padding:.75rem 1rem;position:fixed;top:-4rem;left:1rem}.skip-link:focus{top:1rem}.kicker,.section-index{color:var(--muted);letter-spacing:.13em;margin:0;font-size:.75rem;font-weight:750}.muted{color:var(--muted)}.boot-screen{background:var(--forest-deep);color:oklch(94% .02 110);place-content:center;justify-items:center;gap:1rem;min-height:100vh;display:grid}.boot-screen span{aspect-ratio:1;background:var(--moss);width:3rem;color:var(--forest-deep);border-radius:.6rem;place-items:center;font-weight:800;display:grid}.login-shell{background:var(--paper);min-height:100vh;display:grid}.login-copy{background:var(--forest-deep);color:oklch(95% .018 110);flex-direction:column;justify-content:flex-end;gap:1.5rem;min-height:42vh;padding:clamp(2rem,6vw,6rem);display:flex;position:relative;overflow:hidden}.login-copy:before{content:"";border:1px solid oklch(65% .04 32);border-radius:50%;width:26rem;height:26rem;position:absolute;top:-10rem;right:-10rem;box-shadow:0 0 0 5rem oklch(28% .055 29),0 0 0 10rem oklch(25% .055 29)}.login-copy>*{position:relative}.login-copy .kicker{color:oklch(78% .1 29)}.login-copy h1{letter-spacing:-.04em;max-width:15ch;margin:0;font-family:Songti SC,Noto Serif CJK SC,serif;font-size:clamp(2.25rem,5vw,4.75rem);font-weight:650;line-height:1.12}.login-copy>p:not(.kicker){color:oklch(78% .025 35);max-width:36rem;margin:0;font-size:1rem;line-height:1.8}.login-mark{aspect-ratio:1;opacity:.18;-webkit-user-select:none;user-select:none;border-radius:50%;width:clamp(8rem,18vw,15rem);position:absolute;bottom:10%;right:8%}.login-panel{background:var(--paper);flex-direction:column;justify-content:center;padding:clamp(2rem,7vw,6rem);display:flex}.login-panel h2{margin:.6rem 0 .35rem;font-size:1.75rem}.login-panel>.muted{margin:0 0 2rem}.role-options{border-top:1px solid var(--line);display:grid}.role-option{border:0;border-bottom:1px solid var(--line);min-height:5.5rem;color:var(--ink);text-align:left;background:0 0;justify-content:space-between;align-items:center;padding:1rem 0;transition:color .18s,padding .18s;display:flex}.role-option span{gap:.25rem;display:grid}.role-option strong{font-size:1rem}.role-option small{color:var(--muted);font-size:.8rem}.role-option b{color:var(--forest);font-size:1.4rem;transition:transform .18s}@media (hover:hover){.role-option:hover{color:var(--forest);padding-left:.75rem}.role-option:hover b{transform:translate(.35rem)}}.credential-form{gap:1rem;margin-top:.5rem;display:grid}.credential-form button{background:var(--forest);color:#fff;border:0;border-radius:.42rem;min-height:3rem;margin-top:.5rem;font-weight:750}.app-shell{grid-template-columns:17rem minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--forest-deep);color:oklch(95% .018 110);flex-direction:column;height:100vh;padding:1.75rem 1.25rem;display:flex;position:sticky;top:0}.product-mark{align-items:center;gap:.75rem;padding:0 .5rem 2rem;display:flex}.product-mark>img{aspect-ratio:1;object-fit:cover;border-radius:50%;width:2.65rem}.product-mark strong,.product-mark small{display:block}.product-mark strong{letter-spacing:-.02em}.product-mark small{color:oklch(70% .025 35);margin-top:.1rem;font-size:.72rem}.workspace-identity{border-top:1px solid oklch(34% .045 29);border-bottom:1px solid oklch(34% .045 29);padding:1.25rem .75rem 1.5rem}.workspace-identity p{color:oklch(72% .08 29);letter-spacing:.14em;margin:0 0 .5rem;font-size:.65rem;font-weight:750}.workspace-identity h2{margin:0;font-size:.95rem;line-height:1.5}.sidebar nav{gap:.25rem;margin-top:1.5rem;display:grid}.sidebar nav button{color:oklch(72% .025 35);text-align:left;background:0 0;border:0;border-radius:.45rem;justify-content:space-between;align-items:center;min-height:2.9rem;padding:0 .8rem;font-size:.85rem;display:flex}.sidebar nav button small{color:oklch(56% .03 35);font-variant-numeric:tabular-nums}.sidebar nav button.active{color:oklch(97% .01 110);background:oklch(30% .055 29)}.sidebar nav button.active small{color:var(--moss)}.session-card{border-top:1px solid oklch(34% .045 29);grid-template-columns:auto 1fr auto;align-items:center;gap:.65rem;margin-top:auto;padding:1rem .5rem 0;display:grid}.session-card>span{aspect-ratio:1;width:2rem;color:var(--moss);background:oklch(37% .055 29);border-radius:50%;place-items:center;font-weight:750;display:grid}.session-card strong,.session-card small{display:block}.session-card strong{font-size:.78rem}.session-card small{color:oklch(62% .025 35);margin-top:.15rem;font-size:.65rem}.session-card button{color:oklch(70% .025 35);background:0 0;border:0;font-size:.7rem}.workspace{min-width:0;padding:clamp(1.5rem,4vw,4.5rem)}.workspace-header{justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:2rem;display:flex}.workspace-header h1{letter-spacing:-.04em;margin:.4rem 0 0;font-family:Songti SC,Noto Serif CJK SC,serif;font-size:clamp(1.9rem,3vw,2.8rem);font-weight:650}.header-status{color:var(--muted);align-items:center;gap:.5rem;font-size:.75rem;display:flex}.live-dot,.status-dot{background:var(--success);border-radius:50%;width:.45rem;height:.45rem;display:inline-block}.notice{border-radius:.45rem;margin:0 0 1.5rem;padding:.85rem 1rem;font-size:.85rem}.notice.success{color:oklch(34% .08 29);background:oklch(92% .04 32)}.notice.error{color:var(--danger);background:oklch(94% .035 28)}.field-error{color:var(--danger);margin-top:7px;font-size:12px;font-weight:650;display:block}.editor-layout{grid-template-columns:minmax(0,1fr) 21rem;align-items:start;gap:clamp(1.5rem,4vw,3.5rem);display:grid}.editor-form{gap:1rem;min-width:0;display:grid}.form-section{border-top:1px solid var(--line);padding:1.5rem 0 2rem}.form-section:first-child{border-top:2px solid var(--forest)}.section-heading{grid-template-columns:2.5rem 1fr;gap:.75rem;margin-bottom:1.5rem;display:grid}.section-heading.with-action{grid-template-columns:2.5rem 1fr auto;align-items:start}.section-heading>span{color:var(--forest);font-size:.72rem;font-weight:800}.section-heading h2{margin:0;font-size:1.1rem}.section-heading p{color:var(--muted);margin:.25rem 0 0;font-size:.78rem}.form-grid{gap:1rem;display:grid}.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}label{color:oklch(38% .025 29);gap:.45rem;font-size:.78rem;font-weight:700;display:grid}input,textarea,select{border:1px solid var(--line);background:var(--paper);width:100%;color:var(--ink);border-radius:.42rem;padding:.75rem .8rem;font-size:.9rem;line-height:1.55;transition:border-color .15s,background .15s}textarea{resize:vertical}input:hover,textarea:hover,select:hover{border-color:oklch(70% .04 32)}input::placeholder,textarea::placeholder{color:oklch(59% .018 35)}.template-options{grid-template-columns:repeat(3,1fr);gap:.75rem;display:grid}.template-options label{border:1px solid var(--line);background:var(--paper);border-radius:.45rem;grid-template-columns:auto 1fr;align-items:center;min-height:3.5rem;padding:.75rem}.template-options input{width:1rem;accent-color:var(--forest);margin:0}.theme-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;display:grid}.theme-options label{border:1px solid var(--line);background:var(--paper);cursor:pointer;border-radius:.55rem;grid-template-columns:auto 1fr;align-items:center;gap:.7rem;min-height:5.5rem;padding:.85rem;display:grid}.theme-options label.selected{border-color:var(--red);box-shadow:0 0 0 2px color-mix(in srgb,var(--red) 18%,transparent)}.theme-options input{opacity:0;pointer-events:none;position:absolute}.theme-options strong{font-size:.9rem}.theme-swatches{border:1px solid var(--line);border-radius:999px;width:4.2rem;height:2rem;display:flex;overflow:hidden}.theme-swatches i{flex:1}.instance-view{gap:1.25rem;display:grid}.instance-heading{border:1px solid var(--line);background:var(--paper);justify-content:space-between;align-items:flex-start;gap:2rem;padding:1.4rem 1.5rem;display:flex}.instance-heading h2{margin:.35rem 0;font-size:1.7rem}.instance-heading p{max-width:52rem;color:var(--muted);margin:.25rem 0;line-height:1.65}.instance-heading>span{border:1px solid var(--line);border-radius:999px;padding:.45rem .7rem;font-family:monospace}.module-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;display:grid}.module-options label{border:1px solid var(--line);background:var(--paper);border-radius:.5rem;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.8rem;min-height:5.2rem;padding:1rem;display:grid}.module-options label.selected{border-color:var(--red);background:color-mix(in srgb,var(--red) 5%,var(--paper))}.module-options input{width:1.05rem;height:1.05rem;accent-color:var(--red)}.module-options span{gap:.3rem;display:grid}.module-options small{color:var(--muted);line-height:1.4}.module-options em{color:var(--red);font-size:.72rem;font-style:normal;font-weight:700}.sticky-actions{z-index:200;background:oklch(98% .01 105);border:1px solid oklch(84% .025 35);border-radius:.55rem;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1rem;display:flex;position:sticky;bottom:1rem;box-shadow:0 .75rem 2rem oklch(30% .02 150/.12)}.sticky-actions p{color:var(--muted);align-items:center;gap:.5rem;margin:0;font-size:.75rem;display:flex}.sticky-actions>div,.row-actions{gap:.6rem;display:flex}.button{border:1px solid #0000;border-radius:.4rem;min-height:2.75rem;padding:.65rem 1rem;font-size:.78rem;font-weight:750}.button.primary{background:var(--forest);color:oklch(98% .01 110)}.button.secondary{background:var(--paper);color:var(--forest);border-color:oklch(77% .035 32)}.button.quiet{color:var(--danger);background:0 0}@media (hover:hover){.button:not(:disabled):hover{filter:brightness(1.05);transform:translateY(-1px)}}.collection-section{gap:1rem;display:grid}.record-editor{border:1px solid var(--line);background:color-mix(in oklch, var(--paper) 82%, var(--warm));gap:1rem;padding:1.2rem;display:grid}.record-editor>header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:1rem;padding-bottom:.8rem;display:flex}.record-editor>header strong{font-family:Songti SC,serif;font-size:1rem}.record-editor>header button{color:var(--danger);background:0 0;border:0;font-size:.72rem}.collection-empty{border:1px dashed var(--line);color:var(--muted);text-align:center;margin:0;padding:2rem}.preview-rail{position:sticky;top:2rem}.preview-title{justify-content:space-between;align-items:center;margin-bottom:.6rem;font-size:.75rem;font-weight:750;display:flex}.preview-title small{color:var(--muted);font-weight:500}.phone-preview{background:var(--paper);border:.48rem solid oklch(22% .025 29);border-radius:1.75rem;min-height:39rem;overflow:hidden;box-shadow:0 1.5rem 3rem oklch(25% .025 150/.18)}.phone-top{background:oklch(22% .025 29);border-radius:0 0 .8rem .8rem;width:5.8rem;height:1.25rem;margin:0 auto}.phone-preview header{background:var(--forest);color:oklch(98% .01 110);padding:1.5rem 1.35rem 1.75rem}.institution-seal{aspect-ratio:1;background:var(--moss);width:2.2rem;color:var(--forest-deep);border-radius:.45rem;place-items:center;font-weight:800;display:grid}.phone-preview header p{color:oklch(80% .035 35);letter-spacing:.08em;margin:.6rem 0 1.5rem;font-size:.65rem}.phone-preview header h2{margin:0 0 .5rem;font-family:Songti SC,serif;font-size:1.45rem}.phone-preview header strong{min-height:3rem;font-size:.78rem;line-height:1.7;display:block}.phone-preview header button{background:var(--moss);width:100%;min-height:2.65rem;color:var(--forest-deep);border:0;border-radius:.35rem;margin-top:1.25rem;font-size:.76rem;font-weight:800}.phone-preview section{padding:1.25rem 1.35rem}.phone-preview section+section{border-top:1px solid var(--line)}.phone-preview .eyebrow{color:oklch(55% .055 35);letter-spacing:.12em;margin:0 0 .4rem;font-size:.6rem;font-weight:800}.phone-preview h3{margin:0 0 .65rem;font-family:Songti SC,serif;font-size:1rem}.phone-preview section>p:not(.eyebrow){color:var(--muted);margin:.35rem 0;font-size:.7rem;line-height:1.7}.phone-preview footer{color:var(--forest);background:oklch(91% .025 110);padding:1rem 1.35rem;font-size:.7rem;font-weight:750}.qingwei-preview{border-color:var(--ink);background:var(--paper);border-radius:1rem;min-height:36rem}.qingwei-preview>header{background:var(--ink);color:var(--paper);justify-content:space-between;align-items:center;padding:1rem;display:flex}.preview-brand{align-items:center;gap:.5rem;min-width:0;display:flex}.preview-brand img{border-radius:50%;width:2rem;height:2rem}.preview-brand strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;min-height:0!important;font-size:.65rem!important}.qingwei-preview>header>span{color:#ff716b;flex:none;font-size:.62rem;font-weight:800}.phone-preview .preview-hero{background:var(--warm);border:0;min-height:23rem;padding:2rem 1.25rem;position:relative;overflow:hidden}.phone-preview .preview-hero p{z-index:2;color:var(--forest);letter-spacing:.05em;margin:0;font-size:.62rem;font-weight:800;position:relative}.phone-preview .preview-hero h2{z-index:2;letter-spacing:-.05em;max-width:11em;margin:.9rem 0 0;font-family:Songti SC,serif;font-size:1.75rem;line-height:1.08;position:relative}.phone-preview .preview-hero strong{z-index:2;max-width:13rem;min-height:0;color:var(--muted);margin-top:1rem;font-size:.66rem;line-height:1.6;display:block;position:relative}.phone-preview .preview-hero button{z-index:2;background:var(--forest);width:7rem;min-height:2.4rem;color:var(--paper);border:0;border-radius:99rem;margin-top:1.2rem;font-size:.68rem;font-weight:800;position:relative}.preview-rook{object-fit:contain;width:7rem;height:11rem;position:absolute;bottom:.8rem;right:-1.8rem}.qingwei-preview>footer{background:var(--warm);color:var(--ink);grid-template-columns:repeat(3,1fr);padding:0;display:grid}.qingwei-preview>footer span{border-right:1px solid var(--line);min-height:6rem;color:var(--forest);padding:1rem .65rem;font-family:Songti SC,serif;font-size:.85rem}.qingwei-preview>footer span:last-child{border-right:0}.qingwei-preview>footer b{color:var(--ink);margin-top:1.5rem;font-family:Avenir Next,PingFang SC,sans-serif;font-size:.65rem;display:block}.empty-state{border-top:2px solid var(--forest);justify-items:start;gap:.5rem;padding:4rem 0;display:grid}.empty-state>span{aspect-ratio:1;width:2.5rem;color:var(--forest);background:oklch(91% .04 32);border-radius:50%;place-items:center;display:grid}.empty-state h2,.empty-state p{margin:0}.empty-state p{color:var(--muted)}.queue-view,.leads-view,.history-list{gap:1rem;display:grid}.review-item{border-top:1px solid var(--line);padding:1.5rem 0 2rem}.review-item:first-child{border-top:2px solid var(--forest)}.review-meta{color:var(--muted);justify-content:space-between;font-size:.72rem;display:flex}.review-meta span{color:oklch(48% .11 80);font-weight:800}.review-item h2{margin:1rem 0 .25rem;font-family:Songti SC,serif}.review-item>p{color:var(--muted);margin:0}.review-item details{margin:1.5rem 0}.review-item summary{color:var(--forest);cursor:pointer;font-size:.78rem;font-weight:750}.review-item pre{background:oklch(92% .014 110);max-height:18rem;padding:1rem;font-size:.72rem;overflow:auto}.row-actions{justify-content:flex-end;margin-top:1rem}.lead-row{border-top:1px solid var(--line);grid-template-columns:12rem minmax(15rem,1fr) minmax(17rem,.8fr);align-items:start;gap:1.5rem;padding:1.5rem 0;display:grid}.lead-row:first-child{border-top:2px solid var(--forest)}.lead-person{align-items:center;gap:.75rem;display:flex}.lead-person>span{aspect-ratio:1;background:var(--forest);width:2.5rem;color:var(--paper);border-radius:50%;place-items:center;display:grid}.lead-person h3{margin:0 0 .2rem}.lead-person a{color:var(--forest);font-size:.8rem}.lead-row dl{grid-template-columns:repeat(2,1fr);gap:1rem;margin:0;display:grid}.lead-row dl div:last-child{grid-column:1/-1}.lead-row dt{color:var(--muted);font-size:.67rem}.lead-row dd{margin:.25rem 0 0;font-size:.8rem;line-height:1.5}.lead-followup{gap:.65rem;display:grid}.lead-followup .button{justify-self:end}.history-list article{border-top:1px solid var(--line);grid-template-columns:5rem 1fr auto;align-items:start;gap:1rem;padding:1.25rem 0;display:grid}.history-list article:first-child{border-top:2px solid var(--forest)}.history-list h3,.history-list p{margin:0}.history-list p{color:var(--muted);margin-top:.3rem;font-size:.75rem}.history-list .rejection{color:var(--danger)}.history-list code{color:var(--muted);font-size:.7rem}.revision-badge{color:var(--forest);background:oklch(90% .02 35);border-radius:2rem;justify-content:center;padding:.3rem .5rem;font-size:.67rem;font-weight:800;display:inline-flex}.revision-badge.submitted{color:oklch(42% .1 75);background:oklch(92% .05 85)}.revision-badge.rejected{color:var(--danger);background:oklch(93% .04 28)}.revision-badge.published{color:var(--success);background:oklch(90% .05 32)}.settings-view{border-top:2px solid var(--forest);max-width:48rem;padding-top:1rem}.settings-view h2{margin:.5rem 0 2rem;font-family:Songti SC,serif;font-size:2rem}.settings-view dl{border-top:1px solid var(--line);grid-template-columns:repeat(2,1fr);gap:0;margin:0 0 2rem;display:grid}.settings-view dl div{border-bottom:1px solid var(--line);padding:1rem 0}.settings-view dt{color:var(--muted);font-size:.7rem}.settings-view dd{margin:.25rem 0 0;font-size:.9rem}.settings-view>p:last-child{color:var(--muted);line-height:1.8}@media (width>=64rem){.login-shell{grid-template-columns:minmax(0,1.15fr) minmax(26rem,.85fr)}.login-copy{min-height:100vh}}@media (width<=74rem){.editor-layout{grid-template-columns:minmax(0,1fr) 18rem}.lead-row{grid-template-columns:11rem 1fr}.lead-followup{grid-column:1/-1;grid-template-columns:12rem 1fr auto;align-items:end}}@media (width<=58rem){.app-shell{grid-template-columns:1fr}.sidebar{height:auto;padding:1rem;position:static}.workspace-identity{display:none}.product-mark{padding-bottom:1rem}.sidebar nav{margin:0;padding:.5rem 0;display:flex;overflow-x:auto}.sidebar nav button{flex:none;gap:1rem}.session-card{margin-top:.5rem}.editor-layout{grid-template-columns:1fr}.preview-rail{max-width:22rem;position:static}.lead-row{grid-template-columns:1fr}.lead-followup{grid-column:auto;grid-template-columns:1fr}}@media (width<=40rem){.workspace{padding:1.25rem}.workspace-header{flex-direction:column;align-items:flex-start}.two-columns,.template-options,.theme-options,.module-options,.settings-view dl{grid-template-columns:1fr}.section-heading.with-action{grid-template-columns:2.5rem 1fr}.section-heading.with-action .button{grid-column:2;justify-self:start}.sticky-actions{flex-direction:column;align-items:stretch;position:static}.sticky-actions>div,.row-actions{grid-template-columns:1fr;display:grid}.history-list article{grid-template-columns:4.5rem 1fr}.history-list code{display:none}}@media (pointer:coarse){.sidebar nav button,.button,.role-option{min-height:3rem}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
