@charset "UTF-8";

/* MOLI design foundation: a neutral canvas, calm hierarchy, and one accent. */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-secondary: #f0f1f2;
  --surface-glass: rgba(250, 250, 252, 0.86);
  --text: #222426;
  --muted: #6b6e73;
  --tertiary: #82858a;
  --line: #e5e6e8;
  --line-strong: #d5d7da;
  --accent: #326953;
  --accent-hover: #285842;
  --accent-light: #eaf2ed;
  --danger: #a54334;
  --danger-light: #fbefec;
  --warning: #916220;
  --warning-light: #faf2e4;
  --radius: 20px;
  --radius-control: 11px;
  --shadow-card: 0 2px 8px rgb(24 31 28 / 3%);
  --shadow-float: 0 16px 48px rgb(24 31 28 / 10%);
  --sidebar-width: 236px;
  --topbar-height: 72px;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--topbar-height) + 24px);
}
body {
  margin: 0;
  background: var(--bg);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #8aac9b;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #32695324;
  outline-offset: 1px;
  border-color: var(--accent);
}
input::placeholder,
textarea::placeholder {
  color: var(--tertiary);
  opacity: 1;
}
input,
select,
textarea {
  accent-color: var(--accent);
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -1.1px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.35px;
  font-weight: 630;
}
h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}
h4 {
  font-size: 14px;
  font-weight: 600;
}
small {
  font-size: 12px;
}
strong {
  font-weight: 620;
}
.muted {
  color: var(--muted);
}
.danger {
  color: var(--danger) !important;
}

/* Workspace chrome */
.sidebar {
  overflow-y: auto;
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 28px 16px 20px;
  background: var(--surface-glass);
  border-right: 1px solid #dedfe3;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  font-size: 22px;
  letter-spacing: -0.8px;
  font-weight: 720;
}
.brand em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(150deg, #467e65, #2d5a46);
  box-shadow:
    inset 0 1px 1px #ffffff3b,
    0 3px 7px #20453116;
  font:
    700 31px/1 Georgia,
    serif;
  letter-spacing: -2px;
  padding: 0 2px 5px 0;
  flex-shrink: 0;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 12px 25px;
  font-size: 12px;
  color: var(--muted);
}
.workspace-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6a8c77;
  flex-shrink: 0;
}
.workspace-label > span:not(.workspace-dot) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.nav-section-label {
  padding: 18px 12px 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--tertiary);
}
.nav-section-label:first-child {
  padding-top: 0;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 13px;
  color: #62666b;
  border-radius: var(--radius-control);
  transition:
    background 0.16s,
    color 0.16s;
}
.sidebar nav a:hover {
  background: #e9eaed;
  color: var(--text);
}
.sidebar nav a.active {
  color: var(--accent);
  background: #e5ece7;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #ffffff60;
}
.sidebar nav a small {
  margin-left: auto;
  padding: 0 6px;
  min-width: 21px;
  text-align: center;
  background: #d5e1d9;
  border-radius: 6px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.local-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  padding: 12px 10px;
}
.local-label > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7b9683;
}
.local-label b {
  margin-left: auto;
  font-size: 10px;
  font-weight: 400;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 13px 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e5eae6;
  color: #486552;
  font-size: 14px;
  font-weight: 550;
  box-shadow: inset 0 0 0 1px #00000004;
}
.profile b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.switch {
  margin-left: auto;
  color: var(--muted);
}
main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-height);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #e2e3e6b3;
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  min-width: 0;
}
.breadcrumb span {
  color: var(--tertiary);
  font-weight: 400;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #e2e3e6;
  background: #ededf080;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
}
.global-search kbd {
  font: inherit;
  font-size: 10px;
  background: #ffffffb0;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 22px;
  color: var(--tertiary);
}
.demo-pill {
  color: #677564;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e8ece7;
  white-space: nowrap;
}
.page-content {
  max-width: 1540px;
  margin: auto;
  padding: 40px 40px 64px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.eyebrow {
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.15px;
  margin-bottom: 9px;
}
.page-heading p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 9px;
}
.page-heading p strong {
  color: var(--text);
}
.heading-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

/* Shared controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius-control);
  color: #4b5054;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  box-shadow: 0 1px 2px #18221c05;
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
.btn:hover {
  border-color: #bbc4be;
  background: #f9faf9;
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}
.btn.primary {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 #ffffff17,
    0 2px 4px #244c3810;
}
.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn.full {
  width: 100%;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 13px;
  padding: 4px 0;
  cursor: pointer;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 8px;
  font-size: 12px;
  border-radius: 8px;
}
.link-btn:hover {
  background: var(--accent-light);
}
.filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.pill {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  min-height: 40px;
}
.pill.selected {
  background: #e4e9e5;
  color: var(--accent);
  font-weight: 600;
}
.search-input {
  background: #ffffffa8;
  border: 1px solid var(--line-strong);
  padding: 10px 13px;
  border-radius: var(--radius-control);
  min-height: 42px;
  width: 245px;
  font-size: 13px;
  color: var(--text);
}
.search-input.wide {
  width: 100%;
  max-width: 480px;
  margin-bottom: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 3px 8px;
  background: #f0f1f3;
  color: #61676e;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge.green {
  color: #436d51;
  background: #eaf2eb;
}
.badge.amber {
  color: #8b682e;
  background: #f7f0e2;
}
.version {
  font-size: 11px;
  background: var(--surface-secondary);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 6px;
}

/* Working surfaces */
.panel,
.project-card,
.metric,
.product-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.panel {
  padding: 25px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.metrics.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric {
  padding: 22px 24px;
}
.metric > span {
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.metric strong small {
  font-size: 12px;
  font-weight: 400;
  color: var(--tertiary);
  margin-left: 8px;
  letter-spacing: 0;
}
.metric .money {
  font-size: 28px;
  margin-top: 15px;
  letter-spacing: -0.7px;
}
.metric p {
  font-size: 11px;
  color: var(--muted);
}
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(270px, 1fr);
  gap: 24px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-head h2 > span:not(.badge) {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-secondary);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.section-head .muted {
  font-size: 12px;
}
.standalone {
  margin: 34px 0 18px;
}
.task-panel {
  padding: 24px 25px 8px;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  border-top: 1px solid var(--line);
  transition: background 0.16s;
}
.task-row:hover {
  background: #f8f9f8;
}
.task-circle {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 1.5px solid #cdd4ce;
  border-radius: 50%;
  flex-shrink: 0;
}
.task-circle.late {
  border-color: #b56d52;
  background: #faeee8;
}
.task-row > div {
  flex: 1;
  min-width: 0;
}
.task-row b {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
.task-row p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.task-person,
.due {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.task-row > svg {
  color: #949b96;
}
.focus-panel {
  padding: 26px;
  border: 1px solid #dee5df;
  border-radius: var(--radius);
  background: linear-gradient(155deg, #eef3ef, #f5f6f2);
}
.focus-panel .eyebrow {
  color: #688271;
  font-size: 10px;
}
.focus-panel h2 {
  font-size: 23px;
  font-weight: 550;
  line-height: 1.5;
  color: #354b3c;
  letter-spacing: -0.6px;
}
.focus-panel > p {
  margin-top: 8px;
  color: #657268;
  font-size: 13px;
}
.focus-rule {
  height: 1px;
  background: #dce4dc;
  margin: 22px 0 4px;
}
.focus-panel > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid #dfe5df;
}
.focus-panel > a:last-child {
  border: 0;
}
.focus-panel a > div {
  flex: 1;
  min-width: 0;
}
.focus-panel a b {
  font-size: 14px;
  font-weight: 550;
}
.focus-panel a p {
  color: #64796a;
  font-size: 12px;
  margin-top: 4px;
}
.focus-panel a > svg {
  color: #6b8674;
}
.risk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b4864f;
  align-self: flex-start;
  margin-top: 8px;
  flex-shrink: 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  display: block;
  padding: 24px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.project-card:hover {
  border-color: #c3cfc6;
  box-shadow: 0 6px 22px #283e3009;
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.project-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #eef2ef;
  color: #6c8774;
}
.project-card h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.project-card p {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-card p span {
  margin: 0 4px;
  color: #a2aaa5;
}
.project-progress {
  height: 3px;
  margin: 25px 0 16px;
  background: #ecefeb;
  border-radius: 3px;
  overflow: hidden;
}
.project-progress span {
  display: block;
  height: 100%;
  background: #9ab2a2;
  border-radius: 3px;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.card-foot > span:last-child {
  display: flex;
  align-items: center;
  gap: 4px;
}
.customer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.customer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.customer-head > div {
  flex: 1;
  min-width: 0;
}
.customer-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.customer-head h3 {
  font-size: 16px;
}
.customer-project {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.customer-project > span:first-of-type {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.customer-project > svg {
  color: #7c8c81;
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-tile {
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: var(--text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.product-tile:hover {
  border-color: #bdc9c0;
  box-shadow: 0 6px 22px #283e3009;
}
.product-image {
  aspect-ratio: 1.15;
  position: relative;
  background: #eaeceb;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-tile:hover img {
  transform: scale(1.035);
}
.product-image > span {
  position: absolute;
  left: 13px;
  bottom: 13px;
  background: #ffffffcf;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 10px;
  color: #555d56;
  backdrop-filter: blur(8px);
}
.product-info {
  padding: 18px;
}
.product-info > small {
  font-size: 11px;
  color: var(--muted);
}
.product-info h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 16px;
  margin-top: 7px;
}
.product-info h3 > span {
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
.product-info h3 small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.product-info > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 17px;
}
.no-image {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #8c9a90;
}
.no-image > span {
  font-size: 12px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  padding: 13px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: #f7f8f9;
  white-space: nowrap;
}
td {
  padding: 17px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
td a:hover {
  color: var(--accent);
}
tr:last-child td {
  border-bottom: 0;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.summary-row:last-child {
  border: 0;
}
.summary-row > span {
  color: var(--muted);
}
.summary-row b {
  font-size: 14px;
  font-weight: 550;
}
.summary-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.channel-section {
  margin-top: 24px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.team-card > p {
  color: var(--muted);
  font-size: 12px;
}
.team-card > p strong {
  color: var(--text);
  font-size: 25px;
  font-weight: 550;
  margin-right: 5px;
}
.small-task {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  margin-top: 8px;
  font-size: 13px;
}
.small-task span {
  color: var(--muted);
  white-space: nowrap;
}

/* Project detail */
.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  min-height: 30px;
}
.back-link:hover {
  color: var(--accent);
}
.project-context {
  display: flex;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin: -10px 0 24px;
  color: var(--muted);
  font-size: 12px;
}
.project-context > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.next-step {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #edf3ee;
  border: 1px solid #dce7df;
  border-radius: 16px;
  padding: 21px 24px;
  margin-bottom: 28px;
}
.next-step > div {
  flex: 1;
  min-width: 0;
}
.next-step small {
  font-size: 11px;
  color: #64816d;
}
.next-step h3 {
  font-size: 16px;
  color: #38553f;
  margin-top: 3px;
}
.next-step p {
  font-size: 13px;
  color: #627b68;
  margin-top: 4px;
}
.next-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #60816c;
  background: #ffffffd9;
}
.tabs {
  display: flex;
  gap: 28px;
  overflow: auto;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 26px;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.tab.selected {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(265px, 1fr);
  gap: 24px;
}
.stacked {
  margin-top: 22px;
}
.timeline {
  padding-top: 10px;
}
.event {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 0 0 29px;
  position: relative;
}
.event:before {
  position: absolute;
  content: "";
  width: 1px;
  top: 28px;
  bottom: 0;
  background: var(--line);
  left: 15px;
}
.event:last-child:before {
  display: none;
}
.event-dot {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #f1f3f1;
  color: #7b9081;
  flex-shrink: 0;
  z-index: 1;
}
.event-dot.green {
  background: var(--accent-light);
  color: #548060;
}
.event h4 {
  font-size: 14px;
  font-weight: 550;
  padding-top: 4px;
}
.event p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.event small {
  display: block;
  color: var(--tertiary);
  font-size: 12px;
  margin-top: 8px;
}
.mini-task {
  display: flex;
  gap: 11px;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.mini-task .task-circle {
  margin-top: 3px;
  width: 14px;
  height: 14px;
}
.mini-task b {
  font-size: 13px;
  font-weight: 550;
}
.mini-task small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.space-panel {
  margin-bottom: 18px;
}
.space-empty {
  padding: 16px 0;
  font-size: 13px;
}
.material-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.material-row > img {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  object-fit: cover;
}
.material-row > div {
  flex: 1;
  min-width: 0;
}
.material-row p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.material-row b {
  font-size: 14px;
  font-weight: 550;
}
.material-row > span {
  color: var(--muted);
  font-size: 13px;
}
.two-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.two-grid p {
  margin: 13px 0;
  font-size: 13px;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.asset {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: #fafbfa;
}
.asset img {
  height: 110px;
  width: 100%;
  object-fit: cover;
  border-radius: 7px;
}
.asset b {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.asset small {
  color: var(--muted);
  font-size: 11px;
}
.quote-panel {
  margin-bottom: 18px;
}
.quote-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 12px;
}
.quote-total > span {
  color: var(--muted);
  font-size: 13px;
}
.quote-total > div {
  text-align: right;
}
.quote-total small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.quote-total strong {
  display: block;
  color: var(--accent);
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -0.6px;
  margin-top: 4px;
  white-space: nowrap;
}

/* Dialogs and feedback */
.modal-open {
  overflow: hidden;
}
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #24282d40;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal {
  display: flex;
  flex-direction: column;
  width: min(540px, 100%);
  max-height: 90dvh;
  background: var(--surface);
  border: 1px solid #ffffffbd;
  border-radius: 24px;
  box-shadow: 0 24px 100px #15231a30;
  overflow: hidden;
}
.modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal h2 {
  font-size: 20px;
}
.modal form {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.modal-body {
  padding: 24px 26px;
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
}
.close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #6d7470;
  background: #eff0f2;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}
.close:hover {
  background: #e5e7e8;
}
.modal label,
.auth-form label {
  display: block;
  margin-bottom: 19px;
  color: #555f58;
  font-size: 13px;
  font-weight: 550;
}
.modal input,
.modal select,
.modal textarea,
.auth-form input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 13px;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  color: var(--text);
  background: #fff;
  font-size: 14px;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
.modal input[type="file"] {
  font-size: 12px;
}
.modal textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.65;
}
.modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: #fafafb;
  flex-shrink: 0;
}
.modal-body > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.form-error {
  color: var(--danger);
  font-size: 13px;
}
.form-error:empty {
  display: none;
}
.modal-summary {
  background: var(--accent-light);
  border-radius: 14px;
  padding: 17px 19px;
  margin-bottom: 22px;
  color: #56725f;
  font-size: 13px;
}
.modal-summary strong {
  display: block;
  color: #3e634a;
  font-size: 24px;
  margin-top: 6px;
}
.role-grid {
  display: grid;
  gap: 9px;
}
.role-choice {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: left;
}
.role-choice:hover {
  background: var(--accent-light);
}
.role-choice small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.role-choice b {
  font-size: 14px;
  font-weight: 550;
}
.detail-product-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 15px;
}
.product-spec {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0;
  font-size: 14px;
}
.product-spec span {
  color: var(--muted);
}
.brief-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 13px;
}
.modal h3 {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 22px;
}
.modal h4 {
  margin-bottom: 9px;
  color: #536d5b;
}
.info-note {
  padding: 13px;
  background: #f3f5f3;
  border-radius: 10px;
  font-size: 12px !important;
}
.empty {
  padding: 54px 22px;
  text-align: center;
  color: #839889;
  grid-column: 1 / -1;
}
.empty > svg {
  margin-bottom: 16px;
}
.empty h3 {
  color: #54665a;
  font-size: 17px;
  margin-bottom: 9px;
}
.empty p {
  color: var(--muted);
  font-size: 13px;
  max-width: 430px;
  margin: 0 auto 20px;
}
.empty .btn {
  margin: auto;
}
.boot {
  padding: 100px 24px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 13px 21px;
  border-radius: 14px;
  color: #fff;
  background: #2c4034f5;
  box-shadow: var(--shadow-float);
  z-index: 200;
  font-size: 14px;
  max-width: min(520px, calc(100% - 32px));
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #944333;
}
.mobile-nav,
.mobile-avatar,
.print-identity {
  display: none;
}

/* Authentication uses the same product surfaces and type scale. */
.auth-page {
  margin: 0;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: radial-gradient(ellipse at 50% 25%, #e9efe9 0, #f5f5f7 52%);
}
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 24px;
  letter-spacing: -0.8px;
  font-weight: 700;
  margin-bottom: 32px;
}
.auth-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 37px;
}
.auth-brand em,
.auth-brand b {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
}
.auth-card {
  width: 100%;
  max-width: 430px;
  padding: 35px;
  border: 1px solid #ffffff;
  border-radius: 28px;
  background: #ffffffde;
  box-shadow:
    0 12px 50px #293d3010,
    0 1px 4px #25372c05;
  backdrop-filter: blur(20px);
}
.auth-heading {
  margin-bottom: 28px;
  text-align: center;
}
.auth-heading h1 {
  font-size: 25px;
  letter-spacing: -0.8px;
}
.auth-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 11px;
}
.auth-form input {
  min-height: 48px;
  font-size: 16px;
}
.auth-form .btn {
  min-height: 48px;
  font-size: 15px;
  margin-top: 7px;
}
.auth-error {
  background: var(--danger-light);
  border-radius: 10px;
  color: var(--danger);
  font-size: 13px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.auth-error:empty {
  display: none;
}
.auth-caption {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
  margin-top: 22px;
}
.auth-version {
  margin-top: 30px;
  color: var(--tertiary);
  font-size: 11px;
  letter-spacing: 0.3px;
}
.account-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 0 23px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.account-summary .avatar {
  width: 58px;
  height: 58px;
  font-size: 21px;
  margin-bottom: 8px;
}
.account-summary h3 {
  margin: 0;
  font-size: 20px;
}
.account-summary p,
.account-summary small {
  color: var(--muted);
  font-size: 13px;
}
.account-actions {
  display: grid;
  gap: 12px;
}

@media (max-width: 1200px) {
  :root {
    --sidebar-width: 208px;
  }
  .sidebar {
    padding: 25px 12px 18px;
  }
  .page-content {
    padding: 32px 28px 56px;
  }
  .topbar {
    padding: 0 28px;
  }
  .metric {
    padding: 20px;
  }
  .metric .money {
    font-size: 23px;
  }
  .home-columns {
    grid-template-columns: minmax(0, 1.6fr) minmax(235px, 1fr);
    gap: 20px;
  }
  .task-person {
    display: none;
  }
  .task-row p {
    max-width: 235px;
  }
  .focus-panel {
    padding: 22px;
  }
  .project-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-columns {
    grid-template-columns: minmax(0, 1.5fr) minmax(235px, 1fr);
    gap: 20px;
  }
}
@media (max-width: 1000px) and (min-width: 801px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-columns,
  .detail-columns {
    grid-template-columns: 1fr;
  }
  .focus-panel h2 {
    font-size: 20px;
  }
  .focus-panel > a {
    display: inline-flex;
    width: calc(50% - 12px);
    vertical-align: top;
    margin-right: 12px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .global-search kbd {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
  }
}
@media (max-width: 800px) {
  :root {
    --topbar-height: 60px;
    --radius: 20px;
  }
  .sidebar {
    display: none;
  }
  main {
    margin: 0;
  }
  .topbar {
    height: calc(var(--topbar-height) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 18px 0;
    gap: 10px;
  }
  .breadcrumb {
    font-size: 13px;
    gap: 8px;
    white-space: nowrap;
  }
  .breadcrumb .workspace-crumb {
    display: none;
  }
  .global-search {
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 50%;
    background: #eceef0a6;
  }
  .global-search span,
  .global-search kbd {
    display: none;
  }
  .demo-pill {
    font-size: 10px;
    padding: 3px 6px;
  }
  .mobile-avatar {
    display: grid;
    place-items: center;
    min-width: 44px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #e4ebe5;
    color: #4a6753;
    font-weight: 600;
  }
  .page-content {
    padding: 27px 18px calc(105px + env(safe-area-inset-bottom, 0px));
  }
  h1 {
    font-size: 29px;
    letter-spacing: -0.9px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 25px;
    flex-wrap: wrap;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 8px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .heading-actions,
  .actions {
    flex-wrap: wrap;
  }
  .btn,
  .pill,
  .tab,
  .link-btn {
    min-height: 44px;
  }
  .btn {
    font-size: 14px;
    padding: 10px 14px;
  }
  .heading-actions .btn {
    font-size: 13px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
  }
  .metric {
    padding: 18px;
  }
  .metric strong {
    font-size: 30px;
    margin: 8px 0;
  }
  .metric .money {
    font-size: 23px;
  }
  .metric p {
    font-size: 11px;
  }
  .metrics.three {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
  }
  .metrics.three .metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 20px;
  }
  .metrics.three .metric + .metric {
    border-top: 1px solid var(--line);
  }
  .metrics.three .metric .money {
    margin: 0;
    font-size: 24px;
  }
  .home-columns,
  .detail-columns,
  .customer-list,
  .two-grid {
    grid-template-columns: 1fr;
  }
  .focus-panel {
    display: none;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .project-card {
    padding: 20px;
  }
  .card-foot {
    flex-wrap: wrap;
    font-size: 12px;
  }
  .task-panel {
    padding: 20px 20px 8px;
  }
  .task-row p {
    max-width: 300px;
  }
  .task-row {
    min-height: 84px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .panel {
    padding: 21px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .catalog-toolbar {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
  }
  .catalog-toolbar > .search-input,
  .filterbar > .search-input {
    width: 100%;
  }
  .search-input {
    min-height: 46px;
    font-size: 16px;
  }
  .product-info {
    padding: 15px;
  }
  .product-info h3 {
    display: block;
    font-size: 16px;
  }
  .product-info h3 > span {
    display: block;
    margin-top: 5px;
    font-size: 14px;
  }
  .product-info > small {
    font-size: 11px;
  }
  .product-info > p {
    margin-top: 13px;
    font-size: 12px;
  }
  .product-image {
    aspect-ratio: 1;
  }
  .project-context {
    gap: 11px 16px;
  }
  .next-step {
    padding: 18px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .next-icon {
    display: none;
  }
  .next-step h3 {
    font-size: 15px;
  }
  .next-step p {
    font-size: 13px;
  }
  .tabs {
    gap: 24px;
  }
  .tab {
    font-size: 13px;
  }
  .material-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .material-row > div {
    min-width: 110px;
  }
  .material-row .link-btn {
    font-size: 13px;
  }
  .asset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .empty {
    padding: 38px 14px;
  }
  .quote-total {
    flex-wrap: wrap;
  }
  .quote-total > div {
    margin-left: auto;
  }
  .mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #dadde0b8;
    background: #fafbfcdf;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 -5px 24px #26332a03;
    z-index: 40;
  }
  .mobile-nav > a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    min-width: 64px;
    min-height: 54px;
    padding: 6px 18px;
    border-radius: 16px;
    color: #72797c;
    font-size: 11px;
  }
  .mobile-nav > a.active {
    color: var(--accent);
    background: #e6eee880;
    font-weight: 600;
  }
  #toast {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .auth-page {
    padding: 34px 22px;
  }
  .auth-card {
    padding: 28px 25px;
    border-radius: 24px;
  }
  .auth-heading h1 {
    font-size: 24px;
  }
}
@media (max-width: 430px) {
  .project-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .card-foot {
    flex-wrap: nowrap;
    font-size: 11px;
  }
  .task-row p {
    max-width: 176px;
  }
  .due {
    font-size: 11px;
  }
  .task-row > svg {
    display: none;
  }
  .product-info {
    padding: 13px;
  }
  .customer-head {
    gap: 10px;
  }
  .customer-head .btn {
    font-size: 12px;
    padding: 9px 10px;
  }
  .customer-head p {
    font-size: 12px;
  }
  .customer-project {
    font-size: 13px;
    gap: 8px;
  }
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .next-step > div {
    flex-basis: 100%;
  }
  .filterbar {
    gap: 14px;
  }
  .pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .pill {
    flex-shrink: 0;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (prefers-contrast: more) {
  :root {
    --muted: #50545a;
    --tertiary: #5c6064;
    --line: #b8bdba;
    --line-strong: #a5ada8;
  }
}
@media print {
  body {
    background: #fff;
  }
  .sidebar,
  .topbar,
  .mobile-nav,
  .back-link,
  .page-heading,
  .project-context,
  .next-step,
  .tabs,
  .section-head.standalone,
  .stacked,
  .btn,
  #toast {
    display: none !important;
  }
  main {
    margin: 0;
  }
  .page-content {
    padding: 0;
  }
  .quote-panel {
    display: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .quote-panel.print-target {
    display: block;
  }
  .quote-panel .section-head {
    display: flex;
  }
  .quote-panel table {
    font-size: 11px;
  }
  .quote-total strong {
    color: #222;
  }
  .table-scroll {
    overflow: visible;
  }
  .quote-panel th,
  .quote-panel td {
    white-space: normal;
  }
  .quote-panel .badge {
    display: none;
  }
  .print-identity {
    display: block;
    margin-bottom: 24px;
  }
  .print-identity p {
    font-size: 12px;
    margin-top: 7px;
  }
  .print-identity h2 {
    font-size: 20px;
  }
}

.auth-error.is-notice {
  color: var(--muted);
  background: var(--surface-secondary);
}
