:root {
  color-scheme: dark;
  --bg: #101015;
  --panel: #19191f;
  --line: #2c2b35;
  --muted: #a7a4b4;
  --text: #f5f2fc;
  --accent: #c0a1ff;
  --green: #89d7ac;
  --amber: #e2be7b;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
a {
  color: var(--accent);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.6;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
  line-height: 1.5;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  background: #15151b;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  letter-spacing: -0.8px;
  font-weight: 700;
}
.logo .mark {
  width: 35px;
  height: 39px;
  background: var(--accent);
  color: #24163b;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 24px;
  font-weight: 800;
}
.logo span em {
  color: var(--accent);
  font-style: normal;
}
.workspace {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  margin: 30px 0 25px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.workspace-icon {
  background: #2d253e;
  border-radius: 7px;
  padding: 7px;
  color: var(--accent);
}
.workspace strong {
  font-size: 12px;
  display: block;
}
.workspace small {
  font-size: 10px;
}
.nav-label {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 10px;
  color: #777381;
  margin: 0 13px 12px;
}
.nav {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  border: 0;
  color: #aba6b8;
  background: none;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
}
.nav button:hover {
  background: #212029;
  color: #fff;
}
.nav button.active {
  color: #ddcaff;
  background: #30253f;
}
.nav .icon {
  font-size: 17px;
  width: 18px;
  text-align: center;
}
.sidebar-bottom {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 25px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 15px;
}
.avatar {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #332740;
  color: #d9bfff;
  font-weight: 600;
  flex-shrink: 0;
}
.profile-name {
  font-size: 12px;
  font-weight: 600;
}
.profile .muted {
  font-size: 11px;
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px;
  margin-left: auto;
  border-radius: 6px;
}
.icon-button:hover {
  background: #2a2633;
  color: #fff;
}
.main {
  min-width: 0;
}
.topbar {
  height: 73px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.topbar strong {
  color: #d8d2e2;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.dot {
  display: inline-block;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 7px;
}
.content {
  padding: 33px 38px 55px;
  max-width: 1600px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 27px;
}
.page-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-size: 10px;
  margin-bottom: 10px;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #222129;
  color: #e3ddea;
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.25;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.btn:hover {
  border-color: #777080;
  background: #2b2833;
}
.btn.primary {
  background: var(--accent);
  color: #251a3b;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: #d0b9fc;
}
.btn.danger {
  color: #f4a8b1;
  border-color: #623641;
  background: #2e2029;
}
.btn.tiny {
  padding: 7px 10px;
  font-size: 11px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
}
.panel-head p {
  font-size: 12px;
  margin-top: 6px;
  color: var(--muted);
}
.notice {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #4a3c5b;
  background: #211b2b;
  border-radius: 10px;
  padding: 15px 19px;
  margin-bottom: 25px;
  color: #cbc0d9;
  font-size: 12px;
}
.notice .notice-icon {
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  background: #352840;
  color: var(--accent);
  border-radius: 8px;
  flex-shrink: 0;
}
.notice strong {
  color: #e7dcf4;
  font-weight: 600;
}
.notice .btn {
  margin-left: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 21px;
  border-radius: 11px;
  position: relative;
}
.stat-label {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label span {
  color: var(--accent);
  background: #2b2438;
  padding: 6px;
  border-radius: 7px;
}
.stat-number {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 13px 0 9px;
  font-weight: 600;
}
.stat small {
  font-size: 11px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 22px;
}
.empty {
  padding: 33px 18px;
  text-align: center;
  color: var(--muted);
}
.empty .empty-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: #272330;
  border: 1px solid #3a3048;
  border-radius: 12px;
  color: var(--accent);
  font-size: 23px;
}
.empty strong {
  display: block;
  color: #d7d1e0;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.empty p {
  font-size: 12px;
  max-width: 400px;
  margin: auto;
}
.empty .btn {
  margin-top: 17px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #40344f;
  background: #2b2336;
  border-radius: 5px;
  color: #d2b6fb;
  font-size: 10px;
  white-space: nowrap;
}
.tag.green {
  background: #1d3029;
  border-color: #2d493c;
  color: var(--green);
}
.tag.amber {
  background: #342c20;
  border-color: #4f4230;
  color: var(--amber);
}
.tag.gray {
  background: #24232b;
  border-color: #3a3742;
  color: #b2aabb;
}
.tag.red {
  color: #f0a7b3;
  background: #36252d;
  border-color: #50313f;
}
.platforms {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.platform-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.platform-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.platform-symbol {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #21313e;
  color: #83cff1;
  font-weight: 700;
}
.platform-row h3 {
  font-size: 13px;
}
.platform-row small {
  font-size: 11px;
}
.platform-row > .tag {
  margin-left: auto;
}
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.table th {
  font-size: 10px;
  color: #95909f;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: left;
  font-weight: 500;
  background: #1c1c24;
}
.table td,
.table th {
  padding: 14px 12px;
  border-bottom: 1px solid #2a2932;
}
.table td {
  font-size: 12px;
  color: #d8d2e0;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table td strong {
  font-weight: 500;
}
.cell-sub {
  display: block;
  margin-top: 5px;
  color: #918a9e;
  font-size: 10px;
}
.cell-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cell-person .avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}
.shift-card {
  border: 1px solid #4d3d63;
  border-radius: 12px;
  background: linear-gradient(110deg, #292033, #1b1922);
  padding: 22px;
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  gap: 23px;
  flex-wrap: wrap;
}
.shift-card h3 {
  color: #e5d5f8;
}
.shift-card .clock {
  font-size: 28px;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.shift-card small {
  display: block;
  margin-top: 6px;
}
.timeline-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-row:last-child {
  border-bottom: 0;
}
.timeline-row p {
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  color: #c1b9ce;
}
.field.wide {
  grid-column: 1/-1;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #3b3547;
  border-radius: 8px;
  background: #131219;
  color: #eee8f6;
  padding: 11px 12px;
  font-size: 13px;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
textarea {
  min-height: 105px;
  resize: vertical;
}
select[multiple] {
  min-height: 110px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #c1b9ce;
}
.help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
.form-error {
  color: #ffb0bd;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 14px;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.model-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.model-card-top {
  height: 75px;
  background: linear-gradient(110deg, #32243c, #23212e);
  display: flex;
  align-items: flex-end;
  padding: 15px 21px;
}
.model-card-top .avatar {
  width: 45px;
  height: 45px;
  border: 3px solid #19191f;
  transform: translateY(29px);
  font-size: 17px;
  background: #58446c;
  color: #f0dcff;
}
.model-card-body {
  padding: 30px 21px 20px;
}
.model-card-body h2 {
  margin-bottom: 8px;
}
.model-card-body .platform-row {
  padding: 13px 0;
}
.model-card .actions {
  margin-top: 18px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filters .field {
  flex: 1;
  min-width: 130px;
}
.filter-reset {
  height: 39px;
}
.financial-cards {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.financial {
  flex: 1;
  min-width: 220px;
  background: #201c28;
  border: 1px solid #3d324b;
  border-radius: 10px;
  padding: 20px;
}
.financial .amount {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 10px 0;
}
.financial dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  font-size: 12px;
  margin: 18px 0 0;
}
.financial dt {
  color: var(--muted);
}
.financial dd {
  margin: 0;
  text-align: right;
}
.message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0 20px;
}
.message {
  padding: 14px 16px;
  background: #23212c;
  border: 1px solid #36303f;
  border-radius: 10px;
  max-width: 90%;
  align-self: flex-end;
}
.message.incoming {
  align-self: flex-start;
  background: #1c242a;
  border-color: #303b43;
}
.message.note {
  align-self: stretch;
  max-width: 100%;
  background: #29251e;
  border-color: #463c2a;
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  margin: 6px 0;
}
.message small {
  font-size: 10px;
}
.message-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.chat-header .actions {
  margin-left: auto;
}
.compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.compose textarea {
  min-height: 72px;
}
.chat-toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.chat-toolbar select {
  width: auto;
}
.reconcile {
  font-size: 11px;
  max-width: 220px;
  white-space: normal;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.auth-story {
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse at 20% 70%, #352441, transparent 75%), #17141e;
  border-right: 1px solid #3b2c48;
}
.auth-story h1 {
  font-size: 55px;
  line-height: 1.12;
  letter-spacing: -2px;
  max-width: 520px;
  margin: 25px 0;
}
.auth-story h1 em {
  font-style: normal;
  color: var(--accent);
}
.auth-story p {
  color: #b0a2bd;
  max-width: 380px;
}
.auth-story footer {
  color: #887a97;
  font-size: 11px;
}
.auth-body {
  display: grid;
  place-items: center;
  padding: 35px;
}
.auth-card {
  width: 100%;
  max-width: 390px;
}
.auth-card h2 {
  font-size: 25px;
  margin: 13px 0;
}
.auth-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 27px;
}
.auth-card .field {
  margin: 18px 0;
}
.auth-card .btn {
  width: 100%;
  padding: 13px;
  margin-top: 12px;
}
.auth-meta {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 11px;
  color: #80778e;
  line-height: 1.6;
}
dialog {
  width: min(620px, calc(100vw - 28px));
  padding: 28px;
  background: #1b1922;
  color: var(--text);
  border: 1px solid #4a3b5c;
  border-radius: 15px;
  max-height: 90vh;
}
dialog::backdrop {
  background: #05040acb;
  backdrop-filter: blur(4px);
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.modal-sub {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 24px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 25px;
  background: #343040;
  border: 1px solid #625075;
  border-radius: 10px;
  padding: 14px 20px;
  max-width: 440px;
  box-shadow: 0 10px 40px #0006;
  z-index: 20;
  display: none;
  font-size: 13px;
}
#toast.visible {
  display: block;
}
.footer-note {
  color: #82798f;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.error-panel {
  border-color: #64404e;
  color: #f2acbb;
}
.error-panel p {
  margin-bottom: 15px;
}
.spaced {
  margin-top: 20px;
}
.page-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.mobile-brand {
  display: none;
}
.money {
  font-variant-numeric: tabular-nums;
}
.link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-size: 12px;
}
.backup-note {
  max-width: 720px;
}
.settings-form {
  max-width: 650px;
}
.integration-card {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.integration-card .platform-symbol {
  width: 50px;
  height: 50px;
  font-size: 20px;
}
.integration-card .integration-info {
  flex: 1;
  min-width: 220px;
}
.integration-info p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.integration-info h2 {
  margin-bottom: 8px;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 40px;
  }
  .stat {
    padding: 26px;
  }
  .model-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar {
    padding: 25px 12px;
  }
  .auth-story {
    padding: 35px;
  }
  .auth-story h1 {
    font-size: 43px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 17px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .logo {
    font-size: 19px;
  }
  .sidebar .workspace,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow-x: auto;
    margin-top: 18px;
    gap: 5px;
    padding-bottom: 3px;
  }
  .nav button {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px;
    font-size: 11px;
    gap: 6px;
  }
  .nav .icon {
    font-size: 14px;
    width: auto;
  }
  .topbar {
    height: 53px;
    padding: 0 18px;
    font-size: 10px;
  }
  .topbar-right {
    gap: 10px;
  }
  .content {
    padding: 24px 17px;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }
  h1 {
    font-size: 26px;
  }
  .page-head p {
    font-size: 12px;
  }
  .cards {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-number {
    font-size: 28px;
  }
  .stat small {
    font-size: 10px;
  }
  .notice {
    align-items: flex-start;
    padding: 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .notice .btn {
    margin-left: 40px;
  }
  .panel {
    padding: 17px;
  }
  .model-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .field.wide {
    grid-column: auto;
  }
  .auth {
    display: block;
  }
  .auth-story {
    padding: 23px;
    background: #20192a;
  }
  .auth-story h1 {
    font-size: 30px;
    margin: 22px 0 12px;
  }
  .auth-story .intro {
    display: none;
  }
  .auth-story footer {
    display: none;
  }
  .auth-body {
    padding: 33px 23px;
  }
  .compose {
    grid-template-columns: 1fr;
  }
  .compose .actions {
    justify-content: flex-end;
  }
  .shift-card {
    padding: 17px;
    gap: 16px;
  }
  .shift-card .clock {
    font-size: 24px;
  }
  .footer-note {
    flex-direction: column;
  }
  .chat-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  dialog {
    padding: 22px;
  }
  .topbar .hide-mobile {
    display: none;
  }
  .table td,
  .table th {
    padding: 12px 9px;
  }
  .table td {
    font-size: 11px;
  }
}
