:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#26332f;background:#f6f5f0;font-synthesis:none;--green:#315f51;--line:#dedfd6;--muted:#788077;--paper:#fffefa;--soft:#eeeee6;--accent:#c27a40}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:#fffefa;border-radius:7px;padding:8px 12px;font-size:13px;line-height:1.4;transition:background .15s,border-color .15s}button:hover{border-color:#8da396;background:#f0f4ed}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#234a3e}button.quiet{border-color:transparent;background:transparent}button.danger{color:#a94837}button.small{padding:5px 8px;font-size:12px}button.icon{padding:4px 7px}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:600}small,.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:.16em;color:#7c8879;font-weight:600;text-transform:uppercase}.app-header{height:76px;padding:0 30px;display:flex;align-items:center;justify-content:space-between;background:var(--paper);border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand-symbol{width:35px;height:39px;border:1px solid var(--green);border-radius:4px 11px 4px 4px;display:grid;place-content:center;font-family:serif;font-size:22px;color:var(--green);background:#edf1e9}.brand strong{font-size:16px}.brand small{display:block;font-size:10px;letter-spacing:.1em;margin-top:3px}.main-nav{display:flex;height:100%;gap:25px;align-items:stretch}.main-nav button{position:relative;background:none;border:none;padding:0 0;border-radius:0;color:#727a72;white-space:nowrap}.main-nav button.active{color:var(--green);font-weight:600}.main-nav button.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--green)}.user-menu{display:flex;align-items:center;gap:8px;font-size:12px}.user-avatar{width:30px;height:30px;display:grid;place-content:center;border-radius:50%;background:#e9ede5;color:var(--green);font-weight:600}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 30px;border-bottom:1px solid var(--line);background:#f9f8f3}.toolbar-left,.toolbar-actions,.row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.toolbar .muted{font-size:12px}.search{width:230px;padding:8px 11px;border:1px solid var(--line);border-radius:7px;background:#fffefa;font-size:13px}.workspace{display:grid;grid-template-columns:248px minmax(360px,1fr) 335px;min-height:calc(100vh - 135px);max-width:1900px;margin:auto}.sidebar{padding:25px 14px 40px 22px;border-right:1px solid var(--line)}.sidebar-heading{display:flex;justify-content:space-between;align-items:center;padding:0 8px 16px}.sidebar-heading h2{font-size:13px;margin:0}.process-group{margin-bottom:25px}.process-heading{display:flex;gap:4px;align-items:flex-start;margin:0 5px 7px}.process-heading>button:first-child{flex:1;text-align:left;font-size:11px;font-weight:600;letter-spacing:.02em;color:#828a7b;padding:3px 0}.group-tools{display:flex;opacity:0}.process-group:hover .group-tools,.process-group:focus-within .group-tools{opacity:1}.step-link{width:100%;display:flex;gap:10px;text-align:left;background:none;border:0;line-height:1.65;padding:10px 12px;margin:2px 0;border-radius:7px;color:#737b70;font-size:12px}.step-link .step-number{font-size:10px;padding-top:2px;opacity:.7;font-variant-numeric:tabular-nums}.step-link.active{color:var(--green);background:#e8ede2;font-weight:600}.add-step{margin:5px 10px;color:#888f83}.reader{padding:35px 44px 80px;min-width:0;background:var(--paper)}.document-topline{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:15px}.breadcrumb{font-size:11px;color:#8a8d80}.reader h1{font-size:28px;line-height:1.55;margin-bottom:16px;letter-spacing:-.04em}.document-meta{font-size:11px;color:#899083;display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:8px}.document-meta .dot{width:5px;height:5px;background:#789879;border-radius:50%;display:inline-block;margin-right:5px}.paragraph{padding:23px 0 15px;border-bottom:1px solid #ecece5;scroll-margin-top:20px;transition:background .2s}.paragraph.highlight{background:#f3efd8;box-shadow:0 0 0 12px #f3efd8}.paragraph-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;gap:10px}.paragraph-number{font-size:10px;letter-spacing:.09em;color:#94998a}.paragraph p{font-size:15px;line-height:2.05;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:7px;text-align:justify}.paragraph-footer{display:flex;align-items:center;gap:10px;font-size:11px;color:#909685;justify-content:space-between}.paragraph-footer button{color:var(--green);font-size:11px}.document-bottom{padding-top:25px;display:flex;gap:8px;flex-wrap:wrap}.rules-pane{border-left:1px solid var(--line);padding:27px 20px;background:#f7f7f0}.pane-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.pane-heading h2{font-size:14px;margin:0}.pane-caption{font-size:11px;color:#8a9083;margin-bottom:23px}.rule-card{border:1px solid #dddfd4;border-radius:9px;padding:17px;background:#fffefa;margin-bottom:12px;cursor:pointer;transition:box-shadow .15s,border-color .15s}.rule-card:hover,.rule-card.selected{border-color:#8aab96;box-shadow:0 3px 14px #283e2910}.rule-card .row{justify-content:space-between;margin-bottom:12px}.rule-code{font-size:10px;color:#92998b;letter-spacing:.06em}.rule-card h3{font-size:14px;line-height:1.7;margin-bottom:10px}.rule-card p{font-size:12px;line-height:1.8;color:#798173;white-space:pre-wrap;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.rule-card footer{border-top:1px solid #edeee6;padding-top:10px;display:flex;justify-content:space-between;font-size:10px;color:#969c8d}.badge{font-size:10px;padding:3px 7px;border-radius:4px;background:#eceee7;color:#747d6d;white-space:nowrap;display:inline-block;font-weight:500;line-height:1.5}.badge.confirmed,.badge.resolved{background:#e5efe5;color:#537a55}.badge.candidate,.badge.open{background:#e9edf1;color:#58738c}.badge.tentative,.badge.adopted{background:#f8edda;color:#ac8141}.badge.stale{background:#f9e7df;color:#ad6241}.source-alert{font-size:11px;color:#a46143;padding:9px 0 0}.pane-section{margin-top:30px}.pane-section>h3{font-size:12px;color:#777f70;margin-bottom:13px}.matter-mini{display:block;width:100%;text-align:left;margin-bottom:8px;background:#f0f0e6;font-size:12px;line-height:1.7;padding:12px;border:0}.matter-mini .badge{margin-right:5px}.empty{padding:40px 20px;text-align:center;color:#8a9282;font-size:13px;line-height:1.8}.empty strong{font-weight:500;color:#69745f}.empty p{font-size:12px;margin:8px 0 0}.wide-page{max-width:1250px;padding:38px 35px 80px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:28px}.page-heading h1{font-size:27px;margin:8px 0}.page-heading p{font-size:13px;color:#838b7b;margin:9px 0}.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:23px}.filter-row button.active{background:#e5ecdf;color:var(--green);border-color:#b8c8ad}.list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.matter-card{padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:10px;text-align:left}.matter-card h2{font-size:17px;line-height:1.7;margin:16px 0 10px}.matter-card p{font-size:13px;line-height:1.9;color:#737c6b;white-space:pre-wrap;max-height:100px;overflow:hidden}.matter-card footer{font-size:11px;color:#929985;margin-top:18px;display:flex;gap:12px}.modal-backdrop{position:fixed;inset:0;background:#26392f70;z-index:20;display:flex;align-items:center;justify-content:center;padding:25px;backdrop-filter:blur(3px)}.modal{max-width:940px;width:100%;max-height:92vh;background:var(--paper);border-radius:13px;box-shadow:0 25px 90px #152e3830;display:flex;flex-direction:column;overflow:hidden}.modal.narrow{max-width:570px}.modal-header{padding:23px 28px 18px;display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:20px;margin:5px 0;line-height:1.5}.modal-header small{font-size:11px}.modal-body{padding:25px 28px;overflow:auto;min-height:0}.modal-footer{padding:17px 28px;background:#f4f5ed;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center}.modal-footer .muted{font-size:11px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:block;margin-bottom:17px;font-size:12px;min-width:0}.form-grid .field{margin-bottom:0}.field.wide{grid-column:1/-1}.field>span{display:block;color:#697462;margin-bottom:8px;font-weight:500}.field i{color:#a67a4d;font-style:normal}input,textarea,select{width:100%;background:#fffefa;border:1px solid #d8ddd0;border-radius:6px;padding:10px 11px;color:#344331;outline:none;font-size:13px;line-height:1.8}input:focus,textarea:focus,select:focus{border-color:#64866d;box-shadow:0 0 0 3px #749c6c16}textarea{resize:vertical;min-height:80px}input[type=checkbox]{width:auto;flex-shrink:0;accent-color:var(--green)}.form-section{margin:28px 0 18px;border-top:1px solid var(--line);padding-top:21px}.form-section h3{font-size:14px;margin:0 0 10px}.form-section>p,.helper{font-size:12px;color:#848b79;line-height:1.8}.check-list{display:flex;gap:7px;flex-wrap:wrap}.check-chip{display:flex;align-items:center;gap:7px;font-size:12px;border:1px solid var(--line);border-radius:6px;padding:8px 10px;max-width:100%;line-height:1.7}.source-choice{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:6px;margin-bottom:9px;font-size:12px;line-height:1.8;background:#fafbf5}.source-choice input{margin-top:5px}.source-choice strong{font-size:11px;color:#607454;display:block}.source-choice p{margin:5px 0 0;white-space:pre-wrap;max-height:125px;overflow:auto;color:#737b69}.source-picker{border:1px solid var(--line);border-radius:7px;margin:8px 0;padding:12px}.source-picker summary{cursor:pointer;font-size:12px;color:#64735b;line-height:1.7}.source-picker .source-choice{margin-top:11px}.paragraph-editor{border:1px solid var(--line);background:#f7f8f1;padding:15px;border-radius:8px;margin:14px 0}.paragraph-editor textarea{min-height:170px}.paragraph-editor .row{justify-content:space-between;margin-bottom:9px}.paragraph-editor .row strong{font-size:12px}.error-box{color:#a04435;background:#f9ece5;border:1px solid #efd3c4;padding:12px 15px;border-radius:7px;font-size:12px;line-height:1.8;margin-bottom:18px}.error-box:empty{display:none}.conflict-box{padding:15px;background:#fff4d8;border:1px solid #ebd3a0;border-radius:7px;font-size:12px;line-height:1.8;margin-bottom:18px}.conflict-box details{margin-top:8px}.conflict-box pre{max-height:160px;overflow:auto;white-space:pre-wrap}.detail-title{font-size:25px;line-height:1.6;margin:14px 0 20px}.detail-field{margin-bottom:23px}.detail-field h3{font-size:11px;color:#879079;letter-spacing:.07em;margin-bottom:8px}.detail-field p{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.detail-source{padding:14px 18px;border-left:3px solid #aebd9c;background:#f1f3e8;margin-bottom:12px}.detail-source p{font-size:12px;line-height:1.9;white-space:pre-wrap;margin:8px 0;color:#737c69}.detail-source small{font-size:10px}.detail-meta{font-size:11px;color:#929986;line-height:1.8}.tabs{display:flex;gap:18px;border-bottom:1px solid var(--line);margin-top:30px}.tabs button{border:0;background:none;border-radius:0;padding:12px 0;color:#7f8973}.tabs button.active{color:var(--green);border-bottom:2px solid var(--green)}.comment{padding:17px 0;border-bottom:1px solid #e8eadf}.comment header{display:flex;justify-content:space-between;font-size:11px;color:#909985}.comment header strong{color:#5f7053;font-weight:500}.comment p{font-size:13px;line-height:1.9;white-space:pre-wrap;margin:10px 0 0}.comment-form{margin-top:20px}.comment-form textarea{min-height:85px;margin-bottom:10px}.history-item{padding:17px 0;border-bottom:1px solid var(--line);font-size:12px}.history-item summary{cursor:pointer;line-height:1.8}.history-item summary span{color:#919985;font-size:11px}.history-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.history-compare pre{font-size:11px;white-space:pre-wrap;overflow:auto;background:#eff1e7;padding:13px;max-height:350px;overflow-wrap:anywhere}.history-compare h4{margin:0 0 7px;font-size:11px;color:#8b947f}.pagination{display:flex;justify-content:flex-end;gap:10px;padding-top:22px;align-items:center;font-size:12px}.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#f2f2e9}.auth-art{padding:70px 12%;background:#284e41;color:#eef0de;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-art:after{content:"";position:absolute;width:430px;height:430px;bottom:-150px;right:-150px;border:1px solid #aec3a72a;border-radius:50%;box-shadow:0 0 0 55px #aec3a710,0 0 0 110px #aec3a707}.auth-art .eyebrow{color:#a3b394}.auth-art h1{font-family:"Songti SC",SimSun,serif;font-size:45px;line-height:1.5;font-weight:400;margin:24px 0}.auth-art p{max-width:350px;font-size:14px;line-height:2;color:#bfccba}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px}.auth-form{max-width:350px;width:100%}.auth-form h2{font-size:25px;margin-bottom:9px}.auth-form>p{font-size:13px;color:#8b947f;line-height:1.8;margin-bottom:28px}.auth-form .field{margin-bottom:20px}.auth-form .primary{width:100%;padding:11px}.auth-footnote{font-size:11px;color:#979e8d;margin-top:25px;line-height:1.9}.loading{padding:80px;text-align:center;color:#7b8971;font-size:14px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#294c3f;color:#fffbed;padding:12px 22px;border-radius:8px;font-size:13px;box-shadow:0 6px 30px #293c3e20;z-index:60;opacity:0;pointer-events:none;transition:opacity .2s;max-width:85vw}#toast.show{opacity:1}.member-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:17px 0;border-bottom:1px solid var(--line)}.member-row strong{font-size:14px}.member-row small{display:block;margin-top:5px;font-size:11px}.member-row .row{flex-wrap:nowrap}.notice{background:#eef1e5;border:1px solid #dbe3ce;border-radius:7px;padding:12px 15px;font-size:12px;line-height:1.8;color:#697b5b;margin-bottom:20px}.import-preview{max-height:300px;overflow:auto;background:#eff2e7;border-radius:7px;padding:15px;font-size:12px;white-space:pre-wrap}.archive-row{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}.archive-row small{display:block;margin-bottom:6px;font-size:10px}.page-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.page-rules .rule-card{margin:0}.mobile-menu{display:none}.subtle-link{font-size:11px;text-decoration:none;color:#718365}.search-results{margin-top:20px}.status-line{display:flex;align-items:center;gap:8px;font-size:11px;color:#8a947d}.warning{color:#ae7549}.standalone-note{font-size:11px;line-height:1.7;color:#909986;margin:24px 0 0}.draft-note{color:#9a7951;font-size:11px}.full-quote{white-space:pre-wrap;font-size:13px;line-height:1.9}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.source-target{cursor:pointer}.settings-actions{display:flex;gap:8px;flex-wrap:wrap}.modal form{min-height:0;display:flex;flex-direction:column;max-height:inherit}.modal form>.modal-body{flex:1}.modal-backdrop [autofocus]{scroll-margin-top:20px}button:focus-visible,a:focus-visible{outline:3px solid #9cba8e;outline-offset:3px}.mobile-step-picker{display:none}
@media(min-width:1550px){.reader{padding-left:65px;padding-right:65px}.workspace{grid-template-columns:265px minmax(500px,1fr) 365px}.paragraph p{font-size:16px}}@media(max-width:1150px){.app-header{padding:0 20px;gap:16px}.main-nav{gap:16px}.user-menu .user-label{display:none}.workspace{grid-template-columns:210px minmax(320px,1fr) 285px}.sidebar{padding-left:12px}.reader{padding:28px 27px 60px}.reader h1{font-size:24px}.rules-pane{padding:23px 14px}.toolbar{padding-left:20px;padding-right:20px}.toolbar-actions .optional{display:none}.brand small{display:none}.brand strong{font-size:14px}.page-rules{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.workspace{grid-template-columns:195px minmax(300px,1fr)}.rules-pane{grid-column:2;border-left:0;border-top:1px solid var(--line)}.sidebar{grid-row:1/3}.rules-pane .cards-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rules-pane .rule-card{margin:0}.main-nav{gap:13px}.main-nav button{font-size:12px}.app-header{height:66px}.toolbar-left>.muted{display:none}.user-menu{gap:0}.user-avatar{display:none}.brand-symbol{width:29px;height:33px}.toolbar-actions button{font-size:11px;padding:7px}.search{width:200px}.auth-art{padding:40px}.auth-art h1{font-size:35px}.auth-form-wrap{padding:35px}}@media(max-width:650px){.app-header{height:auto;min-height:65px;padding:14px 18px 0;flex-wrap:wrap;gap:9px}.brand{gap:8px}.brand-symbol{width:26px;height:29px;font-size:18px}.main-nav{order:3;width:100%;height:44px;justify-content:space-between;gap:0}.main-nav button{font-size:12px}.user-menu{margin-left:auto}.user-menu button{font-size:11px;padding:5px 7px}.toolbar{padding:11px 16px;gap:10px;flex-wrap:wrap}.toolbar-left{flex:1}.search{width:100%}.toolbar-actions{gap:5px}.toolbar-actions button{padding:7px;font-size:11px}.toolbar-actions .optional{display:none}.workspace{display:flex;flex-direction:column;min-height:auto}.sidebar{display:none}.reader{padding:23px 22px 36px}.reader h1{font-size:23px;line-height:1.65}.mobile-step-picker{display:block;padding:14px 20px 0;background:var(--paper)}.mobile-step-picker select{font-size:12px}.document-topline{margin-bottom:12px}.document-meta{font-size:10px;gap:8px;padding-bottom:18px}.paragraph{padding-top:21px}.paragraph p{font-size:14px;line-height:2}.rules-pane{padding:25px 20px}.rules-pane .cards-list{grid-template-columns:1fr}.wide-page{padding:27px 20px 50px}.page-heading h1{font-size:23px}.page-heading{gap:10px}.page-heading .row{justify-content:flex-end}.list-grid,.page-rules{grid-template-columns:1fr}.modal-backdrop{padding:0;align-items:flex-end}.modal{max-height:96vh;border-radius:13px 13px 0 0}.modal.narrow{max-width:none}.modal-header{padding:19px 20px 14px}.modal-header h2{font-size:18px}.modal-body{padding:20px}.modal-footer{padding:14px 20px;align-items:flex-start}.modal-footer .muted{max-width:45%;line-height:1.7}.form-grid{grid-template-columns:1fr}.history-compare{grid-template-columns:1fr}.auth-page{display:block}.auth-art{padding:40px 30px 23px}.auth-art h1{font-size:31px;margin:13px 0}.auth-art p{font-size:12px;margin-bottom:0;max-width:none}.auth-form-wrap{padding:35px 30px 55px}.auth-form{max-width:400px}.auth-form h2{font-size:22px}.member-row{flex-wrap:wrap}.detail-title{font-size:21px}.reader .breadcrumb{max-width:65%;line-height:1.7}.source-choice p{max-height:180px}}

.history-change{margin-top:19px;padding:18px;border:1px solid var(--line);border-radius:7px;background:#fafbf5}.history-change>h4,.history-added>h4{font-size:12px;color:#647358;margin:0 0 12px}.history-change .history-compare{margin:0}.history-compare>div{min-width:0}.history-compare>div>span{font-size:10px;color:#969d8b}.history-value{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9;margin:8px 0 0;color:#53634b}.history-added{margin-top:17px}.snapshot-field{padding:12px 0;border-bottom:1px solid #e2e7d8}.snapshot-field h4{font-size:11px;color:#869078;margin:0 0 5px}.snapshot-field:last-child{border-bottom:0}

/* Cloud rule workspace: mobile reading and editing refinement */
@media(max-width:650px){
  .toolbar-actions{width:100%;justify-content:flex-end;gap:6px}
  .toolbar-actions button{min-height:38px;padding:8px 10px;font-size:12px}
  .reader{padding-left:18px;padding-right:18px}
  .reader h1{font-size:23px;line-height:1.6}
  .mobile-step-picker select{min-height:42px;font-size:13px}
  .document-topline button,.paragraph-head button,.paragraph-footer button{min-height:36px}
  .paragraph p{font-size:15px;line-height:1.95;text-align:left}
  .rule-card h3{font-size:15px}
  .modal-footer{flex-wrap:wrap}
  .modal-footer .muted{max-width:100%}
  .modal-header>button,.modal-footer button,.tabs button{min-height:38px}
}
@media(max-width:390px){
  .app-header,.toolbar,.reader,.rules-pane{padding-left:14px;padding-right:14px}
  .main-nav button{font-size:11px}
  .toolbar-actions{gap:4px}
  .toolbar-actions button{font-size:11px;padding:7px 8px}
  .reader h1{font-size:21px}
  .paragraph p{font-size:14px;line-height:1.9}
  .modal-body{padding:16px}
  .modal-footer{padding:12px 16px}
}
