:root {
  font:
    15px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #203146;
  background: #f5f7f9;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #39c9a5;
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -9999px;
  z-index: 30;
  background: white;
  padding: 12px;
}
.skip:focus {
  left: 8px;
  top: 8px;
}
.shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #111f30;
  color: #e7eff3;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #42d4ad;
  color: #102335;
  border-radius: 10px;
  font-size: 21px;
}
.brand small {
  display: block;
  color: #79b9b3;
  font-size: 10px;
  letter-spacing: 0.17em;
  font-weight: 700;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #aebfc9;
  border-radius: 10px;
  text-align: left;
  padding: 11px 13px;
  display: flex;
  gap: 11px;
  align-items: center;
}
.nav button:hover,
.nav button.active {
  background: #223749;
  color: white;
}
.nav button.active:before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 5px;
  background: #42d4ad;
  margin-left: -9px;
}
.sidebar-foot {
  margin-top: auto;
  padding: 14px;
  border: 1px solid #365065;
  border-radius: 13px;
  color: #bfd0d8;
  font-size: 12px;
}
.sidebar-foot strong {
  display: block;
  color: white;
  margin-bottom: 5px;
}
.work {
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid #e1e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 34px;
}
.topbar strong {
  font-size: 15px;
}
.topbar .meta {
  color: #708193;
  font-size: 12px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.content {
  max-width: 1500px;
  margin: auto;
  padding: 31px 34px 80px;
}
.eyebrow {
  color: #158b74;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
}
.pagehead h1 {
  font-size: 31px;
  line-height: 1.14;
  letter-spacing: -0.045em;
  margin: 5px 0;
}
.pagehead p {
  color: #748496;
  margin: 4px 0 0;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid #d7e0e5;
  background: #fff;
  color: #23364a;
  padding: 10px 15px;
  border-radius: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.btn:hover {
  background: #f2f7f7;
}
.btn.primary {
  background: #137e6b;
  border-color: #137e6b;
  color: #fff;
}
.btn.primary:hover {
  background: #096755;
}
.btn.dark {
  background: #162a3b;
  border-color: #162a3b;
  color: #fff;
}
.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.btn.danger {
  color: #a13030;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.card {
  background: white;
  border: 1px solid #e2e9ed;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(24, 47, 67, 0.025);
  min-width: 0;
}
.metric {
  padding: 22px;
}
.metric .label {
  color: #798899;
  font-size: 13px;
}
.metric strong {
  display: block;
  font-size: 27px;
  margin: 8px 0 2px;
  letter-spacing: -0.04em;
}
.metric small {
  color: #719187;
}
.section {
  margin-top: 20px;
  padding: 23px;
}
.section h2 {
  font-size: 17px;
  letter-spacing: -0.02em;
  margin: 0 0 15px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 20px;
}
.register-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
.register-layout > .card {
  padding: 22px;
}
.cart {
  position: sticky;
  top: 20px;
}
.search {
  width: 100%;
  border: 1px solid #d9e2e7;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 11px;
  margin-top: 16px;
}
.product {
  border: 1px solid #e0e8eb;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  padding: 17px;
  min-height: 127px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product:hover {
  border-color: #30b89a;
  background: #f4fbf8;
}
.product strong {
  line-height: 1.25;
}
.product small,
.muted {
  color: #798999;
}
.product b {
  color: #157963;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.row + .row {
  margin-top: 12px;
}
.divider {
  border: 0;
  border-top: 1px solid #e8edf0;
  margin: 16px 0;
}
.total {
  font-size: 22px;
  font-weight: 800;
  color: #17344b;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  padding: 4px 9px;
  background: #e8f6ef;
  color: #187b61;
  font-size: 11px;
  font-weight: 800;
}
.pill.warn {
  background: #fff2dc;
  color: #9b650e;
}
.pill.bad {
  background: #feeaea;
  color: #a13b3b;
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 560px;
}
.table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8593a1;
  border-bottom: 1px solid #e5ebef;
}
.table td,
.table th {
  padding: 13px 12px;
}
.table td {
  border-bottom: 1px solid #edf1f3;
}
.table tr:last-child td {
  border: 0;
}
.table td small {
  display: block;
  color: #8292a1;
}
.empty {
  padding: 34px;
  text-align: center;
  color: #81909f;
  border: 1px dashed #d5e0e5;
  border-radius: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.field {
  display: grid;
  gap: 5px;
}
.field.wide {
  grid-column: 1/-1;
}
.field label {
  font-size: 12px;
  font-weight: 700;
  color: #506274;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d9e2e7;
  border-radius: 9px;
  background: #fff;
  color: #203146;
}
.field textarea {
  min-height: 86px;
}
.field input[type="checkbox"] {
  width: auto;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}
.dialog {
  border: 0;
  border-radius: 17px;
  padding: 0;
  max-width: min(560px, calc(100vw - 28px));
  width: 100%;
  box-shadow: 0 24px 80px #10263755;
}
.dialog::backdrop {
  background: #0f203b99;
}
.dialog-inner {
  padding: 24px;
}
.dialog h2 {
  margin: 0 0 17px;
}
.notice {
  border-radius: 10px;
  padding: 11px 13px;
  background: #eaf7f2;
  color: #225e50;
  font-size: 13px;
  margin-bottom: 14px;
}
.notice.warn {
  background: #fff3dc;
  color: #765014;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #f3f7f8;
}
.login-art {
  background:
    radial-gradient(circle at 83% 27%, #294c58 0, transparent 34%),
    linear-gradient(145deg, #0d2534, #142e3c);
  color: #fff;
  padding: 8vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-art h1 {
  font-size: clamp(44px, 5vw, 79px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  max-width: 700px;
}
.login-art p {
  font-size: 18px;
  color: #b9d3d1;
  max-width: 480px;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 35px;
}
.login-panel .card {
  width: min(440px, 100%);
  padding: 30px;
}
.login-panel h2 {
  font-size: 27px;
  letter-spacing: -0.04em;
}
.login-panel .field {
  margin: 12px 0;
}
.login-panel .btn {
  width: 100%;
  margin: 7px 0;
  text-align: center;
}
.login-panel a.btn {
  display: block;
  text-decoration: none;
}
.login-panel details {
  margin-top: 20px;
  color: #667b88;
}
.login-panel summary {
  cursor: pointer;
}
.logo-large {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.footnote {
  font-size: 12px;
  color: #80919b;
}
.statusline {
  font-size: 12px;
  color: #6c8190;
}
.statusline .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38b895;
  margin-right: 5px;
}
#toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(440px, calc(100vw - 40px));
  background: #153447;
  color: #fff;
  border-radius: 11px;
  padding: 0;
  box-shadow: 0 10px 30px #0f243744;
}
#toast:not(:empty) {
  padding: 13px 17px;
}
#toast.error {
  background: #943b3b;
}
.hide {
  display: none !important;
}
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .register-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 12px;
    gap: 12px;
  }
  .brand {
    padding: 0;
  }
  .nav {
    display: flex;
    overflow: auto;
  }
  .nav button {
    white-space: nowrap;
    width: auto;
    padding: 8px 10px;
  }
  .nav button.active:before {
    display: none;
  }
  .sidebar-foot {
    display: none;
  }
  .topbar {
    padding: 0 18px;
    height: 58px;
  }
  .content {
    padding: 22px 17px 55px;
  }
  .pagehead h1 {
    font-size: 27px;
  }
  .register-layout,
  .split {
    grid-template-columns: 1fr;
  }
  .cart {
    position: static;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 290px;
    padding: 32px;
  }
  .login-art h1 {
    font-size: 44px;
    margin: 12px 0;
  }
  .login-art p {
    font-size: 15px;
  }
  .login-panel {
    padding: 22px;
  }
}
@media (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 21px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .pagehead {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar .meta {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product {
    min-height: 118px;
    padding: 12px;
  }
}
