/* ══════════════════════════════════════════════════════
   watchlist-memo.css  — 메모·거래 드로어 & SAM 모달 확장
   ══════════════════════════════════════════════════════ */

/* ── SAM 헤더 레이아웃 보강 ── */
.sam-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #1e2d4a;
    flex-wrap: nowrap;
    transition: background .3s;
}
.sam-header-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
}

/* ── Gaebee 토글 버튼 (🔔 OFF / 🔕 ON) ── */
.sam-gaebee-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    flex-shrink: 0;
    user-select: none;
    line-height: 1;
}
.sam-gaebee-btn:hover {
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .3);
    color: #f59e0b;
}
.sam-gaebee-ico { font-size: 20px; line-height: 1; }
.sam-gaebee-lbl { font-size: 10px; white-space: nowrap; }

/* ON 상태 */
.sam-gaebee-btn.on {
    background: rgba(245, 158, 11, .18);
    border-color: #f59e0b;
    color: #fbbf24;
    box-shadow: 0 0 10px rgba(245, 158, 11, .25);
}
.sam-gaebee-btn.on:hover {
    background: rgba(245, 158, 11, .28);
}
/* ON 상태일 때 모달 헤더 배경 틴트 */
.stock-action-modal.gaebee-on .sam-header {
    background: rgba(245, 158, 11, .07);
    border-bottom-color: rgba(245, 158, 11, .2);
}

/* ── 메모 버튼 (보라 강조) ── */
.sam-btn-memo {
    background: linear-gradient(135deg, rgba(124,58,237,.20) 0%, rgba(79,70,229,.20) 100%);
    border-color: rgba(124,58,237,.4) !important;
    color: #a78bfa !important;
}
.sam-btn-memo:hover {
    background: linear-gradient(135deg, rgba(124,58,237,.35) 0%, rgba(79,70,229,.35) 100%) !important;
    border-color: #7c3aed !important;
    color: #c4b5fd !important;
    box-shadow: 0 8px 24px rgba(124,58,237,.25) !important;
}

/* ── 관심종목 삭제 버튼 ── */
.sam-btn-del {
    background: rgba(239,68,68,.08);
    border-color: rgba(239,68,68,.35) !important;
    color: #f87171 !important;
}
.sam-btn-del:hover {
    background: rgba(239,68,68,.18) !important;
    border-color: #ef4444 !important;
    color: #fca5a5 !important;
    box-shadow: 0 8px 24px rgba(239,68,68,.25) !important;
}

/* ── Gaebee 카드 뱃지 ── */
.wl-gaebee-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.3);
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1.4;
}

/* ══ 드로어 오버레이 ══ */
.wm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s;
}
.wm-overlay.active { opacity: 1; pointer-events: auto; }

/* ══ 드로어 본체 ══ */
.wm-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(460px, 100vw);
    height: 100dvh;
    background: #111827;
    border-left: 1px solid rgba(255,255,255,.1);
    z-index: 1201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.wm-drawer.active { transform: translateX(0); }

/* ── 헤더 ── */
.wm-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 16px 12px;
    background: #1f2937;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.wm-header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wm-stock-name {
    font-size: 17px;
    font-weight: 700;
    color: #f9fafb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wm-stock-code {
    font-size: 12px;
    color: #6b7280;
    font-family: monospace;
}
.wm-stock-market {
    font-size: 11px;
    color: #9ca3af;
}
.wm-header-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}
.wm-cur-price {
    font-size: 16px;
    font-weight: 700;
    color: #f9fafb;
    font-family: 'Courier New', monospace;
}
.wm-cur-change {
    font-size: 12px;
    color: #9ca3af;
}
.wm-cur-change.up   { color: #ef4444; }
.wm-cur-change.down { color: #3b82f6; }
.wm-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    flex-shrink: 0;
}
.wm-close:hover { color: #f9fafb; }

/* ── 탭 ── */
.wm-tabs {
    display: flex;
    gap: 0;
    background: #1f2937;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.wm-tab {
    flex: 1;
    padding: 10px 6px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}
.wm-tab:hover { color: #d1d5db; }
.wm-tab.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

/* ── 패널 ── */
.wm-pane {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wm-hidden { display: none !important; }

/* ── 목표가·손절가 ── */
.wm-price-targets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 12px;
}
.wm-pt-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.wm-pt-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
}
.wm-pt-input {
    background: #1f2937;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    color: #f9fafb;
    font-size: 14px;
    padding: 7px 10px;
    width: 100%;
    box-sizing: border-box;
    text-align: right;
    font-family: 'Courier New', monospace;
    transition: border-color .2s;
}
.wm-pt-input:focus { outline: none; border-color: #60a5fa; }

/* ── 거래 입력 폼 ── */
.wm-trade-form {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wm-trade-type-row {
    display: flex;
    gap: 8px;
}
.wm-type-btn {
    flex: 1;
    padding: 9px;
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.wm-type-btn:hover { background: rgba(255,255,255,.1); }
#wm-type-buy.active  { background: rgba(239,68,68,.15);  border-color: #ef4444; color: #ef4444; }
#wm-type-sell.active { background: rgba(59,130,246,.15); border-color: #3b82f6; color: #3b82f6; }

/* ── 청산 버튼 ── */
.wm-type-liq {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1.5px solid rgba(245,158,11,.3);
    background: rgba(245,158,11,.08);
    color: #f59e0b;
    font-size: 13px;
    font-weight: 600;
}
.wm-type-liq:hover {
    background: rgba(245,158,11,.18);
    border-color: #f59e0b;
}

.wm-trade-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wm-input-full { /* no-op — kept for compat */ }
.wm-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wm-input-group label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
}
.wm-opt { color: #4b5563; font-weight: 400; }
.wm-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* 가격+수량 한 줄 + 추가버튼 인라인 */
.wm-trade-price-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.wm-trade-price-row .wm-input-group {
    flex: 1;
    min-width: 0;
}
/* 거래추가 버튼 — 인라인용 (가격 행 오른쪽) */
.wm-add-btn-inline {
    flex-shrink: 0;
    padding: 0 12px;
    height: 34px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    align-self: flex-end;
}
.wm-add-btn-inline:hover { opacity: .88; transform: translateY(-1px); }
.wm-add-btn-inline:active { transform: translateY(0); }
.wm-input {
    width: 100%;
    background: #1f2937;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    color: #f9fafb;
    font-size: 14px;
    padding: 7px 32px 7px 10px;
    box-sizing: border-box;
    text-align: right;
    font-family: 'Courier New', monospace;
    transition: border-color .2s;
}
.wm-input:focus { outline: none; border-color: #60a5fa; }
.wm-input-unit {
    position: absolute;
    right: 9px;
    font-size: 11px;
    color: #6b7280;
    pointer-events: none;
}
.wm-input-group:last-child .wm-input {
    text-align: left;
    padding-right: 10px;
    font-family: inherit;
}

/* ── 추가 버튼 ── */
.wm-add-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.wm-add-btn:hover { opacity: .88; transform: translateY(-1px); }
.wm-add-btn:active { transform: translateY(0); }

/* ── 섹션 타이틀 ── */
.wm-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}

/* ── 거래 이력 목록 ── */
.wm-trade-list,
.wm-memo-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
/* 한 줄 레이아웃 */
.wm-trade-item {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 7px;
    padding: 6px 10px;
}
.wm-trade-item.buy  { border-left: 3px solid #ef4444; }
.wm-trade-item.sell { border-left: 3px solid #3b82f6; }
.wm-trade-item.liquidation { border-left: 3px solid #f59e0b; background: rgba(245,158,11,.06); }
.wm-trade-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}
.wm-trade-item.buy  .wm-trade-badge { background: rgba(239,68,68,.18);  color: #ef4444; }
.wm-trade-item.sell .wm-trade-badge { background: rgba(59,130,246,.18); color: #60a5fa; }
.wm-trade-item.liquidation .wm-trade-badge { background: rgba(245,158,11,.18); color: #f59e0b; }
/* 가격+수량+메모: 한 줄, 넘치면 ... */
.wm-trade-inline {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: #f9fafb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wm-trade-date {
    font-size: 11px;
    color: #6b7280;
    flex-shrink: 0;
    white-space: nowrap;
}
.wm-trade-del {
    background: none;
    border: none;
    color: #4b5563;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 12px;
    flex-shrink: 0;
    transition: color .15s;
}
.wm-trade-del:hover { color: #ef4444; }

/* ── 메모 탭 ── */
.wm-memo-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.wm-memo-input {
    width: 100%;
    background: #1f2937;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    color: #f9fafb;
    font-size: 14px;
    padding: 10px 12px;
    box-sizing: border-box;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color .2s;
}
.wm-memo-input:focus { outline: none; border-color: #60a5fa; }
.wm-memo-item {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-left: 3px solid #7c3aed;
    border-radius: 9px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}
.wm-memo-content {
    font-size: 13px;
    color: #e5e7eb;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-all;
    padding-right: 24px;
}
.wm-memo-date {
    font-size: 11px;
    color: #4b5563;
}
.wm-memo-del {
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: 4px;
    color: #f87171;
    cursor: pointer;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background .15s;
}
.wm-memo-del:hover {
    background: rgba(239,68,68,.18);
    border-color: #ef4444;
}

/* ── 수익 요약 탭 ── */
.wm-summary-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wm-summary-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wm-summary-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.wm-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #d1d5db;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.wm-summary-row:last-child { border-bottom: none; }
.wm-summary-row .val { font-weight: 600; font-family: 'Courier New', monospace; }
.wm-summary-row .val.profit { color: #ef4444; }
.wm-summary-row .val.loss   { color: #3b82f6; }
.wm-summary-row .val.neutral{ color: #f9fafb; }

/* ── 공통 empty 상태 ── */
.wm-empty {
    text-align: center;
    color: #4b5563;
    font-size: 13px;
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.wm-empty i { font-size: 24px; }

/* ── Gaebee 카드 뱃지 (wl-timing-card) ── */
.wl-gaebee-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(245,158,11,.18);
    color: #f59e0b;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(245,158,11,.3);
    margin-left: 4px;
    vertical-align: middle;
}

/* ── 로딩 스피너 ── */
.wm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #6b7280;
    gap: 8px;
    font-size: 13px;
}

/* ── 토스트 알림 ── */
.wm-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1f2937;
    border: 1px solid rgba(255,255,255,.15);
    color: #f9fafb;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 20px;
    z-index: 1300;
    opacity: 0;
    transition: opacity .25s, transform .25s;
    pointer-events: none;
    white-space: nowrap;
}
.wm-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.wm-toast.ok   { border-color: #10b981; color: #10b981; }
.wm-toast.err  { border-color: #ef4444; color: #ef4444; }

/* ── 메모 이력 항목 — 한 줄 콤팩트 레이아웃 ── */
.wm-memo-item.wm-memo-history {
    border-left-color: #f59e0b;
    background: rgba(245,158,11,.05);
    padding: 5px 10px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
.wm-memo-item.wm-memo-history .wm-memo-content {
    color: #fbbf24;
    font-size: 12px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 0;
    line-height: 1.4;
}
.wm-memo-item.wm-memo-history .wm-memo-foot {
    flex-shrink: 0;
    gap: 4px;
}
.wm-memo-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.wm-memo-type-badge {
    font-size: 10px;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.3);
    border-radius: 4px;
    padding: 1px 6px;
    flex-shrink: 0;
}

/* ── 목표가/손절가 저장 버튼 ── */
.wm-pt-save-btn {
    width: 100%;
    padding: 8px;
    background: rgba(96,165,250,.12);
    border: 1px solid rgba(96,165,250,.3);
    border-radius: 7px;
    color: #60a5fa;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.wm-pt-save-btn:hover {
    background: rgba(96,165,250,.22);
    border-color: #60a5fa;
}
/* 1행 오른쪽에 붙는 컴팩트 저장 버튼 */
.wm-pt-save-compact {
    width: auto;
    flex-shrink: 0;
    padding: 0 10px;
    font-size: 12px;
    align-self: flex-end;
    height: 34px;
    white-space: nowrap;
}

/* ── 목표가/손절가 2칸 나란히 레이아웃 ── */
/* 1행: 🎯입력 | 🛑입력 | 저장버튼 */
.wm-pt-top-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.wm-pt-cell {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wm-pt-cell .wm-pt-input {
    width: 100%;
    box-sizing: border-box;
}
/* 2행: % 계산 버튼 나란히 */
.wm-pt-pct-row {
    display: flex;
    gap: 6px;
}
.wm-pt-pct-row .wm-pct-calc {
    flex: 1;
}

/* ── % 자동계산 — 수동입력+계산 방식 ── */
.wm-pt-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wm-pt-row .wm-pt-input {
    width: 100%;
    box-sizing: border-box;
}
.wm-pct-calc {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    padding: 4px 8px;
    align-self: flex-start;
}
.wm-pct-calc.wm-pct-trade-calc {
    margin-top: 4px;
}
.wm-pct-sign {
    font-size: 13px;
    font-weight: 700;
    color: #60a5fa;
    line-height: 1;
}
.wm-pct-sign.wm-pct-sign-neg { color: #f87171; }
.wm-pct-num {
    width: 36px;
    background: transparent;
    border: none;
    outline: none;
    color: #f9fafb;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 0;
    -moz-appearance: textfield;
}
.wm-pct-num::-webkit-inner-spin-button,
.wm-pct-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wm-pct-apply-btn {
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(96,165,250,.5);
    background: rgba(96,165,250,.12);
    color: #60a5fa;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.wm-pct-apply-btn:hover { background: rgba(96,165,250,.25); }
.wm-pct-apply-btn.wm-pct-apply-neg {
    border-color: rgba(248,113,113,.5);
    background: rgba(248,113,113,.12);
    color: #f87171;
}
.wm-pct-apply-btn.wm-pct-apply-neg:hover { background: rgba(248,113,113,.25); }
/* 숨김 유틸 */
.wm-hidden { display: none !important; }

/* ── 메모 삭제 확인 모달 ── */
.wm-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9998;
}
.wm-confirm-overlay.active { display: block; }
.wm-confirm-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1f2937;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 28px 24px 20px;
    width: 284px;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.wm-confirm-modal.active { display: block; }
.wm-confirm-icon {
    font-size: 30px;
    color: #f87171;
    margin-bottom: 14px;
}
.wm-confirm-msg {
    color: #f9fafb;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 22px;
    line-height: 1.5;
}
.wm-confirm-btns {
    display: flex;
    gap: 10px;
}
.wm-confirm-cancel {
    flex: 1;
    padding: 10px 0;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.wm-confirm-cancel:hover { background: rgba(255,255,255,.1); }
.wm-confirm-ok {
    flex: 1;
    padding: 10px 0;
    border-radius: 8px;
    border: none;
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.wm-confirm-ok:hover { background: #dc2626; }

/* ── 목표가/손절가 하단 행 (% 계산 + 저장) ── */
.wm-pt-bottom-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wm-pt-bottom-row .wm-pct-calc {
    flex: 1;
}

/* ── 거래 메모 textarea ── */
.wm-trade-note-textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 60px;
    background: #1f2937;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    color: #f9fafb;
    font-size: 13px;
    padding: 7px 10px;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color .2s;
}
.wm-trade-note-textarea:focus {
    outline: none;
    border-color: #60a5fa;
}

/* ══════════════════════════════════════════════
   관심종목 추가 확인 모달 (v116)
   wl-confirm-overlay / wl-confirm-modal
   ══════════════════════════════════════════════ */
.wl-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9998;
}
.wl-confirm-overlay.active { display: block; }

.wl-confirm-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1f2937;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    padding: 28px 24px 22px;
    width: 300px;
    max-width: calc(100vw - 32px);
    z-index: 9999;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,.65);
}
.wl-confirm-modal.active { display: block; }

/* 아이콘 */
.wl-confirm-icon {
    font-size: 28px;
    color: #facc15;
    margin-bottom: 12px;
}

/* 타이틀 */
.wl-confirm-title {
    color: #f9fafb;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.4;
}

/* 종목 정보 박스 */
.wl-confirm-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* 시장 태그 */
.wl-confirm-market-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.wl-confirm-market-tag.kospi  { background: rgba(96,165,250,.18); color: #60a5fa; }
.wl-confirm-market-tag.kosdaq { background: rgba(52,211,153,.18); color: #34d399; }

/* 종목명 */
.wl-confirm-name {
    font-size: 15px;
    font-weight: 700;
    color: #f9fafb;
}

/* 종목코드 */
.wl-confirm-code {
    font-size: 12px;
    color: #9ca3af;
    font-family: monospace;
    letter-spacing: .5px;
}

/* 버튼 행 */
.wl-confirm-btns {
    display: flex;
    gap: 10px;
}

.wl-confirm-cancel {
    flex: 1;
    padding: 11px 0;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.wl-confirm-cancel:hover { background: rgba(255,255,255,.1); }

.wl-confirm-ok {
    flex: 1;
    padding: 11px 0;
    border-radius: 9px;
    border: none;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.wl-confirm-ok:hover { opacity: .85; }
