:root {
  --bg: #f8f9fa;
  --panel: #ffffff;
  --ink: #111111;
  --deep: #1f3a2e;
  --green: #2f5d50;
  --gold: #ffb800;
  --gold-soft: #fff6d8;
  --muted: #68736e;
  --line: #dfe5e1;
  --line-strong: #c7d0ca;
  --danger: #e53935;
  --shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
  --shadow-strong: 0 14px 38px rgba(31, 58, 46, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  background: var(--deep);
  border-radius: 0 0 10px 0;
  color: #fff;
  font-weight: 900;
  left: 0;
  padding: 10px 14px;
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  transition: transform 0.14s ease;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.site-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 18px rgba(17, 24, 20, 0.06);
  display: flex;
  gap: clamp(12px, 1.8vw, 24px);
  justify-content: space-between;
  min-height: 104px;
  padding: 14px clamp(18px, 3.2vw, 42px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-logo {
  display: block;
  height: 72px;
  max-width: min(250px, 18vw);
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.site-nav {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: clamp(12px, 1.7vw, 28px);
  justify-content: center;
  margin-left: auto;
  min-width: 0;
}

.site-nav a {
  color: var(--deep);
  font-size: clamp(15px, 1.05vw, 20px);
  font-weight: 900;
  letter-spacing: 0;
  padding: 12px 0;
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  background: var(--gold);
  bottom: 3px;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.16s ease;
  width: 100%;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav a.active {
  color: #0f2a20;
}

.scroll-title {
  color: var(--deep);
  display: none;
  flex: 1;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header.compact {
  min-height: 78px;
  box-shadow: 0 6px 22px rgba(17, 17, 17, 0.08);
}

.site-header.compact .brand-logo {
  height: 58px;
}

.site-header.compact .site-nav {
  display: none;
}

.site-header.compact .scroll-title {
  display: block;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.icon-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 42px;
  padding: 0;
  position: relative;
  width: 42px;
}

.search-toggle {
  align-items: center;
  background: linear-gradient(135deg, var(--gold), #ff7a1a);
  border: 2px solid #d99d00;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(255, 184, 0, 0.38);
  color: #111;
  display: inline-flex;
  gap: 8px;
  height: 48px;
  justify-content: center;
  min-width: 104px;
  padding: 0 18px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  width: auto;
}

.search-toggle:hover {
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.42);
  transform: translateY(-1px);
}

.search-toggle strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.search-toggle .search-icon {
  border: 3px solid currentColor;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
  height: 17px;
  position: relative;
  width: 17px;
}

.search-toggle .search-icon::after {
  background: currentColor;
  content: "";
  height: 10px;
  position: absolute;
  right: -7px;
  top: 12px;
  transform: rotate(45deg);
  width: 3px;
}

.menu-toggle {
  display: grid;
  gap: 6px;
  place-content: center;
}

.menu-toggle strong {
  display: none;
}

.menu-toggle span {
  background: var(--ink);
  border-radius: 5px;
  display: block;
  height: 5px;
  transition: transform 0.18s ease, opacity 0.18s ease;
  width: 35px;
}

.menu-toggle.open span:nth-of-type(1) {
  transform: translateY(11px) rotate(45deg);
}

.menu-toggle.open span:nth-of-type(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-of-type(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.scroll-progress {
  background: var(--gold);
  bottom: -2px;
  height: 4px;
  left: 0;
  position: absolute;
  width: 0;
}

.search-panel,
.menu-panel {
  background: rgba(255, 255, 255, 0.985);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  left: 0;
  padding: 34px clamp(18px, 5vw, 64px);
  position: sticky;
  top: 104px;
  z-index: 24;
}

.search-panel form,
.large-search {
  align-items: center;
  border-bottom: 3px solid var(--deep);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 980px;
}

.search-panel input,
.large-search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: clamp(24px, 3.4vw, 42px);
  font-weight: 900;
  min-width: 0;
  outline: 0;
  padding: 12px 0 18px;
}

.search-panel button {
  align-items: center;
  background: linear-gradient(135deg, var(--gold), #ff7a1a);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 184, 0, 0.32);
  color: #111;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
}

.menu-panel-inner {
  display: grid;
  gap: 18px 34px;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.menu-panel a {
  border-bottom: 2px solid transparent;
  color: var(--deep);
  font-size: 24px;
  font-weight: 900;
  padding-bottom: 8px;
}

.menu-panel a:hover {
  border-bottom-color: var(--gold);
}

.news-hero,
.page-title,
.content-band,
.article-page {
  padding-left: clamp(18px, 5vw, 64px);
  padding-right: clamp(18px, 5vw, 64px);
}

.news-hero {
  background:
    linear-gradient(135deg, rgba(31, 58, 46, 0.05), rgba(255, 184, 0, 0.08)),
    var(--bg);
  padding-bottom: clamp(38px, 5vw, 68px);
  padding-top: clamp(34px, 5vw, 64px);
}

.hero-kicker {
  align-items: center;
  border-bottom: 3px solid var(--deep);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 16px;
}

.hero-kicker span {
  background: var(--deep);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  padding: 8px 13px;
}

.hero-kicker strong {
  color: var(--green);
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 900;
  text-align: right;
}

.front-grid {
  align-items: start;
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
}

.lead-story {
  min-height: 330px;
}

.eyebrow,
.meta {
  color: #b86b00;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.article-meta-actions,
.news-row-meta,
.source-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-meta-actions {
  margin-bottom: 8px;
}

.article-favorite-action {
  margin: 0;
}

.article-favorite-action .favorite-button {
  padding: 8px 12px;
}

.article-meta-actions .meta,
.news-row-meta .meta {
  margin-bottom: 0;
}

.source-actions {
  justify-content: flex-end;
}

.source-filter-button {
  background: #eef6f1;
  border: 1px solid #cfe1d7;
  border-radius: 999px;
  color: var(--deep);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  padding: 8px 12px;
  text-decoration: none;
}

.source-filter-button:hover {
  border-color: var(--gold);
  color: #b86b00;
}

.source-filter-button.small {
  font-size: 12px;
  padding: 6px 9px;
}

.lead-story h1 {
  color: var(--ink);
  font-size: clamp(20px, 3.36vw, 48px);
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 980px;
}

.story-image-link {
  display: block;
  margin: 18px 0 20px;
  max-width: 760px;
}

.story-image-link img,
.article-thumb img,
.news-row-image img,
.article-image img {
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

[data-fallback-image].image-load-failed {
  display: none;
}

.story-image-link img {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.lead-story p:not(.eyebrow) {
  color: #324039;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.68;
  max-width: 900px;
}

.story-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 900;
  gap: 12px;
  margin: 18px 0;
}

.headline-rail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  padding: 22px;
}

.rail-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rail-title span {
  color: var(--deep);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.rail-title a,
.section-heading a {
  color: var(--green);
  font-weight: 900;
}

.headline-rail article {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}

.headline-rail article:last-child {
  border-bottom: 0;
}

.headline-rail h2 {
  color: var(--ink);
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.35;
  margin: 0;
}

.dashboard-strip {
  background: var(--deep);
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  padding: 1px clamp(18px, 5vw, 64px);
}

.live-status-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px clamp(18px, 5vw, 64px);
  scrollbar-width: thin;
}

.live-status-strip div {
  background: linear-gradient(135deg, #ffffff, #fff8df);
  border-left: 4px solid var(--gold);
  flex: 1 0 190px;
  min-width: 190px;
  padding: 14px 18px;
}

.live-status-strip span {
  color: var(--green);
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.live-status-strip strong {
  color: var(--ink);
  display: block;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 900;
  line-height: 1.1;
  margin-top: 5px;
}

.dashboard-strip div {
  background: #263f34;
  min-width: 0;
  padding: 19px 22px;
}

.dashboard-strip span {
  color: #c9d7d1;
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-strip strong {
  color: var(--gold);
  display: block;
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.1;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.content-band,
.page-title {
  padding-bottom: clamp(34px, 5vw, 68px);
  padding-top: clamp(34px, 5vw, 68px);
}

.page-title {
  background: linear-gradient(135deg, rgba(31, 58, 46, 0.07), rgba(255, 184, 0, 0.1));
}

.page-title h1,
.section-heading h2 {
  color: var(--ink);
  font-size: clamp(30px, 3.7vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  margin: 0;
}

.page-title > p:not(.eyebrow):not(.status-pill) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin-top: 12px;
  max-width: 720px;
}

.tool-page-title {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding-bottom: clamp(18px, 3vw, 34px);
  padding-top: clamp(20px, 3vw, 36px);
}

.tool-page-title .eyebrow {
  font-size: 13px;
  margin-bottom: 0;
}

.tool-page-title h1 {
  font-size: clamp(28px, 3vw, 44px);
}

.tool-page-title > p:not(.eyebrow):not(.status-pill) {
  font-size: 16px;
  line-height: 1.45;
  margin-top: 0;
  max-width: 860px;
}

.tool-page-title .inline-favorite {
  margin-top: 4px;
}

.tool-page-title + .content-band {
  padding-top: clamp(24px, 3.5vw, 42px);
}

.tool-page-title + .content-band .lotto-machine {
  margin-top: 0;
}

.front-section {
  padding-top: clamp(42px, 6vw, 72px);
}

.muted {
  background: #eef3f1;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading span {
  color: var(--deep);
  font-size: 22px;
  font-weight: 900;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-item,
.news-row,
.region-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.article-item:hover,
.news-row:hover,
.region-card:hover,
.tool-card:hover,
.board-row:hover {
  border-color: rgba(31, 58, 46, 0.26);
  box-shadow: 0 13px 34px rgba(17, 24, 20, 0.10);
  transform: translateY(-1px);
}

.article-item {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 138px minmax(0, 1fr);
  padding: 20px;
}

.source-badge {
  align-items: center;
  background: var(--deep);
  border-radius: 9px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  text-align: center;
}

.article-thumb {
  display: block;
}

.article-thumb img {
  aspect-ratio: 4 / 3;
  border-radius: 9px;
}

.article-item h3,
.news-row h3 {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.32;
  margin-bottom: 10px;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-row {
  padding: clamp(20px, 3vw, 30px);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.board-write-button {
  justify-self: start;
  margin-top: 4px;
  text-decoration: none;
}

.compact-board-title {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding-bottom: clamp(24px, 3.6vw, 44px);
  padding-top: clamp(24px, 3.6vw, 44px);
}

.board-hub-band {
  padding-bottom: 30px;
}

.board-community-band,
.board-detail-band {
  padding-top: clamp(22px, 3vw, 38px);
}

.board-community-layout,
.board-detail-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr) minmax(240px, 310px);
}

.board-detail-layout {
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(220px, 280px);
}

.board-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 118px;
}

.board-side-card,
.board-category-nav {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.board-stats-card {
  background:
    linear-gradient(135deg, rgba(31, 58, 46, 0.96), rgba(47, 93, 80, 0.95)),
    var(--deep);
  color: #fff;
}

.board-stats-card span,
.board-side-card > span,
.board-side-head span {
  color: #b87300;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
}

.board-stats-card span {
  color: rgba(255, 255, 255, 0.72);
}

.board-stats-card strong {
  color: var(--gold);
  display: block;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.board-stats-card em {
  color: rgba(255, 255, 255, 0.82);
  display: block;
  font-style: normal;
  font-weight: 900;
  margin-top: 8px;
}

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

.board-category-link {
  border: 1px solid transparent;
  border-radius: 12px;
  color: inherit;
  display: grid;
  gap: 3px;
  padding: 12px;
  text-decoration: none;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

.board-category-link:hover,
.board-category-link.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.board-category-link span {
  color: #b87300;
  font-size: 12px;
  font-weight: 900;
}

.board-category-link strong {
  color: var(--deep);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.board-category-link em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.board-prompt-card strong,
.board-feature-card strong,
.board-side-head strong {
  color: var(--deep);
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.board-prompt-card p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.6;
  margin: 8px 0 0;
}

.board-feed {
  min-width: 0;
}

.board-feed-head {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.board-feed-head h2 {
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.08;
  margin: 0;
}

.board-feed-head .eyebrow {
  margin-bottom: 7px;
}

.board-feed-head > span {
  background: var(--deep);
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  padding: 8px 12px;
}

.board-search-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-bottom: 14px;
  padding: 12px;
}

.board-search-form input {
  border: 1px solid #cfd8d2;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 15px;
}

.board-search-form button,
.board-search-form a {
  align-items: center;
  background: var(--deep);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  text-decoration: none;
}

.board-search-form a {
  background: var(--gold-soft);
  color: var(--deep);
}

.board-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.board-keyword-list a {
  background: #f5fbf2;
  border: 1px solid #c7d9ce;
  border-radius: 999px;
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
  padding: 7px 10px;
}

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

.board-category-card {
  background:
    linear-gradient(135deg, rgba(255, 184, 0, 0.16), rgba(255, 255, 255, 0) 42%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: inherit;
  display: grid;
  gap: 8px;
  min-height: 220px;
  padding: clamp(20px, 3vw, 30px);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.board-category-card:hover,
.board-category-card.active {
  border-color: var(--gold);
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.board-category-card span {
  color: #b87300;
  font-size: 13px;
  font-weight: 900;
}

.board-category-card strong {
  color: var(--deep);
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 900;
  line-height: 1.15;
}

.board-category-card p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.55;
  margin: 0;
}

.board-category-card em {
  align-self: end;
  color: var(--deep);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  margin-top: 12px;
}

.board-list {
  display: grid;
  gap: 14px;
}

.board-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.board-row:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.board-row-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  padding: 0;
}

.board-row-main {
  color: inherit;
  display: grid;
  gap: 8px;
  padding: clamp(18px, 2.3vw, 24px);
  text-decoration: none;
}

.board-row-author {
  align-items: start;
  display: flex;
  justify-content: flex-end;
  padding: clamp(18px, 2.3vw, 24px);
}

.board-row em,
.comment-row span {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.board-row strong {
  color: var(--ink);
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.25;
}

.board-row p {
  color: #3b4842;
  display: -webkit-box;
  line-height: 1.62;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.board-row-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.board-mini-list a {
  border: 1px solid var(--line);
  border-radius: 11px;
  color: inherit;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  text-decoration: none;
}

.board-mini-list a:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.board-mini-list strong {
  color: var(--ink);
  display: -webkit-box;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.board-mini-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.board-feature-card ul {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.65;
  margin: 8px 0 0;
  padding-left: 18px;
}

.board-detail-band .article-page {
  padding: 0;
}

.board-owner-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.board-owner-actions form {
  margin: 0;
}

.author-activity-button {
  background: #eef6f1;
  border: 1px solid #c7d9ce;
  border-radius: 999px;
  color: var(--deep);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 10px;
}

.author-activity-button:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.board-detail-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.rich-text-block,
.comment-editor-card,
.board-editor-card,
.board-editor-guide {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.board-content p {
  color: #26332d;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.9;
  margin: 0;
  white-space: pre-wrap;
  word-break: keep-all;
}

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

.comment-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.comment-row div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-row strong {
  color: var(--deep);
  font-weight: 900;
}

.comment-row p {
  color: #26332d;
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
  word-break: keep-all;
}

.comment-form {
  margin-top: 20px;
}

.comment-editor-card {
  padding: 20px;
}

.board-activity-modal[hidden] {
  display: none;
}

.board-activity-modal {
  inset: 0;
  position: fixed;
  z-index: 300;
}

.board-activity-backdrop {
  background: rgba(17, 24, 20, 0.58);
  inset: 0;
  position: absolute;
}

.board-activity-card {
  background: var(--panel);
  border: 2px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 14px;
  left: 50%;
  max-height: min(760px, calc(100vh - 42px));
  max-width: 860px;
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100vw - 28px), 860px);
}

.board-activity-close {
  align-items: center;
  background: var(--deep);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: grid;
  font-size: 28px;
  font-weight: 700;
  height: 42px;
  line-height: 1;
  place-items: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
}

.board-activity-card .eyebrow {
  color: #b87300;
  font-size: 13px;
  font-weight: 900;
  margin: 0;
}

.board-activity-card h2 {
  color: var(--deep);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  margin: 0;
  padding-right: 46px;
}

.board-activity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.board-activity-tabs button,
.board-activity-pagination button {
  background: #eef6f1;
  border: 1px solid #c7d9ce;
  border-radius: 999px;
  color: var(--deep);
  cursor: pointer;
  font-weight: 900;
  padding: 9px 14px;
}

.board-activity-tabs button.active,
.board-activity-pagination button.active {
  background: var(--gold);
  border-color: #d99d00;
  color: #000;
}

.board-activity-results {
  display: grid;
  gap: 10px;
}

.board-activity-item {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.board-activity-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.board-activity-item strong {
  color: var(--deep);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}

.board-activity-item p {
  color: #3b4842;
  display: -webkit-box;
  line-height: 1.58;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: pre-wrap;
}

.board-activity-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-top: 4px;
}

.login-required-box {
  background: #fff8df;
  border: 1px solid #f1d27b;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 18px;
}

.login-required-box strong {
  color: var(--deep);
  font-size: 18px;
  font-weight: 900;
}

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

.news-row-image {
  display: block;
  margin-bottom: 16px;
  max-width: 420px;
}

.news-row-image img {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.news-row:hover,
.article-item:hover,
.region-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.news-excerpt {
  color: #3b4842;
  display: -webkit-box;
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.region-chip,
.status-pill {
  background: var(--gold-soft);
  border: 1px solid #f1d27b;
  border-radius: 999px;
  color: #6e4300;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  padding: 7px 12px;
}

.region-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.region-card {
  display: grid;
  gap: 7px;
  min-height: 136px;
  padding: 20px;
}

.region-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.region-card strong {
  color: var(--deep);
  font-size: 24px;
  line-height: 1.2;
}

.region-card em {
  color: var(--danger);
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.region-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.transaction-region-section + .transaction-region-section {
  margin-top: 40px;
}

.transaction-region-section h3 {
  color: var(--deep);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 16px;
}

.compact-regions {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

.compact-regions .region-card {
  min-height: 126px;
}

.transaction-filter {
  display: grid;
  gap: 12px;
  grid-template-columns: 250px minmax(240px, 1fr) auto;
  margin-top: 28px;
  max-width: 900px;
}

.transaction-filter select,
.transaction-filter input {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  min-height: 58px;
  min-width: 0;
  outline: 0;
  padding: 14px 16px;
}

.transaction-filter select:focus,
.transaction-filter input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.2);
}

.transaction-filter button,
.large-search button,
.source-button {
  background: var(--gold);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #000;
  cursor: pointer;
  font-weight: 900;
  padding: 14px 24px;
}

.transaction-filter button {
  min-height: 58px;
}

.period-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.period-actions a {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--deep);
  font-size: 15px;
  font-weight: 900;
  padding: 9px 14px;
}

.period-actions a.active {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.search-help {
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  margin: 14px 0 0;
}

.search-help strong {
  color: var(--deep);
  font-weight: 900;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: auto;
  max-height: min(72vh, 760px);
}

table {
  border-collapse: collapse;
  min-width: 760px;
  overflow: hidden;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
  white-space: nowrap;
}

th {
  background: var(--deep);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 1;
}

td {
  background: #fff;
  color: #25312c;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

tbody tr:hover td {
  background: #fff9e8;
}

.transaction-table td:nth-child(3) {
  color: var(--ink);
  font-weight: 900;
}

.transaction-table td:last-child {
  color: var(--danger);
  font-weight: 900;
}

.article-page {
  margin: 0 auto;
  max-width: 1020px;
  padding-bottom: clamp(50px, 6vw, 92px);
  padding-top: clamp(42px, 6vw, 78px);
}

.article-page h1 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  word-break: keep-all;
}

.article-image {
  margin: 24px 0 28px;
}

.article-image.image-load-failed {
  background: #fff8df;
  border: 1px solid #f1d27b;
  border-radius: 12px;
  display: block;
  margin: 14px 0 18px;
  padding: 12px 14px;
}

.article-image.image-load-failed img,
.article-image.image-load-failed figcaption {
  display: none;
}

.image-fallback-message {
  color: #6e4300;
  display: none;
  font-size: 14px;
  font-weight: 900;
  margin: 0;
}

.article-image.image-load-failed .image-fallback-message {
  display: block;
}

.article-image img {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  max-height: 520px;
}

.article-image figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-top: 8px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 0;
}

.article-summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 8px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-top: 30px;
  padding: clamp(22px, 3vw, 34px);
}

.article-summary h2 {
  color: var(--deep);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.article-summary p {
  color: #26332d;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.82;
  margin: 0;
}

.source-card {
  align-items: center;
  background: var(--deep);
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
  color: white;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 28px;
  padding: 24px;
}

.source-card span {
  color: var(--gold);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 5px;
}

.source-card strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.source-card p {
  color: #d8e2dd;
  font-size: 15px;
  margin: 8px 0 0;
}

.source-button {
  flex: 0 0 auto;
}

.related-news {
  margin-top: 46px;
}

.news-list.compact .news-row {
  padding: 18px;
}

.large-search {
  margin-top: 26px;
}

.tools-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tool-card {
  background: var(--panel);
  border: 2px solid var(--line-strong);
  border-top: 3px solid var(--deep);
  border-left: 8px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 24px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.tool-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.tool-card-main {
  display: grid;
  gap: 8px;
}

.tool-card span {
  color: #b86b00;
  font-size: 14px;
  font-weight: 900;
}

.tool-card strong {
  color: var(--deep);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
}

.tool-card p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.favorite-button,
.auth-form button,
.calculator-form button,
.stamp-controls button {
  background: var(--gold);
  border: 2px solid #d99d00;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(255, 184, 0, 0.32);
  color: #000;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  padding: 10px 16px;
}

.favorite-button.active {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.inline-favorite {
  margin-top: 18px;
}

.auth-form,
.calculator-form,
.board-form,
.comment-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  max-width: 760px;
}

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

.board-editor-card {
  gap: 18px;
  margin-top: 0;
  max-width: none;
  padding: clamp(20px, 3vw, 30px);
}

.board-editor-guide {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
  position: sticky;
  top: 120px;
}

.board-editor-guide span {
  color: #b87300;
  font-size: 13px;
  font-weight: 900;
}

.board-editor-guide strong {
  color: var(--deep);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

.board-editor-guide p,
.board-editor-guide li {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.65;
}

.board-editor-guide p,
.board-editor-guide ul {
  margin: 0;
}

.board-editor-guide ul {
  padding-left: 18px;
}

.inline-check-field {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.inline-check-field button {
  background: var(--deep);
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 0 14px;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field-help.is-success {
  color: #157347;
}

.field-help.is-error {
  color: var(--danger);
}

.auth-popup .site-header,
.auth-popup .search-panel,
.auth-popup .menu-panel,
.auth-popup .site-footer {
  display: none;
}

.auth-popup main {
  min-height: 100vh;
}

.auth-popup .page-title {
  min-height: 100vh;
  padding: 34px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.auth-links a {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--deep);
  font-weight: 900;
  padding: 9px 13px;
}

.article-title-row {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.article-title-row h1 {
  flex: 1;
}

.danger-button {
  background: var(--danger);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  margin-top: 8px;
  padding: 10px 15px;
  white-space: nowrap;
}

.admin-actions-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-action-card {
  background: var(--panel);
  border: 2px solid var(--line-strong);
  border-left: 8px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  padding: 24px;
}

.admin-action-card span {
  color: #b86b00;
  font-size: 14px;
  font-weight: 900;
}

.admin-action-card strong {
  color: var(--deep);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.admin-action-card p {
  color: var(--muted);
  margin: 0;
}

.admin-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-card-actions form {
  margin: 0;
}

.admin-link-button {
  background: var(--panel);
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  color: var(--deep);
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  justify-content: center;
  padding: 10px 16px;
  text-decoration: none;
}

.admin-link-button:hover {
  border-color: var(--gold);
  color: #b86b00;
}

.task-progress-panel {
  background: #f6fbf8;
  border: 1px solid #cfe1d7;
  border-radius: 10px;
  display: grid;
  gap: 9px;
  padding: 14px;
}

.task-progress-panel.is-idle {
  background: #faf8ef;
}

.task-progress-panel.is-complete {
  border-color: #85c49e;
}

.task-progress-panel.is-failed {
  background: #fff1f1;
  border-color: #f2b9b2;
}

.task-progress-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.task-progress-header span {
  color: #577165;
  font-size: 13px;
  font-weight: 900;
}

.task-progress-header strong {
  color: var(--deep);
  font-size: 18px;
}

.task-progress-meter {
  background: #e6eee9;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.task-progress-meter span {
  background: linear-gradient(90deg, var(--gold), #ff7a1a);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.25s ease;
  width: 0;
}

.task-progress-panel.is-complete .task-progress-meter span {
  background: linear-gradient(90deg, #35a867, #73c77f);
}

.task-progress-panel.is-failed .task-progress-meter span {
  background: var(--danger);
}

.task-progress-panel p {
  color: var(--deep);
  font-size: 14px;
  font-weight: 900;
}

.task-progress-panel small {
  color: var(--muted);
  font-weight: 800;
}

.schedule-panel {
  background: #f6fbf8;
  border: 1px solid #cfe1d7;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.schedule-panel div {
  display: grid;
  gap: 4px;
}

.schedule-panel span {
  color: #577165;
  font-size: 12px;
}

.schedule-panel strong {
  color: var(--deep);
  font-size: 16px;
  line-height: 1.25;
}

.schedule-panel p {
  color: #577165;
  font-size: 13px;
  font-weight: 800;
  grid-column: 1 / -1;
}

.schedule-panel.is-stale {
  background: #fff7e8;
  border-color: #f0b84d;
}

.schedule-panel.is-stale p {
  color: #b86b00;
}

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

.automation-summary article {
  background: #f6fbf8;
  border: 1px solid #cfe1d7;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.automation-summary.is-stale article {
  background: #fff7e8;
  border-color: #f0b84d;
}

.automation-summary span {
  color: #577165;
  font-size: 13px;
  font-weight: 900;
}

.automation-summary strong {
  color: var(--deep);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.automation-summary p {
  color: #b86b00;
  font-weight: 900;
  margin: 0;
}

.upcoming-runs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.upcoming-runs span,
.log-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 10px;
}

.upcoming-runs span {
  background: #eef6f1;
  color: var(--deep);
}

.log-status.is-success {
  background: #e9f7ef;
  color: #157347;
}

.log-status.is-failed {
  background: #fff1f1;
  color: var(--danger);
}

.admin-log-actions {
  margin-top: 18px;
}

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

.progress-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100;
}

.progress-modal-backdrop {
  background: rgba(13, 35, 27, 0.62);
  inset: 0;
  position: absolute;
}

.progress-modal-card {
  background:
    linear-gradient(135deg, rgba(255, 184, 0, 0.16), rgba(255, 255, 255, 0)),
    var(--panel);
  border: 2px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  max-width: 520px;
  padding: 28px;
  position: relative;
  width: min(100%, 520px);
}

.progress-modal-kicker {
  color: #b86b00;
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.progress-modal-card h2 {
  color: var(--deep);
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 8px;
}

.progress-modal-card p {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 20px;
}

.progress-meter {
  background: #e6eee9;
  border-radius: 999px;
  height: 16px;
  overflow: hidden;
}

.progress-meter span {
  background: linear-gradient(90deg, var(--gold), #ff7a1a);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.18s ease;
  width: 0;
}

.progress-modal-card strong {
  color: var(--deep);
  display: block;
  font-size: 34px;
  font-weight: 900;
  margin-top: 14px;
}

.progress-modal-card small {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 8px;
}

body.modal-open {
  overflow: hidden;
}

.auth-form label {
  color: var(--deep);
  display: grid;
  font-size: 14px;
  font-weight: 900;
  gap: 7px;
}

.auth-form label span {
  padding-left: 4px;
}

.auth-form input,
.calculator-form input,
.board-form input,
.board-form select,
.board-form textarea,
.comment-form textarea,
.stamp-controls input {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  min-height: 54px;
  outline: 0;
  padding: 12px 14px;
  width: 100%;
}

.board-form textarea,
.comment-form textarea {
  line-height: 1.85;
  resize: vertical;
}

.board-form textarea {
  min-height: 420px;
}

.comment-form textarea {
  min-height: 150px;
}

.board-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--deep) 50%), linear-gradient(135deg, var(--deep) 50%, transparent 50%);
  background-position: calc(100% - 18px) 23px, calc(100% - 12px) 23px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}

.board-form input:focus,
.board-form select:focus,
.board-form textarea:focus,
.comment-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.18);
}

.auth-form input[readonly] {
  background: #edf2ef;
  color: var(--muted);
}

.calculator-form label,
.board-form label,
.comment-form label,
.stamp-controls label {
  color: var(--deep);
  display: grid;
  font-size: 15px;
  font-weight: 900;
  gap: 6px;
}

.board-form button,
.comment-form button {
  background: var(--gold);
  border: 2px solid #d99d00;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(255, 184, 0, 0.32);
  color: #000;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  padding: 10px 16px;
}

.board-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.favorite-row {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.result-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 22px;
}

.result-grid div {
  background: var(--deep);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: white;
  padding: 22px;
}

.result-grid span {
  color: #d8e2dd;
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.result-grid strong {
  color: var(--gold);
  display: block;
  font-size: 34px;
  font-weight: 900;
  margin-top: 6px;
}

.ranking-list,
.timeline-list {
  display: grid;
  gap: 12px;
}

.ranking-list a,
.timeline-list article {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  padding: 16px 18px;
}

.ranking-list strong {
  align-items: center;
  background: var(--deep);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.ranking-list span,
.timeline-list h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  margin: 0;
}

.ranking-list em,
.timeline-list time {
  color: #b86b00;
  font-style: normal;
  font-weight: 900;
}

.stamp-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 320px minmax(280px, 520px);
}

.stamp-controls {
  display: grid;
  gap: 14px;
}

.stamp-preview {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.stamp-preview canvas {
  display: block;
  height: auto;
  max-width: 100%;
}

.lotto-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 184, 0, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(31, 58, 46, 0.09), rgba(255, 122, 26, 0.12));
}

.tool-page-title.lotto-hero {
  background: linear-gradient(135deg, rgba(31, 58, 46, 0.06), rgba(255, 184, 0, 0.08));
}

.lotto-machine {
  background:
    linear-gradient(145deg, rgba(31, 58, 46, 0.96), rgba(12, 30, 23, 0.96)),
    var(--deep);
  border: 3px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(13, 35, 27, 0.28);
  color: #fff;
  margin: 0 auto;
  max-width: 920px;
  overflow: hidden;
  padding: clamp(24px, 5vw, 44px);
  position: relative;
  text-align: center;
}

.lotto-machine::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  content: "";
  height: 100%;
  left: -40%;
  position: absolute;
  top: 0;
  transform: skewX(-18deg);
  width: 36%;
}

.lotto-machine.drawing::before {
  animation: lottoShine 1.1s ease infinite;
}

.lotto-display {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 18px);
  justify-content: center;
  min-height: 132px;
  padding: 24px;
}

.lotto-ball {
  align-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.18) 21%, transparent 22%),
    linear-gradient(145deg, #f6cf52, #c48a00);
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  box-shadow: inset -8px -10px 16px rgba(0, 0, 0, 0.18), 0 10px 18px rgba(0, 0, 0, 0.2);
  color: #fff !important;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  height: clamp(58px, 8vw, 82px);
  justify-content: center;
  line-height: 1;
  position: relative;
  -webkit-text-stroke: 1px rgba(10, 24, 18, 0.9);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
  width: clamp(58px, 8vw, 82px);
}

.lotto-ball.placeholder {
  background: linear-gradient(145deg, #eef3f1, #cbd8d2);
  color: var(--muted);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.ball-1 { background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), transparent 22%), linear-gradient(145deg, #ffd84f, #b77e00); }
.ball-2 { background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 22%), linear-gradient(145deg, #55b4ff, #075da8); }
.ball-3 { background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 22%), linear-gradient(145deg, #ff755f, #c81c0b); }
.ball-4 { background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 22%), linear-gradient(145deg, #93a0ad, #303b46); }
.ball-5 { background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 22%), linear-gradient(145deg, #70d65c, #137927); }

.lotto-machine.drawing .lotto-ball {
  animation: lottoBounce 0.34s ease infinite alternate;
}

.lotto-draw-form {
  margin-top: 26px;
}

.lotto-draw-button {
  background: linear-gradient(135deg, var(--gold), #ff7a1a);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(255, 184, 0, 0.38);
  color: #111;
  cursor: pointer;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  padding: 16px 34px;
}

.lotto-draw-button:disabled {
  cursor: wait;
  opacity: 0.88;
}

.lotto-note {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  margin-top: 14px;
}

.lotto-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.lotto-action-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.lotto-action-tabs a {
  background: var(--deep);
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  padding: 11px 15px;
}

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

.lotto-winning-row {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(150px, 0.25fr) 1fr;
  padding: 16px 18px;
}

.lotto-winning-row strong {
  color: var(--deep);
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.lotto-winning-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.winning-balls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lotto-plus {
  color: var(--deep);
  font-size: 24px;
  font-weight: 900;
  margin: 0 2px;
}

.lotto-stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.lotto-stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.lotto-stat-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.lotto-stat-head .lotto-ball {
  font-size: 21px;
  height: 56px;
  width: 56px;
}

.lotto-stat-head strong {
  color: var(--deep);
  font-size: 22px;
  font-weight: 900;
}

.lotto-stat-meter {
  background: #edf2ef;
  border-radius: 999px;
  height: 10px;
  margin: 12px 0;
  overflow: hidden;
}

.lotto-stat-meter i {
  background: linear-gradient(90deg, var(--gold), #ff7a1a);
  display: block;
  height: 100%;
}

.lotto-stat-card details {
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
}

.lotto-stat-card summary {
  cursor: pointer;
}

.lotto-stat-draws {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  max-height: 130px;
  overflow: auto;
}

.lotto-stat-draws a,
.lotto-stat-draws span {
  background: #f5fbf2;
  border: 1px solid #d9e6df;
  border-radius: 8px;
  color: var(--deep);
  padding: 7px 8px;
}

.lotto-stat-draws a span {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
}

.lotto-tabs a {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--deep);
  font-weight: 900;
  padding: 10px 15px;
}

.lotto-tabs a.active {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.lotto-history {
  display: grid;
  gap: 14px;
}

.lotto-history[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.lotto-history-row {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(170px, 0.3fr) minmax(230px, max-content);
  justify-content: space-between;
  padding: 18px;
}

.lotto-history-row strong,
.lotto-history-row span {
  display: block;
}

.lotto-history-row strong {
  color: var(--deep);
  font-weight: 900;
}

.lotto-history-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin-top: 4px;
}

.lotto-mini-balls {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 64px);
  justify-content: end;
}

.lotto-mini-balls .lotto-ball {
  align-items: center;
  display: flex;
  font-size: 24px;
  height: 64px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 64px;
}

.lotto-mini-balls.winning-balls {
  align-items: center;
  display: flex;
  grid-template-columns: none;
  justify-content: flex-end;
}

.lotto-mini-balls.winning-balls .lotto-ball {
  height: 58px;
  width: 58px;
}

@keyframes lottoBounce {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-9px) rotate(3deg); }
}

@keyframes lottoShine {
  from { left: -40%; }
  to { left: 110%; }
}

.short-url-form {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) auto;
  margin-top: 28px;
  max-width: 980px;
}

.short-url-form input {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  min-height: 58px;
  min-width: 0;
  outline: 0;
  padding: 14px 16px;
}

.short-url-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.2);
}

.short-url-form button {
  background: var(--gold);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #000;
  cursor: pointer;
  font-weight: 900;
  min-height: 58px;
  padding: 14px 24px;
}

.tool-search-form {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) auto;
  margin-bottom: 26px;
  max-width: 900px;
}

.tool-search-form input {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  min-height: 56px;
  min-width: 0;
  outline: 0;
  padding: 13px 16px;
}

.tool-search-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.18);
}

.tool-search-form button {
  background: var(--deep);
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  min-height: 56px;
  padding: 13px 22px;
}

.tool-form-wide {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 980px;
}

.tool-form-wide button {
  justify-self: start;
}

.tool-note {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  margin-top: 18px;
}

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

.section-heading.compact {
  margin-bottom: 12px;
}

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

.tool-list a,
.glossary-card,
.checklist-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  display: grid;
  gap: 7px;
  padding: 18px;
}

.tool-list a strong {
  color: var(--deep);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.tool-list a span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.interest-search-band {
  background:
    linear-gradient(135deg, rgba(31, 58, 46, 0.07), rgba(255, 184, 0, 0.11)),
    var(--bg);
}

.interest-search-form {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 980px;
  padding: 10px;
}

.interest-search-form input {
  background: #f6faf8;
  border-color: transparent;
  border-radius: 12px;
}

.interest-search-form button {
  background: linear-gradient(135deg, var(--deep), #2f5d50);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(31, 58, 46, 0.2);
}

.interest-keyword-chips {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 28px;
  min-height: 34px;
}

.interest-keyword-chip {
  align-items: center;
  background: #fff8df;
  border: 1px solid #f1c85d;
  border-radius: 999px;
  display: inline-flex;
  gap: 5px;
  overflow: hidden;
}

.interest-keyword-chip a {
  color: var(--deep);
  font-size: 14px;
  font-weight: 900;
  padding: 8px 4px 8px 12px;
}

.interest-keyword-chip button {
  align-items: center;
  background: #e53935;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  line-height: 1;
  margin-right: 7px;
  padding: 0;
  width: 22px;
}

.keyword-chip-empty {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.interest-result-list {
  gap: 14px;
}

.tool-list a.interest-result-card {
  border-width: 2px;
  box-shadow: var(--shadow);
  padding: 20px;
  position: relative;
}

.tool-list a.interest-result-card::before {
  border-radius: 999px;
  content: "";
  height: 10px;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 10px;
}

.tool-list a.news-card {
  background: linear-gradient(135deg, rgba(255, 248, 223, 0.82), rgba(255, 255, 255, 0.96));
  border-color: #ffc44f;
}

.tool-list a.news-card::before {
  background: var(--gold);
}

.tool-list a.transaction-card {
  background: linear-gradient(135deg, rgba(237, 248, 242, 0.9), rgba(255, 255, 255, 0.96));
  border-color: #70b58a;
}

.tool-list a.transaction-card::before {
  background: #2f9d57;
}

.tool-list a.interest-result-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.trend-chart {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  max-width: 980px;
}

.trend-alert {
  background: #fff8df;
  border: 1px solid var(--gold);
  border-left: 6px solid var(--gold);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 5px;
  margin: 18px 0;
  max-width: 980px;
  padding: 16px 18px;
}

.trend-alert.down {
  background: #f4f8ff;
  border-color: #9bb8ef;
  border-left-color: #4568c8;
}

.trend-alert span {
  color: #b87300;
  font-size: 13px;
  font-weight: 900;
}

.trend-alert.down span {
  color: #365da8;
}

.trend-alert strong {
  color: var(--deep);
  font-size: 20px;
  font-weight: 900;
}

.trend-alert p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  margin: 0;
}

.trend-visual-card {
  background:
    linear-gradient(135deg, rgba(31, 58, 46, 0.06), rgba(255, 184, 0, 0.1)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  max-width: 980px;
  padding: clamp(18px, 3vw, 28px);
}

.trend-svg {
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: block;
  height: auto;
  min-height: 260px;
  width: 100%;
}

.trend-svg line {
  stroke: #9fb0a7;
  stroke-width: 3;
}

.trend-svg line.grid {
  stroke: #e0e8e3;
  stroke-width: 2;
}

.trend-svg polyline {
  fill: none;
  stroke: #ff9f1a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.trend-svg circle {
  fill: var(--deep);
  stroke: var(--gold);
  stroke-width: 5;
}

.trend-svg text {
  fill: var(--deep);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
}

.trend-svg text.amount {
  font-size: 25px;
}

.trend-svg text.month {
  fill: var(--muted);
  font-size: 21px;
}

.trend-range {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.trend-range span {
  background: #eef6f1;
  border: 1px solid #c7d9ce;
  border-radius: 999px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 900;
  padding: 7px 11px;
}

.trend-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 82px minmax(120px, 1fr) 130px 58px;
}

.trend-row span,
.trend-row em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.trend-row strong {
  color: var(--deep);
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

.trend-bar {
  background: #e6ece8;
  border-radius: 999px;
  height: 18px;
  overflow: hidden;
}

.trend-bar i {
  background: linear-gradient(90deg, var(--gold), #ff7a1a);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.glossary-grid,
.checklist-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.investment-checklist-form {
  max-width: 980px;
}

.checklist-status-board {
  background:
    linear-gradient(135deg, rgba(31, 58, 46, 0.96), rgba(46, 92, 78, 0.96)),
    var(--deep);
  border: 1px solid rgba(255, 184, 0, 0.55);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(17, 24, 20, 0.18);
  color: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  padding: 18px;
}

.checklist-status-board div:not(.checklist-meter) {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.checklist-status-board span,
.checklist-status-board em {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.checklist-status-board strong {
  color: var(--gold);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
  line-height: 1;
}

.checklist-status-board .status-text {
  color: #fff;
  font-size: clamp(21px, 2vw, 30px);
}

.checklist-meter {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  grid-column: 1 / -1;
  height: 13px;
  overflow: hidden;
}

.checklist-meter i {
  background: linear-gradient(90deg, var(--gold), #ff7a1a);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.18s ease;
}

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

.glossary-card span {
  color: #b87300;
  font-size: 13px;
  font-weight: 900;
}

.glossary-card h2 {
  color: var(--deep);
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.glossary-card p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
  margin: 0;
}

.checklist-form {
  display: grid;
  gap: 18px;
}

.checklist-item {
  align-items: center;
  cursor: pointer;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 16px 18px;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

.checklist-item:has(input:checked) {
  background: #f5fbf2;
  border-color: #afcfae;
  box-shadow: 0 10px 24px rgba(31, 58, 46, 0.08);
}

.checklist-item input {
  accent-color: var(--deep);
  height: 22px;
  margin: 0;
  width: 22px;
}

.checklist-item strong {
  color: var(--deep);
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.checklist-item em {
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.55;
  margin-top: 4px;
}

.checklist-result {
  background: var(--deep);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: #fff;
  display: inline-grid;
  gap: 2px;
  margin-top: 24px;
  min-width: 220px;
  padding: 22px;
}

.checklist-result span {
  color: #d8e2dd;
  font-size: 14px;
  font-weight: 900;
}

.checklist-result strong {
  color: var(--gold);
  font-size: 42px;
  font-weight: 900;
}

.checklist-result em {
  font-style: normal;
  font-weight: 900;
}

.short-result {
  background: var(--deep);
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
  color: white;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  max-width: 980px;
  padding: 22px;
}

.short-result span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.short-result .short-open-link {
  color: white;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.short-result small {
  color: #d8e2dd;
  overflow-wrap: anywhere;
}

.copy-row {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.copy-value {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: #fff;
  font-size: clamp(18px, 2.1vw, 27px);
  font-weight: 900;
  min-width: 0;
  outline: 0;
  padding: 13px 14px;
  width: 100%;
}

.copy-button {
  background: var(--gold);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  color: #000;
  cursor: pointer;
  font-weight: 900;
  min-height: 48px;
  padding: 10px 16px;
  white-space: nowrap;
}

.copy-button:hover,
.copy-button.copied {
  background: #ffd35a;
}

.copy-button.small {
  border: 1px solid #f1d27b;
  box-shadow: none;
  font-size: 13px;
  min-height: 34px;
  padding: 7px 10px;
}

.table-copy {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 360px;
}

.table-link {
  color: var(--green);
  font-weight: 900;
}

.url-cell {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.notice {
  background: var(--gold-soft);
  border: 1px solid #f1d27b;
  border-radius: 12px;
  color: #5f3a00;
  font-size: 17px;
  font-weight: 900;
  margin: 0 0 18px;
  padding: 14px 16px;
}

.notice.error {
  background: #fff1ef;
  border-color: #f2b9b2;
  color: #9f1d18;
}

.site-footer {
  align-items: start;
  background: var(--deep);
  color: #d8e2dd;
  display: grid;
  gap: 14px 24px;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1fr);
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 64px);
}

.site-footer strong {
  color: var(--gold);
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.site-footer span,
.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 750;
  margin: 0;
}

.site-footer nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.site-footer nav a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 10px;
}

.site-footer p {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .site-nav {
    display: flex;
    flex: 1 0 100%;
    gap: 10px;
    justify-content: flex-start;
    margin-left: 0;
    order: 3;
    overflow-x: auto;
    padding: 2px 0 0;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(31, 58, 46, 0.06);
    flex: 0 0 auto;
    font-size: 15px;
    padding: 8px 13px;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:nth-of-type(n+4) {
    display: none;
  }

  .site-header,
  .site-header.compact {
    flex-wrap: wrap;
  }

  .site-header.compact .site-nav {
    display: flex;
  }

  .site-header.compact .scroll-title {
    display: none;
  }

  .search-panel,
  .menu-panel {
    top: 146px;
  }

  .menu-toggle {
    align-items: center;
    background: var(--gold-soft);
    border: 1px solid #efb100;
    border-radius: 999px;
    display: inline-flex;
    gap: 8px;
    height: 42px;
    justify-content: center;
    min-width: 92px;
    padding: 0 44px 0 12px;
    position: relative;
    width: auto;
  }

  .menu-toggle strong {
    color: var(--deep);
    display: inline;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
  }

  .menu-toggle span {
    height: 4px;
    position: absolute;
    right: 13px;
    width: 24px;
  }

  .menu-toggle span:nth-of-type(1) {
    top: 12px;
  }

  .menu-toggle span:nth-of-type(2) {
    top: 19px;
  }

  .menu-toggle span:nth-of-type(3) {
    top: 26px;
  }

  .brand-logo {
    height: 72px;
    max-width: min(350px, 58vw);
  }

  .front-grid,
  .board-community-layout,
  .board-detail-layout,
  .transaction-filter,
    .board-category-grid,
    .board-editor-layout,
    .automation-summary,
    .checklist-status-board,
    .short-url-form,
    .tool-search-form,
    .split-results,
    .trend-row,
    .copy-row,
    .lotto-history-row,
    .stamp-layout {
      grid-template-columns: 1fr;
    }

  .trend-row strong {
    text-align: left;
  }

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

  .board-sidebar {
    position: static;
  }

  .board-sidebar-left {
    order: 1;
  }

  .board-feed,
  .board-detail {
    order: 2;
  }

  .board-sidebar-right {
    order: 3;
  }

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

  .lotto-mini-balls {
    justify-content: start;
  }

  .lotto-winning-row {
    grid-template-columns: 1fr;
  }

  .winning-balls {
    justify-content: flex-start;
  }

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

  .board-editor-guide {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-header {
    min-height: 96px;
  }

  .brand-logo {
    height: 58px;
    max-width: min(310px, calc(100vw - 140px));
  }

  .header-actions {
    position: absolute;
    right: 18px;
    top: 27px;
  }

  .scroll-title {
    max-width: calc(100vw - 130px);
    text-align: left;
  }

  .search-panel,
  .menu-panel {
    top: 136px;
  }

  .hero-kicker,
  .section-heading,
  .article-title-row,
  .source-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-kicker strong {
    text-align: left;
  }

  .article-item {
    grid-template-columns: 1fr;
  }

  .dashboard-strip,
  .board-category-nav,
  .schedule-panel,
  .inline-check-field {
    grid-template-columns: 1fr;
  }

  .board-search-form {
    grid-template-columns: 1fr;
  }

  .board-feed-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-row {
    grid-template-columns: 1fr;
  }

  .board-row-author {
    justify-content: flex-start;
    padding-top: 0;
  }

  .menu-panel-inner {
    grid-template-columns: 1fr;
  }

  .menu-panel a {
    font-size: 21px;
  }

  .source-button {
    text-align: center;
    width: 100%;
  }
}
