:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    sans-serif;
  color: #16202f;
  background: #f4f5f7;
  font-synthesis: none;
  --green: #215c49;
  --muted: #647084;
  --line: #e4e8e7;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8bcbb1;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 16px;
  background: white;
  color: #243a33;
  font-weight: 600;
}
button:hover {
  background: #f0f5f2;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #194936;
}
.danger {
  color: #b63c32;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  padding: 8px;
}
.layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #142d27;
  color: #d6e3dc;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 10px 35px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.6px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid #75a38c;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #b5e2c7;
  font-size: 20px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-top: 5px;
  color: #94b1a3;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #88a597;
  padding: 12px 14px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  text-align: left;
  border: 0;
  background: transparent;
  color: #bfd1c6;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 500;
}
.nav button:hover {
  background: #234237;
}
.nav button.active {
  background: #315547;
  color: #fff;
}
.nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #345044;
  padding: 22px 12px 0;
  font-size: 12px;
  line-height: 1.8;
  color: #a1b8aa;
}
.sidebar-bottom strong {
  color: #e4eee7;
  font-size: 13px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb span {
  color: #182d24;
  margin-left: 14px;
}
.topbar-right {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.avatar {
  background: #eaf0e9;
  color: #2a5940;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.content {
  max-width: 1580px;
  margin: auto;
  padding: 34px 36px 60px;
}
.eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  margin-bottom: 10px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
h1 {
  font-size: 29px;
  letter-spacing: -1.3px;
  margin: 0 0 10px;
  font-weight: 730;
}
p {
  line-height: 1.65;
}
.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.stat-symbol {
  color: #7c9885;
}
.stat-value {
  font-size: 29px;
  font-weight: 730;
  letter-spacing: -1px;
  margin: 18px 0 10px;
  font-variant-numeric: tabular-nums;
}
.stat-value small {
  font-size: 15px;
  margin-left: 4px;
}
.stat-note {
  font-size: 11px;
  color: var(--muted);
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
}
.grid-two > .panel {
  margin-bottom: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid #eef0ef;
}
.panel-head h2 {
  font-size: 16px;
  letter-spacing: -0.4px;
  margin: 0;
}
.panel-head small {
  color: var(--muted);
  font-size: 12px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: #fafbf9;
  padding: 14px 24px;
}
td {
  padding: 18px 24px;
  border-top: 1px solid #eef0ef;
  font-size: 13px;
}
td strong {
  font-weight: 650;
}
td small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.badge {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  background: #edf5ef;
  color: #2e6847;
  padding: 5px 8px;
  font-weight: 600;
}
.badge.warn {
  background: #fcf3df;
  color: #8a5b13;
}
.badge.gray {
  background: #eef0f3;
  color: #647084;
}
.badge.red {
  background: #fff0ed;
  color: #b63c32;
}
.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.empty strong {
  font-size: 15px;
  display: block;
  color: #243b30;
  margin-bottom: 5px;
}
.empty button {
  margin-top: 15px;
}
.setup {
  padding: 2px 24px 18px;
}
.step {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #eef0ef;
  align-items: flex-start;
}
.step:last-child {
  border: 0;
}
.step-num {
  background: #f0f4ef;
  color: #4b7357;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}
.step.done .step-num {
  background: #dceee2;
  color: #23613d;
}
.step strong {
  font-size: 13px;
}
.step p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
}
.step .text-button {
  margin-left: auto;
  white-space: nowrap;
}
.notice {
  padding: 18px 22px;
  background: #eaf0e9;
  border: 1px solid #d8e4d8;
  border-radius: 10px;
  display: flex;
  gap: 14px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #42634d;
}
.notice strong {
  display: block;
  color: #234d35;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.search {
  max-width: 340px;
  flex: 1;
}
.toolbar select {
  width: auto;
  max-width: 180px;
}
.count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
input,
select {
  min-height: 44px;
  border: 1px solid #d9dfdb;
  border-radius: 8px;
  padding: 10px 12px;
  color: #16202f;
  background: #fff;
  width: 100%;
  font-size: 14px;
}
input:focus,
select:focus {
  border-color: #39745a;
  outline: 2px solid #e0eee5;
}
label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin: 17px 0 7px;
}
label small {
  font-weight: 400;
  color: var(--muted);
}
.row-actions {
  display: flex;
  gap: 6px;
}
.row-actions button {
  font-size: 11px;
  min-height: 32px;
  padding: 6px 9px;
}
.connection {
  padding: 22px 24px;
  border-bottom: 1px solid #eef0ef;
  display: flex;
  align-items: center;
  gap: 14px;
}
.connection:last-child {
  border: 0;
}
.connection-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #f0f3ef;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #4b6654;
}
.connection-info {
  flex: 1;
}
.connection-info strong {
  font-size: 13px;
}
.connection-info small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.muted {
  color: var(--muted);
}
.text-red {
  color: #b63c32;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-intro {
  background: #142d27;
  color: #fff;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-intro .eyebrow {
  color: #a9d4b9;
}
.login-intro h1 {
  font-size: 45px;
  line-height: 1.35;
  letter-spacing: -2px;
  margin: 25px 0;
}
.login-intro p {
  color: #afc7b7;
  font-size: 15px;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 30px;
}
.login-form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 {
  font-size: 25px;
  margin: 0 0 12px;
}
.login-form p {
  color: var(--muted);
  font-size: 13px;
}
.login-form button {
  width: 100%;
  margin-top: 23px;
}
.login-error {
  color: #b63c32 !important;
  min-height: 24px;
}
.login-footer {
  font-size: 11px !important;
  margin-top: 30px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  width: min(500px, calc(100% - 30px));
  max-height: 90vh;
  box-shadow: 0 30px 100px #10291f33;
}
dialog::backdrop {
  background: #10291f66;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 23px 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h2 {
  font-size: 20px;
  margin: 0;
}
.close {
  border: 0;
  background: none;
  font-size: 22px;
  padding: 0 8px;
  color: var(--muted);
}
.modal-body {
  padding: 2px 26px 26px;
}
.modal-body > p {
  font-size: 13px;
  color: var(--muted);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 25px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}
.checkbox-label input {
  width: 16px;
  min-height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}
.form-error {
  color: #b63c32;
  font-size: 13px;
  line-height: 1.6;
  min-height: 20px;
}
.detail-box {
  background: #f4f7f4;
  border-radius: 8px;
  padding: 15px;
  font-size: 13px;
  line-height: 1.8;
  margin: 15px 0;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #173d2b;
  color: white;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 13px;
  z-index: 100;
  box-shadow: 0 8px 25px #10291f30;
  display: none;
  max-width: 90vw;
}
#toast.show {
  display: block;
}
.section-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0;
}
.activity {
  padding: 0 24px;
}
.activity-row {
  padding: 15px 0;
  border-bottom: 1px solid #eef0ef;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.activity-row time {
  color: var(--muted);
  white-space: nowrap;
  font-size: 11px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 45px;
  }
  .stats {
    gap: 22px;
  }
  .stat {
    padding: 28px;
  }
}
@media (max-width: 1100px) {
  .content {
    padding: 28px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .login-intro {
    padding: 45px;
  }
  .login-intro h1 {
    font-size: 34px;
  }
}
@media (max-width: 800px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 18px 16px 12px;
  }
  .brand {
    padding: 0 5px 16px;
    font-size: 16px;
  }
  .brand small {
    font-size: 9px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
    gap: 5px;
  }
  .nav button {
    white-space: nowrap;
    padding: 10px 13px;
    font-size: 12px;
    min-height: 40px;
  }
  .nav svg {
    display: none;
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 60px;
    padding: 0 18px;
  }
  .topbar-right .date {
    display: none;
  }
  .content {
    padding: 25px 16px 40px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  h1 {
    font-size: 26px;
  }
  .subtitle {
    font-size: 13px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px 15px;
  }
  .stat-value {
    font-size: 23px;
    margin: 14px 0 8px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-note {
    font-size: 10px;
  }
  .panel-head {
    padding: 18px;
  }
  td,
  th {
    padding: 15px 18px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .count {
    width: 100%;
    margin: 0;
  }
  .notice {
    font-size: 12px;
    padding: 16px;
  }
  .login-page {
    display: block;
  }
  .login-intro {
    padding: 35px 28px;
  }
  .login-intro h1 {
    font-size: 28px;
    margin: 14px 0;
  }
  .login-intro p {
    font-size: 13px;
    margin: 0;
  }
  .login-main {
    padding: 35px 24px;
  }
  .modal-body {
    padding: 0 20px 20px;
  }
  .modal-head {
    padding: 20px 20px 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .connection {
    padding: 18px;
  }
  .step {
    gap: 10px;
  }
  .step .text-button {
    font-size: 11px;
    padding: 6px;
  }
  .topbar-right {
    gap: 5px;
  }
  .breadcrumb {
    font-size: 12px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 800px) {
  .topbar-right .avatar {
    display: none;
  }
  .topbar-right .text-button {
    padding: 6px 5px;
    font-size: 11px;
  }
}

.seller-dialog {
  width: min(680px, calc(100% - 30px));
}
.seller-dialog h3 {
  margin: 26px 0 12px;
  font-size: 16px;
}
.seller-dialog fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.seller-dialog legend {
  font-weight: 600;
  padding: 0 6px;
}
.seller-dialog .form-row > div {
  min-width: 0;
}
