:root {
  --bg: #0e1219;
  --panel: #171d28;
  --panel-2: #202734;
  --line: #313a4a;
  --text: #edf2f8;
  --muted: #98a5b4;
  --orange: #f68600;
  --orange-2: #ff9d22;
  --yellow: #ffd84d;
  --cyan: #62eaff;
  --green: #7dff87;
  --purple: #bd72ff;
  --grade-rare: #36b7cf;
  --grade-epic: #a57cff;
  --grade-unique: #ffd83e;
  --grade-legendary: #d8ff00;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(246, 134, 0, 0.10), transparent 32rem),
    radial-gradient(circle at top right, rgba(127, 84, 186, 0.18), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}
button, input, select, .ghost-btn, .primary-btn { font: inherit; }
a { color: inherit; text-decoration: none; }
.app-header {
  position: sticky; top: 0; z-index: 80;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 14px 22px;
  background: rgba(20, 25, 35, 0.94);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f68600, #ffd84d); color: #1b1c20; font-weight: 900;
  box-shadow: 0 8px 24px rgba(246,134,0,.24);
}
h1 { margin: 0; font-size: 20px; line-height: 1.1; }
p { margin: 4px 0 0; color: var(--muted); }
.header-stats { display: flex; gap: 10px; }
.header-stats div {
  min-width: 84px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  display: grid; gap: 2px; text-align: right;
}
.header-stats b { font-size: 16px; color: #fff; }
.header-stats span { font-size: 11px; color: var(--muted); }
.app-layout {
  max-width: 1620px; margin: 0 auto; display: grid;
  grid-template-columns: 340px minmax(0, 1fr); gap: 20px;
  padding: 20px 22px 46px; align-items: start;
}
.filter-sidebar { position: sticky; top: 86px; z-index: 30; }
.search-panel {
  padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px;
  background: rgba(23, 29, 40, 0.96); box-shadow: 0 18px 42px rgba(0,0,0,.28);
}
.sidebar-title { display: grid; gap: 4px; margin-bottom: 14px; }
.sidebar-title strong { color: #fff; font-size: 17px; }
.sidebar-title span { color: #94a2b5; font-size: 12px; line-height: 1.45; }
.class-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 14px; }
.class-tab input { display: none; }
.class-tab span {
  min-height: 34px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid #354153; background: #101722; color: #aeb8c8;
  font-size: 12px; font-weight: 900; cursor: pointer;
}
.class-tab.active span, .class-tab input:checked + span {
  color: #152000; background: linear-gradient(180deg, #d8ff00, #86bd24); border-color: rgba(216,255,0,.45);
}
.field-block { display: grid; gap: 6px; margin-bottom: 11px; }
.field-block > span { color: #aab5c3; font-size: 12px; font-weight: 800; }
.search-block { margin-bottom: 13px; }
.search-input-wrap { position: relative; min-width: 0; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #a9b4c2; font-size: 20px; }
input, select {
  width: 100%; min-height: 38px; border: 1px solid #394456; border-radius: 10px;
  background: #101722; color: #fff; padding: 9px 11px; outline: none; font-size: 13px;
}
.search-input-wrap input { padding-left: 38px; min-height: 42px; font-size: 14px; }
input:focus, select:focus { border-color: #f68600; box-shadow: 0 0 0 3px rgba(246,134,0,.12); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two-col.compact .field-block { margin-bottom: 10px; }
.detail-search-box {
  margin: 12px 0 13px; padding: 12px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
}
.detail-search-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.detail-search-head strong { color: #fff; font-size: 13px; }
.logic-toggle { display: flex; gap: 8px; color: #c0c9d4; font-size: 11px; font-weight: 900; }
.logic-toggle input { width: auto; min-height: auto; margin: 0 3px 0 0; }
.detail-section-title { font-size: 12px; font-weight: 900; margin: 10px 0 6px; }
.detail-section-title.pot { color: var(--grade-legendary); }
.detail-section-title.add { color: var(--purple); }
.option-filter-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 6px; margin-bottom: 6px; }
.option-filter-row select, .option-filter-row input { min-height: 34px; border-radius: 8px; padding: 7px 8px; }
.check-label { display: flex; align-items: center; gap: 8px; min-height: 28px; color: #c6d0dc; font-size: 12px; font-weight: 800; }
.check-label input { width: 14px; min-height: 14px; accent-color: #f68600; }
.filter-actions { display: grid; grid-template-columns: 1fr 86px; gap: 8px; margin-top: 13px; }
.primary-btn, .ghost-btn {
  min-height: 40px; border-radius: 11px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.08); font-weight: 900;
}
.primary-btn { color: #1d2605; background: linear-gradient(180deg, #d8ff00, #88bd22); }
.ghost-btn { background: #111824; color: #cbd4df; }
.avg-box, .legend-box {
  margin-top: 14px; padding: 13px 12px; border-radius: 14px;
  border: 1px solid rgba(255,216,77,.22);
  background: linear-gradient(180deg, rgba(255,216,77,.10), rgba(255,255,255,.035));
}
.avg-title, .legend-title { color: #fff; font-weight: 900; font-size: 13px; margin-bottom: 5px; }
.avg-main { color: #ffe28a; font-size: 22px; font-weight: 900; letter-spacing: -0.5px; }
.avg-main span { color: #cbd4df; font-size: 12px; font-weight: 700; }
.avg-grid { display: grid; grid-template-columns: 76px 1fr; gap: 4px 8px; margin-top: 8px; font-size: 12px; }
.avg-grid span { color: #98a5b4; }
.avg-grid b { color: #fff; text-align: right; }
.avg-box p, .legend-box p { color: #aeb8c8; font-size: 11px; line-height: 1.45; }
.legend-box { border-color: rgba(98,234,255,.14); background: rgba(98,234,255,.04); display: grid; gap: 5px; }
.legend-box div:not(.legend-title) { display: flex; gap: 7px; align-items: center; color: #cbd4df; font-size: 12px; }
.content { min-width: 0; }
.result-bar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  margin-bottom: 14px; padding: 12px 14px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(23,29,40,.78);
}
.result-bar strong { color: #fff; font-size: 18px; }
.muted, .hint { color: #97a4b5; font-size: 12px; }
.price-stats-panel {
  display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 10px;
  margin: 0 0 16px; padding: 14px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; background: linear-gradient(180deg, rgba(28,35,48,.96), rgba(18,24,35,.96));
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
}
.price-stats-panel div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.06); }
.price-stats-panel span { display:block; color:#93a1b2; font-size:12px; font-weight:800; }
.price-stats-panel b { display:block; color:#ffe28a; font-size:19px; margin-top:4px; }
.price-stats-panel p { grid-column: 1 / -1; margin: 2px 2px 0; font-size: 12px; color:#8f9caf; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed rgba(255,255,255,.12); border-radius: 18px; color: #adb8c7; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; align-items: start; }
.item-card {
  position: relative; display: flex; gap: 12px; min-width: 0; padding: 12px;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(31,38,52,.92), rgba(19,25,36,.96));
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.item-card:hover, .item-card:focus { outline: none; border-color: rgba(246,134,0,.5); box-shadow: 0 0 0 3px rgba(246,134,0,.12), 0 10px 28px rgba(0,0,0,.22); }
.item-card.is-price-outlier { opacity: .82; border-color: rgba(217,87,87,.45); }
.card-icon {
  width: 64px; height: 64px; flex: none; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid #c6ccd3; background: linear-gradient(180deg, #fbfbfb, #dfe4e8);
}
.card-icon img { max-width: 50px; max-height: 50px; }
.card-main { min-width: 0; flex: 1; }
.card-title-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.card-title-row h2 { margin: 0; color: #fff; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag.small { flex: none; padding: 3px 5px; border-radius: 6px; font-size: 10px; font-weight: 900; color: #8edbff; background: rgba(98,234,255,.10); border: 1px solid rgba(98,234,255,.18); }
.badge-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.badge { display: inline-flex; align-items: center; min-height: 20px; padding: 3px 6px; border-radius: 7px; font-size: 11px; font-weight: 900; background: rgba(255,255,255,.06); color: #cbd4df; }
.badge.star { color: #332400; background: var(--yellow); }
.badge.enhance { color: #fff; background: rgba(246,134,0,.22); }
.badge.detail-ok { color: #bfffff; background: rgba(98,234,255,.12); }
.badge.deviation { color: #fff; background: linear-gradient(180deg, #ff6a9c, #d33f78); }
.badge.outlier { color: #fff; background: linear-gradient(180deg, #d95757, #a93636); }
.badge.grade.g1 { color: #fff; background: var(--grade-rare); }
.badge.grade.g2 { color: #fff; background: var(--grade-epic); }
.badge.grade.g3 { color: #251d00; background: var(--grade-unique); }
.badge.grade.g4 { color: #152000; background: var(--grade-legendary); }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; color: #9daabd; font-size: 12px; }
.card-meta span:first-child { color: #ffd84d; }
.price-line { display: flex; align-items: baseline; gap: 5px; margin-top: 8px; }
.price-line b { color: #fff; font-size: 19px; }
.price-line span { color: #cbd4df; font-size: 12px; }
.price-line em { margin-left: auto; color: #78869a; font-style: normal; font-size: 11px; }
.sub-line { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 5px; color: #8f9cae; font-size: 11px; }
.outlier-text { color: #ff8a8a !important; }
.item-card > .maple-tooltip { display: none; }
#tooltip-layer { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; }
#tooltip-layer .maple-tooltip { z-index: 2147483001; }
.maple-tooltip {
  width: 324px; max-width: calc(100vw - 28px); padding: 8px 11px 11px;
  border: 1px solid #9aa6b6; border-radius: 6px;
  background: linear-gradient(180deg, rgba(43,49,63,.985) 0%, rgba(28,33,44,.998) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 22px 54px rgba(0,0,0,.64);
  color: #e8edf5; font-size: 13px; line-height: 1.38; pointer-events: none;
}
.maple-tooltip.floating-tooltip { display: block; position: fixed; left: 0; top: 0; }
.star-groups {
  width: 186px; margin: 0 auto 3px;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 13px;
  justify-content: center; gap: 1px 9px; line-height: 1;
}
.star-group { display: grid; grid-template-columns: repeat(5, 8px); justify-content: center; column-gap: 0; font-size: 11px; letter-spacing: -1px; }
.star-group .on { color: #f6bd35; text-shadow: 0 0 2px rgba(246,189,53,.42); }
.star-group .off { color: #4e5662; }
.tooltip-title { text-align: center; color: #fff; font-weight: 900; font-size: 15px; line-height: 1.25; margin: 3px 0 2px; text-shadow: 0 1px 0 rgba(0,0,0,.55); }
.tooltip-orange { text-align: center; color: var(--orange-2); font-weight: 900; font-size: 12px; line-height: 1.45; }
.tooltip-divider { border-top: 1px solid rgba(190,200,212,.34); margin: 8px 0; }
.tooltip-head { display: flex; gap: 10px; align-items: center; }
.tip-icon-box { width: 80px; height: 80px; border-radius: 5px; flex: none; border: 1px solid #c8d0d8; display: grid; place-items: center; background: linear-gradient(180deg, #fff, #dfe4e8); }
.tip-icon-box img { max-width: 64px; max-height: 64px; }
.tip-meta { flex: 1; min-width: 0; display: grid; gap: 7px; }
.meta-grid { display: grid; grid-template-columns: 70px 1fr; gap: 4px 6px; align-items: baseline; }
.meta-grid span { color: #c4ccd7; }
.meta-grid b { color: #fff; }
.set-line { margin-bottom: 3px; }
.set-line span { color: #c4ccd7; margin-right: 6px; }
.set-line b { color: #fff; }
.option-list { display: grid; gap: 0; }
.option-line { display: flex; align-items: baseline; min-height: 19px; white-space: nowrap; }
.option-name { flex: none; width: 64px; color: #d6dde7; }
.option-total { color: #fff; min-width: 48px; }
.parts { margin-left: 3px; color: #fff; letter-spacing: -0.2px; }
.part { font-weight: 900; }
.part-base, .part-0 { color: #fff; }
.part-star { color: #ffd24a; text-shadow: 0 0 3px rgba(255,210,74,.10); }
.part-scroll { color: #c7b0ff; text-shadow: 0 0 3px rgba(199,176,255,.08); }
.part-flame { color: #60f0bc; text-shadow: 0 0 3px rgba(96,240,188,.08); }
.part-extra { color: #ffa45c; }
.part-1:not(.part-flame):not(.part-scroll) { color: #ffd24a; }
.part-2:not(.part-flame):not(.part-star) { color: #c7b0ff; }
.part-3:not(.part-scroll):not(.part-star) { color: #60f0bc; }
.part-4, .part-5 { color: #ffa45c; }
.scroll-text { margin-top: 6px; color: #fff; font-weight: 900; line-height: 1.45; clear: both; }
.potential-section h3, .additional-section h3 { margin: 0 0 4px; font-size: 13px; line-height: 1.35; }
.grade-title.grade-rare { color: var(--grade-rare) !important; }
.grade-title.grade-epic { color: var(--grade-epic) !important; }
.grade-title.grade-unique { color: var(--grade-unique) !important; }
.grade-title.grade-legendary { color: var(--grade-legendary) !important; }
.grade-cube { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 4px; border-radius: 3px; color: #10151e; font-size: 11px; font-weight: 900; vertical-align: 1px; box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset; }
.grade-cube.grade-rare { background: var(--grade-rare); color: #fff; }
.grade-cube.grade-epic { background: var(--grade-epic); color: #fff; }
.grade-cube.grade-unique { background: var(--grade-unique); color: #251d00; }
.grade-cube.grade-legendary { background: var(--grade-legendary); color: #152000; }
.line-list { display: grid; gap: 3px; }
.potential-line { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: start; gap: 4px 6px; color: #fff; min-height: 17px; }
.line-text { min-width: 0; display: block; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.line-square { width: 7px; height: 7px; flex: none; display: inline-block; border-radius: 1px; box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset, 0 0 3px rgba(0,0,0,.4); }
.rank-rare { background: var(--grade-rare); }
.rank-epic { background: var(--grade-epic); }
.rank-unique { background: var(--grade-unique); }
.rank-legendary { background: var(--grade-legendary); }
.is-deviation .line-text { color: #fff; text-shadow: 0 0 6px rgba(255,216,62,.20); }
.deviation-chip { margin-left: 0; flex: none; height: 16px; padding: 0 5px; display: inline-flex; align-items: center; align-self: start; border-radius: 4px; font-size: 10px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #ff6a9c, #d33f78); }
@media (max-width: 1180px) { .app-layout { grid-template-columns: 310px minmax(0, 1fr); padding-left: 16px; padding-right: 16px; } .item-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .price-stats-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .app-header, .result-bar { flex-direction: column; align-items: stretch; } .header-stats { justify-content: stretch; } .header-stats div { flex: 1; } .app-layout { grid-template-columns: 1fr; } .filter-sidebar { position: static; } }
@media (max-width: 720px) { .app-header, .app-layout { padding-left: 12px; padding-right: 12px; } .two-col { grid-template-columns: 1fr; } .item-card { min-width: 0; } #tooltip-layer { display: none; } .item-card > .maple-tooltip { display: block; position: static; width: 100%; max-width: 100%; margin-top: 12px; pointer-events: auto; } }

/* v9: 런칭용 검색/수집 UI 보정 */
html, body { height: 100%; overflow: hidden; }
body.modal-open { overflow: hidden; }
.app-header { min-height: 72px; }
.app-layout {
  height: calc(100vh - 96px);
  overflow: hidden;
  align-items: stretch;
}
.filter-sidebar {
  height: 100%;
  overflow: hidden;
  position: sticky;
  top: 0;
}
.search-panel {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 36px;
}
.content {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 80px;
}
.result-bar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.price-stats-panel, .avg-box { display: none !important; }
.item-card { cursor: pointer; }
.item-card:hover { transform: translateY(-1px); }
.filter-actions { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(17,22,32,0), #111620 28%); padding-top: 18px; z-index: 5; }

/* 모달: 아이템 클릭 시 기간별 시세/분포 */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50000;
  background: rgba(3, 6, 13, 0.68);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop[aria-hidden="false"] { display: flex; }
.item-modal-card {
  width: min(1080px, calc(100vw - 48px));
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(167, 181, 204, .38);
  border-radius: 18px;
  background: linear-gradient(180deg, #172033 0%, #0e1420 100%);
  box-shadow: 0 28px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  color: #eaf0f8;
  position: relative;
}
.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  margin: 14px 16px 0 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.modal-head { display: flex; gap: 16px; align-items: center; padding: 26px 28px 18px; border-bottom: 1px solid rgba(180,195,215,.16); }
.modal-icon { width: 72px; height: 72px; border-radius: 12px; background: linear-gradient(#fff,#dfe5eb); border: 1px solid #c9d0d8; display:flex; align-items:center; justify-content:center; }
.modal-icon img { max-width: 58px; max-height: 58px; }
.modal-head h2 { margin:0 0 6px; font-size: 24px; }
.modal-head p { margin:0; color:#9fb0c8; }
.modal-loading { padding: 34px 28px; color:#aebbd0; }
.modal-content { padding: 22px 28px 30px; }
.modal-section { margin-bottom: 26px; }
.modal-section h3 { margin: 0 0 12px; font-size: 16px; color: #fff; }
.period-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.period-card { border:1px solid rgba(154,170,196,.22); background: rgba(255,255,255,.045); border-radius: 14px; padding: 14px; cursor: pointer; transition: .15s ease; }
.period-card.active, .period-card:hover { border-color: #f6a63a; background: rgba(246,166,58,.1); }
.period-card strong { color:#d6e2f5; display:block; margin-bottom: 8px; }
.period-price { color:#ffcf5a; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.period-card dl { margin:0; display:grid; grid-template-columns: 70px 1fr; gap: 4px 8px; font-size: 12px; }
.period-card dt { color:#8796ad; }
.period-card dd { margin:0; color:#dfe7f2; }
.period-card dd span { color:#73839b; margin-left: 4px; }
.period-card small { color:#7989a1; display:block; margin-top: 8px; }
.histogram { min-height: 190px; display:flex; align-items:flex-end; gap: 8px; padding: 16px; border:1px solid rgba(154,170,196,.18); border-radius: 14px; background: rgba(0,0,0,.16); overflow-x:auto; }
.hist-bar { width: 64px; min-width: 64px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:8px; }
.hist-bar .bar { width: 42px; background: linear-gradient(180deg, #78e7ff, #2a75ff); border-radius: 9px 9px 4px 4px; display:flex; align-items:flex-start; justify-content:center; color:#fff; font-size:11px; font-weight:700; padding-top:4px; box-shadow: 0 6px 20px rgba(42,117,255,.28); }
.hist-bar em { font-style:normal; color:#9fb0c8; font-size:10px; text-align:center; width: 76px; white-space: normal; line-height: 1.2; }
.histogram-axis { color:#8190a8; font-size: 12px; margin-top:8px; }
.two-pane { display:grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); gap:18px; }
.option-summary, .probability-summary { border:1px solid rgba(154,170,196,.18); background: rgba(255,255,255,.04); border-radius: 14px; padding: 14px; min-height: 160px; }
.option-summary ul { margin: 8px 0 12px; padding-left: 18px; color:#dfe7f2; }
.option-summary li { margin: 3px 0; }
.option-summary h4 { color:#b58cff; margin: 12px 0 4px; }
.mini-badges { display:flex; gap:6px; flex-wrap:wrap; }
.mini-badges span { border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.06); padding:4px 8px; border-radius:999px; font-size:12px; }
.prob-card { display:flex; flex-direction:column; gap:6px; padding:10px; border-radius:12px; background:rgba(0,0,0,.18); margin-bottom:10px; }
.prob-card b { color:#fff; }
.prob-card span { color:#aebbd0; font-size:13px; }
.prob-card strong { color:#d8ff38; }
.modal-note { color:#8797ad; font-size:12px; margin:8px 0 0; }

@media (max-width: 980px) {
  html, body { overflow: auto; }
  .app-layout { height: auto; display:block; overflow: visible; }
  .filter-sidebar, .content { height:auto; overflow: visible; }
  .period-grid, .two-pane { grid-template-columns: 1fr; }
}

/* v9: independent scroll, item-click price analytics, cleaner MVP layout */
html, body { height: 100%; overflow: hidden; }
body.modal-open { overflow: hidden; }
.app-header { height: 74px; min-height: 74px; }
.split-scroll-layout {
  height: calc(100vh - 74px);
  overflow: hidden;
  align-items: stretch;
}
.independent-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.filter-sidebar.independent-scroll {
  height: calc(100vh - 74px);
  position: sticky;
  top: 74px;
  align-self: flex-start;
  padding-bottom: 28px;
}
.content.independent-scroll {
  height: calc(100vh - 74px);
  padding-right: 4px;
  padding-bottom: 42px;
}
.compact-header-stats div { min-width: 88px; }
.slim-result-bar { margin-bottom: 14px; }
.price-stats-panel { display: none !important; }
.avg-box { display: none !important; }
.compact-legend { margin-top: 14px; }
.search-panel { padding-bottom: 26px; }
.sticky-subsection {
  border-color: rgba(216,255,31,.16);
  background: linear-gradient(180deg, rgba(216,255,31,.055), rgba(255,255,255,.025));
}
.item-card { cursor: pointer; transition: transform .08s ease, border-color .12s ease, box-shadow .12s ease; }
.item-card:hover { transform: translateY(-1px); }
.item-card .sub-line span:last-child { color: #d8ff1f; }
.card-meta span:first-child { color: #8edbff; }

.item-modal[hidden] { display: none; }
.item-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(5px);
}
.modal-panel {
  position: relative;
  width: min(1120px, calc(100vw - 34px));
  max-height: min(860px, calc(100vh - 34px));
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(155,166,182,.52);
  background: linear-gradient(180deg, rgba(30,37,51,.98), rgba(15,20,30,.99));
  box-shadow: 0 30px 90px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}
.modal-body {
  max-height: min(860px, calc(100vh - 34px));
  overflow-y: auto;
  padding: 24px;
  color: #dfe6ef;
}
.modal-body.loading { min-height: 220px; display: grid; place-items: center; color: #d8ff1f; font-weight: 900; }
.modal-error { padding: 40px; color: #ff9b9b; font-weight: 900; }
.modal-header-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0 46px 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.modal-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  border: 1px solid #c8d0d8;
  background: linear-gradient(180deg, #fff, #dfe4e8);
}
.modal-icon img { max-width: 66px; max-height: 66px; }
.modal-header-row h2 {
  margin: 0 0 5px;
  font-size: 22px;
  color: #fff;
}
.modal-header-row p { margin: 0; color: #97a4b6; font-size: 13px; }
.modal-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.modal-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 8px;
  color: #dfe8f3;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
  font-weight: 900;
}
.modal-section {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.section-head h3 { margin: 0; color: #fff; font-size: 16px; }
.section-head p { margin: 0; color: #91a0b2; font-size: 12px; }
.period-table-wrap { overflow-x: auto; }
.period-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.period-table th, .period-table td {
  padding: 8px 8px;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
  text-align: right;
}
.period-table th:first-child, .period-table td:first-child { text-align: center; }
.period-table thead th {
  color: #d8ff1f;
  background: rgba(216,255,31,.07);
  font-weight: 900;
}
.period-table tbody th { color: #fff; background: rgba(255,255,255,.035); }
.period-table td { color: #e6edf6; }
.period-table .no-data { color: #748196; text-align: center; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0; border: none; background: transparent; }
.chart-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.chart-card canvas { width: 100%; display: block; border-radius: 12px; background: rgba(3,6,12,.22); }
.expectation-box { display: grid; gap: 12px; }
.expect-section {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.06);
}
.expect-section b { color: #d8ff1f; }
.expect-section span { color: #aeb9c8; font-size: 12px; }
.expect-section ul { margin: 0; padding-left: 18px; }
.expect-section li { margin: 3px 0; color: #fff; font-size: 12px; }
.expect-section em { color: #62eaff; font-style: normal; }
.no-data { color: #8795a8; }

@media (max-width: 980px) {
  html, body { overflow: auto; height: auto; }
  .split-scroll-layout { height: auto; overflow: visible; grid-template-columns: 1fr; }
  .filter-sidebar.independent-scroll, .content.independent-scroll { height: auto; overflow: visible; position: static; }
  .chart-grid { grid-template-columns: 1fr; }
  .modal-body { padding: 18px; }
  .modal-header-row { padding-right: 38px; }
}

/* v9: 검색 패널과 결과 영역을 독립 스크롤로 분리 */
html, body { height: 100%; overflow: hidden; }
.app-header { height: 68px; }
.app-layout.split-scroll-layout, .app-layout {
  height: calc(100vh - 68px);
  max-width: none;
  padding: 16px 18px;
  overflow: hidden;
}
.filter-sidebar.independent-scroll, .filter-sidebar {
  position: static;
  height: 100%;
  min-height: 0;
}
.search-panel {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.content {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}
.search-panel::-webkit-scrollbar, .content::-webkit-scrollbar { width: 10px; }
.search-panel::-webkit-scrollbar-thumb, .content::-webkit-scrollbar-thumb { background: #3c4657; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.search-panel::-webkit-scrollbar-track, .content::-webkit-scrollbar-track { background: transparent; }
.item-detail-link { color: #fff; text-decoration: none; }
.item-detail-link:hover { color: var(--yellow); text-decoration: underline; }
.tag.selected { color: #1d2605; background: linear-gradient(180deg, #d8ff00, #88bd22); border-color: rgba(216,255,0,.45); }

/* v9: 아이템 상세 분석 페이지 */
body.detail-body { overflow: auto; min-height: 100%; }
.detail-body .app-header { position: sticky; height: auto; }
.detail-header { align-items: center; }
.back-link { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #cdd7e4; font-weight: 900; }
.detail-tools { display: flex; align-items: center; gap: 12px; color: #cbd4df; font-size: 13px; font-weight: 800; }
.detail-tools input { width: 14px; min-height: 14px; accent-color: #f68600; }
.item-detail-page { max-width: 1320px; margin: 0 auto; padding: 20px 18px 60px; }
.detail-hero { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(31,38,52,.96), rgba(18,24,35,.96)); box-shadow: 0 18px 42px rgba(0,0,0,.24); }
.detail-icon-box { width: 86px; height: 86px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid #c6ccd3; background: linear-gradient(180deg, #fbfbfb, #dfe4e8); }
.detail-icon-box img { max-width: 68px; max-height: 68px; }
.detail-hero-main { min-width: 0; }
.hero-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-title-row h2 { margin: 0; font-size: 24px; color: #fff; }
.detail-meta-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.detail-meta-chips span { padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); color: #d5deea; font-size: 12px; font-weight: 800; }
.detail-note { max-width: 860px; margin-top: 10px; font-size: 12px; line-height: 1.55; }
.period-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.period-card { padding: 15px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,216,77,.11), rgba(255,255,255,.035)); }
.period-card span { display: block; color: #aeb8c8; font-size: 12px; font-weight: 900; }
.period-card b { display: block; margin-top: 4px; color: #ffe28a; font-size: 22px; }
.period-card small { display: block; margin-top: 5px; color: #aeb8c8; font-size: 11px; line-height: 1.45; }
.period-card.weak { opacity: .76; }
.analysis-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 14px; margin-bottom: 14px; }
.analysis-panel { padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: linear-gradient(180deg, rgba(28,35,48,.96), rgba(18,24,35,.96)); box-shadow: 0 12px 30px rgba(0,0,0,.20); }
.panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 14px; }
.panel-head h3 { margin: 0; color: #fff; font-size: 17px; }
.panel-head p { margin: 0; font-size: 12px; color: #93a1b2; text-align: right; }
.histogram { height: 260px; display: flex; align-items: flex-end; gap: 7px; padding: 10px 4px 28px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.hist-bar-wrap { position: relative; flex: 1; height: 100%; min-width: 24px; display: flex; align-items: flex-end; justify-content: center; }
.hist-bar { width: 100%; min-height: 4px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, #d8ff00, #88bd22); box-shadow: 0 -5px 18px rgba(216,255,0,.13); display: grid; place-items: start center; padding-top: 5px; color: #152000; font-size: 11px; font-weight: 900; }
.hist-bar-wrap em { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%) rotate(-18deg); transform-origin: top center; white-space: nowrap; color: #9caabd; font-size: 10px; font-style: normal; }
.daily-bars { display: grid; gap: 8px; }
.daily-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 96px; gap: 8px; align-items: center; font-size: 12px; color: #aeb8c8; }
.daily-row div { height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.daily-row i { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: linear-gradient(90deg, #62eaff, #d8ff00); }
.daily-row b { color: #fff; text-align: right; }
.option-table-wrap { overflow-x: auto; }
.option-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.option-table th, .option-table td { padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.07); text-align: left; }
.option-table th { color: #aeb8c8; font-size: 11px; }
.option-table td { color: #e8edf5; }
.option-table tr.selected td { background: rgba(216,255,0,.08); }
.option-table a { color: #d8ff00; font-weight: 900; }
.sample-panel { margin-top: 14px; }
.sample-list { display: grid; gap: 8px; }
.sample-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05); color: #aeb8c8; font-size: 12px; }
.sample-price { color: #ffe28a !important; font-weight: 900; }
.empty-mini { padding: 22px; color: #9aa7b7; text-align: center; border: 1px dashed rgba(255,255,255,.10); border-radius: 12px; }
@media (max-width: 1020px) { .period-grid, .analysis-layout { grid-template-columns: 1fr; } }
@media (max-width: 860px) { html, body { overflow: auto; } .app-header { height: auto; } .app-layout { height: auto; overflow: visible; } .filter-sidebar, .content, .search-panel { height: auto; overflow: visible; } }
.value-panel { margin: 0 0 14px; }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.value-grid div { padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.045); }
.value-grid span { display: block; color: #9aa7b7; font-size: 12px; font-weight: 900; }
.value-grid b { display: block; margin-top: 5px; color: #ffe28a; font-size: 18px; }
.expect-note { margin-top: 10px; font-size: 12px; line-height: 1.55; }
@media (max-width: 1020px) { .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .value-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────────────────────
   v12: v9 UI 복원 + 상세 좌측 툴팁/기댓값 계산기/피드백
   ───────────────────────────────────────────────────────────── */
.feedback-link {
  color: #d8ff1f;
  text-decoration: none;
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(216,255,31,.18);
  background: rgba(216,255,31,.06);
}
.v12-detail-layout {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.v12-left-column {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}
.v12-right-column { min-width: 0; display: grid; gap: 14px; }
.selected-tooltip-panel { padding: 13px; }
.compact-head { margin-bottom: 10px; }
.detail-static-tooltip {
  display: block !important;
  position: relative !important;
  width: 324px;
  max-width: 100%;
  margin: 0 auto;
  pointer-events: auto;
}
.feedback-panel-v12 { padding: 14px; }
.current-price-box {
  margin: 10px 0 12px;
  padding: 12px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.045);
}
.current-price-box span { display:block; color:#98a5b4; font-size:12px; font-weight:900; }
.current-price-box b { display:block; color:#ffe28a; font-size:23px; margin-top:4px; }
.feedback-buttons { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.feedback-buttons button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.feedback-buttons button[data-vote="cheap"] { background: linear-gradient(180deg, #1fa6ff, #2475d7); }
.feedback-buttons button[data-vote="fair"] { color:#162000; background: linear-gradient(180deg, #d8ff1f, #88bd22); }
.feedback-buttons button[data-vote="expensive"] { background: linear-gradient(180deg, #ff6a9c, #d33f78); }
.vote-counts { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 9px; }
.vote-counts span {
  display:flex; align-items:center; justify-content:center; gap:4px;
  min-height: 28px;
  border-radius: 8px;
  color:#b9c4d4;
  background: rgba(255,255,255,.045);
  font-size: 12px;
  font-weight: 900;
}
.vote-counts b { color:#fff; }
.slim-hero { margin: 0; }
.expectation-panel-v12 { padding: 16px; }
.expect-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  align-items: end;
}
.expect-form-grid label { display:grid; gap: 6px; position: relative; }
.expect-form-grid label span { color:#aab6c7; font-size:12px; font-weight:900; }
.expect-form-grid input,
.expect-form-grid select {
  width: 100%;
  box-sizing: border-box;
  height: 38px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
}
.expect-form-grid label em { position: absolute; right: 10px; bottom: 10px; color:#8f9caf; font-style:normal; font-size:12px; }
.expect-form-grid .primary-btn { height: 38px; border: 0; }
.expect-result-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.expect-result-grid div {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(216,255,31,.16);
  background: linear-gradient(180deg, rgba(216,255,31,.10), rgba(255,255,255,.035));
}
.expect-result-grid .wide { grid-column: 1 / -1; }
.expect-result-grid span { display:block; color:#aab6c7; font-size:12px; font-weight:900; }
.expect-result-grid b { display:block; color:#fff; margin-top:5px; font-size:18px; }
.expect-result-grid small { display:block; color:#95a1b3; margin-top:4px; }
.expect-error { color:#ff8a8a; }
.quality-chip {
  margin-top: 10px;
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  color: #d8ff1f;
  background: rgba(216,255,31,.08);
  border: 1px solid rgba(216,255,31,.18);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quality-chip.waste { color:#ffb86b; background:rgba(246,134,0,.10); border-color:rgba(246,134,0,.22); }
.single-column-page { display:block; }

/* 긴 옵션명(몬스터 방어율 무시 등)이 수치와 겹치지 않게 grid로 재정렬 */
.maple-tooltip .option-line {
  display: grid;
  grid-template-columns: minmax(62px, 1fr) auto minmax(0, auto);
  align-items: baseline;
  column-gap: 4px;
  min-height: 19px;
  white-space: normal;
}
.maple-tooltip .option-name {
  width: auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.maple-tooltip .option-total {
  min-width: 44px;
  text-align: right;
  white-space: nowrap;
}
.maple-tooltip .parts {
  white-space: nowrap;
  min-width: 0;
}
.maple-tooltip .line-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .v12-detail-layout { grid-template-columns: 1fr; }
  .v12-left-column { position: static; max-height: none; overflow: visible; }
  .expect-form-grid, .expect-result-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .expect-form-grid, .expect-result-grid { grid-template-columns: 1fr; }
}

/* v12: v9 UI 기반 아이템 상세 좌측 툴팁 + 평가/기댓값 */
.detail-top-grid { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 14px; margin: 16px 0 14px; align-items: start; }
.detail-main-stack { min-width: 0; }
.detail-period-grid { margin-top: 0; }
.selected-tooltip-panel { position: sticky; top: 92px; }
.panel-head.compact { margin-bottom: 10px; }
.detail-page-tooltip { width: 100%; max-width: none; position: static !important; pointer-events: auto; box-sizing: border-box; }
.detail-page-tooltip .option-line { white-space: normal; display: grid; grid-template-columns: minmax(58px, auto) minmax(40px, auto) 1fr; gap: 2px 4px; align-items: baseline; }
.detail-page-tooltip .option-name { width: auto; min-width: 58px; }
.detail-page-tooltip .parts { overflow-wrap: anywhere; }
.feedback-box, .effective-box { margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); }
.feedback-box strong, .effective-box strong { display: block; color: #fff; font-size: 14px; margin-bottom: 8px; }
.feedback-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.feedback-buttons button { min-height: 36px; border: 0; border-radius: 10px; cursor: pointer; color: #18210b; background: linear-gradient(180deg, #d8ff00, #88bd22); font-weight: 900; }
.feedback-buttons button:nth-child(2) { background: linear-gradient(180deg, #ffe28a, #f6a63a); color: #2f2100; }
.feedback-buttons button:nth-child(3) { background: linear-gradient(180deg, #ff8a8a, #d95757); color: #fff; }
.feedback-box p, .effective-box p { margin: 8px 0 0; color: #aeb8c8; font-size: 12px; line-height: 1.5; }
.effective-box b { display: inline-flex; margin: 2px 0 4px; color: #ffe28a; }
.warn-text { color: #ffb0b0 !important; }
.expectation-layout { align-items: stretch; }
.expect-form { display: grid; gap: 12px; }
.expect-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.expect-grid label { display: grid; gap: 5px; color: #aeb8c8; font-size: 12px; font-weight: 900; }
.expect-grid input, .expect-grid select { width: 100%; min-height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.075); color: #fff; padding: 8px 10px; box-sizing: border-box; }
.expect-grid select option { color: #111; }
.expect-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.expect-checks label { color: #cbd4df; font-size: 12px; font-weight: 800; }
.expect-checks input { accent-color: #f68600; margin-right: 6px; }
.expect-result-grid { display: grid; gap: 10px; }
.expect-result-grid div { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.06); }
.expect-result-grid div.total { background: rgba(216,255,0,.08); border-color: rgba(216,255,0,.20); }
.expect-result-grid span { display: block; color: #aeb8c8; font-size: 12px; font-weight: 900; }
.expect-result-grid b { display: block; color: #ffe28a; font-size: 19px; margin-top: 4px; }
.expect-result-grid small { display: block; color: #9daabd; margin-top: 5px; line-height: 1.45; }
@media (max-width: 1100px) { .detail-top-grid { grid-template-columns: 1fr; } .selected-tooltip-panel { position: static; } }
@media (max-width: 760px) { .expect-grid { grid-template-columns: 1fr; } .expect-checks { grid-template-columns: 1fr; } }

/* v12: v9 dark UI 유지 + 상세 왼쪽 툴팁/피드백/기댓값 계산기 */
.v12-detail-grid {
  max-width: 1660px;
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.detail-left-rail {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding-right: 4px;
}
.detail-main-stack { min-width: 0; display: grid; gap: 14px; }
.selected-tooltip-panel .maple-tooltip { margin: 10px auto 0; pointer-events: auto; }
.detail-page-tooltip { display: block !important; position: static !important; }
.panel-head.compact { margin-bottom: 8px; }
.feedback-panel { display: grid; gap: 10px; }
.feedback-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feedback-buttons button {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  min-height: 42px;
  color: #172000;
  background: linear-gradient(180deg, #d8ff00, #87bd24);
  font-weight: 900;
  cursor: pointer;
}
.feedback-buttons button[data-vote="expensive"] { color: #fff; background: linear-gradient(180deg, #ff6a72, #d54255); }
.feedback-buttons button[data-vote="fair"] { color: #111824; background: linear-gradient(180deg, #ffe28a, #f6bd35); }
.feedback-buttons button.voted { box-shadow: 0 0 0 3px rgba(246,134,0,.25); }
.feedback-counts { color: #cbd4df; font-size: 12px; }
.compact-hero { margin-bottom: 0; }
.expectation-panel { display: grid; gap: 12px; }
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}
.calc-grid label { display: grid; gap: 6px; }
.calc-grid label span { color: #aab5c3; font-size: 12px; font-weight: 900; }
.calc-actions { display: flex; justify-content: flex-end; }
.calc-actions .primary-btn { width: 180px; }
.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
}
.calc-result-grid div {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  min-height: 72px;
}
.calc-result-grid span { display: block; color: #98a5b4; font-size: 12px; font-weight: 900; }
.calc-result-grid b { display: block; color: #ffe28a; font-size: 16px; margin-top: 4px; }
.calc-result-grid small { display: block; color: #8f9caf; margin-top: 3px; font-size: 11px; }
.option-table small { color: #8fa0b5; }
.option-line {
  display: grid;
  grid-template-columns: minmax(58px, max-content) 54px minmax(0, 1fr);
  column-gap: 4px;
  white-space: normal;
  line-height: 1.45;
}
.option-name { width: auto; min-width: 58px; }
.option-line .parts { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .v12-detail-grid { grid-template-columns: 1fr; }
  .detail-left-rail { position: static; max-height: none; overflow: visible; }
  .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v14 expectation detail refinements */
.expectation-v14 { overflow: hidden; }
.expect-baseline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}
.expect-baseline-grid > div,
.expect-result-card .calc-result-grid > div {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(9,14,24,.44);
  border-radius: 12px;
  padding: 12px;
  min-height: 64px;
}
.expect-baseline-grid span,
.expect-result-card .calc-result-grid span {
  display: block;
  color: #9aa7b7;
  font-size: 12px;
  margin-bottom: 6px;
}
.expect-baseline-grid b,
.expect-result-card .calc-result-grid b {
  display: block;
  color: #eaf2ff;
  font-size: 16px;
  line-height: 1.25;
}
.expect-baseline-grid small,
.expect-result-card .calc-result-grid small {
  display: block;
  color: #7f8b9c;
  margin-top: 4px;
  line-height: 1.35;
}
.expect-calc-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(360px, .95fr);
  gap: 14px;
  align-items: stretch;
}
.expect-form-card,
.expect-result-card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(17,23,34,.56);
  border-radius: 14px;
  padding: 14px;
}
.expect-form-card h4,
.expect-result-card h4 {
  margin: 0 0 12px;
  color: #d8ff1f;
  font-size: 14px;
}
.compact-calc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact-calc-grid label span { color: #aeb8c7; }
.expect-result-card .calc-result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.expect-curve-card {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(6,10,18,.42);
  border-radius: 12px;
  padding: 12px;
}
.expect-curve-card canvas {
  width: 100%;
  display: block;
  border-radius: 10px;
  background: rgba(0,0,0,.16);
}
.section-head.mini { margin-bottom: 6px; }
.section-head.mini h3 { font-size: 13px; }
.section-head.mini p { font-size: 11px; }
@media (max-width: 1180px) {
  .expect-baseline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expect-calc-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .expect-baseline-grid { grid-template-columns: 1fr; }
  .compact-calc-grid { grid-template-columns: 1fr; }
  .expect-result-card .calc-result-grid { grid-template-columns: 1fr; }
}

/* v15: card/detail cleanup + original tooltip-like option alignment */
.sub-line span:empty { display: none; }
.maple-tooltip .option-line,
.detail-page-tooltip .option-line,
.option-line {
  display: grid !important;
  grid-template-columns: max-content max-content minmax(0, 1fr) !important;
  column-gap: 4px !important;
  align-items: baseline !important;
  white-space: normal !important;
  line-height: 1.44 !important;
}
.maple-tooltip .option-name,
.detail-page-tooltip .option-name,
.option-name {
  width: auto !important;
  min-width: 0 !important;
  max-width: 128px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  overflow-wrap: normal !important;
  color: #d6dde7;
}
.maple-tooltip .option-total,
.detail-page-tooltip .option-total,
.option-total {
  min-width: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
  color: #fff;
}
.maple-tooltip .parts,
.detail-page-tooltip .parts,
.option-line .parts {
  margin-left: 1px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
.flame-panel { margin-top: 0; }
.flame-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.flame-summary-grid > div {
  padding: 12px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  min-width: 0;
}
.flame-summary-grid span { display: block; color: #98a5b4; font-size: 12px; font-weight: 900; }
.flame-summary-grid b { display: block; color: #ffe28a; font-size: 18px; margin-top: 4px; white-space: normal; overflow-wrap: anywhere; }
.flame-summary-grid small { display: block; color: #8f9caf; margin-top: 4px; line-height: 1.45; }
.flame-chart-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(6,10,18,.34);
  padding: 12px;
  margin-bottom: 12px;
}
.flame-chart-card canvas {
  width: 100%;
  display: block;
  border-radius: 10px;
  background: rgba(0,0,0,.16);
}
.flame-table-wrap { margin-top: 6px; }
@media (max-width: 980px) { .flame-summary-grid { grid-template-columns: 1fr; } }

/* v15 final: tooltip option value stays next to label, not far-right aligned */
.maple-tooltip .option-line,
.detail-page-tooltip .option-line,
.option-line {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 0 4px !important;
  white-space: normal !important;
  line-height: 1.44 !important;
}
.maple-tooltip .option-name,
.detail-page-tooltip .option-name,
.option-name {
  flex: 0 1 auto !important;
  min-width: 58px !important;
  max-width: 140px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
.maple-tooltip .option-total,
.detail-page-tooltip .option-total,
.option-total {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  text-align: left !important;
}
.maple-tooltip .parts,
.detail-page-tooltip .parts,
.option-line .parts {
  flex: 0 1 auto !important;
  min-width: 0 !important;
}
.flame-analysis-panel .flame-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.35fr);
  gap: 14px;
  align-items: start;
}
.flame-analysis-panel .flame-note {
  margin: 8px 0 0;
  color: #9aa7b7;
  font-size: 12px;
  line-height: 1.45;
}
.flame-table td:first-child b { display:block; color:#d8ff1f; }
.flame-table td:first-child small,
.flame-table td small { display:block; color:#91a0b4; margin-top:3px; }
@media (max-width: 980px) { .flame-analysis-panel .flame-layout { grid-template-columns: 1fr; } }

/* v23: 주문서/작 상태 표시 */
.scroll-work-chip{margin-top:5px;padding:3px 6px;border-radius:6px;background:rgba(255,177,74,.08);border:1px solid rgba(255,177,74,.20);color:#eec27d;font-size:11px;font-weight:700;line-height:1.35;display:block;clear:both}
.scroll-work-chip.below-scroll-work{margin-top:3px}
.value-grid div small{word-break:keep-all}
.sample-row span{word-break:keep-all}

.curve-chart-card { background: rgba(3,6,12,.22); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 8px; }
.curve-chart-card canvas { width: 100%; display: block; border-radius: 12px; background: rgba(3,6,12,.18); }

.detail-page-tooltip .potential-line { grid-template-columns: 8px minmax(0, 1fr) auto; align-items: start; }
.detail-page-tooltip .line-text { white-space: normal; overflow-wrap: anywhere; }

.market-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 12px; }
.market-mode-tab { position: relative; display: flex; align-items: center; justify-content: center; min-height: 34px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.055); border-radius: 10px; color: #aab7c8; font-size: 13px; font-weight: 900; cursor: pointer; }
.market-mode-tab input { display:none; }
.market-mode-tab.active { color: #10151d; background: linear-gradient(180deg,#d8ff1f,#a7d80d); border-color: rgba(216,255,31,.75); box-shadow: 0 6px 18px rgba(216,255,31,.08); }


/* v41: 노작 기준 탭 + 추옵 표시 보정 */
.header-tab {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12); color: #d9e5f3; text-decoration: none;
  font-size: 12px; font-weight: 900; background: rgba(255,255,255,.05);
}
.header-tab.active { color: #111821; background: #d8ff1f; border-color: #d8ff1f; }
.back-link.subtle { margin-left: 8px; opacity: .85; }
.clean-page { height: calc(100vh - 96px); overflow: auto; padding: 16px 24px 40px; }
.clean-search { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 14px; }
.clean-search label { display: grid; gap: 5px; color: #aebbd0; font-size: 12px; font-weight: 800; }
.clean-search input, .clean-search select { min-height: 36px; min-width: 210px; border-radius: 10px; border: 1px solid rgba(180,195,215,.16); background: rgba(10,15,24,.82); color: #edf5ff; padding: 0 12px; }
.clean-table-panel { max-width: 1200px; margin: 0 auto; }
.clean-table .clean-item-cell { display: flex; align-items: center; gap: 8px; min-width: 240px; }
.clean-table .clean-item-cell img { width: 34px; height: 34px; object-fit: contain; background: linear-gradient(#fff,#dfe5eb); border-radius: 7px; padding: 4px; }
.clean-table .clean-item-cell small { color: #8fa0b5; margin-left: auto; }
.flame-help-note { color: #98a5b4; font-size: 12px; }


/* v46 landing / legal pages */
.landing-body, .legal-body { min-height: 100vh; height: auto; overflow: auto; background:
  radial-gradient(circle at 10% 0%, rgba(216,255,31,.16), transparent 26%),
  radial-gradient(circle at 90% 18%, rgba(98,234,255,.13), transparent 28%),
  linear-gradient(180deg, #101724 0%, #171f2e 42%, #0c111a 100%); color: #e8eef7; }
.landing-nav { max-width: 1180px; margin: 0 auto; padding: 22px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.landing-logo { display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font-weight:900; letter-spacing:.2px; }
.landing-logo span { width:36px; height:36px; display:grid; place-items:center; border-radius:12px; background:linear-gradient(180deg,#d8ff1f,#a5ca10); color:#121a24; box-shadow:0 10px 26px rgba(216,255,31,.18); }
.landing-nav nav { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:flex-end; }
.landing-nav nav a { color:#aebbd0; text-decoration:none; font-size:13px; font-weight:800; padding:8px 10px; border-radius:999px; }
.landing-nav nav a:hover { color:#fff; background:rgba(255,255,255,.08); }
.landing-shell { max-width:1180px; margin:0 auto; padding:20px 24px 44px; }
.landing-hero { display:grid; grid-template-columns:minmax(0,1.05fr) 460px; gap:28px; align-items:center; min-height:560px; }
.hero-copy h1 { font-size:58px; line-height:1.05; margin:16px 0 18px; letter-spacing:-2.5px; }
.hero-copy h1 em { font-style:normal; color:#d8ff1f; text-shadow:0 0 28px rgba(216,255,31,.24); }
.hero-copy p { max-width:660px; color:#b5c0d2; font-size:16px; line-height:1.75; margin:0 0 22px; }
.service-pill { display:inline-flex; border:1px solid rgba(216,255,31,.28); color:#d8ff1f; border-radius:999px; padding:8px 12px; font-size:12px; font-weight:900; background:rgba(216,255,31,.06); }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin:24px 0 20px; }
.primary-btn.big, .ghost-btn.big { min-height:46px; padding:0 22px; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.trust-row { display:flex; flex-wrap:wrap; gap:8px; color:#9fb0c8; font-size:12px; }
.trust-row span { border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.045); padding:7px 10px; border-radius:999px; }
.landing-search-card { background:linear-gradient(180deg, rgba(31,42,60,.96), rgba(18,25,37,.96)); border:1px solid rgba(255,255,255,.12); border-radius:24px; padding:22px; box-shadow:0 24px 80px rgba(0,0,0,.28); }
.search-card-head { margin-bottom:16px; }
.search-card-head strong { display:block; font-size:20px; color:#fff; }
.search-card-head span { display:block; color:#9fb0c8; font-size:12px; line-height:1.5; margin-top:4px; }
.landing-search-card .field-block span, .landing-search-card label span { color:#c8d2e2; }
.search-input-wrap.large input { min-height:44px; font-size:15px; }
.landing-option-grid { display:grid; grid-template-columns:1fr; gap:8px; margin:10px 0 14px; }
.landing-option-grid label { display:grid; grid-template-columns:56px minmax(0,1fr) 72px; align-items:center; gap:6px; }
.landing-option-grid select, .landing-option-grid input, .landing-search-card select, .landing-search-card input { background:#eef2f6; color:#1e2b39; border:1px solid #c9d3dc; border-radius:8px; min-height:36px; padding:0 10px; }
.primary-btn.full { width:100%; min-height:44px; }
.feature-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:18px; }
.feature-grid article, .notice-panel { border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.055); border-radius:18px; padding:18px; box-shadow:0 12px 38px rgba(0,0,0,.14); }
.feature-grid b { display:block; color:#fff; margin-bottom:8px; }
.feature-grid p, .notice-panel p { margin:0; color:#aebbd0; line-height:1.65; font-size:13px; }
.notice-panel { margin-top:12px; }
.notice-panel h2 { margin:0 0 8px; font-size:18px; color:#d8ff1f; }
.landing-footer { max-width:1180px; margin:0 auto; padding:22px 24px 34px; display:flex; flex-wrap:wrap; gap:14px; align-items:center; color:#8797ad; font-size:12px; }
.landing-footer a { color:#c5d1e1; text-decoration:none; }
.legal-page { max-width:920px; margin:16px auto 60px; padding:34px; background:rgba(255,255,255,.96); color:#1f2937; border-radius:22px; box-shadow:0 24px 80px rgba(0,0,0,.22); }
.legal-page h1 { margin:0 0 8px; font-size:32px; color:#111827; }
.legal-date { color:#667085; margin:0 0 22px; }
.legal-page section { border-top:1px solid #e5e7eb; padding:20px 0; }
.legal-page h2 { font-size:18px; margin:0 0 10px; color:#111827; }
.legal-page p, .legal-page li { line-height:1.8; color:#374151; }
.legal-page ul { margin:0; padding-left:20px; }
@media (max-width: 980px) { .landing-hero { grid-template-columns:1fr; min-height:auto; } .hero-copy h1 { font-size:42px; } .feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .landing-nav { flex-direction:column; align-items:flex-start; } .hero-copy h1 { font-size:34px; } .feature-grid { grid-template-columns:1fr; } .landing-option-grid label { grid-template-columns:1fr; } .legal-page { margin:8px; padding:22px; } }


/* v47 production landing refresh */
.landing-v47 { background:
  radial-gradient(circle at 14% 0%, rgba(216,255,31,.12), transparent 28%),
  radial-gradient(circle at 86% 12%, rgba(78,167,255,.12), transparent 28%),
  linear-gradient(180deg, #07111d 0%, #111a28 52%, #090f17 100%); }
.ip-topbar { max-width: 1240px; margin:0 auto; padding:18px 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid rgba(255,255,255,.06); }
.ip-brand { display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none; }
.ip-brand-mark { width:40px; height:40px; border-radius:13px; display:grid; place-items:center; font-weight:1000; color:#111827; background:linear-gradient(180deg,#d8ff1f,#9dd60e); box-shadow:0 12px 30px rgba(216,255,31,.18); }
.ip-brand b { display:block; font-size:18px; letter-spacing:.1px; }
.ip-brand em { display:block; font-style:normal; font-size:12px; color:#9fb0c8; margin-top:2px; }
.ip-nav { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.ip-nav a { color:#afbdd0; text-decoration:none; padding:8px 10px; border-radius:999px; font-weight:800; font-size:13px; }
.ip-nav a:hover, .ip-nav .contact-link { color:#fff; background:rgba(255,255,255,.07); }
.ip-landing-shell { max-width:1240px; margin:0 auto; padding:34px 28px 48px; }
.ip-hero-compact { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:26px; align-items:end; margin-bottom:26px; }
.ip-kicker { margin:0 0 10px; color:#d8ff1f; font-size:12px; font-weight:1000; text-transform:uppercase; letter-spacing:.12em; }
.ip-hero-compact h1 { margin:0; color:#fff; font-size:48px; line-height:1.08; letter-spacing:-2px; }
.ip-hero-compact h1 strong { color:#d8ff1f; text-shadow:0 0 26px rgba(216,255,31,.2); }
.ip-hero-text { max-width:720px; color:#b6c3d4; line-height:1.75; margin:18px 0 0; font-size:15px; }
.ip-hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.ip-hero-badges { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.ip-hero-badges span { border:1px solid rgba(216,255,31,.18); color:#d5e3f7; background:rgba(255,255,255,.05); border-radius:999px; padding:8px 11px; font-size:12px; font-weight:800; }
.ip-main-grid { display:grid; grid-template-columns:360px minmax(0,1fr); gap:18px; align-items:start; }
.ip-search-panel, .ip-recommend-panel, .ip-info-grid article, .ip-wide-card { background:linear-gradient(180deg, rgba(22,34,50,.92), rgba(12,19,31,.94)); border:1px solid rgba(255,255,255,.10); border-radius:22px; box-shadow:0 24px 70px rgba(0,0,0,.26); }
.ip-search-panel { padding:18px; position:sticky; top:14px; }
.ip-panel-head span { color:#d8ff1f; font-weight:1000; font-size:12px; }
.ip-panel-head b { display:block; color:#fff; font-size:21px; margin-top:5px; letter-spacing:-.6px; }
.ip-panel-head p { margin:7px 0 14px; color:#9fb0c8; font-size:12px; line-height:1.55; }
.ip-mode-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:4px; background:rgba(255,255,255,.05); border-radius:14px; margin-bottom:14px; }
.ip-mode-tabs label { min-height:34px; display:grid; place-items:center; border-radius:10px; color:#9fb0c8; font-size:13px; font-weight:900; cursor:pointer; }
.ip-mode-tabs label.active, .ip-mode-tabs label:has(input:checked) { background:linear-gradient(180deg,#d8ff1f,#a8d90e); color:#0d1520; }
.ip-mode-tabs input { display:none; }
.ip-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
.ip-field.full { margin-bottom:12px; }
.ip-field span { font-size:12px; color:#c8d2e2; font-weight:800; }
.ip-field input, .ip-field select, .ip-line-row input, .ip-line-row select { width:100%; box-sizing:border-box; background:#0b1522; color:#e8eef7; border:1px solid #304256; border-radius:10px; min-height:38px; padding:0 11px; outline:none; }
.ip-field input:focus, .ip-field select:focus, .ip-line-row input:focus, .ip-line-row select:focus { border-color:#d8ff1f; box-shadow:0 0 0 3px rgba(216,255,31,.08); }
.ip-search-input { display:grid; grid-template-columns:28px 1fr; align-items:center; background:#0b1522; border:1px solid #304256; border-radius:12px; }
.ip-search-input i { color:#d8ff1f; text-align:center; font-style:normal; }
.ip-search-input input { border:0; background:transparent; }
.ip-two { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-bottom:12px; }
.ip-six-lines { margin:16px 0 14px; padding:13px; border:1px solid rgba(216,255,31,.2); background:rgba(216,255,31,.045); border-radius:16px; }
.ip-six-head { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#fff; font-size:13px; }
.ip-six-head span { display:flex; gap:8px; color:#d6e0ef; font-size:12px; }
.ip-line-title { margin:12px 0 7px; font-size:12px; font-weight:1000; }
.ip-line-title.pot { color:#d8ff1f; } .ip-line-title.add { color:#ba7cff; }
.ip-line-row { display:grid; grid-template-columns:1fr 70px; gap:7px; margin-bottom:7px; }
.ip-form-actions { display:grid; grid-template-columns:1fr 120px; gap:8px; margin-top:10px; }
.ip-form-actions .primary-btn, .ip-form-actions .ghost-btn { min-height:42px; display:flex; align-items:center; justify-content:center; text-decoration:none; }
.ip-quick { display:flex; flex-wrap:wrap; gap:7px; align-items:center; margin-top:12px; }
.ip-quick span { color:#8ea0b7; font-size:12px; font-weight:900; margin-right:2px; }
.ip-quick a { color:#c9d5e5; text-decoration:none; font-size:12px; padding:6px 9px; border-radius:999px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); }
.ip-content-stack { display:flex; flex-direction:column; gap:14px; }
.ip-recommend-panel { padding:18px; min-height:280px; }
.ip-section-head { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:14px; }
.ip-section-head span { color:#fff; font-size:20px; font-weight:1000; letter-spacing:-.5px; }
.ip-section-head p { color:#97a8bd; font-size:12px; line-height:1.55; margin:0; max-width:520px; }
.ip-reco-carousel { position:relative; min-height:215px; }
.ip-reco-card { display:none; grid-template-columns:130px minmax(0,1fr); gap:18px; align-items:center; min-height:200px; padding:18px; border-radius:18px; text-decoration:none; color:#fff; background:linear-gradient(135deg, rgba(216,255,31,.10), rgba(16,27,42,.94) 42%, rgba(98,234,255,.06)); border:1px solid rgba(216,255,31,.22); }
.ip-reco-card.active { display:grid; }
.ip-reco-icon { width:112px; height:112px; border-radius:20px; display:grid; place-items:center; background:linear-gradient(180deg,#fff,#dce4eb); border:1px solid #cbd4dd; }
.ip-reco-icon img { max-width:88px; max-height:88px; image-rendering:auto; }
.ip-reco-body small { display:inline-flex; padding:5px 8px; border-radius:999px; background:rgba(216,255,31,.12); color:#d8ff1f; font-weight:900; font-size:11px; }
.ip-reco-body h3 { margin:10px 0 5px; font-size:25px; letter-spacing:-.7px; }
.ip-reco-body p { color:#aebbd0; margin:0 0 10px; font-size:13px; }
.ip-reco-body b { display:block; color:#ffd777; font-size:20px; margin-top:10px; }
.ip-reco-badges { display:flex; flex-wrap:wrap; gap:6px; }
.ip-reco-badges span { color:#dbe7f7; font-size:12px; font-weight:900; padding:5px 8px; border-radius:999px; background:rgba(255,255,255,.07); }
.ip-reco-empty { display:grid; place-items:center; min-height:210px; border-radius:18px; border:1px dashed rgba(255,255,255,.18); color:#aebbd0; text-align:center; }
.ip-reco-empty b { color:#fff; display:block; margin-bottom:6px; }
.ip-reco-dots { display:flex; justify-content:center; gap:7px; margin-top:12px; }
.ip-reco-dots button { width:26px; height:7px; border:0; border-radius:999px; background:rgba(255,255,255,.16); color:transparent; cursor:pointer; }
.ip-reco-dots button.active { background:#d8ff1f; }
.ip-info-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.ip-info-grid article { padding:18px; }
.ip-info-grid span { color:#d8ff1f; font-size:12px; font-weight:1000; }
.ip-info-grid h3, .ip-wide-card h3 { color:#fff; margin:8px 0; font-size:18px; }
.ip-info-grid p, .ip-wide-card p, .ip-wide-card li { color:#aebbd0; line-height:1.65; font-size:13px; }
.ip-notice-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:12px; }
.ip-wide-card { padding:18px; }
.ip-wide-card ul { margin:0; padding-left:18px; }
.ip-footer { max-width:1240px; margin:0 auto; padding:24px 28px 38px; display:grid; grid-template-columns:1fr 1.5fr auto; gap:20px; align-items:start; color:#8797ad; border-top:1px solid rgba(255,255,255,.07); }
.ip-footer b { color:#fff; font-size:18px; } .ip-footer p { margin:6px 0 0; font-size:12px; }
.ip-footer nav { display:flex; flex-wrap:wrap; gap:8px 14px; } .ip-footer a { color:#c5d1e1; text-decoration:none; font-size:12px; }
.ip-contact { display:flex; flex-direction:column; gap:6px; } .ip-contact span { font-size:12px; color:#8797ad; }
.ip-contact a { padding:9px 12px; border:1px solid rgba(255,255,255,.10); border-radius:10px; background:rgba(255,255,255,.04); }
@media (max-width: 980px) { .ip-hero-compact, .ip-main-grid, .ip-notice-grid, .ip-footer { grid-template-columns:1fr; } .ip-hero-badges { justify-content:flex-start; } .ip-search-panel { position:static; } .ip-info-grid { grid-template-columns:1fr; } }
@media (max-width: 620px) { .ip-topbar { flex-direction:column; align-items:flex-start; } .ip-hero-compact h1 { font-size:36px; } .ip-reco-card { grid-template-columns:1fr; } .ip-two, .ip-form-actions { grid-template-columns:1fr; } }

/* ─────────────────────────────────────────────────────────────────────────────
   v47 production landing refresh
   ───────────────────────────────────────────────────────────────────────────── */
.v47-landing {
  min-height: 100vh;
  height: auto;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 0%, rgba(216,255,31,.10), transparent 26%),
    radial-gradient(circle at 92% 16%, rgba(98,234,255,.10), transparent 30%),
    linear-gradient(180deg, #0b121d 0%, #111a28 42%, #090e16 100%);
  color: #edf5ff;
}
.landing-topbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.landing-logo em { color: #8fa0b5; font-style: normal; font-size: 12px; font-weight: 700; margin-left: 2px; }
.landing-navlinks { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.landing-navlinks a { color: #aebbd0; text-decoration: none; font-weight: 800; font-size: 13px; padding: 9px 11px; border-radius: 999px; }
.landing-navlinks a:hover { color: #fff; background: rgba(255,255,255,.07); }
.landing-navlinks .contact-link { color: #d8ff1f; border: 1px solid rgba(216,255,31,.18); background: rgba(216,255,31,.06); }
.v47-shell { max-width: 1280px; padding: 26px 28px 48px; }
.landing-intro-strip {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin: 18px 0 24px;
}
.landing-intro-strip .eyebrow { color: #d8ff1f; font-size: 12px; font-weight: 900; letter-spacing: .4px; margin: 0 0 10px; }
.landing-intro-strip h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -2.6px; color: #fff; }
.landing-intro-strip h1 strong { color: #d8ff1f; text-shadow: 0 0 28px rgba(216,255,31,.22); }
.landing-intro-strip .intro-copy { max-width: 760px; margin: 16px 0 0; color: #aebbd0; line-height: 1.75; font-size: 15px; }
.intro-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; min-width: 280px; }
.landing-main-grid { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 18px; align-items: start; }
.landing-search-sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
}
.landing-filter-form {
  background: linear-gradient(180deg, rgba(31,42,60,.94), rgba(14,20,31,.98));
  border: 1px solid rgba(180,195,215,.16);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
}
.compact-head { margin-bottom: 12px; }
.compact-head strong { font-size: 20px; color: #fff; }
.landing-filter-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: rgba(255,255,255,.045); border: 1px solid rgba(180,195,215,.10); border-radius: 14px; margin-bottom: 14px; }
.landing-filter-tabs label { cursor: pointer; min-height: 36px; display: grid; place-items: center; border-radius: 10px; color: #aebbd0; font-size: 13px; font-weight: 900; }
.landing-filter-tabs label.active, .landing-filter-tabs label:has(input:checked) { color: #121a24; background: linear-gradient(180deg, #d8ff1f, #aee70e); box-shadow: 0 10px 24px rgba(216,255,31,.18); }
.landing-filter-tabs input { display: none; }
.landing-filter-form .field-block { margin-bottom: 10px; }
.landing-filter-form .field-block > span, .landing-filter-form label > span { color: #c4cfde; font-size: 12px; font-weight: 900; }
.landing-filter-form select, .landing-filter-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  background: rgba(8,14,23,.88) !important;
  color: #edf5ff !important;
  border: 1px solid rgba(152,170,196,.26) !important;
  border-radius: 11px !important;
  min-height: 38px;
  padding: 0 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.landing-filter-form input::placeholder { color: #66778d; }
.landing-filter-form .search-input-wrap { background: rgba(8,14,23,.88); border-color: rgba(152,170,196,.26); }
.landing-filter-form .search-input-wrap input { border: 0 !important; background: transparent !important; padding-left: 0; }
.landing-check { display: flex !important; align-items: center; gap: 8px; margin: 12px 0; color: #d8ff1f !important; font-size: 12px; font-weight: 900; }
.landing-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: #d8ff1f; }
.landing-six-lines { border: 1px solid rgba(216,255,31,.20); background: linear-gradient(180deg, rgba(216,255,31,.06), rgba(255,255,255,.02)); border-radius: 16px; padding: 12px; margin: 12px 0 14px; }
.six-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.six-head strong { color: #fff; font-size: 14px; }
.six-head span { display: flex; gap: 8px; align-items: center; }
.six-head label { color: #c8d2e2; font-size: 12px; font-weight: 800; }
.six-head input { accent-color: #d8ff1f; }
.six-sub { font-size: 12px; font-weight: 900; margin: 10px 0 6px; }
.six-sub.pot { color: #d8ff1f; }
.six-sub.add { color: #b588ff; }
.landing-form-actions { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.landing-content-stack { display: grid; gap: 14px; min-width: 0; }
.landing-info-card, .recommend-panel, .feature-strip article, .notice-compact-grid article {
  background: linear-gradient(180deg, rgba(31,42,60,.76), rgba(14,20,31,.88));
  border: 1px solid rgba(180,195,215,.14);
  border-radius: 22px;
  box-shadow: 0 20px 56px rgba(0,0,0,.20);
}
.landing-info-card { padding: 24px; }
.mini-label { display: inline-flex; color: #d8ff1f; font-size: 12px; font-weight: 900; margin-bottom: 8px; }
.landing-info-card h2, .recommend-panel h2 { margin: 0 0 8px; color: #fff; letter-spacing: -.5px; }
.landing-info-card p { margin: 0; color: #aebbd0; line-height: 1.7; }
.recommend-panel { padding: 20px; overflow: hidden; }
.section-title-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.section-title-row h2 { font-size: 22px; }
.section-title-row a { color: #d8ff1f; text-decoration: none; font-size: 13px; font-weight: 900; }
.recommend-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.recommend-card { min-width: 0; }
.recommend-card a { display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px; min-height: 255px; padding: 16px; text-decoration: none; color: inherit; border: 1px solid rgba(255,255,255,.10); border-radius: 18px; background: radial-gradient(circle at 70% 0%, rgba(216,255,31,.10), transparent 40%), rgba(4,9,17,.48); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.recommend-card a:hover { transform: translateY(-3px); border-color: rgba(216,255,31,.42); background: radial-gradient(circle at 70% 0%, rgba(216,255,31,.16), transparent 42%), rgba(4,9,17,.60); }
.rec-icon { width: 72px; height: 72px; border-radius: 16px; background: linear-gradient(#fff,#dfe5eb); display: grid; place-items: center; border: 1px solid #c6ced8; }
.rec-icon img { max-width: 56px; max-height: 56px; }
.rec-body b { display: block; color: #fff; font-size: 15px; line-height: 1.35; min-height: 40px; }
.rec-body span { display: block; color: #9fb0c8; font-size: 12px; margin-top: 5px; }
.rec-body em { display: inline-flex; margin-top: 8px; padding: 4px 7px; border-radius: 999px; background: rgba(216,255,31,.10); color: #d8ff1f; font-style: normal; font-size: 11px; font-weight: 900; }
.rec-price { color: #fff; font-size: 20px; font-weight: 900; letter-spacing: -.5px; }
.rec-price small { display: block; color: #7f8fa5; font-size: 11px; margin-top: 2px; }
.recommend-card p { color: #97a7bc; font-size: 12px; line-height: 1.55; margin: 0; }
.recommend-empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed rgba(255,255,255,.16); border-radius: 18px; color: #aebbd0; }
.rec-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.rec-dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.18); }
.rec-dots span.on { background: #d8ff1f; box-shadow: 0 0 14px rgba(216,255,31,.45); }
.compact-feature-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0; }
.compact-feature-strip article { padding: 17px; }
.compact-feature-strip b { display: block; color: #fff; margin-bottom: 8px; }
.compact-feature-strip p { margin: 0; color: #aebbd0; font-size: 13px; line-height: 1.65; }
.notice-compact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 12px; }
.notice-compact-grid article { padding: 20px; }
.notice-compact-grid h3 { margin: 0 0 10px; color: #d8ff1f; font-size: 16px; }
.notice-compact-grid p, .notice-compact-grid li { color: #aebbd0; line-height: 1.65; font-size: 13px; }
.notice-compact-grid p, .notice-compact-grid ul { margin: 0; }
.notice-compact-grid ul { padding-left: 18px; }
.pro-footer { max-width: 1280px; border-top: 1px solid rgba(255,255,255,.08); justify-content: space-between; }
.pro-footer > div { display: grid; gap: 4px; }
.pro-footer b { color: #fff; font-size: 18px; }
.pro-footer span { color: #8fa0b5; }
.pro-footer nav { display: flex; flex-wrap: wrap; gap: 12px; }
.legal-contact { color: #d8ff1f !important; }
@media (max-width: 1080px) {
  .landing-main-grid { grid-template-columns: 1fr; }
  .landing-search-sidebar { position: static; }
  .landing-intro-strip { display: grid; }
  .intro-links { justify-content: flex-start; }
}
@media (max-width: 800px) {
  .recommend-grid, .compact-feature-strip, .notice-compact-grid { grid-template-columns: 1fr; }
  .landing-topbar { align-items: flex-start; flex-direction: column; }
  .landing-navlinks { justify-content: flex-start; }
  .landing-form-actions { grid-template-columns: 1fr; }
}

/* v47: recommendation area displays three shopping-style cards and rotates if cache has more */
.ip-reco-carousel { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; min-height: 0; }
.ip-reco-card { display: none; grid-template-columns: 72px minmax(0,1fr); gap: 13px; align-items: center; min-height: 150px; padding: 14px; }
.ip-reco-card.active { display: grid; }
.ip-reco-icon { width: 66px; height: 66px; border-radius: 15px; }
.ip-reco-icon img { max-width: 52px; max-height: 52px; }
.ip-reco-body h3 { margin: 7px 0 4px; font-size: 16px; line-height: 1.32; }
.ip-reco-body p { font-size: 12px; margin-bottom: 7px; }
.ip-reco-body b { font-size: 15px; margin-top: 7px; }
.ip-reco-badges span { font-size: 11px; padding: 4px 7px; }
@media (max-width: 760px) { .ip-reco-carousel { grid-template-columns: 1fr; } }


/* v48 streamlined landing */
html:has(body.landing-v48) { height: auto !important; overflow-y: auto !important; overflow-x: hidden !important; }
body.landing-v48 { height: auto !important; min-height: 100vh !important; overflow: visible !important; background:
  radial-gradient(circle at 4% 0%, rgba(216,255,31,.13), transparent 26%),
  radial-gradient(circle at 96% 8%, rgba(98,234,255,.10), transparent 28%),
  linear-gradient(180deg, #07111d 0%, #0d1725 46%, #070d15 100%) !important;
}
.v48-topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(7,14,23,.72); }
.v48-nav a:first-child { color:#d8ff1f; }
.v48-shell { padding-top: 24px; }
.v48-intro { display:flex; align-items:end; justify-content:space-between; gap:24px; margin: 14px 0 18px; }
.v48-intro h1 { margin:0; color:#fff; font-size: clamp(36px, 5vw, 58px); line-height:1.08; letter-spacing:-2px; }
.v48-intro h1 strong { color:#d8ff1f; text-shadow:0 0 26px rgba(216,255,31,.22); }
.v48-intro-meta { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; min-width:290px; }
.v48-intro-meta span, .v48-intro-meta a { min-height:34px; display:inline-flex; align-items:center; padding:0 12px; border-radius:999px; border:1px solid rgba(255,255,255,.10); color:#cbd7e8; text-decoration:none; font-size:12px; font-weight:900; background:rgba(255,255,255,.04); }
.v48-intro-meta a:first-of-type { color:#111827; background:linear-gradient(180deg,#d8ff1f,#aee40e); border-color:transparent; }
.v48-market-layout { display:grid; grid-template-columns:360px minmax(0,1fr); gap:18px; align-items:start; }
.v48-search-panel { position: sticky; top: 82px; max-height: calc(100vh - 98px); overflow-y: auto; scrollbar-gutter: stable; }
.v48-search-panel::-webkit-scrollbar { width: 8px; }
.v48-search-panel::-webkit-scrollbar-thumb { background: rgba(216,255,31,.25); border-radius: 99px; }
.v48-search-panel::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 99px; }
.v48-right-stack { display:grid; gap:14px; min-width:0; }
.v48-today-panel { background:linear-gradient(180deg, rgba(22,34,50,.92), rgba(12,19,31,.94)); border:1px solid rgba(255,255,255,.10); border-radius:22px; box-shadow:0 24px 70px rgba(0,0,0,.26); padding:18px; }
.v48-section-head { display:flex; justify-content:space-between; align-items:end; gap:12px; margin-bottom:14px; }
.v48-section-head span { display:block; color:#fff; font-size:22px; font-weight:1000; letter-spacing:-.6px; }
.v48-section-head p { margin:4px 0 0; color:#94a7bd; font-size:12px; }
.v48-section-head a { color:#d8ff1f; text-decoration:none; font-size:13px; font-weight:900; }
.v48-market-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.v48-market-card { position:relative; min-width:0; border:1px solid rgba(216,255,31,.18); border-radius:18px; padding:14px; background:radial-gradient(circle at 80% 0%, rgba(216,255,31,.09), transparent 42%), rgba(5,11,19,.52); cursor:pointer; transition:.16s ease; }
.v48-market-card:hover { transform: translateY(-3px); border-color:rgba(216,255,31,.42); background:radial-gradient(circle at 80% 0%, rgba(216,255,31,.15), transparent 42%), rgba(5,11,19,.66); }
.v48-card-top { display:grid; grid-template-columns:64px minmax(0,1fr); gap:12px; align-items:center; }
.v48-icon { width:62px; height:62px; border-radius:14px; display:grid; place-items:center; background:linear-gradient(#fff,#dfe5eb); border:1px solid #c6ced8; }
.v48-icon img { max-width:50px; max-height:50px; }
.v48-market-card h3 { margin:0; color:#fff; font-size:15px; line-height:1.35; }
.v48-market-card p { margin:4px 0 0; color:#9fb0c8; font-size:12px; line-height:1.35; }
.v48-card-badges { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0 10px; min-height:24px; }
.v48-card-badges span { color:#dbe7f7; font-size:11px; font-weight:900; padding:4px 7px; border-radius:999px; background:rgba(255,255,255,.07); }
.v48-market-card strong { display:block; color:#ffd86a; font-size:17px; font-weight:1000; letter-spacing:-.3px; }
.landing-market-tooltip { display:none; }
#landing-tooltip-layer { position:fixed; inset:0; pointer-events:none; z-index:9999; }
#landing-tooltip-layer .floating-tooltip { display:block !important; position:fixed !important; width:336px; max-width:min(336px,calc(100vw - 28px)); pointer-events:none; }
.v48-info-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.v48-info-row article { background:linear-gradient(180deg, rgba(22,34,50,.88), rgba(12,19,31,.94)); border:1px solid rgba(255,255,255,.10); border-radius:20px; padding:18px; }
.v48-info-row b { display:block; color:#fff; font-size:17px; margin-bottom:8px; }
.v48-info-row p { color:#aebbd0; margin:0; font-size:13px; line-height:1.65; }
.v48-footer { margin-top: 26px; }
.v48-empty { grid-column:1/-1; padding:24px; border:1px dashed rgba(255,255,255,.18); border-radius:18px; color:#aebbd0; }
.v48-empty b { color:#fff; }
@media (max-width: 1080px) { .v48-market-layout { grid-template-columns:1fr; } .v48-search-panel { position:static; max-height:none; } .v48-intro { display:grid; } .v48-intro-meta { justify-content:flex-start; } }
@media (max-width: 820px) { .v48-market-grid, .v48-info-row { grid-template-columns:1fr; } .v48-topbar { align-items:flex-start; flex-direction:column; } .v48-nav { justify-content:flex-start; } }
@media (max-width: 620px) { .v48-intro h1 { font-size:34px; } .v48-market-layout { gap:12px; } .ip-two, .ip-form-actions { grid-template-columns:1fr; } }


/* ─────────────────────────────────────────────────────────────────────────────
   v48 landing cleanup: scrollable search rail + today's market cards
   ───────────────────────────────────────────────────────────────────────────── */
html:has(body.landing-v48), body.landing-v48 {
  height: auto !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
body.landing-v48 {
  color: #eaf2ff;
  background:
    radial-gradient(circle at 0% 0%, rgba(216,255,31,.11), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(81,153,255,.12), transparent 28%),
    linear-gradient(180deg, #08111c 0%, #101a29 42%, #07101a 100%) !important;
}
.v48-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7,13,22,.72);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.v48-nav a:first-child { color: #d8ff1f; }
.v48-shell { padding-top: 28px; padding-bottom: 42px; }
.v48-title-strip {
  display: grid;
  grid-template-columns: minmax(0,1fr) 260px;
  align-items: end;
  gap: 22px;
  margin: 10px 0 24px;
}
.v48-mini-brand {
  margin: 0 0 12px;
  color: #d8ff1f;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .02em;
}
.v48-title-strip h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -2.8px;
}
.v48-title-strip h1 strong { color: #d8ff1f; text-shadow: 0 0 30px rgba(216,255,31,.20); }
.v48-ref-card {
  min-height: 84px;
  padding: 16px;
  border: 1px solid rgba(216,255,31,.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(31,42,60,.78), rgba(13,20,32,.86));
  box-shadow: 0 18px 46px rgba(0,0,0,.22);
}
.v48-ref-card span { display:block; color:#9fb0c8; font-size:12px; font-weight:900; }
.v48-ref-card b { display:block; margin-top:6px; color:#fff; font-size:20px; }
.v48-ref-card small { display:block; margin-top:4px; color:#7f8fa5; font-size:11px; line-height:1.45; }
.v48-main-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.v48-search-rail {
  position: sticky;
  top: 82px;
  align-self: start;
  max-height: calc(100vh - 98px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  border-radius: 22px;
}
.v48-search-rail::-webkit-scrollbar { width: 8px; }
.v48-search-rail::-webkit-scrollbar-thumb { background: rgba(216,255,31,.25); border-radius: 999px; }
.v48-search-form {
  background: linear-gradient(180deg, rgba(22,34,50,.96), rgba(11,18,30,.98));
  border: 1px solid rgba(180,195,215,.16);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
}
.v48-market-stack { display: grid; gap: 14px; min-width: 0; }
.v48-market-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(180,195,215,.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22,34,50,.86), rgba(11,18,30,.92));
}
.v48-market-head b { display:block; color:#fff; font-size:24px; letter-spacing:-.8px; }
.v48-market-head p { max-width:650px; margin:6px 0 0; color:#9fb0c8; font-size:13px; line-height:1.6; }
.v48-small-links { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.v48-small-links a { text-decoration:none; color:#d8ff1f; font-size:12px; font-weight:900; padding:8px 10px; border:1px solid rgba(216,255,31,.18); border-radius:999px; background:rgba(216,255,31,.05); }
.v48-recommend-grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.v48-market-card {
  display: none;
  position: relative;
  min-width: 0;
}
.v48-market-card.active { display:block; }
.v48-market-link {
  min-height: 178px;
  display:grid;
  grid-template-columns: 76px minmax(0,1fr);
  gap: 14px;
  align-items:center;
  text-decoration:none;
  color:#fff;
  padding: 16px;
  border: 1px solid rgba(216,255,31,.18);
  border-radius: 20px;
  background: radial-gradient(circle at 70% 0%, rgba(216,255,31,.12), transparent 42%), linear-gradient(180deg, rgba(22,34,50,.94), rgba(10,18,30,.96));
  box-shadow: 0 20px 56px rgba(0,0,0,.22);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.v48-market-link:hover { transform: translateY(-3px); border-color: rgba(216,255,31,.44); background: radial-gradient(circle at 70% 0%, rgba(216,255,31,.18), transparent 44%), linear-gradient(180deg, rgba(24,38,56,.98), rgba(9,17,28,.98)); }
.v48-card-icon { width:72px; height:72px; border-radius:16px; display:grid; place-items:center; background: linear-gradient(#fff,#dfe5eb); border:1px solid #c7d1db; }
.v48-card-icon img { max-width:58px; max-height:58px; }
.v48-card-body { min-width:0; }
.v48-card-body h3 { margin:0 0 5px; color:#fff; font-size:16px; line-height:1.35; letter-spacing:-.3px; }
.v48-card-body p { margin:0 0 8px; color:#9fb0c8; font-size:12px; line-height:1.45; }
.v48-card-body b { display:block; margin-top:9px; color:#ffd777; font-size:16px; letter-spacing:-.2px; }
.v48-tag-row { display:flex; gap:6px; flex-wrap:wrap; }
.v48-tag-row span { color:#dbe7f7; font-size:11px; font-weight:900; padding:4px 7px; border-radius:999px; background:rgba(255,255,255,.07); }
.v48-market-card > .maple-tooltip { display:none; }
.v48-empty-market { grid-column:1/-1; padding:36px; text-align:center; border-radius:22px; border:1px dashed rgba(255,255,255,.16); color:#9fb0c8; }
.v48-empty-market b { color:#fff; display:block; margin-bottom:6px; }
.v48-about-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.v48-about-strip article {
  padding:18px;
  border:1px solid rgba(180,195,215,.12);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(22,34,50,.82), rgba(11,18,30,.92));
}
.v48-about-strip span { color:#d8ff1f; font-size:13px; font-weight:1000; }
.v48-about-strip p { margin:8px 0 0; color:#aebbd0; line-height:1.6; font-size:13px; }
.v48-footer { grid-template-columns:1fr 1.6fr auto; row-gap:14px; }
.v48-footer-note { grid-column:1/-1; color:#7f8fa5; font-size:12px; line-height:1.6; padding-top:10px; border-top:1px solid rgba(255,255,255,.06); }
.landing-v48 #tooltip-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
.landing-v48 .floating-tooltip { position: fixed; display:block !important; width: 360px; max-width: min(360px, calc(100vw - 28px)); }
@media (max-width: 1080px) {
  .v48-title-strip, .v48-main-grid, .v48-footer { grid-template-columns:1fr; }
  .v48-search-rail { position: static; max-height: none; overflow: visible; }
  .v48-recommend-grid { grid-template-columns:1fr; }
  .v48-about-strip { grid-template-columns:1fr; }
  .v48-market-head { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 640px) {
  .v48-topbar { align-items:flex-start; flex-direction:column; }
  .v48-title-strip h1 { font-size:36px; letter-spacing:-1.5px; }
  .v48-market-link, .ip-two, .ip-form-actions { grid-template-columns:1fr; }
}


/* v48 final overrides for simplified production landing */
html:has(body.landing-v48), body.landing-v48 {
  height: auto !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
body.landing-v48 {
  background:
    radial-gradient(circle at 0% 0%, rgba(216,255,31,.10), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(81,153,255,.10), transparent 30%),
    linear-gradient(180deg, #08111c 0%, #101a29 48%, #07101a 100%) !important;
}
body.landing-v48 .v48-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7,14,23,.78);
}
body.landing-v48 .v48-market-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
body.landing-v48 .v48-search-panel {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 98px);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable;
  border-radius: 22px;
}
body.landing-v48 .v48-search-panel::-webkit-scrollbar { width: 8px; }
body.landing-v48 .v48-search-panel::-webkit-scrollbar-thumb { background: rgba(216,255,31,.26); border-radius: 99px; }
body.landing-v48 .v48-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 14px 0 20px;
}
body.landing-v48 .v48-intro h1 {
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -2.3px;
}
body.landing-v48 .v48-intro-meta span { color: #d8ff1f; border-color: rgba(216,255,31,.18); }
body.landing-v48 .v48-today-panel {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22,34,50,.92), rgba(12,19,31,.94));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 24px 70px rgba(0,0,0,.26);
}
body.landing-v48 .v48-section-head p { color: #8fa0b5; }
body.landing-v48 .v48-market-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
body.landing-v48 .v48-market-card {
  display: block !important;
  position: relative;
  min-width: 0;
  min-height: 172px;
  border: 1px solid rgba(216,255,31,.18);
  border-radius: 18px;
  padding: 14px;
  background: radial-gradient(circle at 80% 0%, rgba(216,255,31,.09), transparent 42%), rgba(5,11,19,.52);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
body.landing-v48 .v48-market-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216,255,31,.42);
  background: radial-gradient(circle at 80% 0%, rgba(216,255,31,.15), transparent 42%), rgba(5,11,19,.66);
}
body.landing-v48 .v48-card-top {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  gap: 12px;
  align-items: center;
}
body.landing-v48 .v48-card-badges { min-height: 24px; }
body.landing-v48 .v48-market-card > .maple-tooltip { display: none; }
body.landing-v48 #landing-tooltip-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}
body.landing-v48 #landing-tooltip-layer .floating-tooltip {
  position: fixed;
  display: block !important;
  width: 360px;
  max-width: min(360px, calc(100vw - 28px));
}
body.landing-v48 .v48-info-row {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
body.landing-v48 .v48-footer {
  margin-top: 28px;
  align-items: start;
}
body.landing-v48 .v48-footer p { max-width: 460px; }
@media (max-width: 1080px) {
  body.landing-v48 .v48-market-layout { grid-template-columns: 1fr; }
  body.landing-v48 .v48-search-panel { position: static; max-height: none; overflow: visible !important; }
  body.landing-v48 .v48-intro { display: grid; }
  body.landing-v48 .v48-intro-meta { justify-content: flex-start; }
}
@media (max-width: 820px) {
  body.landing-v48 .v48-market-grid, body.landing-v48 .v48-info-row { grid-template-columns: 1fr; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   v49 landing: left search + right sold-market grid
   ───────────────────────────────────────────────────────────────────────────── */
html:has(body.landing-v49), body.landing-v49 {
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body.landing-v49 {
  color: #eaf2ff;
  background:
    radial-gradient(circle at 0% 0%, rgba(216,255,31,.09), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(81,153,255,.10), transparent 30%),
    linear-gradient(180deg, #08111c 0%, #101a29 48%, #07101a 100%) !important;
}
body.landing-v49 .v49-topbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 28px;
  min-height: 58px;
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(7,14,23,.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
body.landing-v49 .v49-brand .ip-brand-mark { width: 42px; height: 42px; border-radius: 14px; }
body.landing-v49 .v49-nav a:first-child { color: #d8ff1f; }
.v49-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px 36px;
}
.v49-main-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.v49-search-rail {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 82px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  border-radius: 22px;
  align-self: start;
}
.v49-search-rail::-webkit-scrollbar { width: 8px; }
.v49-search-rail::-webkit-scrollbar-thumb { background: rgba(216,255,31,.28); border-radius: 99px; }
.v49-search-rail::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 99px; }
.v49-search-panel {
  background: linear-gradient(180deg, rgba(22,34,50,.97), rgba(11,18,30,.98));
  border: 1px solid rgba(180,195,215,.16);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
}
.v49-panel-head { margin-bottom: 14px; }
.v49-panel-head span { color:#d8ff1f; font-size:12px; font-weight:1000; }
.v49-panel-head b { display:block; margin-top:4px; color:#fff; font-size:20px; letter-spacing:-.7px; }
.v49-mode-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; margin-bottom:14px; border-radius:14px; background:rgba(255,255,255,.055); }
.v49-mode-tabs label { min-height:34px; display:flex; align-items:center; justify-content:center; border-radius:11px; color:#b9c7d8; font-size:12px; font-weight:900; cursor:pointer; }
.v49-mode-tabs label.active, .v49-mode-tabs label:has(input:checked) { background:linear-gradient(180deg,#d8ff1f,#aee40e); color:#111827; }
.v49-mode-tabs input { display:none; }
.v49-field { display:block; margin:0 0 10px; min-width:0; }
.v49-field span { display:block; margin-bottom:6px; color:#c9d7e8; font-size:12px; font-weight:900; }
.v49-field input, .v49-field select, .v49-search-input {
  width:100%; min-height:40px; box-sizing:border-box; border-radius:12px; border:1px solid rgba(129,154,183,.38); background:#081421; color:#fff; padding:0 12px; font-size:13px; outline:none;
}
.v49-field input:focus, .v49-field select:focus, .v49-search-input:focus-within { border-color:rgba(216,255,31,.70); box-shadow:0 0 0 3px rgba(216,255,31,.08); }
.v49-search-input { display:flex; align-items:center; gap:8px; padding:0 10px; }
.v49-search-input i { color:#d8ff1f; font-style:normal; }
.v49-search-input input { min-height:38px; padding:0; border:0; background:transparent; box-shadow:none; }
.v49-two { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.v49-six-lines { margin-top:14px; padding:14px; border-radius:16px; border:1px solid rgba(216,255,31,.18); background:linear-gradient(180deg, rgba(216,255,31,.055), rgba(255,255,255,.025)); }
.v49-six-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.v49-six-head b { color:#fff; font-size:13px; }
.v49-six-head span { display:flex; align-items:center; gap:8px; color:#cbd7e8; font-size:12px; font-weight:900; }
.v49-line-title { margin:10px 0 7px; font-size:12px; font-weight:1000; }
.v49-line-title.pot { color:#d8ff1f; }
.v49-line-title.add { color:#bf77ff; }
.v49-line-row { display:grid; grid-template-columns:minmax(0,1fr) 78px; gap:8px; margin-bottom:7px; }
.v49-line-row select, .v49-line-row input { min-height:36px; border-radius:10px; border:1px solid rgba(129,154,183,.35); background:#081421; color:#fff; padding:0 10px; box-sizing:border-box; }
.v49-form-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; }
.v49-form-actions .primary-btn, .v49-form-actions .ghost-btn { min-height:44px; border-radius:13px; display:flex; align-items:center; justify-content:center; text-decoration:none; }
.v49-content { min-width:0; display:grid; gap:16px; }
.v49-hero-line {
  min-height: 164px;
  display:flex;
  align-items:center;
  padding: 12px 10px 12px 8px;
}
.v49-hero-copy p { margin:0 0 8px; color:#d8ff1f; font-size:13px; font-weight:1000; letter-spacing:.03em; }
.v49-hero-copy h1 { margin:0; color:#fff; font-size:clamp(40px, 5.5vw, 66px); line-height:1.04; letter-spacing:-2.6px; }
.v49-hero-copy h1 strong { color:#d8ff1f; text-shadow:0 0 28px rgba(216,255,31,.22); }
.v49-date { margin-top:14px; color:#b7c6d9; font-size:14px; font-weight:900; }
.v49-hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.v49-hero-actions a { min-height:40px; padding:0 18px; display:inline-flex; align-items:center; justify-content:center; border-radius:13px; text-decoration:none; color:#dbe7f7; border:1px solid rgba(255,255,255,.13); background:rgba(255,255,255,.055); font-size:13px; font-weight:1000; }
.v49-hero-actions a.primary { background:linear-gradient(180deg,#d8ff1f,#aee40e); color:#111827; border-color:transparent; box-shadow:0 14px 30px rgba(174,228,14,.20); }
.v49-market-panel { padding:18px; border-radius:22px; background:linear-gradient(180deg, rgba(22,34,50,.92), rgba(12,19,31,.94)); border:1px solid rgba(255,255,255,.10); box-shadow:0 24px 70px rgba(0,0,0,.26); }
.v49-section-head { display:flex; align-items:end; justify-content:space-between; gap:12px; margin-bottom:14px; }
.v49-section-head b { display:block; color:#fff; font-size:23px; font-weight:1000; letter-spacing:-.7px; }
.v49-section-head span { display:block; margin-top:5px; color:#8fa0b5; font-size:12px; }
.v49-section-head a { color:#d8ff1f; text-decoration:none; font-size:13px; font-weight:1000; }
.v49-market-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; }
.v49-market-card { position:relative; min-width:0; min-height:142px; border:1px solid rgba(216,255,31,.18); border-radius:18px; padding:14px; background:radial-gradient(circle at 80% 0%, rgba(216,255,31,.09), transparent 42%), rgba(5,11,19,.52); cursor:pointer; transition:transform .16s ease, border-color .16s ease, background .16s ease; }
.v49-market-card:hover { transform:translateY(-3px); border-color:rgba(216,255,31,.42); background:radial-gradient(circle at 80% 0%, rgba(216,255,31,.15), transparent 42%), rgba(5,11,19,.66); }
.v49-card-main { display:grid; grid-template-columns:62px minmax(0,1fr); gap:12px; align-items:center; }
.v49-icon-box { width:60px; height:60px; border-radius:14px; display:grid; place-items:center; background:linear-gradient(#fff,#dfe5eb); border:1px solid #c6ced8; }
.v49-icon-box img { max-width:50px; max-height:50px; }
.v49-card-text h3 { margin:0; color:#fff; font-size:15px; line-height:1.35; letter-spacing:-.3px; }
.v49-card-text p { margin:4px 0 0; color:#9fb0c8; font-size:12px; line-height:1.35; }
.v49-card-badges { display:flex; flex-wrap:wrap; gap:6px; margin:9px 0 8px; }
.v49-card-badges span { color:#dbe7f7; font-size:11px; font-weight:900; padding:4px 7px; border-radius:999px; background:rgba(255,255,255,.07); }
.v49-card-text strong { display:block; color:#ffd86a; font-size:16px; font-weight:1000; letter-spacing:-.3px; }
.v49-market-card > .maple-tooltip { display:none; }
.v49-empty-market { grid-column:1/-1; padding:28px; border:1px dashed rgba(255,255,255,.16); border-radius:18px; color:#9fb0c8; text-align:center; }
body.landing-v49 #landing-tooltip-layer { position:fixed; inset:0; pointer-events:none; z-index:9999; }
body.landing-v49 #landing-tooltip-layer .floating-tooltip { position:fixed; display:block !important; width:360px; max-width:min(360px, calc(100vw - 28px)); }
.v49-footer { margin-top: 22px; }
.v49-footer-note { grid-column:1/-1; margin:0; color:#7f8fa5; font-size:12px; line-height:1.6; padding-top:10px; border-top:1px solid rgba(255,255,255,.06); }
@media (max-width:1080px){
  .v49-main-layout { grid-template-columns:1fr; }
  .v49-search-rail { position:static; max-height:none; overflow:visible; }
  .v49-market-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px){
  body.landing-v49 .v49-topbar { align-items:flex-start; flex-direction:column; }
  .v49-market-grid, .v49-two, .v49-form-actions { grid-template-columns:1fr; }
  .v49-hero-copy h1 { font-size:34px; letter-spacing:-1.4px; }
}

.similar-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.similar-card { display: flex; flex-direction: column; gap: 7px; padding: 14px; border-radius: 14px; border: 1px solid rgba(216,255,31,.18); background: linear-gradient(160deg, rgba(18,30,47,.98), rgba(9,18,31,.96)); color: #eaf2ff; text-decoration: none; transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; min-height: 132px; }
.similar-card:hover { transform: translateY(-2px); border-color: rgba(216,255,31,.5); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.similar-price { color: #ffe071; font-size: 17px; font-weight: 900; }
.similar-title { font-weight: 800; color: #fff; line-height: 1.35; }
.similar-meta { color: #9fb4cc; font-size: 12px; line-height: 1.35; }
.similar-quality { color: #c7ff1f; font-size: 12px; line-height: 1.35; }
.similar-reasons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.similar-reasons span { border-radius: 999px; padding: 3px 7px; font-size: 11px; color: #d8ff1f; background: rgba(216,255,31,.08); border: 1px solid rgba(216,255,31,.15); }


/* v51: 첫 화면 좌측 정렬, 상세검색/오늘의 시세 정리 */
body.landing-v51 {
  background:
    radial-gradient(circle at 0% 0%, rgba(216,255,31,.10), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(98,234,255,.09), transparent 34rem),
    #07111d;
}
body.landing-v51 .v49-topbar {
  max-width: none;
  width: min(1480px, calc(100vw - 24px));
  margin: 0 0 0 12px;
  padding-left: 16px;
  padding-right: 16px;
}
body.landing-v51 .v49-shell {
  max-width: none;
  width: min(1480px, calc(100vw - 24px));
  margin: 0 0 0 12px;
  padding: 10px 16px 40px;
}
body.landing-v51 .v49-main-layout {
  grid-template-columns: 360px minmax(720px, 1fr);
  gap: 20px;
}
body.landing-v51 .v49-search-rail {
  top: 66px;
  max-height: calc(100vh - 76px);
}
body.landing-v51 .v49-content {
  align-content: start;
  gap: 12px;
}
body.landing-v51 .v49-hero-line {
  min-height: 112px;
  padding: 0 4px 4px;
  display: flex;
  align-items: center;
}
body.landing-v51 .v49-hero-copy {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 24px;
}
body.landing-v51 .v49-hero-copy p {
  grid-column: 1 / 2;
  font-size: 12px;
  margin-bottom: 4px;
  letter-spacing: .02em;
}
body.landing-v51 .v49-hero-copy h1 {
  grid-column: 1 / 2;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.8px;
}
body.landing-v51 .v49-date {
  grid-column: 1 / 2;
  margin-top: 8px;
}
body.landing-v51 .v49-hero-actions {
  grid-column: 2 / 3;
  grid-row: 2 / 4;
  align-self: center;
  margin-top: 0;
  flex-direction: column;
}
body.landing-v51 .v49-hero-actions a {
  min-width: 132px;
  justify-content: center;
}
body.landing-v51 .v49-market-panel {
  min-height: 0;
  padding: 18px;
}
body.landing-v51 .v49-market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.landing-v51 .v49-market-card {
  min-height: 108px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28,38,54,.86), rgba(13,21,33,.94));
}
body.landing-v51 .v49-card-main {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
}
body.landing-v51 .v49-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 10px;
}
body.landing-v51 .v49-card-text h3 {
  font-size: 15px;
}
body.landing-v51 .v49-card-text strong {
  font-size: 16px;
}
.v51-market-sub {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
  color:#8d9bb0;
  font-size:11px;
}
.favorite-count { color:#ff6a9c !important; font-weight:900; }
.trade-date { color:#8f9cae !important; }
.v49-six-head span label,
.logic-toggle label {
  display:inline-flex;
  align-items:center;
  gap:3px;
  line-height:1;
}
.v49-six-head input[type="radio"],
.logic-toggle input[type="radio"] {
  width:12px !important;
  height:12px !important;
  min-height:0 !important;
  margin:0 2px 0 0 !important;
  accent-color:#1a8cff;
}
.v49-six-head span { gap:6px; font-size:10px; }

/* v51: 검색 결과 보기 방식 */
.result-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.view-toggle {
  display:inline-grid;
  grid-template-columns:1fr 1fr;
  gap:3px;
  padding:3px;
  border-radius:999px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.09);
}
.view-toggle button {
  border:0;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  color:#aebbd0;
  background:transparent;
  cursor:pointer;
  font-weight:900;
  font-size:12px;
}
.view-toggle button.active {
  color:#111827;
  background:linear-gradient(180deg,#d8ff1f,#aee40e);
}
.item-card.expanded-card {
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:12px;
}
.item-card.expanded-card > .maple-tooltip {
  display:block;
  grid-column:1 / -1;
  position:static !important;
  width:100%;
  max-width:none;
  pointer-events:auto;
  margin-top:4px;
}
.item-card.expanded-card .maple-tooltip {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.item-card.expanded-card .maple-tooltip .option-line {
  white-space: normal;
}
.sub-line .favorite-count {
  display:inline-flex;
  align-items:center;
  gap:3px;
}
.sub-line .trade-date {
  color:#8f9cae !important;
}

@media (max-width: 1120px) {
  body.landing-v51 .v49-main-layout { grid-template-columns: 1fr; }
  body.landing-v51 .v49-search-rail { position: static; max-height:none; }
  body.landing-v51 .v49-hero-copy { grid-template-columns: 1fr; }
  body.landing-v51 .v49-hero-actions { grid-column: 1; grid-row:auto; flex-direction: row; margin-top: 12px; }
}
@media (max-width: 780px) {
  body.landing-v51 .v49-market-grid { grid-template-columns: 1fr; }
}


/* v66: Maple Auction DOM color fallback. New DB rows use inline p.color from actual tooltip DOM. */
.part-base { color: rgb(255, 255, 255) !important; }
.part-star { color: rgb(250, 200, 1) !important; text-shadow:none !important; }
.part-scroll { color: rgb(168, 166, 244) !important; text-shadow:none !important; }
.part-flame { color: rgb(11, 222, 169) !important; text-shadow:none !important; }
.part-extra { color: rgb(241, 133, 28) !important; }
.part-dom-color { text-shadow:none !important; }
.option-name { color: rgb(177, 185, 195) !important; }
/* 역할 클래스가 없던 오래된 렌더에도 최소한 Maple DOM 기본색에 가깝게 보정 */
.parts .part-1:not(.part-scroll):not(.part-flame):not(.part-extra) { color: rgb(250, 200, 1); }
.parts .part-2:not(.part-star):not(.part-flame):not(.part-extra) { color: rgb(168, 166, 244); }
.parts .part-3:not(.part-star):not(.part-scroll):not(.part-extra) { color: rgb(11, 222, 169); }

.flame-expect-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.flame-expect-summary > div { border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:12px; background:rgba(255,255,255,.045); }
.flame-expect-summary span { display:block; color:#9fb0c8; font-size:12px; font-weight:900; }
.flame-expect-summary b { display:block; color:#ffe071; font-size:18px; margin-top:4px; }
.flame-expect-summary small { display:block; color:#8f9caf; margin-top:4px; }
.flame-expect-table tr.selected td { background:rgba(216,255,31,.08); }
.flame-expect-table td:first-child b { color:#d8ff1f; }

.similar-result-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); gap:10px; }
.similar-result-card { display:grid; grid-template-columns:58px minmax(0,1fr); gap:12px; padding:13px; border-radius:14px; border:1px solid rgba(180,195,215,.13); background:linear-gradient(160deg,rgba(24,34,52,.98),rgba(13,23,37,.98)); color:#edf5ff; text-decoration:none; box-shadow:0 8px 20px rgba(0,0,0,.12); transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease; }
.similar-result-card:hover { transform:translateY(-2px); border-color:rgba(216,255,31,.42); box-shadow:0 10px 28px rgba(0,0,0,.24); }
.similar-result-card .card-icon { width:58px; height:58px; }
.similar-result-card .card-icon img { max-width:48px; max-height:48px; }
.similar-result-main { min-width:0; display:flex; flex-direction:column; gap:5px; }
.similar-result-title { display:flex; align-items:center; gap:6px; flex-wrap:wrap; min-width:0; }
.similar-result-title strong { font-size:15px; line-height:1.25; }
.compact-badges { gap:4px; }
.compact-badges .badge { font-size:10px; padding:3px 6px; }
@media (max-width:760px){ .similar-result-grid { grid-template-columns:1fr; } .flame-expect-summary { grid-template-columns:1fr; } }


/* v54: 펼쳐보기 카드 정렬/빈 잠재칸/애매한 옵션 분해값 표시 */
.grade-title.grade-empty { color: #8f9cae !important; }
.grade-cube.grade-empty { background: #5e6978; color: #dbe4ef; }
.rank-empty { background: #5e6978; opacity: .65; }
.empty-potential-section { min-height: 52px; opacity: .86; }
.empty-line .line-text { color: #8f9cae; }
.part-unknown, .part-extra { color: #9fb4cc; }
.item-card.expanded-card { align-self: start; align-items: start; grid-template-rows: auto auto; }
.item-card.expanded-card > .maple-tooltip { align-self: start; min-height: 560px; box-sizing: border-box; }
.item-card.expanded-card .tooltip-head { align-items: center; }
.item-card.expanded-card .potential-section, .item-card.expanded-card .additional-section { min-height: 56px; }
.item-card.expanded-card .option-list { min-height: 155px; }
.item-card.expanded-card .scroll-text { min-height: 18px; }

/* Static API frontend compatibility patch */
.brand-mark[href], .back-link { text-decoration: none; }
.pager { display:flex; justify-content:center; align-items:center; gap:10px; padding:18px 0 6px; }
.pager .primary-btn, .pager .ghost-btn { min-width: 98px; padding: 0 18px; }
.result-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.item-card { cursor: pointer; }
.item-detail-link { color: inherit; }
.clean-item-cell { display:flex; align-items:center; gap:10px; min-width:240px; }
.clean-item-cell img { width:34px; height:34px; object-fit:contain; border-radius:7px; background:#fff; border:1px solid rgba(255,255,255,.18); }
.clean-item-cell small { color:#8f9cae; }
.clean-table td a { color:#d8ff1f; font-weight:900; }
#selectedTooltip .maple-tooltip { display:block; width:100%; max-width:100%; pointer-events:auto; }
#selectedTooltip .detail-page-tooltip { margin:0 auto; }
.detail-icon-box img { max-width:64px; max-height:64px; }
.daily-row i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg, rgba(98,234,255,.55), #d8ff1f); }
.curve-chart-card canvas, .expect-curve-card canvas { width:100%; display:block; }
.empty-mini { color:#9aa7b7; border:1px dashed rgba(255,255,255,.12); border-radius:14px; padding:18px; background:rgba(0,0,0,.10); }
.v49-mode-tabs label span, .market-mode-tab span, .class-tab span { pointer-events:none; }
.v49-card-text h3, .card-title-row h2 { overflow:hidden; text-overflow:ellipsis; }
@media (max-width: 720px) {
  .header-stats.compact-header-stats { width:100%; overflow:auto; justify-content:flex-start; }
  .pager { position:sticky; bottom:0; background:rgba(14,18,25,.92); border-top:1px solid rgba(255,255,255,.08); }
}

/* Legal/static pages */
.legal-body { background: radial-gradient(circle at top left, rgba(246,134,0,.10), transparent 32rem), radial-gradient(circle at top right, rgba(127,84,186,.18), transparent 34rem), var(--bg); color:var(--text); }
.landing-nav { position:sticky; top:0; z-index:40; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 22px; background:rgba(20,25,35,.94); border-bottom:1px solid rgba(255,255,255,.08); backdrop-filter:blur(12px); }
.landing-logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.landing-logo span { width:36px; height:36px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(135deg,#f68600,#ffd84d); color:#1b1c20; font-weight:900; }
.landing-logo b { color:#fff; font-size:18px; }
.landing-nav nav { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.landing-nav nav a, .landing-footer a { color:#cbd7e8; font-size:13px; font-weight:800; text-decoration:none; }
.landing-nav nav a:hover, .landing-footer a:hover { color:#d8ff1f; }
.legal-page { width:min(960px, calc(100% - 32px)); margin:28px auto 48px; padding:26px; border-radius:22px; border:1px solid rgba(255,255,255,.09); background:linear-gradient(180deg, rgba(23,29,40,.94), rgba(13,18,27,.96)); box-shadow:0 24px 70px rgba(0,0,0,.25); }
.legal-page h1 { font-size:32px; letter-spacing:-1px; margin-bottom:6px; }
.legal-page section { margin-top:22px; padding-top:18px; border-top:1px solid rgba(255,255,255,.08); }
.legal-page h2 { color:#fff; font-size:18px; margin:0 0 8px; }
.legal-page p, .legal-page li { color:#b7c6d9; line-height:1.75; }
.legal-date { color:#d8ff1f !important; font-weight:900; }
.landing-footer { width:min(960px, calc(100% - 32px)); margin:0 auto 34px; display:flex; gap:14px; flex-wrap:wrap; align-items:center; justify-content:center; color:#93a1b2; }
@media (max-width: 720px) { .landing-nav { align-items:flex-start; flex-direction:column; } .legal-page { padding:18px; } }
