:root {
  color-scheme: dark;
  --bg: #24211f;
  --panel: rgba(43, 42, 41, 0.93);
  --surface: #353432;
  --line: #514c47;
  --text: #f5f3ef;
  --muted: #b8b3ad;
  --orange: #ff7b35;
  --green: #75d8a5;
  --red: #ff9b9b;
  --radius: 22px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 0 100%, #7e5944 0, transparent 42%),
    radial-gradient(ellipse at 95% 0, #7b5f49 0, transparent 40%), #282522;
  color: var(--text);
  background-attachment: fixed;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  min-height: 40px;
  transition:
    background 0.16s,
    transform 0.16s;
}
button:hover {
  background: #48423c;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #23170f;
  font-weight: 700;
}
.primary:hover {
  background: #ff995f;
}
.danger {
  color: var(--red);
}
.quiet {
  background: transparent;
}
.small {
  font-size: 12px;
  padding: 6px 10px;
  min-height: 32px;
}
a {
  color: var(--orange);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 17px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.6;
}
.muted,
small {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--orange);
}
.boot {
  padding: 80px;
  text-align: center;
}
.shell {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 286px;
  gap: 16px;
  max-width: 1760px;
  margin: auto;
  padding: 24px;
  min-height: 100vh;
}
.rail,
.workspace,
.aside {
  background: var(--panel);
  border: 1px solid #ffffff12;
  border-radius: var(--radius);
  box-shadow: 0 18px 65px #00000026;
  backdrop-filter: blur(16px);
}
.rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 8px;
  gap: 8px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  overflow-y: auto;
}
.brand-icon {
  width: 46px;
  height: 46px;
  background: var(--orange);
  color: #221912;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 850;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.navbtn {
  position: relative;
  width: 66px;
  min-height: 58px;
  background: transparent;
  border-color: transparent;
  padding: 7px 2px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: #c7c1ba;
}
.navbtn svg {
  width: 20px;
  height: 20px;
}
.navbtn span {
  font-size: 9px;
}
.navbtn.active {
  background: var(--orange);
  color: #23170f;
}
.rail-bottom {
  margin-top: auto;
  padding-top: 16px;
}
.workspace {
  padding: 28px;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}
.topbar small {
  display: block;
  margin-top: 7px;
}
.searchbox {
  position: relative;
  max-width: 300px;
  flex: 1;
}
.searchbox input {
  background: #201f20;
  border-color: #ffffff0b;
  border-radius: 30px;
  padding-left: 16px;
}
.search-results {
  position: absolute;
  top: 48px;
  right: 0;
  width: 360px;
  background: #292725;
  border: 1px solid var(--line);
  z-index: 5;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 40px #0008;
}
.search-results button {
  display: block;
  text-align: left;
  width: 100%;
  background: transparent;
  border: 0;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.page-head p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.metric {
  background: #f8f7f5;
  color: #272624;
  padding: 19px 17px;
  border-radius: 15px;
  min-width: 0;
  border-top: 3px solid var(--orange);
}
.metric:nth-child(2) {
  border-top-color: #ee91a3;
}
.metric:nth-child(3) {
  border-top-color: #74bf9e;
}
.metric:nth-child(4) {
  border-top-color: #7ca9d9;
}
.metric .label {
  font-size: 11px;
  font-weight: 600;
  color: #66625e;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.metric strong {
  display: block;
  font-size: 25px;
  margin: 12px 0 8px;
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
}
.metric small {
  font-size: 10px;
  color: #6d6a65;
}
.metric:nth-child(3) strong {
  color: #238558;
}
.metric:nth-child(4) strong {
  color: #407aad;
}
.section {
  margin-top: 25px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.light-panel {
  background: #f8f7f5;
  color: #292624;
  border-radius: 16px;
  padding: 21px;
  margin-bottom: 22px;
}
.light-panel small {
  color: #726d67;
}
.pipeline-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.pipeline-bar {
  padding: 12px;
  background: #eeedeb;
  border-radius: 8px;
}
.pipeline-bar strong {
  display: block;
  font-size: 21px;
  margin: 10px 0;
}
.bar {
  height: 4px;
  background: #d4d0ca;
  border-radius: 4px;
  overflow: hidden;
}
.bar i {
  display: block;
  background: var(--orange);
  height: 100%;
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.list-item .grow {
  flex: 1;
  min-width: 0;
}
.list-item small {
  display: block;
  margin-top: 4px;
}
.avatar {
  height: 36px;
  width: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #55483e;
  color: #ffc498;
  display: grid;
  place-items: center;
  font-weight: 650;
}
.aside {
  padding: 22px;
  min-width: 0;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  overflow-y: auto;
}
.profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.profile .avatar {
  background: #715947;
  border-radius: 50%;
  height: 44px;
  width: 44px;
}
.profile small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
  margin: 20px 0;
}
.mini-stats strong {
  display: block;
  font-size: 17px;
}
.mini-stats small {
  font-size: 9px;
}
.calendar {
  margin: 24px 0;
}
.calendar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.calendar-title strong {
  font-size: 12px;
}
.calendar-title button {
  padding: 4px 8px;
  min-height: 28px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}
.calendar-grid span {
  font-size: 10px;
  padding: 7px 0;
  color: #c2bdb7;
  border-radius: 50%;
}
.calendar-grid .dayname {
  font-size: 9px;
  color: #98928c;
}
.calendar-grid .today {
  background: var(--orange);
  color: #24180e;
  font-weight: 700;
}
.calendar-grid .has-task {
  box-shadow: inset 0 -3px #75d8a5;
}
.schedule-item {
  background: #3a3836;
  border-radius: 12px;
  padding: 13px;
  margin-top: 10px;
  font-size: 12px;
  border-left: 3px solid var(--orange);
}
.schedule-item small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
}
.aside-footer {
  margin-top: 25px;
  color: #aaa49d;
  font-size: 10px;
  line-height: 1.6;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar input {
  max-width: 280px;
}
.toolbar select {
  max-width: 190px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  color: #c4bdb5;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #34312e;
  font-weight: 600;
}
td,
th {
  padding: 15px 13px;
  border-bottom: 1px solid #ffffff0d;
}
td {
  font-size: 12px;
}
tbody tr:hover {
  background: #ffffff04;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-size: 13px;
}
td small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
.badge {
  display: inline-block;
  border: 1px solid #ffffff1c;
  padding: 5px 8px;
  border-radius: 6px;
  background: #ffffff06;
  color: #d6cdc4;
  font-size: 10px;
}
.badge.good {
  color: #8ae0b5;
  background: #75d8a511;
}
.badge.warn {
  color: #ffc28d;
  background: #ff7b3515;
}
.badge.bad {
  color: #ffaaaa;
  background: #ff9b9b10;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
}
.empty h3 {
  color: var(--text);
  font-size: 17px;
  margin-bottom: 8px;
}
.empty button {
  margin-top: 17px;
}
.kanban {
  display: flex;
  gap: 12px;
  overflow: auto;
  align-items: flex-start;
  padding-bottom: 16px;
}
.column {
  min-width: 210px;
  flex: 1;
  background: #222120;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.column-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}
.column-head small {
  font-size: 10px;
}
.deal-card {
  background: #3b3733;
  border: 1px solid #ffffff0d;
  border-radius: 10px;
  padding: 15px;
  margin-top: 12px;
  cursor: pointer;
}
.deal-card:hover {
  border-color: var(--orange);
}
.deal-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 9px 0;
}
.deal-card strong {
  color: #ffc194;
}
.deal-card select {
  font-size: 10px;
  padding: 6px;
  margin-top: 10px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.detail-panel h2 {
  margin-bottom: 15px;
}
.detail-panel p {
  font-size: 13px;
  margin-bottom: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.timeline {
  border-left: 2px solid #645342;
  margin-left: 5px;
  padding-left: 18px;
}
.timeline-item {
  padding: 0 0 20px;
}
.timeline-item small {
  display: block;
  margin: 5px 0;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.tabs button.active {
  background: var(--orange);
  color: #24180e;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}
.auth {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: 980px;
  margin: 8vh auto;
  border: 1px solid #ffffff18;
  border-radius: 28px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 30px 90px #0005;
}
.auth-story {
  padding: 55px;
  background: linear-gradient(140deg, #45372c, #222220);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 570px;
}
.auth-story h1 {
  font-size: 45px;
  line-height: 1.13;
  margin: 28px 0 20px;
}
.auth-story p {
  color: #cec5bb;
}
.auth-form {
  padding: 50px 38px;
}
.auth-form h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.auth-form form {
  margin-top: 28px;
}
label {
  display: block;
  font-size: 12px;
  color: #d3ccc4;
  margin-bottom: 16px;
}
label span.hint {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: #262422;
  border: 1px solid #60584f;
  color: var(--text);
  padding: 11px 12px;
  border-radius: 9px;
  min-height: 42px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ff7b3555;
  border-color: var(--orange);
}
textarea {
  resize: vertical;
  min-height: 84px;
}
input[type="file"] {
  font-size: 11px;
}
.full {
  width: 100%;
}
.error {
  color: #ffaaaa;
  margin: 10px 0;
  min-height: 20px;
  font-size: 12px;
}
dialog {
  background: #302d2a;
  color: var(--text);
  border: 1px solid #776352;
  border-radius: 20px;
  width: min(740px, calc(100vw - 28px));
  max-height: 90vh;
  padding: 0;
  box-shadow: 0 25px 90px #0009;
}
dialog::backdrop {
  background: #080705a8;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-body {
  padding: 22px 24px;
  overflow: auto;
  max-height: calc(90vh - 155px);
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #302d2a;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.wide {
  grid-column: 1/-1;
}
.items {
  overflow: auto;
}
.itemrow {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 75px 100px 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
  min-width: 405px;
}
.itemrow input {
  margin: 0;
}
.itemrow button {
  padding: 5px;
}
.item-head {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}
.quote-total {
  padding: 15px;
  text-align: right;
  color: #ffc194;
  font-size: 20px;
}
.toast {
  background: #f7f1ea;
  color: #30261d;
  border-left: 4px solid var(--orange);
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 40px #0007;
  margin-top: 8px;
  animation: enter 0.18s ease-out;
}
#toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  max-width: 340px;
}
#view {
  animation: enter 0.18s ease-out;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.report-controls {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.report-controls label {
  max-width: 190px;
}
.progress-row {
  display: grid;
  grid-template-columns: 120px 1fr 90px;
  gap: 12px;
  align-items: center;
  margin-top: 17px;
  font-size: 12px;
}
.progress-row .bar {
  height: 8px;
  background: #4d4640;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.settings-grid section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 23px;
}
.settings-grid h2 {
  margin-bottom: 20px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.auth-note {
  margin-top: 22px;
  font-size: 11px;
}
.mobile-brand {
  display: none;
}
#print-area {
  display: none;
}
.print-sheet {
  background: white;
  color: #242424;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
}
.print-brand {
  display: flex;
  justify-content: space-between;
  border-bottom: 3px solid #e67831;
  padding-bottom: 20px;
  gap: 20px;
}
.print-brand img {
  max-width: 110px;
  max-height: 70px;
  object-fit: contain;
}
.print-sheet h1 {
  font-size: 26px;
  margin: 10px 0;
}
.print-sheet h2 {
  font-size: 18px;
}
.print-sheet small {
  color: #555;
}
.print-sheet p {
  white-space: pre-wrap;
}
.print-meta {
  display: flex;
  justify-content: space-between;
  padding: 25px 0;
  gap: 20px;
}
.print-sheet th {
  background: #f2ebe4;
  color: #473c31;
}
.print-sheet td,
.print-sheet th {
  border-bottom: 1px solid #ddd;
  white-space: normal;
}
.print-totals {
  margin: 25px 0 25px auto;
  width: 260px;
}
.print-totals div {
  display: flex;
  justify-content: space-between;
  padding: 8px;
}
.print-totals .grand {
  background: #f6e9de;
  font-size: 18px;
  font-weight: 700;
}
.print-terms {
  border-top: 1px solid #ddd;
  padding-top: 20px;
}
.print-sheet footer {
  margin-top: 40px;
  color: #555;
  font-size: 10px;
}
.print-preview {
  padding: 25px;
  background: white;
  color: #222;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
}
.print-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.logo-preview {
  max-width: 100px;
  max-height: 60px;
  margin-bottom: 12px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkbox input {
  width: auto;
  min-height: auto;
  margin: 0;
}
.notify-dot {
  height: 7px;
  width: 7px;
  display: inline-block;
  background: var(--orange);
  border-radius: 50%;
  margin-right: 7px;
}
.block-note {
  font-size: 12px;
  padding: 14px;
  border: 1px solid #77604b;
  border-radius: 10px;
  color: #dfc4ad;
  margin-bottom: 16px;
}
@media (min-width: 1500px) {
  .workspace {
    padding: 34px;
  }
  .shell {
    grid-template-columns: 90px minmax(0, 1fr) 300px;
    gap: 20px;
  }
  .metric {
    padding: 22px;
  }
  .metric strong {
    font-size: 30px;
  }
}
@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 16px;
    gap: 12px;
  }
  .aside {
    display: none;
  }
  .rail {
    top: 16px;
    height: calc(100vh - 32px);
  }
  .workspace {
    padding: 24px;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 15px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
    padding: 10px 10px 95px;
  }
  .rail {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 77px;
    border-radius: 16px 16px 0 0;
    flex-direction: row;
    padding: 5px 9px;
    gap: 3px;
    overflow-x: auto;
    z-index: 10;
    justify-content: flex-start;
    background: #242220;
  }
  .rail .brand-icon,
  .rail-bottom {
    display: none;
  }
  .navbtn {
    min-width: 59px;
    width: 59px;
    min-height: 60px;
  }
  .workspace {
    padding: 20px 15px;
    border-radius: 18px;
    min-height: calc(100vh - 110px);
  }
  .topbar {
    flex-wrap: wrap;
    margin-bottom: 25px;
    gap: 15px;
  }
  .topbar h1 {
    font-size: 21px;
  }
  .searchbox {
    max-width: none;
    flex-basis: 100%;
  }
  .search-results {
    width: 100%;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric strong {
    font-size: 24px;
  }
  .split,
  .detail-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .actions {
    gap: 6px;
  }
  .actions button {
    font-size: 11px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .modal-head,
  .modal-body,
  .modal-foot {
    padding-left: 18px;
    padding-right: 18px;
  }
  .auth {
    display: block;
    margin: 20px 12px;
  }
  .auth-story {
    min-height: 0;
    padding: 28px;
  }
  .auth-story h1 {
    font-size: 31px;
    margin: 15px 0;
  }
  .auth-story .auth-tagline {
    display: none;
  }
  .auth-form {
    padding: 30px 25px;
  }
  .progress-row {
    grid-template-columns: 85px 1fr 80px;
  }
  .print-preview {
    padding: 16px;
  }
  .print-meta {
    flex-wrap: wrap;
  }
  .print-toolbar {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  @page {
    size: A4;
    margin: 15mm;
  }
  body {
    background: white;
    color: black;
  }
  #app,
  dialog,
  #toasts {
    display: none !important;
  }
  #print-area {
    display: block !important;
  }
  .print-sheet {
    width: 100%;
  }
  .print-brand {
    break-inside: avoid;
  }
  .print-sheet thead {
    display: table-header-group;
  }
  .print-sheet tr,
  .print-totals,
  .print-terms {
    break-inside: avoid;
  }
  .print-sheet th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
@media (max-width: 700px) {
  .metric strong {
    font-size: 19px;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
  }
  .metric {
    padding: 15px 12px;
  }
  .metric .label {
    font-size: 10px;
  }
}
.print-brand > div:last-child {
  text-align: right;
}
@media print {
  html,
  body {
    color-scheme: light !important;
    background: #fff !important;
    color: #222 !important;
  }
}
/* v1.1: reference composition — narrow icon dock, smoky panes, compact white metrics. */
body {
  background: #7b6b5d url("/backdrop.svg") center/cover fixed no-repeat;
}
.shell {
  grid-template-columns: 64px minmax(0, 1fr) 330px;
  gap: 20px;
  padding: 22px 26px;
  max-width: none;
}
.rail,
.workspace,
.aside {
  background: linear-gradient(
    155deg,
    rgba(53, 51, 54, 0.93),
    rgba(49, 44, 43, 0.72)
  );
  border: 1px solid #e4d5c013;
  box-shadow: 0 8px 28px #20181125;
  backdrop-filter: blur(24px);
  border-radius: 32px;
}
.rail {
  padding: 24px 5px 18px;
  height: calc(100vh - 44px);
  top: 22px;
  gap: 4px;
  overflow: visible;
  justify-content: center;
  border-radius: 32px;
}
.rail .brand-icon {
  position: absolute;
  top: 26px;
  width: 28px;
  height: 28px;
  margin: 0;
  background: none;
  border-radius: 0;
  font-size: 21px;
}
.brand-mark {
  color: #ca7749;
  text-shadow:
    5px 0 #679285,
    -3px 0 #dac173;
  font-size: 17px;
}
.navbtn {
  width: 52px;
  min-height: 42px;
  padding: 9px 0;
  border-radius: 15px;
  color: #c5c0bd;
}
.navbtn span {
  display: none;
}
.navbtn svg {
  width: 21px;
  height: 21px;
}
.navbtn.active {
  background: #ff7734;
  color: #fff;
  box-shadow: 0 6px 18px #fc73234a;
}
.navbtn:hover::after {
  content: attr(title);
  position: absolute;
  left: 64px;
  top: 7px;
  white-space: nowrap;
  background: #17171ce8;
  color: white;
  padding: 7px 13px;
  border-radius: 15px;
  font-size: 11px;
  z-index: 20;
  box-shadow: 0 5px 12px #0003;
}
.rail-bottom {
  position: absolute;
  bottom: 16px;
  margin: 0;
  padding: 0;
}
.rail-bottom button {
  border: 0;
  background: #ff7734;
  color: white;
  border-radius: 50%;
  width: 28px;
  min-height: 28px;
  padding: 4px;
  font-size: 13px;
}
.workspace {
  padding: 28px;
  position: relative;
  min-height: calc(100vh - 44px);
  padding-bottom: 72px;
}
.topbar {
  margin-bottom: 22px;
  gap: 18px;
}
.topbar h1 {
  font-size: 23px;
  letter-spacing: -0.45px;
}
.topbar h1 span {
  font-size: 20px;
}
.topbar small {
  font-size: 11px;
  margin-top: 7px;
  color: #b3aeb0;
}
.searchbox {
  max-width: 310px;
}
.searchbox input {
  font-size: 11px;
  min-height: 38px;
  height: 38px;
  background: #17171e;
  border: 1px solid #454149;
  border-radius: 26px;
  padding: 10px 16px;
  margin: 0;
}
.metrics {
  gap: 12px;
  margin-bottom: 28px;
}
.metric {
  border-top: 0 !important;
  border: 1px solid #ffffff8c;
  background: linear-gradient(125deg, #fff, #f5f5f7);
  border-radius: 16px;
  padding: 17px 16px;
  min-height: 110px;
  box-shadow: 0 3px 12px #14101915;
}
.metric .label {
  font-size: 11px;
  color: #49464b;
}
.metric-symbol {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff0e4;
  color: #d18a50;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.metric:nth-child(2) .metric-symbol {
  color: #d96b8d;
  background: #ffedf3;
}
.metric:nth-child(3) .metric-symbol {
  color: #56b283;
  background: #eaf9f0;
}
.metric:nth-child(4) .metric-symbol {
  color: #5d86ba;
  background: #edf4ff;
}
.metric strong {
  font-size: 25px;
  font-weight: 700;
  color: #c58253;
  margin: 10px 0 7px;
}
.metric:nth-child(2) strong {
  color: #bf6287;
}
.metric:nth-child(3) strong {
  color: #58ac80;
}
.metric:nth-child(4) strong {
  color: #6288b8;
}
.metric small {
  font-size: 10px;
  color: #99959c;
}
.metric:first-child small {
  color: #65ad8a;
}
.is-overview .page-head {
  display: none;
}
.is-overview .split {
  display: none;
}
.is-overview .light-panel {
  padding: 20px 21px 18px;
  border-radius: 19px;
  background: linear-gradient(110deg, #fff, #f6f5f8);
  box-shadow: 0 4px 16px #11101914;
}
.is-overview .light-panel .section-title {
  margin-bottom: 13px;
}
.is-overview .light-panel h2 {
  font-size: 15px;
  color: #45414b;
}
.is-overview .light-panel .section-title > small {
  font-size: 9px;
  color: #97929b;
}
.is-overview .pipeline-bars {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 0;
}
.is-overview .pipeline-bar:nth-child(n + 5) {
  display: none;
}
.is-overview .pipeline-bar {
  padding: 13px 11px;
  background: #eeedf23d;
  border-radius: 9px;
}
.is-overview .pipeline-bar small {
  font-size: 10px;
  color: #aba5b0;
}
.is-overview .pipeline-bar strong {
  font-size: 20px;
  color: #ce8450;
  margin: 8px 0;
}
.is-overview .pipeline-bar:nth-child(2) strong {
  color: #56ae82;
}
.is-overview .pipeline-bar:nth-child(3) strong {
  color: #648ec5;
}
.is-overview .pipeline-bar:nth-child(4) strong {
  color: #cb6b92;
}
.is-overview .bar {
  height: 4px;
  background: #e7e1df;
}
.is-overview .pipeline-bar:nth-child(2) .bar i {
  background: #56ae82;
}
.is-overview .pipeline-bar:nth-child(3) .bar i {
  background: #648ec5;
}
.is-overview .pipeline-bar:nth-child(4) .bar i {
  background: #cb6b92;
}
.workspace-switch {
  position: absolute;
  bottom: 13px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  padding: 3px;
  background: #151b2ad9;
  border-radius: 30px;
  white-space: nowrap;
  font-size: 10px;
  box-shadow: 0 4px 13px #0003;
}
.workspace-switch a {
  color: #eee;
  padding: 7px 12px;
  border-radius: 30px;
}
.workspace-switch a:last-child {
  background: #ff7b35;
  color: #fff;
}
.workspace-switch a:hover {
  text-decoration: none;
  background: #57504a;
}
.aside {
  padding: 22px 20px;
  height: calc(100vh - 44px);
  top: 22px;
  border-radius: 31px;
}
.profile {
  border: 0;
  padding-bottom: 0;
  gap: 10px;
}
.profile .avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(150deg, #c8c3bf, #8b8279);
  color: #41372f;
  border: 3px solid #716962;
  font-size: 12px;
}
.profile strong {
  font-size: 13px;
}
.profile small {
  font-size: 9px;
  color: #aba5a7;
}
.mini-stats {
  padding: 14px 7px;
  background: #ffffff08;
  border: 1px solid #ffffff04;
  border-radius: 15px;
  margin: 21px 0 16px;
}
.mini-stats strong {
  font-size: 16px;
}
.mini-stats small {
  font-size: 9px;
  color: #9c9697;
}
.calendar-surface {
  padding: 16px 13px 13px;
  background: #27252c4a;
  border: 1px solid #ffffff07;
  border-radius: 18px;
  margin-bottom: 18px;
}
.calendar {
  margin: 0;
}
.calendar-title {
  margin-bottom: 10px;
}
.calendar-title strong {
  font-size: 12px;
}
.calendar-title button {
  background: #ffffff04;
  border: 0;
  width: 24px;
  min-height: 24px;
  border-radius: 50%;
  font-size: 12px;
  padding: 3px;
}
.calendar-grid span {
  font-size: 10px;
  padding: 9px 0;
  color: #aca4a8;
}
.calendar-grid .dayname {
  font-size: 9px;
  color: #938b91;
}
.calendar-grid .today {
  color: #fff;
  background: #63b98b;
  box-shadow: 0 2px 10px #65c89835;
}
.calendar-grid .has-task {
  color: #fff;
  background: #ff8750;
  box-shadow: none;
}
.calendar-grid .today.has-task {
  background: #65b98b;
  box-shadow: 0 0 0 2px #ffffff22;
}
.aside .section-title h3 {
  font-size: 13px;
}
.aside .section-title a {
  font-size: 10px;
  color: #aca4a5;
}
.notify-dot {
  height: 14px;
  width: 3px;
  border-radius: 3px;
  margin-right: 7px;
  vertical-align: middle;
  background: #ff8245;
}
.schedule-item {
  padding: 12px;
  background: linear-gradient(135deg, #5650535c, #4c464b3a);
  border: 1px solid #ffffff08;
  border-left: 0;
  border-radius: 16px;
  position: relative;
  padding-right: 66px;
  margin-top: 9px;
  min-height: 66px;
}
.schedule-item strong {
  font-size: 11px;
}
.schedule-item small {
  font-size: 9px;
  color: #a89fa4;
  margin-top: 5px;
}
.schedule-item button {
  position: absolute;
  right: 10px;
  top: 17px;
  border: 0;
  border-radius: 50%;
  font-size: 9px;
  background: #ffffff07;
  color: #c5bbc0;
  min-height: 27px;
  padding: 5px 7px;
}
.aside-footer {
  font-size: 9px;
  color: #a69da0;
  margin-top: 25px;
}
.aside-footer button {
  font-size: 9px;
  min-height: 27px;
  border: 0;
  color: #c4b9b4;
}
@media (min-width: 1500px) {
  .shell {
    grid-template-columns: 68px minmax(0, 1fr) 360px;
    gap: 22px;
    padding: 25px 30px;
  }
  .workspace {
    padding: 30px;
    padding-bottom: 72px;
  }
  .rail,
  .aside {
    height: calc(100vh - 50px);
    top: 25px;
  }
  .workspace {
    min-height: calc(100vh - 50px);
  }
}
@media (min-width: 701px) and (max-height: 750px) {
  .rail .brand-icon {
    top: 14px;
  }
  .navbtn {
    min-height: 29px;
    height: 29px;
    width: 39px;
    border-radius: 11px;
    padding: 5px;
  }
  .navbtn svg {
    width: 17px;
    height: 17px;
  }
  .rail {
    gap: 1px;
  }
  .aside {
    padding: 16px;
  }
  .calendar-grid span {
    padding: 6px 0;
  }
  .mini-stats {
    margin: 14px 0;
    padding: 10px;
  }
  .calendar-surface {
    padding: 10px;
  }
  .schedule-item {
    min-height: 55px;
    padding-top: 10px;
  }
}
@media (min-width: 701px) and (max-width: 1180px) {
  .shell {
    grid-template-columns: 46px minmax(0, 1fr) 238px;
    gap: 13px;
    padding: 15px;
  }
  .rail {
    top: 15px;
    height: calc(100vh - 30px);
    border-radius: 25px;
  }
  .navbtn {
    width: 39px;
  }
  .navbtn svg {
    width: 18px;
    height: 18px;
  }
  .workspace {
    min-height: calc(100vh - 30px);
    padding: 20px;
    padding-bottom: 60px;
    border-radius: 26px;
  }
  .aside {
    display: block;
    top: 15px;
    height: calc(100vh - 30px);
    padding: 16px 13px;
    border-radius: 26px;
  }
  .topbar h1 {
    font-size: 18px;
  }
  .topbar small {
    font-size: 9px;
  }
  .searchbox {
    max-width: 210px;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 13px 11px;
    min-height: 92px;
  }
  .metric strong {
    font-size: 19px;
  }
  .metric .label {
    font-size: 9px;
  }
  .metric small {
    font-size: 8px;
  }
  .is-overview .pipeline-bar {
    padding: 10px 7px;
  }
  .is-overview .pipeline-bar strong {
    font-size: 18px;
  }
  .is-overview .light-panel {
    padding: 16px;
  }
  .mini-stats strong {
    font-size: 13px;
  }
  .profile strong {
    font-size: 11px;
  }
}
@media (max-width: 850px) and (min-width: 701px) {
  .shell {
    grid-template-columns: 36px minmax(0, 1fr) 178px;
    gap: 10px;
    padding: 11px 15px;
  }
  .rail {
    border-radius: 23px;
    top: 11px;
    height: calc(100vh - 22px);
  }
  .navbtn {
    width: 33px;
  }
  .workspace {
    padding: 15px;
    min-height: calc(100vh - 22px);
    padding-bottom: 40px;
    border-radius: 24px;
  }
  .aside {
    padding: 13px 12px;
    top: 11px;
    height: calc(100vh - 22px);
    border-radius: 23px;
  }
  .topbar {
    margin-bottom: 15px;
    gap: 10px;
  }
  .topbar h1 {
    font-size: 13px;
  }
  .topbar h1 span {
    font-size: 12px;
  }
  .topbar small {
    font-size: 7px;
    margin-top: 4px;
  }
  .searchbox {
    max-width: 155px;
  }
  .searchbox input {
    height: 24px;
    min-height: 24px;
    font-size: 7px;
    padding: 5px 12px;
  }
  .metrics {
    gap: 6px;
    margin-bottom: 17px;
  }
  .metric {
    padding: 11px 9px;
    min-height: 60px;
    border-radius: 11px;
  }
  .metric strong {
    font-size: 14px;
    margin: 7px 0 4px;
  }
  .metric .label {
    font-size: 7px;
  }
  .metric small {
    font-size: 6px;
  }
  .metric-symbol {
    width: 12px;
    height: 12px;
    font-size: 8px;
  }
  .is-overview .light-panel {
    padding: 12px;
    border-radius: 13px;
  }
  .is-overview .light-panel h2 {
    font-size: 9px;
  }
  .is-overview .light-panel .section-title > small {
    font-size: 6px;
  }
  .is-overview .pipeline-bars {
    gap: 7px;
  }
  .is-overview .pipeline-bar {
    padding: 7px 5px;
  }
  .is-overview .pipeline-bar small {
    font-size: 6px;
  }
  .is-overview .pipeline-bar strong {
    font-size: 13px;
    margin: 6px 0;
  }
  .is-overview .bar {
    height: 3px;
  }
  .workspace-switch {
    font-size: 6px;
    bottom: 9px;
  }
  .workspace-switch a {
    padding: 4px 7px;
  }
  .profile .avatar {
    width: 25px;
    height: 25px;
    border-width: 2px;
    font-size: 9px;
  }
  .profile strong {
    font-size: 8px;
  }
  .profile small {
    font-size: 6px;
  }
  .mini-stats {
    margin: 13px 0 10px;
    padding: 10px 4px;
  }
  .mini-stats strong {
    font-size: 10px;
  }
  .mini-stats small {
    font-size: 6px;
  }
  .calendar-title strong {
    font-size: 8px;
  }
  .calendar-title button {
    width: 17px;
    min-height: 17px;
    font-size: 9px;
  }
  .calendar-grid span {
    font-size: 7px;
    padding: 6px 0;
  }
  .calendar-grid .dayname {
    font-size: 6px;
  }
  .calendar-surface {
    padding: 10px 8px;
    margin-bottom: 13px;
  }
  .aside .section-title h3 {
    font-size: 9px;
  }
  .aside .section-title a {
    font-size: 6px;
  }
  .schedule-item {
    min-height: 44px;
    padding: 9px;
    padding-right: 38px;
    border-radius: 11px;
  }
  .schedule-item strong {
    font-size: 8px;
  }
  .schedule-item small {
    font-size: 6px;
  }
  .schedule-item button {
    font-size: 6px;
    right: 5px;
    top: 12px;
    min-height: 19px;
    padding: 3px;
  }
  .aside-footer {
    font-size: 6px;
    margin-top: 14px;
  }
  .aside-footer button {
    font-size: 6px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
    padding: 10px 10px 95px;
  }
  .rail {
    position: fixed;
    height: 72px;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 20px 20px 0 0;
    background: #343033f2;
    backdrop-filter: blur(25px);
  }
  .rail .brand-icon,
  .rail-bottom {
    display: none;
  }
  .navbtn {
    min-width: 43px;
    width: 43px;
    min-height: 48px;
    padding: 10px;
  }
  .navbtn:hover::after {
    display: none;
  }
  .workspace {
    min-height: calc(100vh - 105px);
    padding: 21px 16px 60px;
    border-radius: 25px;
  }
  .topbar {
    flex-wrap: wrap;
  }
  .topbar h1 {
    font-size: 20px;
  }
  .topbar small {
    font-size: 10px;
  }
  .searchbox {
    max-width: none;
    flex-basis: 100%;
  }
  .searchbox input {
    height: 34px;
    min-height: 34px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric {
    padding: 15px 12px;
    min-height: 100px;
  }
  .metric strong {
    font-size: 20px;
  }
  .metric .label {
    font-size: 10px;
  }
  .metric small {
    font-size: 9px;
  }
  .is-overview .pipeline-bars {
    grid-template-columns: 1fr 1fr;
  }
  .is-overview .light-panel {
    padding: 18px;
  }
  .is-overview .light-panel .section-title {
    flex-wrap: wrap;
  }
  .is-overview .light-panel h2 {
    font-size: 14px;
  }
  .aside {
    display: block;
    position: static;
    height: auto;
    margin-top: 12px;
    border-radius: 25px;
    padding: 22px;
  }
  .aside-footer {
    display: none;
  }
  .workspace-switch {
    font-size: 8px;
    bottom: 16px;
  }
  .workspace-switch a {
    padding: 6px 10px;
  }
  .navbtn span {
    display: none;
  }
  .page-head h1 {
    font-size: 23px;
  }
}
@media print {
  body {
    background: #fff !important;
  }
  .workspace-switch {
    display: none !important;
  }
}
.greeting-wave {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: -3px;
  margin-left: 3px;
}
@media (max-width: 850px) and (min-width: 701px) {
  .greeting-wave {
    width: 15px;
    height: 15px;
    vertical-align: -2px;
  }
  .topbar {
    margin-bottom: 11px;
  }
  .metric {
    height: 60px;
    min-height: 60px;
    padding: 9px;
  }
  .metric .label {
    font-size: 6.5px;
    white-space: nowrap;
  }
  .metric strong {
    font-size: 14px;
    margin: 5px 0 3px;
    line-height: 16px;
  }
  .metric small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 6px;
    line-height: 8px;
  }
  .is-overview .light-panel {
    min-height: 80px;
    padding: 12px;
  }
  .is-overview .light-panel .section-title {
    margin-bottom: 7px;
  }
  .is-overview .pipeline-bar {
    padding: 6px 5px;
  }
  .is-overview .pipeline-bar strong {
    font-size: 12px;
    margin: 4px 0;
    line-height: 14px;
  }
  .mini-stats {
    line-height: 1.2;
    padding: 7px 4px;
    margin: 12px 0 10px;
  }
  .calendar-grid {
    gap: 2px;
  }
  .calendar-grid span {
    line-height: 7px;
    padding: 3px 0;
  }
  .calendar-title {
    margin-bottom: 7px;
  }
  .calendar-surface {
    padding: 10px 8px;
  }
  .is-overview .light-panel .section-title > small {
    display: none;
  }
}
.app-grid-icon svg{display:none}.app-grid-icon::before{content:'▦';font-size:23px;line-height:20px}.app-launcher-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.app-launcher-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px 10px;min-height:110px}.app-launcher-grid svg{height:27px;width:27px;color:#ff9856}.app-launcher .modal-foot{display:none}.app-launcher .modal-body{max-height:75vh}
@media(max-width:850px) and (min-width:701px){.topbar{margin-bottom:6px}.aside{padding-top:10px}.mini-stats{margin:8px 0;padding:7px 4px}.mini-stats strong{line-height:12px}.mini-stats small{display:block;line-height:8px}.calendar-surface{padding:8px}.calendar-grid span{line-height:6px;padding:2px 0}.calendar-title{margin-bottom:5px}.is-overview .light-panel{padding:10px;min-height:80px}.is-overview .light-panel .section-title{margin-bottom:3px}.is-overview .pipeline-bar{padding:4px 5px}.is-overview .pipeline-bar strong{margin:3px 0}.app-grid-icon::before{font-size:18px}}
@media(max-width:700px){.app-launcher-grid{grid-template-columns:1fr 1fr}}
