:root {
  color-scheme: light;
  --bg: #eef2f6;
  --panel: #ffffff;
  --line: #ccd5df;
  --text: #17202a;
  --muted: #526171;
  --blue: #2185d5;
  --blue-soft: #d7ecff;
  --cyan-soft: #e4f7fb;
  --pink: #ffd8e2;
  --green: #1f9d55;
  --green-soft: #e7f8ee;
  --amber: #e88d00;
  --amber-soft: #fff1d5;
  --red: #e93030;
  --red-soft: #ffdce3;
  --shadow: 0 8px 28px rgba(17, 24, 39, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #e4f3f6 0, var(--bg) 220px),
    var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 14px;
}

.app-header {
  align-items: center;
  background: #1d2b38;
  border-radius: 8px 8px 0 0;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.app-header h1 {
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
}

.seo-intro-panel {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0, #f7fafc 100%);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px 14px;
}

.seo-intro-copy {
  display: grid;
  gap: 5px;
}

.seo-intro-copy p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.seo-intro-copy .seo-intro-lead {
  color: var(--text);
  font-weight: 800;
}

.seo-intro-notice {
  opacity: 0.9;
}

.seo-intro-link {
  align-items: center;
  background: linear-gradient(180deg, #fff8e1, #f3c85b);
  border: 1px solid #d9ac36;
  border-radius: 999px;
  color: #21180a;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  text-decoration: none;
}

.eyebrow {
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 3px;
  opacity: 0.76;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  min-height: 38px;
  padding: 0 12px;
}

.input-panel,
.result-panel {
  background: var(--panel);
  box-shadow: var(--shadow);
}

.input-panel {
  background: var(--panel);
  border-radius: 0 0 8px 8px;
  margin-bottom: 12px;
  padding: 0;
}

.input-purple-scope {
  background: linear-gradient(180deg, #fbf7ff 0%, #f0e4ff 100%);
  border: 1px solid #b78aed;
  border-radius: 0 0 8px 8px;
  padding: 12px;
}

.result-panel {
  border-radius: 8px;
  overflow: hidden;
}

.section-title {
  align-items: center;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mode-tabs {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 12px;
  padding: 4px;
  width: min(100%, 260px);
}

.mode-tab {
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 34px;
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}

.mode-tab:hover {
  color: var(--text);
}

.mode-tab.is-active {
  background: linear-gradient(180deg, #fff8e1, #f3c85b);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 5px 14px rgba(0, 0, 0, 0.12);
  color: #21180a;
}

body[data-theme^="luxury-"] .mode-tabs {
  background: rgba(7, 8, 8, 0.94);
  border-color: rgba(200, 162, 74, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body[data-theme^="luxury-"] .mode-tab {
  color: rgba(255, 248, 232, 0.68);
}

body[data-theme^="luxury-"] .mode-tab:hover {
  color: #fff8e8;
}

body[data-theme^="luxury-"] .mode-tab.is-active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 48%),
    linear-gradient(135deg, #f8d887, #c8a24a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 0 18px rgba(200, 162, 74, 0.18);
  color: #0d0e0e;
}

.section-title.compact {
  margin-top: 12px;
}

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

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

.shared-grid {
  margin-bottom: 10px;
}

.detail-inputs {
  display: block;
}

.counter-block {
  background: linear-gradient(180deg, #ffffff 0, #f7fafc 100%);
  border: 1px solid #9b72e7;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(91, 33, 182, 0.08);
  padding: 10px;
}

.counter-block:focus-within {
  border-color: #7c3aed;
  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.16),
    0 3px 12px rgba(91, 33, 182, 0.12);
}

.counter-block.wide {
  grid-column: 1 / -1;
}

.counter-block label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.counter-block select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #5b21b6 50%) calc(100% - 17px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, #5b21b6 50%, transparent 50%) calc(100% - 11px) 50% / 7px 7px no-repeat,
    #fff;
  border: 1px solid #b78aed;
  border-radius: 6px;
  color: var(--text);
  font-weight: 800;
  min-height: 40px;
  outline: 0;
  padding: 0 36px 0 10px;
  width: 100%;
}

.counter-block select:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

.assist-panel {
  border-top: 1px solid #e6ebf0;
  margin-top: 12px;
  padding-top: 2px;
}

.collapsible-panel {
  padding-top: 10px;
}

.section-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid #9b72e7;
  border-radius: 8px;
  color: var(--text);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 12px;
  text-align: left;
  width: 100%;
}

.section-toggle:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.16);
}

.section-toggle-text {
  align-items: center;
  display: flex;
  gap: 10px;
  font-weight: 900;
}

.section-toggle-icon {
  color: #5b21b6;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.16s ease;
}

.section-toggle[aria-expanded="true"] {
  background: #ffffff;
  border-color: #7c3aed;
}

.section-toggle[aria-expanded="true"] .section-toggle-icon {
  transform: rotate(180deg);
}

.collapsible-panel .input-grid {
  margin-top: 10px;
}

#correctionPanel {
  background: linear-gradient(135deg, #f7f0ff 0%, #eef7ff 55%, #f4fff7 100%);
  border: 1px solid rgba(183, 138, 237, 0.55);
  border-radius: 10px;
  margin: 12px;
  padding: 10px;
}

.correction-stack {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.correction-group {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #b78aed;
  border-radius: 8px;
  overflow: hidden;
}

.correction-group summary {
  align-items: center;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: space-between;
  list-style: none;
  min-height: 44px;
  padding: 0 12px;
}

.correction-group summary::-webkit-details-marker {
  display: none;
}

.correction-group summary::after {
  color: #5b21b6;
  content: "▼";
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.16s ease;
}

.correction-group[open] summary {
  border-bottom: 1px solid rgba(183, 138, 237, 0.8);
}

.correction-group[open] summary::after {
  transform: rotate(180deg);
}

.summary-title-line {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.summary-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.field-title-line {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 6px;
  min-width: 0;
}

.field-title-line label {
  margin-bottom: 0;
}

.correction-group > .counter-block,
.correction-group > .input-grid,
.correction-inner {
  margin: 10px;
}

.correction-group > .input-grid .counter-block {
  margin: 0;
}

.correction-inner {
  display: grid;
  gap: 10px;
}

.correction-subfields {
  display: grid;
  gap: 10px;
}

.all-machine-rank-fields,
.lineup-rank-fields {
  display: grid;
  gap: 12px;
}

.rank-section {
  display: grid;
  gap: 8px;
}

.rank-section-title {
  align-items: center;
  align-self: start;
  background: rgba(229, 72, 77, 0.08);
  border: 1px solid rgba(229, 72, 77, 0.34);
  border-radius: 999px;
  color: #e5484d;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 10px;
  width: fit-content;
}

.toggle-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid #b78aed;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
}

.toggle-row input,
.choice-check input {
  height: 18px;
  width: 18px;
}

.toggle-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

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

.choice-check {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8c3f7;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  min-height: 42px;
  padding: 0 9px;
}

.choice-check:has(input:checked) {
  background: #f2eaff;
  border-color: #7c3aed;
  color: #4c1d95;
}

.previous-tool-panel {
  background: #fff1f3;
  border: 1px solid #f2a3ad;
  border-radius: 8px;
  margin: 12px;
  padding: 10px;
}

.previous-tool-panel .section-toggle {
  background: #fff1f3;
  border-color: #f2a3ad;
  color: #9f1239;
}

.previous-tool-panel .section-toggle[aria-expanded="true"] {
  background: #ffe4e9;
  border-color: #e5484d;
}

.previous-tool-panel .section-toggle-icon {
  color: #e5484d;
}

.previous-tool-panel .toggle-row {
  border-color: #f2a3ad;
  color: #9f1239;
  grid-column: 1 / -1;
}

.previous-tool-panel .toggle-row:has(input:checked) {
  background: #ffe4e9;
  border-color: #e5484d;
}

.previous-tool-panel .counter-block {
  background: rgba(255, 255, 255, 0.78);
  border-color: #f2b5bd;
  box-shadow: none;
}

.previous-tool-panel .counter-block:focus-within {
  border-color: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12);
}

.previous-tool-panel .number-line {
  border-bottom-color: #f2a3ad;
}

.previous-tool-panel .counter-block select {
  background:
    linear-gradient(45deg, transparent 50%, #e5484d 50%) calc(100% - 17px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, #e5484d 50%, transparent 50%) calc(100% - 11px) 50% / 7px 7px no-repeat,
    #fff;
  border-color: #f2b5bd;
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  margin: 7px 0 0;
}

.tool-row {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.tool-row button {
  background: #1d2b38;
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
  min-height: 38px;
}

.stay-judge-action button {
  background: #1d2b38;
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
  min-height: 50px;
  width: 100%;
}

.stay-judge-result {
  background: linear-gradient(180deg, #fbf7ff 0%, #f0e4ff 100%);
  border: 1px solid #b78aed;
  border-left: 5px solid #7c3aed;
  border-radius: 7px;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  grid-column: 1 / -1;
  line-height: 1.45;
  padding: 8px 9px;
}

.stay-judge-result .mini-label {
  color: #5b21b6;
}

.stay-judge-result p {
  color: #111827;
  margin: 0;
  white-space: pre-line;
}

.stay-judge-result .stay-result-body {
  display: block;
}

.number-line {
  align-items: center;
  border-bottom: 2px solid #9b72e7;
  display: flex;
  gap: 8px;
  min-height: 38px;
}

.number-line.compact {
  justify-content: center;
}

.number-line input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  min-width: 0;
  outline: 0;
  text-align: center;
  width: 100%;
}

.small-reset {
  background: #ede4ff;
  border: 1px solid #b78aed;
  border-radius: 5px;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 800;
  min-height: 28px;
  padding: 0 9px;
  white-space: nowrap;
}

.small-reset:hover,
.small-reset:active {
  background: #ddd0ff;
}

.step-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 9px;
}

.step-grid.short {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 230px;
}

.grape-count .step-grid.short,
#cherryCountArea .step-grid.short,
#detailGrapeCountArea .step-grid.short {
  gap: 6px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 100%;
}

.grape-count .step-grid.short button,
#cherryCountArea .step-grid.short button,
#detailGrapeCountArea .step-grid.short button {
  border-radius: 8px;
  font-size: 12px;
  min-height: 34px;
  padding: 0 4px;
}

.step-grid button,
.two-buttons button {
  background: #cfeaff;
  border: 1px solid #acd9f8;
  border-radius: 6px;
  color: #005c9d;
  font-weight: 800;
  min-height: 38px;
}

.two-buttons {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 52px));
  justify-content: center;
  margin-top: 9px;
}

.two-buttons .minus,
.step-grid button[data-step*="-"] {
  background: var(--red-soft);
  border-color: #f5b5c4;
  color: #b21d42;
}

.grape-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.grape-head label {
  margin: 0;
}

.check-row {
  align-items: center;
  color: #26313d;
  display: flex !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  gap: 5px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.hidden {
  display: none !important;
}

.diff-area {
  display: grid;
  gap: 8px;
}

.sign-toggle {
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 44px));
  overflow: hidden;
  width: max-content;
}

.prev-diff-sign {
  margin-bottom: 8px;
}

.sign-toggle button {
  background: #fff;
  color: #26313d;
  font-weight: 900;
  min-height: 36px;
}

.sign-toggle button.active {
  background: #1377d4;
  color: #fff;
}

.unit {
  color: var(--muted);
  font-weight: 700;
  min-width: 24px;
}

.chart-area {
  padding: 12px 12px 8px;
}

.decision-card {
  background: #132433;
  color: #fff;
  padding: 12px;
}

.decision-card .mini-label {
  color: rgba(255, 255, 255, 0.7);
}

.decision-card strong {
  display: block;
  font-size: 21px;
  line-height: 1.15;
  margin-top: 3px;
}

.decision-card p {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin: 6px 0 0;
}

.vertical-chart {
  align-items: end;
  background: linear-gradient(180deg, #fbf7ff 0%, #f0e4ff 100%);
  border: 1px solid #b78aed;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: 138px;
  padding: 8px 8px 10px;
}

.bar-item {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  justify-content: end;
  min-width: 0;
}

.bar-percent {
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-height: 14px;
}

.bar {
  background: #adb5bd;
  border-radius: 5px 5px 0 0;
  min-height: 5px;
  width: min(34px, 72%);
}

.bar.best {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(233, 48, 48, 0.2);
}

.best-item .bar-percent,
.best-item .bar-label {
  color: #cf1f2f;
}

.bar-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  min-height: 12px;
  white-space: nowrap;
}

.band-row {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.band-row div,
.metric-strip div,
.comment-grid div,
.compact-table div,
.extra-result-grid div {
  background: #f4f6f8;
  border: 1px solid #e3e7ec;
  border-radius: 7px;
}

.band-row .band-low {
  background: #e3f1ff;
  border-color: #9fcbf0;
}

.band-row .band-low strong {
  color: #111827;
}

.band-row .band-mid {
  background: #fff0c2;
  border-color: #f0bc55;
}

.band-row .band-mid strong {
  color: #111827;
}

.band-row .band-high {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.48)) padding-box,
    linear-gradient(135deg, #ff2f4f 0%, #ff9f1c 20%, #ffe45c 40%, #2ac769 58%, #2794ff 78%, #b653ff 100%) border-box;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.54);
}

.band-row .band-high strong {
  color: #111827;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.58);
}

.band-row div.is-band-top strong {
  color: #d91f3c;
}

.metric-strip .metric-setting,
.metric-strip .metric-rate,
.metric-strip .metric-hourly,
.metric-strip .metric-jag {
  background: #eef3f8;
  border-color: #cbd8e4;
}

.metric-strip .metric-setting strong,
.metric-rate strong,
.metric-hourly strong,
.metric-jag strong {
  color: #111827;
}

.metric-strip div.is-low {
  background: #e3f1ff;
  border-color: #9fcbf0;
}

.metric-strip div.is-low strong {
  color: #111827;
}

.metric-strip div.is-mid {
  background: #fff0c2;
  border-color: #f0bc55;
}

.metric-strip div.is-mid strong {
  color: #111827;
}

.metric-strip div.is-hot {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.48)) padding-box,
    linear-gradient(135deg, #ff2f4f 0%, #ff9f1c 20%, #ffe45c 40%, #2ac769 58%, #2794ff 78%, #b653ff 100%) border-box;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.54);
}

.metric-strip div.is-hot strong {
  color: #d91f3c;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.58);
}

.band-row div,
.metric-strip div {
  padding: 8px;
  text-align: center;
}

.band-row span,
.metric-strip span,
.compact-table span,
.mini-label {
  color: #334155;
  display: block;
  font-size: 11px;
  font-weight: 900;
}

.band-row strong,
.metric-strip strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 3px;
}

.metric-strip {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 12px 8px;
}

.comment-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 12px 8px;
}

.comment-grid .wide {
  grid-column: 1 / -1;
}

.comment-grid div {
  padding: 8px 9px;
}

.comment-grid .comment-strong {
  background: #ffe0e5;
  border-color: #ff9aa8;
}

.comment-grid .comment-weak {
  background: #e3f1ff;
  border-color: #9fcbf0;
}

.comment-grid .comment-strong p {
  color: #111827;
}

.comment-grid .comment-weak p {
  color: #111827;
}

.comment-grid .pro-advice {
  background: linear-gradient(180deg, #fbf7ff 0%, #f0e4ff 100%);
  border: 1px solid #b78aed;
  border-left: 5px solid #7c3aed;
}

.pro-advice .mini-label {
  color: #5b21b6;
}

.pro-advice p {
  color: #111827;
  white-space: pre-line;
}

.comment-grid .promise-comment {
  background: linear-gradient(180deg, #fffaf0 0%, #fff1d6 100%);
  border: 1px solid #f5b041;
  border-left: 5px solid #d97706;
}

.promise-comment .mini-label {
  color: #92400e;
}

.promise-comment p {
  color: #111827;
  white-space: pre-line;
}

.promise-hot-word {
  color: #dc2626;
  font-weight: 900;
}

.comment-grid p {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin: 3px 0 0;
  min-height: 32px;
}

.compact-table {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 12px 8px;
}

.compact-table div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 34px;
  padding: 7px 8px;
}

.compact-table strong {
  font-size: 13px;
}

.extra-result-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 12px 8px;
}

.extra-result-grid div {
  padding: 8px 9px;
}

.extra-result-grid p {
  color: #203040;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  margin: 3px 0 0;
  min-height: 32px;
  overflow-wrap: anywhere;
}

.note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin: 0;
  padding: 0 12px 12px;
}

@media (max-width: 560px) {
  .mode-tabs {
    width: 100%;
  }

  .mode-tab {
    font-size: 12px;
    min-height: 36px;
  }

  .app-shell {
    padding: 0;
  }

  .app-header,
  .seo-intro-panel,
  .input-panel,
  .input-purple-scope,
  .result-panel {
    border-radius: 0;
    box-shadow: none;
  }

  .seo-intro-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }

  .seo-intro-link {
    width: 100%;
  }

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

  .correction-subfields .input-grid {
    grid-template-columns: 1fr;
  }

  .counter-block {
    padding: 9px;
  }

  .short-step-counter {
    grid-column: 1 / -1;
  }

  .step-grid {
    gap: 5px;
  }

  .step-grid button,
  .two-buttons button {
    min-height: 36px;
  }

  .stay-judge-action {
    grid-column: 1 / -1;
  }

  body[data-theme^="luxury-"] .stay-judge-action .stay-gogo-judge-button {
    margin-left: 0;
    margin-right: 0;
    min-width: 0;
    width: 100%;
  }

  .grape-head {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .vertical-chart {
    height: 124px;
  }

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

  .tool-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .extra-result-grid {
    grid-template-columns: 1fr;
  }
}

/* Simple-version common shell sync. Detail-only tool panels keep their own colors. */
.brand-lockup {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.01)),
    var(--panel-deep, #111);
  border: 1px solid var(--accent, #c8a24a);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 var(--hairline, rgba(255, 255, 255, 0.08)),
    0 0 18px var(--accent-quiet, rgba(200, 162, 74, 0.14));
  color: var(--accent-soft, #f6d978);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 950;
  height: 42px;
  justify-content: center;
}

.header-subcopy {
  color: var(--accent-soft, #f6d978);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 5px 0 0;
  opacity: 0.78;
}

.gogo-reset-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  min-height: 42px;
  min-width: 142px;
  overflow: hidden;
  padding: 6px 12px 6px 9px;
  position: relative;
}

.gogo-chip {
  background:
    linear-gradient(90deg, #ff4b6d 0%, #ff9a2f 22%, #fff056 43%, #50f36a 61%, #39cbff 81%, #b86cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  color: transparent;
  display: grid;
  font-size: 12px;
  font-style: italic;
  font-weight: 950;
  height: 24px;
  letter-spacing: 0;
  min-width: 52px;
  place-items: center;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.45px rgba(0, 0, 0, 0.72);
}

.gogo-reset-label {
  color: #f8d887;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.stay-judge-action .stay-gogo-judge-button {
  border-radius: 999px;
  display: flex;
  gap: 14px;
  height: 68px;
  margin: 8px auto 0;
  max-width: 100%;
  min-height: 68px;
  min-width: 260px;
  padding: 10px 28px 10px 14px;
  width: fit-content;
}

.stay-gogo-judge-button .gogo-chip {
  font-size: 16px;
  height: 38px;
  min-width: 82px;
}

.stay-gogo-judge-button .gogo-reset-label {
  font-size: 19px;
  font-weight: 900;
}

body[data-theme^="luxury-"] {
  --panel: #151615;
  --line: #3a342b;
  --text: #f3efe6;
  --muted: #a59c8b;
  --red: #e5484d;
  --red-soft: #2a1718;
  --panel-top: #191a19;
  --panel-bottom: #111211;
  --panel-deep: #0b0c0c;
  --hairline: rgba(255, 255, 255, 0.07);
  --outer-line: #3d372b;
  --card-line: #363128;
  --number-line: #343a40;
  --bar-bg: #625b51;
  --metric-bg: #171817;
  --danger-accent: #e5484d;
  --danger-glow: rgba(229, 72, 77, 0.18);
  --page-top: #101010;
  --bg: #0d0e0e;
  --header-bg: #070808;
  --header-lift: #18150e;
  --header-text: #f8f0d8;
  --switcher-bg: #101111;
  --switcher-button: #151615;
  --accent: #c8a24a;
  --accent-soft: #f6d978;
  --accent-text: #fff0c5;
  --accent-on: #0d0e0e;
  --accent-quiet: rgba(200, 162, 74, 0.16);
  --focus-ring: rgba(200, 162, 74, 0.14);
  --luxury-glow: rgba(200, 162, 74, 0.16);
  --bar-percent: #d8d0c0;
  --best-label: #ff6b71;
  --plus-bg: #1b1d1e;
  --plus-line: #38414a;
  --plus-text: #d9e7ef;
  --minus-bg: #2a1718;
  --minus-line: #6f3033;
  --minus-text: #ffb0b4;
  --lamp-blue-core: rgba(217, 250, 255, 0.9);
  --lamp-blue: rgba(111, 215, 255, 0.58);
  --lamp-glow-blue: rgba(111, 215, 255, 0.22);
  --lamp-pink-core: rgba(255, 232, 239, 0.9);
  --lamp-pink: rgba(255, 95, 151, 0.56);
  --lamp-glow-pink: rgba(255, 95, 151, 0.2);
  --low-bg: #171d22;
  --low-line: #2f9fff;
  --low-glow: rgba(47, 159, 255, 0.16);
  --mid-bg: #241f15;
  --mid-line: #ffd84d;
  --mid-glow: rgba(255, 216, 77, 0.15);
  --hot-bg: #251f15;
  --hot-line: #a88435;
  --hot-text: #f6d978;
  --strong-soft: #2a1718;
  --strong-line: #6f3033;
  --advice-bg: #17130d;
  --advice-line: #4c3f28;
  background:
    radial-gradient(circle at 50% -160px, var(--luxury-glow), transparent 310px),
    linear-gradient(180deg, var(--page-top) 0, var(--bg) 280px),
    var(--bg);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

body[data-theme="luxury-rainbow-text"] {
  --rainbow-border-gradient: linear-gradient(120deg, #ff1a00 0%, #ff8a00 13%, #fff700 25%, #45ff00 38%, #00ff84 51%, #00e5ff 64%, #0062ff 77%, #8a00ff 89%, #ff007a 100%);
  --hot-bg: #070809;
  --hot-line: #39444b;
  --hot-text: #fff8e8;
  --accent-quiet: rgba(111, 215, 255, 0.14);
}

body[data-theme^="luxury-"] .app-shell {
  padding-top: 18px;
}

body[data-theme^="luxury-"] .app-header {
  background: linear-gradient(135deg, var(--header-bg) 0%, var(--header-lift) 58%, var(--header-bg) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 var(--hairline),
    inset 0 -1px 0 rgba(0, 0, 0, 0.62),
    0 18px 44px rgba(0, 0, 0, 0.28);
  color: var(--header-text);
  overflow: hidden;
  position: relative;
}

body[data-theme^="luxury-"] .app-header::before {
  background: linear-gradient(90deg, transparent, var(--accent), var(--danger-accent), transparent);
  content: "";
  height: 1px;
  left: 18px;
  opacity: 0.74;
  position: absolute;
  right: 18px;
  top: 0;
}

body[data-theme^="luxury-"] .seo-intro-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 54%),
    linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border-color: var(--outer-line);
  box-shadow:
    inset 0 1px 0 var(--hairline),
    0 18px 42px rgba(0, 0, 0, 0.24);
}

body[data-theme^="luxury-"] .seo-intro-copy p {
  color: var(--muted);
}

body[data-theme^="luxury-"] .seo-intro-copy .seo-intro-lead {
  color: var(--text);
  text-shadow: 0 0 12px rgba(255, 78, 95, 0.12);
}

body[data-theme^="luxury-"] .seo-intro-link {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(135deg, #17130d 0%, #050505 58%, #100c08 100%);
  border-color: rgba(245, 205, 120, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -7px 14px rgba(0, 0, 0, 0.5);
  color: #f8d887;
}

body[data-theme^="luxury-"] .brand-lockup,
body[data-theme^="luxury-"] .ghost-button {
  position: relative;
  z-index: 1;
}

body[data-theme^="luxury-"] .gogo-reset-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%),
    linear-gradient(135deg, #17130d 0%, #050505 58%, #100c08 100%);
  border-color: rgba(245, 205, 120, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -8px 16px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(0, 0, 0, 0.62),
    0 10px 18px rgba(0, 0, 0, 0.28);
  color: #f8d887;
}

body[data-theme^="luxury-"] .input-purple-scope,
body[data-theme^="luxury-"] .result-panel {
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border-color: var(--outer-line);
  box-shadow:
    inset 0 1px 0 var(--hairline),
    0 22px 54px rgba(0, 0, 0, 0.28);
}

body[data-theme^="luxury-"] .section-title {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  padding-bottom: 10px;
}

body[data-theme^="luxury-"] .section-title span:first-child {
  color: var(--text);
}

body[data-theme^="luxury-"] .input-purple-scope .counter-block,
body[data-theme^="luxury-"] .vertical-chart,
body[data-theme^="luxury-"] .band-row div,
body[data-theme^="luxury-"] .metric-strip div,
body[data-theme^="luxury-"] .comment-grid .comment-strong,
body[data-theme^="luxury-"] .comment-grid .comment-weak,
body[data-theme^="luxury-"] .comment-grid .pro-advice,
body[data-theme^="luxury-"] .compact-table div {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006)),
    var(--panel-bottom);
  border-color: var(--card-line);
  box-shadow:
    inset 0 1px 0 var(--hairline),
    0 8px 22px rgba(0, 0, 0, 0.13);
}

body[data-theme^="luxury-"] .input-purple-scope .counter-block:focus-within {
  border-color: var(--number-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 8px 22px rgba(0, 0, 0, 0.13);
}

body[data-theme^="luxury-"] .input-purple-scope .number-line {
  border-bottom-color: var(--number-line);
}

body[data-theme^="luxury-"] .input-purple-scope .number-line input,
body[data-theme^="luxury-"] .band-row strong,
body[data-theme^="luxury-"] .metric-strip strong,
body[data-theme^="luxury-"] .comment-grid p,
body[data-theme^="luxury-"] .compact-table strong {
  color: #fff8e8;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.78),
    0 0 10px rgba(255, 248, 232, 0.08);
}

body[data-theme^="luxury-"] .input-purple-scope .counter-block label,
body[data-theme^="luxury-"] .band-row span,
body[data-theme^="luxury-"] .metric-strip span,
body[data-theme^="luxury-"] .compact-table span,
body[data-theme^="luxury-"] .mini-label,
body[data-theme^="luxury-"] .muted,
body[data-theme^="luxury-"] .input-purple-scope .check-row,
body[data-theme^="luxury-"] .bar-label {
  color: var(--muted);
}

body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .small-reset,
body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .step-grid button,
body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .two-buttons button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.012)),
    radial-gradient(ellipse at 50% 0%, rgba(111, 215, 255, 0.2), transparent 70%),
    var(--plus-bg);
  border-color: color-mix(in srgb, var(--plus-line) 58%, var(--lamp-blue));
  border-radius: 11px;
  color: #eafaff;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -10px 20px rgba(0, 0, 0, 0.18),
    0 0 14px rgba(111, 215, 255, 0.08),
    0 5px 12px rgba(0, 0, 0, 0.16);
  text-shadow:
    0 0 8px rgba(111, 215, 255, 0.28),
    0 1px 0 rgba(0, 0, 0, 0.7);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .small-reset::before,
body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .step-grid button::before,
body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .two-buttons button::before {
  background:
    radial-gradient(ellipse at 50% 18%, var(--lamp-blue-core) 0%, var(--lamp-blue) 18%, rgba(125, 109, 255, 0.34) 46%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 54%);
  border-radius: inherit;
  content: "";
  inset: 1px;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .small-reset::after,
body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .step-grid button::after,
body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .two-buttons button::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  content: "";
  height: 1px;
  left: 16%;
  opacity: 0.58;
  pointer-events: none;
  position: absolute;
  right: 16%;
  top: 7px;
}

body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .two-buttons .minus,
body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .step-grid button[data-step*="-"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.01)),
    radial-gradient(ellipse at 50% 0%, rgba(255, 95, 151, 0.2), transparent 70%),
    var(--minus-bg);
  border-color: color-mix(in srgb, var(--minus-line) 58%, var(--lamp-pink));
  color: #ffe8ef;
  text-shadow:
    0 0 9px rgba(255, 95, 151, 0.3),
    0 1px 0 rgba(0, 0, 0, 0.7);
}

body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .two-buttons .minus::before,
body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .step-grid button[data-step*="-"]::before {
  background:
    radial-gradient(ellipse at 50% 18%, var(--lamp-pink-core) 0%, var(--lamp-pink) 19%, rgba(229, 72, 77, 0.32) 48%, transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 54%);
  opacity: 0.43;
}

body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .small-reset:hover,
body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .step-grid button:hover,
body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .two-buttons button:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -10px 20px rgba(0, 0, 0, 0.16),
    0 0 18px var(--lamp-glow-blue),
    0 5px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .two-buttons .minus:hover,
body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .step-grid button[data-step*="-"]:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -10px 20px rgba(0, 0, 0, 0.16),
    0 0 18px var(--lamp-glow-pink),
    0 5px 14px rgba(0, 0, 0, 0.18);
}

body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .small-reset:active,
body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .step-grid button:active,
body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .two-buttons button:active {
  transform: translateY(1px);
}

body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .sign-toggle {
  border-color: color-mix(in srgb, var(--plus-line) 64%, var(--lamp-blue));
  border-radius: 11px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 5px 12px rgba(0, 0, 0, 0.16);
}

body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .sign-toggle button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.012)),
    radial-gradient(ellipse at 50% 0%, rgba(46, 199, 255, 0.42), transparent 72%),
    linear-gradient(180deg, #0d5f89 0%, #08293f 100%);
  color: #f0fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -8px 18px rgba(0, 0, 0, 0.22);
  text-shadow:
    0 0 8px rgba(111, 215, 255, 0.45),
    0 1px 0 rgba(0, 0, 0, 0.7);
}

body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .sign-toggle button.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.02)),
    radial-gradient(ellipse at 50% 0%, #70eaff, transparent 76%),
    linear-gradient(180deg, #168fca 0%, #063653 100%);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(111, 215, 255, 0.72),
    0 0 14px rgba(111, 215, 255, 0.2);
}

body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .sign-toggle button:is(
  [data-sign="-1"],
  [data-detail-sign="-1"],
  [data-prev-diff-sign="-1"],
  [data-lineup-other2-diff-sign="-1"],
  [data-lineup-other4-diff-sign="-1"]
) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.012)),
    radial-gradient(ellipse at 50% 0%, rgba(255, 88, 130, 0.46), transparent 72%),
    linear-gradient(180deg, #8b1830 0%, #3f0816 100%);
  color: #fff2f5;
  text-shadow:
    0 0 8px rgba(255, 95, 151, 0.46),
    0 1px 0 rgba(0, 0, 0, 0.7);
}

body[data-theme^="luxury-"] :is(.input-purple-scope, #correctionPanel, .previous-tool-panel) .sign-toggle button:is(
  [data-sign="-1"],
  [data-detail-sign="-1"],
  [data-prev-diff-sign="-1"],
  [data-lineup-other2-diff-sign="-1"],
  [data-lineup-other4-diff-sign="-1"]
).active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.02)),
    radial-gradient(ellipse at 50% 0%, #ff87aa, transparent 76%),
    linear-gradient(180deg, #d51d45 0%, #650817 100%);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 95, 151, 0.72),
    0 0 14px rgba(255, 95, 151, 0.22);
}

body[data-theme^="luxury-"] .vertical-chart {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(255, 255, 255, 0.032) 28px),
    var(--panel-bottom);
}

body[data-theme^="luxury-"] .bar {
  background: linear-gradient(180deg, #7e776d, #514c45);
}

body[data-theme^="luxury-"] .bar.best {
  background: linear-gradient(180deg, #ff5a63, var(--danger-accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 4px var(--danger-glow),
    0 0 18px var(--danger-glow);
}

body[data-theme^="luxury-"] .bar.best.best-setting-6 {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.02) 28%, rgba(0, 0, 0, 0.16)) padding-box,
    linear-gradient(180deg, rgba(26, 22, 30, 0.2), rgba(16, 18, 20, 0.4)) padding-box,
    linear-gradient(120deg, #c8a24a 0%, #e5484d 18%, #b86cff 38%, #6fd7ff 58%, #4bd48a 76%, #f6d978 100%) border-box;
  border: 2px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -13px 18px rgba(0, 0, 0, 0.18),
    0 0 0 4px rgba(246, 217, 120, 0.1),
    0 0 18px rgba(111, 215, 255, 0.16),
    0 0 24px rgba(229, 72, 77, 0.12);
}

body[data-theme^="luxury-"] .best-item .bar-percent,
body[data-theme^="luxury-"] .best-item .bar-label {
  color: var(--best-label);
}

body[data-theme="luxury-rainbow-text"] .bar.best.best-setting-6 {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.018) 30%, rgba(0, 0, 0, 0.18)) padding-box,
    linear-gradient(135deg, rgba(16, 18, 20, 0.28), rgba(5, 6, 7, 0.44) 56%, rgba(17, 19, 24, 0.34)) padding-box,
    var(--rainbow-border-gradient) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -13px 18px rgba(0, 0, 0, 0.22),
    0 0 0 4px rgba(255, 111, 122, 0.12),
    0 0 18px rgba(111, 215, 255, 0.2),
    0 0 24px rgba(246, 217, 120, 0.13);
}

body[data-theme="luxury-rainbow-text"] .best-item.best-setting-6 .bar-percent,
body[data-theme="luxury-rainbow-text"] .best-item.best-setting-6 .bar-label {
  color: #ff6b71;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.92)) drop-shadow(0 0 6px rgba(255, 75, 86, 0.24));
  font-weight: 900;
  letter-spacing: 0;
  position: relative;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(255, 75, 86, 0.22);
  z-index: 2;
}

body[data-theme^="luxury-"] .band-row .band-low,
body[data-theme^="luxury-"] .metric-strip div.is-low {
  border-color: var(--low-line);
  box-shadow:
    inset 0 1px 0 var(--hairline),
    0 0 0 1px var(--low-glow),
    0 8px 22px rgba(0, 0, 0, 0.13);
}

body[data-theme^="luxury-"] .band-row .band-mid,
body[data-theme^="luxury-"] .metric-strip div.is-mid {
  border-color: var(--mid-line);
  box-shadow:
    inset 0 1px 0 var(--hairline),
    0 0 0 1px var(--mid-glow),
    0 8px 22px rgba(0, 0, 0, 0.13);
}

body[data-theme^="luxury-"] .band-row .band-high,
body[data-theme^="luxury-"] .metric-strip div.is-hot {
  border-color: var(--hot-line);
}

body[data-theme^="luxury-"] .band-row div.is-band-top strong,
body[data-theme^="luxury-"] .metric-strip div.is-hot strong {
  color: #ff4b56;
}

body[data-theme^="luxury-"] .metric-strip div.is-hot {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 214, 96, 0.26), transparent 34%) padding-box,
    radial-gradient(circle at 82% 0%, rgba(111, 215, 255, 0.2), transparent 38%) padding-box,
    linear-gradient(135deg, rgba(88, 42, 22, 0.34), rgba(19, 20, 21, 0.94) 44%, rgba(28, 18, 36, 0.78)) padding-box,
    linear-gradient(120deg, #c8a24a 0%, #e5484d 18%, #b86cff 38%, #6fd7ff 58%, #4bd48a 76%, #f6d978 100%) border-box;
  border: 2px solid transparent;
}

body[data-theme="luxury-rainbow-text"] .metric-strip div.is-hot {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.004)) padding-box,
    linear-gradient(180deg, #0d0e0e, #0d0e0e) padding-box,
    var(--rainbow-border-gradient) border-box;
  border: 2px solid transparent;
}

body[data-theme^="luxury-"] .comment-grid .comment-strong .mini-label {
  color: #ff6b74;
}

body[data-theme^="luxury-"] .comment-grid .comment-weak .mini-label {
  color: #8fdfff;
}

body[data-theme^="luxury-"] .comment-grid .pro-advice {
  background:
    radial-gradient(circle at 14% 0%, rgba(229, 72, 77, 0.14), transparent 190px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.004)),
    #070808;
  border-color: rgba(229, 72, 77, 0.46);
  border-left-color: #ff4b56;
  border-left-width: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 8px 18px rgba(0, 0, 0, 0.18),
    0 0 16px rgba(229, 72, 77, 0.08);
}

body[data-theme^="luxury-"] .pro-advice .mini-label {
  color: #ff8b96;
}

body[data-theme^="luxury-"] .pro-advice .advice-action,
body[data-theme^="luxury-"] .pro-advice .advice-action strong,
body[data-theme^="luxury-"] .promise-hot-word {
  color: #ff6b74;
}

body[data-theme^="luxury-"] .pro-advice .advice-action-strong {
  background: var(--rainbow-border-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 900;
  text-shadow: 0 0 14px rgba(255, 216, 77, 0.16);
}

body[data-theme^="luxury-"] .pro-advice .advice-action-withdraw-strong {
  color: #2f9fff;
  display: inline-block;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(47, 159, 255, 0.3);
}

body[data-theme^="luxury-"] .comment-grid .stay-judge-result {
  background:
    radial-gradient(circle at 14% 0%, rgba(229, 72, 77, 0.14), transparent 190px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.004)),
    #070808;
  border-color: rgba(229, 72, 77, 0.46);
  border-left-color: #ff4b56;
  border-left-width: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 8px 18px rgba(0, 0, 0, 0.18),
    0 0 16px rgba(229, 72, 77, 0.08);
}

body[data-theme^="luxury-"] .stay-judge-result .mini-label {
  color: #ff8b96;
}

body[data-theme^="luxury-"] .stay-judge-result p {
  color: #fff8e8;
}

body[data-theme^="luxury-"] .compact-table {
  background: #070808;
  padding-top: 2px;
}

body[data-theme^="luxury-"] .compact-table div {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.004)),
    #070808;
  border-color: rgba(229, 72, 77, 0.22);
}

body[data-theme^="luxury-"] #correctionPanel {
  background:
    radial-gradient(circle at 18% 0%, rgba(229, 72, 77, 0.2), transparent 210px),
    radial-gradient(circle at 84% 0%, rgba(185, 28, 43, 0.14), transparent 240px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.006)),
    #0b0b0d;
  border-color: rgba(229, 72, 77, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 14px 34px rgba(0, 0, 0, 0.24);
}

body[data-theme^="luxury-"] #correctionPanel .section-toggle,
body[data-theme^="luxury-"] #correctionPanel .correction-group,
body[data-theme^="luxury-"] #correctionPanel .toggle-row,
body[data-theme^="luxury-"] #correctionPanel .choice-check,
body[data-theme^="luxury-"] #correctionPanel .counter-block {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005)),
    #101010;
  border-color: rgba(229, 72, 77, 0.5);
  color: #fff8e8;
}

body[data-theme^="luxury-"] #correctionPanel .section-toggle[aria-expanded="true"],
body[data-theme^="luxury-"] #correctionPanel .correction-group[open] summary {
  background:
    linear-gradient(180deg, rgba(229, 72, 77, 0.16), rgba(255, 255, 255, 0.006)),
    #100b0c;
  border-color: rgba(229, 72, 77, 0.78);
}

body[data-theme^="luxury-"] #correctionPanel summary {
  color: #fff8e8;
}

body[data-theme^="luxury-"] #correctionPanel summary::after,
body[data-theme^="luxury-"] #correctionPanel .section-toggle-icon {
  color: #ff8b96;
}

body[data-theme^="luxury-"] #correctionPanel .summary-note,
body[data-theme^="luxury-"] #correctionPanel .toggle-note,
body[data-theme^="luxury-"] #correctionPanel .field-hint,
body[data-theme^="luxury-"] #correctionPanel .muted {
  color: rgba(255, 139, 150, 0.78);
}

body[data-theme^="luxury-"] #correctionPanel .rank-section-title {
  background:
    linear-gradient(180deg, rgba(229, 72, 77, 0.18), rgba(255, 255, 255, 0.006)),
    #100b0c;
  border-color: rgba(229, 72, 77, 0.72);
  color: #ff7a85;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 0 12px rgba(229, 72, 77, 0.14);
}

body[data-theme^="luxury-"] #correctionPanel .choice-check:has(input:checked) {
  background:
    linear-gradient(180deg, rgba(229, 72, 77, 0.16), rgba(255, 255, 255, 0.006)),
    #100b0c;
  border-color: rgba(229, 72, 77, 0.78);
  color: #ff8b96;
}

body[data-theme^="luxury-"] #correctionPanel .number-line {
  border-bottom-color: rgba(229, 72, 77, 0.58);
}

body[data-theme^="luxury-"] #correctionPanel .number-line input {
  color: #fff8e8;
}

body[data-theme^="luxury-"] #correctionPanel select {
  background:
    linear-gradient(45deg, transparent 50%, #ff8b96 50%) calc(100% - 17px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, #ff8b96 50%, transparent 50%) calc(100% - 11px) 50% / 7px 7px no-repeat,
    #101010;
  border-color: rgba(229, 72, 77, 0.5);
  color: #fff8e8;
}

body[data-theme^="luxury-"] .previous-tool-panel {
  background:
    radial-gradient(circle at 18% 0%, rgba(229, 72, 77, 0.2), transparent 210px),
    radial-gradient(circle at 84% 0%, rgba(185, 28, 43, 0.14), transparent 240px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.006)),
    #0b0b0d;
  border-color: rgba(229, 72, 77, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 14px 34px rgba(0, 0, 0, 0.24);
}

body[data-theme^="luxury-"] .previous-tool-panel .section-toggle,
body[data-theme^="luxury-"] .previous-tool-panel .toggle-row,
body[data-theme^="luxury-"] .previous-tool-panel .counter-block {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005)),
    #101010;
  border-color: rgba(229, 72, 77, 0.5);
  color: #fff8e8;
}

body[data-theme^="luxury-"] .previous-tool-panel .section-toggle[aria-expanded="true"] {
  background:
    linear-gradient(180deg, rgba(229, 72, 77, 0.16), rgba(255, 255, 255, 0.006)),
    #100b0c;
  border-color: rgba(229, 72, 77, 0.78);
}

body[data-theme^="luxury-"] .previous-tool-panel .toggle-row:has(input:checked) {
  background:
    linear-gradient(180deg, rgba(229, 72, 77, 0.16), rgba(255, 255, 255, 0.006)),
    #100b0c;
  border-color: rgba(229, 72, 77, 0.78);
  color: #ff8b96;
}

body[data-theme^="luxury-"] .previous-tool-panel .section-toggle-icon,
body[data-theme^="luxury-"] .previous-tool-panel .counter-block label {
  color: #ff8b96;
}

body[data-theme^="luxury-"] .previous-tool-panel .number-line {
  border-bottom-color: rgba(229, 72, 77, 0.58);
}

body[data-theme^="luxury-"] .previous-tool-panel .number-line input {
  color: #fff8e8;
}

body[data-theme^="luxury-"] .previous-tool-panel select {
  background:
    linear-gradient(45deg, transparent 50%, #ff8b96 50%) calc(100% - 17px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, #ff8b96 50%, transparent 50%) calc(100% - 11px) 50% / 7px 7px no-repeat,
    #101010;
  border-color: rgba(229, 72, 77, 0.5);
  color: #fff8e8;
}

body[data-theme^="luxury-"] .comment-grid .promise-comment {
  background:
    radial-gradient(circle at 14% 0%, rgba(229, 72, 77, 0.14), transparent 190px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.004)),
    #070808;
  border-color: rgba(229, 72, 77, 0.46);
  border-left-color: #ff4b56;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 8px 18px rgba(0, 0, 0, 0.16),
    0 0 16px rgba(229, 72, 77, 0.08);
}

body[data-theme^="luxury-"] .promise-comment .mini-label {
  color: #ff8b96;
}

body[data-theme^="luxury-"] .promise-comment p {
  color: #fff8e8;
}

body[data-theme^="luxury-"] .metric-strip div.is-hot span,
body[data-theme^="luxury-"] .metric-strip div.is-hot strong {
  background-image: linear-gradient(90deg, #ff2f4f 0%, #ff9f1c 20%, #ffe45c 40%, #2ac769 58%, #2794ff 78%, #b653ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: saturate(1.45) contrast(1.08) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.86));
  text-shadow: none;
}

body[data-theme^="luxury-"] .band-row div {
  border-width: 2px;
}

body[data-theme^="luxury-"] .band-row .band-high {
  border-color: var(--danger-accent);
}

@media (max-width: 560px) {
  .brand-mark {
    font-size: 11px;
    height: 36px;
  }

  .header-subcopy {
    font-size: 9px;
  }

  body[data-theme^="luxury-"] .app-header {
    padding: 16px 14px;
  }

  body[data-theme^="luxury-"] .gogo-reset-button {
    height: 40px;
    min-height: 40px;
    min-width: 124px;
    padding: 6px 10px 6px 8px;
  }

  .gogo-chip {
    font-size: 11px;
    height: 22px;
    min-width: 48px;
  }

  body[data-theme^="luxury-"] .stay-judge-action .stay-gogo-judge-button {
    gap: 12px;
    height: 60px;
    margin-left: 0;
    margin-right: 0;
    min-height: 60px;
    min-width: 0;
    padding: 9px 14px 9px 12px;
    width: 100%;
  }

  .stay-gogo-judge-button .gogo-chip {
    font-size: 14px;
    height: 32px;
    min-width: 70px;
  }

  .stay-gogo-judge-button .gogo-reset-label {
    font-size: 17px;
  }
}
