
:root{--page:#eef2f5;--panel:#fff;--ink:#111827;--muted:#6b7280;--line:#e6e9ee;--red:#ff2e3f;--yellow:#ffcb2f;--navy:#102f4f;--green:#16a46a;--orange:#ff8a2a;--content:760px;--rail:280px}
*{box-sizing:border-box}html,body{margin:0;background:var(--page);color:var(--ink);font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{text-decoration:none;color:inherit}button,input,select{font:inherit}button{cursor:pointer}
.site-shell{width:min(calc(var(--rail) + var(--content) + 24px),1080px);margin:0 auto;display:grid;grid-template-columns:var(--rail) minmax(0,var(--content));gap:24px;align-items:start}
.desktop-rail{position:sticky;top:18px;margin-top:18px;display:flex;flex-direction:column;gap:12px}
.rail-card,.card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 6px 18px rgba(18,38,63,.035)}.rail-card{padding:18px}
.rail-brand{display:flex;gap:11px;align-items:center}.rail-brand img{width:44px;height:44px;border-radius:14px;object-fit:cover}.rail-brand strong{display:block;font-size:17px}.rail-brand span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.rail-login{background:linear-gradient(160deg,#102e4d,#0a1f35);color:#fff}.rail-login h3{margin:0 0 8px;font-size:18px}.rail-login p{font-size:12px;line-height:1.6;color:#dbe6ef;margin:0 0 14px}.rail-login button{width:100%;border:0;border-radius:12px;padding:12px;font-weight:800;background:#fff;color:#102e4d}
.rail-mini{display:grid;gap:10px}.rail-mini a{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:10px;font-size:13px}.rail-promo{background:#fff4e8}.rail-promo b{display:block;font-size:15px}.rail-promo p{font-size:12px;color:#7a5a3a;line-height:1.55}
.app{max-width:var(--content);min-height:100vh;background:#f7f8fa;border-left:1px solid #e5e8ec;border-right:1px solid #e5e8ec;position:relative;overflow:hidden}
.header{height:62px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #eef0f3;position:sticky;top:0;z-index:20}
.brand{display:flex;gap:10px;align-items:center}.brand img{width:38px;height:38px;border-radius:12px;object-fit:cover}.brand strong{font-size:17px;display:block}.brand span{font-size:9px;color:#667085;display:block}.header-actions{display:flex;gap:12px;align-items:center}.icon-btn{border:0;background:transparent;font-size:20px;padding:4px}
.content{padding:18px 14px 120px}.page-title{margin:2px 0 16px}.page-title h1{font-size:24px;margin:0 0 5px}.page-title p{font-size:12px;color:var(--muted);margin:0;line-height:1.55}
.category-bar{display:flex;gap:8px;overflow:auto;padding-bottom:10px;scrollbar-width:none}.category-bar::-webkit-scrollbar{display:none}.chip{border:1px solid #dfe3e8;background:#fff;border-radius:999px;padding:9px 13px;font-size:11px;font-weight:800;white-space:nowrap;color:#4b5563}.chip.on{background:#152d46;color:#fff;border-color:#152d46}.chip.more{border-style:dashed}
.list-toolbar{display:flex;justify-content:space-between;align-items:center;margin:4px 0 10px}.list-toolbar .meta{font-size:11px;color:#6b7280}.sort{border:1px solid #dfe3e8;border-radius:10px;background:#fff;padding:8px 10px;font-size:11px}
.machine-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.machine-card{padding:14px;position:relative;min-height:245px;display:flex;flex-direction:column}.rank-badge{position:absolute;left:12px;top:12px;background:var(--orange);color:#fff;border-radius:8px;padding:4px 7px;font-size:10px;font-weight:900}
.machine-ico{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;margin:8px auto 10px;font-size:34px;background:#fff1d9}.machine-card h3{text-align:center;font-size:15px;margin:0 0 4px}.machine-card .copy{text-align:center;font-size:10px;color:#69717c;line-height:1.5;min-height:31px}
.tags{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;margin:8px 0}.tag{background:#f1f4f7;border-radius:999px;padding:4px 7px;font-size:9px;color:#54606d}
.performance{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0f3;padding-top:10px;margin-top:auto}.performance span{font-size:10px;color:#6b7280}.performance strong{font-size:14px;color:#e11d34}
.machine-footer{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.price{display:grid;place-items:center;background:#fff3d7;color:#cf2b30;border-radius:10px;font-weight:900;font-size:11px;min-height:38px}.pick-btn{border:0;border-radius:10px;background:var(--red);color:#fff;font-weight:900;font-size:11px;padding:11px 8px}.detail-link{display:block;text-align:center;font-size:11px;color:#344054;margin-top:7px;border:1px solid #dfe3e8;border-radius:10px;padding:10px;font-weight:800;background:#fff}
.machine-hero{background:linear-gradient(135deg,#132f4d,#0d2339);color:#fff;border-radius:22px;padding:22px 20px;position:relative;overflow:hidden}.machine-hero:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.05);right:-70px;top:-70px}
.hero-top{display:flex;justify-content:space-between;gap:12px;align-items:start;position:relative;z-index:2}.hero-rank{display:inline-block;background:#ff8a2a;padding:5px 8px;border-radius:8px;font-size:10px;font-weight:900;margin-bottom:10px}.machine-hero h1{font-size:28px;margin:0 0 7px}.machine-hero p{font-size:12px;color:#dbe6ef;line-height:1.65;margin:0;max-width:470px}.hero-icon{font-size:58px}
.hero-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px;position:relative;z-index:2}.hero-tags span{font-size:10px;background:rgba(255,255,255,.1);padding:6px 9px;border-radius:999px}.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px;position:relative;z-index:2}.hero-stat{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:11px}.hero-stat label{display:block;font-size:9px;color:#b9c9d8;margin-bottom:5px}.hero-stat strong{font-size:17px}.hero-stat .up{color:#ffd05b}
.section{margin-top:18px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:9px}.section-head h2{font-size:17px;margin:0}.section-head p{font-size:10px;color:var(--muted);margin:4px 0 0}.section-head a{font-size:10px;color:#667085}
.story-card{padding:17px;font-size:13px;line-height:1.75}.story-card strong{display:block;font-size:15px;margin-bottom:6px}.recommend{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.rec{padding:13px;font-size:11px;line-height:1.55}.rec b{display:block;margin-bottom:4px}
.tabs{display:flex;gap:7px;overflow:auto;padding-bottom:4px}.tab{border:1px solid #dfe3e8;background:#fff;padding:9px 12px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}.tab.on{background:#152d46;color:#fff;border-color:#152d46}
.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.metric-card{padding:13px}.metric-card label{font-size:9px;color:#6b7280;display:block;margin-bottom:5px}.metric-card strong{font-size:17px}.metric-card small{display:block;font-size:9px;color:#7c8590;margin-top:5px}
.compare-card{padding:16px}.compare-row{display:grid;grid-template-columns:90px 1fr 58px;gap:8px;align-items:center;margin:9px 0;font-size:10px}.bar{height:7px;background:#edf0f3;border-radius:999px;overflow:hidden}.bar i{display:block;height:100%;background:#ff7580}.compare-row.random .bar i{background:#8ca0b5}
.history-card{padding:14px}.history-row{display:grid;grid-template-columns:72px 70px 1fr 66px;gap:7px;align-items:center;padding:10px 0;border-bottom:1px solid #eef0f3;font-size:10px}.history-row:last-child{border-bottom:0}.history-type{font-size:9px;padding:4px 6px;border-radius:999px;background:#f1f4f7;text-align:center}.history-type.live{background:#e8f8f0;color:#0a7b4d}.history-score{font-weight:800;text-align:right}.more-history{width:100%;margin-top:10px;border:1px solid #dfe3e8;background:#fff;border-radius:11px;padding:11px;font-size:11px;font-weight:800}
.indicator-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.indicator{padding:13px}.indicator b{display:block;font-size:12px;margin-bottom:5px}.indicator span{font-size:9px;color:#707987;line-height:1.45}
.community-gate{padding:16px;text-align:center;color:#667085;font-size:11px;line-height:1.6}.community-gate strong{display:block;color:#202938;font-size:13px;margin-bottom:5px}.related{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.related .card{padding:11px;text-align:center}.related .ico{font-size:25px}.related b{display:block;font-size:10px;margin-top:5px}.related span{font-size:9px;color:#777}
.gnb{position:fixed;z-index:30;bottom:0;left:50%;transform:translateX(-50%);width:min(var(--content),100vw);height:70px;background:rgba(255,255,255,.97);border-top:1px solid #e2e6eb;display:grid;grid-template-columns:repeat(5,1fr);backdrop-filter:blur(12px)}.gnb a{display:grid;place-items:center;align-content:center;gap:3px;font-size:9px;color:#536171}.gnb .on{color:var(--red);font-weight:900}.gnb i{font-style:normal;font-size:20px}
.sticky-buy{position:fixed;z-index:29;left:50%;bottom:70px;transform:translateX(-50%);width:min(var(--content),100vw);background:rgba(255,255,255,.98);border-top:1px solid #e2e6eb;padding:10px 14px;display:grid;grid-template-columns:120px 1fr;gap:8px}.sticky-buy .buy-price{background:#fff4db;border-radius:12px;display:grid;place-items:center;color:#c52d35;font-weight:900}.sticky-buy button{border:0;border-radius:12px;background:var(--red);color:#fff;font-weight:900}
.modal-backdrop{position:fixed;inset:0;background:rgba(6,18,30,.46);display:none;align-items:center;justify-content:center;padding:18px;z-index:100}.modal-backdrop.show{display:flex}.modal{width:min(430px,100%);background:#fff;border-radius:20px;padding:18px;box-shadow:0 20px 60px rgba(0,0,0,.2)}.modal h3{margin:0 0 6px;font-size:19px}.modal .sub{font-size:11px;color:#6b7280;line-height:1.55;margin-bottom:14px}
.setting-row{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-top:1px solid #eef0f3}.setting-row label{font-size:11px;color:#6b7280}.stepper{display:flex;align-items:center;gap:8px}.stepper button{width:30px;height:30px;border-radius:9px;border:1px solid #dfe3e8;background:#fff;font-weight:900}.stepper strong{min-width:26px;text-align:center}
.total{background:#f8f9fa;border-radius:12px;padding:12px;margin:10px 0 12px;display:flex;justify-content:space-between}.total span{font-size:11px;color:#6b7280}.total strong{font-size:15px}.modal-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:8px}.modal-actions button{border:0;border-radius:11px;padding:12px;font-weight:900}.cancel{background:#f0f2f5}.confirm{background:var(--red);color:#fff}.success-box{text-align:center;padding:8px 0}.success-icon{width:54px;height:54px;border-radius:50%;background:#e8f8f0;color:#0a7b4d;display:grid;place-items:center;font-size:26px;margin:0 auto 10px}.success-box p{font-size:12px;color:#667085;line-height:1.6}
.category-modal .category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.category-item{border:1px solid #dfe3e8;background:#fff;border-radius:12px;padding:12px 8px;font-size:11px;font-weight:800}.category-item.on{background:#152d46;color:#fff;border-color:#152d46}
@media(min-width:1081px){.gnb,.sticky-buy{transform:translateX(calc(-50% + (var(--rail) + 24px)/2));width:var(--content)}}
@media(max-width:1080px){.site-shell{display:block;width:auto}.desktop-rail{display:none}.app{margin:0 auto}}
@media(max-width:560px){.app{border:0}.content{padding-left:10px;padding-right:10px}.machine-list{grid-template-columns:1fr 1fr;gap:8px}.machine-card{padding:12px 9px}.machine-ico{width:58px;height:58px}.machine-card h3{font-size:13px}.machine-footer{grid-template-columns:68px 1fr}.machine-hero{padding:20px 16px}.machine-hero h1{font-size:25px}.hero-icon{font-size:48px}}

.machine-group-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 12px}
.machine-group-tab{border:1px solid #dfe3e8;background:#fff;border-radius:12px;padding:12px;font-size:12px;font-weight:900;color:#475467}
.machine-group-tab.on{background:#152d46;color:#fff;border-color:#152d46}
.machine-group-panel{display:none}
.machine-group-panel.on{display:block}
.candidate-note{padding:14px 15px;margin-bottom:10px;font-size:12px;line-height:1.65;color:#5d6672;background:#fffaf0;border:1px solid #f3dfad;border-radius:14px}
.machine-card .copy{font-size:11px!important;line-height:1.6!important}
.page-title p,.section-head p,.machine-hero p,.story-card,.rec,.indicator span,.community-gate{font-size:12px}
.section-head p{line-height:1.55}
.machine-hero p{font-size:13px;line-height:1.7}
.story-card{font-size:13px}
.rec{font-size:12px}
.indicator span{font-size:10.5px;line-height:1.55}
.random-highlight{border:2px solid #ffc85a!important;background:linear-gradient(180deg,#fffdf6,#fff)!important;box-shadow:0 8px 24px rgba(245,170,45,.12)}
.random-badge{display:inline-block;background:#fff0c7;color:#9a6410;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;margin-bottom:8px}
.hero-cta{margin-top:16px;display:grid;grid-template-columns:110px 1fr;gap:8px;position:relative;z-index:2}
.hero-cta .hero-price{display:grid;place-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);border-radius:12px;font-weight:900}
.hero-cta button{border:0;border-radius:12px;background:var(--red);color:#fff;font-weight:900;padding:13px}
.comment-box{padding:16px}
.comment-compose textarea{width:100%;min-height:84px;border:1px solid #dfe3e8;border-radius:12px;padding:12px;resize:vertical;font-size:12px}
.comment-compose .compose-actions{display:flex;justify-content:flex-end;margin-top:8px}
.comment-compose button{border:0;background:var(--red);color:#fff;border-radius:10px;padding:10px 14px;font-weight:900}
.comment-list{margin-top:16px;border-top:1px solid #eef0f3}
.comment-item{padding:14px 0;border-bottom:1px solid #eef0f3}
.comment-item:last-child{border-bottom:0}
.comment-meta{display:flex;gap:8px;align-items:center;font-size:10px;color:#7b8490;margin-bottom:7px}
.comment-badge{background:#e8f8f0;color:#0a7b4d;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:900}
.comment-text{font-size:12px;line-height:1.7;color:#344054}
.comment-actions{display:flex;gap:12px;margin-top:8px;font-size:10px;color:#667085}
.sticky-buy{display:none!important}

/* Candidate tab: persistent free-PICK label in both selected states. */
.machine-group-tabs [data-machine-group="candidate"]{display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.machine-group-tabs .machine-tab-free{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:3px 7px;border-radius:999px;background:#e3f7ec;color:#087443;font-size:12px!important;font-weight:700;line-height:1.3;letter-spacing:0}
.machine-group-tabs .on .machine-tab-free{background:#c9f4dc;color:#075b36}
