:root{
  --surface:#ffffff;
  --bg:#f7f3ec;
  --line:#d8cfc2;
  --line-soft:#e9e1d6;
  --text:#231d19;
  --muted:#6f675d;
  --shadow:0 1px 0 rgba(34,29,25,.02);
  --blue:#376bf5;
  --green:#42b814;
  --teal:#0f7d69;
  --gold:#d7a021;
}

.project-overview-main{
  padding:18px;
  background:var(--bg);
}

/* smaller left + right rails, middle fills remaining space */
.overview-3col-shell{
  display:grid;
  grid-template-columns:220px minmax(0,1fr) 360px;
  gap:20px;
  min-height:calc(100vh - 36px);
  align-items:start;
}

.overview-left-panel,
.overview-middle-panel,
.overview-right-panel{
  min-width:0;
  min-height:0;
}

/* base scroll containers */
.overview-left-panel-scroll,
.overview-middle-panel-scroll,
.overview-right-panel-scroll{
  height:calc(100vh - 36px);
  overflow:auto;
  overscroll-behavior:contain;
  padding-right:0;
}

/* left rail: hide scrollbar but keep scroll */
.overview-left-panel-scroll{
  scrollbar-width:none;       /* Firefox */
  -ms-overflow-style:none;    /* IE / old Edge */
}
.overview-left-panel-scroll::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}

/* right rail: hide scrollbar but keep scroll */
.overview-right-panel-scroll{
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.overview-right-panel-scroll::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}

/* middle rail: hidden by default, thumb appears on hover/scroll-capable browsers */
.overview-middle-panel-scroll{
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.overview-middle-panel-scroll::-webkit-scrollbar{
  width:0;
  height:0;
}
.overview-middle-panel-scroll:hover{
  scrollbar-width:thin;
}
.overview-middle-panel-scroll:hover::-webkit-scrollbar{
  width:10px;
}
.overview-middle-panel-scroll:hover::-webkit-scrollbar-track{
  background:transparent;
}
.overview-middle-panel-scroll:hover::-webkit-scrollbar-thumb{
  background:rgba(111,103,93,.35);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}

.project-summary-card,
.overview-module,
.right-rail-card{
  background:var(--surface);
  border:1px solid var(--line-soft);
  border-radius:22px;
  box-shadow:var(--shadow);
}

.project-summary-card{
  padding:18px;
}

.project-summary-top{
  display:grid;
  grid-template-columns:10px minmax(0,1fr) 28px;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}

.project-accent{
  display:block;
  width:10px;
  min-height:92px;
  border-radius:999px;
  background:var(--blue);
}

.project-accent.orange{ background:#ef6a33; }
.project-accent.blue{ background:#5a42eb; }

.project-summary-text h1{
  margin:0;
  font-size:22px;
  line-height:1.28;
  font-weight:800;
  letter-spacing:-.01em;
}

.mini-caret-btn{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--text);
  font-size:15px;
  cursor:pointer;
}

.project-summary-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}

.summary-action-btn{
  min-height:48px;
  border-radius:12px;
  border:1px solid var(--line-soft);
  background:#efe8dd;
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
}

.summary-action-btn svg{
  width:18px;
  height:18px;
}

.overview-left-nav-wrap{
  display:grid;
  gap:8px;
}

.overview-section-group{
  display:grid;
  gap:2px;
}

.overview-section-head{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  border:0;
  background:transparent;
  color:#5b5248;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}

.section-head-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.section-head-left svg{
  width:14px;
  height:14px;
}

.section-chevron{
  color:#6d645a;
  transition:transform .18s ease;
}

.overview-section-group:not(.is-open) .section-chevron{
  transform:rotate(180deg);
}

.overview-section-body{
  display:grid;
  gap:4px;
  margin-left:7px;
  padding-left:15px;
  border-left:1px solid var(--line);
}

.overview-section-group:not(.is-open) .overview-section-body{
  display:none;
}

.overview-section-body a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  color:#38312c;
  font-size:14px;
  line-height:1.25;
  text-decoration:none;
}

.overview-section-body a:hover{
  background:#f4eee6;
}

.overview-module{
  padding:22px;
  margin-bottom:22px;
}

.overview-module-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}

.overview-module-head h3{
  margin:0;
  font-size:18px;
  font-weight:800;
}

.overview-module-head > span{
  font-size:34px;
  line-height:1;
  color:#3a332e;
}

.payment-module{
  display:grid;
  grid-template-columns:minmax(0,1fr) 288px;
  gap:24px;
  align-items:center;
}

.payment-module-copy h2{
  margin:0 0 12px;
  font-size:22px;
  font-weight:800;
}

.payment-module-copy p{
  margin:0 0 20px;
  max-width:620px;
  font-size:16px;
  line-height:1.55;
  color:var(--muted);
}

.payment-module-visual{
  height:220px;
  border-radius:24px;
  background:#eef3ff;
}

.pill-tab-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}

.pill-tab{
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid transparent;
  background:#ece6db;
  color:#2d2723;
  font-size:16px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.pill-tab.is-active{
  background:#fff;
  border-color:#3b342e;
}

.module-filter{
  color:#3d352f;
  font-size:16px;
  font-weight:700;
}

.module-empty{
  min-height:126px;
  padding:24px;
  border-radius:16px;
  background:#faf7f2;
  color:#5e564d;
  font-size:16px;
  line-height:1.45;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.asset-strip{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:flex-start;
}

.upload-card,
.asset-thumb{
  width:188px;
  height:168px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.upload-card{
  border:1px dashed #c8d8ff;
  background:#eef3ff;
  color:#2a241f;
  font-weight:800;
}

.asset-thumb{
  border:1px solid var(--line-soft);
  background:#f2ede5;
}

.floor-thumb{
  background:linear-gradient(135deg,#f4f0ea 0%,#ddd8cf 100%);
}

.mood-thumb{
  background:linear-gradient(135deg,#d4bda3 0%,#eee5d9 100%);
}

.task-list{
  display:grid;
  gap:0;
}

.task-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto auto;
  align-items:center;
  gap:16px;
  min-height:62px;
  padding:14px 0;
  border-top:1px solid var(--line-soft);
}

.task-check{
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid var(--line);
  display:block;
}

.task-title{
  font-size:16px;
  line-height:1.35;
  font-weight:700;
  color:#231d19;
}

.task-date{
  color:var(--muted);
  font-size:15px;
}

.task-date.warning{
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  background:#f4e8c7;
  color:#604b20;
  font-weight:800;
  display:inline-flex;
  align-items:center;
}

.task-avatar,
.task-avatar-stack .task-avatar{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#2f8f16;
  color:#fff;
  font-size:13px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.task-avatar-stack{
  display:flex;
}

.task-avatar-stack .task-avatar.alt{
  margin-left:-8px;
  background:#a7dcf0;
  color:#183344;
}

.mini-stat-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.mini-stat-card{
  padding:18px;
  border-radius:16px;
  background:#faf7f2;
  border:1px solid var(--line-soft);
}

.mini-stat-card strong{
  display:block;
  margin-bottom:8px;
  font-size:28px;
  line-height:1.1;
}

.mini-stat-card span{
  color:var(--muted);
  font-weight:700;
}

.doc-list-row{
  display:grid;
  grid-template-columns:110px minmax(0,1fr) 160px auto;
  align-items:center;
  gap:16px;
  padding:16px;
  border-radius:16px;
  border:1px solid var(--line-soft);
  background:#faf7f2;
}

.asset-card-row{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}

.asset-card{
  width:194px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line-soft);
  background:#fff;
}

.asset-cover{
  height:104px;
}

.asset-card-body{
  display:grid;
  gap:8px;
  padding:14px;
}

.asset-card-body strong{
  font-size:16px;
  line-height:1.3;
}

.asset-card-body span{
  color:var(--muted);
  font-size:14px;
  line-height:1.4;
}

.overview-customize-btn{
  min-height:44px;
  padding:0 20px;
  border-radius:12px;
}

.right-rail-card{
  padding:18px;
  margin-bottom:20px;
  position:relative;
}

.right-rail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}

.right-rail-head h4{
  margin:0;
  font-size:17px;
  font-weight:800;
}

.right-rail-head a{
  color:#2d2722;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
}

.status-select-pill,
.right-rail-select{
  width:100%;
  min-height:52px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  font-weight:800;
  color:#302924;
  cursor:pointer;
}

.status-select-pill{
  background:#eef2ff;
}

.right-rail-select{
  justify-content:flex-start;
  border-radius:12px;
  background:#fff;
}

.status-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  flex:0 0 auto;
}

.status-dot.blue{ background:#376bf5; }
.status-dot.green{ background:#49b713; }
.status-dot.teal{ background:#0e7c68; }
.status-dot.gold{ background:#d7a021; }

.menu-panel{
  position:absolute;
  left:18px;
  right:18px;
  top:68px;
  display:none;
  background:#fff;
  border:1px solid var(--line-soft);
  border-radius:16px;
  box-shadow:0 18px 40px rgba(0,0,0,.12);
  padding:8px;
  z-index:30;
}

.menu-panel.is-open{
  display:block;
}

.menu-item{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  padding:0 12px;
  border-radius:10px;
  color:#2c2622;
  font-size:16px;
  text-decoration:none;
}

.menu-item:hover{
  background:#f5efe7;
}

.client-lookup .search-wide{
  margin-bottom:8px;
}

.client-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:8px;
}

.muted-link{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  color:#8a8074;
  font-size:16px;
  text-decoration:none;
}

.collab-grid-row{
  display:grid;
  grid-template-columns:1fr 38px;
  align-items:center;
  gap:14px;
  padding:8px 0;
  font-size:16px;
}

.icon-circle{
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:#cdc4b7;
  color:#fff;
  font-size:20px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.icon-circle.avatar{
  background:#2f8f16;
  font-size:14px;
}

.rail-dashboard-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:6px 0;
  color:#1f1a17;
  font-size:16px;
  font-weight:800;
  text-decoration:none;
}

.rail-dashboard-meta{
  margin:6px 0 12px;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

.status-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:800;
}

.status-chip::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:currentColor;
}

.status-chip.gold-outline{
  border:2px solid #efc852;
  color:#907019;
  background:#fffdf7;
}

.status-chip.green-outline{
  border:2px solid #7acb5b;
  color:#4a9a2a;
  background:#f8fff4;
}

.rail-divider{
  border:0;
  border-top:1px solid var(--line-soft);
  margin:16px 0;
}

.tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.tag-pill{
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:#f4efe7;
  border:1px solid var(--line-soft);
  display:inline-flex;
  align-items:center;
  font-size:14px;
  font-weight:700;
  color:#302924;
}

.modal-bg{
  position:fixed;
  inset:0;
  background:rgba(16,12,9,.38);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:5000;
}

.modal-bg.is-open{
  display:flex;
}