/* ============================================================
   AX Catalog Portal — Components
   ============================================================ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: var(--radius-sm);
  font: var(--font-label);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}

.btn--accent {
  background: var(--brand-red);
  color: var(--text-inverse);
}
.btn--accent:hover { background: var(--brand-red-hover); }
.btn--accent:active { background: var(--brand-red-pressed); }

.btn--primary {
  background: var(--fill-primary);
  color: var(--text-inverse);
}
.btn--primary:hover { background: var(--fill-primary-hover); }

.btn--secondary {
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn--secondary:hover { background: var(--fill-secondary); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}
.btn--ghost:hover { color: var(--text-primary); }

.btn--sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.btn--danger {
  background: var(--surface-card);
  color: var(--brand-red);
  border: 1px solid var(--brand-red);
}
.btn--danger:hover { background: #fff0f0; }

/* ── Search Input ── */
.search-wrap {
  position: relative;
  width: 100%;
}

.search-wrap__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 38px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font: var(--font-body);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}

.search-input::placeholder { color: var(--text-tertiary); }
.search-input:focus { border-color: var(--border-focused); }
.search-input.has-clear { padding-right: 34px; }

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 4px 6px;
  line-height: 1;
  font-size: 16px;
  display: flex;
  align-items: center;
  border-radius: 4px;
}
.search-clear:hover { color: var(--text-secondary); background: var(--surface-hover, #f0f1f5); }

/* ── Filter Chips ── */
.filter-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font: var(--font-label);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.chip:hover { border-color: var(--border-input); color: var(--text-primary); }
.chip--disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.chip.active {
  background: #fff0f0;
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.chip__caret {
  font-size: 10px;
  opacity: 0.6;
}

/* ── Status Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font: var(--font-caption);
  white-space: nowrap;
}

.badge--active         { background: var(--status-active-fill);            color: var(--status-active-text); }
.badge--draft          { background: var(--status-draft-fill);             color: var(--status-draft-text); }
.badge--register-review,
.badge--edit-review    { background: var(--status-review-fill);            color: var(--status-review-text); }
.badge--approved       { background: var(--status-approved-fill);          color: var(--status-approved-text); }
.badge--rejected       { background: var(--status-rejected-fill);          color: var(--status-rejected-text); }
.badge--deactivated    { background: var(--status-deactivated-fill);       color: var(--status-deactivated-text); }
.badge--deactivate-review { background: var(--status-deactivate-review-fill); color: var(--status-deactivate-review-text); }

/* contentType */
.badge--product    { background: var(--type-product-fill);    color: var(--type-product-text); }
.badge--consulting { background: var(--type-consulting-fill); color: var(--type-consulting-text); }
.badge--package    { background: var(--type-package-fill);    color: var(--type-package-text); }
.badge--type-product    { background: var(--type-product-fill);    color: var(--type-product-text); }
.badge--type-consulting { background: var(--type-consulting-fill); color: var(--type-consulting-text); }
.badge--type-package    { background: var(--type-package-fill);    color: var(--type-package-text); }
.badge--provider {
  background: #f0f1f5;
  color: var(--text-secondary);
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* target type (승인 요청) */
.badge--target-product  { background: var(--target-product-fill);  color: var(--target-product-text); }
.badge--target-proposal { background: var(--target-proposal-fill); color: var(--target-proposal-text); }
.badge--target-usecase  { background: var(--target-usecase-fill);  color: var(--target-usecase-text); }

/* ── Data Table ── */
.data-table-wrap {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  overflow-x: auto;
}

/* 좁은 화면에서 테이블 가로 스크롤바 스타일 (content-body 패턴 재사용) */
.data-table-wrap::-webkit-scrollbar { height: 6px; }
.data-table-wrap::-webkit-scrollbar-track { background: transparent; }
.data-table-wrap::-webkit-scrollbar-thumb {
  background: var(--fill-secondary);
  border-radius: var(--radius-full);
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table thead tr {
  background: #f8f9fb;
  height: var(--table-header-height);
  border-bottom: 1px solid var(--border-default);
}

.data-table th {
  padding: 0 12px;
  font: var(--font-table-header);
  color: var(--text-secondary);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table th.center,
.data-table td.center { text-align: center; }

.data-table tbody tr {
  height: var(--table-row-height);
  border-bottom: 1px solid #f0f1f5;
  cursor: pointer;
  transition: background 0.1s;
}

.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:nth-child(even) { background: #fafafa; }
.data-table tbody tr:hover { background: #f0f7ff; }

.data-table td {
  padding: 0 12px;
  font: var(--font-body);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table td.strong { font: var(--font-body-strong); }

.data-table td.meta {
  font: var(--font-meta);
  color: var(--text-secondary);
}

.td-checkbox {
  width: 48px;
  text-align: center;
}

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

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) 0 var(--space-xs);
}

.page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: var(--radius-xs);
  font: var(--font-label);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.page-btn:hover { background: var(--fill-secondary); color: var(--text-primary); }

.page-btn.active {
  background: var(--fill-primary);
  color: var(--text-inverse);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Detail Card ── */
.detail-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.detail-card__title {
  font: var(--font-section-title);
  color: var(--text-primary);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 4px;
}

.detail-field {
  display: flex;
  align-items: flex-start;
  min-height: 32px;
  gap: 0;
}

.detail-field__label {
  flex: 0 0 160px;
  font: var(--font-meta);
  color: var(--text-secondary);
  padding-top: 2px;
}

.detail-field__value {
  flex: 1;
  font: var(--font-body);
  color: var(--text-primary);
}

.detail-field__value--meta {
  font: var(--font-meta);
  color: var(--text-secondary);
}

/* ── Link Tags (연결 관계) ── */
.link-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #f0f7ff;
  color: var(--text-link);
  border-radius: var(--radius-xs);
  font: var(--font-meta);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s;
  margin: 2px 4px 2px 0;
}

.link-tag:hover { background: #daeeff; text-decoration: underline; }

.link-tags { display: flex; flex-wrap: wrap; align-items: center; }

/* ── Form Field ── */
.form-section {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-section__title {
  font: var(--font-section-title);
  color: var(--text-primary);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-default);
}

.form-row {
  display: flex;
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.form-field__label {
  font: var(--font-caption);
  color: var(--text-secondary);
}

.form-field__label .required {
  color: var(--brand-red);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  font: var(--font-body);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-tertiary); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--border-focused); }

.form-input.error,
.form-select.error,
.form-textarea.error { border-color: var(--border-error); }

.form-textarea { min-height: 100px; resize: vertical; }

.form-field__error {
  font: var(--font-caption);
  color: var(--brand-red);
}

.form-field__hint {
  font: var(--font-caption);
  color: var(--text-tertiary);
}

.char-count {
  font: var(--font-caption);
  color: var(--text-tertiary);
  text-align: right;
}

/* ── Select with custom arrow ── */
.form-select-wrap {
  position: relative;
}

.form-select-wrap .form-select { padding-right: 32px; }

.form-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-tertiary);
  pointer-events: none;
}

/* ── AX Dialog (Figma PC_Basic Popup) ── */
.ax-dialog {
  background: #fff;
  border-radius: 12px;
  width: 640px;
  max-width: calc(100vw - 48px);
  box-shadow: 0 0 40px rgba(20, 20, 20, 0.05), 0 20px 40px rgba(19, 20, 21, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ax-dialog__header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 16px 16px 24px;
  min-height: 100px;
}

.ax-dialog__titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
}

.ax-dialog__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.48;
  color: #191a1b;
}

.ax-dialog__message {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.48;
  color: #55585d;
}

.ax-dialog__close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #55585d;
  font-size: 18px;
  border-radius: 6px;
}
.ax-dialog__close:hover { background: var(--surface-hover, #f4f5f6); }

.ax-dialog__body {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ax-dialog__info-box {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 24px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.58;
  color: #6f737b;
  text-align: center;
}

.ax-dialog__actions {
  background: #fff;
  display: flex;
  gap: 8px;
  padding: 24px;
}

.ax-dialog__btn {
  flex: 1;
  min-height: 56px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.48;
  cursor: pointer;
  padding: 8px 16px;
}

.ax-dialog__btn--cancel {
  background: #e9eaee;
  color: #191a1b;
}
.ax-dialog__btn--cancel:hover { background: #dcdde3; }

.ax-dialog__btn--ok {
  background: #191a1b;
  color: #fff;
}
.ax-dialog__btn--ok:hover { background: #2c2e30; }

.ax-dialog__field-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #55585d;
  line-height: 1.5;
}

/* ── Modal ── */
.modal {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  width: 480px;
  max-width: calc(100vw - 48px);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.modal__title {
  font: var(--font-title-md);
  color: var(--text-primary);
}

.modal__body {
  font: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal__body ul {
  padding-left: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal__actions {
  display: flex;
  gap: var(--space-xs);
  justify-content: flex-end;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--border-default);
}

/* ── Empty State ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xxl) 0;
  color: var(--text-tertiary);
  gap: var(--space-sm);
}

.empty-state__icon { font-size: 40px; opacity: 0.4; }
.empty-state__text { font: var(--font-body); }

/* ── Tag list (chips for classification) ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--fill-secondary);
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  font: var(--font-caption);
}

/* ── Table count bar ── */
.table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) 0 var(--space-xs);
}

.table-meta__count {
  font: var(--font-meta);
  color: var(--text-secondary);
}

.table-meta__count strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Detail header (상세 화면 상단 요약) ── */
.detail-header {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.detail-header__badges {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.detail-header__title {
  font: var(--font-heading-md);
  color: var(--text-primary);
}

.detail-header__summary {
  font: var(--font-body);
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Approval actions (승인 요청 상세) ── */
.approval-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.approval-action-bar__label {
  flex: 1;
  font: var(--font-body);
  color: var(--text-secondary);
}

.approval-action-bar--deactivate {
  border-color: var(--color-border-danger);
  background: var(--color-background-danger);
}
.approval-action-bar--deactivate .approval-action-bar__label {
  color: var(--color-text-danger);
}

.catalog-detail-v2__request-divider {
  margin: 8px 0;
  height: 0;
  border: none;
  border-top: 2px solid var(--color-border);
}

/* ── Requestor card (승인 상세) ── */
.requestor-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  background: var(--color-background-primary);
}
.requestor-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-background-info);
  color: var(--color-text-info);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}
.requestor-card__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
}
.requestor-card__meta {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 3px;
}

/* ── Utilities ── */
.text-secondary { color: var(--text-secondary); }
.text-tertiary  { color: var(--text-tertiary); }
.text-link      { color: var(--text-link); cursor: pointer; }
.text-link:hover { text-decoration: underline; }

.flex-row   { display: flex; align-items: center; }
.gap-xs     { gap: var(--space-xs); }
.gap-sm     { gap: var(--space-sm); }
.gap-md     { gap: var(--space-md); }
.mt-sm      { margin-top: var(--space-sm); }
.mt-md      { margin-top: var(--space-md); }
.w-full     { width: 100%; }

/* ── File Upload ── */
.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-page);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.file-drop:hover {
  border-color: var(--brand-red);
  background: #fff5f5;
}
.file-drop__icon { font-size: 28px; line-height: 1; }
.file-drop__text { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.file-drop__hint { font-size: 12px; color: var(--text-tertiary); }

.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
}
.file-item__icon { font-size: 18px; flex-shrink: 0; }
.file-item__name { flex: 1; font-size: 13px; color: var(--text-primary); font-weight: 500; }
.file-item__size { font-size: 12px; color: var(--text-tertiary); flex-shrink: 0; }
.file-item__remove {
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: var(--text-tertiary); padding: 0 4px;
  flex-shrink: 0;
}
.file-item__remove:hover { color: var(--status-rejected-text); }
.file-item__download {
  font-size: 12px; font-weight: 600; color: var(--brand-red);
  text-decoration: none; flex-shrink: 0;
  padding: 3px 10px; border: 1px solid var(--brand-red); border-radius: 4px;
}
.file-item__download:hover { background: #fff5f5; }

/* ── Product List V2: AX Works light catalog tone ── */
.product-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 34px;
  width: 100%;
  max-width: var(--catalog-content-width);
  margin: 0 auto;
  padding: 42px 0 80px;
  box-sizing: border-box;
}

body.catalog-light-active .main,
body.catalog-light-active .content-body {
  background: #fff;
}

body.catalog-light-active .app-shell {
  background: #fff;
}

body.catalog-light-active .sidebar {
  background: #fff;
  border-right: 1px solid #e9eaee;
}

body.catalog-light-active .sidebar__logo {
  height: 54px;
  padding: 0 14px;
}

body.catalog-light-active .sidebar__logo-circle {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #191a1b;
}

body.catalog-light-active .sidebar__logo-circle-text {
  color: #191a1b;
  font-size: 12px;
}

body.catalog-light-active .sidebar__logo-expand-icon {
  color: #191a1b;
  width: 20px;
  height: 20px;
}

body.catalog-light-active .sidebar.collapsed .sidebar__logo-brand:hover .sidebar__logo-circle {
  background: #f0f1f4;
}

body.catalog-light-active .sidebar.collapsed .sidebar__logo-brand:hover .sidebar__logo-circle-text {
  opacity: 0;
}

body.catalog-light-active .sidebar.collapsed .sidebar__logo-brand:hover .sidebar__logo-expand-icon {
  opacity: 1;
}

body.catalog-light-active .sidebar__logo-text {
  color: #191a1b;
  font-size: 13px;
  font-weight: 800;
}

body.catalog-light-active .sidebar__toggle {
  color: #55585d;
}

body.catalog-light-active .sidebar__toggle:hover {
  color: #191a1b;
  background: #f5f6f8;
}

body.catalog-light-active .sidebar__divider {
  height: 0;
  margin: 0;
  background: transparent;
}

body.catalog-light-active .nav-item {
  height: 40px;
  margin: 0 8px;
  padding: 0 10px;
  border-radius: 6px;
  color: #191a1b;
  font-size: 13px;
}

body.catalog-light-active .nav-item:hover {
  color: #191a1b;
  background: #f5f6f8;
}

body.catalog-light-active .nav-item.active {
  color: #191a1b;
  background: #f0f1f4;
}

body.catalog-light-active .nav-item.active::before {
  display: none;
}

body.catalog-light-active .nav-item__icon {
  color: #191a1b;
  opacity: 0.72;
}

body.catalog-light-active .sidebar__profile {
  background: #fff;
  border-top: 1px solid #e9eaee;
}

body.catalog-light-active .sidebar__profile-avatar {
  color: #fff;
  background: #00a99d;
}

body.catalog-light-active .sidebar__profile-name {
  color: #191a1b;
}

body.catalog-light-active .sidebar__profile-role {
  color: #6f737b;
}

body.catalog-light-active .utilbar {
  display: none;
}

body.catalog-light-active .utilbar__left {
  visibility: hidden;
}

body.catalog-light-active .btn--accent {
  color: #fff;
  background: #191a1b;
  border-color: #191a1b;
}

body.catalog-light-active .btn--accent:hover {
  background: #313235;
  border-color: #313235;
}

.product-list-v2__headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.product-list-v2__create-btn {
  flex-shrink: 0;
  min-width: 72px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
}

.product-list-v2__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-primary);
}

.product-list-v2__desc {
  margin: 12px 0 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.product-list-v2__controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
}

.product-list-v2__search .search-input {
  height: 46px;
  background: #fff;
  border-color: #b8bdc6;
  border-radius: 6px;
  font-size: 14px;
}

.product-list-v2__search .search-input:focus {
  border-color: #191a1b;
  box-shadow: none;
}

.product-list-v2__filters .chip,
.product-list-v2__filters .filter-check {
  min-height: 30px;
  height: 30px;
  padding: 0 11px;
  background: #f5f6f8;
  border-color: transparent;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 12px;
}

.product-list-v2__filters .chip:hover,
.product-list-v2__filters .filter-check:hover {
  background: #eef0f3;
  color: var(--text-primary);
}

.product-list-v2__filter-reset {
  margin-left: auto;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.product-list-v2__filter-reset:hover {
  background: #f5f6f8;
  color: var(--text-primary);
}

.product-list-v2__result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 40px;
  margin: 0 0 18px;
  box-sizing: border-box;
}

.product-list-v2__result-meta h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text-primary);
}

.product-list-v2__result-meta p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

.product-list-v2__result-meta strong {
  color: var(--text-primary);
}

.product-list-v2__count-meta {
  margin: 0 0 18px;
  padding: 0;
}

.product-list-v2__layer-facets {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: -4px 0 24px;
}

.product-list-v2__layer-facets-label {
  flex: 0 0 auto;
  margin: 7px 0 0;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 700;
}

.product-list-v2__layer-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-list-v2__layer-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f5f6f8;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.product-list-v2__layer-option strong {
  color: inherit;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.product-list-v2__layer-option:hover {
  background: #eef0f3;
  color: var(--text-primary);
}

.product-list-v2__layer-option.is-active {
  border-color: #191a1b;
  background: #191a1b;
  color: #fff;
}

.product-list-v2__query {
  margin-left: 6px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.product-list-v2__subtle-btn {
  height: 30px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-tertiary);
  font-size: 12px;
  cursor: pointer;
}

.product-list-v2__subtle-btn:hover {
  background: #f5f6f8;
  color: var(--text-primary);
}

.product-list-v2__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.product-list-v2__card {
  display: flex;
  flex-direction: column;
  min-height: 214px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.product-list-v2__card:hover {
  border-color: #d6d9df;
  box-shadow: 0 4px 14px rgba(25, 26, 27, 0.06);
}

.product-list-v2__card-title {
  margin: 0;
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text-primary);
}

.product-list-v2__card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.product-list-v2__status {
  flex-shrink: 0;
}

.product-list-v2__status .badge {
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
}

.product-list-v2__summary {
  min-height: 60px;
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 상품 목록은 2열 카드 안에서 요약을 한 단계 더 읽을 수 있게 한다.
   제안서/적용사례 카드의 공통 밀도에는 영향을 주지 않는다. */
#screen-product-list .product-list-v2__card {
  min-height: 238px;
}

#screen-product-list .product-list-v2__summary {
  min-height: 76px;
  -webkit-line-clamp: 4;
}

.product-list-v2__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

.product-list-v2__tag {
  padding: 3px 7px;
  background: #f0f1f4;
  border-radius: 5px;
  font-size: 10px;
  color: var(--text-secondary);
}

.product-list-v2__tag--provider {
  background: #e9fbfb;
  color: #008a8a;
}

/* 적용사례 카드의 도입 단계(PoC/MVP 등)와 일반 태그의 밀도를 통일한다. */
#screen-usecase-list .product-list-v2__tags .badge,
#screen-usecase-list .product-list-v2__tags .product-list-v2__tag {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
}

.product-list-v2__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-default);
}

.product-list-v2__card-footer-owner {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.product-list-v2__card-footer-owner .tag {
  font-size: 10px;
  padding: 2px 6px;
}

.product-list-v2__card-footer-date {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Product form V2: catalog light tone ── */
.catalog-form-v2 {
  width: 100%;
  max-width: var(--catalog-content-width);
  margin: 0 auto;
  padding: 42px 0 80px;
}

.catalog-form-v2__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.catalog-form-v2__back {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.catalog-form-v2__back:hover {
  color: var(--text-primary);
}

.catalog-form-v2__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}

.catalog-form-v2__desc {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.catalog-form-v2__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.catalog-form-v2__actions .btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
}

.catalog-form-v2__sections {
  border-top: 1px solid #e9eaee;
}

.catalog-form-v2 .form-section {
  gap: 18px;
  padding: 28px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e9eaee;
  border-radius: 0;
}

.catalog-form-v2 .form-section__title {
  padding: 0 0 16px;
  border-bottom: 1px solid #e9eaee;
  font-size: 16px;
  font-weight: 800;
}

.catalog-form-v2 .form-row {
  gap: 20px;
}

.catalog-form-v2 .form-field {
  gap: 8px;
}

.catalog-form-v2 .form-field__label {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
}

.catalog-form-v2 .form-input,
.catalog-form-v2 .form-select,
.catalog-form-v2 .form-textarea {
  border-color: #b8bdc6;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}

.catalog-form-v2 .form-input,
.catalog-form-v2 .form-select {
  min-height: 42px;
}

.catalog-form-v2 .form-textarea {
  min-height: 112px;
}

.catalog-form-v2 .form-textarea--tall {
  min-height: 180px;
}

.catalog-form-v2 .form-input:focus,
.catalog-form-v2 .form-select:focus,
.catalog-form-v2 .form-textarea:focus {
  border-color: #191a1b;
  box-shadow: none;
}

.catalog-form-v2 .owner-bubble {
  background: #f0f1f4;
  color: var(--text-primary);
}

.catalog-form-v2 .owner-bubble__remove {
  color: var(--text-secondary);
}

.catalog-form-v2 .owner-bubble__remove:hover {
  color: var(--text-primary);
  background: #e1e4e8;
}

.catalog-form-v2 .file-drop {
  border-color: #cfd3d9;
  border-radius: 6px;
  background: #fafbfc;
}

.catalog-form-v2 .file-drop:hover {
  border-color: #191a1b;
  background: #f5f6f8;
}

.product-list-v2__empty {
  width: 100%;
  box-sizing: border-box;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-align: center;
}

.product-list-v2__empty-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f1f5;
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
}

.product-list-v2__empty strong {
  font-size: 18px;
  color: var(--text-primary);
}

/* ── Catalog detail v2 ── */
.catalog-detail-v2 {
  width: min(100%, var(--catalog-content-width));
  margin: 0 auto;
  padding: 42px 0 80px;
  box-sizing: border-box;
}

.catalog-detail-v2__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  margin-bottom: 28px;
}

.catalog-detail-v2__back {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.catalog-detail-v2__back:hover {
  color: var(--text-primary);
}

.catalog-detail-v2__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-detail-v2__actions .btn {
  height: 36px;
  border-radius: 8px;
}

.catalog-detail-v2__hero {
  padding: 0 0 28px;
  border-bottom: 1px solid #e9eaee;
  margin-bottom: 18px;
}

.catalog-detail-v2__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.catalog-detail-v2__badges .badge {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
}

.catalog-detail-v2__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 31px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.catalog-detail-v2__summary {
  max-width: none;
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* 상품 상세에서는 원문 요약을 생략하지 않고, 입력된 줄바꿈도 보존한다. */
#screen-product-detail .catalog-detail-v2__summary {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.catalog-detail-v2__section {
  margin-top: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: none;
}

.catalog-detail-v2__section-title {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9eaee;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
}

.catalog-detail-v2__body {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.75;
}

.catalog-detail-v2__body p {
  margin: 0 0 12px;
}

.catalog-detail-v2__body p:last-child {
  margin-bottom: 0;
}

.catalog-detail-v2__body-heading {
  margin: 16px 0 8px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

.catalog-detail-v2__body-heading:first-child {
  margin-top: 0;
}

.catalog-detail-v2__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.catalog-detail-v2__field {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid #f0f1f4;
}

.catalog-detail-v2__field:nth-child(-n + 2) {
  border-top: 0;
}

.catalog-detail-v2__label {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;
}

.catalog-detail-v2__value {
  min-width: 0;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.catalog-detail-v2__value--meta {
  color: var(--text-secondary);
}

.catalog-detail-v2__relation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-detail-v2__relation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e9eaee;
  border-radius: 8px;
}

.catalog-detail-v2__relation-item:hover {
  border-color: #d6d9df;
  background: #fafafa;
}

.catalog-detail-v2__relation-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.catalog-detail-v2__relation-main strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-detail-v2__relation-main span {
  color: var(--text-tertiary);
  font-size: 11px;
}

.catalog-detail-v2__relation-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.catalog-detail-v2__relation-meta .badge {
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
}

.catalog-detail-v2__relation-link {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .catalog-detail-v2 {
    padding: 24px 0 56px;
  }

  .catalog-detail-v2__topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-detail-v2__title {
    font-size: 25px;
  }

  .catalog-detail-v2__meta-grid,
  .catalog-detail-v2__relation-item {
    grid-template-columns: 1fr;
  }

  .catalog-detail-v2__field,
  .catalog-detail-v2__field:nth-child(-n + 2) {
    grid-template-columns: 1fr;
    gap: 4px;
    border-top: 1px solid #f0f1f4;
  }
}

@media (max-width: 1100px) {
  .product-list-v2 {
    max-width: 100%;
    padding-top: 24px;
  }
}

@media (max-width: 760px) {
  .product-list-v2__headline {
    flex-direction: column;
    gap: 14px;
  }

  .product-list-v2__create-btn {
    align-self: flex-start;
  }

  .product-list-v2__grid {
    grid-template-columns: 1fr;
  }

  .product-list-v2__layer-facets {
    flex-direction: column;
    gap: 8px;
  }

  .product-list-v2__layer-facets-label {
    margin-top: 0;
  }
}


/* ── Detail body text ── */
.detail-body {
  padding: 4px 0;
  color: var(--text-primary);
  font: var(--font-body);
  line-height: 1.7;
  white-space: pre-line;
}

/* ── Detail lists (feature / spec) ── */
.detail-list {
  margin: 4px 0 0 18px;
  padding: 0;
  color: var(--text-primary);
  font: var(--font-body);
  line-height: 1.7;
}

.detail-faq-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font: var(--font-body);
  line-height: 1.6;
  white-space: pre-line;
}
.detail-faq-item:last-child { border-bottom: none; }
.detail-faq-item__q { margin: 0 0 4px; font-weight: 600; }
.detail-faq-item__a { margin: 0; color: var(--text-secondary); }

.detail-spec-dl {
  display: grid;
  grid-template-columns: minmax(120px, 28%) 1fr;
  gap: 0;
  margin: 4px 0 0;
  font: var(--font-body);
}
.detail-spec-dl dt {
  padding: 7px 12px 7px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
}
.detail-spec-dl dd {
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.detail-spec-dl dt:last-of-type,
.detail-spec-dl dd:last-of-type { border-bottom: none; }

.detail-feature-block {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--surface-subtle, #f7f8fa);
  border-left: 3px solid var(--primary, #2563eb);
  border-radius: 4px;
}
.detail-feature-block strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-weight: 600;
}
.detail-feature-block p {
  margin: 0;
  color: var(--text-secondary);
  font: var(--font-body);
  line-height: 1.6;
}

.detail-case-item {
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}
.detail-case-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-weight: 600;
}
.detail-case-item p {
  margin: 0;
  color: var(--text-secondary);
  font: var(--font-body);
  line-height: 1.6;
}

/* ── Taller textarea ── */
.form-textarea--tall {
  min-height: 120px;
}

/* ── Badge variants for normalized values ── */
.badge--presales  { background: #f0f4ff; color: #3b5bdb; }
.badge--mvp       { background: #fff3cd; color: #856404; }
.badge--delivered { background: #d1fae5; color: #065f46; }
.badge--GA        { background: #d1fae5; color: #065f46; }
.badge--BETA      { background: #fff3cd; color: #856404; }
.badge--RC        { background: #e0f2fe; color: #0369a1; }
.badge--EOL       { background: #f3f4f6; color: #6b7280; }

/* ── Pair list (FAQ / 기능 / 사양) ── */
.pair-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.pair-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pair-item__fields {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pair-item__remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.pair-item__remove:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.btn--ghost {
  background: transparent;
  border: 1px dashed var(--border-default);
  color: var(--text-secondary);
}
.btn--ghost:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.btn--sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

/* ── Filter chip active/reset states ── */
.chip--active {
  background: var(--brand-red);
  color: var(--text-inverse);
  border-color: var(--brand-red);
}
.chip--active .chip__caret { opacity: 0.8; }

.chip--reset {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 12px;
}
.chip--reset:hover { color: var(--brand-red); border-color: var(--brand-red); }

/* ── Filter dropdown ── */
.filter-dropdown {
  position: fixed;
  z-index: 9999;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 160px;
  overflow: hidden;
}

.filter-dropdown__item {
  padding: 10px 16px;
  font: var(--font-body);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.1s;
}
.filter-dropdown__item:hover { background: var(--surface-page); }
.filter-dropdown__item--clear {
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 500;
}

/* ── Form radio/checkbox controls ── */
.form-radio-group,
.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.form-radio-item,
.form-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.form-radio-item input[type="radio"],
.form-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #191a1b;
  cursor: pointer;
}

.form-radio-label,
.form-checkbox-label {
  font: var(--font-body);
  color: var(--text-primary);
  line-height: 1.45;
}

/* ── Toggle switch ── */
.form-field--inline {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.form-field--inline .form-field__label {
  margin-bottom: 0;
  white-space: nowrap;
}

.form-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-toggle__track {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--border-default);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.form-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.form-toggle input:checked ~ .form-toggle__track {
  background: var(--brand-red);
}
.form-toggle input:checked ~ .form-toggle__track::after {
  transform: translateX(16px);
}

.form-toggle__label {
  font: var(--font-body);
  color: var(--text-secondary);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1a1a1a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}
.toast--success { background: #1a1a1a; }
.toast--error   { background: #c0392b; }
.toast--show    { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── List description ── */
.list-description {
  font: var(--font-body);
  color: var(--text-secondary);
  margin: 0 0 16px 0;
}

/* ── Filter checkbox (내가 담당) ── */
.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: var(--font-body);
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}
.filter-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--fill-primary);
}

/* ── Badge: poc ── */
.badge--poc { background: #e0f2fe; color: #0369a1; }

/* ── data-table compact ── */
.data-table--compact th,
.data-table--compact td {
  padding: 6px 10px;
  font-size: 12px;
}

/* ── Empty state text ── */
.empty-state-text {
  font: var(--font-body);
  color: var(--text-tertiary);
  padding: 12px 0 4px;
  margin: 0;
}

/* ============================================================
   Owner Bubble
   ============================================================ */
.owner-bubble-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
  margin-bottom: 8px;
}
.owner-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px 4px 10px;
  background: var(--surface-sidebar-active);
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  font: var(--font-caption);
}
.owner-bubble__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 10px;
  padding: 0;
  border-radius: 50%;
  pointer-events: all;
}
.owner-bubble__remove:hover { color: #fff; background: rgba(255, 255, 255, 0.15); }

/* ── Owner Picker Modal ── */
.modal--owner-picker {
  width: 420px;
}

.modal--owner-picker .modal__actions {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.owner-picker-results {
  margin-top: 8px;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.owner-picker-results:empty {
  display: none;
}
.owner-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-default);
  transition: background 0.1s;
}
.owner-picker-item:last-child { border-bottom: none; }
.owner-picker-item:hover { background: var(--surface-page); }
.owner-picker-item__team { font: var(--font-caption); color: var(--text-tertiary); white-space: nowrap; }
.owner-picker-item__name { font: var(--font-body); color: var(--text-primary); white-space: nowrap; }
.owner-picker-empty {
  padding: 20px;
  text-align: center;
  font: var(--font-caption);
  color: var(--text-tertiary);
}

/* ============================================================
   Product Slot List
   ============================================================ */
.product-slot-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.product-slot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-slot .form-select-wrap { flex: 1; }
.product-slot__remove {
  flex-shrink: 0;
  width: 28px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 12px;
  transition: color 0.1s, border-color 0.1s;
}
.product-slot__remove:hover { color: var(--brand-red); border-color: var(--brand-red); }

/* ============================================================
   반응형 — 컴포넌트 스택 오버라이드 (≤768px)
   layout.css보다 늦게 로드되므로 폼/상세 오버라이드는 여기에 둔다.
   ============================================================ */
@media (max-width: 768px) {
  /* 폼 2열 → 1열 */
  .form-row { flex-direction: column; }
  .pair-item__fields { grid-template-columns: 1fr; }

  /* 상세 라벨/값 세로 스택 */
  .detail-field { flex-direction: column; align-items: stretch; gap: 2px; }
  .detail-field__label { flex: 0 0 auto; }
}

/* ══════════════════════════════════════════════════════════════
   홈 — 통합 검색
   ══════════════════════════════════════════════════════════════ */

/* ── 유휴 화면 ── */
.home-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 24px;
}
.home-idle__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--catalog-content-width, 970px);
}
.home-idle__logo {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.home-idle__desc {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
}
/* 유휴 검색창: search-wrap + search-input 위에 버튼 덧붙임 */
.home-idle__search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.home-idle__search .search-wrap {
  flex: 1;
}
.home-idle__search .search-input {
  height: 46px;
  background: #fff;
  border-color: #b8bdc6;
  border-radius: 6px;
  font-size: 14px;
  padding-right: 12px;
}
.home-idle__search .search-input.has-clear { padding-right: 34px; }
.home-idle__search .search-input:focus {
  border-color: #191a1b;
  box-shadow: none;
}
.home-idle__search-btn {
  flex-shrink: 0;
  height: 46px;
  padding: 0 20px;
  font-size: 14px;
  white-space: nowrap;
}

/* 결과 화면 검색창 */
.home-results__search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-results__search-wrap .search-wrap {
  flex: 1;
}
.home-results__search-wrap .search-input {
  height: 46px;
  background: #fff;
  border-color: #b8bdc6;
  border-radius: 6px;
  font-size: 14px;
}
.home-results__search-wrap .search-input.has-clear { padding-right: 34px; }
.home-results__search-wrap .search-input:focus {
  border-color: #191a1b;
  box-shadow: none;
}
.home-results__search-btn {
  flex-shrink: 0;
  height: 46px;
  padding: 0 20px;
  font-size: 14px;
  white-space: nowrap;
}

/* ── 통계 ── */
.home-idle__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}
.home-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.home-stat__num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.home-stat__label {
  font-size: 12px;
  color: var(--text-tertiary);
}
.home-stat__divider {
  width: 1px;
  height: 28px;
  background: var(--border-default);
}

/* ── 섹션 ── */
.home-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.home-section__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.home-section__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.home-section__count {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* 더보기 버튼 행 */
.home-section__more-row {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.home-section__more-btn {
  min-width: 200px;
}

/* ── 사이드바 카운트 배지 ── */
.nav-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--surface-hover, #f0f1f5);
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
  line-height: 1.6;
}
.sidebar.collapsed .nav-count { display: none; }

/* ── 폼 레이블 행 (레이블 + 미리보기 버튼) ── */
.form-field__label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.form-field__label-row .form-field__label { margin-bottom: 0; }

/* ── 버튼 xs ── */
.btn--xs {
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 4px;
  line-height: 1.5;
}
.btn--xs.is-preview { background: var(--fill-secondary); }

/* ── Markdown 미리보기 패널 ── */
.md-preview {
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--surface-raised, #fafafa);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-y: auto;
}
.md-preview__h1 { font-size: 15px; font-weight: 800; margin: 16px 0 8px; color: var(--text-primary); }
.md-preview__h2 { font-size: 13px; font-weight: 800; margin: 16px 0 8px; color: var(--text-primary); }
.md-preview__h3 { font-size: 13px; font-weight: 700; margin: 12px 0 6px; color: var(--text-primary); }
.md-preview__h1:first-child, .md-preview__h2:first-child, .md-preview__h3:first-child { margin-top: 0; }
.md-preview__p  { margin: 4px 0 8px; }
.md-preview__ul { margin: 4px 0 8px; padding-left: 20px; }
.md-preview__ul li { margin-bottom: 2px; }
.md-preview__empty { color: var(--text-tertiary); font-style: italic; }

/* ── 폼 메타 섹션 ── */
.form-section--meta { background: var(--surface-raised, #fafbff); border-left: 3px solid var(--border-focused, #4f6ef7); }
.form-row--meta { gap: 24px; flex-wrap: wrap; }
.form-meta-value { font-size: 13px; color: var(--text-secondary); padding: 4px 0; }
