.admin-login-body,
.admin-body {
  min-height: 100vh;
  background: #f3f6fa;
}

.admin-shell {
  display: block;
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 276px;
  height: 100vh;
  min-height: 0;
  border-right: 0;
  background: linear-gradient(180deg, #10212d 0%, #0d3540 100%);
  padding: 24px 18px;
}

.admin-sidebar-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-sidebar .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-sidebar .brand img {
  width: 118px;
  height: auto;
}

.admin-sidebar .brand span {
  transform: translateY(7px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.admin-menu-close,
.admin-menu-open {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.admin-nav {
  flex: 1 1 auto;
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 6px 16px 0;
  margin-right: -6px;
}

.admin-nav::-webkit-scrollbar {
  width: 6px;
}

.admin-nav::-webkit-scrollbar-track {
  background: transparent;
}

.admin-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.admin-nav-group {
  display: grid;
  gap: 7px;
}

.admin-nav-group h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.43);
  padding: 0 8px 0 18px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.admin-nav-group.is-active h2 {
  color: rgba(255, 255, 255, 0.74);
}

.admin-nav-list {
  display: grid;
  gap: 6px;
}

.admin-nav a,
.admin-logout {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.76);
  padding: 0 14px 0 18px;
  font-weight: 700;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.admin-nav a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  margin-right: 12px;
  transition: background 220ms ease, transform 220ms ease;
}

.admin-nav a.is-active,
.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  transform: translateX(2px);
}

.admin-nav a.is-active::before,
.admin-nav a:hover::before {
  background: #49d4cf;
  transform: scale(1.25);
}

.admin-logout {
  flex: 0 0 auto;
  margin-top: auto;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.admin-logout:hover {
  color: #dc2626;
  transform: translateY(-2px);
}

.admin-workspace {
  min-width: 0;
  margin-left: 276px;
  background: #fff;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  border-bottom: 1px solid rgba(17, 17, 20, 0.08);
  background: #fff;
  padding: 0 clamp(20px, 3vw, 44px);
}

.admin-topbar > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-topbar strong {
  font-size: 18px;
}

.admin-topbar > div > span {
  color: #7b8190;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-site-link {
  margin-left: auto;
  border: 1px solid rgba(17, 17, 20, 0.1);
  border-radius: 999px;
  background: #fff;
  padding: 11px 16px;
  color: #333;
  font-size: 14px;
  font-weight: 800;
}

.admin-main {
  box-sizing: border-box;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 34px clamp(18px, 3vw, 46px) 70px;
}

.admin-main.is-wide {
  width: 100%;
  padding-right: clamp(12px, 1.35vw, 24px);
  padding-left: clamp(12px, 1.35vw, 24px);
}

.admin-main > .content-section {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.admin-board-list.content-section,
.admin-board-detail.content-section {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.admin-board-list .board-tools {
  align-items: flex-start;
}

.admin-board-tools-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-write-button {
  flex: none;
  height: 48px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
}

.admin-lang-switch {
  position: relative;
  flex: none;
}

.admin-lang-switch > summary {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(17, 17, 20, 0.1);
  border-radius: 999px;
  color: #333;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease;
}

.admin-lang-switch > summary::-webkit-details-marker {
  display: none;
}

.admin-lang-switch > summary .tabler-icon {
  width: 22px;
  height: 22px;
}

.admin-lang-switch-current {
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .admin-lang-switch > summary:hover {
    background: rgba(17, 17, 20, 0.06);
  }
}

.admin-lang-switch[open] > summary {
  background: rgba(17, 17, 20, 0.06);
}

.admin-lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 128px;
  gap: 2px;
  border: 1px solid #dfe4ec;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(17, 17, 20, 0.14);
}

.admin-lang-switch-option {
  display: flex;
  align-items: center;
  border-radius: 10px;
  padding: 11px 13px;
  color: #3d4451;
  font-size: 14px;
  font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {
  .admin-lang-switch-option:hover {
    background: var(--brand-soft);
    color: var(--brand-primary);
  }
}

.admin-lang-switch-option.is-active {
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.admin-board-list .board-table-head,
.admin-board-list .board-table-row {
  grid-template-columns: minmax(0, 1fr) 150px 110px 142px;
}

.admin-board-list .board-table.has-order-col .board-table-head,
.admin-board-list .board-table.has-order-col .board-table-row {
  grid-template-columns: 72px minmax(0, 1fr) 150px 110px 142px;
}

.board-table-order {
  align-self: center;
  justify-self: center;
  text-align: center;
  color: #111;
  font-weight: 800;
}

.admin-board-table-row {
  color: inherit;
}

.admin-board-table-row .board-table-title {
  color: inherit;
}

.admin-row-actions {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  justify-self: center;
  gap: 8px;
  line-height: 1;
}

.admin-row-actions > a,
.admin-inline-delete button,
.admin-detail-edit,
.admin-detail-delete button {
  display: inline-flex;
  min-width: 54px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.admin-inline-delete {
  display: inline-flex;
  max-width: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
  text-align: left;
}

.admin-inline-delete button,
.admin-detail-delete button {
  border-color: #fecaca;
  background: #fff5f5;
  color: #dc2626;
}

.admin-board-detail {
  margin-top: 18px;
  margin-bottom: 70px;
}

.admin-detail-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.admin-detail-actions .delete-form {
  max-width: none;
  margin: 0;
  text-align: left;
}

.admin-detail-actions a,
.admin-detail-actions button {
  min-width: 96px;
  height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 15px;
}

.admin-detail-edit {
  border-color: var(--brand-primary) !important;
  background: var(--brand-primary) !important;
  color: #fff !important;
}

.admin-detail-delete {
  margin: 0;
}

.admin-detail-delete button {
  height: 48px;
}

.admin-qna-reply-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-qna-reply-form .button {
  justify-self: end;
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-page-head h1 {
  margin: 0;
  color: #111114;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.admin-page-head span {
  display: block;
  margin-top: 10px;
  color: #667085;
  font-size: 16px;
  font-weight: 600;
}

.admin-page-actions {
  flex: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.metric-grid a {
  display: grid;
  gap: 10px;
  min-height: 150px;
  border: 1px solid rgba(17, 17, 20, 0.08);
  border-radius: 24px;
  background: #fff;
  padding: 24px;
  transition: border-color 220ms ease, transform 220ms ease;
}

.metric-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 157, 154, 0.32);
}

.metric-grid strong {
  color: var(--brand-primary);
  font-size: 42px;
  line-height: 1;
}

.metric-grid span {
  color: #3d4451;
  font-size: 16px;
  font-weight: 800;
}

.admin-panel,
.admin-board,
.admin-form,
.admin-qna-card {
  border: 1px solid rgba(17, 17, 20, 0.08);
  border-radius: 24px;
  background: #fff;
}

.admin-panel {
  margin-top: 18px;
  padding: 24px;
}

.admin-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f5;
  padding-bottom: 16px;
}

.admin-panel-head > div {
  display: grid;
  gap: 6px;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.admin-panel-head span {
  color: #858b98;
  font-weight: 700;
}

.admin-panel-more {
  flex: none;
  border: 1px solid #dfe4ec;
  border-radius: 999px;
  background: #fff;
  color: #3d4451;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.admin-panel-more:hover {
  border-color: rgba(0, 157, 154, 0.35);
  background: #edf8f8;
  color: var(--brand-primary);
}

.admin-guide-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.admin-guide-list li {
  position: relative;
  color: #4b5563;
  padding-left: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.admin-guide-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-primary);
}

.admin-help-text {
  margin: 0;
  border: 1px solid #e6f0ef;
  border-radius: 16px;
  background: #f6fbfb;
  color: #4b5563;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.admin-help-danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: #dc2626;
}

.admin-help-text + .admin-board,
.admin-help-text + .admin-form {
  margin-top: 14px;
}

.admin-guide-list code {
  border-radius: 8px;
  background: #edf8f8;
  padding: 2px 6px;
}

.admin-dashboard-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-analytics-panel {
  display: grid;
  align-content: start;
  gap: 22px;
}

.admin-analytics-block h3 {
  margin: 0;
  color: #111114;
  font-size: 17px;
}

.admin-analytics-list {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.admin-analytics-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf0f5;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
}

.admin-analytics-row:last-child {
  border-bottom: 0;
}

a.admin-analytics-row {
  transition: color 180ms ease;
}

a.admin-analytics-row:hover strong {
  color: var(--brand-primary);
}

.admin-analytics-row span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-analytics-row strong {
  overflow: hidden;
  color: #252b36;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-analytics-row small {
  overflow: hidden;
  color: #858b98;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-analytics-row b {
  border-radius: 999px;
  background: #edf8f8;
  color: var(--brand-primary);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
}

.admin-analytics-empty {
  margin: 8px 0 0;
  border-radius: 14px;
  background: #f7f9fc;
  color: #858b98;
  padding: 16px;
  font-size: 14px;
  font-weight: 800;
}

.admin-history-tools,
.admin-history-section {
  padding: 0;
}

.admin-history-tools.content-section {
  margin-top: 0;
  margin-bottom: 22px;
}

.admin-history-section.content-section {
  margin-top: 0;
  margin-bottom: 0;
}

.admin-history-tools .board-tools {
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  padding: 18px 20px;
}

.admin-history-tools .board-tools,
.admin-history-section .board-tools {
  margin-bottom: 12px;
}

.admin-history-tools .board-count {
  flex: none;
  color: #111114;
  font-size: 18px;
  font-weight: 900;
}

.admin-history-search {
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.admin-history-date-range {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-history-date-field {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.admin-history-date-field > span:first-child {
  flex: none;
  color: #697386;
  font-size: 13px;
  font-weight: 900;
}

.admin-history-date-picker {
  width: 150px;
}

.admin-history-date-picker > button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: #f7f9fc;
  padding: 0 36px 0 10px;
  color: #111114;
  font-size: 14px;
  font-weight: 900;
}

.admin-history-date-picker > button:focus,
.admin-history-date-picker.is-open > button {
  background: #edf8f8;
}

.admin-history-date-picker > button::after {
  position: absolute;
  right: 10px;
  width: 19px;
  height: 19px;
}

.admin-history-date-picker .admin-date-popover {
  width: 390px;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
}

.admin-history-date-picker .admin-calendar-head {
  margin-bottom: 14px;
}

.admin-history-date-picker .admin-calendar-head strong,
.admin-history-date-picker .admin-calendar-head button.admin-calendar-title strong {
  font-size: 19px;
}

.admin-history-date-picker .admin-calendar-head button {
  width: 44px;
  height: 44px;
}

.admin-history-date-picker .admin-calendar-head button.admin-calendar-title {
  width: auto;
  height: auto;
}

.admin-history-date-picker .admin-calendar-week,
.admin-history-date-picker .admin-calendar-grid {
  gap: 6px;
}

.admin-history-date-picker .admin-calendar-week span {
  padding: 10px 0;
  font-size: 13px;
}

.admin-history-date-picker .admin-calendar-grid button {
  min-height: 44px;
  border-radius: 14px;
  font-size: 15px;
}

.admin-history-date-range i {
  color: #98a2b3;
  font-style: normal;
  font-weight: 900;
}

.admin-history-search .board-search-box {
  width: min(420px, 30vw);
  height: 54px;
  border-color: #dfe4ec;
  border-radius: 14px;
}

.admin-history-search .board-search-box input {
  padding: 0 18px;
  color: #111114;
  font-size: 15px;
  font-weight: 800;
}

.admin-history-search .board-search-box button {
  flex-basis: 58px;
  width: 58px;
}

.admin-history-search .board-search-box button::before {
  top: 16px;
  left: 16px;
}

.admin-history-search .board-search-box button::after {
  top: 33px;
  left: 34px;
}

.admin-history-search .board-search-reset {
  height: 54px;
  border-color: #dfe4ec;
  border-radius: 14px;
  color: #111114;
  font-weight: 900;
}

.admin-history-search .board-search-reset:hover {
  border-color: rgba(0, 157, 154, 0.35);
  background: #edf8f8;
  color: var(--brand-primary);
}

.admin-history-source {
  width: 150px;
  height: 54px;
  border: 1px solid #dfe4ec;
  border-radius: 14px;
  background: #fff;
  color: #3d4451;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.admin-history-table {
  overflow: hidden;
  border: 1px solid rgba(17, 17, 20, 0.08);
  border-radius: 24px;
  background: #fff;
}

.admin-history-head,
.admin-history-row {
  display: grid;
  gap: 18px;
  align-items: center;
}

.admin-main.is-wide .admin-history-head,
.admin-main.is-wide .admin-history-row {
  gap: 14px;
}

.admin-product-click-history-table .admin-history-head,
.admin-product-click-history-table .admin-history-row {
  grid-template-columns: minmax(0, 1.35fr) 160px 72px minmax(0, 1.8fr);
}

.admin-main.is-wide .admin-product-click-history-table .admin-history-head,
.admin-main.is-wide .admin-product-click-history-table .admin-history-row {
  grid-template-columns: minmax(190px, 1.25fr) 148px 62px minmax(260px, 1.9fr);
}

.admin-search-history-table .admin-history-head,
.admin-search-history-table .admin-history-row {
  grid-template-columns: minmax(0, 1.1fr) 120px 76px 160px minmax(0, 1.6fr);
}

.admin-main.is-wide .admin-search-history-table .admin-history-head,
.admin-main.is-wide .admin-search-history-table .admin-history-row {
  grid-template-columns: minmax(180px, 1fr) 112px 68px 150px minmax(260px, 1.55fr);
}

.admin-history-head {
  min-height: 58px;
  border-bottom: 2px solid #111114;
  background: #f7f9fc;
  padding: 0 24px;
  color: #111114;
  font-size: 14px;
  font-weight: 900;
}

.admin-main.is-wide .admin-history-head {
  padding: 0 18px;
}

.admin-history-row {
  min-height: 92px;
  border-bottom: 1px solid #edf0f5;
  padding: 18px 24px;
}

.admin-main.is-wide .admin-history-row {
  padding: 16px 18px;
}

.admin-history-row:last-child {
  border-bottom: 0;
}

.admin-history-primary,
.admin-history-detail {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-history-primary strong,
.admin-history-detail span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-history-primary strong {
  color: #111114;
  font-size: 17px;
  font-weight: 900;
}

.admin-history-primary small,
.admin-history-row time,
.admin-history-row > span,
.admin-history-detail span {
  color: #697386;
  font-size: 14px;
  font-weight: 700;
}

.admin-history-row b {
  width: max-content;
  border-radius: 999px;
  background: #edf8f8;
  color: var(--brand-primary);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
}

.admin-history-pagination {
  margin-top: 18px;
}

.admin-board {
  overflow: hidden;
}

.admin-board-head,
.admin-board-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 170px 140px 84px;
  gap: 18px;
  align-items: center;
}

.admin-board.has-order-col .admin-board-head,
.admin-board.has-order-col .admin-board-row {
  grid-template-columns: 64px minmax(0, 1.4fr) 170px 140px 84px;
}

.admin-board-row .admin-board-order {
  color: #111114;
  font-weight: 800;
}

.admin-board-head {
  min-height: 58px;
  border-bottom: 2px solid #111114;
  background: #f7f9fc;
  padding: 0 24px;
  color: #111114;
  font-size: 14px;
  font-weight: 900;
}

.admin-board-row {
  min-height: 84px;
  border-bottom: 1px solid #edf0f5;
  padding: 18px 24px;
  transition: background 200ms ease;
}

.admin-board-row:last-child {
  border-bottom: 0;
}

a.admin-board-row:hover {
  background: #fbfcff;
}

.admin-board-row strong {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #111114;
  font-size: 18px;
  line-height: 1.3;
}

.admin-board-row small {
  width: max-content;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.admin-board-row span,
.admin-board-row time {
  color: #697386;
  font-weight: 700;
}

.admin-board-row em {
  justify-self: end;
  border-radius: 999px;
  background: #111114;
  color: #fff;
  padding: 8px 13px;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.admin-board-compact .admin-board-head,
.admin-board-compact .admin-board-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 160px;
}

.admin-user-board .admin-board-head,
.admin-user-board .admin-board-row {
  grid-template-columns: minmax(0, 1fr) 180px 150px 96px;
}

.admin-user-actions {
  display: inline-flex;
  justify-content: flex-end;
}

.admin-user-actions a {
  display: inline-flex;
  min-width: 62px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe4ec;
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.admin-user-actions a:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.admin-empty {
  padding: 34px 24px;
  color: #7b8190;
  font-weight: 700;
  text-align: center;
}

.admin-form {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.admin-form,
.admin-form > *,
.admin-form-grid,
.admin-form-grid > *,
.admin-field,
.admin-check,
.admin-select,
.admin-date,
.admin-rich-editor,
.admin-rich-area,
.admin-product-media-panel,
.admin-product-download-panel,
.admin-feature-picker {
  min-width: 0;
}

.admin-editor {
  max-width: 980px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quote-recipient-form {
  gap: 20px;
}

.quote-recipient-list {
  display: grid;
  gap: 10px;
}

.quote-recipient-head,
.quote-recipient-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(220px, 1.2fr) 96px;
  align-items: center;
  gap: 10px;
}

.quote-recipient-head {
  color: #6b7280;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 900;
}

.quote-recipient-row {
  border: 1px solid #e4e9f1;
  border-radius: 18px;
  background: #fff;
  padding: 12px;
}

.quote-recipient-row input[type="text"],
.quote-recipient-row input[type="email"],
.quote-recipient-row > input:not([type]) {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid #dfe4ec;
  border-radius: 14px;
  padding: 0 14px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.quote-recipient-active {
  width: 100%;
  justify-content: center;
  padding: 0 10px;
}

.quote-mail-config strong {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-field {
  display: grid;
  gap: 9px;
  color: #303846;
  font-size: 14px;
  font-weight: 900;
}

.admin-field-label {
  display: inline-flex;
  width: max-content;
  align-items: center;
}

.admin-required-mark {
  display: inline-flex;
  color: #dc2626;
  margin-right: 4px;
  font-weight: 900;
}

.admin-field input,
.admin-field textarea,
.admin-select > button,
.admin-date > button {
  min-width: 0;
  width: 100%;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  background: #fff;
  color: #111114;
  padding: 14px 15px;
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-select > button:focus,
.admin-date > button:focus,
.admin-select.is-open > button,
.admin-date.is-open > button {
  border-color: var(--brand-primary);
  background: #f7fbfb;
}

.admin-field textarea {
  min-height: 110px;
  line-height: 1.65;
  resize: vertical;
}

.admin-rich-source {
  display: none;
}

.admin-rich-editor {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  background: #fff;
}

.admin-rich-editor.has-error {
  border-color: #dc2626;
}

.admin-rich-editor.is-uploading {
  opacity: 0.72;
  pointer-events: none;
}

.admin-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #edf0f5;
  background: #f8fafc;
  padding: 8px;
}

.admin-rich-button-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-rich-button-group:not(:last-child) {
  border-right: 1px solid #dfe4ec;
  padding-right: 8px;
}

.admin-rich-toolbar button,
.admin-rich-style-select select,
.admin-rich-image-size select {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  background: #fff;
  color: #303846;
  padding: 0 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.admin-rich-style-select select,
.admin-rich-image-size select {
  min-width: 116px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #111 50%) calc(100% - 15px) 14px / 7px 7px no-repeat,
    linear-gradient(135deg, #111 50%, transparent 50%) calc(100% - 10px) 14px / 7px 7px no-repeat,
    #fff;
  padding: 0 32px 0 12px;
}

.admin-rich-image-size select {
  min-width: 104px;
}

.admin-rich-toolbar button:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.admin-rich-toolbar button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-rich-image-input {
  display: none;
}

.admin-rich-color-tool {
  position: relative;
  display: inline-flex;
}

.admin-rich-color-trigger {
  position: relative;
  min-width: 38px;
  font-size: 16px !important;
}

.admin-rich-color-trigger::after {
  position: absolute;
  right: 9px;
  bottom: 5px;
  left: 9px;
  height: 3px;
  border-radius: 999px;
  background: var(--active-color, #111114);
  content: "";
}

.admin-rich-color-trigger.is-background {
  background: var(--active-bg, #fff);
}

.admin-rich-color-trigger.is-background span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-rich-color-trigger.is-background::after {
  display: none;
}

.admin-rich-color-popover {
  position: absolute;
  top: 42px;
  left: 0;
  z-index: 12;
  display: grid;
  gap: 10px;
  width: 236px;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.admin-rich-color-popover[hidden] {
  display: none;
}

.admin-rich-color-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.admin-rich-swatch {
  width: 30px;
  min-width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
}

.admin-rich-swatch::before {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(17, 17, 20, 0.16);
  border-radius: 999px;
  background: var(--swatch);
  content: "";
}

.admin-rich-color-popover label {
  display: grid;
  gap: 6px;
  color: #303846;
  font-size: 12px;
  font-weight: 900;
}

.admin-rich-color-popover input {
  height: 38px;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.admin-rich-color-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.admin-rich-color-actions button {
  height: 34px;
  border-radius: 999px;
  padding: 0 12px;
}

.admin-rich-color-actions button:last-child {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.admin-rich-color-popover input:focus {
  border-color: var(--brand-primary);
  outline: none;
}

.admin-rich-area {
  min-height: 260px;
  outline: none;
  padding: 18px;
  color: #111114;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
}

.admin-rich-area:focus {
  background: #fbfefe;
}

.admin-rich-area:empty::before {
  content: attr(data-placeholder);
  color: #9aa3b2;
}

.admin-rich-area a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-rich-area img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.admin-rich-area img.is-selected {
  outline: 3px solid var(--brand-primary);
  outline-offset: 3px;
}

.admin-rich-area hr {
  width: 100%;
  height: 1px;
  border: 0;
  background: #dfe4ec;
  margin: 22px 0;
}

.admin-rich-link-popover {
  position: absolute;
  top: 52px;
  right: 12px;
  z-index: 10;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 24px));
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.admin-rich-link-popover[hidden] {
  display: none;
}

.admin-rich-link-popover label {
  display: grid;
  gap: 7px;
  color: #303846;
  font-size: 13px;
  font-weight: 900;
}

.admin-rich-link-popover input {
  height: 44px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
}

.admin-rich-link-popover div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-rich-link-popover button {
  height: 38px;
  border: 1px solid #dfe4ec;
  border-radius: 999px;
  background: #fff;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}

.admin-rich-link-popover [data-rich-link-apply] {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.admin-select,
.admin-date {
  position: relative;
  display: block;
}

.admin-select > button,
.admin-date > button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  cursor: pointer;
  text-align: left;
}

.admin-select > button::after,
.admin-date > button::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #111114;
  border-bottom: 2px solid #111114;
  transform: rotate(45deg) translateY(-2px);
}

.admin-date > button::after {
  width: 18px;
  height: 18px;
  border: 2px solid #111114;
  border-radius: 5px;
  background:
    linear-gradient(#111114, #111114) 0 4px / 100% 2px no-repeat,
    linear-gradient(#111114, #111114) 5px 10px / 3px 3px no-repeat,
    linear-gradient(#111114, #111114) 11px 10px / 3px 3px no-repeat;
  transform: none;
}

.admin-select-options,
.admin-date-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: 100%;
  min-width: 220px;
  border: 1px solid #dfe4ec;
  border-radius: 18px;
  background: #fff;
  padding: 8px;
}

.admin-select-options button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 12px 13px;
  color: #3d4451;
  cursor: pointer;
  font-weight: 800;
}

.admin-select-options button:hover,
.admin-select-options button[aria-selected="true"] {
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.admin-select-options button[aria-selected="true"]::after {
  content: "";
  width: 7px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.admin-date-popover {
  width: 320px;
}

.admin-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.admin-calendar-head strong {
  font-size: 16px;
}

.admin-calendar-head button,
.admin-calendar-grid button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.admin-calendar-head button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: #111114;
  font-size: 22px;
}

.admin-calendar-head button.admin-calendar-title {
  width: auto;
  min-width: 36px;
  height: auto;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: inherit;
}

.admin-calendar-head button.admin-calendar-title strong {
  font-size: 16px;
}

.admin-calendar-head button:hover {
  background: #f1f5f9;
}

.admin-calendar-week,
.admin-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.admin-calendar-week span {
  color: #8b93a1;
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.admin-calendar-grid button {
  aspect-ratio: 1;
  border-radius: 12px;
  color: #303846;
  font-weight: 800;
}

.admin-calendar-grid button:hover,
.admin-calendar-grid button.is-selected {
  background: var(--brand-primary);
  color: #fff;
}

.admin-calendar-grid button.is-muted {
  color: #c0c7d2;
}

.admin-calendar-years {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.admin-calendar-years button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 14px 0;
  border-radius: 12px;
  color: #303846;
  font-weight: 800;
  font-size: 15px;
}

.admin-calendar-years button:hover,
.admin-calendar-years button.is-selected {
  background: var(--brand-primary);
  color: #fff;
}

.admin-file > span:not(.admin-field-label) {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #fbfcff;
  padding: 0 16px;
}

.admin-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-file strong {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: #4b5563;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-file > span:not(.admin-field-label)::after {
  content: "파일 선택";
  flex: none;
  border-radius: 999px;
  background: #111114;
  color: #fff;
  padding: 9px 12px;
  font-size: 13px;
}

.admin-file.is-multiple-file > span:not(.admin-field-label)::after {
  content: "파일 추가";
}

.admin-file em {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #7b8190;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.admin-current-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: -8px;
  color: #7b8190;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-current-file span {
  min-width: 0;
}

.admin-remove-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dc2626;
  cursor: pointer;
  white-space: nowrap;
}

.admin-remove-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: #dc2626;
}

.admin-selected-file-list {
  display: grid;
  gap: 8px;
}

.admin-selected-file-list[hidden] {
  display: none;
}

.admin-selected-file-item {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.admin-selected-file-item span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: #303846;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.admin-selected-file-item small {
  flex: none;
  color: #7b8190;
  font-size: 12px;
  font-weight: 800;
}

.admin-selected-file-remove {
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-product-current-files {
  display: grid;
  gap: 8px;
}

.admin-product-current-files > strong {
  color: #303846;
  font-size: 13px;
  font-weight: 900;
}

.admin-product-current-file {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.admin-product-current-file span {
  overflow: hidden;
  color: #303846;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.admin-product-current-file em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dc2626;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.admin-slide-preview {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.8fr);
  gap: 16px;
}

.admin-slide-preview figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  background: #f8fafc;
}

.admin-slide-preview img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.admin-slide-preview figcaption {
  border-top: 1px solid #edf0f5;
  color: #667085;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.admin-setting-preview {
  display: grid;
  gap: 10px;
  border-radius: 18px;
  background: #111114;
  color: #fff;
  padding: 18px 20px;
}

.admin-setting-preview span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.admin-setting-preview strong {
  font-size: 17px;
}

.admin-setting-preview b {
  margin-left: 8px;
}

.admin-popup-preview {
  overflow: hidden;
  width: min(360px, 100%);
  border: 1px solid #dfe4ec;
  border-radius: 18px;
  background: #fff;
}

.admin-popup-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.admin-popup-preview span {
  display: block;
  border-top: 1px solid #edf0f5;
  color: #667085;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.admin-certification-preview {
  width: min(520px, 100%);
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 18px;
  background: #fff;
}

.admin-certification-preview img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #f8fafc;
  padding: 18px;
}

.admin-certification-preview figcaption {
  border-top: 1px solid #edf0f5;
  color: #667085;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.admin-product-media-panel {
  display: grid;
  gap: 18px;
  border: 1px solid #dfe4ec;
  border-radius: 18px;
  background: #f8fafc;
  padding: 20px;
}

.admin-product-media-panel h3 {
  margin: 0;
  color: #111114;
  font-size: 18px;
  font-weight: 900;
}

.admin-product-media-panel p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.admin-product-download-panel {
  display: grid;
  gap: 14px;
  border: 1px solid #dfe4ec;
  border-radius: 18px;
  background: #f8fafc;
  padding: 18px;
}

.admin-product-gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.admin-product-gallery-list figure,
.admin-gallery-item {
  display: grid;
  gap: 8px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}

.admin-product-gallery-list img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #eef2f7;
  object-fit: cover;
}

.admin-product-gallery-list figcaption,
.admin-gallery-item span,
.admin-gallery-item em {
  overflow: hidden;
  color: #4b5563;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.admin-gallery-item em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dc2626;
}

.admin-check {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: #f8fafc;
  padding: 12px 16px;
}

.admin-check input {
  width: 18px;
  height: 18px;
}

.admin-product-top-check {
  width: 100%;
  min-height: 54px;
  align-self: end;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  background: #fff;
  padding: 0 15px;
}

.admin-feature-picker {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 1px solid #dfe4ec;
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.admin-feature-picker legend {
  color: #303846;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 900;
}

.admin-feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-feature-badge {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid #dfe4ec;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.admin-feature-badge input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-feature-badge span {
  position: relative;
}

.admin-feature-badge:has(input:checked) {
  border-color: var(--brand-primary);
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.admin-feature-badge:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 157, 154, 0.12);
}

.admin-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #edf0f5;
  padding-top: 18px;
}

.delete-form {
  max-width: 980px;
  margin-top: 14px;
  text-align: right;
}

.admin-editor + .delete-form {
  display: flex;
  justify-content: flex-end;
}

.admin-external-delete {
  display: none !important;
}

.delete-form .button {
  border-color: #fecaca;
  background: #fff5f5;
  color: #dc2626;
}

.admin-user-password-form {
  margin-top: 18px;
}

.admin-user-reset-head {
  margin-bottom: 18px;
}

.admin-qna-list {
  display: grid;
  gap: 16px;
}

.admin-qna-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.admin-qna-card header {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid #edf0f5;
  padding-bottom: 16px;
}

.admin-qna-card header strong {
  font-size: 20px;
}

.admin-qna-card header span,
.admin-qna-card p {
  color: #667085;
  font-weight: 700;
  line-height: 1.65;
}

.admin-qna-card form {
  display: grid;
  gap: 12px;
}

.admin-qna-card form .button {
  justify-self: end;
}

.admin-login {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #f8fafc 0%, #eef7f7 48%, #f6f8fb 100%);
  background-size: 56px 56px, 56px 56px, auto;
  padding: 24px;
}

.admin-login::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(125deg, transparent 0 42%, rgba(0, 157, 154, 0.08) 42% 58%, transparent 58%),
    linear-gradient(38deg, transparent 0 54%, rgba(31, 42, 68, 0.06) 54% 65%, transparent 65%);
  content: "";
}

.admin-login-ornaments {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.admin-login-icon {
  position: absolute;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid rgba(0, 157, 154, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 46px rgba(31, 42, 68, 0.08);
}

.admin-login-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: rgba(0, 115, 114, 0.62);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-login-icon.icon-monitor {
  top: 13%;
  left: 13%;
  transform: rotate(-8deg);
}

.admin-login-icon.icon-package {
  top: 18%;
  right: 14%;
  transform: rotate(7deg);
}

.admin-login-icon.icon-document {
  right: 21%;
  bottom: 15%;
  transform: rotate(-5deg);
}

.admin-login-icon.icon-message {
  bottom: 17%;
  left: 16%;
  transform: rotate(6deg);
}

.admin-login-icon.icon-chart {
  top: 50%;
  left: 6%;
  transform: translateY(-50%) rotate(4deg);
}

.admin-login .form-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(460px, 100%);
  gap: 18px;
  border: 1px solid rgba(17, 17, 20, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 70px rgba(31, 42, 68, 0.14);
  backdrop-filter: blur(14px);
  padding: 38px;
}

.admin-login img {
  width: 150px;
}

.admin-login h1 {
  margin: 6px 0 0;
  font-size: 34px;
}

.admin-login p {
  margin: 0;
  color: #697386;
  font-weight: 700;
}

.admin-login label {
  display: grid;
  gap: 9px;
  color: #303846;
  font-weight: 900;
}

.admin-login input {
  width: 100%;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  padding: 15px;
  font: inherit;
}

.admin-login .error-text {
  border-radius: 14px;
  background: #fff1f2;
  color: #dc2626;
  padding: 12px;
}

.admin-category-manager {
  gap: 18px;
}

.admin-category-guide {
  display: grid;
  gap: 6px;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  background: #f8fafc;
  padding: 16px 18px;
}

.admin-category-guide strong {
  color: #111114;
  font-size: 15px;
}

.admin-category-guide span {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.admin-category-card {
  display: grid;
  gap: 18px;
  border: 1px solid #dfe4ec;
  border-radius: 20px;
  background: #fff;
  padding: 20px;
}

.admin-category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-category-card-head strong {
  color: #111114;
  font-size: 18px;
  font-weight: 900;
}

.admin-category-card code,
.admin-category-child-row code {
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
}

.admin-category-children {
  display: grid;
  gap: 8px;
}

.admin-category-child-head,
.admin-category-child-row {
  display: grid;
  grid-template-columns: 180px repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.admin-category-child-head {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.admin-category-child-row {
  border-top: 1px solid #edf0f5;
  padding-top: 8px;
}

.admin-category-child-row input {
  width: 100%;
  border: 1px solid #dfe4ec;
  border-radius: 14px;
  background: #fff;
  padding: 12px 13px;
  color: #111114;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

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

  .admin-workspace {
    margin-left: 0;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(360px, 88vw);
    height: 100dvh;
    transform: translateX(-104%);
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .admin-body.is-admin-menu-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(17, 17, 20, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
  }

  .admin-body.is-admin-menu-open .admin-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-menu-open {
    display: grid;
    width: 40px;
    height: 40px;
    align-content: center;
    justify-content: center;
    gap: 5px;
    border-radius: 0;
    background: transparent;
  }

  .admin-menu-open span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 5px;
    background: #111;
  }

  .admin-menu-close {
    position: relative;
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f2f5f8;
  }

  .admin-menu-close::before,
  .admin-menu-close::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 11px;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #111114;
  }

  .admin-menu-close::before {
    transform: rotate(45deg);
  }

  .admin-menu-close::after {
    transform: rotate(-45deg);
  }

  .admin-topbar {
    min-height: 70px;
  }

  .admin-main {
    padding: 24px 18px 56px;
  }

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

  .admin-dashboard-panels {
    grid-template-columns: 1fr;
  }

  .admin-history-tools .board-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-history-search {
    justify-content: flex-start;
    width: 100%;
  }

  .admin-history-date-range {
    width: 100%;
  }

  .admin-history-date-field {
    flex: 1 1 0;
    min-width: 0;
  }

  .admin-history-date-picker {
    width: 148px;
  }

  .admin-history-search .board-search-box {
    width: min(360px, calc(100vw - 36px));
  }

  .admin-history-head {
    display: none;
  }

  .admin-product-click-history-table .admin-history-row,
  .admin-search-history-table .admin-history-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .admin-main.is-wide .admin-product-click-history-table .admin-history-row,
  .admin-main.is-wide .admin-search-history-table .admin-history-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-history-row {
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(17, 17, 20, 0.08);
    border-radius: 20px;
    background: #fff;
  }

  .admin-history-row > * {
    min-width: 0;
  }

  .admin-history-primary strong,
  .admin-history-detail span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-history-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    background: #f7f9fc;
  }

  .admin-history-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .admin-board-head {
    display: none;
  }

  .admin-board {
    display: grid;
    gap: 12px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-board-row,
  .admin-board-compact .admin-board-row,
  .admin-board.has-order-col .admin-board-row,
  .admin-user-board .admin-board-row {
    grid-template-columns: 1fr;
    gap: 8px;
    border: 1px solid rgba(17, 17, 20, 0.08);
    border-radius: 20px;
    background: #fff;
  }

  .admin-board-row em {
    justify-self: start;
  }

  .admin-board-row .admin-board-order {
    justify-self: start;
  }

  .admin-board-row .admin-board-order::before,
  .admin-board-row span[data-label]::before {
    content: attr(data-label);
    color: #7b8190;
    font-weight: 700;
  }
}

@media (max-width: 768px) {
  .admin-board-list .board-table .board-table-row.admin-board-table-row,
  .admin-board-list .board-table.has-order-col .board-table-row.admin-board-table-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
  }

  .admin-board-list .admin-board-table-row .board-table-title,
  .admin-board-list .admin-board-table-row .board-table-date,
  .admin-board-list .admin-board-table-row .board-table-views,
  .admin-board-list .admin-board-table-row .board-table-order {
    grid-column: 1 / 2;
  }

  .admin-board-list .admin-board-table-row .board-table-order {
    justify-self: start;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
  }

  .admin-board-list .admin-board-table-row .board-table-order::before {
    content: attr(data-label);
    color: #7b8190;
    font-weight: 700;
  }

  .admin-board-list .admin-board-table-row .admin-row-actions {
    grid-column: 2 / 3;
    grid-row: 1 / span 3;
    align-self: center;
    justify-self: end;
    justify-content: flex-end;
    padding: 0 0 0 8px;
  }

  .admin-user-board .admin-board-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .admin-user-board .admin-board-row > strong,
  .admin-user-board .admin-board-row > span:not(.admin-user-actions) {
    grid-column: 1 / 2;
  }

  .admin-user-board .admin-user-actions {
    grid-column: 2 / 3;
    grid-row: 1 / span 3;
    align-self: center;
    justify-self: end;
  }

  .admin-board.has-order-col .admin-board-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .admin-board.has-order-col .admin-board-row > .admin-board-order,
  .admin-board.has-order-col .admin-board-row > strong,
  .admin-board.has-order-col .admin-board-row > span {
    grid-column: 1 / 2;
  }

  .admin-board.has-order-col .admin-board-row > em {
    grid-column: 2 / 3;
    grid-row: 1 / span 4;
    align-self: center;
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .admin-login {
    padding: 18px;
  }

  .admin-login-icon {
    display: none;
  }

  .admin-login h1 {
    font-size: 30px;
  }

  .admin-topbar {
    gap: 10px;
    padding: 0 14px;
  }

  .admin-topbar strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-site-link {
    flex: none;
    padding: 9px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .admin-page-head {
    display: grid;
    gap: 16px;
  }

  .admin-page-head h1 {
    font-size: 30px;
  }

  .admin-page-actions,
  .admin-page-actions .button {
    width: 100%;
  }

  .admin-page-actions .admin-product-subaction {
    display: none;
  }

  .admin-board-list .board-tools,
  .admin-board-tools-right {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-board-list .board-search {
    width: 100%;
  }

  .admin-history-search {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .admin-history-date-range {
    flex: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-history-date-field {
    justify-content: space-between;
    width: 100%;
    padding: 0;
  }

  .admin-history-date-picker {
    position: static;
    width: 172px;
  }

  .admin-history-date-picker > button {
    min-height: 44px;
    background: #f7f9fc;
  }

  .admin-history-date-picker .admin-date-popover {
    position: fixed;
    top: 50%;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: 420px;
    margin: 0 auto;
    transform: translateY(-50%);
    z-index: 220;
    padding: 16px;
  }

  .admin-history-date-picker .admin-calendar-grid button {
    min-height: 42px;
  }

  .admin-history-date-range i {
    display: none;
  }

  .admin-history-date-range,
  .admin-history-search .board-search-box,
  .admin-history-search .board-search-reset,
  .admin-history-source {
    max-width: 100%;
    width: 100%;
  }

  .admin-write-button {
    width: 100%;
  }

  .admin-board-list .board-table-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-row-actions {
    justify-content: flex-end;
    padding: 0 0 0 8px;
  }

  .metric-grid,
  .admin-form-grid,
  .admin-slide-preview {
    grid-template-columns: 1fr;
  }

  .admin-category-child-head {
    display: none;
  }

  .admin-category-child-row {
    grid-template-columns: 1fr;
  }

  .quote-recipient-head {
    display: none;
  }

  .quote-recipient-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quote-recipient-active {
    justify-content: flex-start;
    min-height: 42px;
  }

  .metric-grid a {
    min-height: 120px;
  }

  .admin-form,
  .admin-panel,
  .admin-qna-card,
  .admin-login .form-card {
    border-radius: 20px;
    padding: 20px;
  }

  .admin-analytics-row {
    align-items: start;
  }

  .admin-analytics-row strong {
    white-space: normal;
  }

  .admin-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .admin-form-actions .button {
    width: 100%;
  }

  .delete-form {
    text-align: stretch;
  }

  .delete-form .button {
    width: 100%;
  }

  .admin-date-popover {
    width: min(320px, calc(100vw - 52px));
  }

  .admin-file > span:not(.admin-field-label) {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }
}

/* 제품 사양(spec_groups) 중첩 에디터 */
.admin-product-spec-editor {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  background: #fbfcfe;
}

.admin-product-spec-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 900;
  color: #111114;
}

.admin-product-spec-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.admin-spec-sections {
  display: grid;
  gap: 16px;
}

/* 대분류(섹션) */
.admin-spec-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d4dae6;
  border-radius: 14px;
  background: #f4f6fb;
}

.admin-spec-section-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-spec-section-title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 900;
}

.admin-spec-groups {
  display: grid;
  gap: 12px;
}

/* 소분류(그룹) */
.admin-spec-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: #fff;
}

.admin-spec-group-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-spec-group-title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 800;
}

.admin-spec-rows {
  display: grid;
  gap: 8px;
}

.admin-spec-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.admin-spec-row .admin-spec-value {
  width: 100%;
  resize: vertical;
  font: inherit;
}

.admin-spec-remove-row {
  align-self: stretch;
  width: 38px;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: #fff;
  color: #9aa1ad;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.admin-spec-remove-row:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.admin-spec-remove-group,
.admin-spec-remove-section {
  flex: 0 0 auto;
}

.admin-spec-add-row,
.admin-spec-add-group,
.admin-spec-add-section {
  justify-self: start;
}

@media (max-width: 768px) {
  .admin-spec-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-spec-row .admin-spec-value {
    grid-column: 1 / -1;
  }
}
