@font-face {
  font-family: "Pretendard";
  src: url("../../font/Pretendard/Pretendard-Medium.d88ea6aec529.otf") format("opentype");
  font-weight: 500;
}

@font-face {
  font-family: "Pretendard";
  src: url("../../font/Pretendard/Pretendard-Bold.f31898777617.otf") format("opentype");
  font-weight: 700;
}

:root {
  --bo-primary: #3c50e0;
  --bo-primary-soft: #eef2ff;
  --bo-bg: #f6f7fb;
  --bo-surface: #ffffff;
  --bo-surface-2: #f9fafb;
  --bo-border: #e5e7eb;
  --bo-border-strong: #d7dce5;
  --bo-text: #1f2937;
  --bo-muted: #6b7280;
  --bo-success: #12805c;
  --bo-success-bg: #eaf7f0;
  --bo-warning: #9a6700;
  --bo-warning-bg: #fff7df;
  --bo-danger: #c2410c;
  --bo-danger-bg: #fff1ed;
  --bo-info: #2563eb;
  --bo-info-bg: #eff6ff;
  --bo-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  --bo-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bo-bg);
}

body,
.bo-body {
  min-height: 100vh;
  margin: 0;
  background: var(--bo-bg);
  color: var(--bo-text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.bo-shell {
  display: flex;
  min-height: 100vh;
}

.bo-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.bo-page {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px;
}

.bo-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bo-kicker,
.bo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
  color: var(--bo-muted);
  font-size: 12px;
  font-weight: 700;
}

.bo-page-title {
  margin: 0;
  color: var(--bo-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.bo-page-description {
  margin: 8px 0 0;
  color: var(--bo-muted);
  font-size: 13px;
}

.bo-page-actions,
.bo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.bo-page-heading > div,
.bo-page-actions,
.bo-page-actions form,
.bo-toolbar {
  min-width: 0;
  max-width: 100%;
}

.bo-toolbar input,
.bo-toolbar select,
.bo-toolbar textarea,
.bo-toolbar .text-box {
  flex: 1 1 220px;
  min-width: 0;
}

.bo-filter-form,
.bo-form-grid {
  display: grid;
  gap: 14px;
}

.bo-form-grid > div {
  min-width: 0;
}

.bo-filter-actions,
.bo-action-strip,
.bo-action-strip__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bo-filter-actions,
.bo-action-strip {
  justify-content: flex-end;
}

.bo-action-strip form {
  display: inline-flex;
  min-width: 0;
}

.bo-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.bo-panel,
.order-summary,
.card,
.rounded-sm.border,
.bo-table-wrap {
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow);
}

.bo-panel,
.card,
.order-summary {
  min-width: 0;
  max-width: 100%;
  padding: 16px;
}

.order-summary h5,
.card-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.order-summary p,
.card-text {
  margin: 4px 0;
  color: var(--bo-muted);
  font-size: 13px;
}

.bo-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--bo-border);
  background: rgba(255, 255, 255, 0.92);
  padding: 0 24px;
  backdrop-filter: blur(10px);
}

.bo-header__title {
  color: var(--bo-text);
  font-size: 15px;
  font-weight: 700;
}

.bo-header__meta {
  color: var(--bo-muted);
  font-size: 12px;
}

.bo-header__user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bo-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--bo-primary-soft);
  color: var(--bo-primary);
  font-size: 12px;
  font-weight: 700;
}

.bo-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  width: 264px;
  height: 100vh;
  flex: 0 0 264px;
  flex-direction: column;
  border-right: 1px solid var(--bo-border);
  background: var(--bo-surface);
}

.bo-sidebar__brand {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 22px;
  border-bottom: 1px solid var(--bo-border);
}

.bo-sidebar__brand img {
  width: 156px;
  height: auto;
}

.bo-sidebar__nav {
  overflow-y: auto;
  padding: 16px 14px 24px;
}

.bo-sidebar__section {
  margin-bottom: 20px;
}

.bo-sidebar__heading {
  margin: 0 8px 8px;
  color: var(--bo-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bo-sidebar__link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  border-radius: 7px;
  padding: 8px 10px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.bo-sidebar__link:hover,
.bo-sidebar__link.is-active {
  background: var(--bo-primary-soft);
  color: var(--bo-primary);
}

.bo-sidebar__sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 0 30px;
}

.bo-sidebar__sub a {
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--bo-muted);
  font-size: 12px;
}

.bo-sidebar__sub a:hover,
.bo-sidebar__sub a.is-active {
  background: var(--bo-surface-2);
  color: var(--bo-primary);
}

.bo-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: currentColor;
}

.bo-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.bo-stat-grid,
.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.col,
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-8 {
  min-width: 0;
}

.col {
  grid-column: span 12;
}

.col-md-1 {
  grid-column: span 1;
}

.col-md-2 {
  grid-column: span 2;
}

.col-md-3 {
  grid-column: span 3;
}

.col-md-4 {
  grid-column: span 4;
}

.col-md-8 {
  grid-column: span 8;
}

.align-items-end {
  align-items: end;
}

.align-items-center {
  align-items: center;
}

.container-fluid {
  width: 100%;
  margin: 0;
  padding: 0;
}

.d-flex,
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1 1 0%;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-content-end {
  justify-content: flex-end;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.space-x-3\.5 > * + * {
  margin-left: 10px;
}

.grid {
  display: grid;
}

.grid-cols-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.grid-cols-9 {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.col-span-4 {
  grid-column: span 4;
}

.col-span-6 {
  grid-column: span 6;
}

.col-span-12 {
  grid-column: span 12;
}

.col-end-8 {
  grid-column-end: 8;
}

.col-end-1 {
  grid-column-end: 1;
}

.col-end-9 {
  grid-column-end: 9;
}

.col-end-10 {
  grid-column-end: 10;
}

.place-content-end {
  place-content: end;
}

.hidden {
  display: none;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--bo-primary);
}

.text-lg {
  font-size: 16px;
}

.text-sm {
  font-size: 12px;
}

.text-black {
  color: var(--bo-text);
}

.text-muted,
.text-bodydark2,
.text-bodydark1 {
  color: var(--bo-muted);
}

.font-semibold,
.font-medium {
  font-weight: 700;
}

.mt-1 {
  margin-top: 4px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}

.mt-6 {
  margin-top: 24px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 4px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mb-6 {
  margin-bottom: 24px;
}

.me-2 {
  margin-right: 8px;
}

.mx-auto {
  margin-right: auto;
  margin-left: auto;
}

.p-1 {
  padding: 4px;
}

.px-4 {
  padding-right: 16px;
  padding-left: 16px;
}

.py-4 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.px-5 {
  padding-right: 20px;
  padding-left: 20px;
}

.pt-6 {
  padding-top: 24px;
}

.pb-2\.5 {
  padding-bottom: 10px;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto,
.table-responsive,
.max-w-full {
  overflow-x: auto;
}

.bo-table-scroll,
.max-w-full.overflow-x-auto,
.table-responsive,
.search_body {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bo-table-scroll > table,
.max-w-full.overflow-x-auto > table,
.table-responsive > table,
.search_body > table {
  margin: 0;
}

.h-screen {
  min-height: 100vh;
}

.w-full {
  width: 100%;
}

.w-20 {
  width: 80px;
}

.w-40 {
  width: 160px;
}

.h-20 {
  height: 80px;
}

.max-w-screen-2xl {
  max-width: 1680px;
}

.rounded-sm {
  border-radius: var(--bo-radius);
}

.shadow-default,
.shadow-2,
.drop-shadow-1 {
  box-shadow: var(--bo-shadow);
}

.border,
.border-stroke {
  border-color: var(--bo-border);
}

.bg-white {
  background: var(--bo-surface);
}

.bg-gray-2 {
  background: var(--bo-surface-2);
}

.dark\:bg-boxdark,
.dark\:bg-black,
.dark\:bg-meta-4 {
  background: var(--bo-surface);
}

.dark\:text-white,
.dark\:text-black {
  color: inherit;
}

.form-group {
  margin-bottom: 14px;
}

.col-form-label,
label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.form-control,
.text-box,
input[type="text"],
input[type="number"],
input[type="date"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--bo-border-strong);
  border-radius: 7px;
  background: var(--bo-surface);
  color: var(--bo-text);
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--bo-primary);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--bo-primary);
  box-shadow: 0 0 0 3px rgba(60, 80, 224, 0.12);
}

.form-text,
small {
  display: block;
  margin-top: 6px;
  color: var(--bo-muted);
  font-size: 12px;
}

.btn,
.bo-btn,
button,
input[type="submit"],
.upload_button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--bo-border-strong);
  border-radius: 7px;
  background: var(--bo-surface);
  color: #374151;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover,
.bo-btn:hover,
button:hover,
input[type="submit"]:hover,
.upload_button:hover {
  border-color: #b9c0cc;
  background: var(--bo-surface-2);
}

.btn-primary,
.bo-btn--primary,
.confirmBtn {
  border-color: var(--bo-primary);
  background: var(--bo-primary);
  color: #fff;
}

.btn-success,
.bo-btn--success {
  border-color: #b6e2ce;
  background: var(--bo-success-bg);
  color: var(--bo-success);
}

.btn-warning,
.bo-btn--warning {
  border-color: #f0d48a;
  background: var(--bo-warning-bg);
  color: var(--bo-warning);
}

.btn-danger,
.bo-btn--danger {
  border-color: #f2c5b8;
  background: var(--bo-danger-bg);
  color: var(--bo-danger);
}

.btn-secondary,
.bo-btn--secondary,
.closeModalBtn {
  border-color: var(--bo-border-strong);
  background: var(--bo-surface);
  color: #374151;
}

.btn-sm {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.close,
.closeModalBtn,
.confirmBtn {
  float: none;
  font-size: 13px;
  font-weight: 700;
}

.modal,
.fixmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  overflow: auto;
  background: rgba(17, 24, 39, 0.42);
  padding: 24px;
}

.modal-content,
.order-content {
  width: min(520px, 100%);
  height: auto;
  margin: 10vh auto;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  background: var(--bo-surface);
  padding: 20px;
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.16);
}

.order-content {
  width: min(1180px, 100%);
  margin-top: 4vh;
}

.fontsize {
  margin: 0 0 12px;
  color: var(--bo-text);
  font-size: 16px;
  font-weight: 700;
}

.modal-content form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-content .closeModalBtn,
.modal-content .confirmBtn {
  margin-top: 8px;
}

.modal-content .confirmBtn + .closeModalBtn,
.modal-content .closeModalBtn + .confirmBtn {
  margin-left: 8px;
}

.bo-content table,
.table,
table.w-full {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow);
  font-size: 13px;
}

.bo-content thead tr,
.table thead tr {
  background: var(--bo-surface-2);
}

.bo-content th,
.table th {
  border-bottom: 1px solid var(--bo-border);
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.bo-content th,
.bo-content td,
.table th,
.table td {
  padding: 12px 14px;
  vertical-align: middle;
}

.bo-content tbody tr + tr td,
.table tbody tr + tr td,
.bo-content tbody + tbody tr td {
  border-top: 1px solid var(--bo-border);
}

.bo-content tbody tr:hover,
.table tbody tr:hover {
  background: #fbfcff;
}

.bo-content td p,
.table td p {
  margin: 0;
}

.no-wrap-table,
.table-auto {
  white-space: nowrap;
}

.image-container,
.bo-thumb {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--bo-border);
  border-radius: 7px;
  background: var(--bo-surface-2);
}

.zoomed-image,
td img,
.object-contain {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.badge,
.bo-badge,
.inline-flex.rounded-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.bg-success,
.text-success,
.badge.bg-success {
  background: var(--bo-success-bg);
  color: var(--bo-success);
}

.bg-warning,
.badge.bg-warning {
  background: var(--bo-warning-bg);
  color: var(--bo-warning);
}

.bg-danger,
.badge.bg-danger {
  background: var(--bo-danger-bg);
  color: var(--bo-danger);
}

.bg-primary,
.bg-info,
.badge.bg-primary,
.badge.bg-info {
  background: var(--bo-info-bg);
  color: var(--bo-info);
}

.bg-secondary,
.badge.bg-secondary {
  background: #f3f4f6;
  color: #4b5563;
}

nav[aria-label="Page navigation"] {
  margin: 18px 0;
}

nav[aria-label="Page navigation"] ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav[aria-label="Page navigation"] a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--bo-border);
  border-radius: 7px;
  background: var(--bo-surface);
  padding: 7px 10px;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

nav[aria-label="Page navigation"] a[aria-current="page"] {
  border-color: var(--bo-primary);
  background: var(--bo-primary-soft);
  color: var(--bo-primary);
}

.section-divider {
  height: 1px;
  margin: 8px 0 16px;
  background: var(--bo-border);
}

.search_body {
  overflow-x: auto;
}

.navbar {
  display: none;
}

.pr-2 {
  padding-right: 8px;
}

.content {
  gap: 8px;
}

.bo-result-panel {
  margin-top: 20px;
}

.bo-content .bo-result-table,
.bo-result-table {
  min-width: 0;
  table-layout: fixed;
}

.bo-result-table th,
.bo-result-table td {
  text-align: center;
  overflow-wrap: anywhere;
}

.tab-view,
.tab-view-body,
.modal-body {
  min-width: 0;
  max-width: 100%;
}

.tab-switch-row,
.tab-switch {
  min-width: 0;
}

.tab-switch {
  align-items: center;
  gap: 8px;
}

@media (max-width: 960px) {
  .bo-shell {
    display: block;
  }

  .bo-sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    height: auto;
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid var(--bo-border);
    box-shadow: var(--bo-shadow);
  }

  .bo-sidebar__brand {
    height: 54px;
    padding: 0 14px;
  }

  .bo-sidebar__brand img {
    width: 128px;
  }

  .bo-sidebar__nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 12px 10px;
    scroll-snap-type: x proximity;
  }

  .bo-sidebar__section {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin: 0;
    scroll-snap-align: start;
  }

  .bo-sidebar__heading {
    display: none;
  }

  .bo-sidebar__link,
  .bo-sidebar__sub a {
    min-height: 34px;
    border: 1px solid var(--bo-border);
    background: var(--bo-surface);
    white-space: nowrap;
  }

  .bo-sidebar__sub {
    flex-direction: row;
    gap: 6px;
    margin: 0;
  }

  .bo-header {
    position: static;
    min-height: 56px;
    padding: 8px 14px;
  }

  .bo-header > div:first-child .bo-header__meta {
    display: none;
  }

  .bo-header__user {
    min-width: 0;
  }

  .bo-header__user > div {
    min-width: 0;
    text-align: right;
  }

  .bo-header__title,
  .bo-header__meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bo-page {
    padding: 14px;
  }

  .bo-page-heading {
    display: block;
  }

  .bo-page-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .bo-page-actions form,
  .bo-toolbar,
  .bo-filter-actions,
  .bo-action-strip {
    width: 100%;
    justify-content: flex-start;
  }

  .bo-panel,
  .card,
  .order-summary {
    padding: 14px;
  }

  .row,
  .bo-stat-grid {
    grid-template-columns: 1fr;
  }

  .col,
  .col-md-1,
  .col-md-2,
  .col-md-3,
  .col-md-4,
  .col-md-8 {
    grid-column: span 1;
  }

  .form-group.row {
    display: block;
  }

  .bo-content table,
  .table,
  table.w-full {
    min-width: 720px;
    font-size: 12px;
  }

  .bo-content th,
  .bo-content td,
  .table th,
  .table td {
    padding: 10px 12px;
  }

  .modal,
  .fixmodal {
    padding: 14px;
  }

  .modal-content,
  .order-content {
    width: 100%;
    margin: 5vh auto;
    padding: 16px;
  }

  .tab-switch {
    display: flex;
    flex-wrap: wrap;
  }

  .tab-switch > div {
    display: flex;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .bo-page {
    padding: 12px;
  }

  .bo-page-title {
    font-size: 20px;
  }

  .bo-page-description {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .bo-toolbar .bo-btn,
  .bo-toolbar .btn,
  .bo-toolbar button,
  .bo-filter-actions .bo-btn,
  .bo-filter-actions .btn,
  .bo-filter-actions button,
  .bo-action-strip .bo-btn,
  .bo-action-strip .btn,
  .bo-action-strip button {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    white-space: normal;
  }

  .bo-content table,
  .table,
  table.w-full {
    min-width: 660px;
  }

  .modal-content,
  .order-content {
    max-height: calc(100vh - 28px);
    margin: 2vh auto;
    overflow: auto;
  }

  .bo-result-table {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .bo-header {
    gap: 10px;
  }

  .bo-avatar {
    display: none;
  }

  .bo-header__user > div {
    max-width: 152px;
  }

  .bo-page-title {
    font-size: 18px;
  }

  .bo-toolbar,
  .bo-filter-actions,
  .bo-action-strip,
  .bo-action-strip__group {
    flex-direction: column;
    align-items: stretch;
  }

  .bo-toolbar > *,
  .bo-filter-actions > *,
  .bo-action-strip > *,
  .bo-action-strip__group > *,
  .bo-action-strip form,
  .bo-toolbar button,
  .bo-toolbar .bo-btn,
  .bo-toolbar .btn,
  .bo-filter-actions button,
  .bo-filter-actions .bo-btn,
  .bo-filter-actions .btn {
    width: 100%;
  }

  .bo-content table,
  .table,
  table.w-full {
    min-width: 600px;
  }

  .bo-result-table,
  .bo-result-table thead,
  .bo-result-table tbody,
  .bo-result-table tr,
  .bo-result-table th,
  .bo-result-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }
}

/* Terms policy pages */
.terms-site {
  min-height: 100vh;
  background: #f6f7fb;
  color: var(--bo-text);
}

.terms-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.terms-hero,
.term-detail-hero {
  border-bottom: 1px solid var(--bo-border);
  background: var(--bo-surface);
}

.terms-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  padding: 28px 0 34px;
}

.terms-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.terms-hero__inner .terms-brand {
  grid-column: 1 / -1;
}

.terms-brand__mark {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.terms-brand__sub {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-left: 1px solid var(--bo-border-strong);
  color: var(--bo-muted);
  padding-left: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.terms-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--bo-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.terms-hero__copy h1,
.term-detail-heading h1 {
  max-width: 760px;
  margin: 0;
  color: #111827;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.terms-hero__copy p,
.term-detail-heading p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--bo-muted);
  font-size: 15px;
  line-height: 1.7;
}

.terms-hero__aside {
  align-self: end;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  background: var(--bo-surface-2);
  padding: 18px;
}

.terms-hero__aside span,
.term-detail-label,
.term-detail-id {
  color: var(--bo-muted);
  font-size: 12px;
  font-weight: 700;
}

.terms-hero__aside strong {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.terms-hero__aside p {
  margin: 10px 0 0;
  color: var(--bo-muted);
  font-size: 13px;
  line-height: 1.6;
}

.terms-section--list {
  padding: 34px 0 48px;
}

.terms-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.terms-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid #cdd5ff;
  border-radius: 999px;
  background: var(--bo-primary-soft);
  color: var(--bo-primary);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.terms-section-heading h2 {
  margin: 12px 0 0;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.terms-section-heading p {
  margin: 8px 0 0;
  color: var(--bo-muted);
  font-size: 14px;
  line-height: 1.6;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.terms-card {
  display: grid;
  min-height: 134px;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow);
  padding: 18px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.terms-card:hover,
.terms-card:focus-visible {
  border-color: #c5cdfb;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

.terms-card:focus-visible,
.terms-back-link:focus-visible,
.terms-footer__links a:focus-visible {
  outline: 3px solid rgba(60, 80, 224, 0.18);
  outline-offset: 2px;
}

.terms-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--bo-radius);
  background: var(--bo-primary-soft);
  font-size: 22px;
  line-height: 1;
}

.terms-card__body {
  min-width: 0;
}

.terms-card__body strong {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.terms-card__body span {
  display: block;
  margin-top: 8px;
  color: var(--bo-muted);
  font-size: 13px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.terms-card__arrow {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--bo-border);
  border-radius: 50%;
  color: var(--bo-primary);
}

.terms-footer {
  border-top: 1px solid var(--bo-border);
  background: var(--bo-surface);
  padding: 30px 0 28px;
}

.terms-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.terms-footer__section h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.terms-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.terms-footer__links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid var(--bo-border);
  border-radius: 999px;
  background: var(--bo-surface);
  color: #374151;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.terms-footer__links a:hover,
.terms-footer__links a.is-emphasis {
  border-color: #cdd5ff;
  background: var(--bo-primary-soft);
  color: var(--bo-primary);
}

.terms-footer__info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  border-top: 1px solid var(--bo-border);
  padding-top: 22px;
}

.terms-footer__info span {
  color: var(--bo-muted);
  font-size: 12px;
  line-height: 1.6;
}

.terms-footer__info strong {
  display: block;
  color: #374151;
  font-weight: 700;
}

.terms-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 18px;
  color: var(--bo-muted);
  font-size: 12px;
}

.terms-footer__bottom p {
  margin: 0;
}

.terms-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.terms-back-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--bo-border-strong);
  border-radius: 7px;
  background: var(--bo-surface);
  color: #374151;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.terms-back-link:hover {
  border-color: #c5cdfb;
  background: var(--bo-primary-soft);
  color: var(--bo-primary);
  text-decoration: none;
}

.term-detail-heading {
  max-width: 780px;
  padding: 10px 0 34px;
}

.term-detail-section {
  padding: 28px 0 56px;
}

.term-detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.term-detail-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.term-detail-note {
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow);
  padding: 16px;
}

.term-detail-note h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.term-detail-note p {
  margin: 0;
  color: var(--bo-muted);
  font-size: 13px;
  line-height: 1.6;
  word-break: keep-all;
}

.term-detail-note dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.term-detail-note dl div {
  border-top: 1px solid var(--bo-border);
  padding-top: 10px;
}

.term-detail-note dt {
  margin-bottom: 3px;
  color: var(--bo-muted);
  font-size: 12px;
  font-weight: 700;
}

.term-detail-note dd {
  margin: 0;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.terms-back-link--panel {
  width: 100%;
}

.term-detail-document {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow);
}

.term-detail-document__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--bo-border);
  background: var(--bo-surface-2);
  padding: 14px 18px;
}

.term-detail-id {
  overflow-wrap: anywhere;
}

.term-body {
  padding: 32px;
  color: #374151;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

.term-body .term-main-title,
.term-body h1 {
  margin: 30px 0 16px;
  border-bottom: 1px solid var(--bo-border);
  padding-bottom: 12px;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.term-body .term-main-title:first-child,
.term-body h1:first-child {
  margin-top: 0;
}

.term-body .term-section-title,
.term-body h2 {
  margin: 28px 0 14px;
  border-left: 3px solid var(--bo-primary);
  border-radius: 6px;
  background: var(--bo-primary-soft);
  color: #1f2a60;
  padding: 12px 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.term-body .term-subtitle,
.term-body h3,
.term-body h4 {
  margin: 20px 0 10px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.term-body .term-paragraph,
.term-body .term-text,
.term-body p {
  margin: 0 0 14px;
  color: #374151;
  font-size: 15px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.term-body .term-list-item {
  margin: 0 0 10px;
  border-left: 3px solid #cdd5ff;
  border-radius: 6px;
  background: #fbfcff;
  color: #374151;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.term-body .term-table-wrapper {
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
}

.term-body .term-table-item {
  border-bottom: 1px solid var(--bo-border);
  background: #fbfcff;
  color: #374151;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.term-body .term-table-item:last-child {
  border-bottom: 0;
}

.term-body ul,
.term-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.term-body li {
  margin-bottom: 8px;
  color: #374151;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.term-body table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.term-body th,
.term-body td {
  border: 1px solid var(--bo-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.term-body th {
  background: var(--bo-surface-2);
  color: #111827;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .terms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-footer__info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .terms-hero__inner {
    grid-template-columns: 1fr;
  }

  .terms-hero__aside {
    align-self: stretch;
  }

  .term-detail-layout {
    grid-template-columns: 1fr;
  }

  .term-detail-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .terms-container {
    width: min(1120px, calc(100% - 28px));
  }

  .terms-hero__inner {
    padding: 22px 0 28px;
  }

  .terms-hero__copy h1,
  .term-detail-heading h1 {
    font-size: 24px;
  }

  .terms-hero__copy p,
  .term-detail-heading p {
    font-size: 14px;
  }

  .terms-section-heading {
    display: block;
  }

  .terms-grid,
  .terms-footer__grid,
  .terms-footer__info {
    grid-template-columns: 1fr;
  }

  .terms-card {
    min-height: 118px;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 16px;
  }

  .terms-card__icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .terms-card__arrow {
    display: none;
  }

  .terms-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .term-detail-section {
    padding: 18px 0 40px;
  }

  .term-detail-document__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .term-body {
    padding: 20px;
    font-size: 14px;
  }

  .term-body .term-main-title,
  .term-body h1 {
    font-size: 19px;
  }

  .term-body .term-section-title,
  .term-body h2 {
    font-size: 16px;
  }
}
