/* Phase 2: denser, readable information layouts. Loaded after phase 1 styles. */
body.phase-two {
  --muted: #617166;
  --line: #dfe7e1;
  --rank-blue: #356f9e;
  --price-orange: #a65e2c;
  font-size: 14px;
}
.phase-two main { padding-top: 24px; }
.phase-two .page-heading { margin-bottom: 17px; }
.phase-two .heading-description { font-size: 13px; line-height: 1.7; }
.phase-two .section { margin-bottom: 24px; }
.phase-two .section-heading { margin-bottom: 12px; }
.phase-two .section-heading h2 { font-size: 17px; }
.phase-two .section-heading p,
.phase-two .results-count,
.phase-two .region-hint,
.phase-two .storage-note,
.phase-two .list-note { font-size: 13px; line-height: 1.6; }
.phase-two .text-button { font-size: 13px; min-height: 44px; }
.phase-two .icon-button { width: 44px; height: 44px; }
.phase-two .icon-button .icon { width: 19px; height: 19px; }
.phase-two .button,
.phase-two .status-button {
  min-height: 44px;
  padding: 9px 12px;
  font-size: 13px;
  gap: 6px;
}
.phase-two .status-button .icon,
.phase-two .button .icon { width: 17px; height: 17px; }
.phase-two .status-button { color: #516b59; font-weight: 600; }
.phase-two .status-button.is-done { color: var(--brand); background: var(--mint); }
.phase-two button:disabled,
.phase-two [aria-disabled="true"] { cursor: default; }
.phase-two .category-tag {
  padding: 2px 7px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 100%;
}
.phase-two .chip { min-height: 44px; font-size: 13px; }
.phase-two .category-chips { margin-bottom: 10px; padding-bottom: 6px; }
.phase-two .chip .icon { width: 16px; height: 16px; }
.phase-two .search-line { margin-bottom: 14px; }
.phase-two .search-box,
.phase-two .region-select { min-height: 46px; height: 46px; }
.phase-two .search-box input,
.phase-two .region-select select { font-size: 16px; }
.phase-two .region-select select { height: 100%; max-width: 185px; }
.phase-two .search-box input { transform: none; width: 100%; margin: 0; }
.phase-two .large-tabs { margin-bottom: 17px; gap: 25px; }
.phase-two .large-tabs > button {
  font-size: 14px;
  min-height: 48px;
  padding-bottom: 11px;
}
.phase-two .large-tabs > button > span { font-size: 12px; }
.phase-two .sample-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 12px;
  line-height: 1.65;
  color: #64756a;
  margin: -4px 0 13px;
}
.phase-two .sample-context .icon { width: 15px; height: 15px; }
.phase-two .sample-context > span { min-width: 0; overflow-wrap: anywhere; }
.phase-two .record-demo {
  display: inline-block;
  border: 1px solid #dfe4dd;
  border-radius: 4px;
  padding: 1px 5px;
  color: #59665d;
  background: #f6f7f5;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: middle;
}
.phase-two .product-info > .record-demo { margin-left: 5px; }
.phase-two .guide-link { min-width: 44px; min-height: 44px; }
.phase-two .guide-steps { padding: 0; margin: 14px 0 0; list-style: none; }
.phase-two .guide-steps li { border-top: 1px solid var(--line); }
.phase-two .guide-steps button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 3px;
  color: var(--brand);
  text-align: left;
}
.phase-two .guide-steps strong,
.phase-two .guide-steps small { display: block; }
.phase-two .guide-steps strong { font-size: 14px; }
.phase-two .guide-steps small { font-size: 13px; color: var(--muted); line-height: 1.6; }
.phase-two button.demo-badge { min-height: 44px; padding: 7px 10px; }
.phase-two button.demo-badge > .icon { width: 14px; height: 14px; }
.phase-two .stress-control { font-size: 13px; color: var(--brand); }
.phase-two button.stress-control,
.phase-two a.stress-control { display: inline-flex; min-height: 44px; align-items: center; }
.phase-two .stress-banner {
  border: 1px solid #e6d2a7;
  border-radius: 8px;
  padding: 10px 13px;
  background: #fff9ec;
  color: #806234;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.phase-two .stress-banner button { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 10px; margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; color: #765321; }

/* Lottery list: titles and retailer names stay readable; details stay collapsed. */
.phase-two .full-lotteries {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.phase-two .home-lotteries {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}
.phase-two .lottery-card.lottery-v2,
.phase-two .home-lotteries .lottery-card.lottery-v2:first-child {
  display: block;
  grid-column: auto;
  grid-template-columns: none;
  padding: 15px;
  border-radius: 10px;
  overflow: visible;
  background: #fff;
  min-width: 0;
}
.phase-two .lottery-card.lottery-v2.due-today { border-top: 3px solid #d9967e; padding-top: 13px; }
.phase-two .lottery-v2 .lottery-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: start;
}
.phase-two .lottery-card.lottery-v2 .lottery-summary .product-art {
  position: static;
  grid-column: auto;
  grid-row: auto;
  width: 58px;
  height: 65px;
  object-fit: cover;
  border-radius: 7px;
  margin-top: 2px;
}
.phase-two .lottery-heading { min-width: 0; }
.phase-two .lottery-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.phase-two .application-state { font-size: 12px; color: #65756a; white-space: nowrap; }
.phase-two .application-state.is-done { background: none; color: var(--brand); }
.phase-two .lottery-card.lottery-v2 .lottery-summary .card-title {
  grid-column: auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  width: 100%;
  min-height: 44px;
  margin: 5px 0 4px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}
.phase-two .lottery-store {
  display: block;
  color: #617166;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.phase-two .lottery-store a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.phase-two .lottery-card.lottery-v2 .lottery-summary .card-title[aria-expanded="true"] {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.phase-two .lottery-card.lottery-v2 .lottery-summary > .favorite {
  position: relative;
  top: -4px;
  right: 4px;
  left: auto;
  width: 44px;
  height: 44px;
  margin: 0;
  align-self: start;
  background: none;
}
.phase-two .lottery-v2 .lottery-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 12px 0 10px;
  font-size: 13px;
  line-height: 1.5;
}
.phase-two .lottery-v2 .deadline-info,
.phase-two .lottery-v2 .region-info {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #5e7064;
}
.phase-two .lottery-v2 .deadline-info {
  padding: 5px 7px;
  border-radius: 5px;
  background: #f2f6f2;
  font-variant-numeric: tabular-nums;
}
.phase-two .lottery-v2.due-today .deadline-info { color: #9c513c; background: #fff1ec; }
.phase-two .lottery-v2 .deadline-info.is-closed { color: #59665d; background: #f0f1ef; }
.phase-two .lottery-v2 .deadline-info strong { font-weight: 700; color: inherit; margin-left: 4px; }
.phase-two .lottery-v2 .lottery-facts .icon { width: 15px; height: 15px; }
.phase-two .lottery-v2 .region-info { flex-wrap: wrap; overflow-wrap: anywhere; }
.phase-two .lottery-v2 .lottery-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 62px;
  gap: 7px;
  align-items: stretch;
}
.phase-two .lottery-card.lottery-v2 .lottery-actions > * {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 6px;
  padding: 7px 6px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.phase-two .lottery-v2 .application-link { color: var(--brand); border: 1px solid #bdd7c9; background: #f7fbf8; }
.phase-two .disabled-link { color: #768279; border: 1px dashed #d1dad3; background: #f8faf8; }
.phase-two .lottery-v2 .expand-button { color: #516b59; background: #f1f5f1; border: 1px solid #dfe7e0; }
.phase-two .lottery-v2 .expand-button[aria-expanded="true"] { color: var(--brand); border-color: #a5c7b5; background: #e9f3ec; }
.phase-two .lottery-v2 .lottery-actions .icon { width: 16px; height: 16px; }
.phase-two .lottery-expanded { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.75; }
.phase-two .lottery-expanded p { margin: 0 0 9px; color: #53685b; }
.phase-two .lottery-expanded h3 { font-size: 14px; margin: 12px 0 4px; }
.phase-two .lottery-expanded .requirements { font-size: 13px; margin: 6px 0 10px; padding-left: 20px; line-height: 1.8; }
.phase-two .source-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 5px; }
.phase-two .source-list li { font-size: 13px; color: #66786b; line-height: 1.6; }
.phase-two .source-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.phase-two .source-list small { font-size: 12px; }
.phase-two .source-list .icon { width: 14px; height: 14px; margin-left: 5px; }
.phase-two .source-list > h3 { margin: 0 0 2px; }
.phase-two .source-list > ul { margin: 0; padding-left: 19px; display: grid; gap: 6px; }
.phase-two .source-list > ul > li { padding-left: 2px; overflow-wrap: anywhere; }

/* Filters remain composable, rather than making deadline and status one choice. */
.phase-two .lottery-filter-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 13px;
}
.phase-two .filter-row { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 130px; }
.phase-two .filter-label { font-size: 13px; font-weight: 600; color: #526759; }
.phase-two .filter-control,
.phase-two .filter-row select {
  min-height: 44px;
  border: 1px solid #d5e0d7;
  border-radius: 6px;
  padding: 9px 28px 9px 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235c7063' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
  width: 100%;
  font-size: 15px;
  color: #344e3e;
}
.phase-two .filter-disclosure {
  margin: 0 0 12px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.phase-two .filter-disclosure > summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) 10px;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 6px 1px;
  color: #365a43;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.phase-two .filter-disclosure > summary::-webkit-details-marker { display: none; }
.phase-two .filter-disclosure > summary .icon { width: 17px; height: 17px; }
.phase-two .filter-disclosure > summary small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: right;
  overflow-wrap: anywhere;
}
.phase-two .filter-disclosure > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.phase-two .filter-disclosure[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.phase-two .filter-disclosure > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.phase-two .filter-disclosure .lottery-filter-panel { padding: 0; border: 0; margin: 0; }
.phase-two .filter-disclosure .region-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin: 9px 0 11px;
}
.phase-two .filter-disclosure .region-hint span { display: inline; font-size: 12px; }
.phase-two .results-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 12px; font-size: 13px; color: #5c7162; }
.phase-two .results-toolbar .region-hint { margin: 0; }
.phase-two .results-toolbar strong { color: #2f5140; font-size: 15px; }
.phase-two .sort-label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #617166; }
.phase-two .sort-label .icon { width: 15px; height: 15px; }
.phase-two .pagination { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; color: #5c7162; font-size: 13px; }
.phase-two .pagination button { min-height: 44px; min-width: 80px; padding: 9px 14px; border: 1px solid #d7e2d9; border-radius: 7px; background: #fff; color: var(--brand); }
.phase-two .pagination button:disabled { color: #87928a; background: #f0f4ef; border-color: #e4e9e2; }
.phase-two .pagination > span { text-align: center; }
.phase-two .pagination > span > small { display: block; font-size: 12px; color: #6a7d6d; margin-top: 3px; }

/* Home: short summaries followed by predictable daily shortcuts. */
.phase-two .highlights-panel { padding: 15px 18px; border: 1px solid #d6e6db; border-left: 3px solid var(--brand); border-radius: 9px; background: #fff; margin-bottom: 15px; }
.phase-two .highlights-panel h2 { font-size: 16px; margin-bottom: 8px; }
.phase-two .highlight-item { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; font-size: 14px; line-height: 1.6; text-align: left; color: #3d5d49; }
.phase-two .highlight-item .icon { width: 16px; height: 16px; margin-top: 3px; }
.phase-two button.highlight-item { min-height: 44px; width: 100%; }
.phase-two .highlight-item > span:nth-child(2) { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.phase-two .highlight-item strong { white-space: nowrap; margin-left: 4px; }
.phase-two .home-jump-links { display: flex; align-items: center; gap: 7px; overflow-x: auto; padding: 2px 1px 7px; margin: 0 0 15px; scrollbar-width: thin; }
.phase-two .home-jump-links a,
.phase-two .home-jump-links button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 8px 11px; border: 1px solid #dce6dd; border-radius: 6px; background: #fff; font-size: 13px; color: #496852; white-space: nowrap; }
.phase-two .ranking-shortcuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.phase-two .ranking-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 54px; padding: 10px 12px; border: 1px solid #d4e4d9; background: #eef6f0; color: #285b43; font-size: 13px; font-weight: 600; line-height: 1.5; border-radius: 7px; }
.phase-two .ranking-link:hover { background: #e2f0e7; border-color: #a3c8b4; }
.phase-two .ranking-link .icon { width: 16px; height: 16px; }
.phase-two .ranking-link small { display: block; font-weight: 400; font-size: 12px; }
.phase-two .section-home { margin-bottom: 22px; scroll-margin-top: 80px; }
.phase-two .stats-grid { margin-bottom: 20px; }
.phase-two .stat-card { padding: 13px 16px; }
.phase-two .stat-top { font-size: 13px; }
.phase-two .stat-value { font-size: 27px; }
.phase-two .stat-bottom { font-size: 12px; }
.phase-two .rail-title h2,
.phase-two .category-panel > h2 { font-size: 14px; }
.phase-two .activity-main p,
.phase-two .activity-details button,
.phase-two .progress-caption,
.phase-two .category-link,
.phase-two .activity-card .button { font-size: 13px; }
.phase-two .category-link { min-height: 44px; }
.phase-two .activity-details button { min-height: 44px; }
.phase-two .activity-card .button { min-height: 44px; }

/* Amazon: rank and price are distinct metrics, with seller counts beside them. */
.phase-two .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 12px;
  align-items: start;
}
.phase-two .product-grid > .product-v2 { border: 1px solid var(--line); background: #fff; border-radius: 9px; }
.phase-two .product-grid > .product-v2:last-child { border-bottom: 1px solid var(--line); }
.phase-two .product-v2 { display: block; padding: 17px; border-bottom: 1px solid var(--line); min-width: 0; }
.phase-two .product-v2:last-child { border-bottom: 0; }
.phase-two .product-v2-top { display: grid; grid-template-columns: 60px minmax(0, 1fr) 44px; gap: 12px; align-items: start; }
.phase-two .product-v2 .product-art { grid-column: auto; grid-row: auto; width: 60px; height: 61px; object-fit: cover; }
.phase-two .product-art.art-placeholder {
  display: grid;
  place-items: center;
  background: #edf3ed;
  border: 1px solid #e1e9e1;
  border-radius: 7px;
  color: #637e69;
}
.phase-two .art-placeholder .icon { width: 22px; height: 22px; }
.phase-two .product-v2 .product-info { grid-column: auto; grid-row: auto; min-width: 0; }
.phase-two .product-v2 .product-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: normal; font-size: 15px; line-height: 1.5; letter-spacing: 0; margin: 5px 0 0; overflow-wrap: anywhere; }
.phase-two .product-v2 .product-actions { grid-column: auto; grid-row: auto; align-self: start; flex-direction: column; gap: 2px; }
.phase-two .product-v2 .product-actions .icon-button { width: 44px; height: 44px; }
.phase-two .product-metrics { display: grid; grid-template-columns: 1.2fr 1.25fr .65fr; gap: 8px; margin: 12px 0 10px; }
.phase-two .product-metrics > div { min-width: 0; border-radius: 6px; padding: 9px 11px; background: #f5f7f4; }
.phase-two .product-metrics dt { font-size: 12px; font-weight: 500; line-height: 1.5; color: #67776b; }
.phase-two .product-metrics dd { margin: 4px 0 0; font-size: 15px; font-weight: 650; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.phase-two .product-metrics dd small,
.phase-two .product-metrics dd span { display: block; font-size: 12px; font-weight: 400; margin-top: 2px; }
.phase-two .product-metrics .rank-metric { background: #eff5fb; color: var(--rank-blue); }
.phase-two .product-metrics .rank-metric dt { color: #4d7191; }
.phase-two .product-metrics .price-metric { background: #fff4eb; color: var(--price-orange); }
.phase-two .product-metrics .price-metric dt { color: #936c4d; }
.phase-two .product-metrics .seller-metric { color: #4f6a58; }
.phase-two .product-metrics > div > small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.phase-two .product-metrics .metric-basis { color: #66594f; }
.phase-two .product-metrics .price-direction {
  width: fit-content;
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 600;
  white-space: normal;
}
.phase-two .price-direction.is-increase { color: #8b411d; background: #fbe1cc; }
.phase-two .price-direction.is-decrease { color: #225b7a; background: #e2f0f7; }
.phase-two .price-direction.is-flat,
.phase-two .price-direction.is-unknown { color: #536058; background: #ecf0ec; }
.phase-two .product-metrics .seller-metric dd { word-break: keep-all; }
.phase-two .product-metrics .metric-primary { box-shadow: inset 0 0 0 1px currentColor; }
.phase-two .product-v2-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.phase-two .product-v2 .asin-button { min-height: 44px; font-size: 13px; padding: 6px 8px; border: 1px solid #d8e3db; border-radius: 6px; color: #496451; }
.phase-two .product-v2 .asin-button .icon { width: 16px; height: 16px; }
.phase-two .product-v2-bottom > a { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; color: var(--brand); font-size: 13px; }
.phase-two .product-v2-bottom > span { font-size: 12px; color: #68796c; }
.phase-two .product-v2-bottom > a .icon { width: 15px; height: 15px; }
.phase-two .bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 9px 15px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid #dbe5dd; border-radius: 8px; background: #f0f6f1; margin-bottom: 14px; font-size: 13px; color: #496951; }
.phase-two .bulk-toolbar p,
.phase-two .bulk-toolbar small { font-size: 12px; margin-top: 3px; color: #637768; line-height: 1.6; }
.phase-two .bulk-toolbar .button { background: #fff; border-color: #b6d0bf; flex-shrink: 0; }
.phase-two .bulk-toolbar .button.primary { color: #285c42; }
.phase-two .bulk-toolbar > span { line-height: 1.65; }
.phase-two .sort-select { font-size: 13px; }
.phase-two .sort-select select { min-height: 44px; font-size: 14px; max-width: 240px; }
.phase-two .metric-pair { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.phase-two .metric-pair .rank-metric { color: var(--rank-blue); }
.phase-two .metric-pair .price-metric { color: var(--price-orange); }

/* News provenance never shares the visual treatment of a forecast. */
.phase-two .news-list { background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.phase-two .news-v2 { padding: 17px; border-bottom: 1px solid var(--line); min-width: 0; }
.phase-two .news-v2:last-child { border-bottom: 0; }
.phase-two .news-v2 .news-meta { gap: 6px 8px; margin-bottom: 7px; }
.phase-two .news-v2 .news-meta time { font-size: 12px; }
.phase-two .news-v2 .news-title { font-size: 15px; font-weight: 650; line-height: 1.65; overflow-wrap: anywhere; }
.phase-two .news-title-line { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: start; }
.phase-two .news-title-line .news-title { min-width: 0; min-height: 44px; }
.phase-two .news-title-line > .favorite { margin-top: -5px; }
.phase-two .evidence-legend { font-size: 13px; line-height: 1.7; color: #5e7364; padding: 10px 12px; margin: 0 0 14px; background: #f0f5f0; border-left: 3px solid #a3beaa; border-radius: 4px; }
.phase-two .news-v2 p,
.phase-two .news-v2 .news-summary { color: #586e5f; font-size: 14px; line-height: 1.75; margin: 8px 0; }
.phase-two .news-v2,
.phase-two .lottery-expanded,
.phase-two .dialog-content { overflow-wrap: anywhere; }
.phase-two .news-v2 .important-label { font-size: 12px; }
.phase-two .evidence-badge { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.phase-two .evidence-official { background: #e8f3ed; color: #286447; }
.phase-two .evidence-third-party { background: #edf3f9; color: #466b8c; }
.phase-two .evidence-ai { background: #fff4dd; color: #946d23; border: 1px dashed #d8bb7d; }
.phase-two .topic-sources { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: #65796a; font-size: 13px; margin: 8px 0; }
.phase-two .topic-sources a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.phase-two .topic-sources .icon { width: 14px; height: 14px; margin-left: 4px; }
.phase-two .news-meta .topic-sources { margin: 0; }
.phase-two .news-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.phase-two .search-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.phase-two .search-links a { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 7px 9px; font-size: 13px; border: 1px solid #dce5de; color: #426a50; border-radius: 6px; background: #fff; }
.phase-two .search-links .icon { width: 14px; height: 14px; }
.phase-two .lifecycle-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 11px 0; padding: 9px 12px; border-radius: 6px; background: #f4f6f2; }
.phase-two .lifecycle-facts > div { min-width: 0; }
.phase-two .lifecycle-facts dt { font-size: 12px; color: #6d7c6c; }
.phase-two .lifecycle-facts dd { margin: 3px 0 0; font-size: 14px; color: #3d5945; font-weight: 600; overflow-wrap: anywhere; }
.phase-two .check-filter { min-height: 44px; font-size: 13px; }
.phase-two .check-filter input { width: 18px; height: 18px; }
.phase-two .empty-state h3 { font-size: 15px; }
.phase-two .empty-state p { font-size: 13px; }
.phase-two .copy-fallback { font-size: 13px; }
.phase-two .copy-fallback textarea { display: block; width: 100%; min-height: 150px; resize: vertical; border: 1px solid #c6d9c7; border-radius: 6px; padding: 10px; font: 14px/1.7 ui-monospace, monospace; margin-top: 10px; }
.phase-two .copy-textarea { display: block; width: 100%; min-height: 190px; resize: vertical; border: 1px solid #b8cfbe; border-radius: 7px; padding: 12px; margin-top: 16px; font: 16px/1.6 ui-monospace, monospace; color: #2e513c; background: #f6faf5; }
.phase-two .dataset-options { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.phase-two .dataset-options > button { flex: 1 1 145px; min-height: 46px; }
.phase-two .import-panel {
  min-width: 0;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.phase-two .import-panel h3 { margin: 0 0 7px; font-size: 15px; }
.phase-two .import-panel p { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.phase-two .import-options { display: grid; gap: 5px; margin: 8px 0 12px; }
.phase-two .import-options label { font-size: 13px; font-weight: 600; }
.phase-two .import-options input[type="file"] {
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  border: 1px solid #cad9ce;
  border-radius: 6px;
  color: #516658;
  background: #f7faf7;
  font: inherit;
}
.phase-two .import-options input::file-selector-button {
  min-height: 44px;
  margin-right: 7px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #cad9ce;
  color: var(--brand);
  background: #eaf3ec;
  font: inherit;
  cursor: pointer;
}
.phase-two .import-feedback:not(:empty) {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-left: 3px solid #88ae94;
  color: #355940;
  background: #f0f7f0;
  white-space: pre-line;
}
.phase-two .import-feedback.is-error {
  border-color: #b77861;
  color: #853e2d;
  background: #fff3ee;
}
.phase-two .reset-section { border-top: 1px solid var(--line); margin-top: 20px; }
.phase-two .reset-section .button { margin-top: 7px; }
.phase-two .reset-panel p { font-size: 14px; line-height: 1.7; margin: 0 0 10px; }
.phase-two .reset-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 7px;
}
.phase-two .reset-counts > div { padding: 8px; background: #f3f6f3; border-radius: 5px; }
.phase-two .reset-counts dt { font-size: 13px; color: var(--muted); }
.phase-two .reset-counts dd { font-size: 17px; font-weight: 650; margin: 4px 0 0; }
.phase-two .reset-panel [data-record-total] { color: var(--muted); font-size: 13px; }
.phase-two .reset-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.phase-two .reset-actions .reset-confirm { background: #964635; color: white; }
.phase-two .reset-actions .reset-confirm:disabled { background: #eaede9; color: #59655d; }
.phase-two .reset-feedback:not(:empty) { padding: 8px 10px; background: #fff5e7; color: #795324; }
.phase-two .page-footer { font-size: 12px; line-height: 1.65; }
.phase-two .page-footer > span:first-child { font-size: 12px; }
.phase-two .dialog-description,
.phase-two .article-body,
.phase-two .about-content > p { font-size: 14px; line-height: 1.8; }
.phase-two .detail-facts > div { font-size: 14px; }
.phase-two .sample-warning { font-size: 13px; line-height: 1.7; }
.phase-two .dialog-actions .status-button,
.phase-two .dialog-actions .button { font-size: 13px; min-height: 44px; }

@media (min-width: 1201px) {
  .phase-two .full-lotteries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 1200px) {
  .phase-two .ranking-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phase-two .lottery-v2 .lottery-summary { grid-template-columns: 45px minmax(0, 1fr) 32px; gap: 8px; }
  .phase-two .lottery-card.lottery-v2 .lottery-summary .product-art { width: 45px; height: 55px; }
  .phase-two .lottery-v2 .lottery-actions { grid-template-columns: 1fr 1fr; }
  .phase-two .lottery-v2 .lottery-actions .expand-button { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  html:has(body.phase-two) {
    scroll-padding-top: 64px;
    scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .phase-two main { padding: 18px 15px 0; }
  .phase-two .topbar { height: 58px; padding: 0 15px; }
  .phase-two .mobile-brand { font-size: 15px; min-height: 44px; }
  .phase-two .topbar .demo-badge { font-size: 12px; }
  .phase-two .eyebrow, .phase-two .heading-description { display: none; }
  .phase-two h1 { font-size: 22px; letter-spacing: -.5px; line-height: 1.45; }
  .phase-two .heading-description { font-size: 13px; margin-top: 6px; line-height: 1.6; }
  .phase-two .page-heading { margin-bottom: 13px; }
  .phase-two .sample-context { margin: 0 0 10px; font-size: 12px; }
  .phase-two .search-line { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 8px; margin-bottom: 12px; }
  .phase-two .search-line:has(.region-select[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .phase-two .search-line:not(:has(.region-select)) { grid-template-columns: minmax(0, 1fr); }
  .phase-two .search-box { min-width: 0; width: 100%; padding: 0 10px; gap: 6px; }
  .phase-two .search-box input { font-size: 16px; width: 100%; transform: none; margin-right: 0; }
  .phase-two .region-select { gap: 4px; padding: 0 8px; width: 100%; }
  .phase-two .region-select select { font-size: 16px; transform: none; margin: 0; width: 100%; max-width: none; }
  .phase-two .region-select > .icon { width: 13px; height: 13px; }
  .phase-two .region-select > .icon:last-child { width: 10px; height: 10px; }
  .phase-two .category-chips { flex-wrap: wrap; overflow: visible; margin: 0 0 9px; padding: 0; gap: 4px; }
  .phase-two .chip { min-height: 44px; max-width: 100%; font-size: 13px; padding: 7px 9px; white-space: normal; overflow-wrap: anywhere; }
  .phase-two .full-lotteries,
  .phase-two .home-lotteries { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .phase-two .lottery-card.lottery-v2,
  .phase-two .home-lotteries .lottery-card.lottery-v2:first-child { display: block; grid-column: auto; padding: 13px; grid-template-columns: none; }
  .phase-two .lottery-card.lottery-v2.due-today { padding-top: 11px; }
  .phase-two .lottery-v2 .lottery-summary { grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 7px; }
  .phase-two .lottery-card.lottery-v2 .lottery-summary .product-art { position: static; width: 48px; height: 56px; margin-top: 2px; }
  .phase-two .lottery-card.lottery-v2 .lottery-summary .card-title { grid-column: auto; font-size: 15px; line-height: 1.5; margin: 4px 0; min-height: 44px; -webkit-line-clamp: 3; }
  .phase-two .lottery-card.lottery-v2 .lottery-summary > .favorite { position: static; width: 44px; height: 44px; }
  .phase-two .lottery-store { font-size: 13px; line-height: 1.5; }
  .phase-two .lottery-tags { gap: 5px; }
  .phase-two .category-tag { font-size: 12px; padding: 2px 6px; }
  .phase-two .application-state { font-size: 12px; }
  .phase-two .lottery-v2 .lottery-facts { margin: 10px 0; font-size: 13px; gap: 6px 9px; }
  .phase-two .lottery-v2 .deadline-info { padding: 5px 7px; }
  .phase-two .lottery-v2 .lottery-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 58px; gap: 6px; }
  .phase-two .lottery-card.lottery-v2 .lottery-actions > * { min-height: 44px; font-size: 13px; padding: 7px 5px; }
  .phase-two .lottery-v2 .lottery-actions .icon { width: 15px; height: 15px; }
  .phase-two .lottery-expanded { font-size: 14px; margin-top: 12px; padding-top: 12px; }
  .phase-two .lottery-expanded .requirements { font-size: 13px; }
  .phase-two .lottery-filter-panel { padding: 10px; gap: 8px; margin-bottom: 11px; }
  .phase-two .filter-row { min-width: 0; flex: 1 1 calc(50% - 8px); }
  .phase-two .filter-label { font-size: 13px; }
  .phase-two .filter-control,
  .phase-two .filter-row select { min-height: 44px; font-size: 16px; padding-left: 9px; }
  .phase-two .results-toolbar { margin-bottom: 11px; font-size: 13px; align-items: flex-start; }
  .phase-two .results-toolbar .region-hint { font-size: 12px; width: 100%; order: 2; }
  .phase-two .region-hint { font-size: 12px; }
  .phase-two .results-count { font-size: 13px; }
  .phase-two .results-count strong { font-size: 15px; }
  .phase-two .pagination { gap: 12px; margin-top: 16px; }
  .phase-two .section-heading { margin-bottom: 10px; align-items: center; gap: 8px; }
  .phase-two .section-heading h2 { font-size: 16px; line-height: 1.55; }
  .phase-two .section-heading p { font-size: 13px; line-height: 1.6; }
  .phase-two .section-heading .count-label { font-size: 12px; }
  .phase-two .text-button { font-size: 13px; min-height: 44px; }
  .phase-two .highlights-panel { padding: 12px 13px; margin-bottom: 12px; }
  .phase-two .highlight-item { font-size: 14px; line-height: 1.6; gap: 7px; }
  .phase-two .home-jump-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
    padding: 0;
    margin-bottom: 12px;
  }
  .phase-two .home-jump-links button { padding: 7px 3px; white-space: normal; overflow-wrap: anywhere; }
  .phase-two .ranking-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .phase-two .ranking-link { min-height: 48px; padding: 9px 10px; font-size: 13px; }
  .phase-two .ranking-link small { font-size: 12px; }
  .phase-two .section-home { margin-bottom: 20px; }
  .phase-two .stats-grid { gap: 9px; margin-bottom: 18px; }
  .phase-two .stat-card { padding: 12px; }
  .phase-two .stat-top { font-size: 12px; }
  .phase-two .stat-bottom { font-size: 12px; line-height: 1.5; }
  .phase-two .stat-value { font-size: 25px; }
  .phase-two .stat-value > span { font-size: 12px; }
  .phase-two .large-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 4px;
    margin-bottom: 12px;
    overflow: visible;
    white-space: normal;
  }
  .phase-two .large-tabs > button {
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    gap: 3px;
    padding: 5px 1px;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .phase-two .large-tabs > button > span { font-size: 12px; }
  .phase-two .list-toolbar { margin-bottom: 12px; gap: 9px; }
  .phase-two .large-tabs[aria-label="Amazonの表示切り替え"] { grid-template-columns: 1.45fr 1fr .8fr; }
  .phase-two .news-tabs { grid-template-columns: 1fr .85fr 1.45fr; }
  .phase-two .amazon-results { margin: 5px 0; }
  .phase-two .filter-disclosure .filter-row:has(#product-sort) {
    flex-direction: row; align-items: center; gap: 10px; margin-top: 8px;
  }
  .phase-two #product-sort { flex: 1; }
  .phase-two .segmented button { min-height: 44px; font-size: 13px; padding: 8px 12px; }
  .phase-two .product-v2 { padding: 14px 13px; }
  .phase-two .product-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .phase-two .product-v2-top { grid-template-columns: 46px minmax(0, 1fr) 44px; gap: 7px; }
  .phase-two .product-v2 .product-art { width: 46px; height: 54px; position: static; grid-column: auto; grid-row: auto; }
  .phase-two .product-v2 .product-info { grid-column: auto; grid-row: auto; }
  .phase-two .product-v2 .product-title { min-height: 44px; font-size: 15px; line-height: 1.5; -webkit-line-clamp: 3; }
  .phase-two .product-v2 .product-actions { grid-column: auto; grid-row: auto; position: static; gap: 0; }
  .phase-two .product-v2 .product-actions .icon-button { width: 44px; height: 44px; }
  .phase-two .product-metrics { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 6px; margin: 8px 0; }
  .phase-two .product-metrics > div { padding: 8px; }
  .phase-two .product-metrics .rank-metric { grid-area: 1 / 1; }
  .phase-two .product-metrics .seller-metric { grid-area: 1 / 2; }
  .phase-two .product-metrics .price-metric {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    column-gap: 8px;
  }
  .phase-two .price-metric dd { margin-top: 0; }
  .phase-two .price-metric .metric-basis,
  .phase-two .price-metric .price-direction { grid-column: 1 / -1; }
  .phase-two .product-metrics dt { font-size: 12px; }
  .phase-two .product-metrics dd { font-size: 14px; line-height: 1.5; }
  .phase-two .product-metrics dd small,
  .phase-two .product-metrics dd span { font-size: 12px; }
  .phase-two .product-v2 .asin-button { font-size: 13px; min-height: 44px; }
  .phase-two .product-v2-bottom > a { font-size: 13px; }
  .phase-two .product-v2-bottom > span { font-size: 12px; }
  .phase-two .bulk-toolbar { padding: 10px 12px; align-items: stretch; }
  .phase-two .bulk-toolbar .button { flex: 1 1 100%; font-size: 13px; padding: 9px 7px; gap: 5px; white-space: normal; }
  .phase-two .bulk-toolbar > span { flex: 1 1 100%; font-size: 12px; line-height: 1.65; }
  .phase-two .bulk-toolbar .button .icon { width: 16px; height: 16px; }
  .phase-two .sort-select { margin-left: auto; font-size: 13px; }
  .phase-two .sort-select select { font-size: 16px; min-height: 44px; max-width: 210px; }
  .phase-two .news-v2 { padding: 15px 13px; }
  .phase-two .news-v2 .news-title { font-size: 15px; line-height: 1.6; }
  .phase-two .news-v2 p,
  .phase-two .news-v2 .news-summary { font-size: 14px; line-height: 1.75; }
  .phase-two .news-v2 .news-meta time { font-size: 12px; }
  .phase-two .evidence-badge { font-size: 12px; }
  .phase-two .topic-sources { font-size: 13px; line-height: 1.6; }
  .phase-two .news-actions { gap: 7px; }
  .phase-two .news-actions .status-button { font-size: 13px; min-height: 44px; }
  .phase-two .news-actions .search-links { flex: 1 1 100%; }
  .phase-two .search-links a { min-height: 44px; font-size: 13px; }
  .phase-two .lifecycle-facts { padding: 9px 10px; gap: 8px 13px; }
  .phase-two .lifecycle-facts dt { font-size: 12px; }
  .phase-two .lifecycle-facts dd { font-size: 14px; }
  .phase-two .storage-note { font-size: 13px; line-height: 1.7; margin: 0 0 15px; }
  .phase-two .list-note { font-size: 12px; line-height: 1.7; }
  .phase-two .check-filter { min-height: 44px; font-size: 13px; }
  .phase-two .empty-state p { font-size: 13px; }
  .phase-two .activity-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .phase-two .activity-details button { min-width: 0; flex-direction: column; justify-content: center; gap: 3px; }
  .phase-two .activity-details strong { overflow-wrap: anywhere; }
  .phase-two .import-actions .button { width: 100%; }
  .phase-two .bottom-nav { padding: 6px 8px max(8px, env(safe-area-inset-bottom)); }
  .phase-two .bottom-nav .nav-item { min-height: 50px; font-size: 11px; padding: 4px 2px; }
  .phase-two .bottom-nav .nav-item > .icon { width: 21px; height: 21px; }
  .phase-two .page-footer { margin-top: 20px; padding: 16px 0 calc(94px + env(safe-area-inset-bottom)); display: block; font-size: 12px; }
  .phase-two .page-footer > span { display: block; max-width: 100%; text-align: left; }
  .phase-two .page-footer > span:first-child { font-size: 12px; margin-bottom: 5px; }
  .phase-two .toast { font-size: 13px; bottom: calc(82px + env(safe-area-inset-bottom)); }
  .phase-two dialog { width: calc(100% - 20px); }
  .phase-two .dialog-content { padding: 18px; }
  .phase-two .detail-facts > div { font-size: 13px; }
  .phase-two .dialog-actions .button,
  .phase-two .dialog-actions .status-button { min-height: 44px; font-size: 13px; }
}
@media (min-width: 520px) and (max-width: 760px) {
  .phase-two .ranking-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phase-two .lottery-v2 .lottery-summary { grid-template-columns: 62px minmax(0, 1fr) 44px; }
  .phase-two .lottery-card.lottery-v2 .lottery-summary .product-art { width: 62px; height: 64px; }
  .phase-two .lottery-v2 .lottery-actions { grid-template-columns: 1fr 1fr 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .phase-two *, .phase-two *::before, .phase-two *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
/* Keep the dashboard brief; complete lists live in their dedicated screens. */
@media (min-width: 761px) {
  .phase-two .highlights-panel { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 20px; }
  .phase-two .highlights-panel > .section-heading { grid-column: 1 / -1; margin-bottom: 3px; }
}
@media (max-width: 760px) {
  .phase-two .section-home .product-v2.compact:nth-child(n+2),
  .phase-two .section-home .news-v2.compact:nth-child(n+2) { display: none; }
}
