/* Shared workspace design. Document typography is deliberately scoped separately. */
:root{--studio-ink:#101b42;--studio-muted:#53648a;--studio-blue:#2767ff;--studio-purple:#8d2bfa;--studio-line:#e1e5fa;--studio-shadow:0 9px 24px #263b8010;--studio-gradient:linear-gradient(110deg,#19bfe6,#3262ff 58%,#8a29f8)}
body.lexi-theme{background:#f5f7ff;color:var(--studio-ink)}
.lexi-theme .shell{min-height:100dvh}.lexi-theme .main{min-width:0;background:radial-gradient(ellipse at 90% 0,#e7edff80,transparent 55%),#f6f8ff}
.lexi-theme .content{padding:26px 32px!important;max-width:1800px;width:100%;box-sizing:border-box}
.lexi-theme .sidebar{background:linear-gradient(150deg,#071634,#0a163c 65%,#161d58)!important;width:266px!important;padding:24px 20px!important;z-index:60;isolation:isolate;overflow-y:auto;overscroll-behavior:contain}
.lexi-theme .sidebar:after{content:'';position:absolute;bottom:0;left:0;width:100%;height:150px;background:radial-gradient(ellipse at 80% 140%,#da25e9 0,transparent 65%),linear-gradient(155deg,transparent 35%,#4642f6);z-index:-1;pointer-events:none;opacity:.8;clip-path:polygon(0 30%,20% 34%,40% 55%,60% 35%,85% 20%,100% 28%,100% 100%,0 100%)}
.lexi-theme .brand{font-family:Inter,system-ui,sans-serif!important;font-size:27px!important;letter-spacing:-1px;color:#eaf2ff!important}.lexi-theme .brand>b{background:linear-gradient(145deg,#4995ff,#2856fc);border-radius:13px;width:48px;height:48px;box-shadow:0 8px 15px #0002}.lexi-theme .brand small{letter-spacing:1.1px;font-size:10px!important;color:#95a8d3!important}
.lexi-theme .sidebar-primary{margin:25px 0!important;background:var(--studio-gradient)!important;box-shadow:0 6px 18px #2159ff25;border:0!important;border-radius:13px!important;min-height:45px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px!important;padding:12px!important;text-align:center}
.lexi-theme .nav-caption{color:#a9b8d9!important;font-size:11px;letter-spacing:2px;margin:16px 12px!important}.lexi-theme .sidebar nav{gap:7px!important}.lexi-theme .sidebar nav a{border-radius:12px!important;min-height:44px;padding:11px 13px!important;color:#e6edff!important;font-size:13px!important;font-weight:600!important;gap:13px!important;transition:background .16s,transform .16s}.lexi-theme .sidebar nav a.active{background:linear-gradient(110deg,#287bff,#9530f4)!important;box-shadow:0 6px 15px #3655df25}.lexi-theme .sidebar nav a:hover{background:#ffffff14;transform:translateX(2px)}
.lexi-theme .sidebar .system{display:flex!important;background:#ffffff0b;border:1px solid #ffffff0c;border-radius:16px;margin-top:26px!important;padding:17px!important;gap:10px}.lexi-theme .sidebar .system small{letter-spacing:1.5px;color:#b1bfe1;font-size:10px}.lexi-theme .sidebar .system b{color:white;font-size:17px}.lexi-theme .sidebar .system span{font-size:11px;color:#b8c8e8;line-height:1.5}.lexi-theme .sidebar-user{position:relative;border-top:1px solid #ffffff12;margin-top:14px;padding-top:18px}.lexi-theme .sidebar-user i,.lexi-theme .account-trigger>i{background:linear-gradient(150deg,#fafaff,#4366ff)!important;color:#fff!important;border-radius:50%!important;font-weight:800}
.lexi-theme .main{margin-left:266px!important}.lexi-theme .topbar{background:#ffffffd9!important;border-bottom:1px solid #e5e9fc!important;min-height:74px!important;padding:12px 32px!important;backdrop-filter:blur(14px);gap:12px}.lexi-theme .topbar-title{font-size:15px!important;font-weight:800}.lexi-theme .wallet{background:#edf0ff!important;border:0!important;border-radius:15px!important;padding:10px 18px!important;font-size:15px!important;color:#111b42!important;box-shadow:none!important}.lexi-theme .wallet small{text-transform:none!important;font-size:10px!important;letter-spacing:0!important;color:#50618b!important}.lexi-theme .account-trigger b{font-size:13px}.lexi-theme .account-trigger small{font-size:11px;color:var(--studio-muted)}
.lexi-theme .card,.lexi-theme .dm-card{border:1px solid var(--studio-line)!important;border-radius:18px!important;box-shadow:var(--studio-shadow)!important}.lexi-theme .card h2,.lexi-theme .dm-title h2{color:var(--studio-ink)}
.lexi-theme :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=hidden]){border-radius:11px;border-color:var(--studio-line);box-sizing:border-box;max-width:100%;min-width:0;accent-color:#6a42ed;transition:box-shadow .15s,border-color .15s}.lexi-theme :is(input,select,textarea):focus-visible{outline:2px solid #6554ff;outline-offset:2px;border-color:#8368ff;box-shadow:0 0 0 4px #8068ff16}
.lexi-theme button,.lexi-theme a{touch-action:manipulation}.lexi-theme button:not(:disabled),.lexi-theme select{cursor:pointer}.lexi-theme :is(button,a,input,select,textarea):focus-visible{outline:3px solid #8c64ff;outline-offset:3px}.lexi-theme :is(button,a).primary,.lexi-theme button.primary{background:linear-gradient(110deg,#3475ff,#8136f2)!important;border:0!important;color:white!important;border-radius:11px!important;box-shadow:0 5px 12px #5360ff22}.lexi-theme button:disabled{cursor:not-allowed;opacity:.55}.lexi-theme button,.lexi-theme .row-actions a{white-space:normal;overflow-wrap:break-word}.lexi-theme .row-actions{gap:8px!important;align-items:center}.lexi-theme .row-actions a,.lexi-theme .row-actions button{min-height:38px;display:inline-flex;align-items:center;justify-content:center}.lexi-theme .filters{display:flex;flex-wrap:wrap}.lexi-theme .filters>*{min-width:0;flex:1 1 170px}.lexi-theme .document-row{border-color:#edf0fb}.lexi-theme .document-row.head{color:#677799;background:#f7f9ff!important}
.studio-hero{display:grid;grid-template-columns:minmax(280px,1.15fr) minmax(180px,.7fr) minmax(250px,1fr);align-items:center;gap:18px;margin:-26px -32px 20px;padding:27px 40px 24px;background:radial-gradient(ellipse at 50% 100%,#e6d8ff 0,transparent 54%),linear-gradient(110deg,#eff0ff,#edf3ff);border-radius:0 0 55px 0;overflow:hidden;position:relative}.studio-hero small{font-size:11px;letter-spacing:2.5px;font-weight:800;color:#7226f0}.studio-hero h1{font:800 clamp(24px,2.3vw,38px)/1.2 Inter,system-ui,sans-serif;letter-spacing:-1.3px;margin:12px 0}.studio-hero h1 span{display:block;background:linear-gradient(90deg,#246eff,#a92de5);color:transparent;background-clip:text}.studio-hero p{font-size:14px;line-height:1.6;max-width:510px;color:#3f5079;margin:0}.studio-hero-art{width:100%;max-height:210px;object-fit:contain;filter:drop-shadow(0 13px 10px #5b3fc21b)}.studio-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px}.studio-stat{display:flex;align-items:flex-start;gap:13px;min-height:120px;padding:22px 16px;border:1px solid #ded6ff;border-radius:19px;background:linear-gradient(120deg,#faf6ff,#e8e6ff);box-shadow:0 9px 18px #6553b918}.studio-stat:nth-child(2){border-color:#d4f1f3;background:linear-gradient(120deg,#f2ffff,#cef5ef)}.studio-stat i{font-style:normal;font-size:30px;line-height:1;background:#ffffffa0;color:#8d3bf4;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;flex-shrink:0}.studio-stat:nth-child(2) i{color:#0dbc91}.studio-stat b{display:block;font-size:33px;line-height:1.1;color:#101941;letter-spacing:-1px}.studio-stat span{font-size:12px;line-height:1.4;display:block;margin-top:6px;color:#39487a}
.lexi-theme .agreement-hub-tools{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:20px;margin:18px 0!important;align-items:center}.agreement-hub-tools label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.lexi-theme .agreement-hub-tools :is(input,select){background:white;border:1px solid #dcdff8!important;border-radius:18px!important;min-height:50px!important;width:100%;font-size:13px!important;padding:12px 18px!important;box-shadow:0 4px 10px #455aa006}.lexi-theme .agreement-category-tabs{display:flex;flex-wrap:wrap;gap:12px;margin:17px 0 22px}.lexi-theme .agreement-category-tabs button{padding:13px 21px!important;min-height:45px;border-radius:16px!important;border:1px solid #e0e5fc!important;box-shadow:0 3px 8px #283d6d08;color:#152048;background:#fff9;font-size:12px;font-weight:700}.lexi-theme .agreement-category-tabs button.active{background:linear-gradient(110deg,#387bff,#8e27f7)!important;color:white!important;border-color:transparent!important;box-shadow:0 7px 14px #7544f72b}
.lexi-theme .agreement-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px!important}.lexi-theme .agreement-module-card{--card-tint:#fff2ee;--card-accent:#8034fa;background:white!important;border:5px solid white!important;border-radius:20px!important;box-shadow:0 7px 16px #233c7610!important;overflow:hidden;position:relative;display:flex;flex-direction:column;padding:0!important;min-width:0;transition:transform .18s,box-shadow .18s}.lexi-theme .agreement-module-card:hover{transform:translateY(-3px);box-shadow:0 12px 25px #233c7620!important}.agreement-module-body{background:linear-gradient(110deg,#fff,var(--card-tint));position:relative;min-height:165px;padding:17px 17px 12px;padding-right:30%;border-radius:16px 16px 0 0;overflow:hidden;flex:1}.agreement-module-art{position:absolute;right:1%;bottom:8px;width:31%;height:110px;object-fit:contain;filter:drop-shadow(0 9px 5px #37589025);pointer-events:none}.lexi-theme .agreement-module-card-top{justify-content:flex-start;gap:5px;position:relative;z-index:1;margin-bottom:11px!important}.lexi-theme .agreement-module-card-top small{color:var(--card-accent);background:#ffffffac;padding:5px 10px;border-radius:20px;font-size:10px;font-weight:700}.lexi-theme .agreement-module-card .agreement-badge{display:none}.lexi-theme .agreement-module-card h2{font-size:20px!important;line-height:1.25;margin:8px 0!important;color:#0c173c;letter-spacing:-.6px}.lexi-theme .agreement-module-card p{font-size:12px!important;color:#40537b;line-height:1.55;margin:0!important;min-height:40px}.agreement-module-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:12px 10px 8px;background:#fbfcff}.lexi-theme .agreement-module-meta{display:flex;gap:8px!important;font-size:10px!important;flex-wrap:wrap;padding:0!important;border:0!important;margin:0!important}.lexi-theme .agreement-module-meta span:last-child{font-weight:800;color:#32135c}.lexi-theme .agreement-module-card a{background:var(--card-accent)!important;border-radius:14px!important;padding:10px 13px!important;font-size:10px!important;min-height:36px;display:flex;gap:10px;justify-content:center;align-items:center;margin:0!important;color:white;border:0!important;line-height:1.4;flex-shrink:0}.lexi-theme .agreement-module-card a:hover{filter:brightness(1.08)}
.lexi-theme .dm-steps{overflow-x:auto;scrollbar-width:thin}.lexi-theme .dm-layout,.lexi-theme .dm-content,.lexi-theme .dm-form{min-width:0}.lexi-theme .table-wrap,.lexi-theme .table-responsive{overflow-x:auto;max-width:100%}.lexi-theme .card>table{display:block;overflow-x:auto;width:100%}.lexi-theme .modal{max-width:calc(100vw - 24px);max-height:92dvh;overflow:auto}.lexi-theme .toolbar,.lexi-theme .word-toolbar{flex-wrap:wrap}.lexi-theme .document-editor-header{flex-wrap:wrap}.lexi-theme .a4-page,.lexi-theme .document-rich-editor{color:#111!important}.lexi-theme .dm-error{border-radius:12px;font-size:13px}.lexi-theme .hero small{color:#7936e8!important;letter-spacing:2px}
@media(min-width:1450px){.studio-hero{gap:25px}.agreement-module-footer{flex-wrap:nowrap}.lexi-theme .agreement-module-card a{font-size:11px!important}.lexi-theme .agreement-module-meta{font-size:11px!important}}
@media(max-width:1199px){.studio-hero{grid-template-columns:1.3fr .8fr}.studio-stats{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}.studio-stat{min-height:0;padding:13px 18px;align-items:center}.studio-stat span{margin-top:0}.studio-stat b{font-size:26px}.lexi-theme .agreement-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lexi-theme .content{padding:22px!important}.studio-hero{margin:-22px -22px 20px;padding:25px}.lexi-theme .topbar{padding:12px 22px!important}}
@media(max-width:1023px){.lexi-theme .sidebar{transform:translateX(-100%);position:fixed;inset:0 auto 0 0;height:100dvh!important}.lexi-theme .sidebar.open{transform:translateX(0)!important}.lexi-theme .main{margin-left:0!important}.lexi-theme .menu{display:inline-flex!important}.lexi-theme .sidebar-close{display:block!important}.lexi-theme .sidebar-scrim{position:fixed;inset:0;z-index:59;background:#07132d80;backdrop-filter:blur(3px)}}
@media(max-width:639px){.lexi-theme .content{padding:16px!important}.lexi-theme .topbar{padding:10px 15px!important;min-height:65px!important}.lexi-theme .header-account{gap:8px!important}.lexi-theme .wallet{padding:7px 10px!important;font-size:12px!important}.lexi-theme .wallet small{font-size:8px!important}.lexi-theme .account-trigger b{display:none!important}.lexi-theme .account-trigger>i{width:34px;height:34px}.lexi-theme .topbar-title{font-size:12px!important;gap:8px}.studio-hero{margin:-16px -16px 15px;padding:24px 20px;grid-template-columns:1fr;border-radius:0 0 30px 0;gap:16px}.studio-hero h1{font-size:28px;letter-spacing:-1px}.studio-hero p{font-size:12px}.studio-hero-art{display:none}.studio-stats{gap:10px}.studio-stat{padding:13px 10px;gap:8px;border-radius:14px}.studio-stat i{font-size:23px;width:36px;height:36px}.studio-stat b{font-size:24px}.studio-stat span{font-size:10px}.lexi-theme .agreement-hub-tools{grid-template-columns:1fr;gap:10px}.lexi-theme .agreement-category-tabs{gap:8px;flex-wrap:nowrap;overflow:auto;padding-bottom:5px}.lexi-theme .agreement-category-tabs button{flex-shrink:0;white-space:nowrap;padding:10px 14px!important;font-size:11px;min-height:40px}.lexi-theme .agreement-module-grid{grid-template-columns:1fr;gap:15px!important}.lexi-theme .agreement-module-card h2{font-size:21px!important}.agreement-module-body{min-height:155px;padding-right:34%}.agreement-module-art{width:30%;height:112px}.agreement-module-footer{flex-wrap:nowrap;padding:12px 12px 9px}.lexi-theme .agreement-module-meta{font-size:10px!important;gap:5px!important}.lexi-theme .agreement-module-card a{max-width:55%;font-size:10px!important}.lexi-theme .dm-card{padding:16px!important}.lexi-theme .dm-grid{grid-template-columns:1fr!important;gap:15px!important}.lexi-theme .dm-grid>*{grid-column:auto!important;min-width:0}.lexi-theme .row-actions a,.lexi-theme .row-actions button{min-height:42px!important}.lexi-theme .document-editor-actions{width:100%}.lexi-theme .document-editor-actions>*{flex:1}.lexi-theme .document-editor-header{padding:16px}.lexi-theme .document-editor-header h1{font-size:19px!important;overflow-wrap:anywhere}.lexi-theme .document-page-settings,.lexi-theme .document-format-controls{margin:10px}.lexi-theme .editor-export-actions{padding:12px!important}.lexi-theme .card{max-width:100%;box-sizing:border-box}.lexi-theme .filters>*{flex-basis:100%}.lexi-theme .hero h1{font-size:24px!important}}
@media(prefers-reduced-motion:reduce){.lexi-theme *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.lexi-theme .sidebar,.lexi-theme .topbar,.lexi-theme .toast,.lexi-theme .editor-export-actions,.lexi-theme .word-toolbar,.lexi-theme .document-page-settings{display:none!important}.lexi-theme .main{margin:0!important}}
/* One fixed navigation rail, one fluid content column (avoid legacy grid offset). */
.lexi-theme .shell.lexi-shell{display:block!important}.lexi-theme .sidebar.lexi-sidebar{position:fixed!important;left:0;top:0;height:100dvh!important;box-sizing:border-box}.lexi-theme .main{width:calc(100% - 266px)!important}.lexi-theme .sidebar .system{flex-direction:column!important;align-items:flex-start!important}.lexi-theme .agreement-module-card a{text-decoration:none!important}.lexi-theme .agreement-hub-tools{background:transparent!important;padding:0!important;border:0!important;box-shadow:none!important}.lexi-theme .studio-hero{min-width:0}.lexi-theme .studio-hero>*{min-width:0}
@media(max-width:1023px){.lexi-theme .main{width:100%!important;margin-left:0!important}}
.lexi-theme .dm-wizard{display:flex!important;flex-wrap:wrap!important;gap:10px!important;overflow:visible!important;padding:15px!important}.lexi-theme .dm-wizard>b{display:none!important}.lexi-theme .dm-wizard>button{flex:1 1 145px!important;min-width:0!important;white-space:normal!important;justify-content:flex-start!important;padding:10px!important;min-height:62px!important}.lexi-theme .dm-wizard>button>span{white-space:normal!important;min-width:0!important;line-height:1.4!important;font-size:12px!important}.lexi-theme .dm-wizard>button small{white-space:normal!important;font-size:10px!important}.lexi-theme .document-table>.document-row{min-width:0!important;grid-template-columns:minmax(170px,1.8fr) minmax(40px,.45fr) minmax(65px,.55fr) minmax(90px,.9fr) minmax(85px,.8fr) minmax(120px,1.2fr)!important}.lexi-theme .document-table{overflow-x:visible!important}
@media(max-width:800px){.lexi-theme .document-table>.document-row:not(.head){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:start!important;gap:12px!important}.lexi-theme .document-table>.document-row.head{display:none!important}.lexi-theme .document-row>.document-name,.lexi-theme .document-row>.row-actions{grid-column:1/-1}.lexi-theme .document-row>.row-actions{width:100%}.lexi-theme .document-row>.row-actions>*{flex:1;min-width:95px}}
@media(max-width:639px){.lexi-theme .agreement-category-tabs{flex-wrap:wrap!important;overflow:visible!important}.lexi-theme .dm-wizard>button{flex-basis:calc(50% - 10px)!important}.lexi-theme .dm-wizard>button>i{flex-shrink:0;width:30px!important;height:30px!important;font-size:12px!important}.lexi-theme .dm-wizard>button>span{font-size:11px!important}}
