﻿:root {
  --ink: #132033;
  --muted: #5f7087;
  --line: #d8e0ea;
  --soft: #f4f7fb;
  --paper: #ffffff;
  --page: #f3f1eb;
  --accent: #184f69;
  --accent-dark: #143748;
  --accent-soft: #eaf3f8;
  --gold: #c99a2b;
  --green: #0f766e;
  --rose: #be123c;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f6f2eb 0%, #f4f6f9 28%, #eef3f8 100%);
  font-family: Pretendard, "Malgun Gothic", Arial, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }

.oz-shell {
  width: min(1480px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.oz-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(210, 218, 229, 0.9);
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
}

.calendar-link,
.mail-ready,
.month-control button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 900;
}

.calendar-link {
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  color: #243145;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}

.oz-hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.oz-mark {
  position: relative;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(24,79,105,0.24);
  background: linear-gradient(180deg, #eff6fb, #dceaf4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8);
}

.oz-mark-door {
  position: absolute;
  left: 28px;
  bottom: 15px;
  width: 20px;
  height: 24px;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

.oz-mark-roof {
  position: absolute;
  left: 20px;
  top: 22px;
  width: 36px;
  height: 24px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%);
}

.oz-mark-star {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.oz-mark-star-a { right: 14px; top: 14px; }
.oz-mark-star-b { right: 22px; top: 26px; width: 5px; height: 5px; opacity: 0.86; }

.oz-kicker,
.section-kicker {
  margin: 0 0 6px;
  color: #55738b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.oz-hero h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
}

.oz-hero p:last-child,
.widget-summary,
.rule-strip span,
.oz-hero-note span,
.shared-inline-copy p,
.blank-zone span,
.flow-list small {
  color: var(--muted);
  line-height: 1.5;
  font-weight: 700;
}

.oz-hero-note {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(24,79,105,0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbfd, #eef5f9);
}

.oz-hero-note b {
  font-size: 15px;
  font-weight: 900;
}

.widget-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.widget-card {
  border: 1px solid rgba(214, 223, 233, 0.95);
  border-radius: 10px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 12px 30px rgba(17,24,39,0.05);
  padding: 20px;
}

.challenge-card {
  grid-column: span 2;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.card-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.card-head.compact {
  margin-bottom: 10px;
}

.widget-summary {
  margin: 8px 0 0;
  font-size: 14px;
}

.month-control {
  display: grid;
  grid-template-columns: 42px 150px 42px;
  gap: 6px;
  align-items: center;
}

.month-control button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font-size: 22px;
}

.month-control strong {
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.rule-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.rule-strip article {
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rule-strip b {
  font-size: 15px;
  font-weight: 900;
}

.shared-inline {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(24,79,105,0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #f9fbfd, #f2f7fa);
}

.shared-inline-copy span {
  display: block;
  margin-bottom: 4px;
  color: #55738b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.shared-inline-copy b {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 900;
}

.shared-inline-copy p {
  margin: 0;
  font-size: 13px;
}

.holiday-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.holiday-item {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.holiday-item b {
  display: inline;
  font-size: 12px;
  font-weight: 900;
}

.holiday-item span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.readonly-item button { display: none; }

.upload-box {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  border: 1px dashed rgba(24,79,105,0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(24,79,105,0.05), #fff);
}

.upload-box input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  font-weight: 900;
}

.upload-box b {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 900;
}

.upload-box small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.result-toolbar {
  display: grid;
  grid-template-columns: 150px 150px 190px;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
}

.result-toolbar div {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.result-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.result-toolbar strong {
  font-size: 22px;
  font-weight: 900;
}

.mail-ready {
  border: 1px solid rgba(24,79,105,0.18);
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

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

.result-card {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 94px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fff;
}

.result-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 900;
}

.result-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.date-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.date-chain span {
  padding: 6px 8px;
  border-radius: 7px;
  background: #eef6f5;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.gift-badge {
  justify-self: end;
  padding: 8px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 900;
}

.empty-state {
  margin: 0;
  padding: 28px;
  border: 1px dashed rgba(100,116,139,.24);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  text-align: center;
  font-weight: 800;
}

.blank-zone {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(100,116,139,.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(248,250,252,.88), rgba(255,255,255,.98));
}

.compact-zone {
  min-height: 220px;
}

.blank-zone div {
  display: grid;
  gap: 6px;
  text-align: center;
}

.blank-zone b {
  font-size: 17px;
  font-weight: 900;
}

.subtle-card {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,248,252,.96));
}

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

.flow-list article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.flow-list span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 900;
}

.flow-list b {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .widget-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .challenge-card {
    grid-column: span 2;
  }

  .oz-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .oz-shell {
    width: min(100% - 24px, 760px);
    padding-top: 12px;
  }

  .oz-hero,
  .result-toolbar,
  .shared-inline,
  .widget-board {
    grid-template-columns: 1fr;
  }

  .oz-hero-main {
    align-items: flex-start;
  }

  .challenge-card {
    grid-column: span 1;
  }

  .rule-strip,
  .result-card {
    grid-template-columns: 1fr;
  }

  .gift-badge {
    justify-self: start;
  }
}
