:root {
  --ink: #142033;
  --muted: #607083;
  --line: #dde6ef;
  --paper: #ffffff;
  --soft: #f3f7fa;
  --teal: #0fb5b1;
  --navy: #124375;
  --coral: #ff746d;
  --amber: #f5b84b;
  --green: #48a868;
  --violet: #6854c9;
  --off: #919485;
  --shadow: 0 18px 48px rgba(20, 32, 51, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans KR",
    sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6vw;
  background: rgba(243, 247, 250, 0.9);
  border-bottom: 1px solid rgba(221, 230, 239, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.header-actions a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(20, 32, 51, 0.12);
}

.header-actions {
  display: flex;
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 800;
}

main {
  overflow: hidden;
}

body.is-modal-open {
  overflow: hidden;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 18px;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  background: rgba(20, 32, 51, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(20, 32, 51, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.chat-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 32, 51, 0.48);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease;
}

.chat-modal-backdrop.is-visible {
  opacity: 1;
}

.chat-modal-backdrop[hidden] {
  display: none;
}

.chat-modal {
  position: relative;
  width: min(520px, 100%);
  padding: 30px;
  text-align: center;
  background:
    radial-gradient(circle at 12% 0%, rgba(15, 181, 177, 0.14), transparent 34%),
    #ffffff;
  border: 1px solid rgba(221, 230, 239, 0.96);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(20, 32, 51, 0.24);
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
}

.chat-modal-backdrop.is-visible .chat-modal {
  transform: translateY(0) scale(1);
}

.modal-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.modal-eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.chat-modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.chat-modal p + p,
.chat-modal #chatModalBody {
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.75;
  word-break: keep-all;
}

.chat-modal #chatModalBody span {
  display: block;
}

.modal-chat-action {
  width: 100%;
}

.mini-world {
  min-height: calc(100vh - 75px);
  padding: 34px 5vw 68px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 193, 209, 0.42), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(151, 221, 226, 0.5), transparent 26%),
    linear-gradient(135deg, #f8fbff 0%, #fff7fb 50%, #f3fbfb 100%);
}

.mini-site-header {
  background: rgba(255, 255, 255, 0.76);
}

.mini-shell {
  position: relative;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr) 142px;
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 18%, rgba(176, 231, 237, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 253, 254, 0.96) 58%, rgba(255, 248, 251, 0.92));
  border: 1px solid #d7e4ee;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(82, 105, 129, 0.18);
}

.mini-profile-card,
.mini-desk,
.mini-tabs {
  border: 1px solid #dbe8f2;
  box-shadow: 0 16px 36px rgba(52, 75, 99, 0.08);
}

.mini-profile-card {
  align-self: start;
  padding: 16px;
  background: #fffdfd;
  border-radius: 22px;
}

.mini-profile-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #7d8da0;
  font-size: 0.72rem;
  font-weight: 900;
}

.today-count {
  color: #ff7fa0;
}

.mini-avatar {
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  margin: 20px auto 14px;
  background: linear-gradient(145deg, #ffffff, #eefbfb);
  border: 1px solid #d8edf0;
  border-radius: 32px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.65);
}

.mini-avatar img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.mini-status {
  margin: 0;
  padding: 12px;
  color: #405064;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
  background: #fff7fa;
  border: 1px dashed #ffc2d3;
  border-radius: 16px;
}

.mini-message-rotator {
  position: relative;
  display: flex;
  align-items: center;
  margin: 16px 0;
  padding: 18px;
  min-height: 118px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 187, 206, 0.42), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f1fcfd 55%, #fff7fa 100%);
  border: 1px solid #dbe8f2;
  border-radius: 20px;
}

.mini-message-rotator::before {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #f7b84f;
  font-size: 1rem;
  content: "✦";
}

.mini-message-rotator::after {
  position: absolute;
  inset: auto 18px 16px 18px;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, rgba(17, 182, 178, 0.7), rgba(255, 127, 160, 0.58), rgba(107, 83, 203, 0.55));
  border-radius: 999px;
  opacity: 0.34;
}

.mini-message-rotator p {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center start;
  margin: 0;
  padding-right: 10px;
  color: #405064;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.55;
  word-break: keep-all;
  opacity: 0;
  transform: translateY(8px);
  animation: rotateMiniMessage 15s ease-in-out infinite;
}

.mini-message-rotator p:nth-child(2) {
  animation-delay: 5s;
}

.mini-message-rotator p:nth-child(3) {
  animation-delay: 10s;
}

@keyframes rotateMiniMessage {
  0%,
  28% {
    opacity: 1;
    transform: translateY(0);
  }

  33.333%,
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.mini-info-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.mini-info-list div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #f8fbfd;
  border: 1px solid #e4edf4;
  border-radius: 13px;
}

.mini-info-list dt {
  color: #7b8b9e;
  font-size: 0.74rem;
  font-weight: 900;
}

.mini-info-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.mini-profile-button,
.secondary-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  color: var(--navy);
  font-weight: 950;
  text-decoration: none;
  background: #eaf8f9;
  border: 1px solid #bfe7e9;
  border-radius: 14px;
}

.mini-desk {
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
}

.mini-tabs {
  position: relative;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(241, 250, 252, 0.86);
  border: 1px solid #dbe8f2;
  border-radius: 26px;
  box-shadow: 0 18px 36px rgba(52, 75, 99, 0.09);
}

.mini-tabs::before {
  display: none;
  content: none;
}

.mini-tabs button {
  min-height: 46px;
  padding: 0 12px;
  color: #516176;
  font-size: 0.82rem;
  font-weight: 950;
  text-align: left;
  background: #ffffff;
  border: 1px solid #dbe8f2;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(52, 75, 99, 0.045);
}

.mini-tabs button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #11b6b2, #69a8df);
  border-color: transparent;
}

.mini-desk > .mini-panel {
  display: none;
}

.mini-desk > .mini-panel.is-active {
  display: block;
}

.mini-eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 16px;
  align-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 187, 206, 0.34), transparent 32%),
    linear-gradient(135deg, #f2fbfc, #fff7fa);
  border: 1px solid #d8eaf0;
  border-radius: 24px;
}

.home-hero h1,
.mini-panel-heading h2,
.contact-room-card h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.home-hero h1 {
  font-size: clamp(1.42rem, 1.85vw, 1.92rem);
}

.mini-panel-heading h2,
.contact-room-card h2 {
  font-size: clamp(1.26rem, 1.55vw, 1.66rem);
}

.home-hero p,
.mini-panel-heading p,
.contact-room-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.7;
  word-break: keep-all;
}

.home-stamp {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  color: var(--navy);
  text-align: center;
  background: #ffffff;
  border: 8px solid #ffe5ed;
  border-radius: 999px;
  transform: rotate(4deg);
}

.home-stamp span,
.home-stamp small {
  color: #ff7fa0;
  font-size: 0.68rem;
  font-weight: 950;
}

.home-stamp strong {
  font-size: 1.02rem;
  font-weight: 950;
}

.mini-card-grid,
.notice-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

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

.mini-card-grid article,
.notice-post {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e0eaf2;
  border-radius: 20px;
}

.notice-post {
  display: block;
  min-height: 190px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.notice-post:hover,
.notice-post:focus-visible,
.notice-post.is-active {
  border-color: rgba(17, 182, 178, 0.42);
  box-shadow: 0 16px 32px rgba(52, 75, 99, 0.1);
  transform: translateY(-2px);
  outline: 0;
}

.notice-post.is-active {
  background: linear-gradient(135deg, #ffffff 0%, #f2fbfc 100%);
}

.notice-meta,
.notice-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.notice-meta time,
.notice-detail-head time {
  color: #8492a5;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.mini-card-grid span,
.notice-post span,
.notice-detail-head span {
  display: inline-flex;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
  background: #ff91ad;
  border-radius: 999px;
}

.mini-card-grid span {
  margin-bottom: 12px;
}

.mini-card-grid h2,
.notice-post h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
  word-break: keep-all;
}

.mini-card-grid p,
.notice-post p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.65;
  word-break: keep-all;
}

.notice-excerpt {
  display: -webkit-box;
  min-height: 4.1em;
  overflow: hidden;
  font-weight: 400;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.notice-read-more {
  display: inline-flex;
  margin-top: 14px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 950;
}

.notice-detail-wrap {
  display: none;
  margin-top: 14px;
}

.mini-panel.is-notice-reading .notice-board {
  display: none;
}

.mini-panel.is-notice-reading .notice-detail-wrap {
  display: block;
}

.notice-back-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 12px;
  padding: 0 14px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  background: #f3fbfc;
  border: 1px solid #d7e8ee;
  border-radius: 999px;
  cursor: pointer;
}

.notice-back-button:hover,
.notice-back-button:focus-visible {
  border-color: rgba(17, 182, 178, 0.42);
  outline: 0;
}

.notice-detail {
  display: none;
  padding: 22px;
  background:
    radial-gradient(circle at 94% 10%, rgba(17, 182, 178, 0.12), transparent 30%),
    #ffffff;
  border: 1px solid #dbe8f2;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(52, 75, 99, 0.08);
}

.notice-detail.is-active {
  display: block;
}

.notice-detail h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.4;
  word-break: keep-all;
}

.notice-detail p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.75;
  word-break: keep-all;
}

.notice-detail strong {
  color: inherit;
  font-weight: 400;
}

.mini-panel-heading {
  margin-bottom: 16px;
  padding: 20px;
  background: #fff7fa;
  border: 1px solid #f4d7e0;
  border-radius: 22px;
}

.mini-panel[data-mini-panel="builder"] .mini-panel-heading {
  margin-bottom: 10px;
  padding: 9px 18px 12px;
  border-radius: 18px;
}

.mini-panel[data-mini-panel="builder"] .mini-eyebrow {
  margin-bottom: 4px;
  font-size: 0.68rem;
}

.mini-panel[data-mini-panel="builder"] .mini-panel-heading h2 {
  font-size: clamp(1.12rem, 1.34vw, 1.42rem);
  line-height: 1.12;
}

.mini-panel .builder {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
  min-height: 0;
  padding: 0;
}

.mini-panel[data-mini-panel="builder"] .question-flow {
  padding: 14px;
}

.mini-panel[data-mini-panel="builder"] .live-preview {
  padding: 15px;
}

.mini-panel[data-mini-panel="builder"] .step-copy {
  margin: 8px 0 14px;
  line-height: 1.52;
}

.mini-panel[data-mini-panel="builder"] .contact-action {
  margin-top: 11px;
}

.mini-panel[data-mini-panel="builder"] .condition-contact-action {
  margin-top: 9px;
}

.mini-panel .question-flow,
.mini-panel .live-preview {
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(52, 75, 99, 0.08);
}

.mini-panel .proof-band {
  padding: 0;
}

.mini-panel.proof-band {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mini-panel.proof-band .proof-copy {
  margin-bottom: 16px;
  padding: 22px;
  background: #fff7fa;
  border: 1px solid #f4d7e0;
  border-radius: 22px;
}

.mini-panel.proof-band .case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-room-card {
  padding: 28px;
  background:
    radial-gradient(circle at 84% 10%, rgba(17, 182, 178, 0.16), transparent 30%),
    #ffffff;
  border: 1px solid #dbe8f2;
  border-radius: 24px;
}

.contact-room-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.kakao-main-button,
.soft-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  font-size: 0.98rem;
  font-weight: 950;
  text-decoration: none;
  border-radius: 18px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.kakao-main-button {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #11b6b2 0%, #2fc59d 52%, #48b276 100%);
  border: 1px solid rgba(17, 182, 178, 0.42);
  box-shadow: 0 16px 32px rgba(17, 182, 178, 0.22);
}

.kakao-main-button::after {
  position: absolute;
  inset: 1px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 17px;
}

.soft-outline-button {
  color: var(--navy);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 252, 252, 0.94));
  border: 1px solid rgba(17, 182, 178, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 26px rgba(52, 75, 99, 0.06);
}

.kakao-main-button:hover,
.kakao-main-button:focus-visible,
.soft-outline-button:hover,
.soft-outline-button:focus-visible {
  transform: translateY(-2px);
  outline: 0;
}

.kakao-main-button:hover,
.kakao-main-button:focus-visible {
  box-shadow: 0 20px 38px rgba(17, 182, 178, 0.3);
}

.soft-outline-button:hover,
.soft-outline-button:focus-visible {
  border-color: rgba(17, 182, 178, 0.48);
  box-shadow: 0 16px 32px rgba(52, 75, 99, 0.09);
}

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 22px;
  align-items: start;
  min-height: calc(100vh - 72px);
  padding: 26px 6vw 56px;
}

.question-flow,
.live-preview {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.question-flow {
  order: 2;
  align-self: start;
  padding: 18px;
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.step-tab {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.step-tab.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.step-screen {
  display: none;
}

.step-screen.is-active {
  display: block;
  animation: riseIn 240ms ease both;
}

.step-label,
.preview-status,
.rules-heading p,
.reflection-log p,
.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
}

.step-screen h1,
.step-screen h2,
.rules-heading h2,
.proof-copy h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.18;
}

.step-screen h1,
.step-screen h2 {
  font-size: clamp(1.12rem, 1.4vw, 1.3rem);
  white-space: nowrap;
}

.step-screen[data-step="3"] h2 {
  font-size: clamp(1.12rem, 1.4vw, 1.3rem);
  line-height: 1.35;
  white-space: normal;
}

.step-screen[data-step="2"] > h2 {
  margin-bottom: 18px;
}

.step-copy {
  margin: 12px 0 22px;
  color: var(--muted);
  line-height: 1.68;
}

.trust-copy {
  color: #405066;
  font-weight: 650;
}

.trust-line {
  display: block;
  margin-top: 10px;
}

.free-callout {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(15, 181, 177, 0.28);
  border-radius: 8px;
  background: rgba(15, 181, 177, 0.1);
}

.free-callout strong {
  color: #087b78;
  font-size: 1.08rem;
  font-weight: 950;
}

.free-callout span {
  color: #405066;
  font-weight: 800;
  line-height: 1.5;
}

.number-field {
  display: grid;
  gap: 10px;
  margin: 14px 0 10px;
  font-weight: 900;
}

.number-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 900;
}

.range-field {
  width: 100%;
  accent-color: var(--teal);
}

.shift-setup {
  margin: 16px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.shift-setup h2 {
  margin-bottom: 10px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.quick-actions button,
.secondary-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.quick-actions button {
  min-height: 40px;
  padding: 0 12px;
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 950;
}

.primary-action {
  border: 0;
  background: var(--ink);
  color: #fff;
}

.contact-action {
  margin-top: 18px;
  background: var(--teal);
}

.condition-contact-action {
  margin-top: 14px;
}

.secondary-action {
  margin-top: 10px;
}

.add-condition-action {
  margin-bottom: 10px;
}

.shift-input-grid {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.shift-input-grid.is-detail-mode {
  gap: 7px;
}

.shift-input-header {
  display: grid;
  grid-template-columns: 36px repeat(3, 1fr);
  gap: 7px;
  align-items: center;
  padding: 0 8px 2px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
}

.shift-input-header > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shift-control {
  display: grid;
  grid-template-columns: 36px repeat(3, 1fr);
  gap: 7px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.shift-control.is-weekend {
  border-color: #f5d5d5;
  background: #fff7f7;
}

.shift-control > strong {
  font-size: 0.82rem;
}

.shift-group-control {
  border-color: rgba(17, 182, 178, 0.18);
  background: linear-gradient(135deg, #ffffff, #f7fdfd);
}

.shift-group-control > strong {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

.shift-group-control small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 850;
}

.requirement-detail-toggle {
  display: grid;
  grid-template-columns: 18px 1fr 16px;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
  background: #f5fbfc;
  border: 1px dashed rgba(17, 182, 178, 0.36);
  border-radius: 10px;
}

.requirement-detail-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--teal);
}

.requirement-detail-toggle b {
  color: var(--teal);
  font-size: 0.7rem;
  transition: transform 180ms ease;
}

.shift-input-grid.is-detail-mode .requirement-detail-toggle b {
  transform: rotate(180deg);
}

.daily-shift-panel {
  display: grid;
  gap: 6px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 260ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}

.shift-input-grid.is-detail-mode .daily-shift-panel {
  max-height: 620px;
  opacity: 1;
  transform: translateY(0);
}

.shift-field {
  display: block;
}

.shift-field label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.shift-field input {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
}

.free-line {
  display: block;
  margin-top: 10px;
}

.free-line strong {
  color: var(--teal);
  font-weight: 950;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.summary-list dt {
  color: var(--muted);
  font-weight: 850;
}

.summary-list dd {
  margin: 0;
  font-weight: 950;
}

.live-preview {
  order: 1;
  padding: 22px;
}

.schedule-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.month-strip {
  display: flex;
  justify-content: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(15, 181, 177, 0.09), rgba(255, 255, 255, 0));
}

.month-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(15, 181, 177, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 950;
}

.schedule-board.is-generating {
  border-color: rgba(15, 181, 177, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 181, 177, 0.12);
}

.legend {
  display: inline-flex;
  gap: 6px;
  flex: 0 0 auto;
}

.legend-pill {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 950;
}

.legend-pill.day {
  background: var(--green);
}

.legend-pill.evening {
  background: var(--coral);
}

.legend-pill.night {
  background: var(--violet);
}

.legend-pill.off {
  background: var(--off);
}

.shift-text {
  display: inline;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.shift-text.day {
  color: var(--green);
}

.shift-text.evening {
  color: var(--coral);
}

.shift-text.night {
  color: var(--violet);
}

.shift-text.off {
  color: var(--off);
}

.shift-text.empty {
  color: transparent;
}

.roster-scroll {
  max-height: none;
  padding-bottom: 10px;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.roster-scroll::-webkit-scrollbar {
  height: 13px;
}

.roster-scroll::-webkit-scrollbar-track {
  background: #eef5f8;
  border-radius: 999px;
}

.roster-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--teal), #69a8df);
  border: 3px solid #eef5f8;
  border-radius: 999px;
}

.roster-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 0.66rem;
}

.roster-table col.name-col {
  width: var(--roster-name-width, 64px);
}

.roster-table col.date-col {
  width: var(--roster-date-width, 32px);
}

.roster-table th,
.roster-table td {
  min-width: 0;
  height: 30px;
  padding: 1px;
  border-right: 1px solid #e9eef4;
  border-bottom: 1px solid #e9eef4;
  text-align: center;
  white-space: nowrap;
}

.roster-table thead th {
  background: #fff;
  color: var(--muted);
  font-weight: 950;
}

.roster-table .sticky-name {
  position: sticky;
  left: 0;
  z-index: 4;
  width: var(--roster-name-width, 64px);
  min-width: var(--roster-name-width, 64px);
  max-width: var(--roster-name-width, 64px);
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 950;
  box-shadow: 1px 0 0 #e9eef4;
}

.roster-table thead .sticky-name {
  z-index: 5;
}

.roster-table tbody .sticky-name {
  color: #26364b;
}

.schedule-board.is-generating .roster-table tbody tr {
  animation: rowGenerate 420ms ease both;
  animation-delay: var(--row-delay, 0ms);
}

.schedule-board.is-generating .shift-text {
  animation: badgePulse 520ms ease both;
}

.roster-table tfoot .sticky-name {
  background: #fbfdff;
  color: var(--muted);
}

.roster-table .weekend {
  background: #fff8f8;
}

.day-number {
  display: block;
  color: var(--ink);
  font-size: 0.66rem;
  line-height: 1;
}

.weekday-label {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.48rem;
}

.requirement-row th,
.requirement-row td {
  height: 28px;
  background: #fbfdff;
  font-weight: 950;
}

.requirement-row th,
.requirement-row td {
  z-index: 6;
}

.requirement-row.day-total td {
  color: var(--green);
}

.requirement-row.evening-total td {
  color: var(--coral);
}

.requirement-row.night-total td {
  color: var(--violet);
}

.requirement-row.total-row td {
  color: var(--ink);
}

.count-table-wrap {
  margin-top: 18px;
  padding: 16px 0 0;
  border-top: 10px solid #edf4f7;
}

.count-table-card {
  padding: 14px;
  border: 1px solid rgba(15, 181, 177, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbffff 0%, #f7fbfd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.count-table-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.count-table-title span {
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 950;
}

.count-table-title small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.count-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid #dfeaf1;
  border-radius: 8px;
  background: #fff;
}

.count-table .sticky-name {
  width: 64px;
  background: #f2f8fa;
  color: var(--navy);
}

.count-table .requirement-row th,
.count-table .requirement-row td {
  height: 30px;
  background: #fff;
}

.count-table .requirement-row .weekend {
  background: #fff5f5;
}

.count-table .total-row th,
.count-table .total-row td {
  border-top: 2px solid #d7e4ec;
  background: #f8fbfd;
}

.rules-panel {
  margin: 0 0 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.rules-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.rules-heading h2 {
  font-size: 0.98rem;
}

.rule-toggles {
  display: grid;
  gap: 12px;
}

.rule-section {
  display: grid;
  gap: 8px;
}

.rule-section h3 {
  margin: 0;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 950;
}

.rule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.rule-card {
  position: relative;
  min-height: auto;
  padding: 11px 58px 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.rule-card:hover {
  border-color: rgba(15, 181, 177, 0.45);
  box-shadow: 0 8px 18px rgba(20, 32, 51, 0.08);
  transform: translateY(-1px);
}

.rule-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.32;
}

.rule-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.45;
}

.inline-number {
  width: 36px;
  height: 24px;
  margin: 0 2px;
  border: 1px solid #cfdbe7;
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #cbd6e2;
}

.rule-card .switch {
  position: absolute;
  top: 10px;
  right: 10px;
}

.switch::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(20, 32, 51, 0.2);
  content: "";
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.rule-card.is-on .switch {
  background: var(--teal);
}

.rule-card.is-on .switch::after {
  transform: translateX(18px);
}

.reflection-log {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reflection-log ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reflection-log li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.reflection-log li::before {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
}

.proof-band {
  display: grid;
  grid-template-columns: minmax(310px, 0.86fr) minmax(0, 1.14fr);
  gap: 36px;
  padding: 76px 6vw 88px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.proof-copy h2 {
  font-size: clamp(1.26rem, 1.55vw, 1.66rem);
  letter-spacing: -0.04em;
}

.proof-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  word-break: keep-all;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.case-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.case-grid span {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 950;
}

.case-grid h3 {
  margin: 12px 0 10px;
  font-size: 1.05rem;
}

.case-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rowGenerate {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes badgePulse {
  0% {
    transform: scale(0.78);
  }

  60% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 1160px) {
  .builder,
  .proof-band {
    grid-template-columns: 1fr;
  }

  .question-flow {
    order: 1;
    position: static;
  }

  .live-preview {
    order: 2;
  }
}

@media (max-width: 780px) {
  .site-header {
    padding: 15px 18px;
  }

  .header-actions {
    display: none;
  }

  .builder,
  .proof-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .live-preview {
    display: none;
  }

  .builder.is-mobile-schedule-preview,
  .builder.is-mobile-step3-preview {
    display: block;
  }

  .builder.is-mobile-schedule-preview .question-flow {
    display: none;
  }

  .builder.is-mobile-schedule-preview .live-preview,
  .builder.is-mobile-step3-preview .live-preview {
    display: block;
    padding: 12px;
  }

  .builder.is-mobile-step3-preview .live-preview {
    margin-top: 14px;
  }

  .builder.is-mobile-schedule-preview .schedule-board,
  .builder.is-mobile-step3-preview .schedule-board {
    overflow: hidden;
  }

  .builder.is-mobile-schedule-preview .roster-scroll,
  .builder.is-mobile-schedule-preview .count-table-card,
  .builder.is-mobile-step3-preview .roster-scroll,
  .builder.is-mobile-step3-preview .count-table-card {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .builder.is-mobile-schedule-preview .roster-table,
  .builder.is-mobile-step3-preview .roster-table {
    min-width: 980px;
  }

  .rule-toggles,
  .case-grid {
    grid-template-columns: 1fr;
  }

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

  .board-toolbar,
  .rules-heading {
    display: block;
  }

  .legend {
    margin-top: 12px;
  }

  .proof-copy h2 {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .question-flow,
  .live-preview {
    padding: 16px;
  }

  .step-screen h1,
  .step-screen h2 {
    font-size: 1.16rem;
  }

  .shift-control {
    grid-template-columns: 34px repeat(3, 1fr);
    gap: 6px;
  }

  .shift-input-header {
    grid-template-columns: 34px repeat(3, 1fr);
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .shift-input-header strong {
    display: none;
  }

  .roster-table {
    font-size: 0.52rem;
  }

  .roster-table th,
  .roster-table td {
    height: 22px;
    padding: 1px;
  }

  .roster-table .sticky-name {
    width: 62px;
    font-size: 0.52rem;
  }

  .shift-text {
    font-size: 0.5rem;
  }

  .legend-pill {
    width: 22px;
    height: 22px;
  }

  .day-number {
    font-size: 0.48rem;
  }

  .weekday-label {
    font-size: 0.42rem;
  }

  .requirement-row th,
  .requirement-row td {
    height: 20px;
  }
}

@media (max-width: 1040px) {
  .mini-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .mini-tabs {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 10px;
    border-left: 1px solid #dbe8f2;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(52, 75, 99, 0.08);
  }

  .mini-tabs::before {
    display: none;
  }

  .mini-tabs button {
    text-align: center;
    border-right: 1px solid #dbe8f2;
    border-radius: 14px;
  }

  .mini-tabs button.is-active {
    border-color: transparent;
  }

  .mini-card-grid,
  .notice-board,
  .mini-panel.proof-band .case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1260px) {
  .mini-panel .builder {
    grid-template-columns: 1fr;
  }

  .mini-panel .question-flow {
    order: 1;
  }

  .mini-panel .live-preview {
    order: 2;
  }
}

@media (max-width: 780px) {
  .mini-world {
    padding: 18px 12px 44px;
  }

  .mini-shell {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
  }

  .mini-profile-card {
    display: none;
  }

  .mini-desk {
    padding: 14px;
    border-radius: 20px;
  }

  .mini-tabs {
    order: -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    overflow-x: visible;
    padding: 2px 0 6px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mini-tabs button {
    position: relative;
    min-width: 0;
    min-height: 42px;
    padding: 0 1px 8px;
    color: #506176;
    font-size: clamp(0.78rem, 3.2vw, 0.96rem);
    line-height: 1.12;
    letter-spacing: -0.08em;
    white-space: normal;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mini-tabs button.is-active {
    color: var(--teal);
    background: transparent;
  }

  .mini-tabs button.is-active::after {
    position: absolute;
    right: 10%;
    bottom: 0;
    left: 10%;
    height: 3px;
    content: "";
    background: currentColor;
    border-radius: 999px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .home-stamp {
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 56px;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-width: 1px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(255, 127, 160, 0.1);
  }

  .mini-panel .builder {
    display: block;
  }

  .builder.is-mobile-schedule-preview,
  .builder.is-mobile-step3-preview {
    display: block;
  }
}

@media (max-width: 480px) {
  .home-hero h1 {
    font-size: 1.34rem;
  }

  .mini-panel-heading h2,
  .contact-room-card h2 {
    font-size: 1.22rem;
  }

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