:root {
  --accent: #6458d9;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, transparent);
  --bg: #f6f7fb;
  --panel: #fff;
  --ink: #25243c;
  --muted: #9291a4;
  --line: #edecf3;
  --green: #23987e;
  --shadow: 0 7px 30px #29234b04;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px Tahoma,
    Arial,
    sans-serif;
  line-height: 1.65;
}
body.dark {
  --bg: #161722;
  --panel: #20212f;
  --ink: #ededf6;
  --muted: #a09eb5;
  --line: #303142;
  --accent-soft: color-mix(in srgb, var(--accent) 20%, transparent);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 0;
  border-radius: 9px;
  padding: 11px 17px;
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
}
button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 16%, transparent);
}
button.plain {
  background: transparent;
  color: var(--muted);
}
button.danger {
  background: #fbebee;
  color: #c04961;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 9px;
  padding: 11px 13px;
  outline: none;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type='color'] {
  height: 45px;
  padding: 5px;
}
input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
textarea {
  min-height: 90px;
  resize: vertical;
}
label {
  display: block;
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 7px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
}
small,
.muted {
  color: var(--muted);
  font-size: 12px;
}
a {
  color: var(--accent);
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.layout {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  width: 235px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  position: fixed;
  right: 0;
  inset-block: 0;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  direction: ltr;
  justify-content: flex-end;
}
.brandmark {
  width: 35px;
  height: 35px;
  background: var(--accent);
  border-radius: 11px;
  color: white;
  display: grid;
  place-items: center;
  font: bold 25px Arial;
}
.brandname {
  font: bold 27px Arial;
  letter-spacing: 2px;
}
.brandname small {
  display: block;
  letter-spacing: 2px;
  font: 8px Arial;
  margin-top: 5px;
  color: var(--muted);
}
.workspace {
  margin: 32px 0 24px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace .initial {
  width: 34px;
  height: 34px;
  background: #f6eee3;
  color: #b58b4d;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.workspace b {
  display: block;
  max-width: 135px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
}
.navlabel {
  font-size: 10px;
  color: var(--muted);
  margin: 0 12px 10px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  justify-content: flex-start;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 13px 15px;
  font-weight: normal;
}
.nav button.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: bold;
}
.nav button.active:after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: auto;
}
.sidebottom {
  margin-top: auto;
  padding-top: 20px;
}
.support {
  padding: 16px;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 11px;
}
.support b {
  display: block;
  margin-bottom: 5px;
}
.main {
  margin-right: 235px;
  width: calc(100% - 235px);
  min-width: 0;
}
.topbar {
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  gap: 16px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-weight: bold;
}
.profile b {
  display: block;
  font-size: 12px;
}
.content {
  padding: 32px 36px;
  max-width: 1600px;
  margin: auto;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}
.pagehead p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 7px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 23px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat {
  position: relative;
}
.stathead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.stathead .bubble {
  padding: 9px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
}
.stat strong {
  display: block;
  font-size: 25px;
  margin: 18px 0 12px;
  letter-spacing: -0.7px;
}
.stat strong em {
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0;
  margin-right: 5px;
}
.stat small {
  font-size: 10px;
}
.spark {
  height: 25px;
  position: absolute;
  bottom: 20px;
  left: 22px;
  color: var(--accent);
  opacity: 0.7;
}
.columns {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.cardhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
}
.cardhead p {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}
.cardhead button {
  font-size: 11px;
  padding: 7px 11px;
}
.chart {
  height: 190px;
  position: relative;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 45px,
    var(--line) 46px,
    transparent 47px
  );
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 18px;
  padding: 14px 10px 0;
}
.barbox {
  flex: 1;
  max-width: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 10px;
}
.bar {
  width: 65%;
  min-height: 4px;
  background: var(--accent-soft);
  border-radius: 7px 7px 0 0;
}
.barbox:last-child .bar {
  background: var(--accent);
}
.barbox small {
  font-size: 10px;
}
.quickrow {
  width: 100%;
  background: transparent;
  color: var(--ink);
  justify-content: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-weight: normal;
  font-size: 12px;
  white-space: normal;
  text-align: right;
}
.quickrow:last-child {
  border: 0;
}
.quickrow .qicon {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.quickrow small {
  display: block;
  font-size: 10px;
}
.quickrow .arrow {
  margin-right: auto;
  color: var(--muted);
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  white-space: nowrap;
}
th {
  font-size: 10px;
  color: var(--muted);
  font-weight: normal;
  background: var(--bg);
  padding: 13px 14px;
}
th:first-child {
  border-radius: 0 8px 8px 0;
}
td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
td button {
  padding: 6px 10px;
  font-size: 11px;
}
.pill {
  font-size: 10px;
  border-radius: 6px;
  padding: 5px 9px;
  background: #eaf7f2;
  color: #299277;
  display: inline-block;
}
.pill.warn {
  background: #fff4dc;
  color: #b58d36;
}
.pill.gray {
  background: var(--bg);
  color: var(--muted);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search {
  max-width: 320px;
  font-size: 12px;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
  font-size: 12px;
}
.empty .icon {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0 auto 12px;
  opacity: 0.5;
}
.empty button {
  margin-top: 17px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  margin-bottom: 18px;
}
.fields .field {
  margin: 0;
}
.span2 {
  grid-column: 1/-1;
}
.section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.section:first-child {
  padding-top: 0;
  margin-top: 0;
  border: 0;
}
.section h3 {
  margin-bottom: 15px;
}
.note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 10px;
}
.banner {
  border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
  padding: 15px 20px;
  border-radius: 11px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.settingslayout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
}
.tabs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-self: start;
}
.tabs button {
  background: transparent;
  color: var(--muted);
  justify-content: flex-start;
  font-weight: normal;
}
.tabs button.active {
  background: var(--panel);
  color: var(--accent);
  border: 1px solid var(--line);
}
.settingsbody {
  max-width: 900px;
}
.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.swatch {
  width: 31px;
  height: 31px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid var(--panel);
  outline: 1px solid var(--line);
}
.swatch.selected {
  outline: 2px solid var(--ink);
}
.logoimage {
  max-height: 70px;
  max-width: 150px;
  object-fit: contain;
}
.upload {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.switchrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.savebar {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.salegrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
}
.summary {
  align-self: start;
  position: sticky;
  top: 20px;
}
.sumrow {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 16px 0;
  font-size: 13px;
}
.sumrow.total {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 23px;
  font-size: 22px;
  font-weight: bold;
  color: var(--accent);
}
.full {
  width: 100%;
}
.qty {
  width: 78px;
  padding: 7px;
}
.modalback {
  position: fixed;
  inset: 0;
  background: #17142d70;
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  width: 620px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: var(--panel);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 80px #18132b22;
}
.modal.wide {
  width: 820px;
}
.modalhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.close {
  padding: 4px 10px;
  font-size: 22px;
  background: var(--bg);
  color: var(--muted);
}
.error {
  color: #cd4760;
  font-size: 12px;
  min-height: 20px;
  margin-top: 12px;
}
.success {
  color: var(--green);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 25px;
  padding: 16px 25px;
  background: #24243d;
  color: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px #16152625;
  z-index: 200;
  font-size: 13px;
  max-width: calc(100vw - 50px);
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.authart {
  background: #272241;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9vw;
  position: relative;
  overflow: hidden;
}
.authart:before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  border: 1px solid #ffffff15;
  left: -120px;
  bottom: -120px;
  border-radius: 50%;
  box-shadow:
    0 0 0 60px #ffffff04,
    0 0 0 120px #ffffff03;
}
.authart h1 {
  font-size: 37px;
  line-height: 1.7;
  margin: 30px 0 18px;
  position: relative;
}
.authart p {
  color: #bbb5d4;
  font-size: 14px;
  line-height: 2.2;
}
.authart .brand {
  justify-content: flex-start;
}
.authart .brandname small {
  color: #b4a9d9;
}
.authmain {
  padding: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
}
.authform {
  width: 370px;
  max-width: 100%;
}
.authform h2 {
  font-size: 25px;
  margin-bottom: 10px;
}
.authform > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 30px;
}
.authform .field {
  margin-bottom: 17px;
}
.authswitch {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
}
.authswitch button {
  background: transparent;
  padding: 5px;
}
.loading {
  display: grid;
  place-content: center;
  height: 100vh;
  color: var(--accent);
  text-align: center;
  font: bold 32px Arial;
}
.loading small {
  font: 13px Tahoma;
  margin-top: 20px;
}
.receipt {
  background: white;
  color: #29263d;
  padding: 25px;
}
.receipt .receiptbrand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 20px;
}
.receipt .meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 25px 0;
  font-size: 12px;
}
.receipt table th {
  background: #f6f7fb;
  color: #777;
}
.receipt table td {
  border-color: #eee;
}
.receipt p {
  font-size: 12px;
  white-space: pre-wrap;
}
.receipt .sumrow.total {
  font-size: 22px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 20px;
  font-size: 11px;
}
.pagination button {
  padding: 5px 12px;
}
.auditrow {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px;
}
.auditrow small {
  display: block;
}
.categorydot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-left: 9px;
}
.reportlist > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  font-size: 12px;
}
.mobilebrand {
  display: none;
}
.accountbar {
  display: flex;
  gap: 15px;
  align-items: center;
  background: var(--bg);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 25px;
}
.metric {
  font-size: 30px;
  color: var(--accent);
  font-weight: bold;
}
.checknote {
  background: #fff6de;
  color: #997d38;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.9;
  margin-bottom: 20px;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 42px;
  }
  .card {
    padding: 27px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding: 25px 14px;
  }
  .main {
    margin-right: 200px;
    width: calc(100% - 200px);
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .cards {
    gap: 12px;
  }
  .card {
    padding: 18px;
  }
  .stat strong {
    font-size: 21px;
  }
  .salegrid {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
  .columns {
    grid-template-columns: 1.3fr 1fr;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 17px;
    gap: 15px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .layout {
    display: block;
  }
  .brand {
    justify-content: flex-start;
  }
  .brandname {
    font-size: 24px;
  }
  .workspace,
  .navlabel,
  .sidebottom {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .nav button {
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 12px;
  }
  .nav button .icon {
    width: 16px;
  }
  .nav button.active:after {
    display: none;
  }
  .main {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .content {
    padding: 24px 16px;
  }
  .crumb {
    font-size: 11px;
  }
  .profile small {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .settingslayout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tabs {
    flex-direction: row;
    overflow: auto;
  }
  .tabs button {
    font-size: 12px;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .authart {
    padding: 35px;
  }
  .authart h1 {
    font-size: 25px;
    margin: 18px 0 0;
  }
  .authart p {
    display: none;
  }
  .authmain {
    padding: 30px 20px;
  }
  .pagehead {
    align-items: flex-start;
  }
  .pagehead h1 {
    font-size: 22px;
  }
  .banner {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .stat strong {
    font-size: 20px;
  }
  .stathead {
    font-size: 11px;
  }
  .stathead .bubble {
    padding: 7px;
  }
  .pagehead {
    flex-wrap: wrap;
  }
  .profile b {
    display: none;
  }
  .content {
    padding: 20px 12px;
  }
  .card {
    padding: 16px;
  }
  .modalback {
    padding: 10px;
  }
  .modal {
    padding: 20px;
  }
  .receipt {
    padding: 5px;
  }
  .receipt .meta {
    grid-template-columns: 1fr;
  }
  .savebar {
    flex-wrap: wrap;
  }
  .spark {
    display: none;
  }
}
@media print {
  body {
    background: white !important;
  }
  body > #app,
  body > #toast {
    display: none !important;
  }
  .modalback {
    position: static;
    display: block;
    padding: 0;
    background: none;
    backdrop-filter: none;
  }
  .modal {
    padding: 0;
    max-height: none;
    overflow: visible;
    width: 100%;
    max-width: none;
    box-shadow: none;
    border-radius: 0;
    background: white;
  }
  .noprint {
    display: none !important;
  }
  .receipt {
    padding: 0;
  }
  table {
    white-space: normal;
  }
  thead {
    display: table-header-group;
  }
  tr {
    break-inside: avoid;
  }
  .receipt .sumrow {
    break-inside: avoid;
  }
  @page {
    size: A4;
    margin: 15mm;
  }
}
.owner-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-bottom: 24px;
  padding: 5px 0;
}
.owner-tabs button {
  flex-shrink: 0;
}
.nav .navlabel {
  font-size: 10px;
}
button[data-page='owner'] {
  color: var(--accent);
}

.admin-access {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.admin-access > .card {
  max-width: 580px;
  padding: 36px;
  width: 100%;
}
.admin-access .brand {
  margin-bottom: 32px;
}
.admin-access .actions {
  margin-top: 24px;
  flex-wrap: wrap;
}
.admin-return {
  display: block;
  padding: 16px;
  color: var(--accent);
  text-decoration: none;
}
.authswitch a {
  color: var(--accent);
}

.contact-message {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
}
.contact-details {
  text-align: right;
  overflow-wrap: anywhere;
}
textarea {
  font: inherit;
  min-height: 110px;
  width: 100%;
}

.sidebar {
  overflow-y: auto;
}
.header-logout {
  color: #b2445d;
  background: #fcf0f3;
  padding: 9px 12px;
  font-size: 12px;
  flex-shrink: 0;
}
.topbar .crumb {
  min-width: 0;
}
.profile {
  flex-shrink: 0;
}
.profile > div:not(.avatar) {
  min-width: 0;
}
@media (max-width: 800px) {
  .profile > .pill {
    display: none;
  }
  .topbar {
    gap: 8px;
  }
  .profile {
    gap: 8px;
  }
  .header-logout {
    font-size: 11px;
    padding: 9px 10px;
    min-height: 40px;
  }
  .header-logout .icon {
    width: 17px;
    height: 17px;
  }
  .crumb {
    gap: 6px;
    flex-wrap: wrap;
  }
}

.sidebar {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  transition: transform 0.2s ease;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.menu-close {
  padding: 4px 9px;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
}
.menu-toggle {
  padding: 7px 11px;
  min-width: 38px;
  min-height: 40px;
  font-size: 20px;
  flex-shrink: 0;
}
.support-message {
  margin-bottom: 12px;
}
.layout.menu-closed .sidebar {
  transform: translateX(100%);
  visibility: hidden;
}
.layout.menu-closed .main {
  margin-right: 0;
  width: 100%;
}
.menu-backdrop {
  display: none;
}
.topbar {
  height: auto;
  min-height: 83px;
  flex-wrap: wrap;
  padding-block: 12px;
}
.crumb {
  flex: 1;
}
.profile {
  margin-right: auto;
}
@media (max-width: 800px) {
  .sidebar {
    position: fixed;
    inset-block: 0;
    right: 0;
    width: min(285px, 85vw);
    z-index: 41;
    display: flex;
    padding: 20px;
    gap: 0;
    border-left: 1px solid var(--line);
  }
  .sidebar .workspace {
    display: flex;
    margin: 22px 0;
  }
  .sidebar .navlabel {
    display: block;
  }
  .sidebar .sidebottom {
    display: block;
  }
  .sidebar .nav {
    display: grid;
    overflow: visible;
    gap: 5px;
  }
  .sidebar .nav button {
    justify-content: flex-start;
    padding: 13px 15px;
  }
  .layout .main {
    margin: 0;
    width: 100%;
  }
  .menu-open .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 40;
    background: #15102470;
    border-radius: 0;
    touch-action: none;
    backdrop-filter: blur(2px);
  }
  .topbar {
    min-height: 64px;
    padding-block: 10px;
    gap: 8px;
  }
  .crumb {
    font-size: 10px;
  }
  .profile {
    gap: 7px;
  }
  .profile .avatar {
    width: 30px;
    height: 30px;
  }
  .header-logout {
    padding: 8px;
  }
  .menu-toggle {
    padding: 6px 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar {
    transition: none;
  }
}
.support-ticket {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  margin: 12px 0;
  white-space: normal;
  text-align: start;
  padding: 16px;
}
.ticket-preview {
  display: block;
  flex: 1;
  min-width: 160px;
  overflow-wrap: anywhere;
}
.support-unread {
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  padding: 1px 7px;
  font-size: 11px;
}
.chat-log {
  display: grid;
  gap: 12px;
  max-height: 45vh;
  overflow: auto;
  margin: 20px 0;
  padding: 4px;
}
.chat-bubble {
  padding: 16px;
  border-radius: 13px;
  background: var(--bg);
  max-width: 88%;
  border: 1px solid var(--line);
}
.chat-bubble.owner {
  background: var(--accent-soft);
  margin-inline-start: auto;
}
.chat-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  margin-top: 7px;
}

.auth-verification {
  margin: 14px 0;
  max-width: 100%;
  min-width: 0;
}
.auth-verification p,
[data-auth-wait] {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
