:root {
  --app-bg: #f3f4f8;
  --app-surface: #ffffff;
  --app-border: rgba(17, 24, 39, 0.08);
  --app-border-strong: rgba(255, 255, 255, 0.08);
  --app-text: #111827;
  --app-text-soft: #667085;
  --app-text-inverse: #f8fafc;
  --app-accent-soft: rgba(217, 119, 6, 0.16);
  --app-success-bg: #e8fff3;
  --app-success-text: #0f6c42;
  --app-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --app-radius-xl: 28px;
  --app-radius-lg: 20px;
  --app-radius-md: 14px;
}

html {
  font-size: 14px;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--app-text);
  background:
    radial-gradient(circle at top, rgba(217, 119, 6, 0.12), transparent 26%),
    linear-gradient(180deg, #f8f8fb 0%, #eff1f6 100%);
}

.screen-designer-page {
  display: grid;
  gap: 1.25rem;
}

.screen-designer-header,
.screen-designer-panel {
  padding: 1.25rem;
}

.screen-designer-summary {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.screen-designer-summary-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
}

.screen-designer-summary-card span {
  color: #64748b;
  font-size: 0.85rem;
}

.screen-designer-summary-card strong {
  color: #0f172a;
  font-size: 1.5rem;
}

.screen-designer-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: 320px minmax(0, 1fr) 360px;
}

.app-layout-sidebar-hidden .screen-designer-shell {
  grid-template-columns: minmax(260px, 290px) minmax(0, 1.55fr) minmax(300px, 340px);
}

.screen-designer-column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.screen-designer-panel-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.screen-designer-screen-list,
.screen-designer-toolbox,
.screen-designer-inline-actions,
.screen-designer-nudge {
  display: grid;
  gap: 0.75rem;
}

.screen-designer-screen-item,
.screen-designer-element-item,
.screen-designer-tool {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  color: #0f172a;
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.screen-designer-screen-item.active,
.screen-designer-element-item.active,
.screen-designer-tool:hover {
  border-color: rgba(234, 88, 12, 0.5);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.12);
  transform: translateY(-1px);
}

.screen-designer-screen-item span,
.screen-designer-element-item span,
.screen-designer-tool span,
.screen-designer-note,
.screen-designer-form-hint {
  color: #64748b;
  font-size: 0.9rem;
}

.screen-designer-preview-card {
  align-items: center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  display: grid;
  min-height: 180px;
  overflow: hidden;
  place-items: center;
}

.screen-designer-preview-card img {
  display: block;
  height: auto;
  max-width: 100%;
}

.screen-designer-stage-wrap {
  background: #edf2f7;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.app-layout-sidebar-hidden .screen-designer-stage-wrap {
  padding: 1.25rem;
}

.screen-designer-stage {
  margin: 0 auto;
  position: relative;
}

.screen-designer-canvas {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.screen-designer-canvas > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.screen-designer-canvas-element {
  border-style: solid;
  border-radius: 14px;
  box-sizing: border-box;
  cursor: move;
  overflow: hidden;
  position: absolute;
}

.screen-designer-canvas-element.is-hidden {
  opacity: 0.48;
}

.screen-designer-canvas-element.active {
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.85), 0 14px 32px rgba(15, 23, 42, 0.16);
}

.screen-designer-canvas-element img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.screen-designer-canvas-text {
  display: grid;
  height: 100%;
  inset: 0;
  padding: 0.4rem;
  place-items: center;
  position: absolute;
  width: 100%;
}

.screen-designer-canvas-badge {
  background: rgba(15, 23, 42, 0.82);
  border-radius: 999px;
  color: #fff;
  font-size: 0.68rem;
  left: 0.5rem;
  padding: 0.18rem 0.5rem;
  position: absolute;
  top: 0.5rem;
}

.screen-designer-canvas-resize {
  background: #ea580c;
  border: 0;
  border-radius: 999px;
  bottom: 0.45rem;
  cursor: nwse-resize;
  height: 16px;
  position: absolute;
  right: 0.45rem;
  width: 16px;
}

.screen-designer-form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screen-designer-form-grid label {
  display: grid;
  gap: 0.35rem;
}

.screen-designer-form-grid label > span {
  color: #475569;
  font-size: 0.83rem;
  font-weight: 600;
}

.screen-designer-field-wide {
  grid-column: 1 / -1;
}

.screen-designer-check {
  align-items: center;
  display: flex !important;
  gap: 0.5rem;
  min-height: 42px;
}

.screen-designer-check input {
  margin: 0;
}

.screen-designer-inline-actions,
.screen-designer-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.screen-designer-empty {
  color: #64748b;
  font-size: 0.92rem;
  padding: 0.25rem 0;
}

@media (max-width: 1440px) {
  .screen-designer-shell {
    grid-template-columns: 280px minmax(0, 1fr) 320px;
  }

  .app-layout-sidebar-hidden .screen-designer-shell {
    grid-template-columns: minmax(240px, 270px) minmax(0, 1.35fr) minmax(280px, 320px);
  }
}

@media (max-width: 1100px) {
  .screen-designer-shell {
    grid-template-columns: 1fr;
  }

  .screen-designer-form-grid {
    grid-template-columns: 1fr;
  }
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.app-brand-title,
.hero-title,
.dashboard-title,
.panel-title,
.login-title,
.metric-value,
.app-page-title {
  font-family: "Manrope", "Noto Sans KR", sans-serif;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(217, 119, 6, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #c86c05 0%, #d45108 100%);
  border-color: transparent;
}

.app-shell-authenticated {
  background:
    linear-gradient(180deg, rgba(14, 19, 33, 0.96), rgba(14, 19, 33, 0.96)) left / 320px 100% no-repeat,
    linear-gradient(180deg, #f7f8fc 0%, #eef1f6 100%);
}

.app-shell-authenticated.app-shell-sidebar-hidden {
  background: linear-gradient(180deg, #f7f8fc 0%, #eef1f6 100%);
}

.app-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

.app-layout.app-layout-sidebar-hidden {
  grid-template-columns: 1fr;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  color: var(--app-text-inverse);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.app-brand-logo {
  display: block;
  max-width: 100%;
  height: auto;
}

.app-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff7ed;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.app-brand-title,
.app-brand-subtitle {
  display: block;
}

.app-brand-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.app-brand-subtitle {
  margin-top: 0.15rem;
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.82rem;
}

.app-sidebar-section {
  margin-top: 2rem;
}

.app-sidebar-label,
.app-eyebrow,
.hero-kicker,
.panel-kicker,
.login-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
}

.app-sidebar-label {
  margin-bottom: 0.75rem;
  color: rgba(248, 250, 252, 0.48);
}

.app-nav-list {
  display: grid;
  gap: 0.45rem;
}

.app-nav-link {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--app-radius-md);
  color: rgba(248, 250, 252, 0.84);
  text-decoration: none;
  transition: all 0.18s ease;
}

.app-nav-link:hover {
  border-color: var(--app-border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.app-nav-link.active {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(234, 88, 12, 0.18));
  border-color: rgba(249, 115, 22, 0.28);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-sidebar-footer {
  margin-top: auto;
  padding-top: 1.5rem;
}

.app-user-chip {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--app-border-strong);
  border-radius: var(--app-radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.app-user-chip-name {
  font-weight: 600;
}

.app-user-chip-role {
  margin-top: 0.2rem;
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.82rem;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 2.25rem 1.25rem;
}

.app-eyebrow,
.hero-kicker,
.panel-kicker,
.login-kicker {
  color: #b45309;
}

.app-page-title {
  margin: 0.35rem 0 0;
  font-size: 2rem;
  font-weight: 700;
}

.app-topbar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
}

.app-pill,
.hero-pill,
.panel-badge,
.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.app-pill {
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
}

.app-pill-muted {
  background: rgba(255, 255, 255, 0.72);
}

.app-content {
  padding: 0 2.25rem 2.25rem;
}

.layout-designer-page {
  display: grid;
  gap: 1.25rem;
}

.layout-designer-browser {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.layout-designer-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
}

.layout-designer-summary-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.layout-designer-summary-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--app-text-soft);
  font-size: 0.8rem;
}

.layout-designer-summary-card strong {
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-size: 1.35rem;
}

.layout-designer-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.layout-designer-page-head-copy {
  display: grid;
  gap: 0.9rem;
}

.layout-designer-back-link {
  justify-self: flex-start;
}

.layout-designer-shell {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1.35fr) minmax(290px, 330px);
  gap: 1.15rem;
  align-items: start;
}

.app-layout-sidebar-hidden .layout-designer-shell {
  grid-template-columns: minmax(240px, 275px) minmax(0, 1.75fr) minmax(285px, 325px);
}

.layout-designer-column {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.layout-designer-panel {
  min-width: 0;
  border-radius: var(--app-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
}

.layout-designer-table-panel {
  padding: 1.35rem;
}

.layout-designer-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.layout-designer-library-actions,
.layout-designer-toolbar,
.layout-designer-editor-actions,
.layout-designer-nudge,
.layout-designer-footer,
.layout-designer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.layout-designer-library-list,
.layout-designer-legacy-list,
[data-back-variant-list],
[data-front-variant-list],
[data-color-list],
[data-special-frame-list] {
  display: grid;
  gap: 0.55rem;
}

.layout-designer-library-item,
.layout-designer-list-item {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #f9fafb;
  color: inherit;
  text-decoration: none;
  text-align: left;
  transition: all 0.18s ease;
}

.layout-designer-library-item:hover,
.layout-designer-list-item:hover,
.layout-designer-library-item.active,
.layout-designer-list-item.active {
  border-color: rgba(217, 119, 6, 0.28);
  background: rgba(255, 247, 237, 0.92);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.08);
}

.layout-designer-library-item span,
.layout-designer-library-item small,
.layout-designer-list-item span {
  color: var(--app-text-soft);
  font-size: 0.82rem;
}

.layout-designer-table {
  margin-bottom: 0;
  vertical-align: middle;
}

.layout-designer-table th {
  color: var(--app-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.layout-designer-table td {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.layout-designer-table-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.layout-designer-empty {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #f8fafc;
  color: var(--app-text-soft);
}

.layout-designer-overview-panel {
  min-height: 100%;
}

.layout-designer-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

.layout-designer-column-center {
  min-width: 0;
}

.layout-designer-stage-wrap {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.layout-designer-stage {
  width: 100%;
  min-width: 0;
  min-height: 700px;
  padding: 1.65rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  touch-action: none;
}

.layout-designer-canvas {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 18px 30px rgba(15, 23, 42, 0.08);
}

.layout-designer-canvas > img,
.layout-designer-canvas > [data-slot-layer] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.layout-designer-canvas > img,
.layout-designer-timestamp-preview {
  pointer-events: none;
  user-select: none;
}

.layout-designer-timestamp-measure {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
  white-space: pre;
  line-height: 1.1;
  pointer-events: none;
  user-select: none;
}

.layout-designer-slot {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.55rem 1.25rem 1.25rem 0.55rem;
  border: 2px solid rgba(17, 24, 39, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  cursor: move;
  touch-action: none;
  backdrop-filter: blur(10px);
}

.layout-designer-slot-type-0 {
  border-color: rgba(14, 116, 144, 0.42);
  background: rgba(236, 254, 255, 0.62);
}

.layout-designer-slot-type-1 {
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(255, 237, 213, 0.72);
}

.layout-designer-slot-type-2 {
  border-color: rgba(168, 85, 247, 0.42);
  background: rgba(245, 243, 255, 0.72);
}

.layout-designer-slot.active {
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
  z-index: 3;
}

.layout-designer-slot-label,
.layout-designer-slot-meta {
  font-size: 0.78rem;
  font-weight: 600;
}

.layout-designer-slot-meta {
  color: var(--app-text-soft);
}

.layout-designer-slot-head {
  display: grid;
  gap: 0.15rem;
}

.layout-designer-slot-timestamp-active {
  justify-content: flex-start;
}

.layout-designer-slot-preview-text {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 1.35rem;
  white-space: nowrap;
  line-height: 1.1;
  overflow: hidden;
}

.layout-designer-slot-delete {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: 1px solid rgba(220, 38, 38, 0.28);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #dc2626;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.14s ease, transform 0.14s ease, background-color 0.14s ease;
}

.layout-designer-slot.active .layout-designer-slot-delete,
.layout-designer-slot:hover .layout-designer-slot-delete {
  opacity: 1;
}

.layout-designer-slot-delete:hover,
.layout-designer-slot-delete:focus-visible {
  background: #fee2e2;
  opacity: 1;
  transform: scale(1.06);
}

.layout-designer-slot-handle {
  position: absolute;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 2px solid #f59e0b;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 0 5px rgba(245, 158, 11, 0.18);
  pointer-events: auto;
  touch-action: none;
  z-index: 4;
}

.layout-designer-slot-handle-nw {
  left: -0.5rem;
  top: -0.5rem;
  cursor: nwse-resize;
}

.layout-designer-slot-handle-ne {
  right: -0.5rem;
  top: -0.5rem;
  cursor: nesw-resize;
}

.layout-designer-slot-handle-sw {
  left: -0.5rem;
  bottom: -0.5rem;
  cursor: nesw-resize;
}

.layout-designer-slot-handle-se {
  right: -0.5rem;
  bottom: -0.5rem;
  cursor: nwse-resize;
}

body.layout-designer-pointer-active {
  user-select: none;
}

.layout-designer-timestamp-preview {
  position: absolute;
  display: flex;
  align-items: center;
  white-space: pre;
  line-height: 1.1;
  z-index: 2;
}

.layout-designer-timestamp-preview.is-interactive {
  pointer-events: auto;
  cursor: move;
}

.layout-designer-note {
  margin-top: 0.8rem;
  color: var(--app-text-soft);
  font-size: 0.84rem;
}

.layout-designer-form-grid,
.layout-designer-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.layout-designer-form-grid label,
.layout-designer-editor-grid label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--app-text-soft);
}

.layout-designer-field-wide {
  grid-column: 1 / -1;
}

.layout-designer-editor-subgrid {
  margin-top: 0.85rem;
}

.layout-designer-field-help {
  color: var(--app-text-soft);
  font-size: 0.76rem;
}

.layout-designer-field-error {
  color: #dc2626;
  font-size: 0.76rem;
}

.layout-designer-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--app-text);
}

.layout-designer-check.is-disabled {
  opacity: 0.6;
}

.layout-designer-preview-frame {
  display: grid;
  place-items: center;
  min-height: 180px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.layout-designer-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.layout-designer-swatch {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  vertical-align: middle;
}

.layout-designer-legacy-item {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.layout-designer-legacy-item span {
  display: block;
  margin-top: 0.2rem;
  color: var(--app-text-soft);
  font-size: 0.82rem;
}

.layout-preview-download-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1rem;
}

.layout-preview-download-grid label,
.layout-preview-download-slot {
  display: grid;
  gap: 0.45rem;
  color: var(--app-text);
}

.layout-preview-download-slots {
  display: grid;
  gap: 0.85rem;
}

.layout-preview-download-help {
  margin: 0;
  font-size: 0.88rem;
  color: var(--app-text-muted);
}

@media (max-width: 1680px) {
  .layout-designer-shell {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1.12fr);
  }

  .app-layout-sidebar-hidden .layout-designer-shell {
    grid-template-columns: minmax(230px, 265px) minmax(0, 1.45fr);
  }

  .layout-designer-column-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-designer-footer {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1400px) {
  .layout-designer-browser {
    grid-template-columns: 1fr;
  }

  .layout-designer-column-right {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .layout-designer-shell {
    grid-template-columns: 1fr;
  }

  .layout-designer-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .layout-designer-stage {
    min-height: 560px;
  }
}

@media (max-width: 767px) {
  .layout-designer-form-grid,
  .layout-designer-editor-grid {
    grid-template-columns: 1fr;
  }
}

.app-topbar-label {
  padding-left: 0.3rem;
  font-size: 0.82rem;
  color: var(--app-text-soft);
}

.app-topbar-user {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
}

.app-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.app-language-button {
  min-width: 4.8rem;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--app-text-soft);
  font-weight: 600;
}

.app-language-button:hover {
  color: #111827;
}

.app-language-button.active {
  background: #111827;
  color: #fff;
}

.app-alert-success {
  border: 1px solid rgba(15, 108, 66, 0.12);
  background: var(--app-success-bg);
  color: var(--app-success-text);
  border-radius: var(--app-radius-md);
}

.hero-panel,
.app-panel,
.metric-card,
.login-copy-panel,
.login-form-panel {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--app-shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 1.5rem;
  padding: 2rem;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.hero-title {
  max-width: 13ch;
  margin: 0.4rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.98;
}

.hero-copy,
.panel-copy,
.timeline-copy,
.metric-note,
.login-copy,
.login-note,
.feature-card p,
.role-card p {
  color: var(--app-text-soft);
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.hero-pill {
  align-self: flex-start;
  background: var(--app-accent-soft);
  color: #9a3412;
}

.hero-metric {
  padding: 1.2rem;
  border-radius: var(--app-radius-lg);
  background: #111827;
  color: #f8fafc;
}

.hero-metric-label,
.metric-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: inherit;
}

.hero-metric-value,
.metric-value {
  display: block;
  margin-top: 0.35rem;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
}

.metric-card {
  padding: 1.35rem;
}

.metric-label {
  color: #6b7280;
}

.metric-value {
  margin: 0.45rem 0 0.55rem;
  color: #111827;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-panel {
  padding: 1.5rem;
}

.panel-title {
  margin: 0.25rem 0 0;
  font-size: 1.45rem;
}

.panel-badge {
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
}

.feature-grid,
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.role-card {
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  background: rgba(249, 250, 251, 0.9);
}

.feature-card h3,
.role-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.timeline-list {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #111827;
  color: #fff;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-weight: 700;
}

.timeline-title {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.role-badge {
  margin-bottom: 0.75rem;
  background: #111827;
  color: #fff;
}

.role-badge-muted {
  background: rgba(17, 24, 39, 0.1);
  color: #111827;
}

.public-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.14), transparent 24%),
    linear-gradient(180deg, #f8f9fc 0%, #edf1f6 100%);
}

.public-header {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0 1.25rem;
}

.public-content {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.public-content-compact {
  width: min(560px, 100%);
  display: grid;
  align-items: center;
}

.login-shell {
  display: grid;
  align-items: center;
  min-height: 100%;
}

.app-brand-public {
  justify-content: center;
}

.app-brand-logo-public {
  width: min(320px, 72vw);
}

.login-copy-panel,
.login-form-panel,
.login-card {
  padding: 2rem;
}

.login-card {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--app-shadow);
}

.login-brand-row {
  margin-bottom: 1.5rem;
}

.login-copy-panel {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.36), transparent 32%),
    linear-gradient(180deg, #111827 0%, #162033 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

.login-kicker {
  color: rgba(255, 247, 237, 0.75);
}

.login-title {
  margin: 0.45rem 0 0.9rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.login-copy-panel .login-copy {
  color: rgba(248, 250, 252, 0.78);
}

.login-facts {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.login-fact {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--app-radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.login-fact-label {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(248, 250, 252, 0.56);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-fact-value {
  font-weight: 600;
}

.login-form-header {
  margin-bottom: 1.5rem;
}

.login-hint {
  padding: 0.95rem 1rem;
  margin-top: 1rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  background: rgba(248, 250, 252, 0.9);
  color: var(--app-text-soft);
  font-size: 0.92rem;
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.login-note {
  font-size: 0.82rem;
  text-align: right;
}

.dashboard-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-title {
  margin: 0.4rem 0 0.55rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.dashboard-meta {
  min-width: 220px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  background: rgba(255, 255, 255, 0.8);
}

.dashboard-meta-label,
.summary-card-label,
.dashboard-list-meta {
  color: var(--app-text-soft);
}

.dashboard-meta-label,
.summary-card-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-meta-value {
  margin-top: 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.dashboard-meta-note {
  margin-top: 0.2rem;
  color: var(--app-text-soft);
  font-size: 0.88rem;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.summary-card {
  padding: 1.3rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--app-shadow);
}

.summary-card-value {
  margin: 0.55rem 0 0.35rem;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.05;
}

.summary-card-note {
  color: var(--app-text-soft);
  font-size: 0.9rem;
}

.dashboard-list {
  display: grid;
  gap: 0.95rem;
}

.dashboard-list-row {
  display: grid;
  gap: 0.45rem;
}

.dashboard-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-list-label {
  font-weight: 600;
}

.dashboard-bar-track {
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.dashboard-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
}

.dashboard-bar-fill-muted {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.dashboard-bar-fill-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.dashboard-bar-fill-refund {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
}

.dashboard-link {
  color: #9a3412;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-link:hover {
  text-decoration: underline;
}

.dashboard-empty {
  color: var(--app-text-soft);
}

.dashboard-table .table > :not(caption) > * > * {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-chip-approved {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.status-chip-pending {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.status-chip-failed {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.status-chip-refunded {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}

.card {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  box-shadow: var(--app-shadow);
}

.table {
  --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.form-control,
.form-select {
  min-height: 3rem;
  border-radius: 0.9rem;
  border-color: rgba(17, 24, 39, 0.12);
}

.form-check-input {
  border-color: rgba(17, 24, 39, 0.2);
}

.text-muted {
  color: var(--app-text-soft) !important;
}

code {
  color: #b45309;
}

.layout-editor-page {
  display: grid;
  gap: 1.25rem;
}

.layout-editor-page-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.layout-editor-panel {
  padding: 1.35rem;
}

.layout-editor-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.layout-editor-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.layout-editor-summary-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--app-shadow);
}

.layout-editor-summary-card strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.05;
}

.layout-editor-summary-label {
  color: var(--app-text-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.layout-editor-top-grid,
.layout-editor-workbench,
.layout-editor-secondary-grid {
  display: grid;
  gap: 1rem;
}

.layout-editor-top-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
}

.layout-editor-workbench {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
}

.layout-editor-side {
  display: grid;
  gap: 1rem;
}

.layout-editor-secondary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.layout-editor-checkbox {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}

.layout-editor-canvas-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.layout-editor-stage-shell {
  display: flex;
  justify-content: center;
  padding: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--app-radius-lg);
  background:
    radial-gradient(circle at top, rgba(217, 119, 6, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
}

.layout-editor-stage-board {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 420px;
}

.layout-editor-stage-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 24px 40px rgba(15, 23, 42, 0.1);
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.layout-editor-stage-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--app-text-soft);
  text-align: center;
  pointer-events: none;
}

.layout-editor-stage-hint {
  margin: 0.85rem 0 0;
  color: var(--app-text-soft);
  font-size: 0.92rem;
}

.layout-editor-inline-alert {
  margin-bottom: 1rem;
  border-radius: var(--app-radius-md);
}

.layout-editor-stage-slot {
  position: absolute;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
  cursor: grab;
  user-select: none;
}

.layout-editor-pointer-active,
.layout-editor-pointer-active * {
  cursor: grabbing !important;
}

.layout-editor-stage-slot.is-selected {
  outline: 3px solid rgba(217, 119, 6, 0.48);
  outline-offset: 2px;
}

.layout-editor-stage-slot-photo {
  background: rgba(14, 165, 233, 0.16);
}

.layout-editor-stage-slot-qr {
  background: rgba(245, 158, 11, 0.2);
}

.layout-editor-stage-slot-timestamp {
  background: rgba(15, 23, 42, 0.14);
}

.layout-editor-stage-slot-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0.7rem 0.75rem;
}

.layout-editor-stage-slot-topline,
.layout-editor-stage-slot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.layout-editor-stage-slot-id,
.layout-editor-stage-slot-type,
.layout-editor-stage-slot-meta,
.layout-editor-stage-slot-flag,
.layout-editor-stage-slot-overlay-flag {
  font-size: 0.74rem;
  font-weight: 700;
}

.layout-editor-stage-slot-flag,
.layout-editor-stage-slot-overlay-flag {
  align-self: flex-start;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.layout-editor-stage-resize {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 999px;
  background: #111827;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.layout-editor-timestamp-preview {
  position: absolute;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  pointer-events: none;
}

.layout-editor-slot-list {
  display: grid;
  gap: 0.7rem;
}

.layout-editor-slot-card {
  display: grid;
  gap: 0.4rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  background: rgba(248, 250, 252, 0.88);
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.layout-editor-slot-card:hover {
  border-color: rgba(217, 119, 6, 0.28);
  transform: translateY(-1px);
}

.layout-editor-slot-card.is-selected {
  border-color: rgba(217, 119, 6, 0.38);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.layout-editor-slot-card-head,
.layout-editor-slot-card-meta,
.layout-editor-slot-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.layout-editor-slot-card-id {
  font-weight: 700;
}

.layout-editor-slot-card-type,
.layout-editor-slot-card-meta,
.layout-editor-slot-card-foot {
  color: var(--app-text-soft);
  font-size: 0.84rem;
}

.layout-editor-inspector-grid,
.layout-editor-repeater-grid,
.layout-editor-raw-grid {
  display: grid;
  gap: 0.8rem;
}

.layout-editor-inspector-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-editor-inline-field {
  display: grid;
  gap: 0.35rem;
}

.layout-editor-inline-field > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--app-text-soft);
}

.layout-editor-repeater-card {
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  background: rgba(249, 250, 251, 0.92);
}

.layout-editor-repeater-card + .layout-editor-repeater-card {
  margin-top: 0.85rem;
}

.layout-editor-repeater-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.layout-editor-repeater-title {
  font-weight: 700;
}

.layout-editor-repeater-subtitle {
  margin-top: 0.2rem;
  color: var(--app-text-soft);
  font-size: 0.84rem;
}

.layout-editor-repeater-grid-color {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.layout-editor-repeater-grid-special {
  grid-template-columns: 1.05fr 1fr 1fr 140px;
}

.layout-editor-repeater-grid-frame {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.layout-editor-repeater-grid-frame-resource {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.layout-editor-color-preview-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.layout-editor-color-preview {
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 0.6rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.layout-editor-subdetails {
  margin-top: 0.85rem;
}

.layout-editor-subdetails > summary {
  cursor: pointer;
  color: #9a3412;
  font-weight: 600;
}

.layout-editor-empty-state {
  padding: 1rem;
  border: 1px dashed rgba(17, 24, 39, 0.14);
  border-radius: var(--app-radius-md);
  color: var(--app-text-soft);
  background: rgba(248, 250, 252, 0.7);
}

.layout-editor-advanced {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--app-shadow);
}

.layout-editor-advanced > summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
}

.layout-editor-advanced-body {
  padding: 0 1.2rem 1.2rem;
}

.layout-editor-raw-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-editor-raw-field {
  min-height: 10rem;
}

@media (max-width: 991.98px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .app-content,
  .app-topbar {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-panel,
  .login-shell,
  .feature-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-intro,
  .app-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .layout-editor-summary-grid,
  .layout-editor-top-grid,
  .layout-editor-workbench,
  .layout-editor-secondary-grid,
  .layout-editor-raw-grid,
  .layout-editor-repeater-grid-color,
  .layout-editor-repeater-grid-special,
  .layout-editor-repeater-grid-frame,
  .layout-editor-repeater-grid-frame-resource {
    grid-template-columns: 1fr;
  }

  .layout-editor-inspector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-topbar-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .public-shell,
  .app-sidebar,
  .app-content,
  .app-topbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-panel,
  .app-panel,
  .metric-card,
  .login-copy-panel,
  .login-form-panel,
  .login-card,
  .summary-card {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .hero-title,
  .login-title {
    font-size: 1.9rem;
  }

  .dashboard-metric-grid {
    grid-template-columns: 1fr;
  }

  .login-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .login-note {
    text-align: left;
  }

  .app-language-switch {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .layout-editor-panel {
    padding: 1.05rem;
  }

  .layout-editor-inspector-grid {
    grid-template-columns: 1fr;
  }

  .layout-editor-stage-shell {
    padding: 0.75rem;
  }

  .layout-editor-stage-board {
    min-width: 0;
    width: 100%;
    min-height: 280px;
  }
}

.layout-import-result {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.layout-import-result-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.layout-import-result-metrics {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.layout-import-result-table {
  margin-bottom: 0;
}

.layout-import-result-warning-list {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #667085;
}
