/* Soft monochrome workspace, adapted from the selected motion reference. */
:root {
  --bg: #e4e8ef;
  --surface: #f7f8fb;
  --surface-soft: #edf0f5;
  --surface-strong: #e0e5ed;
  --text: #191c22;
  --text-soft: #58606c;
  --text-faint: #707987;
  --primary: #17191e;
  --primary-hover: #353941;
  --primary-soft: #e0e6f1;
  --brand-accent-100: #cbd4e3;
  --border: rgb(78 92 118 / 12%);
  --border-strong: #cbd1db;
  --chrome-surface: #e4e8ef;
  --chrome-surface-translucent: rgb(228 232 239 / 95%);
  --chrome-text: var(--text);
  --chrome-muted: var(--text-soft);
  --chrome-faint: var(--text-faint);
  --chrome-border: var(--border);
  --chrome-border-strong: var(--border-strong);
  --chrome-hover: #f4f6fa;
  --radius: 30px;
  --shadow: 0 8px 24px rgb(61 76 103 / 3%);
  --header-height: 78px;
}
:root[data-theme="dark"] {
  --bg: #1c2028;
  --surface: #292e38;
  --surface-soft: #313845;
  --surface-strong: #3c4554;
  --text: #f2f4f8;
  --text-soft: #c2cad6;
  --text-faint: #a2adbd;
  --primary: #e4e9f3;
  --primary-hover: #fff;
  --primary-soft: #3a4353;
  --brand-accent-100: #536079;
  --border: rgb(200 212 231 / 12%);
  --border-strong: #505d70;
  --chrome-surface: #1c2028;
  --chrome-surface-translucent: rgb(28 32 40 / 95%);
  --chrome-text: var(--text);
  --chrome-muted: var(--text-soft);
  --chrome-faint: var(--text-faint);
  --chrome-border: var(--border);
  --chrome-border-strong: var(--border-strong);
  --chrome-hover: var(--surface);
  --shadow: 0 8px 24px rgb(0 0 0 / 5%);
}
body { background: var(--bg); }
html { scrollbar-gutter: auto; }
html, .sidebar-scroll { scrollbar-width: none; }
html::-webkit-scrollbar, .sidebar-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sidebar { border: 0; padding: 0 10px 10px; }
.brand { padding-inline: 10px; border: 0; }
.brand-mark { border-radius: 50%; }
.sidebar .brand-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border: 0;
  border-radius: 0;
  background: var(--text);
  mask: url('/assets/aevomorph-mark.png') center / contain no-repeat;
  -webkit-mask: url('/assets/aevomorph-mark.png') center / contain no-repeat;
}
.sidebar .brand-mark img { visibility: hidden; }
.sidebar-scroll { padding-inline: 0; }
.nav-group + .nav-group { margin-top: 24px; }
.nav-label { font-weight: 500; }
.nav-link { min-height: 44px; padding-inline: 16px; border-radius: 99px; }
.nav-link.active { background: #17191e; color: #fff; }
:root[data-theme="dark"] .nav-link.active { background: #edf1f8; color: #17191e; }
.sidebar-footer { border: 0; padding-inline: 0; }
.sidebar .sidebar-collapse { border-radius: 99px; justify-content: center; }
.topbar { border: 0; gap: 12px; padding-inline: 28px; }
.topbar > .btn-icon, .topbar > .btn-ghost { color: var(--chrome-text); }
.topbar .btn-icon { width: 40px; height: 40px; }
.search-trigger { background: var(--surface); border-color: transparent; min-height: 42px; }
.search-trigger kbd { border-radius: 8px; background: transparent; }
.header-user, .avatar { border-radius: 99px; }
.avatar { color: var(--text); background: var(--surface); width: 38px; height: 38px; }
.content { padding-top: 28px; }
.page-head { margin-bottom: 28px; align-items: center; }
.page-head h1 { font-size: 27px; font-weight: 650; }
.page-head p { margin-top: 6px; font-size: 12px; }
.page-icon { color: var(--text); }
.workspace-focus { border: 0; font-weight: 500; padding: 3px 10px; margin-bottom: 7px; }
.btn { border-radius: 99px; padding-inline: 17px; min-height: 39px; font-weight: 550; white-space: nowrap; }
.btn-icon { padding: 0; }
.btn-primary { background: #17191e; border-color: #17191e; color: #fff; }
.btn-primary:hover { background: #343942; color: #fff; }
:root[data-theme="dark"] .btn-primary { background: #edf1f8; color: #17191e; border-color: #edf1f8; }
:root[data-theme="dark"] .btn-primary:hover { background: #cdd7e6; }
.btn:active { transform: scale(.98); }
.card { border: 0; box-shadow: none; overflow: hidden; }
.card-head { padding: 22px 24px; border-color: var(--border); }
.card-head h2 { font-weight: 600; }
.card-body { padding: 24px; }
.metrics-grid { gap: 18px; }
.metric-card { min-height: 151px; padding: 22px; border: 0; box-shadow: none; border-radius: 28px; }
.metric-label { font-size: 12px; font-weight: 500; }
.metric-value { font-size: 36px; font-weight: 600; margin-top: 17px; }
.metric-detail { margin-top: 10px; font-size: 10.5px; }
.metric-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 50%; background: var(--surface-soft); color: var(--text-soft); }
.metric-icon .icon { width: 20px; height: 20px; }
.metric-card:hover { background: var(--chrome-hover); transform: translateY(-2px); }
.input, .select, .textarea { border-radius: 15px; background: var(--surface); }
.toolbar { background: transparent; }
.data-table th { background: var(--surface-soft); font-weight: 500; }
.data-table td { padding-block: 17px; }
.badge { font-weight: 500; padding: 5px 10px; }
.popover { border-radius: 24px; padding: 5px; box-shadow: 0 18px 50px rgb(34 43 60 / 15%); }
.popover-item { border-radius: 18px; }
.modal { border-radius: 28px; background: var(--surface); }
.modal-header, .modal-footer { border-color: var(--border); }
.modal-footer { flex-wrap: wrap; }
.modal-footer .btn { padding-inline: 12px; }
.empty-state { padding-block: 42px; }
.empty-icon { border-radius: 50%; background: var(--surface-soft); }
.workspace-link, .alert { border-radius: 19px; }
.pipeline-track { background: var(--surface-strong); }
.pipeline-bar { background: #a7b8d5; }
.login-context { background: #dbe2ed; color: #191c22; }
.login-context::before, .login-context::after { display: none; }
.login-context p, .login-context .login-points { color: #58606c; }
.login-panel { background: var(--surface); }
.task-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 28px; }
.task-lane { min-width: 0; }
.task-lane-head { min-height: 46px; border: 1px solid var(--border-strong); border-radius: 99px; display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; margin-bottom: 18px; gap: 12px; }
.task-lane-head h2 { margin: 0; font-size: 12px; font-weight: 550; }
.task-lane-count { font-size: 11px; color: var(--text-soft); }
.task-tile { display: flex; flex-direction: column; gap: 12px; border-radius: 28px; padding: 20px; margin-bottom: 14px; background: var(--surface); transition: transform 180ms ease,background 180ms ease; }
.task-tile:hover { transform: translateY(-2px); background: var(--chrome-hover); }
.task-tile-title { font-size: 13px; font-weight: 600; }
.task-tile-meta { color: var(--text-soft); font-size: 10.5px; }
.task-tile-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-lane-empty { min-height: 165px; padding: 28px 18px; border-radius: 28px; background: var(--surface); color: var(--text-faint); display: grid; place-content: center; text-align: center; font-size: 11px; gap: 8px; }
.task-lane-empty strong { color: var(--text-soft); font-weight: 500; }
@media (max-width: 1180px) and (min-width: 721px) {
  .search-trigger { width: 40px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
}
@media (max-width: 980px) {
  .sidebar { border-radius: 28px 0 0 28px; }
  .task-board { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .topbar { padding-inline: 12px; gap: 8px; }
  .search-trigger { padding: 0; width: 40px; flex: 0 0 40px; }
  .page-head { align-items: stretch; }
  .page-head h1 { font-size: 23px; }
  .metrics-grid[style] { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .metric-card { min-height: 145px; padding: 17px; }
  .card-head, .card-body { padding: 18px; }
  .task-board { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 450px) {
  .metrics-grid[style] { grid-template-columns: 1fr !important; }
  .metric-card { min-height: 100px; }
  .metric-value { margin-top: 0; }
}
