:root {
  --bg: #f5f7f8;
  --panel: #ffffff;
  --ink: #172026;
  --muted: #65737e;
  --line: #dce3e8;
  --apple: #1b1f24;
  --samsung: #1d5f9f;
  --urgent: #c94227;
  --expected: #9a6a13;
  --released: #277a51;
  --rumor: #6b5aa6;
  --shadow: 0 16px 48px rgba(23, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 227, 232, 0.88);
  background: rgba(245, 247, 248, 0.92);
  backdrop-filter: blur(12px);
}

.topbar h1,
.hero h2,
.panel h2 {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.16;
}

.eyebrow,
.section-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.updated {
  display: grid;
  gap: 3px;
  min-width: 126px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: right;
}

.updated span {
  color: var(--muted);
  font-size: 12px;
}

.update-box,
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.update-box span,
.detail-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.update-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #172026;
  border-radius: 8px;
  background: #172026;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.update-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: #225d93;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 56px) 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 26px;
  align-items: stretch;
  min-height: 280px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef4f8 48%, #e8efe9 100%);
  box-shadow: var(--shadow);
}

.hero-copy {
  align-self: center;
  padding: clamp(24px, 5vw, 54px);
}

.hero h2 {
  max-width: 760px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.08;
}

.hero p:last-child {
  max-width: 700px;
  margin: 18px 0 0;
  color: #46545f;
  font-size: 16px;
  line-height: 1.72;
}

.device-visual {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(circle at 60% 42%, rgba(29, 95, 159, 0.12), transparent 32%),
    linear-gradient(160deg, #dfe9ed, #f7faf8);
}

.phone,
.fold,
.watch,
.tablet {
  position: absolute;
  border: 7px solid #1d242a;
  background: #f9fbfb;
  box-shadow: 0 18px 36px rgba(23, 32, 38, 0.18);
}

.phone {
  left: 12%;
  top: 22%;
  width: 94px;
  height: 188px;
  border-radius: 24px;
}

.phone::before,
.fold::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 38px;
  height: 7px;
  border-radius: 999px;
  background: #1d242a;
  transform: translateX(-50%);
}

.fold {
  right: 14%;
  top: 16%;
  width: 192px;
  height: 178px;
  border-radius: 20px;
}

.fold span {
  position: absolute;
  inset: 0 50% 0 auto;
  width: 1px;
  background: #c5d0d7;
}

.watch {
  left: 35%;
  bottom: 30px;
  width: 84px;
  height: 98px;
  border-radius: 28px;
}

.watch::before,
.watch::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 36px;
  height: 32px;
  border-radius: 12px;
  background: #1d242a;
  transform: translateX(-50%);
}

.watch::before {
  top: -38px;
}

.watch::after {
  bottom: -38px;
}

.tablet {
  right: 28%;
  bottom: -42px;
  width: 146px;
  height: 206px;
  border-radius: 18px;
  transform: rotate(-7deg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stats article,
.panel,
.controls {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stats article {
  padding: 18px;
}

.stats span {
  display: block;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

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

.stat-list {
  display: grid;
  gap: 7px;
  max-height: 230px;
  margin: 14px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.stat-list li {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  background: #fbfcfd;
  color: #26343d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.32;
}

.stat-list span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.stat-list strong {
  display: block;
  font-size: 12px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, auto) minmax(220px, auto) minmax(330px, auto);
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px;
}

.search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
}

.search input {
  padding: 0 12px;
}

select {
  max-width: 180px;
  padding: 0 34px 0 12px;
}

.control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafb;
  color: #33424d;
  cursor: pointer;
}

.chip:hover,
.chip.is-active {
  border-color: #172026;
  background: #172026;
  color: #ffffff;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.34fr);
  gap: 22px;
  align-items: start;
}

.main-column,
.side-column {
  display: grid;
  gap: 22px;
}

.panel {
  padding: 20px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.35fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.detail-hero h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
}

.detail-summary {
  max-width: 820px;
  margin: 14px 0 0;
  color: #475763;
  line-height: 1.7;
}

.detail-meta {
  display: grid;
  gap: 9px;
}

.detail-meta span {
  padding: 10px 12px;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  background: #fbfcfd;
  color: #34424c;
  font-size: 13px;
  font-weight: 800;
}

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

.news-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.news-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.news-card p {
  margin: 0;
  color: #475763;
  line-height: 1.62;
}

.news-source {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.news-card a {
  width: fit-content;
  padding: 8px 11px;
  border: 1px solid #225d93;
  border-radius: 8px;
  color: #225d93;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

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

.panel-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.calendar-tools {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.year-switch {
  justify-content: flex-end;
}

.calendar-panel {
  margin-bottom: 22px;
}

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

.month-cell {
  min-height: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.month-cell h3 {
  margin: 0 0 11px;
  font-size: 18px;
}

.month-items {
  display: grid;
  gap: 9px;
}

.calendar-item {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.calendar-item:hover,
.calendar-item:focus-visible {
  border-color: #225d93;
  background: #f2f8fd;
}

.calendar-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-item strong {
  font-size: 14px;
  line-height: 1.32;
}

.calendar-item > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.calendar-empty {
  margin: 0;
  color: #8a98a2;
  font-size: 12px;
  line-height: 1.4;
}

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

.product-card {
  display: grid;
  gap: 14px;
  min-height: 246px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

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

.brand {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.brand.Apple {
  background: var(--apple);
}

.brand.Samsung {
  background: var(--samsung);
}

.status {
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.status.status-임박 {
  background: #fff0eb;
  color: var(--urgent);
}

.status.status-예상 {
  background: #fff6df;
  color: var(--expected);
}

.status.status-출시됨 {
  background: #e9f7ef;
  color: var(--released);
}

.status.status-루머 {
  background: #f0edff;
  color: var(--rumor);
}

.event-type {
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.event-발표 {
  background: #eef4ff;
  color: #1d5f9f;
}

.event-사전예약 {
  background: #fff6df;
  color: var(--expected);
}

.event-출시 {
  background: #e9f7ef;
  color: var(--released);
}

.product-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-card p {
  margin: 0;
  color: #475763;
  line-height: 1.58;
}

.schedule {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  background: #ffffff;
}

.schedule strong {
  color: #2d3b45;
  font-size: 12px;
}

.schedule span {
  color: #225d93;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.timeline-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
}

.timeline-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  background: #ffffff;
}

.timeline-list dt,
.timeline-list dd {
  margin: 0;
  line-height: 1.35;
}

.timeline-list dt {
  color: #65737e;
  font-size: 12px;
  font-weight: 900;
}

.timeline-list dd {
  color: #26343d;
  font-size: 12px;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 5px 8px;
  border: 1px solid #d5dde3;
  border-radius: 999px;
  background: #ffffff;
  color: #45545f;
  font-size: 12px;
  font-weight: 700;
}

.priority {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #35434d;
  font-size: 13px;
  font-weight: 800;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.confidence {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef3f6;
  color: #2e3b45;
}

.bar {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebef;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #277a51, #d79a2b, #c94227);
}

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

.rhythm-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.rhythm-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.rhythm-card ul,
.action-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rhythm-card li,
.action-list li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: #45545f;
  line-height: 1.5;
}

.rhythm-card li:first-child,
.action-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.signal-list,
.source-list {
  display: grid;
  gap: 10px;
}

.signal {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.signal strong {
  display: block;
  margin-bottom: 6px;
}

.signal p {
  margin: 0;
  color: #4a5964;
  line-height: 1.55;
}

.source-list a {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #225d93;
  text-decoration: none;
  line-height: 1.35;
}

.source-list a:hover {
  border-color: #225d93;
  background: #f2f8fd;
}

.empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed #b8c3ca;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1280px) {
  .hero,
  .layout,
  .detail-hero,
  .controls {
    grid-template-columns: 1fr;
  }

  .control-group {
    justify-content: flex-start;
  }

  .calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .updated {
    text-align: left;
  }

  .stats,
  .product-grid,
  .rhythm-grid,
  .calendar-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .panel-note {
    text-align: left;
  }

  .calendar-tools {
    justify-items: start;
  }

  .timeline-list div {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .device-visual {
    min-height: 230px;
  }

  .fold {
    right: 8%;
    width: 150px;
    height: 142px;
  }

  .phone {
    left: 8%;
    width: 80px;
    height: 160px;
  }

  .tablet {
    right: 24%;
    width: 110px;
    height: 164px;
  }

  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  select {
    max-width: none;
  }
}
