:root body.user-service #squadPurchaseModeView { color:var(--ui-ink); min-width:0; }
#squadPurchaseModeView [hidden] { display:none !important; }
#squadPurchaseModeView .sp-intro { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; padding:0 0 20px; }
#squadPurchaseModeView .sp-eyebrow { font-size:10px; letter-spacing:.16em; color:var(--ui-muted); }
#squadPurchaseModeView h2 { margin:0 0 10px; font-size:25px; letter-spacing:-.04em; }
#squadPurchaseModeView p { margin:0; color:var(--ui-muted); line-height:1.65; font-size:13px; }
#squadPurchaseModeView .sp-pitch { width:96px; flex:0 0 96px; opacity:.55; }
#squadPurchaseModeView .sp-form { max-width:720px; }
#squadPurchaseModeView label { display:block; font-size:12px; font-weight:700; margin-bottom:10px; }
#squadPurchaseModeView .sp-input-row { display:flex; gap:8px; }
#squadPurchaseModeView input { min-width:0; flex:1; height:48px; padding:0 14px; border:1px solid var(--ui-line); border-radius:4px; background:var(--ui-surface); color:var(--ui-ink); font:inherit; font-size:16px; box-sizing:border-box; }
#squadPurchaseModeView button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:4px; min-height:48px; padding:0 20px; background:var(--ui-accent); color:var(--ui-on-accent); font:inherit; font-size:13px; font-weight:700; cursor:pointer; transition:opacity 150ms ease; }
#squadPurchaseModeView button:hover { opacity:.85; }
#squadPurchaseModeView button svg { width:17px; height:17px; }
#squadPurchaseModeView #squadPurchaseHelp { font-size:12px; margin-top:10px; }
#squadPurchaseModeView .sp-status { font-size:12px; color:var(--ui-muted); margin:20px 0; line-height:1.6; }
#squadPurchaseModeView .sp-status:empty { margin:0; }
#squadPurchaseModeView .sp-empty { margin-top:36px; padding:48px 16px; border-top:1px solid var(--ui-line); border-bottom:1px solid var(--ui-line); text-align:center; }
#squadPurchaseModeView .sp-empty svg { width:34px; height:34px; color:var(--ui-muted); }
#squadPurchaseModeView h3 { margin:0; font-size:16px; font-weight:700; }
#squadPurchaseModeView .sp-empty h3 { margin:14px 0 8px; }
#squadPurchaseModeView .sp-empty a { display:inline-block; padding:14px; margin-top:8px; color:var(--ui-ink); font-size:12px; text-underline-offset:4px; }
#squadPurchaseModeView .sp-overview { border:1px solid var(--ui-line); border-radius:4px; padding:22px 24px; background:var(--ui-surface); }
#squadPurchaseModeView .sp-result-heading { display:flex; justify-content:space-between; gap:16px; align-items:center; padding-bottom:18px; border-bottom:1px solid var(--ui-line); }
#squadPurchaseModeView .sp-result-heading h3 { overflow-wrap:anywhere; }
#squadPurchaseModeView .sp-result-heading p { margin-top:5px; font-size:12px; }
#squadPurchaseModeView .sp-time { color:var(--ui-muted); font-size:11px; flex-shrink:0; }
#squadPurchaseModeView .sp-totals { display:grid; grid-template-columns:1fr 1fr 1.1fr; gap:24px; padding-top:20px; }
#squadPurchaseModeView .sp-totals > div > span { font-size:12px; color:var(--ui-muted); }
#squadPurchaseModeView .sp-totals strong { display:block; font-size:23px; margin-top:8px; font-variant-numeric:tabular-nums; }
#squadPurchaseModeView .sp-totals small { font-size:11px; color:var(--ui-muted); font-weight:500; }
#squadPurchaseModeView .sp-counts p { display:flex; gap:8px 14px; flex-wrap:wrap; margin-top:10px; }
#squadPurchaseModeView .sp-counts b { font-size:13px; font-weight:600; }
#squadPurchaseModeView .sp-buy { color:#16745f; }
:root[data-theme='dark'] #squadPurchaseModeView .sp-buy { color:#72d1ba; }
#squadPurchaseModeView .sp-sell { color:var(--ui-danger); }
#squadPurchaseModeView .sp-table-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:32px 0 14px; }
#squadPurchaseModeView .sp-table-heading > span { font-size:11px; color:var(--ui-muted); }
#squadPurchaseModeView .sp-table { width:100%; border-collapse:collapse; table-layout:fixed; }
#squadPurchaseModeView .sp-table th { font-size:11px; color:var(--ui-muted); font-weight:600; text-align:left; padding:12px 10px; border-top:2px solid var(--ui-line); border-bottom:1px solid var(--ui-line); }
#squadPurchaseModeView .sp-table th:nth-child(1) { width:28%; }
#squadPurchaseModeView .sp-table th:nth-child(2), #squadPurchaseModeView .sp-table th:nth-child(3) { width:17%; }
#squadPurchaseModeView .sp-table td { padding:18px 10px; border-bottom:1px solid var(--ui-line); vertical-align:top; }
#squadPurchaseModeView .sp-identity > div { min-width:0; }
#squadPurchaseModeView .sp-position { display:block; font-size:10px; font-weight:700; color:var(--ui-muted); margin-bottom:6px; }
#squadPurchaseModeView .sp-player-name { display:flex; flex-wrap:wrap; align-items:center; gap:5px; font-size:14px; font-weight:700; }
#squadPurchaseModeView .sp-season { min-width:25px; font-size:10px; font-weight:600; }
#squadPurchaseModeView .sp-season img { width:30px; height:22px; object-fit:contain; vertical-align:middle; }
#squadPurchaseModeView td small { display:block; font-size:10px; color:var(--ui-muted); margin-top:7px; line-height:1.5; }
#squadPurchaseModeView .sp-price strong, #squadPurchaseModeView .sp-entry strong { font-size:15px; font-weight:650; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
#squadPurchaseModeView .sp-badge { font-size:11px; display:inline-block; padding:3px 7px; border:1px solid currentColor; border-radius:3px; margin-bottom:7px; }
#squadPurchaseModeView .sp-judgment p { font-size:12px; }
#squadPurchaseModeView details { margin-top:6px; }
#squadPurchaseModeView summary { cursor:pointer; color:var(--ui-muted); font-size:11px; min-height:28px; padding:6px 0; }
#squadPurchaseModeView details div { display:grid; gap:5px; font-size:11px; padding:8px 0; color:var(--ui-muted); }
#squadPurchaseModeView .sp-note { padding:20px 0; }
#squadPurchaseModeView .sp-note strong { font-size:12px; }
#squadPurchaseModeView .sp-note p { font-size:11px; margin-top:6px; }
#squadPurchaseModeView :is(button,input,a,summary):focus-visible { outline:2px solid var(--ui-focus); outline-offset:3px; }
#squadPurchaseModeView .sp-skeleton i { display:block; height:68px; margin:12px 0; border-radius:3px; background:var(--ui-surface); animation:sp-pulse 1.15s ease-in-out infinite alternate; }
#squadPurchaseResult > :not(.sp-skeleton) { animation:sp-arrive 240ms ease-out; }
@keyframes sp-pulse { to { opacity:.35; } }
@keyframes sp-arrive { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
@media(max-width:767px) {
  #squadPurchaseModeView .sp-intro { padding:0 0 20px; gap:12px; }
  #squadPurchaseModeView h2 { font-size:20px; }
  #squadPurchaseModeView .sp-pitch { width:70px; flex-basis:70px; }
  #squadPurchaseModeView .sp-intro p { font-size:12px; }
  #squadPurchaseModeView button { padding:0 12px; min-height:44px; }
  #squadPurchaseModeView input { height:44px; padding:0 10px; }
  #squadPurchaseModeView button svg { display:none; }
  #squadPurchaseModeView .sp-overview { padding:16px; }
  #squadPurchaseModeView .sp-result-heading { display:block; }
  #squadPurchaseModeView .sp-time { display:block; margin-top:10px; }
  #squadPurchaseModeView .sp-totals { grid-template-columns:1fr 1fr; gap:20px 12px; }
  #squadPurchaseModeView .sp-totals strong { font-size:20px; }
  #squadPurchaseModeView .sp-counts { grid-column:1/-1; }
  #squadPurchaseModeView .sp-table-heading { align-items:flex-start; flex-direction:column; }
  #squadPurchaseModeView .sp-table, #squadPurchaseModeView .sp-table thead, #squadPurchaseModeView .sp-table tbody { display:block; }
  #squadPurchaseModeView .sp-table tr { display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:0 8px; border-bottom:1px solid var(--ui-line); padding:14px 0; }
  #squadPurchaseModeView .sp-table thead tr { border-top:2px solid var(--ui-line); padding:10px 0; }
  #squadPurchaseModeView .sp-table th, #squadPurchaseModeView .sp-table td { display:block; width:auto !important; min-width:0; padding:0; border:0; }
  #squadPurchaseModeView .sp-table th:last-child { display:none; }
  #squadPurchaseModeView .sp-player-name { font-size:15px; gap:4px; }
  #squadPurchaseModeView .sp-season { flex-basis:100%; }
  #squadPurchaseModeView .sp-price strong, #squadPurchaseModeView .sp-entry strong { font-size:16px; }
  #squadPurchaseModeView .sp-judgment { grid-column:1/-1; margin-top:14px; }
  #squadPurchaseModeView .sp-badge { margin-bottom:5px; }
  #squadPurchaseModeView summary { min-height:32px; }
}
@media(prefers-reduced-motion:reduce) { #squadPurchaseModeView * { animation:none !important; transition:none !important; } }
#squadPurchaseModeView .sp-label-row { display:flex; align-items:center; gap:3px; margin-bottom:4px; }
#squadPurchaseModeView .sp-label-row label { margin:0; }
#squadPurchaseModeView .sp-help-button { width:44px; height:44px; min-height:44px; padding:0; background:transparent; color:var(--ui-muted); }
#squadPurchaseModeView .sp-help-button svg { display:block; width:17px; height:17px; }
#squadPurchaseModeView .sp-guide { width:min(640px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); box-sizing:border-box; padding:24px; border:1px solid var(--ui-line); border-radius:8px; color:var(--ui-ink); background:var(--ui-surface); overflow:auto; }
#squadPurchaseModeView .sp-guide::backdrop { background:rgb(0 0 0 / .55); }
#squadPurchaseModeView .sp-guide[open] { animation:sp-arrive 240ms ease-out; }
#squadPurchaseModeView .sp-guide-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
#squadPurchaseModeView .sp-guide-heading h2 { font-size:20px; margin:0; }
#squadPurchaseModeView .sp-guide-heading button { flex:0 0 44px; width:44px; min-height:44px; padding:0; background:transparent; color:var(--ui-ink); }
#squadPurchaseModeView .sp-guide-heading svg { display:block; width:22px; height:22px; }
#squadPurchaseModeView .sp-guide ol { padding-left:22px; margin:16px 0 20px; font-size:13px; line-height:1.8; }
#squadPurchaseModeView .sp-guide li + li { margin-top:8px; }
#squadPurchaseModeView .sp-guide figure { margin:0; }
#squadPurchaseModeView .sp-guide img { display:block; width:100%; height:auto; border:1px solid var(--ui-line); box-sizing:border-box; border-radius:4px; }
#squadPurchaseModeView .sp-guide figcaption { font-size:11px; color:var(--ui-muted); margin-top:8px; line-height:1.6; }
#squadPurchaseModeView .sp-guide > a { display:inline-flex; align-items:center; min-height:44px; margin-top:12px; font-size:13px; color:var(--ui-ink); text-underline-offset:4px; }
@media(max-width:767px) { #squadPurchaseModeView .sp-guide { padding:16px; } #squadPurchaseModeView .sp-guide-heading h2 { font-size:18px; } }
#squadPurchaseModeView .sp-summary-line { display:flex; align-items:center; flex-wrap:wrap; gap:6px 18px; }
#squadPurchaseModeView .sp-summary-line p { margin:0; }
#squadPurchaseModeView .sp-result-heading { padding-bottom:12px; }
#squadPurchaseModeView .sp-table .sp-identity { display:flex; align-items:center; gap:12px; }
#squadPurchaseModeView .sp-player-media { width:68px; height:80px; flex:0 0 68px; }
#squadPurchaseModeView .sp-verdict-row { display:flex; align-items:center; gap:2px; }
#squadPurchaseModeView .sp-verdict-row .sp-badge { margin:0; }
#squadPurchaseModeView .sp-data-button { background:transparent; color:var(--ui-muted); width:44px; min-height:44px; padding:0; }
#squadPurchaseModeView .sp-data-button svg { display:block; width:17px; height:17px; }
#squadPurchaseModeView .sp-data-tooltip { position:fixed; inset:auto; margin:0; width:300px; max-width:calc(100vw - 32px); max-height:45vh; overflow:auto; box-sizing:border-box; padding:16px; border:1px solid var(--ui-line); border-radius:6px; background:var(--ui-surface); color:var(--ui-ink); box-shadow:0 6px 24px #0002; font-size:12px; }
#squadPurchaseModeView .sp-data-tooltip > div { display:grid; gap:7px; margin-top:12px; color:var(--ui-muted); }
@media(max-width:767px) {
  #squadPurchaseModeView .sp-table tbody tr { grid-template-columns:1fr 1fr; }
  #squadPurchaseModeView .sp-table .sp-identity { grid-column:1/-1; margin-bottom:12px; }
  #squadPurchaseModeView .sp-table thead { display:none; }
  #squadPurchaseModeView .sp-price::before, #squadPurchaseModeView .sp-entry::before { display:block; font-size:11px; color:var(--ui-muted); margin-bottom:5px; }
  #squadPurchaseModeView .sp-price::before { content:attr(data-label); }
  #squadPurchaseModeView .sp-entry::before { content:'장사 매수가'; }
  #squadPurchaseModeView .sp-judgment { margin-top:6px; }
  #squadPurchaseModeView .sp-season { flex-basis:auto; }
}

#squadPurchaseModeView .sp-sort-button { padding:0; min-height:32px; background:transparent; color:var(--ui-muted); font-size:11px; font-weight:600; gap:5px; text-align:left; }
#squadPurchaseModeView th[aria-sort="ascending"] .sp-sort-button,
#squadPurchaseModeView th[aria-sort="descending"] .sp-sort-button { color:var(--ui-ink); }
#squadPurchaseModeView .sp-sort-arrow { flex-shrink:0; }
@media(max-width:767px) {
  #squadPurchaseModeView .sp-table thead { display:block; }
  #squadPurchaseModeView .sp-table thead tr { display:flex; flex-wrap:wrap; gap:4px 16px; }
  #squadPurchaseModeView .sp-table th:last-child { display:block; }
  #squadPurchaseModeView .sp-sort-button { min-height:36px; }
}

#squadPurchaseModeView.sp-has-result .sp-intro { padding-bottom:12px; }
#squadPurchaseModeView.sp-has-result .sp-intro p,
#squadPurchaseModeView.sp-has-result .sp-pitch,
#squadPurchaseModeView.sp-has-result #squadPurchaseHelp { display:none; }
#squadPurchaseModeView.sp-has-result .sp-form { display:flex; align-items:center; gap:14px; max-width:850px; }
#squadPurchaseModeView.sp-has-result .sp-label-row { flex-shrink:0; margin:0; }
#squadPurchaseModeView.sp-has-result .sp-input-row { flex:1; min-width:0; }
#squadPurchaseModeView .sp-assessment { padding-top:18px; }
#squadPurchaseModeView .sp-assessment .sp-assessment-title { font-size:22px; font-weight:700; color:var(--ui-ink); margin-bottom:4px; }
#squadPurchaseModeView .sp-comparison-note { font-size:11px; margin-top:16px; }
#squadPurchaseModeView .sp-table .sp-identity { display:table-cell; }
#squadPurchaseModeView .sp-identity-content { display:flex; align-items:center; gap:12px; }
#squadPurchaseModeView .sp-identity-content > div { min-width:0; }
#squadPurchaseModeView .sp-table td { vertical-align:middle; padding:12px 10px; }
#squadPurchaseModeView .sp-table th:first-child { width:32%; }
#squadPurchaseModeView .sp-table th:nth-child(2), #squadPurchaseModeView .sp-table th:nth-child(3) { width:23%; text-align:right; }
#squadPurchaseModeView .sp-price, #squadPurchaseModeView .sp-entry { text-align:right; }
#squadPurchaseModeView .sp-table th:last-child, #squadPurchaseModeView .sp-judgment { padding-left:28px; }
#squadPurchaseModeView .sp-conditional { display:block; color:var(--ui-muted); font-size:10px; margin-bottom:4px; }
@media(max-width:767px) {
  #squadPurchaseModeView.sp-has-result .sp-form { display:block; }
  #squadPurchaseModeView .sp-assessment .sp-assessment-title { font-size:18px; }
  #squadPurchaseModeView .sp-totals { grid-template-columns:1fr 1fr; }
  #squadPurchaseModeView .sp-totals > div:first-child { grid-column:1/-1; }
  #squadPurchaseModeView .sp-table .sp-identity { display:block; }
  #squadPurchaseModeView .sp-table td { padding:0; }
  #squadPurchaseModeView .sp-table th:last-child { padding-left:0; }
  #squadPurchaseModeView .sp-price, #squadPurchaseModeView .sp-entry { text-align:left; }
}
@media(max-width:767px) {
  #squadPurchaseModeView .sp-totals > div:not(:first-child) > span { display:block; min-height:40px; }
}

#squadPurchaseModeView .sp-table tbody tr { cursor:pointer; }
#squadPurchaseModeView .sp-table tbody tr:hover { background:var(--ui-surface); }
#squadPurchaseModeView .sp-player-open { display:inline; min-height:0; padding:0; background:transparent; color:inherit; font:inherit; text-align:left; }
#squadPurchaseModeView .sp-player-open:hover { text-decoration:underline; text-underline-offset:3px; }

#squadPurchaseModeView .sp-summary-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; align-items:start; }
#squadPurchaseModeView .sp-summary-layout:has(.sp-summary-ad:not(.hidden)) { grid-template-columns:minmax(0,1fr) 300px; }
#squadPurchaseModeView .sp-summary-ad { width:300px; height:250px; overflow:hidden; }
#squadPurchaseModeView .sp-summary-ad img { width:300px; height:250px; object-fit:contain; }
#squadPurchaseModeView .sp-summary-layout .sp-overview { min-width:0; }
@media(min-width:768px) and (max-width:1199px) {
  #squadPurchaseModeView .sp-summary-layout:has(.sp-summary-ad:not(.hidden)) .sp-totals { grid-template-columns:1fr 1fr; }
  #squadPurchaseModeView .sp-summary-layout:has(.sp-summary-ad:not(.hidden)) .sp-totals > div:first-child { grid-column:1/-1; }
}
@media(max-width:767px) {
  #squadPurchaseModeView .sp-summary-layout:has(.sp-summary-ad:not(.hidden)) { grid-template-columns:minmax(0,1fr); }
  #squadPurchaseModeView .sp-summary-ad { display:none !important; }
}

#squadPurchaseModeView .sp-table th:nth-child(1) { width:26%; }
#squadPurchaseModeView .sp-table th:nth-child(2) { width:18%; text-align:left; }
#squadPurchaseModeView .sp-table th:nth-child(3), #squadPurchaseModeView .sp-table th:nth-child(4) { width:19%; text-align:right; }
#squadPurchaseModeView .sp-chart { color:var(--ui-muted); font-size:11px; }
#squadPurchaseModeView .sp-chart canvas { display:block; width:100%; height:56px; }
#squadPurchaseModeView .sp-chart > span { display:none; }
@media(max-width:767px) {
 #squadPurchaseModeView .sp-table .sp-identity { grid-column:1; }
 #squadPurchaseModeView .sp-chart { grid-column:2; grid-row:1; align-self:center; }
 #squadPurchaseModeView .sp-table thead th:nth-child(2) { display:none; }
}
@media(max-width:767px) {
  #squadPurchaseModeView .sp-table tbody tr { grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px 6px; padding:12px 0; }
  #squadPurchaseModeView .sp-table .sp-identity { grid-column:1/4; grid-row:1; margin-bottom:0; }
  #squadPurchaseModeView .sp-chart { grid-column:4/7; grid-row:1; }
  #squadPurchaseModeView .sp-price { grid-column:1/3; grid-row:2; }
  #squadPurchaseModeView .sp-entry { grid-column:3/5; grid-row:2; }
  #squadPurchaseModeView .sp-judgment { grid-column:5/7; grid-row:2; margin-top:14px; align-self:start; }
  #squadPurchaseModeView .sp-verdict-row { justify-content:flex-end; gap:0; }
  #squadPurchaseModeView .sp-verdict-row .sp-badge { white-space:nowrap; padding:3px 5px; font-size:10px; }
  #squadPurchaseModeView .sp-data-button { flex:0 0 44px; }
  #squadPurchaseModeView .sp-price::before, #squadPurchaseModeView .sp-entry::before { margin-bottom:3px; }
  #squadPurchaseModeView td small { margin-top:4px; }
}
