:root{
  --hub-bg:#f5f7fb;
  --hub-surface:#ffffff;
  --hub-text:#24324a;
  --hub-heading:#152238;
  --hub-muted:#6f7d91;
  --hub-line:#dfe5ee;
  --hub-line-soft:#edf1f5;
  --hub-primary:#4b67e8;
  --hub-primary-soft:#eef2ff;
  --hub-blue:#3b82f6;
  --hub-green:#2f9e72;
  --hub-pink:#d95795;
  --hub-purple:#7357d7;
  --hub-indigo:#5368c8;
  --hub-orange:#dc7d38;
  --hub-teal:#15958e;
}

html,body{min-height:100%}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--hub-text);font-size:14px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{text-decoration:none}.hidden{display:none!important}

/* Shared shell */
.hub-shell{max-width:1580px;margin:0 auto;padding-left:24px!important;padding-right:24px!important}
.hub-kicker{display:block;color:#718098;font-size:10px;font-weight:800;letter-spacing:.08em;line-height:1.2;margin-bottom:4px}
.hub-section-title{font-size:18px;font-weight:700;color:var(--hub-heading);letter-spacing:-.2px}

/* Top bar */
.workspace-page{background:var(--hub-bg)}
.hub-topbar{height:62px;background:rgba(255,255,255,.98);border-bottom:1px solid var(--hub-line);z-index:1030;backdrop-filter:blur(10px)}
.hub-brand{display:flex;align-items:center;gap:9px;color:var(--hub-heading)}
.hub-logo{width:34px;height:34px;border-radius:8px;display:block;box-shadow:0 4px 12px rgba(60,80,150,.12)}
.hub-brand-text{line-height:1.05}
.hub-brand-text strong{display:block;font-size:14px;font-weight:750}
.hub-brand-text small{display:block;font-size:10px;color:#8793a5;margin-top:3px}
.hub-search{max-width:660px;min-width:260px}
.hub-search .input-group-text,.hub-search .form-control{min-height:38px;border-color:#d9e0ea;font-size:12.5px;background:#f9fbfd}
.hub-search .input-group-text:first-child{border-right:0;color:#8491a4}
.hub-search .form-control{border-left:0;padding-left:2px}
.hub-search .form-control:focus{box-shadow:none;border-color:#9db0ef;background:#fff}
.hub-search:focus-within .input-group-text:first-child{border-color:#9db0ef;background:#fff}
.hub-shortcut{font-size:10px!important;font-weight:600;color:#8a95a5!important;background:#fff!important}
.hub-private{font-size:10px;font-weight:650;background:#f7faf8;color:#557267;border:1px solid #dce7e2;padding:7px 8px}
.hub-private i{font-size:9px;color:#20976d}
.hub-avatar{width:30px;height:30px;border-radius:7px;background:#eaf0ff;color:#5266be;display:grid;place-items:center;font-size:10px;font-weight:800}
.hub-user-copy{display:flex;flex-direction:column;line-height:1.08}
.hub-user-copy strong{max-width:150px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-user-copy small{font-size:9px;color:#8a96a8;margin-top:2px}
.hub-logout{width:34px;height:34px;padding:0;display:grid;place-items:center;border-color:#d8dee7;color:#718096}
.hub-logout:hover{color:#b5434f;border-color:#e7c7cc;background:#fff7f8}

/* Intro */
.hub-intro{padding-top:2px}
.hub-title{margin:0;font-size:27px;line-height:1.16;letter-spacing:-.55px;font-weight:700;color:var(--hub-heading)}
.hub-title span{font-weight:400;color:#66748a}
.hub-subtitle{font-size:13px;line-height:1.45;color:#6f7c8f;margin-top:6px}
.hub-stats>div{display:flex;flex-direction:column;min-width:58px}
.hub-stats strong{font-size:17px;line-height:1.05;color:#1d2b42}
.hub-stats strong i{font-size:8px;vertical-align:middle}
.hub-stats span{font-size:10px;color:#7f8b9d;margin-top:2px}
.hub-stat-divider{display:block;width:1px;height:27px;background:#d9dee6;margin-top:0!important}

/* Areas */
.hub-all{font-size:11px;padding:5px 9px;border-radius:6px}
.active-filter{color:#3859d6!important;background:#f2f5ff!important;border-color:#b9c5ee!important}
.hub-area{height:58px;border:1px solid var(--hub-line);background:#fff;border-radius:8px;padding:9px 10px;display:flex;align-items:center;gap:9px;text-align:left;transition:.15s ease;color:#2a3950}
.hub-area:hover{background:#fbfcfe;border-color:#c6d0dd;transform:translateY(-1px);box-shadow:0 4px 12px rgba(31,45,69,.045)}
.hub-area.active{background:#f8f9ff;border-color:#aebbed;box-shadow:inset 0 0 0 1px #e1e6fb}
.hub-area-icon{width:34px;height:34px;border-radius:7px;display:grid;place-items:center;flex:0 0 34px;font-size:14px}
.hub-area>span:last-child{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.hub-area strong{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-area small{font-size:10.5px;color:#7b8798;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-area-blue .hub-area-icon{background:#edf4ff;color:var(--hub-blue)}
.hub-area-green .hub-area-icon{background:#ebf8f2;color:var(--hub-green)}
.hub-area-pink .hub-area-icon{background:#fff0f7;color:var(--hub-pink)}
.hub-area-purple .hub-area-icon{background:#f1efff;color:var(--hub-purple)}
.hub-area-indigo .hub-area-icon{background:#eef1ff;color:var(--hub-indigo)}
.hub-area-teal .hub-area-icon{background:#e9f8f7;color:var(--hub-teal)}

/* Projects */
.hub-result-count{font-size:11px;color:#7d899b}
.hub-project-item{display:flex}
.hub-project{--accent:var(--hub-primary);--soft:var(--hub-primary-soft);width:100%;min-height:126px;background:#fff;border:1px solid var(--hub-line);border-left:3px solid var(--accent);border-radius:8px;padding:12px 13px;color:inherit;display:flex;flex-direction:column;justify-content:flex-start;transition:.15s ease}
.hub-project:hover{color:inherit;border-color:#cbd3df;border-left-color:var(--accent);box-shadow:0 6px 16px rgba(30,44,66,.07);transform:translateY(-1px)}
.hub-project-row{display:flex;align-items:center;gap:8px;min-width:0;min-height:32px}
.hub-project-code{min-width:34px;height:30px;padding:0 6px;border-radius:6px;background:var(--soft);color:var(--accent);display:grid;place-items:center;flex:0 0 auto;font-size:10px;font-weight:800;line-height:1}
.hub-project-row h3{margin:0;font-size:15px;line-height:1.15;font-weight:700;white-space:nowrap;color:#1b2940;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.hub-project-tags{display:flex;gap:4px;flex-wrap:nowrap;min-width:0;overflow:hidden}
.hub-project-tags span{display:inline-flex;align-items:center;height:20px;padding:0 6px;border:1px solid #e2e7ee;border-radius:5px;background:#f7f9fb;color:#687589;font-size:10px;font-weight:600;white-space:nowrap}
.hub-project-open{font-size:11px;color:#9aa5b5;margin-left:auto;flex:0 0 auto}
.hub-project:hover .hub-project-open{color:var(--accent)}
.hub-project p{font-size:12.5px;line-height:1.45;color:#687589;margin:10px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-project-blue{--accent:var(--hub-blue);--soft:#edf4ff}
.hub-project-green{--accent:var(--hub-green);--soft:#ebf8f2}
.hub-project-pink{--accent:var(--hub-pink);--soft:#fff0f7}
.hub-project-purple{--accent:var(--hub-purple);--soft:#f1efff}
.hub-project-indigo{--accent:var(--hub-indigo);--soft:#eef1ff}
.hub-project-orange{--accent:var(--hub-orange);--soft:#fff3ea}
.hub-project-teal{--accent:var(--hub-teal);--soft:#e9f8f7}
.hub-empty{color:#7a8798}
.hub-empty>i{font-size:24px}
.hub-empty h3{font-size:15px;color:#29364a;margin-bottom:4px}
.hub-empty p{font-size:12px}
.hub-footer{font-size:10px;color:#8591a3}
.hub-footer i{font-size:6px}

/* Login */
.login-page{background:#fff;color:#24324a}
.app-topbar{height:60px}
.app-logo{width:34px;height:34px;border-radius:8px;display:block}
.app-brand{display:flex;align-items:center;gap:9px;color:#172033;line-height:1.05}
.app-brand strong{font-size:14px}.app-brand small{font-size:10px}
.login-shell{min-height:calc(100vh - 60px);display:grid;grid-template-columns:minmax(0,1.05fr) minmax(390px,.75fr)}
.login-intro{background:linear-gradient(135deg,#14213e,#1d3156);color:#fff;padding:46px 5vw}
.login-intro-content{max-width:720px}.login-kicker{color:#aabaff;letter-spacing:.08em;font-size:11px}
.login-intro h1{max-width:680px;font-size:clamp(34px,4.2vw,52px);line-height:1.08;letter-spacing:-1.4px}
.login-intro p{max-width:620px;color:#c7d0df;font-size:15px;line-height:1.65}
.login-stats{max-width:520px}.stat-block{border-left:2px solid rgba(255,255,255,.18);padding:4px 12px}.stat-block strong{display:block;font-size:22px}.stat-block span{display:block;font-size:11px;color:#aab8ca;margin-top:2px}
.login-areas{max-width:620px}.intro-area{display:flex;align-items:center;gap:9px;border-top:1px solid rgba(255,255,255,.12);padding:11px 6px;color:#dce4ef;font-size:13px}.intro-area i{width:18px;text-align:center;color:#a9bbff}
.login-form-side{padding:34px 6vw}.login-card{max-width:390px}.login-icon{width:38px;height:38px;display:grid;place-items:center;background:#eaf1ff;color:#0d6efd;border-radius:7px;font-size:15px;flex:0 0 38px}.login-form-kicker{font-size:10px;letter-spacing:.08em}.login-card .form-label{font-size:12px;margin-bottom:6px}.login-card .form-control,.login-card .input-group-text,.login-card .btn{font-size:13px}.login-card .form-control{min-height:43px}.login-card .input-group-text{min-width:42px;justify-content:center}

@media(max-width:1199.98px){
  .hub-title{font-size:24px}
  .hub-project-row{gap:6px}
}

@media(max-width:991.98px){
  .hub-shell{padding-left:16px!important;padding-right:16px!important}
  .hub-search{max-width:none}
  .hub-title{font-size:22px}
  .login-shell{grid-template-columns:1fr}
  .login-intro{padding:34px 28px}
  .login-form-side{padding:32px 20px 42px}
  .login-intro h1{font-size:36px}
}

@media(max-width:767.98px){
  body{font-size:13px}
  .hub-topbar{height:58px}
  .hub-search .input-group-text:first-child{display:none}
  .hub-search .form-control{border-left:1px solid #d9e0ea;padding-left:10px}
  .hub-title{font-size:20px}
  .hub-subtitle{font-size:12px}
  .hub-stats{gap:10px!important}
  .hub-area{height:52px}
  .hub-area small{display:none}
  .hub-project{min-height:118px}
  .hub-project-row{flex-wrap:wrap;row-gap:5px}
  .hub-project-tags{order:4;width:100%;padding-left:42px}
  .hub-project-open{position:absolute;right:12px;top:12px}
  .hub-project{position:relative}
}

@media(max-width:575.98px){
  .hub-shell{padding-left:12px!important;padding-right:12px!important}
  .hub-project p{font-size:12px}
  .login-intro{padding:30px 18px}
  .login-intro h1{font-size:31px}
  .login-intro p{font-size:13px}
  .login-areas{display:none}
}
