:root{
  --bg:#eef6fb;
  --paper:#fff;
  --ink:#0b1d35;
  --text:#253a55;
  --muted:#687a91;
  --line:#dce8f2;
  --blue:#1599d6;
  --blue-dark:#0d5da8;
  --teal:#19b8c5;
  --green:#21b978;
  --amber:#f59e0b;
  --soft-blue:#eaf7ff;
  --soft-teal:#e7fbfc;
  --soft-green:#eafaf2;
  --shadow:0 18px 54px rgba(13,57,104,.10);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:radial-gradient(circle at 16% 0,rgba(21,153,214,.12),transparent 28%),linear-gradient(180deg,#f8fcff 0%,var(--bg) 100%);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Segoe UI",Roboto,sans-serif;letter-spacing:-.025em}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.skip-link{position:absolute;left:-999px;top:12px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 14px;z-index:100}.skip-link:focus{left:12px}
.workspace-shell{min-height:100vh;display:grid;grid-template-columns:260px minmax(0,1fr)}
.workspace-sidebar{position:sticky;top:0;height:100vh;padding:22px 18px;display:flex;flex-direction:column;gap:18px;background:rgba(255,255,255,.90);border-right:1px solid rgba(220,232,242,.92);box-shadow:12px 0 40px rgba(10,35,64,.04);backdrop-filter:blur(18px)}
.workspace-brand{display:flex;align-items:center;gap:13px;padding:10px 8px 14px}.brand-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:16px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--teal));font-weight:950;box-shadow:0 14px 32px rgba(21,153,214,.24)}.workspace-brand b{display:block;font-size:17px;line-height:1.05}.workspace-brand small{display:block;margin-top:3px;color:#6b7c90;font-weight:800;font-size:12px}.tenant-card{padding:18px;border:1px solid #dceaf5;border-radius:22px;background:linear-gradient(180deg,#f8fcff,#eef8ff)}.tenant-card span{display:block;color:#748399;font-size:12px;font-weight:900}.tenant-card strong{display:block;margin:7px 0 7px;font-size:21px}.tenant-card p{margin:0;color:#53677e;line-height:1.45;font-size:13px;font-weight:700}.workspace-nav{display:grid;gap:8px;margin-top:4px}.workspace-nav a{display:flex;align-items:center;gap:11px;min-height:44px;padding:0 12px;border-radius:15px;color:#324a65;font-weight:900}.workspace-nav a span{display:grid;place-items:center;width:27px;height:27px;border-radius:10px;background:#edf5fb;color:#2b718e}.workspace-nav a:hover,.workspace-nav a.active{background:linear-gradient(135deg,#e7f8ff,#e8fbf7);color:#07365f}.workspace-nav a.active span{background:linear-gradient(135deg,var(--blue),var(--teal));color:#fff}.support-card{margin-top:auto;padding:18px;border-radius:22px;border:1px solid #dce8f2;background:#fff;box-shadow:0 12px 34px rgba(10,35,64,.06)}.support-card b{display:block;font-size:15px}.support-card p{color:#62758a;font-size:13px;line-height:1.55;margin:8px 0 14px}.support-card a{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:999px;background:linear-gradient(135deg,var(--blue),var(--blue-dark));color:#fff;font-weight:950}
.workspace-main{min-width:0}.workspace-topbar{position:sticky;top:0;z-index:20;min-height:78px;padding:15px clamp(22px,3vw,34px);display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(248,252,255,.86);border-bottom:1px solid rgba(220,232,242,.9);backdrop-filter:blur(16px)}.workspace-topbar h1{margin:0;font-size:24px;letter-spacing:-.04em}.workspace-topbar p{margin:4px 0 0;color:#718197;font-size:13px;font-weight:750}.topbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.search-box{display:flex;align-items:center;gap:8px;height:46px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:#fff;box-shadow:0 10px 28px rgba(10,35,64,.05)}.search-box input{border:0;outline:0;width:min(320px,22vw);background:transparent;color:var(--ink);font-weight:700}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:#fff;color:#0c233e;font-weight:950;box-shadow:0 10px 28px rgba(10,35,64,.06);white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn.primary{border:0;color:#fff;background:linear-gradient(135deg,var(--blue),var(--blue-dark));box-shadow:0 16px 34px rgba(21,153,214,.22)}.btn.primary.soft{background:linear-gradient(135deg,#15a38e,#21b978)}.btn.white{background:#fff}.mini-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#23405d;font-weight:950;box-shadow:0 8px 22px rgba(10,35,64,.05);cursor:pointer}
.workspace-content{padding:26px clamp(22px,3vw,34px) 38px}.hero-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.55fr);gap:24px;align-items:stretch;padding:36px;border-radius:32px;background:linear-gradient(135deg,#ffffff 0%,#f3fbff 55%,#edfafa 100%);border:1px solid #dbeaf5;box-shadow:var(--shadow);position:relative;overflow:hidden}.hero-panel:after{content:"";position:absolute;right:-100px;top:-110px;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle,rgba(25,184,197,.20),transparent 68%)}.hero-copy{position:relative;z-index:1}.kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#e8f8ff;color:#0d80b5;border:1px solid #caecf8;font-size:12px;font-weight:950;letter-spacing:.08em}.kicker:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.hero-panel h2{margin:18px 0 14px;font-size:clamp(34px,3.25vw,58px);line-height:1.06;letter-spacing:-.07em}.hero-panel p{margin:0;max-width:780px;color:#486178;font-size:17px;line-height:1.72;font-weight:720}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.chip-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.chip-row span{display:inline-flex;align-items:center;min-height:36px;padding:0 13px;border-radius:999px;background:#f6fbff;border:1px solid #d8e9f5;color:#33516c;font-weight:900;font-size:13px}.ops-card{position:relative;z-index:1;display:flex;flex-direction:column;gap:16px;padding:22px;border-radius:24px;background:rgba(255,255,255,.72);border:1px solid rgba(216,232,244,.9);box-shadow:0 16px 44px rgba(10,35,64,.07);backdrop-filter:blur(10px)}.ops-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ops-card-head strong{font-size:17px}.ops-card-head span{color:#74849a;font-size:12px;font-weight:850}.ops-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ops-grid div{padding:18px;border-radius:18px;background:#f7fbff;border:1px solid #e1ecf5}.ops-grid span{display:block;color:#65768c;font-weight:850;font-size:12px}.ops-grid b{display:block;margin:8px 0 2px;font-size:28px;letter-spacing:-.04em}.ops-grid small{color:#7d8da0;font-weight:750}.stat-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:20px}.stat-card{position:relative;min-height:150px;padding:24px;border-radius:24px;background:#fff;border:1px solid #dce8f2;box-shadow:0 14px 40px rgba(10,35,64,.06)}.stat-card span{display:block;color:#334c67;font-weight:950}.stat-card b{display:block;margin:25px 0 4px;font-size:36px;letter-spacing:-.05em}.stat-card small{color:#718197;font-weight:800}.stat-card em{position:absolute;right:18px;top:18px;padding:6px 10px;border-radius:999px;font-style:normal;font-size:12px;font-weight:950}.stat-card.blue em{background:#e7f4ff;color:#116aa5}.stat-card.amber em{background:#fff5e6;color:#b56c07}.stat-card.green em{background:#e8f8f0;color:#138457}.stat-card.gray em{background:#eef3f7;color:#64748b}.two-column{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(420px,.95fr);gap:18px;margin-top:20px}.panel{background:#fff;border:1px solid #dce8f2;border-radius:24px;box-shadow:0 14px 40px rgba(10,35,64,.06)}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 0}.panel-head h3{margin:0;font-size:20px}.panel-head p{margin:6px 0 0;color:#708196;font-weight:750;font-size:13px}.quick-list{display:grid;gap:10px;padding:22px}.quick-list a{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:14px;align-items:center;min-height:72px;padding:14px;border-radius:18px;background:#f7fbff;border:1px solid #dce8f2}.quick-list a:hover{border-color:#a8d9ee;background:#eef9ff}.quick-list span{grid-row:span 2;display:grid;place-items:center;width:44px;height:44px;border-radius:16px;background:#e1f5ff;color:#147daf;font-weight:950}.quick-list b{font-size:16px}.quick-list small{color:#718197;font-weight:750}.timeline{list-style:none;margin:0;padding:20px 24px 22px;display:grid;gap:0}.timeline li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:14px 0;border-bottom:1px solid #edf3f8}.timeline li:last-child{border-bottom:0}.timeline li>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e4f6ff;color:#0a7cac;font-weight:950;font-size:12px}.timeline b{display:block;font-size:14px}.timeline small{display:block;margin-top:4px;color:#72839a;font-weight:750}.recent-panel{margin-top:20px}.recent-head{padding-bottom:12px}.table-wrap{padding:0 18px 18px;overflow:auto}.contract-table{width:100%;border-collapse:separate;border-spacing:0 10px;min-width:920px}.contract-table th{padding:0 14px 6px;text-align:left;color:#718197;font-size:12px;font-weight:950}.contract-table td{padding:17px 14px;background:#fbfdff;border-top:1px solid #e0ebf3;border-bottom:1px solid #e0ebf3;color:#263b55;font-weight:800}.contract-table td:first-child{border-left:1px solid #e0ebf3;border-radius:16px 0 0 16px}.contract-table td:last-child{border-right:1px solid #e0ebf3;border-radius:0 16px 16px 0}.subline{display:block;margin-top:4px;color:#7b8ba0;font-size:12px;font-weight:750}.status-pill{display:inline-flex;align-items:center;min-width:160px;min-height:28px;padding:0 12px;border-radius:999px;font-weight:950;font-size:12px}.status-pill.wait{background:#fff3df;color:#af6400}.status-pill.view{background:#eaf5ff;color:#1468a8}.status-pill.done{background:#e8faef;color:#128552}.status-pill.draft{background:#edf3f8;color:#5c6d7f}.status-pill.issue{background:#fff0f0;color:#c24141}.status-pill.signed{background:#eef2ff;color:#3949ab}.detail-link{color:#0d76b3;font-weight:950}.empty-cell{text-align:center;color:#73859b;padding:34px!important}.next-step{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:20px;padding:24px;border-radius:24px;background:linear-gradient(135deg,#ffffff,#f1fbff);border:1px solid #dce8f2;box-shadow:0 14px 40px rgba(10,35,64,.06)}.next-step h3{margin:0 0 8px;font-size:22px}.next-step p{margin:0;color:#65768c;font-weight:750;line-height:1.55}.next-step>div:last-child{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:1180px){.workspace-shell{grid-template-columns:1fr}.workspace-sidebar{position:relative;height:auto;display:block;padding:14px 16px}.workspace-brand{display:inline-flex}.tenant-card,.support-card{display:none}.workspace-nav{display:flex;overflow:auto;gap:8px;margin:8px 0 0;padding-bottom:4px}.workspace-nav a{white-space:nowrap}.workspace-topbar{position:relative;display:grid}.topbar-actions{justify-content:flex-start}.search-box input{width:260px}.hero-panel,.two-column{grid-template-columns:1fr}.ops-grid,.stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.workspace-content{padding:16px}.workspace-topbar{padding:14px 16px}.topbar-actions{display:grid;grid-template-columns:1fr;width:100%}.search-box{width:100%}.search-box input{width:100%}.hero-panel{padding:22px;border-radius:24px}.hero-panel h2{font-size:34px}.hero-actions,.next-step,.next-step>div:last-child{display:grid;grid-template-columns:1fr}.btn{width:100%}.ops-grid,.stat-strip{grid-template-columns:1fr}.stat-card{min-height:130px}.panel-head{display:grid}.quick-list{padding:16px}.timeline{padding:14px 18px 18px}.workspace-nav a{font-size:13px}.contract-table{min-width:760px}}


/* v8 mobile product-grade dashboard fixes */
@media (max-width:900px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;background:#eef7fc;}
  body{font-size:15px;}
  .workspace-shell{display:block;min-height:100vh;width:100%;}
  .workspace-sidebar{position:sticky;top:0;z-index:50;height:auto;display:block;padding:13px 13px 10px;background:rgba(255,255,255,.97);border-right:0;border-bottom:1px solid #dce8f2;box-shadow:0 10px 30px rgba(10,35,64,.08);backdrop-filter:blur(14px);}
  .workspace-brand{display:flex;width:100%;gap:11px;align-items:center;padding:2px 1px 10px;}
  .brand-symbol{width:42px;height:42px;min-width:42px;border-radius:15px;font-size:20px;box-shadow:0 10px 26px rgba(21,153,214,.22);}
  .workspace-brand b{font-size:19px;letter-spacing:-.035em;}
  .workspace-brand small{font-size:12px;margin-top:2px;}
  .tenant-card,.support-card{display:none!important;}
  .workspace-nav{display:flex;overflow-x:auto;gap:7px;margin:0 -2px;padding:0 2px 4px;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;}
  .workspace-nav::-webkit-scrollbar{display:none;}
  .workspace-nav a{flex:0 0 auto;scroll-snap-align:start;min-height:38px;padding:0 11px;border-radius:999px;border:1px solid #dbeaf5;background:#fff;color:#28425f;font-size:13px;font-weight:950;box-shadow:0 6px 16px rgba(10,35,64,.05);white-space:nowrap;}
  .workspace-nav a span{width:22px;height:22px;border-radius:8px;font-size:12px;}
  .workspace-nav a.active{background:linear-gradient(135deg,#e6fbff,#eafbf3);}
  .workspace-main{width:100%;min-width:0;}
  .workspace-topbar{position:relative;display:block;min-height:auto;padding:17px 14px 15px;background:linear-gradient(180deg,#f9fdff,#f0f9ff);border-bottom:1px solid #dce8f2;}
  .workspace-topbar h1{font-size:25px;line-height:1.16;margin:0;letter-spacing:-.055em;}
  .workspace-topbar p{margin-top:6px;font-size:14px;line-height:1.45;color:#60738b;}
  .topbar-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:100%;margin-top:14px;}
  .search-box{grid-column:1/-1;width:100%;height:48px;padding:0 14px;border-radius:18px;box-shadow:0 8px 22px rgba(10,35,64,.05);}
  .search-box input{width:100%;min-width:0;font-size:15px;}
  .topbar-actions .btn{width:100%;min-height:48px;padding:0 10px;font-size:14px;}
  .topbar-actions .btn.white{grid-column:1/-1;}
  .workspace-content{padding:14px 12px 24px;width:100%;min-width:0;}
  .hero-panel{display:block;width:100%;padding:18px 14px 16px;border-radius:22px;background:linear-gradient(180deg,#ffffff,#f2fbff);box-shadow:0 12px 30px rgba(10,35,64,.08);overflow:hidden;}
  .hero-panel:after{width:190px;height:190px;right:-82px;top:-72px;opacity:.9;}
  .kicker{padding:6px 10px;font-size:10px;letter-spacing:.06em;}
  .hero-panel h2{margin:11px 0 9px;font-size:28px!important;line-height:1.14;letter-spacing:-.065em;}
  .hero-panel p{max-width:none;font-size:14.5px;line-height:1.62;color:#506982;}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:15px;}
  .hero-actions .btn{min-height:48px;font-size:15px;}
  .chip-row{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px;margin-top:12px;padding-bottom:2px;-webkit-overflow-scrolling:touch;}
  .chip-row::-webkit-scrollbar{display:none;}
  .chip-row span{flex:0 0 auto;min-height:32px;padding:0 11px;font-size:12px;background:#fff;}
  .ops-card{margin-top:15px;padding:15px;border-radius:20px;background:#fff;border-color:#dce8f2;box-shadow:0 10px 26px rgba(10,35,64,.06);}
  .ops-card-head{align-items:flex-start;}
  .ops-card-head strong{font-size:17px;}
  .ops-card-head span{font-size:11px;white-space:nowrap;}
  .ops-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px;}
  .ops-grid div{min-width:0;padding:13px;border-radius:16px;background:#f8fcff;}
  .ops-grid span{font-size:11px;line-height:1.25;}
  .ops-grid b{margin:7px 0 1px;font-size:28px;}
  .ops-grid small{font-size:11px;line-height:1.3;}
  .stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px;margin-top:14px;}
  .stat-card{min-height:108px!important;padding:15px;border-radius:18px;box-shadow:0 10px 26px rgba(10,35,64,.05);}
  .stat-card span{font-size:14px;line-height:1.25;}
  .stat-card b{margin:18px 0 0;font-size:34px;line-height:1;}
  .stat-card small{font-size:12px;}
  .stat-card em{right:11px;top:11px;padding:5px 8px;font-size:10px;}
  .two-column{display:block;margin-top:14px;}
  .panel{width:100%;margin-top:14px;border-radius:20px;box-shadow:0 10px 26px rgba(10,35,64,.06);overflow:hidden;}
  .panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:18px 16px 0;}
  .panel-head h3{font-size:21px;line-height:1.2;}
  .panel-head p{font-size:13.5px;line-height:1.45;}
  .mini-btn{min-height:38px;padding:0 12px;font-size:13px;white-space:nowrap;}
  .quick-list{padding:15px;gap:9px;}
  .quick-list a{grid-template-columns:42px minmax(0,1fr);min-height:68px;padding:12px;border-radius:16px;}
  .quick-list span{width:42px;height:42px;border-radius:15px;}
  .quick-list b{font-size:16px;line-height:1.2;}
  .quick-list small{font-size:13px;line-height:1.35;}
  .timeline{padding:10px 16px 16px;}
  .timeline li{grid-template-columns:30px minmax(0,1fr);gap:10px;padding:12px 0;}
  .timeline li>span{width:28px;height:28px;}
  .timeline b{font-size:15px;line-height:1.25;}
  .timeline small{font-size:12px;line-height:1.42;word-break:keep-all;}
  .recent-panel{margin-top:14px;}
  .recent-head{display:block;padding-bottom:0;}
  .recent-head .mini-btn{display:flex;width:100%;margin-top:12px;}
  .table-wrap{padding:0 14px 16px;overflow:visible;}
  .contract-table{display:block;width:100%;min-width:0;border-collapse:separate;border-spacing:0;}
  .contract-table thead{display:none;}
  .contract-table tbody,.contract-table tr,.contract-table td{display:block;width:100%;}
  .contract-table tr{margin:0 0 12px;padding:14px;background:#fbfdff;border:1px solid #dce8f2;border-radius:18px;box-shadow:0 8px 20px rgba(10,35,64,.04);}
  .contract-table td{padding:7px 0!important;border:0!important;background:transparent!important;color:#243d5a;}
  .contract-table td:first-child,.contract-table td:last-child{border-radius:0!important;}
  .contract-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:2px;color:#71839a;font-size:11px;font-weight:950;letter-spacing:-.01em;}
  .contract-table td:first-child b{font-size:18px;}
  .subline{font-size:12px;line-height:1.35;}
  .status-pill{min-width:0;min-height:30px;padding:0 11px;font-size:12px;}
  .detail-link{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px solid #cae4f4;border-radius:999px;background:#fff;color:#0d76b3;}
  .empty-cell{padding:24px 12px!important;}
  .next-step{display:block;margin-top:14px;padding:18px 16px;border-radius:20px;}
  .next-step h3{font-size:21px;line-height:1.24;}
  .next-step p{font-size:13.5px;line-height:1.5;}
  .next-step>div:last-child{display:grid;grid-template-columns:1fr;gap:8px;margin-top:14px;}
  .next-step .btn{width:100%;}
}
@media (max-width:480px){
  .workspace-sidebar{padding:12px 12px 9px;}
  .workspace-brand b{font-size:18px;}
  .workspace-brand small{font-size:11px;}
  .brand-symbol{width:40px;height:40px;min-width:40px;border-radius:14px;}
  .workspace-nav a{font-size:12px;min-height:36px;padding:0 10px;}
  .workspace-topbar{padding:15px 12px 13px;}
  .workspace-topbar h1{font-size:23px;}
  .topbar-actions{grid-template-columns:1fr;}
  .topbar-actions .btn.white{grid-column:auto;}
  .workspace-content{padding:12px 10px 22px;}
  .hero-panel{padding:16px 13px;border-radius:20px;}
  .hero-panel h2{font-size:25px!important;}
  .ops-grid,.stat-strip{gap:8px;}
  .ops-grid div{padding:12px 10px;}
  .stat-card{padding:14px 12px;min-height:104px!important;}
  .stat-card b{font-size:32px;}
  .panel-head{padding:17px 14px 0;}
  .quick-list{padding:14px;}
  .table-wrap{padding:0 12px 14px;}
}


/* v9 mobile polish + og deployment support */
@media (max-width: 860px){
  .workspace-topbar{box-shadow:none;}
  .topbar-actions{grid-template-columns:1fr;}
  .topbar-actions .btn{min-height:46px;}
  .topbar-actions .btn.white,.topbar-actions .btn.primary,.topbar-actions .btn.primary.soft{grid-column:auto;}
  .hero-actions .btn,.next-step .btn,.recent-head .mini-btn,.quick-list a,.mini-btn{min-height:46px;}
  .ops-grid{grid-template-columns:1fr 1fr!important;}
  .stat-strip{grid-template-columns:1fr 1fr!important;}
}
@media (max-width: 560px){
  body{font-size:15px;}
  .workspace-topbar p,.hero-panel p,.panel-head p,.next-step p,.quick-list small,.timeline small{word-break:keep-all;}
  .ops-grid{grid-template-columns:1fr!important;}
  .stat-strip{grid-template-columns:1fr!important;}
  .search-box input{font-size:16px;}
  .detail-link{min-height:44px;}
  .contract-table tr{padding:12px;}
}


/* v10 product mobile polish: safe CSS only, no workflow changes */
:root{
  --mobile-gutter: clamp(12px, 3.8vw, 18px);
}
html, body{
  max-width:100%;
  overflow-x:hidden;
}
img, svg, canvas, iframe, video{
  max-width:100%;
}
input, textarea, select{
  max-width:100%;
}
@media (max-width: 960px){
  .workspace-shell,
  .workspace-main,
  .workspace-content,
  .workspace-topbar,
  .hero-panel,
  .panel,
  .recent-panel,
  .next-step{
    max-width:100%;
    min-width:0;
  }
  .workspace-content{
    padding-left:var(--mobile-gutter);
    padding-right:var(--mobile-gutter);
  }
  .workspace-topbar{
    padding-left:var(--mobile-gutter);
    padding-right:var(--mobile-gutter);
  }
  .workspace-nav{
    padding-bottom:6px;
  }
  .workspace-nav a{
    min-width:max-content;
  }
  .topbar-actions{
    grid-template-columns:1fr 1fr;
  }
  .topbar-actions .search-box{
    grid-column:1 / -1;
  }
  .topbar-actions .btn{
    min-width:0;
    white-space:normal;
    line-height:1.25;
  }
  .hero-panel{
    padding:clamp(18px, 5vw, 28px);
  }
  .hero-panel h2{
    font-size:clamp(26px, 8vw, 38px)!important;
    line-height:1.13;
    word-break:keep-all;
  }
  .hero-panel p{
    font-size:clamp(14px, 3.8vw, 16px);
    word-break:keep-all;
  }
  .ops-grid,
  .stat-strip{
    gap:10px;
  }
  .ops-grid div,
  .stat-card{
    min-width:0;
  }
  .quick-list a{
    min-width:0;
  }
  .quick-list b,
  .quick-list small,
  .timeline b,
  .timeline small{
    overflow-wrap:anywhere;
  }
  .recent-panel .panel-head,
  .panel-head{
    padding-left:var(--mobile-gutter);
    padding-right:var(--mobile-gutter);
  }
  .table-wrap{
    padding-left:var(--mobile-gutter);
    padding-right:var(--mobile-gutter);
  }
}
@media (max-width: 640px){
  .workspace-brand{
    padding-bottom:8px;
  }
  .workspace-topbar h1{
    font-size:clamp(22px, 7vw, 28px);
    word-break:keep-all;
  }
  .workspace-topbar p{
    font-size:13.5px;
  }
  .topbar-actions{
    grid-template-columns:1fr;
  }
  .search-box{
    border-radius:16px;
  }
  .search-box input{
    min-width:0;
    font-size:16px;
  }
  .btn,
  .mini-btn{
    white-space:normal;
    line-height:1.22;
  }
  .hero-actions,
  .next-step > div:last-child{
    gap:8px;
  }
  .ops-grid{
    grid-template-columns:1fr 1fr!important;
  }
  .ops-grid div{
    padding:12px 10px;
  }
  .ops-grid b{
    font-size:26px;
  }
  .ops-grid small{
    display:block;
    line-height:1.25;
  }
  .stat-strip{
    grid-template-columns:1fr 1fr!important;
  }
  .stat-card{
    padding:14px 12px;
  }
  .stat-card b{
    font-size:30px;
  }
  .quick-list a{
    grid-template-columns:38px minmax(0,1fr);
    column-gap:10px;
  }
  .quick-list span{
    width:38px;
    height:38px;
  }
  .contract-table tr{
    overflow:hidden;
  }
  .contract-table td{
    overflow-wrap:anywhere;
  }
}
@media (max-width: 420px){
  .ops-grid,
  .stat-strip{
    grid-template-columns:1fr!important;
  }
  .workspace-nav a{
    font-size:12px;
    padding:0 9px;
  }
  .hero-panel{
    padding:16px 12px;
  }
  .hero-panel h2{
    font-size:25px!important;
  }
  .ops-card,
  .panel,
  .next-step,
  .stat-card{
    border-radius:18px;
  }
  .quick-list,
  .timeline,
  .table-wrap{
    padding-left:12px;
    padding-right:12px;
  }
}
