.tools-news-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(238px, 18vw, 280px);
  align-items: start;
  gap: clamp(16px, 1.6vw, 26px);
  width: 100%;
  margin: 0 auto;
  padding: clamp(16px, 1.6vw, 28px);
  min-height: 100svh;
}
.home-news-feed { min-width: 0; }
.home-news-feed .patch-note-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.1vw, 20px); }
.home-news-feed .patch-note-featured-list { display: contents; }
.home-news-feed .patch-note-list .patch-note-item {
  min-height: 0;
  align-self: stretch;
  border: 1px solid var(--line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
  transition: border-color .16s, box-shadow .16s;
}
.home-news-feed .patch-note-item .patch-note-link { display: flex; flex-direction: column; height: 100%; }
.home-news-feed .patch-note-item .patch-note-thumbnail { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: none; border: 0; }
.home-news-feed .patch-note-item .patch-note-content {
  flex: 1;
  min-height: 0;
  gap: 6px;
  padding: 14px 16px 12px;
}
.home-news-feed .patch-note-item .patch-note-content > h2 {
  min-height: 0;
  color: var(--ink);
  font: 700 clamp(16px, 1.12vw, 19px)/1.5 "Noto Serif KR", Batang, serif;
  letter-spacing: -.035em;
}
.home-news-feed .patch-note-item .patch-note-summary {
  min-height: 0;
  margin: 0 0 4px;
  color: var(--muted);
  font: 400 12px/1.65 "Noto Sans KR", sans-serif;
  -webkit-line-clamp: 2;
}
.home-news-feed .patch-note-item.is-text-only .patch-note-summary { -webkit-line-clamp: 6; }
.home-news-feed .patch-note-meta {
  order: 1;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 500 11px/1.5 "Noto Sans KR", sans-serif;
}
.home-news-feed .patch-note-meta span { order: -1; text-align: left; }
.home-news-feed .patch-note-date { color: var(--muted); font: inherit; font-variant-numeric: tabular-nums; }
.home-news-feed .patch-note-item.is-recent .patch-note-date::after {
  min-height: 0; padding: 0; border: 0; background: transparent; color: var(--red); font-size: 9px;
}
.home-news-feed .patch-note-list .patch-note-item:hover,
.home-news-feed .patch-note-list .patch-note-item:focus-within { transform: none; border-color: var(--ui-accent-line); }
.home-news-feed .patch-note-item .patch-note-link:hover h2,
.home-news-feed .patch-note-item:focus-within h2 { color: var(--red-dark); }
.home-news-feed .patch-note-item:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
#news-feed-end { height: 1px; }
.home-shell .info-source-note { justify-content: center; gap: 5px 9px; color: var(--muted); font-size: 11px; }
.home-shell .info-source-note a { color: var(--muted); }
.home-shell .info-source-note a:hover { color: var(--red); }
.home-loading, .home-news-feed .info-empty { grid-column: 1 / -1; margin: 0; padding: 44px 16px; color: var(--muted); background: var(--ui-surface); text-align: center; }
.home-loading button { margin-left: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--ui-field); color: var(--ink); cursor: pointer; }

.home-coupon-area {
  position: sticky;
  top: clamp(16px, 1.6vw, 28px);
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}
.home-coupon-area .home-coupon-panel {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; min-height: 0;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
}
.home-section-heading, .home-coupon-count, .home-coupon-all { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.home-feedback-open { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--ui-field); font: 600 13px/1.4 "Noto Sans KR", sans-serif; white-space: nowrap; cursor: pointer; }
.home-feedback-open:hover { border-color: var(--ui-accent-line); color: var(--red); }
.home-feedback { width: min(390px, calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid var(--line); border-radius: var(--ui-radius); color: var(--ink); background: var(--ui-surface); }
.home-feedback::backdrop { background: rgb(16 21 20 / 55%); }
.home-feedback header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.home-feedback h2 { margin: 0; font: 700 20px/1.4 "Noto Serif KR", Batang, serif; }
.home-feedback button { color: inherit; font: inherit; cursor: pointer; }
#feedback-close { width: 36px; height: 36px; border: 0; color: var(--muted); background: transparent; font-size: 25px; }
.home-feedback form { display: grid; gap: 8px; font-size: 14px; }
.home-feedback textarea { box-sizing: border-box; width: 100%; min-height: 110px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--ui-field); color: var(--ink); font: inherit; resize: vertical; }
.home-feedback .feedback-send { justify-self: end; min-height: 38px; padding: 6px 18px; border: 0; border-radius: 4px; color: var(--ui-on-solid); background: var(--ui-solid); }
.home-feedback :disabled { opacity: .65; cursor: default; }
#feedback-status { margin: 12px 0 0; font-size: 14px; }
#feedback-status:empty { display: none; }
.home-coupon-panel .theme-toggle { flex: none; width: 34px; height: 34px; min-height: 34px; margin: 0; border-color: var(--line); background: var(--ui-field); }
.home-coupon-panel .theme-toggle:hover { border-color: var(--ui-accent-line); color: var(--red); }
.home-coupon-count { margin: 2px 0 1px; color: var(--muted); font-size: 12px; }
.home-coupon-count > span:last-child { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.home-coupon-count strong { color: var(--red-dark); font: 700 26px/1.2 "Noto Sans KR", sans-serif; font-variant-numeric: tabular-nums; }
.home-coupon-panel .coupon-quick-code {
  display: grid; place-items: center; min-height: 42px; padding: 7px 9px; border: 1px dashed var(--ui-accent-line); border-radius: 4px;
  color: var(--ink); background: var(--ui-field); font: 700 17px/1.4 Consolas, monospace; text-align: center;
}
.home-coupon-panel .coupon-quick-copy { width: 100%; min-height: 40px; min-width: 0; padding: 7px 10px; color: var(--ui-on-solid); background: var(--ui-solid); border-color: transparent; font-size: 13px; }
.home-coupon-panel .coupon-quick-copy:not(:disabled):hover { filter: brightness(1.1); }
.home-coupon-panel .coupon-quick-copy:disabled { color: var(--muted); border-color: var(--line); background: var(--ui-field); }
.home-coupon-progress { color: var(--muted); font-size: 11px; text-align: center; overflow-wrap: anywhere; }
.home-coupon-progress:empty { display: none; }
.home-coupon-all { min-height: 32px; color: var(--muted); font-size: 12px; text-decoration: none; }
.home-coupon-all:hover { color: var(--red); }
.home-tool-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.home-tool-links a { display: flex; align-items: center; gap: 8px; justify-content: center; min-height: 40px; border-radius: 4px; color: var(--muted); font: 500 13px/1.4 "Noto Sans KR", sans-serif; }
.home-tool-links a:hover { background: var(--ui-field); color: var(--ink); }
.home-tool-links a[aria-current="page"] { color: var(--red-dark); background: var(--ui-tint); font-weight: 700; box-shadow: inset 0 -2px var(--ui-accent-line); }
.home-tool-links .nav-icon { width: 17px; height: 17px; fill: currentColor; }
.home-coupon-area :is(a, button):focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (min-width: 821px) {
  .home-tool-links a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@container tools-content (max-width: 900px) {
  .home-news-feed .patch-note-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container tools-content (max-width: 500px) {
  .home-news-feed .patch-note-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .tools-news-home { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
  .home-coupon-area { position: static; grid-row: 1; padding: 12px 14px 8px; }
  .home-coupon-area .home-coupon-panel { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .home-section-heading { justify-content: flex-start; gap: 10px; }
  .home-feedback-open { min-height: 38px; }
  .home-coupon-count { justify-content: flex-end; margin: 0; }
  .home-coupon-count strong { font-size: 22px; }
  .home-coupon-panel .coupon-quick-code, .home-coupon-panel .coupon-quick-copy { min-height: 38px; }
  .home-coupon-panel .coupon-quick-current { grid-column: 1; grid-row: 2; }
  .home-coupon-panel .coupon-quick-copy { grid-column: 2; grid-row: 2; justify-self: stretch; width: auto; }
  .home-coupon-progress { grid-column: 1; text-align: left; }
  .home-coupon-all { grid-column: 2; justify-self: end; min-height: 25px; }
  .home-tool-links { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 3px; padding-top: 5px; }
  .home-tool-links a { min-height: 40px; gap: 5px; }
  .home-news-feed .patch-note-item .patch-note-content { padding: 12px 14px; }
}
