/* STICKS MINIMAL DARK SAFE — presentation only; no changes to application logic. */
:root{color-scheme:dark;--blue:#dfe7e1;--ink:#f5f5f6;--muted:#b5b5bd;--bg:#111113;--line:#38383e;--accent:#a5cfb5}
html,body,main{background:#111113;color:var(--ink)}
body{font-family:Pretendard,"Apple SD Gothic Neo","Noto Sans KR",system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.55;letter-spacing:-.018em;-webkit-font-smoothing:antialiased}
.top{background:#151518;border-bottom:1px solid #333338;box-shadow:none}
.brand h1{font-size:20px;font-weight:750;letter-spacing:-.02em}.brand .eyebrow,.eyebrow,.section-head .eyebrow{color:#a7a7b0;letter-spacing:.12em}
h2,.section-head h2{color:#f7f7f8;font-size:24px;font-weight:750;letter-spacing:-.035em;line-height:1.3}
h3,.card h3{color:#f5f5f6;font-size:17px;font-weight:700}
.muted,.meta,label,.metric span{color:#b5b5bd}
.card,.item,.metric,.metric-button,.student-compact-row-safe-v49,.more-menu-card-safe-v53,.student-summary-card{background:#1c1c1f!important;color:#f5f5f6!important;border:1px solid #39393e!important;box-shadow:none!important;border-radius:15px}
.metric,.student-summary-card .detail-grid .metric{background:#242428!important;border-color:#3c3c42!important}
.metric b,.metric strong,.student-summary-card .detail-grid .metric b,.student-summary-card .detail-grid .metric strong{color:#f7f7f8!important;font-size:20px;font-weight:750}
.metric span,.student-summary-card .detail-grid .metric span{color:#c0c0c8!important;font-size:12px}
input,select,textarea,#view-students .student-unified-selector-safe-v51 select{background:#232327!important;color:#f7f7f8!important;border:1px solid #48484f!important;border-radius:11px;font-size:15px;min-height:44px;opacity:1}
input::placeholder,textarea::placeholder{color:#aaaab3;opacity:1}
button,.actions a{background:#303035;color:#f5f5f6;border:1px solid #48484e;border-radius:11px;font-size:14px;font-weight:650;line-height:1.35;min-height:40px;box-shadow:none}
button.ghost,.ghost,.actions a,.inline-edit{background:#29292e;color:#f5f5f6;border-color:#48484e}
button:disabled{opacity:.58;cursor:not-allowed}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #a6d3b5;outline-offset:2px}
.bottom-nav{background:#151518;border-top:1px solid #343439;box-shadow:none}.bottom-nav button{background:transparent;border:0;color:#b3b3bb;font-size:12px}.bottom-nav button.active{background:#2a352d;color:#d3eddb}
.student-tab,.ops-tab,.music-tab,.mini-tab,.student-list-filter-safe-v49 button{background:#28282d;color:#f0f0f2;border-color:#48484f}
.student-tab.active,.ops-tab.active,.music-tab.active,.mini-tab.active,.student-list-filter-safe-v49 button.active{background:#34483b;color:#e3f6e9;border-color:#4b6c56}
.student-summary-card .count-line-v2b1{color:#c8c8d0!important}
.service-center-toolbar-safe-v53,.service-center-money-safe-v53 span,.service-center-payment-safe-v53,.service-center-customer-safe-v53,.after-song-picker-safe-v66,.after-song-result-safe-v66,.course-guide-option-safe-v65{background:#232327!important;color:#f5f5f6!important;border-color:#424249!important}
.service-center-money-safe-v53 b{color:#f7f7f8!important}
.service-center-money-safe-v53 span{color:#c0c0c8!important}
.service-payment-complete-safe-v52,.payment-state--paid,.badge--active{background:#21362a!important;color:#b5e7c4!important;border-color:#3d644b!important}
.service-actions-v2b1 button:disabled{background:#2a2a2d!important;color:#a8a8b0!important;border-color:#424248!important}
.result,.prepay-row,.prepay-applied,.prepay-new-payment-v46,.prepay-existing-balance-v46,.student-control-card{background:#232327!important;color:#f3f3f5!important;border-color:#424249!important}
.bar{background:#34343a}.bar i{background:#7eb293}
@media(max-width:560px){main{padding:14px 12px 28px}.section-head h2{font-size:23px}.card{padding:14px}.brand h1{font-size:19px}button{font-size:13px}}

/* SONG entry points: external navigation only, no data mutation */
.song-link-safe-ext{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px!important;background:#202024!important}
.song-link-safe-ext b{color:#f6f6f7;font-size:15px}.song-link-safe-ext p{margin:5px 0 0;line-height:1.5}
.song-link-button-safe-ext{display:inline-flex;align-items:center;justify-content:center;min-height:42px;min-width:108px;padding:9px 15px;border:1px solid #5b7964;border-radius:11px;background:#2d4033;color:#e4f4e9;text-decoration:none;font-size:14px;font-weight:700;white-space:nowrap}
.song-link-button-safe-ext:focus-visible{outline:2px solid #a6d3b5;outline-offset:2px}
@media(max-width:560px){.song-link-safe-ext{flex-direction:column;align-items:stretch}.song-link-button-safe-ext{width:100%}}

/* Screenshot-confirmed service metric contrast fix */
.service-center-metrics-safe-v53 button{background:#242428!important;color:#f7f7f8!important;border:1px solid #46464c!important;box-shadow:none!important}
.service-center-metrics-safe-v53 button b{color:#fff!important;font-size:21px;font-weight:750}
.service-center-metrics-safe-v53 button span{color:#c4c4cd!important;font-size:12px;font-weight:600}
.service-center-metrics-safe-v53 button:focus-visible{outline:2px solid #a6d3b5;outline-offset:2px}
/* AFTER keyword extension */
.after-keywords-safe-ext{margin:14px 0!important;background:#202024!important}
.after-keywords-safe-ext h3{margin-bottom:5px}
.after-keyword-group-safe-ext{margin-top:13px}
.after-keyword-group-safe-ext>b{display:block;margin-bottom:7px;color:#e8e8ec;font-size:14px}
.after-keyword-chips-safe-ext{display:flex;flex-wrap:wrap;gap:7px}
.after-keyword-chips-safe-ext button{min-height:36px;padding:7px 11px;background:#303035;color:#e8e8ed;border:1px solid #515159;border-radius:999px;font-size:13px}
.after-keyword-chips-safe-ext button.is-added{background:#294232;color:#c9f0d5;border-color:#52765e}

/* Student initials rail: accessible dark theme, maintain existing click targets */
.student-initial-rail-safe-v52{right:3px;width:32px;padding:5px 2px;background:#26262b!important;border:1px solid #505058;box-shadow:0 4px 16px #0005}
.student-initial-rail-safe-v52 button{width:26px;min-width:26px;min-height:23px;color:#f4f4f6!important;background:transparent!important;font-size:12px;font-weight:800;opacity:1}
.student-initial-rail-safe-v52 button:disabled{color:#797982!important;opacity:.65}
.student-initial-rail-safe-v52 button:focus-visible{outline:2px solid #a6d3b5;outline-offset:0;border-radius:5px}
/* Student detail skeleton: prevent bright placeholders during fetch */
#studentDetail .student-detail-skeleton-v2b23{background:#1c1c1f!important;border-color:#39393e!important}
#studentDetail .student-detail-skeleton-v2b23 .skeleton-line-v2b23,#studentDetail .student-detail-skeleton-v2b23 .skeleton-grid-v2b23 i{background:#34343a!important;box-shadow:none!important}
/* AFTER: reduce visual noise without removing manual input or saved values */
#view-after .after-keyword-group-safe-ext{margin-top:7px;padding:0;border:1px solid #424249;border-radius:11px;overflow:hidden}
#view-after .after-keyword-group-safe-ext summary{display:list-item;cursor:pointer;padding:11px 13px;color:#e9e9ed;font-size:14px;font-weight:700;background:#29292e}
#view-after .after-keyword-group-safe-ext[open] summary{border-bottom:1px solid #424249}
#view-after .after-keyword-chips-safe-ext{padding:11px;gap:6px}
#view-after .after-keyword-chips-safe-ext button{font-size:12px;min-height:34px}
#view-after textarea{min-height:68px;height:68px;resize:vertical}
#view-after textarea:focus{min-height:110px}

/* AFTER compact SAFE: manual fields retained in collapsible editor */
#view-after .after-manual-safe-ext{margin:12px 0;border:1px solid #45454c;border-radius:12px;background:#202024;padding:0 12px}
#view-after .after-manual-safe-ext>summary{cursor:pointer;padding:14px 2px;color:#e9e9ee;font-size:14px;font-weight:700}
#view-after .after-manual-safe-ext[open]{padding-bottom:12px}
#view-after .after-manual-safe-ext label{display:block;margin:10px 0}
#view-after .after-new-method-safe-ext{display:block;margin:14px 0 6px;color:#f3f3f6;font-weight:700}
#view-after .after-new-method-safe-ext textarea{min-height:115px;height:115px}
#view-after .after-method-help-safe-ext{margin:0 0 16px;font-size:12px}

/* SAFE retirement: hide obsolete ERP 600-song picker; retain DOM IDs for existing JS compatibility until SONG integration. */
#view-after #afterSongPickerToggleV66,#view-after #afterSongPickerV66{display:none!important}

/* AFTER: no detailed editor; preserve legacy field IDs for compatibility */
#view-after #afterLegacyFieldsSafeExt{display:none!important}
#view-after .after-effective-method-safe-ext,#view-after .after-new-method-safe-ext{display:block;margin:14px 0 10px;font-weight:700;color:#f3f3f6}
#view-after .after-effective-method-safe-ext textarea,#view-after .after-new-method-safe-ext textarea{min-height:110px;height:110px}

/* SONG native picker: stays in ERP; never navigates away */
#view-after .song-link-safe-ext{display:none!important}
.song-native-picker-safe{margin:12px 0;padding:14px;border:1px solid #45454c;border-radius:13px;background:#202024}
.song-native-head-safe{display:flex;align-items:center;justify-content:space-between;gap:12px}
.song-native-head-safe b{font-size:15px;color:#f5f5f6}
.song-native-head-safe button{background:#2d4836;color:#e8ffed;border:1px solid #52775d;min-width:95px}
#songNativePanelSafe[hidden]{display:none!important}
#songNativeQuerySafe{margin-top:12px;width:100%}
.song-native-results-safe{display:grid;gap:6px;max-height:360px;overflow:auto;overscroll-behavior:contain}
.song-native-item-safe{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:3px;padding:11px 12px;width:100%;height:auto;background:#2b2b30;color:#f5f5f6;border:1px solid #46464c}
.song-native-item-safe b{font-size:14px}.song-native-item-safe span{font-size:12px;color:#c2c2ca}

/* AFTER: full SONG app with existing Spotify controls, no page navigation */
#songNativePickerSafe[hidden]{display:none!important}
#songFullPanelSafe[hidden]{display:none!important}
.song-full-player-safe{margin:12px 0;padding:14px;border:1px solid #45454c;border-radius:13px;background:#202024}
.song-full-head-safe{display:flex;align-items:center;justify-content:space-between;gap:10px}
.song-full-head-safe b{font-size:15px;color:#f5f5f6}
.song-full-head-safe button{background:#2d4836;color:#e8ffed;border:1px solid #52775d;min-width:100px}
.song-full-frame-safe{width:100%;height:min(72vh,750px);min-height:450px;border:1px solid #45454c;border-radius:10px;background:#0b0d10}
.song-full-fallback-safe{display:block;margin-top:10px;font-size:13px;color:#b8d7ff;text-decoration:underline}

/* AFTER song basket: standalone SONG for Spotify, compact multi-select in ERP */
#songFullPlayerSafe[hidden],#songNativePickerSafe[hidden]{display:none!important}
#view-after .song-link-safe-ext{display:none!important}
.after-song-basket-safe{margin:12px 0;padding:14px;border:1px solid #48484f;border-radius:13px;background:#222226}
.after-song-basket-head-safe{display:flex;align-items:center;justify-content:space-between;gap:10px}
.after-song-basket-head-safe a{font-size:13px;color:#b8d7ff;text-decoration:underline}
.after-song-basket-item-safe{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #44444a;border-radius:10px;margin:8px 0;background:#2a2a30}
.after-song-basket-item-safe label{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.after-song-basket-item-safe label input{width:22px;min-width:22px;height:22px}
.after-song-basket-item-safe label span{display:flex;flex-direction:column;min-width:0;gap:4px}
.after-song-basket-item-safe label b{font-size:14px;overflow-wrap:anywhere}
.after-song-basket-item-safe label small{color:#bcbcc5}
.after-song-basket-item-safe button{font-size:12px;padding:8px;min-width:55px}

/* V9 SAFE: hide obsolete song navigation and legacy 600-song picker. Preserve underlying inputs/data. */
#view-after .song-link-safe-ext,#view-after #afterSongPickerToggleV66,#view-after #afterSongPickerV66,#view-after #songFullPlayerSafe,#view-after #songNativePickerSafe{display:none!important}

/* V10 AFTER library search */
#afterSongBasketSafe[hidden]{display:none!important}
.after-library-search-safe{margin:12px 0;padding:14px;border:1px solid #48484f;border-radius:13px;background:#222226}
.after-library-head-safe{display:flex;align-items:center;justify-content:space-between;gap:10px}
.after-library-head-safe a{font-size:13px;color:#b8d7ff}
.after-library-tabs-safe{display:flex;gap:8px;margin:14px 0}
.after-library-tabs-safe button{flex:1;font-size:13px}
#afterLibraryQuerySafe{width:100%;margin-bottom:10px}
#afterLibraryResultsSafe{max-height:330px;overflow:auto;display:grid;gap:7px}
.after-library-item-safe{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #48484f;border-radius:10px;background:#2b2b31}
.after-library-item-safe input{width:22px;min-width:22px;height:22px}
.after-library-item-safe span{display:flex;flex-direction:column;gap:3px;min-width:0}
.after-library-item-safe b{font-size:14px;overflow-wrap:anywhere}
.after-library-item-safe small{color:#bcbcc5}
