:root{--bg:#f7faf8;--ink:#182a22;--muted:#738178;--line:#e3ece6;--blue:#21845a;--card:#fff;--nav:#12291f}*{box-sizing:border-box}body{margin:0;font-family:'DM Sans',sans-serif;background:var(--bg);color:var(--ink)}a{color:inherit;text-decoration:none}button,.btn{border:0;border-radius:10px;padding:11px 15px;background:var(--blue);color:white;font-weight:700;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:8px}.btn.ghost{background:white;color:#46516a;border:1px solid var(--line)}.btn.secondary{background:#e8f5ed;color:#176c46}.btn.danger{background:#fff0f0;color:#c54141}.btn.small{padding:7px 10px;font-size:12px}.muted{color:var(--muted)}.tiny{font-size:12px}.eyebrow{font-size:11px;letter-spacing:1.7px;text-transform:uppercase;font-weight:800;color:var(--blue)}h1,h2,h3{font-family:Manrope,sans-serif;letter-spacing:-.04em}h1{font-size:34px;line-height:1.15;margin:8px 0 12px}h2{font-size:22px;margin:0 0 18px}h3{font-size:16px;margin:0 0 10px}.layout{display:flex;min-height:100vh}.sidebar{width:240px;background:var(--nav);color:white;padding:24px 15px;display:flex;flex-direction:column;flex-shrink:0}.brand{font:800 23px Manrope,sans-serif;letter-spacing:-1.2px;padding:0 12px 28px;display:block}.brand span{color:#8296ff}.workspace{font-size:10px;color:#94a2c2;padding:10px 12px;text-transform:uppercase;letter-spacing:1.5px}.nav{display:grid;gap:5px}.nav a{padding:11px 12px;border-radius:10px;color:#aab5ce;font-size:14px}.nav a:hover,.nav a.active{background:#253354;color:white}.side-bottom{margin-top:auto;padding:16px 10px 0;border-top:1px solid #2c3854}.user-mini{display:flex;gap:10px;align-items:center}.user-mini strong{display:block;font-size:13px}.user-mini small{color:#aab5ce;font-size:11px}.avatar{width:36px;height:36px;background:#dce4ff;color:#3f57c9;border-radius:12px;display:grid;place-items:center;font-weight:800;flex-shrink:0}.main{min-width:0;flex:1}.topbar{height:70px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px}.crumb{font-size:13px;color:var(--muted)}.top-actions{display:flex;gap:10px;align-items:center}.content{max-width:1450px;padding:28px 30px 45px;margin:auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.page-head p{color:var(--muted);margin:0;font-size:14px}.grid{display:grid;gap:17px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}.card{background:white;border:1px solid var(--line);border-radius:17px;padding:21px;box-shadow:0 4px 18px #182a4a04}.stat-label{font-size:12px;color:var(--muted);font-weight:600}.stat-value{font:800 28px Manrope;margin:12px 0 7px;letter-spacing:-1px}.stat-foot{font-size:12px;color:#7c879c}.stat-icon{float:right;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#eef1ff;color:var(--blue);font-size:17px}.split{grid-template-columns:1.25fr 1fr}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.section-head h2{margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;color:#8b95a8;font-size:10px;text-transform:uppercase;letter-spacing:.7px;padding:12px 9px;border-bottom:1px solid var(--line)}td{padding:13px 9px;border-bottom:1px solid #f0f2f6;font-size:13px}tr:last-child td{border-bottom:0}.doc-title{display:flex;align-items:center;gap:10px}.file-icon{width:34px;height:38px;border-radius:8px;background:#f0f2ff;color:#4a61e9;display:grid;place-items:center;font-size:10px;font-weight:800;flex-shrink:0}.doc-title strong{display:block;font-size:12px;max-width:240px;overflow:hidden;text-overflow:ellipsis}.doc-title small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.pill{display:inline-flex;padding:6px 9px;border-radius:7px;font-size:10px;font-weight:700;background:#eef1f6;color:#647087}.pill.green{background:#ddf8ec;color:#21835c}.pill.orange{background:#fff0d9;color:#a66b13}.pill.red{background:#ffe3e3;color:#b94141}.pill.blue{background:#e8edff;color:#4c62d9}.field{display:grid;gap:7px;margin-bottom:14px}.field label{font-size:12px;font-weight:700;color:#4c566c}.field input,.field select,.field textarea,.searchbox{width:100%;border:1px solid #e0e5ee;border-radius:10px;padding:12px;background:white;color:var(--ink);outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#8da0ff;box-shadow:0 0 0 3px #4668f51a}.field textarea{min-height:90px;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.dropzone{border:1.5px dashed #b8c5e5;background:#f9faff;border-radius:16px;padding:35px;text-align:center}.drop-icon{width:52px;height:52px;border-radius:16px;background:#e9edff;color:var(--blue);display:grid;place-items:center;margin:0 auto 14px;font-size:24px}.alert{padding:13px 15px;border-radius:10px;background:#fff0f0;color:#b83f3f;font-size:13px;margin-bottom:17px}.alert.success{background:#e4f8ee;color:#227b55}.filters{display:flex;gap:9px;align-items:center;margin-bottom:17px}.filters input{max-width:390px}.filters select{width:auto}.empty{padding:30px;text-align:center;color:var(--muted);font-size:13px}.link-blue{color:var(--blue);font-weight:700}.inline-form{display:flex;gap:8px;align-items:center}.inline-form input,.inline-form select{min-width:0;flex:1;border:1px solid var(--line);padding:10px;border-radius:9px}.messages{display:grid;grid-template-columns:210px 1fr;min-height:430px}.people{border-right:1px solid var(--line);padding-right:12px}.person{padding:11px;border-radius:10px;display:flex;gap:9px;align-items:center;font-size:12px}.person.active,.person:hover{background:#eef1ff}.chat{padding-left:18px;display:flex;flex-direction:column;min-width:0}.bubble{max-width:78%;padding:12px 14px;border-radius:13px;background:#f0f3f9;margin-bottom:11px;font-size:13px;align-self:flex-start}.bubble.mine{background:#e9edff;align-self:flex-end}.bubble small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.chat-log{flex:1;max-height:420px;overflow:auto;padding:4px 8px;display:flex;flex-direction:column}.footer-note{font-size:11px;color:#98a1b2;margin-top:20px}html{scroll-behavior:smooth;scroll-padding-top:18px}.landing{background:white;overflow-x:hidden;overflow-y:auto;min-height:100vh}.landing-nav{height:78px;display:flex;align-items:center;justify-content:space-between;max-width:1200px;padding:0 25px;margin:auto}.landing-nav .brand{padding:0;color:var(--ink)}.landing-nav .navlinks{display:flex;gap:25px;font-size:13px;color:#59647a}.hero{max-width:1200px;margin:auto;padding:75px 25px 70px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:50px}.hero h1{font-size:58px;line-height:1.06;letter-spacing:-3px;margin:17px 0}.hero h1 em{font-style:normal;color:var(--blue)}.hero p{font-size:16px;line-height:1.75;color:#68738a;max-width:520px}.hero-buttons{display:flex;gap:11px;margin-top:26px;flex-wrap:wrap}.hero-proof{display:flex;gap:18px;flex-wrap:wrap;margin-top:27px;font-size:11px;color:#65718a}.hero-proof b{color:#1f2b43}.dashboard-mock{background:#f4f8f5;border:1px solid #e5e9f2;border-radius:22px;padding:17px;box-shadow:0 30px 80px #1d2f571c;transform:rotate(1deg)}.mock-top{display:flex;justify-content:space-between;font-size:12px;font-weight:800;margin-bottom:17px}.mock-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mock-stat{background:white;padding:12px;border-radius:11px;border:1px solid #edf0f5}.mock-stat small{font-size:9px;color:#8b95a8}.mock-stat b{display:block;font:800 21px Manrope;margin-top:8px}.mock-table{margin-top:12px;background:white;border:1px solid #edf0f5;border-radius:12px;padding:8px 12px}.mock-row{display:grid;grid-template-columns:1.6fr .8fr .7fr;gap:8px;align-items:center;padding:11px 0;border-bottom:1px solid #f0f2f7;font-size:10px}.mock-row:last-child{border:0}.mock-file{display:flex;align-items:center;gap:7px}.mock-file i{width:26px;height:29px;border-radius:7px;background:#edf0ff;display:grid;place-items:center;color:#5369e8;font-style:normal;font-weight:800}.features{background:#f4f8f5;padding:72px 25px}.container{max-width:1160px;margin:auto}.center{text-align:center}.center p{color:var(--muted);max-width:620px;margin:0 auto 30px;line-height:1.7}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.feature{background:white;border:1px solid var(--line);padding:23px;border-radius:16px}.ficon{width:41px;height:41px;background:#eef1ff;border-radius:12px;display:grid;place-items:center;color:var(--blue);font-size:19px;margin-bottom:17px}.feature p{font-size:12px;line-height:1.75;color:#7a8497;margin:0}.analytics{padding:76px 25px}.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}.metric-big{font:800 40px Manrope;letter-spacing:-2px;color:var(--blue)}.mini-chart{background:#f4f8f5;border:1px solid var(--line);border-radius:18px;padding:23px}.mini-bars{height:160px;display:flex;gap:12px;align-items:flex-end;border-bottom:1px solid #dfe4ee}.mini-bars i{flex:1;border-radius:6px 6px 0 0;background:linear-gradient(180deg,#8da0ff,#4b64ef)}.chart-legend{display:flex;justify-content:space-between;margin-top:25px;color:var(--muted);font-size:11px}.cta{background:#111c36;color:white;padding:65px 25px;text-align:center}.cta p{color:#aab5cd}.cta .btn{margin-top:15px}.landing-footer{padding:23px;text-align:center;color:#929bad;font-size:11px}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.auth-art{background:linear-gradient(145deg,#121d39,#283d77);color:white;padding:55px;display:flex;flex-direction:column;justify-content:space-between}.auth-art h1{font-size:42px;max-width:440px}.auth-art p{color:#b8c4df;line-height:1.7;max-width:420px}.auth-form-wrap{display:grid;place-items:center;padding:35px}.auth-form{width:min(420px,100%)}.auth-form h2{font-size:28px;margin:20px 0 8px}.auth-form .muted{margin-bottom:24px;font-size:13px}.auth-form .btn{width:100%;padding:14px}.role-select{min-width:140px}@media(max-width:1000px){.sidebar{width:205px}.content{padding:23px 20px}.stats{grid-template-columns:repeat(2,1fr)}.hero{gap:25px}.hero h1{font-size:48px}}@media(max-width:740px){.layout{display:block}.sidebar{width:100%;padding:12px;display:block}.sidebar .brand{padding:3px 9px 12px}.workspace,.side-bottom{display:none}.nav{display:flex;overflow:auto;gap:3px}.nav a{white-space:nowrap;padding:9px;font-size:12px}.topbar{height:54px;padding:0 14px}.content{padding:20px 13px}.page-head{align-items:flex-start;flex-direction:column}.stats{gap:9px}.card{padding:15px}.stat-value{font-size:23px}.split,.analytics-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.hero{grid-template-columns:1fr;padding-top:43px}.hero h1{font-size:42px}.dashboard-mock{transform:none}.landing-nav{padding:0 15px}.landing-nav .navlinks{display:none}.feature-grid{grid-template-columns:1fr}.features,.analytics{padding:50px 16px}.messages{grid-template-columns:1fr}.people{border:0;padding:0 0 10px;display:flex;overflow:auto}.person{white-space:nowrap}.chat{padding:13px 0 0;border-top:1px solid var(--line)}.auth-shell{grid-template-columns:1fr}.auth-art{display:none}.auth-form-wrap{min-height:100vh}.filters{flex-wrap:wrap}.filters input{max-width:none;flex:1;min-width:100%}.inline-form{flex-wrap:wrap}.inline-form select{flex-basis:100%}}
/* DOCFLOW 3.0 marketing photo cards */
.photo-showcase{max-width:1240px;margin:10px auto 38px;padding:0 24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.photo-card{min-height:210px;border-radius:20px;background-size:cover;background-position:center;display:flex;flex-direction:column;justify-content:flex-end;padding:24px;color:#fff;box-shadow:0 14px 35px rgba(10,35,75,.14);border:1px solid rgba(255,255,255,.18)}
.photo-card span{font-size:11px;letter-spacing:.14em;font-weight:800;color:#b7d9ff;margin-bottom:9px}.photo-card b{font-size:23px;line-height:1.2}
@media(max-width:760px){.photo-showcase{grid-template-columns:1fr;padding:0 16px}.photo-card{min-height:170px}.landing-nav .navlinks{display:none}}
.product-concept{max-width:1240px;margin:0 auto 32px;padding:0 24px}.product-concept img{display:block;width:100%;height:auto;border-radius:22px;box-shadow:0 18px 50px rgba(10,35,75,.16)}

/* DOCFLOW 3.2 — unified premium landing, full-page art direction */
.landing{background:#07111f;color:#edf4ff}.landing-nav{max-width:1280px;height:82px;border-bottom:1px solid #ffffff12}.landing-nav .brand{color:#f3f7ff}.landing-nav .navlinks{color:#a7b5ca}.landing-nav .navlinks a:hover{color:#fff}.landing .btn{background:linear-gradient(135deg,#7aa8ff,#4c6ff5);border:1px solid #8bb2ff44;box-shadow:0 10px 30px #4169f52b;border-radius:12px}.landing .btn.ghost{background:#ffffff08;color:#eaf1ff;border:1px solid #ffffff24;box-shadow:none}.landing .eyebrow{color:#8bb4ff}.hero{max-width:1280px;min-height:590px;padding-top:80px;padding-bottom:80px;gap:60px}.hero h1{font-size:clamp(46px,5.5vw,76px);color:#f5f8ff;letter-spacing:-.055em}.hero h1 em{background:linear-gradient(90deg,#a7c7ff,#718bff);-webkit-background-clip:text;background-clip:text;color:transparent}.hero p{color:#aab8ce;font-size:16px}.hero-proof{color:#9aabc3}.hero-proof b{color:#e0eaff}.dashboard-mock{background:linear-gradient(145deg,#15243a,#0d192a);border:1px solid #8aa9df28;box-shadow:0 35px 90px #0008;transform:perspective(1200px) rotateY(-5deg) rotateX(2deg);color:#e9f1ff}.mock-stat,.mock-table{background:#0a1627;border-color:#ffffff12}.mock-stat small{color:#9eafc9}.mock-row{border-color:#ffffff10}.mock-row[style]{color:#91a6c6!important}.mock-file i{background:#243c65;color:#b9d1ff}.features{background:#0a1627;border-top:1px solid #ffffff0d;border-bottom:1px solid #ffffff0d}.features h2,.analytics h2,.cta h2{color:#f2f6ff}.features .center>p,.analytics p{color:#a6b5cb}.feature{background:linear-gradient(145deg,#122239,#0d1a2b);border-color:#ffffff12;box-shadow:0 14px 35px #0002;text-align:left}.feature h3{color:#eaf1ff}.feature p{color:#a2b2c8}.ficon{background:#1b3152;color:#a9c7ff}.analytics{background:#07111f}.metric-big{color:#91b4ff}.mini-chart{background:#101e32;border-color:#ffffff15;color:#e9f1ff}.mini-bars{border-color:#ffffff1c}.mini-bars i{background:linear-gradient(180deg,#9fc4ff,#526ff4)}.chart-legend,.tiny.muted{color:#94a8c4}.cta{background:radial-gradient(ellipse at 50% 0%,#1d3761 0%,#0b1729 58%,#07111f 100%);border-top:1px solid #ffffff12}.cta p{color:#aebed5}.landing-footer{background:#050c16;color:#7486a1;border-top:1px solid #ffffff0d}.photo-showcase{margin-top:0;margin-bottom:65px}.photo-card{border-color:#ffffff1c;box-shadow:0 20px 50px #0005}.landing .btn:hover{transform:translateY(-1px);filter:brightness(1.08)}.landing a{transition:color .2s,background .2s,transform .2s}@media(max-width:740px){.hero{padding-top:45px;padding-bottom:48px;gap:35px}.hero h1{font-size:45px}.dashboard-mock{transform:none}.landing-nav{height:68px}.photo-showcase{margin-bottom:45px}}

/* DOCFLOW 3.3 — fresh green business interface */
:root{--bg:#f3f8f3;--ink:#183126;--muted:#718579;--line:#e1ebe2;--blue:#29965f;--card:#ffffff;--nav:#fafffa}
body{background:var(--bg);color:var(--ink)}
.sidebar{background:#fbfefb;color:#244333;border-right:1px solid #e2ece3;box-shadow:8px 0 28px rgba(28,80,48,.035)}
.sidebar .brand{color:#183b2a}.sidebar .brand span{color:#35a86b}.workspace{color:#91a498}.nav a{color:#60796a}.nav a:hover,.nav a.active{background:#e5f4e9;color:#207b4b}
.side-bottom{border-color:#e2ece3}.user-mini small{color:#7d9384}.topbar{background:#fff;border-color:var(--line)}
.btn,.landing .btn{background:linear-gradient(135deg,#35ad70,#238b55);box-shadow:0 8px 22px rgba(42,151,91,.16);border:1px solid #2c9b60;color:#fff}
.btn.ghost,.landing .btn.ghost{background:#fff;color:#34734f;border:1px solid #dce9df;box-shadow:none}.btn.secondary{background:#e7f5eb;color:#287b4b}.eyebrow,.link-blue{color:#278b55}.pill.blue{background:#e5f4e9;color:#287b4b}.stat-icon,.ficon{background:#e6f5ea;color:#288b55}.file-icon{background:#e9f5ec;color:#2c8b55}.avatar{background:#dff1e4;color:#28794a}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#79bd91;box-shadow:0 0 0 3px #29965f1a}.dropzone{border-color:#a8d4b5;background:#f6fbf7}.alert.success{background:#e5f5e9;color:#237b49}
.landing{background:#f7fbf7;color:#193628}.landing-nav{border-color:#e3eee5}.landing-nav .brand{color:#193628}.landing-nav .navlinks{color:#60796a}.landing-nav .navlinks a:hover{color:#21814d}.hero{background:radial-gradient(ellipse at 80% 35%,#e2f5e7 0%,#f7fbf7 54%);border-radius:0 0 34px 34px}.hero h1{color:#183b2a}.hero h1 em{background:linear-gradient(90deg,#39ad70,#1f8050);-webkit-background-clip:text;background-clip:text;color:transparent}.hero p,.hero-proof{color:#60796a}.hero-proof b{color:#294b37}.dashboard-mock{background:linear-gradient(145deg,#fff,#f0f8f1);border-color:#dcebe0;box-shadow:0 30px 80px rgba(35,104,61,.12);color:#244333}.mock-stat,.mock-table{background:#fff;border-color:#e3eee5}.mock-stat small{color:#84988b}.mock-row{border-color:#edf3ee}.mock-file i{background:#e7f5ea;color:#2a8b55}.features{background:#edf6ef;border-color:#e0ede2}.features h2,.analytics h2{color:#1c3c2b}.features .center>p,.analytics p{color:#6c8273}.feature{background:#fff;border-color:#e1ece3;box-shadow:0 12px 30px rgba(35,94,54,.045)}.feature h3{color:#254632}.feature p{color:#708477}.analytics{background:#f7fbf7}.metric-big{color:#29965f}.mini-chart{background:#fff;border-color:#e1ece3;color:#234331}.mini-bars{border-color:#e0ebe2}.mini-bars i{background:linear-gradient(180deg,#79d59c,#29965f)}.chart-legend{color:#829488}.cta{background:radial-gradient(ellipse at 50% 0%,#e1f5e7 0%,#f1f8f2 58%,#eaf5ec 100%);color:#1c3e2b;border-top:1px solid #deebe0}.cta h2{color:#1c3e2b}.cta p{color:#647d6b}.landing-footer{background:#edf6ef;color:#809487;border-top:1px solid #dfebe1}.photo-card{box-shadow:0 16px 36px rgba(34,91,50,.13)}.auth-shell{background:#f4faf5}.auth-art{background:linear-gradient(145deg,#1f7046,#39a66b)}.auth-art p{color:#d8f1df}.auth-art .eyebrow{color:#d1f2dc}
@media(max-width:740px){.sidebar{background:#fbfefb;border-bottom:1px solid #e2ece3}.hero{background:#f3faf4}}

/* DOCFLOW 3.4 premium white + green */
:root{--bg:#f6faf6;--ink:#193528;--muted:#728579;--line:#e1ebe3;--blue:#248b58;--card:#fff;--nav:#fff}
body{background:#f6faf6;color:#193528}.sidebar{background:#fff;color:#193528;border-right:1px solid #e1ebe3;box-shadow:8px 0 30px #163b1a06}.brand{color:#193528}.brand span{color:#29965f}.workspace{color:#809488}.nav a{color:#63776a}.nav a:hover,.nav a.active{background:#e8f6eb;color:#197647}.side-bottom{border-top-color:#e1ebe3}.user-mini small{color:#718579}.topbar{background:#fff;border-bottom-color:#e1ebe3}.btn,.landing .btn{background:linear-gradient(135deg,#32a96c,#218351);color:#fff;box-shadow:0 7px 18px #248b581c}.btn.secondary{background:#e8f6eb;color:#197647}.eyebrow,.link-blue,.metric-big{color:#248b58}.field input:focus,.field select:focus,.field textarea:focus{border-color:#78c795;box-shadow:0 0 0 3px #29965f1a}.stat-icon,.file-icon,.ficon,.drop-icon{background:#e8f6eb;color:#218351}
.landing{background:#fff;color:#193528}.landing-nav{border-bottom:1px solid #e1ebe3}.landing-nav .brand{color:#193528}.landing-nav .navlinks{color:#63776a}.landing .hero h1{color:#193528}.landing .hero h1 em{background:linear-gradient(90deg,#52b978,#18804a);-webkit-background-clip:text;background-clip:text;color:transparent}.landing .hero p,.landing .hero-proof{color:#63776a}.landing .hero-proof b{color:#193528}.dashboard-mock{background:linear-gradient(145deg,#f7fcf8,#edf7ef);border-color:#dcebe0;box-shadow:0 28px 70px #173b1a12;color:#193528}.mock-stat,.mock-table{background:#fff;border-color:#e1ebe3}.mock-stat small{color:#728579}.mock-file i{background:#e8f6eb;color:#218351}.features{background:#f4faf5;border-color:#e1ebe3}.features h2,.analytics h2{color:#193528}.features .center>p,.analytics p{color:#63776a}.feature{background:#fff;border-color:#e1ebe3;box-shadow:0 8px 28px #173b1a08}.feature h3{color:#193528}.feature p{color:#718579}.analytics{background:#fff}.mini-chart{background:#f5faf6;border-color:#e1ebe3;color:#193528}.mini-bars i{background:linear-gradient(180deg,#85d5a1,#248b58)}.cta{background:linear-gradient(135deg,#eaf7ed,#d9f0df);color:#193528;border-top:1px solid #d7e9db}.cta p{color:#63776a}.landing-footer{background:#fff;color:#718579;border-top:1px solid #e1ebe3}.auth-art{background:linear-gradient(145deg,#e7f6eb,#cdebd6);color:#193528}.auth-art p{color:#4f715b}

/* Shared workspace for browsers and the Windows client. */
:root {
  --bg: #f2f4f7;
  --ink: #17253b;
  --muted: #596980;
  --line: #dce3ed;
  --blue: #2856c1;
  --nav: #17253b;
}
body, button, input, select, textarea { font-family: system-ui, "Segoe UI", sans-serif; }
h1, h2, h3, .brand, .stat-value, .metric-big, .mock-stat b {
  font-family: system-ui, "Segoe UI", sans-serif;
}
:focus-visible { outline: 3px solid #4e7ff3; outline-offset: 3px; }
.btn, button { min-height: 40px; font-size: 14px; border-radius: 8px; }
.btn:hover, button:hover { filter: brightness(.94); }
.section-head { gap: 12px; }
.section-head h2 { font-size: 18px; letter-spacing: -.025em; }
.section-head .link-blue { font-size: 12px; }
.card { min-width: 0; border-radius: 12px; box-shadow: 0 2px 5px #17253b08; }
.field input, .field select, .field textarea, .searchbox { min-width: 0; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .searchbox:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 1px;
}
table th { color: var(--muted); }
table td { font-variant-numeric: tabular-nums; }
table tbody tr:hover { background: #f7f9fc; }
table .doc-title strong { max-width: 30ch; }
.file-icon { background: #eaf0fd; color: #2856ad; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.workspace-ui .sidebar {
  position: sticky;
  top: 0;
  width: 228px;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  padding: 20px 14px 14px;
  overflow-y: auto;
}
.workspace-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 3px 8px 20px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.035em;
}
.workspace-brand img { border-radius: 9px; }
.workspace-ui .nav { display: grid; gap: 17px; overflow: visible; margin-bottom: 18px; }
.nav-group { display: grid; gap: 3px; }
.nav-label { color: #a9b7ce; font-size: 11px; font-weight: 700; padding: 0 10px 4px; }
.workspace-ui .nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7e1f2;
  font-size: 13px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 7px;
}
.workspace-ui .nav a:hover { background: #263a56; }
.workspace-ui .nav a.active { background: #294777; color: #fff; font-weight: 700; }
.nav-icon { min-width: 17px; font-size: 17px; text-align: center; color: #b2c7e6; }
.workspace-ui .side-bottom { padding: 12px 7px 0; }
.user-mini strong { overflow-wrap: anywhere; }
.sign-out { background: transparent; padding: 4px 0; margin-top: 3px; color: #d7e1f2; font-size: 12px; }
.workspace-ui .topbar { height: 60px; padding: 0 28px; gap: 12px; }
.top-context, .crumb { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crumb { overflow: hidden; white-space: nowrap; }
.crumb > span:first-child, .crumb strong { overflow: hidden; text-overflow: ellipsis; }
.crumb strong { color: var(--ink); }
.top-link, .menu-toggle { padding: 8px 10px; border-radius: 7px; color: var(--ink); font-size: 13px; font-weight: 650; background: #edf2fa; }
.top-link:hover, .top-link[aria-current] { background: #dee9fa; }
.menu-toggle { display: none; }
.workspace-ui .content { max-width: 1500px; }
.workspace-ui .page-head h1 { font-size: clamp(25px, 3.5vw, 34px); overflow-wrap: anywhere; }
.overview-head { margin-bottom: 20px; }
.page-head .overview-date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.overview-head h1 { margin-bottom: 0; }
.overview-stats .card { display: grid; align-content: start; gap: 5px; }
.overview-stats a.card:hover { border-color: #95ace0; }
.overview-stats .stat-value { margin: 1px 0; font-size: 29px; font-variant-numeric: tabular-nums; }
.overdue-value { color: #b53636; }
.stat-foot { color: var(--muted); }
.overview-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; }
.overview-row { display: flex; align-items: center; gap: 12px; min-height: 51px; padding: 9px 0; border-top: 1px solid var(--line); }
a.overview-row:hover { background: #f7f9fc; }
.row-text { display: grid; gap: 4px; flex: 1; min-width: 0; font-size: 13px; }
.row-text strong { overflow-wrap: anywhere; }
.row-text small { color: var(--muted); }
.deadline-date { border-radius: 7px; background: #eaf0fd; color: #234eaa; padding: 8px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.task-toggle { min-width: 38px; }
.filters { flex-wrap: wrap; }
.auth-art { background: #17253b; }
.auth-art .brand span, .landing-nav .brand span { color: #799df4; }

@media (max-width: 1080px) {
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 790px) {
  .workspace-ui .layout { display: block; }
  .workspace-ui .sidebar {
    position: fixed;
    inset: 56px auto 0 0;
    width: min(290px, 90vw);
    height: auto;
    z-index: 4;
    display: none;
    box-shadow: 8px 0 32px #17253b40;
  }
  .workspace-ui .sidebar.is-open { display: flex; }
  .workspace-ui .side-bottom { display: block; }
  .workspace-ui .nav a { min-height: 44px; }
  .workspace-ui .topbar { position: sticky; top: 0; z-index: 5; height: 56px; padding: 0 14px; }
  .workspace-ui .content { padding: 18px 14px 32px; }
  .menu-toggle { display: inline-flex; }
  .top-link, .menu-toggle { min-height: 42px; display: inline-flex; align-items: center; }
  .workspace-ui .btn { min-height: 44px; }
  .field input, .field select, .field textarea, .searchbox { font-size: 16px; }
}
@media (max-width: 480px) {
  .crumb > span { display: none; }
  .workspace-ui .page-head { gap: 12px; }
  .overview-stats .card { padding: 12px; }
  .overview-stats .stat-value { font-size: 24px; }
  .overview-grid .section-head h2 { font-size: 16px; }
  .overview-grid .empty { padding: 20px 5px; }
}

.workspace-ui { background: var(--bg); color: var(--ink); }
.workspace-ui .sidebar { background: var(--nav); color: #fff; border: 0; }
.workspace-ui .side-bottom { border-top-color: #3b4b64; }
.workspace-ui .user-mini small { color: #b7c6da; }
.workspace-ui .topbar { border-bottom-color: var(--line); }
.workspace-ui .link-blue { color: var(--blue); }
.workspace-ui .btn:not(.ghost):not(.secondary):not(.danger) {
  background: var(--blue);
  box-shadow: 0 2px 4px #152b641f;
}
.workspace-ui .btn.secondary { background: #eaf0fd; color: #234eaa; }
.auth-art { color: #fff; }
.auth-art p { color: #d0dbed; }
.auth-shell { background: var(--bg); }
.auth-form-wrap .btn { background: var(--blue); }
.auth-form-wrap .link-blue { color: var(--blue); }

@media (max-width: 480px) {
  .overview-documents td, .overview-documents th { padding-left: 4px; padding-right: 4px; }
  .overview-documents td { font-size: 11px; }
  .overview-documents td:first-child { white-space: normal; overflow-wrap: anywhere; }
  .overview-documents .file-icon { display: none; }
  .overview-documents .pill { white-space: normal; }
}
.role-visibility { margin-top: 17px; }
.role-visibility details { padding: 10px 0; border-top: 1px solid var(--line); }
.role-visibility summary { cursor: pointer; font-weight: 650; }
.role-block-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.role-block-options label { display: flex; align-items: center; gap: 6px; }
.role-block-options input[type="checkbox"] { width: auto; }
[data-unread-count][hidden] { display: none; }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px; border-top: 1px solid var(--line); }
.notice-row .muted { margin-top: 4px; font-size: .85rem; overflow-wrap: anywhere; }
.notice-unread { background: #f1f8f2; }
.notice-watch { margin: 16px 0; }
.account-security-link { display: block; margin-top: 12px; color: inherit; font-size: .82rem; }
.account-security-link:hover { text-decoration: underline; }
.security-verify { max-width: 510px; margin: 36px auto; }
.security-key { overflow-wrap: anywhere; font-weight: 700; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 6px; padding-left: 18px; }
.workspace-plan { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #e3f3e7; padding: 5px 10px 12px; font-size: .75rem; }
.workspace-plan strong { border: 1px solid #94c4a7; border-radius: 5px; padding: 2px 6px; }
.workspace-plan:hover span, .workspace-plan[aria-current] span { text-decoration: underline; }
.workspace-plan-expired strong { color: #ffd89a; border-color: #d7aa68; }
.subscription-banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; background: #fff4dc; color: #6e4c1f; border-radius: 10px; padding: 11px 13px; margin-bottom: 16px; }
.subscription-banner a { text-decoration: underline; }
.subscription-contacts { margin-top: 16px; }
.subscription-code { overflow-wrap: anywhere; }
[data-workspace-readonly] button:disabled { opacity: .55; cursor: not-allowed; }
