:root {
  --ink: #162331;
  --muted: #788493;
  --blue: #315ff0;
  --line: #e5e9ef;
  --paper: #f6f8fb;
  --green: #168568;
  --red: #c24b4f;
  --nav: #142232;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--blue);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: var(--muted);
}
.loading {
  padding: 80px;
  text-align: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: -0.6px;
  font-size: 22px;
  font-weight: 650;
}
.brand-mark {
  width: 35px;
  height: 35px;
  border: 1px solid #ffffff30;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ffffff0b;
  color: #b7c9ff;
  font-size: 21px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: var(--nav);
  color: #edf1f6;
  display: flex;
  flex-direction: column;
  padding: 31px 20px;
  z-index: 5;
}
.sidebar .brand {
  color: #edf1f6;
  margin: 0 6px 44px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #8192a5;
  margin: 0 14px 12px;
  font-weight: 600;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 15px;
  border: 0;
  background: transparent;
  color: #aebdcb;
  text-align: left;
  border-radius: 9px;
  font-size: 13px;
}
.nav button.active {
  background: #ffffff0c;
  color: #fff;
  box-shadow: inset 3px 0 #7398ff;
}
.nav button:hover {
  background: #ffffff08;
  color: white;
}
.nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 10px 0;
  border-top: 1px solid #ffffff13;
}
.sidebar-bottom strong {
  font-size: 12px;
}
.sidebar-bottom p {
  font-size: 11px;
  color: #8a9caf;
  margin: 8px 0;
}
.main {
  margin-left: 240px;
  min-height: 100vh;
}
.topbar {
  height: 83px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb b {
  color: var(--ink);
  font-weight: 500;
}
.topright {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  border-radius: 50%;
  background: #eef2fd;
  color: var(--blue);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.workspace {
  max-width: 1500px;
  padding: 37px 42px 60px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.heading p {
  color: var(--muted);
  margin-top: 9px;
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 3px 8px #315ff019;
}
.button.danger {
  background: #fff2f1;
  border-color: #f0cecb;
  color: #a7383c;
}
.button.text {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px;
}
.button:hover {
  filter: brightness(0.97);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 27px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.stat-label {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.stat-value {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 17px 0 8px;
  line-height: 1;
  font-weight: 600;
}
.stat small {
  font-size: 11px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 9px;
  white-space: nowrap;
  background: #eef2f7;
  color: #6f7d8b;
}
.pill:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.pill.good {
  background: #edf8f3;
  color: var(--green);
}
.pill.warn {
  background: #fff6e6;
  color: #a2762f;
}
.pill.bad {
  background: #fff0ef;
  color: var(--red);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
  margin-bottom: 23px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.panel-body {
  padding: 24px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8b95a2;
  font-weight: 600;
  background: #fafbfd;
  padding: 13px 23px;
}
td {
  padding: 20px 23px;
  border-top: 1px solid #eef0f4;
  font-size: 12px;
}
td strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
td small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.client-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.client-mark {
  width: 39px;
  height: 39px;
  background: #f8eff2;
  color: #9a5a72;
  border: 1px solid #eddee5;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}
.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 23px;
}
.split .panel {
  height: fit-content;
}
.activity-row {
  display: flex;
  gap: 13px;
  padding: 16px 23px;
  border-bottom: 1px solid #f0f2f6;
}
.activity-row:last-child {
  border: 0;
}
.activity-dot {
  height: 8px;
  width: 8px;
  background: #c9d6fc;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-row p {
  font-size: 12px;
}
.activity-row small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.note {
  background: #f5f7fc;
  border: 1px solid #e7edf8;
  padding: 15px 17px;
  border-radius: 9px;
  font-size: 12px;
  color: #63718a;
  line-height: 1.7;
}
.note.green {
  background: #f0f8f3;
  border-color: #deeee3;
  color: #44785b;
}
.note.warn {
  background: #fff9ef;
  border-color: #f4e7ce;
  color: #947236;
}
.empty {
  padding: 35px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.toolbar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 25px;
  overflow: auto;
}
.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 0 15px;
  white-space: nowrap;
}
.tabs button.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.usage-grid {
  grid-template-columns: repeat(2, 1fr);
}
.detail-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.detail-card .stat-value {
  font-size: 24px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
  font-size: 12px;
  color: #596777;
}
.password-control {
  position: relative;
  display: block;
}
.field .password-control input {
  width: 100%;
  padding-right: 70px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 8px;
  border-radius: 5px;
}
.password-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: white;
  color: var(--ink);
  padding: 12px;
  border: 1px solid #dce2e9;
  border-radius: 8px;
  outline: none;
}
.field input:focus,
.field select:focus {
  border-color: #9bb1fa;
  box-shadow: 0 0 0 3px #315ff00b;
}
.field small {
  font-size: 10px;
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.6;
}
.check input {
  margin-top: 3px;
  accent-color: var(--blue);
}
.check small {
  display: block;
}
.check.locked {
  background: #f4faf6;
  border-color: #dcece1;
}
.check.locked strong {
  color: #2e7650;
}
.check.danger-check {
  border-color: #f2dedd;
}
.error {
  color: #b33b46;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 15px;
}
.row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.space {
  height: 20px;
}
.stack {
  display: grid;
  gap: 15px;
}
.settings-grid {
  max-width: 760px;
}
.overview-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #edf2ff;
  border: 1px solid #dde6ff;
  border-radius: 12px;
  padding: 23px;
  margin-bottom: 27px;
  gap: 20px;
}
.overview-banner p {
  font-size: 12px;
  color: #6c7c9b;
  margin-top: 5px;
}
.overview-banner h3 {
  color: #3157b1;
}
.footnote {
  font-size: 10px;
  color: #8a95a1;
  line-height: 1.7;
}
.roadmap-card {
  border: 1px solid var(--line);
  padding: 24px;
  background: white;
  border-radius: 12px;
}
.roadmap-card h3 {
  margin: 18px 0 10px;
}
.roadmap-card p {
  font-size: 12px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  max-width: 550px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 100px #0e1c3630;
  margin: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #10203875;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 22px;
  margin: 4px 0 12px;
}
dialog > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
dialog .close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 22px;
}
dialog pre {
  white-space: pre-wrap;
  word-break: break-all;
  padding: 15px;
  background: var(--paper);
  border-radius: 8px;
  font-size: 11px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
#toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 15px 20px;
  background: var(--nav);
  color: white;
  border-radius: 10px;
  box-shadow: 0 6px 25px #14223220;
  display: none;
  z-index: 99;
  max-width: 420px;
  font-size: 12px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: white;
}
.auth-art {
  background: var(--nav);
  padding: 50px 65px;
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-art:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -250px;
  right: -170px;
  background: radial-gradient(circle, #3f68df55, transparent 65%);
  border: 1px solid #ffffff10;
  border-radius: 50%;
  box-shadow:
    0 0 0 70px #ffffff03,
    0 0 0 140px #ffffff02;
}
.auth-message {
  margin: auto 0;
  max-width: 440px;
  padding: 100px 0;
}
.auth-message h1 {
  font-size: 49px;
  line-height: 1.13;
  letter-spacing: -2px;
  font-weight: 500;
}
.auth-message h1 span {
  color: #9db5ff;
}
.auth-message p {
  color: #96a9bd;
  font-size: 15px;
  margin-top: 25px;
  max-width: 350px;
}
.auth-footer {
  color: #738a9e;
  font-size: 11px;
}
.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 50px;
}
.auth-form {
  width: 100%;
  max-width: 350px;
}
.auth-form h1 {
  font-size: 28px;
  margin-bottom: 12px;
}
.auth-form > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 29px;
}
.auth-form .button {
  width: 100%;
  padding: 13px;
  font-size: 13px;
  margin-top: 5px;
}
.secure-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8292a4;
  margin-bottom: 28px;
}
.qr {
  display: block;
  max-width: 200px;
  margin: 20px auto;
}
.code {
  font-family: monospace;
  word-break: break-all;
  background: var(--paper);
  padding: 10px;
  font-size: 11px;
  margin-bottom: 20px;
}
.mobile-menu {
  display: none;
}
.invoice-lines {
  display: grid;
  gap: 10px;
}
.invoice-line {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
}
.invoice-line input {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 100%;
}
a.link-result {
  display: block;
  overflow-wrap: anywhere;
  padding: 16px;
  background: #edf2ff;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
}
.inline-error {
  margin: 12px 0;
  color: var(--red);
  font-size: 12px;
}
.legend {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.status-line {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.status-line:last-child {
  border: 0;
}
.status-line span {
  font-size: 12px;
}
.progress {
  height: 5px;
  border-radius: 10px;
  background: #edf0f5;
  overflow: hidden;
  margin: 12px 0;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--blue);
  width: 30%;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #9fb6ff;
  outline-offset: 3px;
}
@media (min-width: 1600px) {
  .workspace {
    padding-top: 47px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding: 25px 13px;
  }
  .sidebar .brand {
    color: #edf1f6;
    font-size: 19px;
  }
  .main {
    margin-left: 205px;
  }
  .workspace {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 35px;
  }
  .auth-message h1 {
    font-size: 40px;
  }
}
@media (max-width: 750px) {
  .sidebar {
    display: none;
  }
  .sidebar.mobile-open {
    display: flex;
    box-shadow: 0 0 0 100vw #14223270;
  }
  .main {
    margin: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .workspace {
    padding: 25px 18px;
  }
  .heading {
    align-items: flex-start;
  }
  .heading h1 {
    font-size: 25px;
  }
  .heading .button {
    white-space: nowrap;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 26px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .topright > span {
    display: none;
  }
  .overview-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 25px;
  }
  .auth-message {
    padding: 40px 0;
  }
  .auth-message h1 {
    font-size: 34px;
  }
  .auth-message p {
    font-size: 13px;
    margin-top: 15px;
  }
  .auth-footer {
    display: none;
  }
  .auth-form-wrap {
    padding: 35px 25px;
  }
  .sidebar-bottom {
    margin-top: 40px;
  }
  th,
  td {
    padding: 15px;
  }
  .row {
    flex-wrap: wrap;
  }
}
