/* Keep the existing business screens; share a quiet, theme-aware visual vocabulary. */
:root {
  --p: #178ca0;
  --p2: #178ca0;
  --p3: #a6d9df;
  --bg: #f4f6f8;
  --bd: #e2e6eb;
  --tx: #18212f;
  --tx2: #4b5563;
  --tx3: #748092;
  --accent-rgb: 23, 140, 160;
}
.layout {
  grid-template-columns: 224px minmax(0, 1fr);
}
.side {
  background: #121211;
  color: #d6d6d6;
  padding-top: 24px;
}
.side .logo b {
  font-size: 20px;
  letter-spacing: 0;
}
.side .logo span,
.side .me div span {
  color: #a4a4a4;
}
.side nav {
  overflow-y: auto;
}
.side nav button {
  width: calc(100% - 20px);
  margin: 4px 10px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  color: #c8c8c8;
}
.side nav button.on {
  color: white;
  background: #292725;
}
.side .logo > div {
  background: rgba(var(--accent-rgb), 0.14) !important;
  color: #e8f5f5 !important;
}
.top {
  min-height: 66px;
  padding: 14px 24px;
  gap: 16px;
}
.top .h {
  color: var(--tx);
  font-size: 18px;
}
.top .h span {
  font-size: 12px;
}
.content {
  max-width: none;
  padding: 24px 28px 56px;
}
.page {
  min-width: 0;
}
.stat {
  padding: 20px;
  border-radius: 12px;
  box-shadow: none;
}
.stat::before {
  display: none;
}
.stat .v {
  font-size: 28px;
  font-weight: 650;
}
.stat .l {
  margin-top: 7px;
  font-size: 12px;
}
.sc,
.proj,
.card,
.panel,
.pv-it {
  border-radius: 12px;
  box-shadow: none;
}
.sc {
  padding: 20px;
}
.sc .hd .info b {
  font-size: 18px;
  color: var(--tx);
}
.sc .hd .sch {
  font-size: 12px;
  line-height: 1.65;
}
#viewSwitch,
.jl-view-switch {
  padding: 4px;
  border-radius: 10px;
  background: #eaf0f3;
}
button:not(.project-row):not(.pv-it),
.btn,
.btn-meet,
.chip {
  min-height: 34px;
  line-height: 1.4;
}
button,
.btn,
.btn-meet {
  vertical-align: middle;
}
button:not(.project-row):not(.pv-it):not(.stat),
.btn,
.btn-meet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.side nav button {
  justify-content: flex-start;
}
.btn-meet {
  padding: 8px 16px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--p);
  outline-offset: 3px;
}
input,
select,
textarea {
  font: inherit;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select {
  min-height: 36px;
}
.pill {
  white-space: normal;
  overflow-wrap: anywhere;
}
.pill.b {
  background: rgba(var(--accent-rgb), 0.07);
  color: var(--p);
}
#projList > div > div[onclick^="toggleProjGroup"] {
  color: var(--p) !important;
  background-color: #fff !important;
  background-image: radial-gradient(
    rgba(var(--accent-rgb), 0.12) 0.8px,
    transparent 0.8px
  ) !important;
  background-size: 12px 12px !important;
  border: 1px solid var(--bd);
}
.jl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.jl-view-switch {
  display: flex;
  gap: 4px;
}
.jl-view-switch button {
  padding: 6px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--tx2);
  cursor: pointer;
}
.jl-view-switch button[aria-pressed="true"] {
  background: white;
  color: var(--p);
  box-shadow: 0 1px 3px #00000012;
}
.jl-project-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.jl-project-overview button {
  display: grid !important;
  justify-content: start !important;
  gap: 6px;
  padding: 18px;
  text-align: left;
  background: white;
  border: 1px solid var(--bd);
  border-radius: 12px;
}
.jl-project-overview button[aria-pressed="true"] {
  border-color: var(--p);
}
.jl-project-overview b {
  font-size: 26px;
  color: var(--p);
}
.jl-project-overview span {
  font-size: 12px;
  color: var(--tx3);
}
.jl-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: white;
}
.jl-project-table {
  border-collapse: collapse;
  min-width: 900px;
  width: 100%;
}
.jl-project-table th,
.jl-project-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--bd);
}
.jl-project-table th {
  background: #f7f9fa;
  font-weight: 600;
}
.jl-project-table button {
  color: var(--p);
  background: white;
  border: 1px solid var(--bd);
  border-radius: 7px;
  padding: 5px 12px;
  cursor: pointer;
}
.jl-compact-projects {
  display: grid;
  gap: 10px;
}
.jl-compact-projects .project-row {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) 120px 120px 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 18px;
  background: white;
  border: 1px solid var(--bd);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
}
.project-row strong {
  font-size: 15px;
  color: var(--tx);
  overflow-wrap: anywhere;
}
.project-row span {
  color: var(--tx2);
}
.jl-meeting-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 160px);
  min-height: 640px;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: white;
}
.jl-meeting-legacy {
  margin-top: 20px;
}
.jl-theme-picker {
  width: 100px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  color: var(--tx2);
  background: white;
  padding: 4px 8px;
}
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 194px minmax(0, 1fr);
  }
  .content {
    padding: 20px;
  }
  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top .h span {
    display: none;
  }
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .side {
    position: relative;
    height: auto;
    padding: 12px 0;
  }
  .side .logo,
  .side .me {
    display: none;
  }
  .side nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 8px;
  }
  .side nav button {
    width: auto;
    margin: 0;
    padding: 8px 10px;
    font-size: 12px;
  }
  .content {
    padding: 14px;
  }
  .top {
    position: relative;
    padding: 12px 14px;
    flex-wrap: wrap;
  }
  .wx-badge {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
  }
  .stat-row,
  .jl-project-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat {
    padding: 14px;
  }
  #p-mine > div[style*="justify-content:space-between"],
  #p-proj > div[style*="justify-content:space-between"] {
    flex-wrap: wrap;
  }
  #p-proj > div > div {
    max-width: 100%;
    flex-wrap: wrap;
  }
  #projSearch {
    max-width: 100%;
  }
  .jl-compact-projects .project-row {
    grid-template-columns: minmax(0, 1fr) 90px;
  }
  .jl-meeting-frame {
    min-height: 720px;
  }
  #stuGrid {
    min-width: 0;
    overflow-x: auto;
  }
  .pv {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

.act-bar {
  flex-wrap: wrap;
  gap: 12px;
}
.act-bar .right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.act-bar button {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .act-bar .left {
    flex-basis: 100%;
  }
  .act-bar .right {
    width: 100%;
  }
  .act-bar .right button {
    flex: 1 1 auto;
    padding: 8px 10px;
  }
}
