/* =====================================================================
   智能化项目交付系统 - 后台全局样式（扁平化）
   说明：本文件保留全部既有类名（老页面不破相），仅把视觉改为扁平风格：
        去渐变、去投影、直角化、实色块、靠边框与留白分隔，并新增
        主控台 / 项目卡片 / 项目二级导航 / 阶段进度树 等组件。
   ===================================================================== */
:root {
  --c-primary: #2f6fed;
  --c-primary-dark: #1d4fc4;
  --c-success: #18a058;
  --c-warning: #e6a23c;
  --c-danger: #e04040;
  --c-bg: #f4f5f7;
  --c-card: #ffffff;
  --c-text: #1f2329;
  --c-text-2: #646a73;
  --c-border: #dcdfe4;
  --c-border-2: #c8ccd3;
  --c-nav: #22303c;
  --c-nav-2: #2b3b49;
  --r: 2px;
  --sidebar-w: 220px;
  --topbar-h: 52px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: var(--c-text); background: var(--c-bg);
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
/* 卡片式入口（主控台图标卡 / 项目财务等功能卡）悬停不显示下划线 */
a.hub-card, a.hub-card:hover, a.hub-card:hover .hc-t, a.hub-card:hover .hc-d,
a.home-card, a.home-card:hover, a.home-card:hover .hc-name, a.module-card, a.module-card:hover { text-decoration: none !important; }

/* ---------- 布局（扁平单栏：已移除左侧导航，一级入口全部由主页承载） ---------- */
.layout { min-height: 100vh; }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-h); background: var(--c-card); border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  position: sticky; top: 0; z-index: 10;
}
.topbar .tb-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .tb-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.topbar .tb-logo svg { display: block; }
.topbar .tb-brand { font-size: 15px; font-weight: 700; color: var(--c-text); white-space: nowrap; }
.topbar .tb-home {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border: 1px solid var(--c-primary); border-radius: var(--r); color: var(--c-primary);
  background: var(--c-card); font-size: 13px; font-weight: 600; text-decoration: none !important;
  white-space: nowrap;
}
.topbar .tb-home:hover { background: var(--c-primary); color: #fff; }
.topbar .user-info { display: flex; align-items: center; gap: 14px; }
.topbar .user-info .avatar {
  width: 30px; height: 30px; background: var(--c-primary); border-radius: var(--r);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.content { padding: 20px; flex: 1; }

/* ---------- 项目二级顶部导航（吸顶在顶部栏下方） ---------- */
.project-nav {
  position: sticky; top: var(--topbar-h); z-index: 9;
  background: var(--c-card); border-bottom: 1px solid var(--c-border); padding: 0 20px;
}
/* 右侧：项目名称（大字）+ 退出当前项目，整体跨整条二级导航条垂直居中 */
.project-nav .pn-right {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%); z-index: 1;
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 40px);
}
.project-nav .pn-back {
  padding: 7px 18px; border: 1px solid var(--c-primary); border-radius: var(--r);
  background: var(--c-card); color: var(--c-primary);
  font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  text-decoration: none !important;
}
.project-nav .pn-back:hover { background: var(--c-primary); color: #fff; text-decoration: none !important; }
/* 项目名称：大字显示在右侧 */
.project-nav .pn-name {
  min-width: 0;
  font-size: 22px; font-weight: 800; color: var(--c-text); letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 左侧菜单：全高竖条格子（竖线顶到导航条上下边框），每格正方形；选中格底色＝子页面背景色，像与页面相连的标签页 */
.project-nav .pn-menu { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; padding-right: 470px; }
.project-nav .pn-menu a {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  font-size: 15px; font-weight: 600; line-height: 1;
  color: var(--c-text-2); background: none; border-radius: 0;
  border-left: 1px solid var(--c-border);
  text-decoration: none !important; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.project-nav .pn-menu a:last-child { border-right: 1px solid var(--c-border); }
.project-nav .pn-menu a:hover { color: var(--c-primary); background: #f2f6ff; }
.project-nav .pn-menu a.active { color: var(--c-primary); background: var(--c-bg); font-weight: 700; }
/* 选中格：用同色 1px 盖住导航条下边框，使格子与下方页面无缝相连 */
.project-nav .pn-menu a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--c-bg);
}

/* ---------- 页头 / 面包屑 ---------- */
.page-head { margin-bottom: 16px; }
.page-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.page-sub { color: var(--c-text-2); font-size: 13px; margin-top: 5px; }
.page-sub .sep { margin: 0 8px; color: var(--c-border-2); }
/* 页头带右侧操作：标题/副标题在左，操作按钮贴右（仅 .has-actions 生效，不影响其它页） */
.page-head.has-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-head-main { min-width: 0; }
.page-head-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.breadcrumb { font-size: 12px; color: var(--c-text-2); margin-bottom: 8px; }
.breadcrumb a { color: var(--c-text-2); }
.breadcrumb .sep { margin: 0 6px; color: var(--c-border-2); }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r);
  padding: 18px; margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: var(--r);
  padding: 7px 16px; font-size: 13px; cursor: pointer; line-height: 1.4;
  background: var(--c-primary); color: #fff; transition: background .12s;
  text-decoration: none !important;
}
.btn:hover { background: var(--c-primary-dark); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-outline { background: #fff; color: var(--c-text); border-color: var(--c-border-2); }
.btn-outline:hover { background: #f2f5fb; border-color: var(--c-primary); color: var(--c-primary); }
.btn-success { background: var(--c-success); }
.btn-success:hover { background: #148a4a; }
.btn-warning { background: var(--c-warning); }
.btn-warning:hover { background: #cf8f2c; }
.btn-danger { background: var(--c-danger); }
.btn-danger:hover { background: #c53333; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 11px 24px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.table-wrap { overflow-x: auto; }
table.list {
  width: 100%; border-collapse: collapse; background: #fff; font-size: 13px;
}
table.list th, table.list td {
  border: 1px solid var(--c-border); padding: 9px 10px; text-align: left; white-space: nowrap;
}
table.list th { background: #f0f2f5; font-weight: 600; color: var(--c-text-2); }
table.list tbody tr:hover { background: #f4f7fd; }
table.list td.wrap { white-space: normal; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--r); font-size: 12px; line-height: 1.5;
}
.badge-gray { background: #eef0f3; color: var(--c-text-2); }
.badge-blue { background: #e7eeff; color: var(--c-primary); }
.badge-green { background: #e0f4ea; color: var(--c-success); }
.badge-orange { background: #fcf1dd; color: #a97118; }
.badge-red { background: #fbe6e6; color: var(--c-danger); }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px 18px; }
.form-item label { display: block; font-size: 13px; color: var(--c-text-2); margin-bottom: 5px; }
.form-item label .req { color: var(--c-danger); margin-left: 2px; }
.form-item input[type=text], .form-item input[type=number], .form-item input[type=date],
.form-item input[type=password], .form-item select, .form-item textarea {
  width: 100%; border: 1px solid var(--c-border-2); border-radius: var(--r); padding: 8px 10px;
  font-size: 13px; font-family: inherit; background: #fff;
}
.form-item textarea { min-height: 72px; resize: vertical; white-space: pre-wrap; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  outline: none; border-color: var(--c-primary); box-shadow: none;
}
.form-item.full { grid-column: 1 / -1; }
.form-actions { margin-top: 16px; display: flex; gap: 10px; }

/* 统计卡：auto-fit（空轨道折叠），卡片撑满整行，不再挤在左侧留大片空白 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card {
  background: var(--c-card); border: 1px solid var(--c-border); border-left: 3px solid var(--c-border-2);
  border-radius: var(--r); padding: 16px;
}
.stat-card .num { font-size: 26px; font-weight: 700; margin-top: 4px; }
.stat-card .lbl { color: var(--c-text-2); font-size: 13px; }
.stat-card .sub { color: var(--c-text-2); font-size: 12px; margin-top: 6px; }
.stat-card.primary { border-left-color: var(--c-primary); }
.stat-card.primary .num { color: var(--c-primary); }
.stat-card.success { border-left-color: var(--c-success); }
.stat-card.success .num { color: var(--c-success); }
.stat-card.warning { border-left-color: var(--c-warning); }
.stat-card.warning .num { color: var(--c-warning); }
.stat-card.danger { border-left-color: var(--c-danger); }
.stat-card.danger .num { color: var(--c-danger); }

/* 进度条 */
.progress { background: #e9ebef; border-radius: 0; height: 8px; overflow: hidden; width: 100%; }
.progress .bar { height: 100%; border-radius: 0; background: var(--c-primary); }
.progress .bar.green { background: var(--c-success); }
.progress .bar.orange { background: var(--c-warning); }
.progress .bar.red { background: var(--c-danger); }

/* 搜索栏 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.filter-bar input, .filter-bar select {
  border: 1px solid var(--c-border-2); border-radius: var(--r); padding: 7px 10px; font-size: 13px;
}
.filter-bar select { min-width: 110px; }

/* 分页 */
.pagination { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 5px 12px; border: 1px solid var(--c-border-2); border-radius: var(--r); font-size: 13px;
  background: #fff; text-decoration: none !important; color: var(--c-text);
}
.pagination .cur { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* 标签页 */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--c-border); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a {
  padding: 9px 18px; font-size: 14px; color: var(--c-text-2); text-decoration: none !important;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tabs a.active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }

/* 登录页 */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--c-nav);
}
.login-box {
  width: 380px; background: #fff; border-radius: var(--r); padding: 34px 36px;
  border-top: 4px solid var(--c-primary);
}
.login-box h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.login-box .sub { text-align: center; color: var(--c-text-2); font-size: 13px; margin-bottom: 24px; }
.login-box .code-row { display: flex; gap: 10px; }
.login-box .code-row input { flex: 1; }
.login-box .field { margin-bottom: 16px; }
.login-box input {
  width: 100%; border: 1px solid var(--c-border-2); border-radius: var(--r); padding: 10px 12px; font-size: 14px;
}
.login-box input:focus { outline: none; border-color: var(--c-primary); }
.login-box .btn-send { white-space: nowrap; width: 118px; }
.login-box .tip { font-size: 12px; color: var(--c-warning); margin-top: 8px; text-align: center; min-height: 16px; }
.login-box .login-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid var(--c-border); }
.login-box .login-tabs button { flex: 1; padding: 8px 0; border: none; background: none; font-size: 14px; color: var(--c-text-2); border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; }
.login-box .login-tabs button.active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }
.login-box .login-panel { display: none; }
.login-box .login-panel.active { display: block; }

/* 消息条 */
.toast {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.82); color: #fff; padding: 9px 22px; border-radius: var(--r);
  font-size: 13px; z-index: 999; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.toast.show { opacity: 1; }
.toast.err { background: rgba(224,64,64,.92); }

/* 模态框 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100;
  display: none; align-items: center; justify-content: center;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: var(--r); width: 520px; max-width: 94vw; max-height: 88vh;
  overflow-y: auto; padding: 22px 24px;
}
.modal h3 { font-size: 16px; margin-bottom: 16px; }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* 空态 */
.empty {
  text-align: center; color: var(--c-text-2); padding: 44px 0; font-size: 13px;
}
.empty .icon { font-size: 34px; margin-bottom: 10px; opacity: .5; }

/* 工具条 */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.muted { color: var(--c-text-2); font-size: 12px; }
.right { float: right; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; align-items: center; gap: 10px; }

/* =====================================================================
   以下为扁平化新增组件（主控台 / 项目卡片 / 项目二级导航 / 阶段进度树）
   ===================================================================== */

/* 主控台：APP 图标式一级入口（图标块 + 名称，水平居中、整体偏上） */
.layout-home { display: flex; flex-direction: column; }
.layout-home .main { flex: 1; }
.home-center { display: flex; flex-direction: column; }
.home-entry { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding-top: calc(8vh + 123px); }
.home-grid { display: grid; grid-template-columns: repeat(6, auto); gap: 40px 28px; justify-content: center; }
.home-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  width: 123px; text-align: center; background: none; border: 0; padding: 0;
  color: var(--c-text); text-decoration: none !important;
}
.home-card .hc-icon {
  width: 123px; height: 123px; border-radius: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; line-height: 1;
  background: #dbe7ff;
  box-shadow: 0 6px 16px rgba(47, 111, 237, .14);
  transition: transform .16s ease, box-shadow .16s ease;
}
.home-card:hover .hc-icon { transform: translateY(-4px); box-shadow: 0 14px 24px rgba(47, 111, 237, .24); }
/* 平时不显示文字，悬停时在图标下方淡出名称（无气泡） */
.home-card .hc-name {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  font-size: 15px; font-weight: 600; color: var(--c-text); white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.home-card:hover .hc-name { opacity: 1; }

/* 每个入口给一块柔和底色，贴近手机桌面图标观感 */
.home-grid .home-card:nth-child(1) .hc-icon { background: #dbe7ff; }
.home-grid .home-card:nth-child(2) .hc-icon { background: #d8f3e4; }
.home-grid .home-card:nth-child(3) .hc-icon { background: #e5ebf3; }
.home-grid .home-card:nth-child(4) .hc-icon { background: #fdeed3; }
.home-grid .home-card:nth-child(5) .hc-icon { background: #eae0fb; }
.home-grid .home-card:nth-child(6) .hc-icon { background: #d3f0f5; }

/* 主控台：四大入口 */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
/* 主页模块分组标题（侧栏移除后，一级入口全部收在主页） */
.mod-section { margin-bottom: 20px; }
.mod-section > .sec-title {
  font-size: 14px; font-weight: 700; color: var(--c-text); margin: 0 0 10px;
  padding-left: 10px; border-left: 3px solid var(--c-primary); line-height: 1.2;
}
.module-card {
  display: block; background: var(--c-card); border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-primary); border-radius: var(--r); padding: 20px;
  color: var(--c-text); text-decoration: none !important;
}
.module-card:hover { border-color: var(--c-primary); background: #f7faff; }
.module-card .icon { font-size: 24px; }
.module-card .name { font-size: 16px; font-weight: 700; margin: 8px 0 6px; }
.module-card .desc { color: var(--c-text-2); font-size: 13px; line-height: 1.6; }
.module-card .enter { color: var(--c-primary); font-size: 13px; margin-top: 12px; display: block; }

/* 项目管理：项目卡片（整卡可点，只展示项目名称 / 合同编号 / 状态） */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.proj-card {
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r); padding: 24px 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 150px; cursor: pointer;
  color: var(--c-text); text-decoration: none !important;
}
.proj-card:hover { border-color: var(--c-primary); background: #f7faff; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.proj-card .pc-name { font-size: 22px; font-weight: 800; line-height: 1.45; letter-spacing: .5px; color: var(--c-text); }
.proj-card .pc-contract { color: var(--c-text-2); font-size: 13px; margin-top: 8px; }
.proj-card .pc-status { margin-top: 14px; }

/* 项目二级导航 */
.subnav {
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r);
  display: flex; flex-wrap: wrap; margin-bottom: 16px; padding: 0 6px;
}
.subnav a {
  padding: 12px 14px; font-size: 13px; color: var(--c-text-2); text-decoration: none !important;
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.subnav a:hover { color: var(--c-primary); }
.subnav a.active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }
.subnav .soon { opacity: .55; }

/* 项目切换条 */
.proj-switch {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r);
  padding: 10px 14px; margin-bottom: 16px;
}
.proj-switch .label { color: var(--c-text-2); font-size: 12px; }
.proj-switch select { border: 1px solid var(--c-border-2); border-radius: var(--r); padding: 6px 10px; font-size: 13px; min-width: 260px; }

/* 资料交付：阶段进度树 */
.stage-tree { border: 1px solid var(--c-border); border-radius: var(--r); overflow: hidden; }
.stage-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--c-border); background: #fff; }
.stage-item:first-child { border-top: none; }
.stage-item:hover { background: #f7faff; }
.stage-item .s-name { width: 180px; font-size: 13px; flex-shrink: 0; }
.stage-item .s-name a { color: var(--c-text); }
.stage-item .s-bar { flex: 1; min-width: 120px; }
.stage-item .s-pct { width: 90px; text-align: right; font-size: 13px; color: var(--c-text-2); }
.stage-item .s-cnt { width: 120px; text-align: right; font-size: 12px; color: var(--c-text-2); }
.stage-item .s-go { width: 70px; text-align: right; }

/* 工作台：两栏布局（左 = 阶段进度，右 = 待办提醒 + 项目信息），两栏底边对齐 */
.console-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.console-cols .card { margin-bottom: 0; }
.console-cols > .card { display: flex; flex-direction: column; }
.console-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.console-side > .card:last-child { flex: 1; }
/* 左卡：阶段树铺满卡片剩余高度，行等分撑开，使两栏底边严丝合缝 */
.console-cols > .card .stage-tree { flex: 1; display: flex; flex-direction: column; }
.console-cols > .card .stage-item { flex: 1; }

/* 待办提醒 */
.todo-list { border: 1px solid var(--c-border); border-radius: var(--r); }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--c-border); font-size: 13px; }
.todo-item:first-child { border-top: none; }
.todo-item .dot { width: 6px; height: 6px; background: var(--c-warning); flex-shrink: 0; }
.todo-item .dot.red { background: var(--c-danger); }
.todo-item .dot.blue { background: var(--c-primary); }
.todo-item .grow { flex: 1; }
.todo-item .muted { white-space: nowrap; }

/* 建设中占位 */
.build-note {
  background: #fff; border: 1px dashed var(--c-border-2); border-radius: var(--r);
  padding: 26px; text-align: center;
}
.build-note .tag { display: inline-block; background: #fcf1dd; color: #a97118; padding: 3px 10px; border-radius: var(--r); font-size: 12px; }
.build-note h3 { font-size: 16px; margin: 12px 0 8px; }
.build-note ul { list-style: none; display: inline-block; text-align: left; margin-top: 12px; }
.build-note li { color: var(--c-text-2); font-size: 13px; line-height: 2; }

/* 窄屏降级：给右侧「名称 + 退出当前项目」留白，过窄时改为另起一行右对齐 */
@media (max-width: 1400px) {
  .project-nav .pn-menu { padding-right: 380px; }
  .project-nav .pn-name { font-size: 18px; }
}
@media (max-width: 1150px) {
  .project-nav .pn-menu { padding-right: 0; }
  .project-nav .pn-right { position: static; transform: none; margin-top: 10px; padding-bottom: 12px; justify-content: flex-end; max-width: none; }
  .project-nav .pn-name { font-size: 18px; }
}

@media (max-width: 1100px) {
  .home-grid { grid-template-columns: repeat(3, auto); }
  .console-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .content { padding: 12px; }
  .module-grid, .proj-grid { grid-template-columns: 1fr; }
  .home-entry { padding-top: calc(5vh + 88px); }
  .home-grid { grid-template-columns: repeat(2, auto); gap: 26px 24px; }
  .home-card { width: 88px; }
  .home-card .hc-icon { width: 88px; height: 88px; border-radius: 24px; font-size: 40px; }
  .home-card .hc-name { font-size: 13px; }
  .stage-item .s-cnt { display: none; }
}
