/* ── LNB / SaaS Shell ── */
.sidebar-cta-btn {
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.625rem 0.75rem;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sidebar-cta-btn:hover {
  background: #3a7fc4;
}

.sidebar-active-project {
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-active-project-label {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.2rem;
}

.sidebar-active-project-name {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-active-project-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.72);
}

.sidebar-active-project-meta.hidden {
  display: none;
}

.lnb-tree {
  gap: 0.15rem;
}

.lnb-group {
  margin-top: 0.5rem;
}

.lnb-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lnb-group-title--project {
  margin-top: 0.15rem;
  text-transform: none;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.lnb-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lnb-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.lnb-item.active {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.lnb-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.lnb-item--project {
  font-weight: 600;
}

.lnb-children {
  margin-left: 0.65rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.lnb-children--open {
  display: block;
}

.lnb-item--child {
  font-size: 0.78rem;
  padding: 0.45rem 0.65rem;
}

.lnb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.9;
}

.lnb-icon svg {
  width: 100%;
  height: 100%;
}

.lnb-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── QDB-style Flow Tabs ── */
.flow-tabs-bar {
  margin-bottom: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.flow-tabs-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: #eef2f7;
  scrollbar-width: thin;
}

.flow-tab {
  flex: 1 1 0;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 0.85rem;
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.flow-tab:last-child {
  border-right: none;
}

.flow-tab:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.65);
  color: var(--primary);
}

.flow-tab.is-active {
  background: var(--card);
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.flow-tab.is-complete:not(.is-active) {
  color: #1d5fbf;
}

.flow-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.flow-tab-mark {
  font-size: 0.72rem;
  font-weight: 700;
}

.flow-tab-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #dceaf8;
  color: var(--primary);
  font-size: 0.62rem;
  font-weight: 800;
}

.flow-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: #f4f7fb;
  font-size: 0.78rem;
  color: var(--muted);
}

.flow-context-bar.hidden {
  display: none;
}

/* ── Upload Dropzones ── */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.upload-grid.upload-grid--rc-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dropzone-badge.optional {
  background: #e8edf3;
  color: #5a6a7e;
}

.mapping-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.schedule-mapping-meta {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #dceaf8;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
}

.schedule-mapping-meta.hidden {
  display: none;
}

.schedule-mapping-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
  align-content: start;
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding-bottom: 0.5rem;
}

.main:has(.page--mapping:not(.hidden)) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.main:has(.page--mapping:not(.hidden)) .flow-tabs-bar {
  flex: 0 0 auto;
}

.main:has(.page--mapping:not(.hidden)) .page--mapping {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.page--mapping {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.page--mapping .schedule-mapping-grid:not(.hidden) {
  flex: 0 0 auto;
  height: auto;
  min-height: min-content;
}

#scheduleMappingContent.schedule-mapping-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
}

.schedule-mapping-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.page--mapping .schedule-member-section {
  flex: none;
  min-width: 0;
  min-height: min-content;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid #94a3b8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.page--mapping .schedule-table-scroll {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
}

.page--mapping .schedule-mapping-top .schedule-member-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page--mapping .schedule-mapping-top .schedule-table-scroll {
  flex: 1 1 auto;
  min-height: 14.4rem;
  height: 480px;
  max-height: 480px;
}

.schedule-mapping-grid.hidden {
  display: none;
}

.schedule-member-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  min-height: min-content;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.schedule-table-scroll {
  flex: 0 1 auto;
  width: 100%;
  max-width: 100%;
  min-height: 7.5rem;
  max-height: min(40vh, 360px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.schedule-table-scroll .schedule-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.schedule-add-row-btn {
  flex: 0 0 auto;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.schedule-add-row-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.schedule-match-cell {
  font-size: 0.78rem;
  color: #334155;
}

.schedule-match-cell.is-empty {
  color: var(--muted);
}

.schedule-match-cell.is-matched {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .schedule-mapping-grid,
  .schedule-mapping-top {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 900px) {
  .page--mapping .schedule-mapping-top .schedule-table-scroll {
    min-height: 12rem;
    height: 384px;
    max-height: 384px;
  }

  .page--mapping .schedule-member-section--tapered .schedule-table-scroll,
  .page--mapping .schedule-member-section--besto .schedule-table-scroll {
    min-height: 5rem;
    max-height: 160px;
  }
}

.schedule-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.schedule-section-header h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary);
}

.schedule-section-hint {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.schedule-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.schedule-action-btn {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.schedule-action-btn:hover {
  background: var(--surface-muted, #f5f7fa);
  border-color: var(--primary);
  color: var(--primary);
}

.schedule-table--editable input {
  width: 100%;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  background: #fff;
}

.schedule-table--editable .schedule-dim-input {
  width: 100%;
  min-width: 3.2rem;
  text-align: center;
}

.schedule-table--editable .schedule-steel-type-input {
  min-width: 3.5rem;
  text-align: center;
}

.schedule-table--editable .schedule-mark-input,
.schedule-table--editable .schedule-floor-input {
  min-width: 4.2rem;
  text-align: center;
}

.schedule-member-section--beam .schedule-table th:nth-child(2),
.schedule-member-section--beam .schedule-table td:nth-child(2),
.schedule-member-section--column .schedule-table th:nth-child(2),
.schedule-member-section--column .schedule-table td:nth-child(2) {
  min-width: 5.6rem;
}

.schedule-index-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.schedule-segment-cell {
  min-width: 6.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.schedule-muted-cell {
  color: var(--muted);
  font-size: 0.82rem;
}

.schedule-row--besto {
  background: rgba(16, 185, 129, 0.04);
}

.schedule-row--tapered-segment {
  background: rgba(245, 158, 11, 0.05);
}

.schedule-member-section--tapered,
.schedule-member-section--besto {
  grid-column: 1 / -1;
}

.page--mapping .schedule-member-section--beam {
  border-color: #7aa2d4;
  box-shadow: 0 4px 14px rgba(0, 32, 96, 0.1);
}

.page--mapping .schedule-member-section--column {
  border-color: #94a3b8;
}

.page--mapping .schedule-member-section--tapered {
  border-color: #d4a017;
  box-shadow: 0 4px 14px rgba(180, 120, 10, 0.1);
}

.page--mapping .schedule-member-section--besto {
  border-color: #3d9b7a;
  box-shadow: 0 4px 14px rgba(16, 120, 90, 0.1);
}

.page--mapping .schedule-member-section .schedule-section-header {
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: #f1f5f9;
  border-radius: 9px 9px 0 0;
}

.page--mapping .schedule-member-section--beam .schedule-section-header {
  background: #e8f1fb;
}

.page--mapping .schedule-member-section--column .schedule-section-header {
  background: #eef2f6;
}

.page--mapping .schedule-member-section--tapered .schedule-section-header {
  background: #fbf3e0;
}

.page--mapping .schedule-member-section--besto .schedule-section-header {
  background: #e6f6ef;
}

.page--mapping .schedule-member-section .schedule-table-scroll {
  margin: 0.75rem 0.85rem 0;
  border-radius: 6px;
}

.page--mapping .schedule-member-section .schedule-add-row-btn {
  width: auto;
  margin: 0.55rem 0.85rem 0;
}

.page--mapping .schedule-member-section .schedule-table-count {
  margin: 0.15rem 0.85rem 0.7rem;
}

.schedule-member-section--tapered .schedule-table-scroll,
.schedule-member-section--besto .schedule-table-scroll {
  min-height: 6rem;
  max-height: 200px;
}

.schedule-kind-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 6.5rem;
}

.schedule-kind-select,
.schedule-besto-type {
  min-width: 4.8rem;
  padding: 0.28rem 0.35rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  background: #fff;
}

.schedule-kind-suffix {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.schedule-besto-segment {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 7.5rem;
}

.schedule-besto-type {
  min-width: 3.2rem;
}

.schedule-besto-profile-input {
  min-width: 8rem;
}

.schedule-table--editable input:focus {
  outline: 2px solid rgba(74, 144, 217, 0.35);
  border-color: var(--accent);
}

.schedule-row-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}

.schedule-row-delete:hover {
  color: #b91c1c;
  border-color: #fca5a5;
}

.schedule-floor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.schedule-floor-tab {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.schedule-floor-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.schedule-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.schedule-table {
  width: max(100%, max-content);
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.schedule-table thead {
  background: var(--primary);
  color: #fff;
}

.schedule-table th,
.schedule-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.schedule-table tbody tr:hover {
  background: #f4f7fb;
}

.schedule-table-count {
  font-size: 0.75rem;
  color: var(--muted);
}

.schedule-table--tapered thead th,
.schedule-table--besto thead th {
  text-align: center;
  white-space: nowrap;
}

.schedule-table--tapered thead tr:first-child th,
.schedule-table--besto thead tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.schedule-table--tapered thead tr:nth-child(2) th,
.schedule-table--besto thead tr:nth-child(2) th {
  position: sticky;
  top: 2.15rem;
  z-index: 2;
  font-size: 0.72rem;
}

.schedule-table--tapered thead tr:nth-child(2) th:nth-child(-n + 6),
.schedule-table--besto thead tr:nth-child(2) th:nth-child(-n + 6) {
  background: #d4891a;
}

.schedule-table--tapered thead tr:nth-child(2) th:nth-child(n + 7),
.schedule-table--besto thead tr:nth-child(2) th:nth-child(n + 7) {
  background: #2a5aa0;
}

.schedule-th-group--mid {
  background: #c47b12 !important;
  color: #fff;
}

.schedule-th-group--end {
  background: #1e4a8a !important;
  color: #fff;
}

.schedule-cell-group--mid {
  background: rgba(245, 158, 11, 0.06);
}

.schedule-cell-group--end {
  background: rgba(30, 74, 138, 0.05);
}

.dropzone-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.dropzone-card-header h3 {
  margin: 0.35rem 0 0.15rem;
  font-size: 1rem;
  color: var(--foreground);
}

.dropzone-card-header p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.dropzone-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}

.dropzone-badge--optional {
  background: var(--background);
  color: var(--muted);
  border: 1px solid var(--border-strong);
}

.dropzone-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 1.25rem 0.75rem;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--background);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dropzone-area:hover,
.dropzone-area:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.dropzone-area.is-dragover {
  border-color: var(--primary);
  background: #dceaf8;
  box-shadow: inset 0 0 0 1px rgba(0, 32, 96, 0.12);
}

.dropzone-input {
  display: none;
}

.dropzone-icon {
  font-size: 1.75rem;
}

.dropzone-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.dropzone-hint {
  font-size: 0.72rem;
  color: var(--muted);
}

.dropzone-file-list {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dropzone-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.3rem 0.45rem;
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  font-size: 0.72rem;
  color: var(--foreground);
}

.dropzone-file-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone-file-remove {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.dropzone-file-remove:hover {
  background: var(--error-bg);
  color: var(--error);
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.upload-actions .hidden {
  display: none !important;
}

.upload-notes {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.upload-notes > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.upload-notes > summary::-webkit-details-marker {
  display: none;
}

.upload-notes > summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--muted);
}

.upload-notes[open] > summary::before {
  content: '▾';
}

.upload-notes-body {
  padding: 0.85rem 1rem 1.1rem;
  border-top: 1px solid var(--border);
}

.upload-notes-lead,
.upload-notes-foot {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.upload-notes-foot {
  margin: 0.85rem 0 0;
}

.layer-guide {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border-radius: 12px;
  background:
    radial-gradient(1200px 180px at 50% 0%, rgba(74, 144, 217, 0.12), transparent 70%),
    #f4f7fb;
  border: 1px solid var(--border);
}

.layer-guide-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.layer-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.layer-plus {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
}

.layer-chip {
  flex: 1 1 10rem;
  min-width: 9rem;
  padding: 0.55rem 0.7rem 0.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.layer-chip-code {
  display: block;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.layer-chip-code em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  padding: 0 0.15rem;
}

.layer-chip-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.layer-chip--prefix {
  border-color: #cbd5e1;
  background: #fff;
}

.layer-chip--floor {
  border-color: #93c5fd;
  background: #eff6ff;
}

.layer-chip--kind {
  border-color: #86efac;
  background: #f0fdf4;
}

.layer-guide-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.layer-panel {
  padding: 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.layer-panel header h3 {
  margin: 0.15rem 0 0.65rem;
  font-size: 0.95rem;
  color: var(--primary);
}

.layer-panel-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.layer-sheet-frame {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 11.5rem;
  padding: 0.7rem;
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 8px,
    rgba(148, 163, 184, 0.07) 8px,
    rgba(148, 163, 184, 0.07) 9px
  );
}

.layer-sheet-name {
  display: block;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.74rem;
  color: #334155;
}

.layer-sheet-name strong {
  color: #1d4ed8;
  font-weight: 800;
}

.layer-sheet-name b {
  color: #15803d;
  font-weight: 800;
}

.layer-sheet-empty {
  margin: auto 0 0;
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  border-radius: 8px;
  background: #f8fafc;
}

.layer-extra {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
}

.layer-extra-name {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
}

.layer-extra-desc {
  font-size: 0.72rem;
  color: var(--muted);
}

.layer-extra--taperd {
  border-color: #f59e0b;
  background: #fffbeb;
}

.layer-extra--taperd .layer-extra-name {
  color: #b45309;
}

.layer-extra--besto {
  border-color: #10b981;
  background: #ecfdf5;
}

.layer-extra--besto .layer-extra-name {
  color: #047857;
}

.layer-panel-note {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #475569;
}

.layer-panel--column .layer-sheet-frame {
  border-color: #fdba74;
}

.layer-panel--beam .layer-sheet-frame {
  border-color: #7dd3fc;
}

@media (max-width: 900px) {
  .layer-guide-split {
    grid-template-columns: 1fr;
  }
}

.page-placeholder .placeholder-card {
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 520px;
}

.placeholder-hint {
  color: var(--muted);
  font-size: 0.875rem;
}

.project-info-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.project-info-field input {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: inherit;
}

/* ── Project Management ── */
.project-mgmt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.project-search-input {
  min-width: 220px;
  flex: 1;
  max-width: 320px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.8125rem;
}

.project-mgmt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.outline-btn {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.outline-btn:hover {
  background: var(--background);
}

.icon-btn {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--foreground);
  font-size: 1rem;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--background);
}

.project-active-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #dceaf8;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
}

.project-active-badge.hidden {
  display: none;
}

.project-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.project-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.project-table thead {
  background: var(--primary);
  color: #fff;
}

.project-table th,
.project-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.project-table tbody tr {
  cursor: pointer;
}

.project-table tbody tr:hover {
  background: #f4f7fb;
}

.project-table tbody tr.is-active-row {
  background: #eef5fc;
}

.project-table tbody tr.is-selected-row {
  outline: 1px solid rgba(0, 32, 96, 0.18);
  outline-offset: -1px;
}

.project-active-cell {
  width: 2rem;
  text-align: center;
}

.project-active-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #22c55e;
}

.project-cell-input {
  width: 100%;
  min-width: 5rem;
  padding: 0.25rem 0.35rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
}

.project-table-footer {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.project-table-tip {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: #b45309;
}

.my-projects-active-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dceaf8;
  border-radius: var(--radius-lg);
  background: #f4f8fd;
}

.my-projects-active-card.hidden {
  display: none;
}

.my-projects-active-label {
  font-size: 0.72rem;
  color: var(--muted);
}

.my-projects-active-card strong {
  font-size: 1.05rem;
  color: var(--primary);
}

.my-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.my-project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.my-project-card:hover {
  border-color: var(--accent);
}

.my-project-card.is-active {
  border-color: var(--primary);
  background: #f4f8fd;
}

.my-project-card strong {
  font-size: 0.95rem;
  color: var(--foreground);
}

.my-project-card-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.my-project-card-footer {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.lnb-section-divider {
  height: 1px;
  margin: 0.65rem 0.5rem;
  background: rgba(255, 255, 255, 0.12);
}

.lnb-section-header {
  padding: 0.35rem 0.85rem 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.project-create-card,
.project-list-section {
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.project-create-card {
  margin-bottom: 1rem;
}

.project-create-title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.project-create-fields {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.project-trade-select {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: inherit;
  background: #fff;
}

.project-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.project-list-count {
  font-size: 0.78rem;
  color: var(--muted);
}

.project-list-row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.9fr 1fr 1.4fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.project-list-row + .project-list-row {
  margin-top: 0.55rem;
}

.project-list-row--clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-list-row--clickable:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.project-list-row--head {
  padding: 0 0.85rem 0.35rem;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.project-list-name {
  font-weight: 600;
}

.project-list-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

.project-list-action-btn {
  padding: 0.38rem 0.65rem;
  font-size: 0.75rem;
}

.project-list-action-btn--disabled,
.project-list-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.project-list-action-btn--danger:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.project-list-empty {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.project-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.project-status-badge--completed {
  background: #dcfce7;
  color: #166534;
}

.project-status-badge--pending {
  background: #dbeafe;
  color: #1d4ed8;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.project-modal.hidden {
  display: none;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.project-modal-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.project-modal-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.project-modal-message {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.5;
}

.project-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.project-delete-confirm-btn {
  background: #dc2626;
  border-color: #dc2626;
}

.project-delete-confirm-btn:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.project-detail-view {
  animation: fadeIn 0.15s ease;
}

.project-back-btn {
  margin-bottom: 0.85rem;
}

.project-result-placeholder {
  margin-top: 1rem;
  padding: 2rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted, #f8fafc);
  color: var(--text-muted, #64748b);
  text-align: center;
  font-weight: 600;
}

.project-pending-alert {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  font-weight: 600;
}

.project-result-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-result-panel {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.project-result-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.project-result-table-wrap {
  overflow: auto;
}

.project-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.project-result-table th,
.project-result-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.project-result-table thead {
  background: var(--background);
}

.project-mock-chart {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.project-mock-chart-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr 2.5rem;
  gap: 0.5rem;
  align-items: center;
}

.project-mock-chart-label,
.project-mock-chart-value {
  font-size: 0.78rem;
}

.project-mock-chart-track {
  height: 0.65rem;
  border-radius: 999px;
  background: var(--background);
  overflow: hidden;
}

.project-mock-chart-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.project-result-viewer-mock {
  padding: 1.25rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: #f8fafc;
  color: var(--muted);
}

.project-result-viewer-mock strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--foreground);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .project-create-fields,
  .project-result-grid {
    grid-template-columns: 1fr;
  }

  .project-list-row,
  .project-list-row--head {
    grid-template-columns: 1fr;
  }

  .project-list-row--head {
    display: none;
  }

  .project-list-actions {
    justify-content: flex-start;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .flow-tab {
    min-width: 140px;
  }
}

.page-header--with-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.floor-height-panel {
  margin-top: 0.5rem;
}

.floor-height-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.floor-height-bulk-field {
  display: grid;
  gap: 0.35rem;
  min-width: 160px;
}

.floor-height-bulk-field input {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.floor-height-summary {
  color: var(--text-muted, #64748b);
  font-size: 0.92rem;
  margin-left: auto;
}

.floor-height-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface, #fff);
}

.floor-height-table {
  width: 100%;
  border-collapse: collapse;
}

.floor-height-table th,
.floor-height-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.floor-height-table thead {
  background: var(--surface-muted, #f8fafc);
}

.floor-height-region {
  color: var(--text-muted, #64748b);
  font-size: 0.92rem;
}

.floor-height-input {
  width: 120px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ⑤ 도면에서 레이어 찾기 */
.layer-pick-panel {
  margin-bottom: 1rem;
}

.layer-pick-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.layer-pick-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.layer-pick-controls select {
  min-width: 10rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.layer-pick-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.layer-pick-canvas-wrap {
  height: clamp(360px, 55vh, 600px);
}

#layerPickCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  touch-action: none;
}

#layerPickCanvas.is-panning {
  cursor: grabbing;
}

.layer-pick-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #9fb0c6;
  font-size: 0.9rem;
  pointer-events: none;
}

.layer-pick-info {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  background: #f8fafc;
  overflow-y: auto;
  max-height: clamp(360px, 55vh, 600px);
  font-size: 0.85rem;
}

.layer-pick-placeholder {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.layer-pick-kind {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
}

.layer-pick-name {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  word-break: break-all;
}

.layer-pick-rows {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.75rem;
}

.layer-pick-rows dt {
  color: #64748b;
  font-weight: 600;
}

.layer-pick-rows dd {
  margin: 0;
  color: #1e293b;
  word-break: break-all;
}

.layer-pick-rows code {
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
}

.layer-pick-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.layer-pick-samples span {
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  background: #fff7cc;
  border: 1px solid #fde68a;
  font-size: 0.76rem;
}

.layer-pick-selected {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.layer-pick-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.layer-pick-selected-head button {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.layer-pick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.layer-pick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  padding: 0.12rem 0.2rem 0.12rem 0.5rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 700;
}

.layer-pick-chip button {
  border: none;
  background: transparent;
  color: #9a3412;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 0.2rem;
}

.layer-pick-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.layer-pick-badge {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
}

.layer-pick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.layer-pick-actions button {
  padding: 0.45rem 0.4rem;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.layer-pick-actions button:disabled {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
  cursor: default;
}

.layer-pick-actions .layer-pick-locate {
  grid-column: 1 / -1;
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
}

.layer-pick-block {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.layer-pick-block-path {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.layer-pick-block-path li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 0.76rem;
}

.layer-pick-block-path li.active {
  border-color: #0e7490;
  background: #ecfeff;
}

.layer-pick-block-path .layer-pick-block-name {
  border: none;
  background: transparent;
  padding: 0;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  word-break: break-all;
}

.layer-pick-block-path small {
  color: #64748b;
}

.layer-pick-block-path .layer-pick-block-register {
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
}

.win-mark-layer-aux {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #e2e8f0;
}

.win-block-candidate-wrap {
  max-height: 280px;
}

#winMarkBlockCandidateBody tr[data-block-name] {
  cursor: pointer;
}

#winMarkBlockCandidateBody tr[data-block-name]:hover td {
  background: #f8fafc;
}

#winMarkBlockCandidateBody tr.layer-row--picked td {
  background: #ecfeff;
}

.win-block-sample {
  color: #64748b;
  font-size: 0.74rem;
}

#layerTableBody tr[data-layer-name],
#winLayerTableBody tr[data-layer-name] {
  cursor: pointer;
}

#layerTableBody tr[data-layer-name]:hover td,
#winLayerTableBody tr[data-layer-name]:hover td {
  background: #f8fafc;
}

#layerTableBody tr.layer-row--picked td,
#winLayerTableBody tr.layer-row--picked td {
  background: #fff7cc;
}

#layerTableBody tr.layer-row--picked:hover td,
#winLayerTableBody tr.layer-row--picked:hover td {
  background: #fef3c7;
}

#pageWinSettings .selected-layer-item[data-layer-name],
#pageWinSettings .selected-layer-item[data-block-name] {
  cursor: pointer;
}

#pageWinSettings .selected-layer-item[data-layer-name]:hover,
#pageWinSettings .selected-layer-item[data-block-name]:hover {
  border-color: #94a3b8;
}

#pageWinSettings .selected-layer-item.is-picked,
#pageSettings .selected-layer-item.is-picked {
  background: #fff7cc;
  border-color: #f59e0b;
}

#pageSettings .selected-layer-item[data-layer-name] {
  cursor: pointer;
}

#pageSettings .selected-layer-item[data-layer-name]:hover {
  border-color: #94a3b8;
}

@media (max-width: 1100px) {
  .layer-pick-body {
    grid-template-columns: 1fr;
  }
}
/* 미결합 XREF 경고 */
.xref-warning {
  position: relative;
  margin: 0 0 1rem;
  padding: 0.85rem 2.4rem 0.85rem 1rem;
  border: 1px solid #fca5a5;
  border-left: 4px solid #dc2626;
  border-radius: var(--radius);
  background: #fef2f2;
  color: #7f1d1d;
  font-size: 0.86rem;
  line-height: 1.55;
}

.xref-warning.hidden {
  display: none;
}

.xref-warning-title {
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.xref-warning-title--soft {
  color: #92400e;
}

.xref-warning-list {
  margin: 0 0 0.6rem;
  padding-left: 1.2rem;
}

.xref-warning-list li + li {
  margin-top: 0.25rem;
}

.xref-warning code {
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.xref-warning-meta {
  color: #9f5f5f;
  font-size: 0.78rem;
}

.xref-warning-path {
  color: #9f5f5f;
  font-size: 0.76rem;
  word-break: break-all;
}

.xref-warning-guide {
  margin: 0;
  color: #450a0a;
}

.xref-warning-close {
  position: absolute;
  top: 0.4rem;
  right: 0.55rem;
  border: none;
  background: transparent;
  color: #991b1b;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}