:root{
  --bg:#f5f7fb;
  --panel:#ffffff;
  --panel-soft:#fbfcfe;
  --line:#e4e9f1;
  --line-strong:#d8e0eb;
  --text:#182235;
  --muted:#748096;
  --muted-2:#98a3b4;
  --blue:#2563eb;
  --blue-dark:#1d4ed8;
  --blue-soft:#eef4ff;
  --green:#16a266;
  --green-soft:#eaf8f1;
  --orange:#d97706;
  --orange-soft:#fff5e8;
  --red:#e05252;
  --red-soft:#fff0f0;
  --shadow-sm:0 2px 10px rgba(30,49,80,.05);
  --shadow:0 16px 44px rgba(28,43,72,.13);
  --radius:12px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg);font-size:14px;line-height:1.4}
body{min-width:320px}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
button{user-select:none}
.ui-icon{width:20px;height:20px;display:block}

/* TOP BAR */
.topbar{height:72px;background:rgba(255,255,255,.98);border-bottom:1px solid var(--line);display:grid;grid-template-columns:260px minmax(360px,680px) 1fr;align-items:center;gap:28px;padding:0 24px;position:sticky;top:0;z-index:40;backdrop-filter:saturate(120%) blur(8px)}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brandmark{width:38px;height:38px;border-radius:11px;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:800;font-size:17px;letter-spacing:-.5px;box-shadow:0 6px 16px rgba(37,99,235,.18)}
.brandtext{display:flex;flex-direction:column;min-width:0;line-height:1.1}
.brandtext strong{font-size:15px;letter-spacing:.1px;white-space:nowrap}
.brandtext small{color:var(--muted);font-size:11.5px;margin-top:4px;white-space:nowrap}
.brand.large{justify-content:center;margin-bottom:24px;font-size:16px}
.brand.large .brandmark{width:44px;height:44px;border-radius:13px}
.search{width:100%;position:relative;justify-self:center}
.search-glyph{position:absolute;left:15px;top:50%;transform:translateY(-52%);font-size:21px;color:#5e6b80;pointer-events:none;line-height:1}
.search input{width:100%;height:44px;border:1px solid var(--line-strong);background:#f8fafd;border-radius:13px;padding:0 16px 0 43px;outline:none;transition:.16s ease;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.search input::placeholder{color:#8a95a7}
.search input:focus{border-color:#9cb7f3;background:#fff;box-shadow:0 0 0 3px rgba(37,99,235,.07)}
.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.iconbtn{position:relative;width:40px;height:40px;border:1px solid var(--line);background:#fff;border-radius:11px;display:grid;place-items:center;color:#5e6b80;transition:.15s ease}
.iconbtn:hover{background:#f7f9fc;border-color:#d4dce8;color:var(--text)}
.iconbtn .ui-icon{width:19px;height:19px}
.notify-dot{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:20px;background:var(--blue);color:#fff;border:2px solid #fff;font-style:normal;font-size:10px;font-weight:800;display:grid;place-items:center}
.userchip{height:44px;display:flex;align-items:center;gap:10px;padding:0 8px;border-radius:12px;min-width:0}
.avatar{width:34px;height:34px;border-radius:50%;background:#eaf0fb;color:#315993;display:grid;place-items:center;font-size:13px;font-weight:800;flex:0 0 auto}
.usertext{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.usertext b{font-size:13px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.usertext small{font-size:11px;color:var(--muted);text-transform:capitalize;margin-top:4px}

/* APP LAYOUT */
.app-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:calc(100vh - 72px)}
.sidebar{background:#fff;border-right:1px solid var(--line);padding:22px 14px 18px;display:flex;flex-direction:column;justify-content:space-between;position:sticky;top:72px;height:calc(100vh - 72px);z-index:15}
.sidebar nav,.side-bottom{display:flex;flex-direction:column;gap:5px}
.sidebar a{height:43px;padding:0 13px;display:flex;align-items:center;gap:12px;border-radius:10px;color:#566176;font-weight:520;transition:.14s ease}
.sidebar a>span{width:22px;height:22px;display:grid;place-items:center;color:#728096;flex:0 0 auto}
.sidebar a .ui-icon{width:18px;height:18px}
.sidebar a:hover{background:#f5f7fb;color:#24324a}
.sidebar a.active{background:var(--blue-soft);color:var(--blue);font-weight:700}
.sidebar a.active>span{color:var(--blue)}
.side-bottom{padding-top:14px;border-top:1px solid #eef1f5}
.quota{margin:18px 8px 2px;padding:16px 14px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe;display:flex;flex-direction:column;gap:4px}
.quota b{font-size:12.5px}
.quota span{color:var(--muted);font-size:11.5px}
.bar{height:5px;background:#e6ebf2;border-radius:999px;margin-top:8px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--blue);border-radius:inherit}
.content{padding:30px 34px 46px;min-width:0;max-width:1600px;width:100%;margin:0 auto}
.app-shell:has(.detail-panel) .content{padding-right:486px;max-width:none}

/* PAGE HEADER */
.content-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.content-head>div:first-child{min-width:0}
.content-head h1{font-size:25px;line-height:1.15;letter-spacing:-.45px;margin:6px 0 0;font-weight:720}
.content-head p{margin:7px 0 0;color:var(--muted);font-size:13px}
.breadcrumbs{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;min-height:20px}
.breadcrumbs a:hover{color:var(--blue)}
.breadcrumbs span{color:#b4bdca}
.breadcrumbs b{font-weight:650;color:#566176}
.actions{display:flex;gap:9px;align-items:center;flex:0 0 auto}
.primary,.ghost,.warning,.dangerbtn,.approve{border:0;border-radius:9px;min-height:38px;padding:0 15px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-weight:650;transition:.14s ease}
.primary{background:var(--blue);color:#fff;box-shadow:0 2px 5px rgba(37,99,235,.12)}
.primary:hover{background:var(--blue-dark)}
.ghost{background:#fff;border:1px solid var(--line-strong);color:#314057}
.ghost:hover{background:#f8fafc;border-color:#cbd5e1}
.warning{background:var(--orange-soft);border:1px solid #f4cf9b;color:#a55b00}
.dangerbtn{background:var(--red-soft);border:1px solid #f0b7b7;color:#c33838}
.approve{background:var(--green-soft);border:1px solid #9eddbd;color:#0e8250}
.toolbar-btn{height:40px;padding-inline:15px;gap:7px}
.toolbar-btn b{font-size:16px;font-weight:500;line-height:1}
.wide{width:100%}

/* FILE TABLE */
.list-head,.file-row{display:grid;grid-template-columns:minmax(330px,1.8fr) 150px 150px 162px 36px;gap:16px;align-items:center}
.list-head{padding:0 15px 9px;color:#8793a6;font-size:11.5px;font-weight:650;border-bottom:1px solid var(--line)}
.file-list{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:visible;box-shadow:var(--shadow-sm)}
.file-row{min-height:64px;padding:8px 15px;border-bottom:1px solid #edf1f5;position:relative;transition:.12s ease}
.file-row:last-child{border-bottom:0}
.file-row:hover{background:#fafcff}
.file-row.selected{background:#f2f7ff;box-shadow:inset 3px 0 0 var(--blue)}
.namecell{display:flex;align-items:center;gap:12px;min-width:0;padding-right:6px}
.namecell strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13.5px;font-weight:660}
.namecell small{display:block;color:var(--muted);font-size:11.5px;margin-top:4px}
.owner-cell{color:#4e5b70;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fileicon{position:relative;width:38px;height:38px;border-radius:9px;background:#eef2f7;color:#5f6c80;display:grid;place-items:center;font-size:8.5px;font-weight:800;letter-spacing:.15px;flex:0 0 auto;border:1px solid rgba(0,0,0,.02)}
.fileicon:not(.folder)::after{content:"";position:absolute;right:4px;top:4px;border-style:solid;border-width:0 0 6px 6px;border-color:transparent transparent rgba(255,255,255,.85) transparent;width:0;height:0}
.fileicon.folder{background:#eaf2ff;color:#2563eb;font-size:9px}
.fileicon.pdf{background:#fff0f0;color:#df3f3f}
.fileicon.dwg{background:#edf2f8;color:#445a78}
.fileicon.xls{background:#eaf7f0;color:#168354}
.fileicon.doc{background:#edf3ff;color:#2d66c3}
.fileicon.ppt{background:#fff2ea;color:#c65e2c}
.fileicon.img{background:#f4efff;color:#7452ad}
.fileicon.zip{background:#fff6e7;color:#a56a0a}
.fileicon.lg{width:48px;height:48px;border-radius:11px;font-size:9.5px}
.status{display:none}
.status-cell{justify-self:start;display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:7px;font-size:10.5px;font-weight:760;letter-spacing:.15px;white-space:nowrap;background:#f1f3f6;color:#687386}
.status-approved{background:var(--green-soft);color:#168258}
.status-on_review{background:var(--blue-soft);color:#2563eb}
.status-revision_required{background:var(--orange-soft);color:#b16807}
.status-rejected{background:var(--red-soft);color:#d14343}
.status-draft{background:#f0f2f5;color:#6f7989}
.more{width:34px;height:34px;border:0;background:transparent;font-weight:800;font-size:17px;color:#748096;cursor:pointer;border-radius:8px;display:grid;place-items:center;line-height:1}
.more:hover{background:#edf2f7;color:#37465b}
.menu{display:none;position:absolute;right:14px;top:49px;width:184px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);padding:6px;z-index:50}
.menu.open{display:block}
.menu a,.menu button{width:100%;height:36px;border:0;background:transparent;text-align:left;padding:0 10px;border-radius:7px;cursor:pointer;display:flex;align-items:center;font-size:12.5px;color:#344258}
.menu a:hover,.menu button:hover{background:#f4f7fa}
.menu form{margin:0}
.menu .danger{color:#c83f3f}
.empty{text-align:center;padding:72px 20px;color:var(--muted)}
.empty>div{font-size:32px;opacity:.7}
.empty h3{color:var(--text);margin:9px 0 5px;font-size:16px}
.empty p{margin:0}

/* DETAIL DRAWER */
.detail-panel{position:fixed;right:0;top:72px;width:452px;height:calc(100vh - 72px);background:#fff;border-left:1px solid var(--line);z-index:30;box-shadow:-12px 0 34px rgba(31,48,77,.08);padding:0 20px 24px;overflow:auto}
.detail-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:22px 0 18px}
.detail-top>div{display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;align-items:center;min-width:0}
.detail-top .fileicon{grid-row:1/3}
.detail-top h2{font-size:15px;margin:0 0 4px;word-break:break-word;font-weight:700}
.detail-top p{margin:0;color:var(--muted);font-size:11.5px}
.closepanel{font-size:25px;color:#7d8798;width:34px;height:34px;display:grid;place-items:center;border-radius:8px;flex:0 0 auto}
.closepanel:hover{background:#f3f5f8;color:#314057}
.tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line);margin:0 -20px 20px;padding:0 14px;position:sticky;top:0;background:#fff;z-index:4}
.tabs button{border:0;background:transparent;padding:13px 3px 12px;font-size:11.5px;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;font-weight:650;white-space:nowrap}
.tabs button.active{color:var(--blue);border-color:var(--blue)}
.facts{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;margin:0 0 20px;padding:17px;border:1px solid var(--line);border-radius:11px;background:#fcfdff}
.facts dt{color:var(--muted);font-size:12px}
.facts dd{margin:0;font-size:12.5px;font-weight:600}
.panel-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.stack{display:flex;flex-direction:column;gap:12px}
.topgap{margin-top:18px}
.decision-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.approval-card{border:1px solid var(--line);border-radius:11px;padding:16px;margin-bottom:16px;background:#fcfdff}
.approval-card h3{font-size:13px;margin:12px 0 5px}
.approval-card p{color:#566176;font-size:12.5px;line-height:1.55}
.approval-card small{color:var(--muted);font-size:11px}
.pill,.countpill{display:inline-flex;align-items:center;background:var(--blue-soft);border-radius:7px;padding:5px 8px;font-size:10.5px;font-weight:760;color:var(--blue)}
.countpill{font-size:12px;min-width:28px;justify-content:center}
.timeline>div{position:relative;border-left:1px solid #dfe5ed;padding:0 0 20px 16px;display:flex;flex-direction:column;gap:4px}
.timeline>div::before{content:"";position:absolute;left:-4px;top:5px;width:7px;height:7px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 3px #eef4ff}
.timeline small,.comments small{color:var(--muted);font-size:11px}
.timeline a{color:var(--blue);font-size:11.5px;margin-top:3px;font-weight:650}
.comments article{border-top:1px solid var(--line);padding:14px 0}
.comments article:first-child{margin-top:10px}
.comments article.resolved{opacity:.58}
.comments p{line-height:1.55;font-size:12.5px;color:#455268}
.linkbtn{border:0;background:transparent;color:var(--blue);padding:0;cursor:pointer;font-weight:650;font-size:11.5px}

/* FORMS + MODALS */
dialog{border:0;border-radius:14px;padding:0;box-shadow:0 24px 70px rgba(17,28,48,.2);width:min(460px,calc(100vw - 30px));overflow:hidden}
dialog::backdrop{background:rgba(25,35,51,.36);backdrop-filter:blur(2px)}
.modal-form{padding:22px;display:flex;flex-direction:column;gap:15px;background:#fff}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}
.modal-head h3{margin:0;font-size:17px}
.modal-head button{width:32px;height:32px;border:0;background:transparent;font-size:24px;cursor:pointer;border-radius:8px;color:#7b8798}
.modal-head button:hover{background:#f3f5f8}
.modal-form label,.stack label,.auth-card label{display:flex;flex-direction:column;gap:7px;font-weight:650;font-size:12px;color:#405067}
.modal-form input,.modal-form select,.modal-form textarea,.stack input,.stack select,.stack textarea,.auth-card input,.simple-list input{width:100%;border:1px solid var(--line-strong);border-radius:9px;padding:10px 11px;outline:none;background:#fff;transition:.14s ease}
.modal-form input:focus,.modal-form select:focus,.modal-form textarea:focus,.stack input:focus,.stack select:focus,.stack textarea:focus,.auth-card input:focus{border-color:#9fb8ef;box-shadow:0 0 0 3px rgba(37,99,235,.06)}
.check{flex-direction:row!important;align-items:center}
.check input{width:auto}
.dropzone{height:132px;border:1px dashed #bac6d6;border-radius:10px;align-items:center;justify-content:center;background:#f9fbfd;cursor:pointer}
.dropzone:hover{background:#f4f8ff;border-color:#9eb7e8}
.dropzone input{width:auto;border:0;box-shadow:none!important}

/* PROJECTS / LISTS / ADMIN */
.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.project-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px;display:grid;grid-template-columns:46px 1fr 20px;align-items:center;gap:13px;box-shadow:var(--shadow-sm);transition:.15s ease}
.project-card:hover{border-color:#cdd7e5;box-shadow:0 8px 22px rgba(26,43,72,.07);transform:translateY(-1px)}
.project-card h3{margin:0 0 5px;font-size:14px}
.project-card p{margin:0;color:var(--muted);font-size:11.5px}
.project-mark{width:46px;height:46px;border-radius:11px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-weight:800}
.simple-list,.approval-list{display:flex;flex-direction:column;gap:9px}
.simple-list article,.approval-list>a{background:#fff;border:1px solid var(--line);border-radius:11px;padding:14px 15px;display:flex;justify-content:space-between;align-items:center;gap:14px;box-shadow:var(--shadow-sm)}
.simple-list article>div{flex:1;min-width:0}
.simple-list small,.approval-list small{display:block;color:var(--muted);margin-top:5px;font-size:11.5px}
.simple-list p{margin:5px 0;color:#566176;font-size:12.5px}
.simple-list input{margin-top:8px;background:#fafbfc}
.simple-list article.unread{border-left:3px solid var(--blue)}
.approval-list>a{justify-content:flex-start}
.approval-list>a .pill{margin-left:auto}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.admin-card,.table-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:19px;box-shadow:var(--shadow-sm)}
.admin-card h3,.table-card h3{margin-top:0;font-size:15px}
.table-card{margin-top:15px;overflow:auto}
table{border-collapse:collapse;width:100%}
th,td{text-align:left;padding:11px;border-bottom:1px solid var(--line);font-size:12.5px}
th{color:var(--muted);font-size:11.5px;font-weight:700}

/* AUTH + PUBLIC */
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:#f7f9fc}
.auth-card{width:min(400px,100%);background:#fff;border:1px solid var(--line);border-radius:16px;padding:30px;box-shadow:0 18px 50px rgba(20,30,45,.08)}
.auth-card h1{text-align:center;font-size:22px;letter-spacing:-.25px}
.auth-card p{text-align:center;color:var(--muted);line-height:1.55;margin-bottom:22px}
.auth-card form{display:flex;flex-direction:column;gap:14px}
.center-card{max-width:700px;margin:60px auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;box-shadow:var(--shadow-sm)}
.public-share{max-width:980px;margin:0 auto;padding:34px}
.public-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:54px}
.share-file{background:#fff;border:1px solid var(--line);border-radius:15px;padding:24px;display:grid;grid-template-columns:60px 1fr auto;align-items:center;gap:17px;box-shadow:var(--shadow-sm)}
.share-file h1{font-size:20px;margin:0 0 7px}
.share-file p{color:var(--muted);margin:0}
.flash{position:fixed;top:84px;left:50%;transform:translateX(-50%);z-index:100;padding:11px 15px;border-radius:10px;box-shadow:var(--shadow);background:#fff;border:1px solid var(--line);max-width:min(780px,90vw);font-weight:600}
.flash.success{border-color:#b7e0c8;color:#18724a}
.flash.error{border-color:#efb8b8;color:#a53636}
pre{white-space:pre-wrap;word-break:break-word;background:#f5f7fa;border-radius:8px;padding:12px}
.file-row.compact{grid-template-columns:minmax(320px,1.7fr) 150px 150px 162px 20px}

@media(max-width:1280px){
  .topbar{grid-template-columns:225px minmax(320px,580px) 1fr;padding-inline:18px}
  .app-shell{grid-template-columns:220px minmax(0,1fr)}
  .content{padding:26px 26px 42px}
  .list-head,.file-row{grid-template-columns:minmax(280px,1.55fr) 138px 135px 145px 34px;gap:12px}
  .detail-panel{width:420px}
  .app-shell:has(.detail-panel) .content{padding-right:446px}
}
@media(max-width:1080px){
  .topbar{grid-template-columns:205px minmax(280px,1fr) auto;gap:16px}
  .brandtext small{display:none}
  .usertext{display:none}
  .userchip{padding:0}
  .list-head,.file-row{grid-template-columns:minmax(260px,1.6fr) 132px 142px 34px}
  .list-head span:nth-child(3),.file-row>.owner-cell,.file-row>span:nth-child(3){display:none}
  .detail-panel{width:390px}
  .app-shell:has(.detail-panel) .content{padding-right:416px}
}
@media(max-width:820px){
  .topbar{height:64px;grid-template-columns:56px 1fr auto;padding:0 10px;gap:10px}
  .brandtext{display:none}
  .brandmark{width:36px;height:36px}
  .top-actions{gap:6px}
  .iconbtn{width:36px;height:36px}
  .userchip{display:none}
  .app-shell{grid-template-columns:68px minmax(0,1fr);min-height:calc(100vh - 64px)}
  .sidebar{top:64px;height:calc(100vh - 64px);padding:12px 8px}
  .sidebar a{padding:0;justify-content:center;font-size:0}
  .sidebar a>span{width:22px}
  .sidebar a .ui-icon{width:19px;height:19px}
  .quota{display:none}
  .content{padding:20px 14px 34px}
  .content-head{align-items:center}
  .content-head h1{font-size:21px}
  .actions .toolbar-btn{font-size:0;width:40px;padding:0}
  .actions .toolbar-btn b{font-size:18px}
  .list-head{display:none}
  .file-row,.file-row.compact{grid-template-columns:1fr 34px;gap:8px;min-height:62px}
  .file-row>span{display:none!important}
  .detail-panel{top:64px;width:100%;height:calc(100vh - 64px)}
  .app-shell:has(.detail-panel) .content{padding-right:14px}
  .admin-grid{grid-template-columns:1fr}
  .project-grid{grid-template-columns:1fr}
  .share-file{grid-template-columns:50px 1fr}
  .share-file .primary{grid-column:1/-1}
  .public-head{margin-bottom:30px}
}
@media(max-width:520px){
  .topbar{grid-template-columns:44px 1fr 40px}
  .top-actions .notify-btn{display:none}
  .search input{height:40px;border-radius:11px;font-size:12px}
  .content-head{align-items:flex-start;flex-direction:column}
  .actions{width:100%}
  .actions .toolbar-btn{font-size:12px;width:auto;flex:1}
  .actions .toolbar-btn b{font-size:16px}
  .detail-panel{padding-inline:16px}
  .tabs{margin-inline:-16px;padding-inline:8px}
  .decision-grid{grid-template-columns:1fr}
}
/* Folder glyph: remove the temporary DIR label and draw a clean folder icon. */
.fileicon.folder{font-size:0;background:transparent;border:0;overflow:visible}
.fileicon.folder::before{content:"";width:27px;height:19px;border-radius:4px;background:#4f8df7;position:absolute;left:5px;top:12px;box-shadow:0 2px 5px rgba(37,99,235,.12)}
.fileicon.folder::after{content:"";position:absolute;left:7px;top:8px;width:12px;height:7px;border-radius:3px 3px 0 0;background:#6aa0fb;border:0}

.brandmark-img{background:transparent!important;box-shadow:none!important;padding:0;overflow:hidden}
.brandmark-img img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}
.brand.large .brandmark-img{width:52px;height:52px;border-radius:15px}
.search-glyph{font-size:18px;left:16px}
.content{max-width:1680px}
.overview-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.overview-cards article{background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);border:1px solid var(--line);border-radius:14px;padding:18px 18px 16px;box-shadow:var(--shadow-sm)}
.overview-cards span{display:block;color:var(--muted);font-size:12px;margin-bottom:10px}
.overview-cards b{font-size:28px;line-height:1;letter-spacing:-0.5px}
.project-grid.rich{grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:16px}
.project-card.rich{grid-template-columns:58px 1fr;align-items:start;padding:18px 18px 16px;gap:15px;border-radius:15px;background:linear-gradient(180deg,#ffffff 0%,#fcfdff 100%)}
.project-card.rich .project-mark{width:58px;height:58px;border-radius:16px;font-size:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.project-main{display:flex;flex-direction:column;gap:12px;min-width:0}
.project-topline{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.project-topline h3{font-size:16px;margin:0 0 6px}
.project-topline p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.project-arrow{width:34px;height:34px;border-radius:10px;background:#f2f6fc;display:grid;place-items:center;color:#607089;font-size:18px;flex:0 0 auto}
.project-badges,.project-metrics{display:flex;flex-wrap:wrap;gap:8px}
.project-badges span{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:#f5f8fd;border:1px solid #e2e8f2;color:#4d5c73;font-size:11.5px;font-weight:650}
.project-metrics span{display:inline-flex;align-items:center;gap:5px;padding:7px 11px;border-radius:10px;background:#f9fbfe;border:1px solid #e9eef6;color:#5d6a7e;font-size:12px}
.project-metrics b{font-size:13px;color:#1f2a3d}
@media(max-width:1080px){.overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.project-grid.rich{grid-template-columns:1fr}}
@media(max-width:620px){.overview-cards{grid-template-columns:1fr}.project-card.rich{grid-template-columns:48px 1fr}.project-card.rich .project-mark{width:48px;height:48px;border-radius:13px;font-size:15px}}

/* V4 multilingual + transparent cloud identity */
.brandmark-img img{object-fit:contain!important;background:transparent!important}
.lang-picker{position:relative;flex:0 0 auto}
.lang-current{height:40px;min-width:72px;padding:0 10px;border:1px solid var(--line);border-radius:11px;background:#fff;display:flex;align-items:center;justify-content:center;gap:7px;color:#445269;cursor:pointer;font-weight:700}
.lang-current:hover{background:#f7f9fc;border-color:#d4dce8}
.lang-globe{font-size:16px;color:var(--blue);line-height:1}.lang-chevron{font-size:13px;color:#8490a3}
.lang-menu{display:none;position:absolute;right:0;top:47px;width:160px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);z-index:120}
.lang-picker.open .lang-menu{display:block}
.lang-menu button{width:100%;height:38px;border:0;background:transparent;border-radius:8px;display:grid;grid-template-columns:34px 1fr;align-items:center;text-align:left;cursor:pointer;color:#35435a;padding:0 8px}
.lang-menu button:hover,.lang-menu button.active{background:var(--blue-soft);color:var(--blue)}
.lang-menu button b{font-size:11px;letter-spacing:.5px}.lang-menu button span{font-size:12.5px;font-weight:600}
.guest-lang-picker{position:fixed;right:20px;top:20px;z-index:200}
.guest-lang-picker .lang-menu{top:46px}
@media(max-width:820px){.top-actions .lang-picker{display:none}.guest-lang-picker{right:12px;top:12px}.lang-current{min-width:64px}}

/* ==========================================================
   NOVEST CLOUD V5 — MOCKUP PARITY UI
   Dense cloud workspace, status cards, selection toolbar,
   project column and right-side document inspector.
   ========================================================== */
:root{
  --bg:#f4f8fd;
  --panel:#fff;
  --line:#dbe5f1;
  --line-soft:#eaf0f6;
  --text:#0d2343;
  --muted:#71819a;
  --blue:#0b6cf5;
  --blue-dark:#075bd1;
  --blue-soft:#eaf3ff;
  --shadow-sm:0 4px 16px rgba(31,75,128,.045);
}
html,body{background:linear-gradient(180deg,#f7faff 0,#f3f7fc 100%);color:var(--text)}
.topbar{height:64px;grid-template-columns:270px minmax(440px,620px) 1fr;padding:0 28px;gap:24px;background:rgba(255,255,255,.96);border-bottom:1px solid #dce6f2;box-shadow:0 2px 10px rgba(19,57,99,.025)}
.brand{gap:11px}.brandmark{width:47px;height:47px;border-radius:15px}.brandmark-img img{filter:drop-shadow(0 7px 12px rgba(16,105,235,.18))}.brandtext strong{font-size:16px;color:#10284d;letter-spacing:.05px}.brandtext small{font-size:11px;color:#8ba0bd;margin-top:3px}
.search input{height:42px;border-radius:9px;background:#f9fbfe;border-color:#d6e0ec;padding-left:42px}.search input:focus{border-color:#a8c9f9;box-shadow:0 0 0 3px rgba(11,108,245,.06)}
.top-actions{gap:8px}.iconbtn{width:38px;height:38px;border-radius:9px;border-color:#dbe5f0;color:#5d7190}.app-grid-btn{background:#fff}.userchip{padding:0 5px 0 2px;margin-left:2px}.avatar{width:38px;height:38px;background:#086af0;color:white;box-shadow:inset 0 0 0 3px rgba(255,255,255,.2)}.usertext b{font-size:12.5px;color:#132b50}.usertext small{font-size:10.5px;color:#6f86a7}
.lang-picker{position:relative}.lang-current{height:38px;min-width:72px;padding:0 10px;border:1px solid #dbe5f0;background:#fff;border-radius:9px;display:flex;align-items:center;gap:7px;cursor:pointer;color:#314969}.lang-flag{font-size:17px;line-height:1}.lang-current b{font-size:11.5px}.lang-chevron{font-size:12px;color:#8697af}.lang-menu{position:absolute;right:0;top:44px;width:150px;background:#fff;border:1px solid #dce6f0;border-radius:9px;padding:5px;box-shadow:0 14px 35px rgba(28,63,103,.15);display:none;z-index:80}.lang-picker.open .lang-menu{display:block}.lang-menu button{height:37px;width:100%;border:0;background:transparent;border-radius:6px;display:flex;align-items:center;gap:9px;padding:0 9px;cursor:pointer;text-align:left}.lang-menu button:hover,.lang-menu button.active{background:#f1f6fd;color:#0a66e8}.lang-menu button b{font-size:18px;width:24px}.lang-menu button span{font-size:12px}.guest-lang-picker{position:fixed;right:20px;top:20px;z-index:90}

.app-shell{grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 64px)}
.sidebar{top:64px;height:calc(100vh - 64px);padding:23px 16px 18px;background:rgba(248,251,255,.88);border-right:1px solid #e0e9f3}.sidebar nav,.side-bottom{gap:4px}.sidebar a{height:42px;border-radius:7px;padding:0 13px;color:#5e7393;font-size:12px;font-weight:550;position:relative}.sidebar a:hover{background:#eef5fd;color:#195bab}.sidebar a.active{background:#e5f0ff;color:#0b6cf5;font-weight:700}.sidebar a>span{width:21px;color:#7187a7}.sidebar .ui-icon{width:17px;height:17px}.side-badge{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:#ff3e57;color:#fff;display:grid;place-items:center;font-style:normal;font-size:10px;font-weight:800}.side-label{font-size:10px;color:#9bacc2;margin:13px 12px 4px;text-transform:none}.side-bottom{border-top:0;padding-top:0}.quota{margin:18px 0 4px;padding:14px;border:1px solid #dfe8f3;background:#fff;border-radius:9px;box-shadow:0 4px 14px rgba(29,66,107,.035)}.quota b{font-size:11.5px}.quota span{font-size:10.5px}.quota-meta{display:flex;justify-content:space-between;margin-top:5px;color:#7e91ac}.side-version{display:block;margin:10px 8px 0;color:#a0b0c4;font-size:9.5px;line-height:1.65}
.content{padding:20px 26px 42px;max-width:none;margin:0;min-width:0}.app-shell:has(.detail-panel) .content{padding-right:388px;max-width:none}
.hero-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.hero-head h1{font-size:25px;letter-spacing:-.45px;margin:10px 0 2px;line-height:1.1}.hero-head p{margin:0;color:#7486a0;font-size:12px}.breadcrumbs{height:24px;font-size:11.5px;color:#6f84a4;gap:9px}.breadcrumbs a{color:#6080aa}.breadcrumbs b{color:#607a9c;font-weight:600}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px;margin:12px 0 14px}.stats-grid article{min-height:84px;background:#fff;border:1px solid #dce6f1;border-radius:9px;padding:13px 15px;display:flex;align-items:center;gap:13px;box-shadow:var(--shadow-sm)}.stat-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;font-size:21px;font-weight:700}.files-stat{background:#eaf3ff;color:#0b6cf5}.folders-stat{background:#fff5e3;color:#ff9b10}.projects-stat{background:#f3ecff;color:#7c3df2}.shares-stat{background:#e9f9ef;color:#16a45a}.stats-grid article span{display:block;color:#7386a4;font-size:10.5px}.stats-grid article b{display:block;font-size:24px;line-height:1.05;margin:2px 0;color:#13294b}.stats-grid article small{display:block;color:#84a4c4;font-size:9.5px}.section-title{display:flex;justify-content:space-between;align-items:end;margin:24px 0 11px}.section-title h2{margin:0;font-size:16px}.section-title p{margin:4px 0 0;color:#8393a9;font-size:11px}
.work-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:11px 0}.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.work-toolbar .primary,.work-toolbar .ghost{height:36px;min-height:36px;border-radius:7px;padding:0 13px;font-size:11.5px}.split-btn{gap:7px}.split-btn b{font-size:17px}.split-btn span{padding-left:8px;border-left:1px solid rgba(255,255,255,.28);font-size:11px}.selection-action[disabled]{opacity:.45;cursor:not-allowed}.danger-lite{color:#b54451}.view-switch{height:36px;display:flex;border:1px solid #d8e3ef;border-radius:7px;background:#fff;overflow:hidden}.view-switch button{width:39px;border:0;border-right:1px solid #e3eaf2;background:#fff;color:#7285a2;cursor:pointer}.view-switch button:last-child{border-right:0}.view-switch button.active{background:#eaf3ff;color:#086bf0}.sort-btn{min-width:90px}
.file-table-wrap{background:#fff;border:1px solid #d7e3ef;border-radius:9px;overflow:visible;box-shadow:0 4px 14px rgba(35,76,122,.028)}.mock-list-head,.mock-file-row{display:grid;grid-template-columns:34px minmax(220px,1.6fr) minmax(120px,.9fr) 105px 78px 140px 126px 32px;gap:10px;align-items:center}.mock-list-head{min-height:41px;padding:0 11px;border-bottom:1px solid #dce6f1;color:#6f83a1;font-size:10.5px;font-weight:600}.mock-file-row{min-height:49px;padding:4px 11px;border-bottom:1px solid #e7edf4;position:relative;font-size:11.5px;color:#40587a;transition:.11s ease}.mock-file-row:last-child{border-bottom:0}.mock-file-row:hover{background:#f8fbff}.mock-file-row.selected{background:#eaf4ff}.mock-file-row.selected::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:#0872fb}.mock-file-row .namecell{gap:10px}.mock-file-row .namecell strong{font-size:12.2px;color:#142b4e}.mock-file-row .namecell small{font-size:9.5px;color:#6b9ce3}.mock-file-row .fileicon{width:31px;height:31px;border-radius:6px;font-size:7px}.mock-file-row .fileicon.folder::before{width:26px;height:17px;left:2px;top:10px}.mock-file-row .fileicon.folder::after{left:4px;top:6px}.checkcell{display:grid;place-items:center}.row-check,[data-select-all]{width:15px;height:15px;accent-color:#0b6cf5}.owner-chip{display:flex;align-items:center;gap:7px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.owner-chip i{width:28px;height:28px;border-radius:50%;background:#0b67da;color:#fff;display:grid;place-items:center;font-size:8.5px;font-weight:800;font-style:normal;flex:0 0 auto}.status-cell{min-height:20px;padding:0 7px;border-radius:99px;font-size:8.8px}.mock-file-row .more{width:30px;height:30px;font-size:16px}.mock-file-row .menu{top:40px;right:8px}.mock-file-list.grid-mode{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;padding:12px}.mock-file-list.grid-mode .mock-file-row{display:grid;grid-template-columns:28px 1fr 28px;grid-template-rows:auto auto;min-height:132px;border:1px solid #e0e8f2;border-radius:9px;padding:12px}.mock-file-list.grid-mode .mock-file-row>span:not(.checkcell):not(.owner-chip),.mock-file-list.grid-mode .project-cell{display:none}.mock-file-list.grid-mode .namecell{grid-column:2;grid-row:1/3;align-self:start}.mock-file-list.grid-mode .more{grid-column:3;grid-row:1}.mock-file-list.grid-mode .menu{top:38px}.mock-file-list.grid-mode .fileicon{width:42px;height:42px}.mock-file-list.grid-mode .fileicon.folder::before{width:34px;height:23px;left:4px;top:13px}.mock-file-list.grid-mode .fileicon.folder::after{top:8px;left:6px}

.detail-panel.mockup-panel{top:64px;width:365px;height:calc(100vh - 64px);padding:0 14px 22px;border-left:1px solid #dbe5ef;box-shadow:-8px 0 25px rgba(34,72,115,.07);background:#fff}.detail-top{padding:14px 2px 10px}.detail-top>div{grid-template-columns:39px minmax(0,1fr);column-gap:10px}.detail-top .fileicon{width:35px;height:35px;border-radius:7px;font-size:7.5px}.detail-top h2{font-size:13px;color:#14294b}.detail-top p{font-size:9.5px}.rev-tag{display:inline-flex;background:#eaf4ff;color:#0a6cf1;border-radius:99px;padding:3px 6px}.tabs.five{grid-template-columns:repeat(5,minmax(0,1fr));margin:0 -14px 12px;padding:0 8px;position:sticky;top:0}.tabs.five button{font-size:9.3px;padding:11px 2px 9px}.tabs.five button i{font-style:normal;display:inline-grid;place-items:center;min-width:15px;height:15px;border-radius:99px;background:#eef3f8;color:#6a7f9e;font-size:8px}.inline-preview{height:180px;border:1px solid #dbe5ef;border-radius:8px;background:#f4f7fb;position:relative;overflow:hidden;margin-bottom:13px}.inline-preview iframe,.inline-preview img{width:100%;height:100%;border:0;object-fit:contain;background:#fff}.preview-tools{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);height:31px;padding:0 9px;background:rgba(18,31,50,.8);border-radius:6px;display:flex;align-items:center;gap:12px;color:#fff;font-size:9px}.preview-tools a{color:#fff}.panel-block{padding:11px 0;border-top:1px solid #e6edf5}.panel-block:first-of-type{border-top:0}.panel-block h3{font-size:11.5px;margin:0 0 10px;color:#11294c}.block-title{display:flex;align-items:center;justify-content:space-between}.facts.clean{border:0;background:transparent;padding:0;margin:0;grid-template-columns:95px 1fr;gap:6px}.facts.clean dt{font-size:9.7px;color:#7083a1}.facts.clean dd{font-size:10px;font-weight:500;color:#435d80}.facts.clean .owner-chip i{width:24px;height:24px;font-size:7.5px}.switch{width:34px;height:19px;border:0;border-radius:99px;background:#c7d3e1;padding:2px;cursor:pointer}.switch i{display:block;width:15px;height:15px;border-radius:50%;background:#fff;transition:.15s}.switch.on{background:#0874fa}.switch.on i{transform:translateX(15px)}.share-link-row{display:grid;grid-template-columns:1fr 68px;gap:6px}.share-link-row input{height:31px;border:1px solid #d9e4ef;border-radius:6px;padding:0 8px;font-size:9.5px;background:#f9fbfd;color:#527096;min-width:0}.share-link-row button{border:1px solid #d8e4f0;background:#f6faff;color:#0a6be9;border-radius:6px;font-size:9.5px;cursor:pointer}.secure-note{display:block;margin-top:7px;color:#4b9b68;font-size:9px}.mock-decisions{grid-template-columns:1fr 1fr 1fr}.mock-decisions button{min-height:34px;padding:0 7px;font-size:9.5px}.approval-card.enhanced{padding:12px;border-radius:8px}.activity-stream article{display:grid;grid-template-columns:12px 1fr;gap:8px;position:relative;padding:0 0 14px}.activity-stream article>i{width:7px;height:7px;border-radius:50%;background:#0a70f5;margin-top:5px;box-shadow:0 0 0 3px #eaf3ff}.activity-stream b{font-size:10.5px}.activity-stream p{font-size:10px;margin:2px 0;color:#536b8a}.activity-stream small{font-size:9px;color:#8a9ab0}

.project-grid.rich{grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}.overview-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
.flash{top:72px}

@media(max-width:1320px){.topbar{grid-template-columns:220px minmax(320px,520px) 1fr}.app-shell{grid-template-columns:205px 1fr}.sidebar a{padding-inline:10px}.mock-list-head,.mock-file-row{grid-template-columns:30px minmax(190px,1.55fr) minmax(100px,.8fr) 95px 72px 125px 105px 30px}.detail-panel.mockup-panel{width:350px}.app-shell:has(.detail-panel) .content{padding-right:372px}}
@media(max-width:1080px){.stats-grid{grid-template-columns:repeat(2,1fr)}.mock-list-head,.mock-file-row{grid-template-columns:30px minmax(190px,1.6fr) 105px 90px 112px 30px}.mock-list-head span:nth-child(3),.mock-file-row>span:nth-child(3),.mock-list-head span:nth-child(5),.mock-file-row>span:nth-child(5){display:none}.detail-panel.mockup-panel{width:340px}.app-shell:has(.detail-panel) .content{padding-right:360px}.topbar{grid-template-columns:190px 1fr auto}.brandtext small{display:none}.app-grid-btn{display:none}}
@media(max-width:820px){.topbar{height:60px;grid-template-columns:48px 1fr auto}.app-shell{grid-template-columns:62px 1fr;min-height:calc(100vh - 60px)}.sidebar{top:60px;height:calc(100vh - 60px);padding:12px 7px}.sidebar a{justify-content:center;padding:0;font-size:0}.sidebar a .side-badge{position:absolute;right:2px;top:2px;font-size:8px;min-width:15px;height:15px}.side-label,.quota,.side-version{display:none}.content{padding:16px 12px}.stats-grid{grid-template-columns:1fr 1fr}.work-toolbar{align-items:flex-start}.toolbar-left{gap:5px}.selection-action:nth-of-type(n+5){display:none}.mock-list-head{display:none}.mock-file-row{grid-template-columns:28px 1fr 34px!important;min-height:58px}.mock-file-row>span:not(.checkcell),.mock-file-row>.project-cell{display:none!important}.mock-file-row .namecell{grid-column:2}.mock-file-row .more{grid-column:3}.detail-panel.mockup-panel{top:60px;width:100%;height:calc(100vh - 60px)}.app-shell:has(.detail-panel) .content{padding-right:12px}.lang-current{min-width:54px}.lang-flag{font-size:15px}.userchip{display:none}}
@media(max-width:520px){.stats-grid{grid-template-columns:1fr}.stats-grid article{min-height:72px}.toolbar-right{display:none}.work-toolbar .ghost.selection-action{display:none}.hero-head h1{font-size:21px}.tabs.five button{font-size:8.5px}.lang-picker:not(.guest-lang-picker) .lang-current{width:48px;min-width:48px}.lang-current b{display:none}}

/* V6 Admin / Users & Roles */
.admin-head{align-items:center}
.admin-head-actions{display:flex;gap:9px;align-items:center}
.admin-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.admin-summary article{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px 16px;box-shadow:var(--shadow-sm);display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-items:end;gap:5px 12px}
.admin-summary article span{font-size:11.5px;color:var(--muted);font-weight:650}
.admin-summary article b{grid-row:1/3;grid-column:2;font-size:25px;line-height:1;color:#1f2b40;letter-spacing:-.4px}
.admin-summary article small{font-size:10.5px;color:#98a3b4}
.admin-workspace{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr);gap:14px;align-items:start}
.admin-users-card,.admin-roles-card,.project-access-card{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow-sm);overflow:hidden}
.admin-section-head{padding:16px 17px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:14px;align-items:center}
.admin-section-head.compact{padding-bottom:13px}
.admin-section-head h2{font-size:14px;margin:0;color:#1e2a3d}
.admin-section-head p{font-size:11px;color:var(--muted);margin:4px 0 0}
.admin-user-tools{display:flex;gap:8px;align-items:center}
.admin-user-tools input,.admin-user-tools select{height:34px;border:1px solid var(--line-strong);background:#fbfcfe;border-radius:8px;padding:0 10px;outline:none;font-size:11.5px}
.admin-user-tools input{width:190px}
.admin-user-tools select{width:132px}
.admin-user-tools input:focus,.admin-user-tools select:focus{border-color:#9fb8ef;background:#fff;box-shadow:0 0 0 3px rgba(37,99,235,.05)}
.admin-user-table{width:100%}
.admin-user-row{display:grid;grid-template-columns:minmax(230px,1.5fr) 145px 105px 100px;gap:12px;align-items:center;min-height:58px;padding:8px 17px;border-bottom:1px solid #edf1f5}
.admin-user-row:last-child{border-bottom:0}
.admin-user-row:hover:not(.admin-user-row-head){background:#fbfcfe}
.admin-user-row-head{min-height:38px;background:#fafbfd;color:#8793a6;font-size:10.5px;font-weight:750;padding-top:0;padding-bottom:0}
.admin-person{display:flex;align-items:center;gap:10px;min-width:0}
.admin-avatar{width:31px;height:31px;font-size:11px;background:#edf3ff;color:#2d61bd}
.admin-person>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.admin-person b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-person small{font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.role-chip,.state-chip{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:0 8px;border-radius:7px;font-style:normal;font-size:10px;font-weight:760;white-space:nowrap;border:1px solid transparent}
.role-admin{background:#f1edff;color:#6843bb;border-color:#e2d9fb}.role-manager{background:#eaf2ff;color:#2863bd;border-color:#d9e7fb}.role-reviewer{background:#e9f8f2;color:#137955;border-color:#d2eee2}.role-contributor{background:#fff5e8;color:#a65e07;border-color:#f7e1c3}.role-viewer{background:#f0f2f5;color:#657185;border-color:#e2e6eb}.role-external{background:#fff0f0;color:#bf4c4c;border-color:#f4d6d6}
.state-chip.is-active{background:#eaf8f1;color:#128052}.state-chip.is-off{background:#f1f3f6;color:#7a8492}
.created-cell{font-size:11px;color:#687386}
.admin-roles-card{position:sticky;top:88px}
.role-list{padding:7px 14px 12px}
.role-item{padding:12px 2px;border-bottom:1px solid #eef1f5}
.role-item:last-child{border-bottom:0}
.role-item-top{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center}
.role-symbol{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:11px;font-weight:850;background:#edf3ff;color:#2e63bc}
.role-symbol-admin{background:#f0ebff;color:#6d46bd}.role-symbol-manager{background:#eaf2ff;color:#2863bd}.role-symbol-reviewer{background:#e8f8f1;color:#147955}.role-symbol-contributor{background:#fff3e3;color:#a96208}.role-symbol-viewer{background:#f0f2f5;color:#667184}.role-symbol-external{background:#fff0f0;color:#bf4d4d}
.role-item-top div{min-width:0}.role-item-top b{display:block;font-size:11.5px}.role-item-top small{display:block;font-size:10px;color:var(--muted);margin-top:3px;line-height:1.35}.role-item-top em{font-style:normal;font-size:10px;font-weight:800;background:#f4f6f9;color:#5f6d81;min-width:24px;height:24px;border-radius:7px;display:grid;place-items:center}
.role-permissions{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0 0 44px}.role-permissions span{font-size:9.5px;color:#647187;background:#f7f9fc;border:1px solid #edf0f4;padding:3px 6px;border-radius:999px}
.project-access-card{margin-top:14px}.small-btn{min-height:32px;padding:0 10px;font-size:11px}
.project-access-list{display:flex;flex-direction:column}.project-access-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.2fr) 145px;gap:15px;align-items:center;padding:10px 17px;border-bottom:1px solid #edf1f5}.project-access-row:last-child{border-bottom:0}.project-access-row>div{min-width:0}.project-access-row b{display:block;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-access-row small{display:block;font-size:10px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-empty{padding:28px;text-align:center;color:var(--muted);font-size:11.5px}
.modal-head>div p{margin:5px 0 0;color:var(--muted);font-size:11px}.form-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:2px}
@media(max-width:1180px){.admin-workspace{grid-template-columns:1fr}.admin-roles-card{position:static}.role-list{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.admin-summary{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.admin-head{align-items:flex-start}.admin-head-actions{width:100%}.admin-head-actions>*{flex:1}.admin-summary{grid-template-columns:1fr 1fr}.admin-user-tools{width:100%;flex-direction:column;align-items:stretch}.admin-user-tools input,.admin-user-tools select{width:100%}.admin-section-head{align-items:flex-start;flex-direction:column}.admin-user-row{grid-template-columns:1fr 100px}.admin-user-row>span:nth-child(3),.admin-user-row>span:nth-child(4){display:none}.admin-user-row-head span:nth-child(3),.admin-user-row-head span:nth-child(4){display:none}.role-list{grid-template-columns:1fr}.project-access-row{grid-template-columns:1fr 120px}.project-access-row>div:nth-child(2){display:none}.form-grid.two{grid-template-columns:1fr}}
@media(max-width:520px){.admin-summary{grid-template-columns:1fr}.admin-head-actions{flex-direction:column}.project-access-row{grid-template-columns:1fr}.project-access-row>span{justify-self:start}}

.quota-meta{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:11.5px;margin-top:4px}.quota-meta span:last-child{font-weight:700;color:var(--blue)}

/* V8 top-right icons refinement */
.top-actions{gap:10px;align-items:center}
.notify-btn,.app-grid-btn,.lang-current{box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 1px 2px rgba(22,40,73,.03)}
.iconbtn{width:40px;height:40px;border-radius:12px;border:1px solid #d9e4f0;background:#fff;color:#587093}
.iconbtn:hover{background:#f7faff;border-color:#c7d5e6;color:#234066}
.notify-btn .ui-icon,.app-grid-btn .ui-icon{width:18px;height:18px;stroke-width:1.9}
.notify-dot{right:-3px;top:-4px;min-width:18px;height:18px;font-size:10px;box-shadow:0 2px 5px rgba(8,106,240,.18)}
.lang-picker{position:relative;flex:0 0 auto}
.lang-current{height:40px;min-width:74px;padding:0 11px;border:1px solid #d9e4f0;background:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:8px;color:#314969;font-weight:700}
.lang-code-pill{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:24px;padding:0 8px;border-radius:999px;background:#f3f7fc;border:1px solid #dfe8f2;color:#27446e;font-size:11px;letter-spacing:.35px;line-height:1;font-weight:800}
.lang-chevron{font-size:12px;color:#7d90ab;line-height:1}
.lang-menu{top:48px;width:172px;padding:7px;border-radius:14px;border:1px solid #dce6f2;box-shadow:0 14px 36px rgba(25,46,79,.12)}
.lang-menu button{height:40px;grid-template-columns:38px 1fr;padding:0 9px}
.lang-menu button b{width:28px;height:28px;border-radius:999px;background:#f3f7fc;border:1px solid #dfe8f2;display:grid;place-items:center;font-size:10.5px;letter-spacing:.4px;color:#36527b}
.lang-menu button.active b,.lang-menu button:hover b{background:#eaf1ff;border-color:#bfd3ff;color:#2563eb}
@media(max-width:820px){.iconbtn{width:36px;height:36px;border-radius:11px}.lang-current{height:36px;min-width:64px;padding:0 9px}.lang-code-pill{min-width:28px;height:22px;font-size:10.5px}}

/* V9 professional icon refinement */
.ghost,.primary,.approve,.warning,.dangerbtn,.small-btn,.split-btn,.sort-btn,.selection-action{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn-icon,.btn-caret,.close-icon,.empty-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1}
.btn-icon .ui-icon{width:16px;height:16px;stroke-width:1.9}.btn-caret .ui-icon{width:14px;height:14px;stroke-width:1.9}
.split-btn .btn-caret{margin-left:2px;opacity:.78}.sort-btn .btn-caret{margin-left:1px;opacity:.7}
.more{font-size:0;color:#70819a}.more .ui-icon{width:18px;height:18px;stroke:none;fill:currentColor}
.closepanel .ui-icon,.close-icon .ui-icon{width:18px;height:18px;stroke-width:2}
.closepanel{font-size:0}.closepanel .ui-icon{color:#70819a}
.modal-head button[data-close]{width:34px;height:34px;border:1px solid var(--line);background:#fff;border-radius:10px;color:#6f7d93;display:inline-flex;align-items:center;justify-content:center}
.modal-head button[data-close]:hover{background:#f6f9fc;border-color:#d4dce8;color:#27364d}
.empty-icon{width:54px;height:54px;margin:0 auto 8px;border-radius:18px;background:#eef4ff;color:#2f6fed}.empty-icon .ui-icon{width:26px;height:26px;stroke-width:1.9}
.project-arrow{font-size:0;color:#607089}.project-arrow .ui-icon{width:16px;height:16px;stroke-width:2}
.approval-icon .ui-icon{width:18px;height:18px;stroke-width:2;color:#1ea45a}
.lang-chevron{display:inline-flex;align-items:center;justify-content:center}.lang-chevron .ui-icon{width:14px;height:14px;stroke-width:2;color:#7d90ab}
.view-switch button .ui-icon{width:17px;height:17px;stroke-width:1.9}
.work-toolbar .ghost,.work-toolbar .primary{min-height:38px}
.admin-head-actions .ghost,.admin-head-actions .primary,.project-access-card .small-btn{min-height:38px}
@media(max-width:820px){.ghost,.primary,.approve,.warning,.dangerbtn,.small-btn,.split-btn,.sort-btn,.selection-action{gap:6px}.btn-icon .ui-icon{width:15px;height:15px}}

/* V10 public share refinement */
.guest-lang-picker{left:auto!important;right:24px!important;top:24px!important;z-index:120}
.better-share{max-width:1240px;padding:34px 28px 60px}
.public-hero{margin-bottom:22px}
.public-head-better{margin-bottom:18px;align-items:center}
.public-brand{gap:14px}.public-brand .brandmark{width:48px;height:48px;border-radius:15px}.brandtext-inline{display:flex;flex-direction:column;gap:3px}.brandtext-inline strong{font-size:24px;letter-spacing:-.4px;color:#142744}.brandtext-inline small{color:#7a8aa1;font-size:13px}
.public-hero-copy h1{margin:0 0 8px;font-size:30px;letter-spacing:-.6px;color:#13233d}.public-hero-copy p{margin:0;color:#70829a;max-width:700px}
.public-share-layout{display:grid;grid-template-columns:minmax(0,1.7fr) 360px;gap:22px;align-items:start}
.public-share-card,.public-side-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-sm)}
.public-share-card{padding:24px}.public-side-card{padding:22px}
.public-file-row{display:grid;grid-template-columns:68px minmax(0,1fr) auto;gap:18px;align-items:center}.public-file-copy h2{margin:0 0 10px;font-size:30px;line-height:1.1;word-break:break-word;color:#13233d}
.public-meta-chips{display:flex;flex-wrap:wrap;gap:8px}.public-meta-chips span{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:#f5f8fd;border:1px solid #e3e9f2;color:#5b6d84;font-size:12px;font-weight:700}
.public-file-actions{display:flex;gap:10px;align-items:center}.public-file-actions .ghost,.public-file-actions .primary{min-width:112px}
.public-preview-wrap{margin-top:22px;border:1px solid #e7edf5;border-radius:16px;overflow:hidden;background:#f8fbff;min-height:380px}.public-preview-wrap iframe{width:100%;height:640px;border:0;background:#fff}.public-preview-wrap img{display:block;width:100%;height:auto;max-height:720px;object-fit:contain;background:#fff}
.public-side-card{display:flex;flex-direction:column;gap:18px}.public-side-section{display:flex;flex-direction:column;gap:12px}.public-side-section + .public-side-section{padding-top:18px;border-top:1px solid #edf2f7}.public-side-section h3{margin:0;font-size:16px;color:#173257}.facts.compact dt,.facts.compact dd{padding-block:8px}.public-link-row input{font-size:12px}.public-link-row button{min-width:104px}
.folder-share-card{padding:24px}.folder-share-head{display:grid;grid-template-columns:68px 1fr;gap:18px;align-items:center}.folder-share-head h2{margin:0 0 8px;font-size:28px;color:#13233d}.folder-share-head p{margin:0;color:#72839a}.folder-share-note{margin-top:18px;padding:14px 16px;border-radius:14px;background:#f7faff;border:1px solid #e6edf7;color:#5f748e}
.single-folder-layout{grid-template-columns:minmax(0,1.4fr) 360px}
@media(max-width:1080px){.public-share-layout,.single-folder-layout{grid-template-columns:1fr}.public-file-row{grid-template-columns:60px 1fr}.public-file-actions{grid-column:1/-1;justify-content:flex-start}.public-preview-wrap iframe{height:520px}}
@media(max-width:680px){.better-share{padding:20px 14px 34px}.public-brand .brandmark{width:42px;height:42px}.brandtext-inline strong{font-size:19px}.public-hero-copy h1{font-size:24px}.public-share-card,.public-side-card{padding:18px}.public-file-copy h2,.folder-share-head h2{font-size:22px}.public-file-row,.folder-share-head{grid-template-columns:54px 1fr;gap:14px}.public-meta-chips span{min-height:28px;padding:0 10px;font-size:11.5px}.public-preview-wrap{min-height:240px}.public-preview-wrap iframe{height:360px}.guest-lang-picker{right:12px!important;top:12px!important}}

/* V11 Public Share polish */
.public-share.better-share{
    max-width:1320px;
    padding:38px 34px 70px;
}
.public-head-better{
    margin-bottom:24px;
}
.public-brand .brandmark{
    width:52px;
    height:52px;
}
.public-hero-copy{
    margin-bottom:26px;
}
.public-hero-copy h1{
    font-size:34px;
}
.public-share-layout{
    grid-template-columns:minmax(0,1.9fr) 430px;
    gap:28px;
}
.public-share-card{
    padding:30px;
}
.public-side-card{
    padding:28px;
}
.public-file-row{
    grid-template-columns:82px minmax(0,1fr) auto;
}
.public-file-copy h2{
    font-size:34px;
}
.public-file-actions .primary,
.public-file-actions .ghost{
    min-width:125px;
}
.public-preview-wrap{
    margin-top:28px;
}
.public-side-section h3{
    font-size:18px;
}
.public-link-row input{
    height:42px;
    overflow:hidden;
    text-overflow:ellipsis;
}
.guest-lang-picker{
    display:none!important;
}
.lang-picker:not(.guest-lang-picker){
    display:block;
}
@media(max-width:1080px){
    .public-share-layout{
        grid-template-columns:1fr;
    }
}
