:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f7f7f7;
  --line: #e7e7e8;
  --text: #141416;
  --muted: #727273;
  --muted-strong: #5b5b5c;
  --accent: #217dff;
  --accent-soft: #e8f2ff;
  --accent-mid: #b8d5ff;
  --success: #28c76f;
  --success-soft: rgba(40, 199, 111, 0.14);
  --warning: #ff9f43;
  --warning-soft: rgba(255, 159, 67, 0.16);
  --danger: #ff4c51;
  --shadow: 0 8px 24px rgba(20, 20, 22, 0.06);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", sans-serif;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

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

.sidebar {
  padding: 28px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

.brand h1,
.hero-card h2,
.screen-header h3,
.notes-card h3,
.success-state h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
}

.brand h1 {
  font-size: 26px;
}

.eyebrow,
.mini-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
}

.lede,
.sidebar p,
.screen-header p,
.notes-card p,
.tile span,
.list-card span,
.option small {
  color: var(--muted);
  line-height: 1.5;
}

.sidebar-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.sidebar-section h2 {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.checklist,
.scenario-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.checklist li {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--muted-strong);
}

.scenario-btn,
.journey-chip {
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  transition: 180ms ease;
  font-weight: 400;
  font-size: 14px;
}

.scenario-btn.active,
.journey-chip.active,
.scenario-btn:hover,
.journey-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent-mid);
  color: var(--accent);
  transform: translateY(-1px);
}

.canvas {
  padding: 28px;
}

.hero-card,
.notes-card,
.phone-frame,
.sidebar,
.notes-panel,
.hero-meta .stat {
  box-shadow: var(--shadow);
}

.hero-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
}

.hero-card h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  margin-bottom: 10px;
}

.hero-meta {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.stat {
  min-width: 88px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  text-align: center;
}

.stat span {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.stat small {
  color: var(--muted);
}

.prototype-stage {
  margin-top: 24px;
}

.journey {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.stage-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}

.phone-frame {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  width: min(100%, 390px);
  padding: 10px;
  border-radius: 34px;
  background: #dfe3ea;
  border: 1px solid #d0d0d0;
}

.phone-notch {
  width: 34%;
  height: 24px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: #a1a1a2;
}

.phone-screen {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
}

.web-frame {
  display: none;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-height: 760px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.web-frame.active {
  display: block;
}

.notes-panel {
  grid-column: 2;
  grid-row: 1;
}

.web-screen {
  display: none;
  min-height: 760px;
}

.web-screen.active {
  display: block;
}

.web-login-shell {
  display: grid;
  place-items: center;
  min-height: 760px;
  padding: 32px;
  background: #f5f7fb;
}

.web-login-card {
  width: min(100%, 460px);
  padding: 28px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 760px;
}

.admin-sidebar {
  padding: 20px;
  border-right: 1px solid var(--line);
  background: #fbfcff;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.small-mark {
  width: 52px;
  height: 52px;
  font-size: 18px;
  border-radius: 16px;
}

.admin-brand strong {
  display: block;
  font-size: 16px;
}

.admin-brand small {
  color: var(--muted);
}

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

.admin-nav-item {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted-strong);
  font-weight: 400;
}

.admin-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-mid);
}

.admin-main {
  padding: 24px;
  display: grid;
  gap: 20px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-topbar h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

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

.admin-metric-card {
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.admin-metric-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.admin-metric-card span {
  color: var(--muted);
  line-height: 1.45;
}

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

.admin-panel {
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.admin-panel.wide {
  grid-column: 1 / -1;
}

.admin-panel-header {
  margin-bottom: 14px;
}

.admin-panel-header strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.admin-panel-header small {
  color: var(--muted);
}

.admin-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
}

.admin-table-row + .admin-table-row {
  border-top: 1px solid var(--line);
}

.admin-table-head {
  background: #f7fbff;
  font-weight: 700;
}

.login-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  min-height: 100%;
}

.login-brand {
  text-align: center;
  margin-bottom: 8px;
}

.logo-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.login-brand h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
}

.login-brand p {
  margin: 0;
  color: var(--muted);
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
}

.form-field {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted-strong);
}

.login-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 14px;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.screen {
  display: none;
  height: 100%;
  padding: 20px 18px 24px;
}

.screen.active {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  scrollbar-width: none;
}

.screen.active::-webkit-scrollbar {
  display: none;
}

.appbar-row,
.subpage-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subpage-appbar {
  min-height: 32px;
}

.subpage-appbar strong {
  font-size: 16px;
  font-weight: 600;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.icon-btn.subtle {
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  font-size: 20px;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 26px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 14px;
}

.profile-icon {
  font-size: 16px;
}

.screen-header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.screen-header h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.cards-stack {
  display: grid;
  gap: 14px;
}

.tile,
.designer-card,
.list-card,
.calendar-card,
.payment-card,
.countdown-card,
.dual-card,
.feed-item,
.option,
.message-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--line);
}

.highlight {
  background: var(--accent-soft);
  border-color: var(--accent-mid);
}

.settings-block {
  border-radius: var(--radius-md);
  background: #f7fbff;
  border: 1px solid var(--accent-mid);
  overflow: hidden;
}

.settings-section {
  display: grid;
  gap: 10px;
}

.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.setting-row strong {
  font-size: 14px;
}

.setting-row.emphasis {
  background: rgba(255, 255, 255, 0.45);
}

.setting-row + .setting-row {
  border-top: 1px solid var(--line);
}

.switch {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d0d0d0;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.switch.on {
  background: var(--accent);
}

.switch.on::after {
  left: 21px;
}

.designer-card {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.profile-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.profile-card-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-circle.small {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.profile-card-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.profile-card-row small {
  color: var(--muted);
  line-height: 1.45;
}

.primary,
.ghost,
.inline-action,
.social-btn {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 500;
  font-size: 14px;
}

.primary {
  color: white;
  background: var(--accent);
}

.primary.large {
  width: 100%;
  margin-top: auto;
}

.ghost {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
}

.inline-action {
  padding: 10px 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.social-btn {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
}

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

.list-card strong,
.tile strong,
.designer-card h4,
.payment-card strong,
.countdown {
  display: block;
}

.bottom-nav {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--line);
}

.bottom-nav span {
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.bottom-nav .active {
  background: var(--accent-soft);
  color: var(--accent);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.greeting-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.date-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.quote-text {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: 16px;
}

.avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  flex: 0 0 auto;
}

.institution-pill {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 14px;
}

.dashboard-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 96px;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--text);
}

.category-card strong {
  font-size: 13px;
  font-weight: 600;
}

.category-card small {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.category-card small:empty {
  display: none;
}

.category-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.category-icon.blue {
  background: var(--accent-soft);
}

.category-icon.green {
  background: rgba(40, 199, 111, 0.14);
}

.category-icon.orange {
  background: rgba(255, 159, 67, 0.16);
}

.category-icon.purple {
  background: rgba(115, 103, 240, 0.12);
}

.promo-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f3f3f3, #eceff5);
  overflow: hidden;
}

.promo-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: #fff;
  color: var(--accent);
  font-weight: 500;
  font-size: 13px;
}

.promo-card h4 {
  margin: 14px 0 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.promo-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.5;
}

.step-header {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d0d0;
}

.step-dot.active {
  background: var(--accent);
}

.image-block {
  min-height: 160px;
  border-radius: var(--radius-md);
}

.image-block.warm {
  background:
    linear-gradient(135deg, #e8f2ff, #9ec6ff),
    linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.24) 45%, transparent 55%);
}

.image-block.cool {
  background:
    linear-gradient(135deg, #f3f3f3, #d1e4ff),
    linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.22) 40%, transparent 60%);
}

.service-row,
.row,
.feed-item,
.dual-card,
.calendar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.screen-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  padding-bottom: 4px;
}

.time-grid,
.action-grid {
  display: grid;
  gap: 10px;
}

.time-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
}

.time-grid button,
.action-grid button {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--text);
}

.time-grid .selected,
.active-pill {
  background: var(--accent);
  color: white;
}

.time-grid .disabled {
  background: #f3f3f3;
  color: #a1a1a2;
}

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

.action-list {
  display: grid;
  gap: 12px;
}

.action-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  text-align: left;
  border-radius: var(--radius-sm);
  background: #fafafa;
  border: 1px solid var(--line);
}

.action-tile div {
  display: grid;
  gap: 4px;
}

.action-tile strong {
  font-size: 16px;
  font-weight: 500;
}

.action-tile small {
  color: var(--muted);
  line-height: 1.4;
}

.payment-card .total,
.row.total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.option.selected {
  border-color: var(--accent-mid);
  background: var(--accent-soft);
}

.message-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.success-state {
  margin: auto 0;
  text-align: center;
}

.success-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 800;
}

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

.countdown {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
}

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

.status {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status.processing {
  background: var(--warning-soft);
  color: var(--warning);
}

.status.settled {
  background: var(--success-soft);
  color: var(--success);
}

.notes-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
}

.notes-card {
  display: none;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.notes-card.active {
  display: block;
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stage-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame,
  .web-frame,
  .notes-panel {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .canvas,
  .sidebar {
    padding: 18px;
  }

  .hero-card {
    flex-direction: column;
  }

  .hero-meta {
    width: 100%;
    justify-content: space-between;
  }

  .journey {
    flex-wrap: wrap;
  }

  .screen-header h3 {
    font-size: 17px;
  }

  .screen-actions {
    grid-template-columns: 1fr;
  }
}
