:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #302a33;
  background: #faf9fb;
  font-size: 16px;
  --pink: #a33664;
  --line: #ebe6ed;
  --muted: #766b7c;
  --soft: #faedf3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button,
.button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 10px 15px;
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem;
}
button:hover,
.button:hover {
  background: var(--soft);
}
button.primary {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}
input,
select,
textarea {
  border: 1px solid #dcd4df;
  border-radius: 8px;
  padding: 11px 12px;
  min-width: 0;
  background: white;
  color: inherit;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
}
label {
  font-size: 0.875rem;
  display: grid;
  gap: 8px;
}
h1 {
  font-size: 1.9rem;
  letter-spacing: -0.055em;
  margin: 8px 0 12px;
  font-weight: 600;
}
h2 {
  font-size: 1.1rem;
  font-weight: 600;
}
h3 {
  font-size: 1rem;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: var(--muted);
  font-size: 0.875rem;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}
.brand {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.8rem;
  letter-spacing: -0.06em;
  color: #87274f;
}
.brand small {
  font-family: system-ui;
  font-size: 0.65rem;
  display: block;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-style: normal;
  margin-top: 7px;
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  padding: 0 13px 34px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  text-align: left;
  background: none;
  font-size: 0.9rem;
  padding: 12px 14px;
}
.nav button.active {
  color: #922c58;
  background: var(--soft);
  font-weight: 600;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav .later {
  font-size: 0.65rem;
  margin-left: auto;
  color: #9a8e9d;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 22px 12px 0;
  display: grid;
  gap: 10px;
}
.avatar {
  background: var(--soft);
  color: var(--pink);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
}
.topbar {
  height: 85px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 20px;
}
.topbar input {
  border: 0;
  background: #faf9fb;
  width: min(420px, 55vw);
}
main {
  padding: 36px 38px 60px;
  max-width: 1700px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}
.heading p {
  margin: 0;
}
.toolbar,
.filters,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filters {
  margin-bottom: 20px;
}
.filters input,
.filters select {
  font-size: 0.875rem;
  max-width: 175px;
  padding: 9px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.metric,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px;
}
.metric .value {
  font-size: 1.8rem;
  letter-spacing: -0.05em;
  margin: 18px 0 10px;
  overflow-wrap: anywhere;
}
.metric:first-child {
  background: #fff6fa;
  border-color: #f1d4e1;
}
.metric .label {
  font-size: 0.875rem;
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
}
.panel-header h2 {
  margin: 0;
}
.chart {
  height: 200px;
  display: flex;
  gap: 5px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.bar {
  width: 100%;
  background: #c46790;
  border-radius: 3px 3px 0 0;
  min-height: 0;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted);
}
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.stat-row:last-child {
  border: 0;
}
.notice {
  background: #fff8ec;
  border: 1px solid #f0dfbd;
  padding: 14px 18px;
  border-radius: 10px;
  color: #785929;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 18px 0;
}
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
  white-space: nowrap;
  text-align: left;
}
th {
  background: #fbfafc;
  padding: 15px 18px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fdf8fa;
}
td button.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--pink);
  font-weight: 600;
}
.badge {
  font-size: 0.75rem;
  border-radius: 6px;
  padding: 5px 8px;
  display: inline-block;
  background: #f0edf4;
  color: #695777;
}
.badge.paid,
.badge.delivered {
  background: #edf5ef;
  color: #36714b;
}
.badge.awaiting_payment,
.badge.processing {
  background: #fff3db;
  color: #8c671f;
}
.badge.assembly,
.badge.assembled {
  background: #f8eafa;
  color: #94539d;
}
.badge.shipped,
.badge.at_pickup {
  background: #eaf1fc;
  color: #456ba1;
}
.badge.cancelled,
.badge.returned {
  background: #fcebed;
  color: #a94951;
}
.empty {
  text-align: center;
  padding: 65px 25px;
  color: var(--muted);
}
.empty .icon {
  width: 40px;
  height: 40px;
  color: #bd9cac;
}
.empty h2 {
  color: #514555;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 15px;
}
.kanban {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  padding-bottom: 20px;
}
.column {
  background: #f2eef4;
  border-radius: 12px;
  padding: 15px;
  min-width: 260px;
  max-width: 300px;
  flex: 1;
}
.column h3 {
  font-size: 0.875rem;
  margin: 5px 0 20px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px;
  margin-bottom: 12px;
  cursor: grab;
}
.card button {
  border: 0;
  padding: 0;
  color: var(--pink);
  background: none;
  font-weight: 600;
}
.card p {
  margin: 10px 0;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-art {
  padding: 70px;
  background: #f8eaf1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid #dbacc1;
  border-radius: 50%;
  top: 25%;
  left: 12%;
  box-shadow:
    0 0 0 45px #f6e4ed,
    0 0 0 46px #e4bdce,
    0 0 0 95px #f8eaf1,
    0 0 0 96px #e8cada;
}
.login-art h1 {
  font-family: Georgia, serif;
  font-size: 3.6rem;
  line-height: 1.1;
  font-weight: 400;
  z-index: 1;
  max-width: 420px;
}
.login-form {
  display: grid;
  place-content: center;
  padding: 40px;
}
.login-form form {
  width: min(370px, 80vw);
  display: grid;
  gap: 20px;
}
.login-form h1 {
  margin-top: 15px;
}
.login-form p {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.error {
  color: #a33349;
  background: #fff1f4;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.875rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.check {
  display: flex;
  gap: 12px;
  align-items: center;
}
.detail-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.detail-data dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.detail-data dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}
.loading {
  padding: 40px;
  text-align: center;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(820px, 95vw);
  max-height: 90vh;
  padding: 32px;
  box-shadow: 0 20px 80px #302a3326;
}
dialog::backdrop {
  background: #302a3355;
  backdrop-filter: blur(3px);
}
dialog h1 {
  padding-right: 30px;
}
.close {
  position: absolute;
  right: 16px;
  top: 14px;
  border: 0;
  font-size: 1.5rem;
}
.timeline {
  list-style: none;
  padding: 0;
}
.timeline li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.coming {
  max-width: 650px;
  margin: 70px auto;
  text-align: center;
}
.coming .icon {
  width: 52px;
  height: 52px;
  color: #b76a8c;
}
.coming h1 {
  font-size: 2rem;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 23px;
  background: #382c37;
  color: white;
  border-radius: 10px;
  z-index: 10;
  display: none;
  max-width: 90vw;
  font-size: 0.9rem;
}
#toast.visible {
  display: block;
}
.menu-button {
  display: none;
}
.permissions {
  display: grid;
  gap: 10px;
}
.danger {
  color: #a33349;
}
.nowrap {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  main {
    padding: 28px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 40px;
  }
  .login-art h1 {
    font-size: 2.8rem;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    width: 245px;
    z-index: 5;
    box-shadow: 10px 0 30px #302a3320;
  }
  .shell.menu-open .sidebar {
    display: flex;
  }
  .menu-button {
    display: block;
  }
  .topbar {
    height: 70px;
    padding: 0 16px;
  }
  .topbar .muted {
    display: none;
  }
  main {
    padding: 25px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 18px;
  }
  .metric .value {
    font-size: 1.5rem;
  }
  .panel {
    padding: 18px;
  }
  .form-grid,
  .detail-data {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-form {
    min-height: 100vh;
  }
  .filters input,
  .filters select {
    max-width: 100%;
    flex: 1;
  }
  .pagination {
    font-size: 0.8rem;
  }
  dialog {
    padding: 24px 18px;
  }
  h1 {
    font-size: 1.7rem;
  }
}
