/* Member-only extension. Existing styles remain the dark-mode baseline. */
/* Match the original 48px input target despite native 'normal' line-height metrics. */
html[data-ip-theme="dark"] .ip-member .tr-wrap input:not([type="checkbox"]):not([type="radio"]) {min-height:48px;}
:root {
  --ip-bg:#11150f; --ip-surface:#222223; --ip-soft:#2a2a2c;
  --ip-text:#f5f5f7; --ip-muted:#aaaeb8; --ip-line:#393737;
  --ip-primary:#25c866; --ip-on-primary:#101810; --ip-success:#25c866;
  --ip-danger:#ff8b8f; --ip-radius:20px;
}
html[data-ip-theme="light"] {
  --ip-bg:#f5f7fa; --ip-surface:#fff; --ip-soft:#f5f7fa;
  --ip-text:#171b24; --ip-muted:#667386; --ip-line:#e6eaf0;
  --ip-primary:#246bfd; --ip-on-primary:#fff; --ip-success:#138254;
  --ip-danger:#c7353b;
  --primary:var(--ip-primary); --interactive:var(--ip-primary);
  --white:var(--ip-text); --secondary:var(--ip-muted); --secondary2:#667386;
  --surface:var(--ip-bg); --menuDark:var(--ip-surface); --line:var(--ip-line);
  --backdrop:#e6eaf0; --red:var(--ip-danger); --critical:var(--ip-danger);
  color-scheme:light; background:var(--ip-bg);
}
.ip-member .ip-header-inner { position:relative; }
.ip-member .ip-theme-toggle {
  width:44px;height:44px;min-width:44px;padding:10px;margin:0;display:grid;place-items:center;
  border:1px solid var(--ip-line);border-radius:50%;background:var(--ip-surface);color:var(--ip-text);
  position:absolute;right:16px;top:0;cursor:pointer;z-index:5;
}
.ip-member .ip-theme-toggle svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.ip-member .ip-theme-floating {position:fixed;top:calc(16px + env(safe-area-inset-top));right:16px;z-index:1010;}
.ip-member .ip-theme-settings {padding:24px;border:1px solid var(--ip-line);border-radius:var(--ip-radius);background:var(--ip-surface);margin:20px auto;max-width:992px;color:var(--ip-text);}
.ip-member .ip-theme-settings h5 {color:var(--ip-text);margin-bottom:16px;}
.ip-member .ip-theme-settings fieldset {border:0;margin:0;padding:0;}
.ip-member .ip-theme-settings legend {font-size:14px;float:none;width:auto;margin-bottom:12px;}
.ip-member .ip-theme-choices {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.ip-member .ip-theme-option {position:relative;display:flex;gap:10px;align-items:center;border:1px solid var(--ip-line);border-radius:12px;padding:14px;cursor:pointer;min-height:54px;color:var(--ip-text);font-size:14px;}
.ip-member .ip-theme-option:has(input:checked) {border-color:var(--ip-primary);box-shadow:0 0 0 1px var(--ip-primary);}
.ip-member .ip-theme-option input {width:18px;height:18px;accent-color:var(--ip-primary);margin:0;}
.ip-member .ip-theme-note {font-size:12px;line-height:1.6;color:var(--ip-muted);margin-top:12px;}
.ip-member .ip-theme-settings :focus-visible,.ip-member .ip-theme-toggle:focus-visible {outline:3px solid var(--ip-primary);outline-offset:3px;}

/* Light-mode type, shared controls and surfaces. No rules target admin documents. */
html[data-ip-theme="light"] .ip-member {background:var(--ip-bg);color:var(--ip-text);line-height:1.6;font-family:"Pretendard",-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif;-webkit-font-smoothing:antialiased;}
html[data-ip-theme="light"] .ip-member :is(h1,h2,h3,h4,h5,h6) {color:var(--ip-text);font-weight:650;letter-spacing:-.025em;}
html[data-ip-theme="light"] .ip-member :is(input,textarea,select) {background:var(--ip-soft);color:var(--ip-text);border-color:var(--ip-line);border-radius:12px;min-height:48px;}
html[data-ip-theme="light"] .ip-member :is(input,textarea,select):focus {outline:0;border-color:var(--ip-primary);box-shadow:0 0 0 3px #246bfd14;}
html[data-ip-theme="light"] .ip-member :is(input,textarea)::placeholder {color:var(--ip-muted);}
html[data-ip-theme="light"] .ip-member :where(button,.tf-btn.primary,.tr-button) {background:var(--ip-primary);border-color:var(--ip-primary);color:#fff;min-height:44px;border-radius:12px;}
html[data-ip-theme="light"] .ip-member :is(button,.tf-btn):disabled {opacity:.5;}
html[data-ip-theme="light"] .ip-member :is(a,button,input,select,textarea):focus-visible {outline:3px solid #246bfd;outline-offset:3px;}
html[data-ip-theme="light"] .ip-member :is(.text-secondary,.tr-muted,.cm-muted,.coin-name) {color:var(--ip-muted)!important;}
html[data-ip-theme="light"] .ip-member :is(.text-success,.increase,.market-change.increase) {color:var(--ip-success)!important;}
html[data-ip-theme="light"] .ip-member :is(.text-danger,.decrease,.market-change.decrease) {color:var(--ip-danger)!important;}
html[data-ip-theme="light"] .ip-member :is(.modal-content,.modal-body,.offcanvas,dialog,.dropdown-menu) {background:var(--ip-surface);color:var(--ip-text);border-color:var(--ip-line);}
html[data-ip-theme="light"] .ip-member dialog::backdrop {background:#101b3280;backdrop-filter:blur(4px);}
html[data-ip-theme="light"] .ip-member button.ip-theme-toggle {background:var(--ip-soft);color:var(--ip-text);border-color:var(--ip-line);border-radius:50%;}
html[data-ip-theme="light"] .ip-member .header-style2 {background:#fff;border-bottom:1px solid var(--ip-line);padding:10px 0;}
html[data-ip-theme="light"] .ip-member .header-style2 .tf-container {max-width:1100px;}
html[data-ip-theme="light"] .ip-member .header-style2 .justify-content-center {justify-content:flex-start!important;padding:0!important;height:44px;}
html[data-ip-theme="light"] .ip-member .header-style2 img[src="/logo3.png"] {height:auto!important;width:142px!important;max-height:44px;object-fit:contain;}
html[data-ip-theme="light"] .ip-member > :is(.pt-68,.pt-80) {padding-top:90px;max-width:1100px;margin:auto;padding-bottom:calc(104px + env(safe-area-inset-bottom));}
html[data-ip-theme="light"] .ip-member > div > .bg-menuDark.tf-container {margin-bottom:20px;padding:24px;border:1px solid var(--ip-line);border-radius:var(--ip-radius);max-width:calc(100% - 48px);}
html[data-ip-theme="light"] .ip-member > div > .bg-menuDark.tf-container > .pt-12 {padding:0!important;margin-top:0!important;}
html[data-ip-theme="light"] .ip-member .menubar-footer {background:#fff;border-top:1px solid var(--ip-line);padding:8px 12px calc(8px + env(safe-area-inset-bottom));}
html[data-ip-theme="light"] .ip-member .menubar-footer .inner-bar {max-width:1052px;margin-bottom:0;}
html[data-ip-theme="light"] .ip-member .menubar-footer .inner-bar li {flex:1;min-width:0;width:20%;}
html[data-ip-theme="light"] .ip-member .menubar-footer .inner-bar li a {min-height:50px;justify-content:center;gap:5px;font-size:11px;line-height:1.2;color:var(--ip-muted);white-space:nowrap;}
html[data-ip-theme="light"] .ip-member .menubar-footer .inner-bar li a .icon {color:inherit!important;font-size:21px;}
html[data-ip-theme="light"] .ip-member .menubar-footer .inner-bar li.active a {color:var(--ip-primary);font-weight:650;}

/* Wallet: balance first, then actions and assets. All existing IDs and links retained. */
html[data-ip-theme="light"] .ip-wallet .ip-wallet-hero {padding:30px!important;}
html[data-ip-theme="light"] .ip-wallet #wallet-display-card h5 {font-size:14px;}
html[data-ip-theme="light"] .ip-wallet #wallet-display-card .text-primary {color:var(--ip-muted)!important;}
html[data-ip-theme="light"] .ip-wallet #wallet-display-current {color:var(--ip-muted)!important;font-size:12px!important;}
html[data-ip-theme="light"] .ip-wallet #wallet-currency-toggle {border:1px solid var(--ip-line)!important;color:var(--ip-primary)!important;background:var(--ip-soft)!important;padding:8px 14px!important;min-height:36px;font-weight:650;}
html[data-ip-theme="light"] .ip-wallet #wallet-total {display:block;color:var(--ip-text);font-size:clamp(28px,4.2vw,46px);line-height:1.2;letter-spacing:-.045em;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
html[data-ip-theme="light"] .ip-wallet #wallet-fx-note {color:var(--ip-muted)!important;margin-top:12px;max-width:72ch;}
html[data-ip-theme="light"] .ip-wallet #wallet-krw-available {color:var(--ip-text)!important;font-weight:650;overflow-wrap:anywhere;}
html[data-ip-theme="light"] .ip-wallet .wallet-actions {display:flex;gap:32px;justify-content:flex-start;margin-top:24px;}
html[data-ip-theme="light"] .ip-wallet .btn-wallet {background:transparent;border:0;color:var(--ip-text);font-size:14px;font-weight:600;display:flex;flex-direction:column;gap:8px;align-items:center;flex:0 1 96px;padding:0;}
.ip-action-icon {display:none;}
html[data-ip-theme="light"] .ip-wallet .ip-action-icon {display:grid;place-items:center;border-radius:50%;background:#edf3ff;color:var(--ip-primary);width:56px;height:56px;font-size:25px;font-weight:400;}
html[data-ip-theme="light"] .ip-wallet .btn-wallet:first-child .ip-action-icon {background:var(--ip-primary);color:#fff;}
html[data-ip-theme="light"] .ip-wallet .ip-action-original {display:none;}
html[data-ip-theme="light"] .ip-wallet .coin-box {border:1px solid var(--ip-line);background:var(--ip-surface);box-shadow:none;border-radius:16px;padding:18px;}
html[data-ip-theme="light"] .ip-wallet .coin-box .blur {display:none;}
html[data-ip-theme="light"] .ip-wallet .coin-box .coin-price {gap:6px;flex-wrap:wrap;color:var(--ip-text);}
html[data-ip-theme="light"] .ip-wallet .coin-box .market-price {font-size:16px;font-weight:650;line-height:1.4;overflow-wrap:anywhere;}
html[data-ip-theme="light"] .ip-wallet .coin-box .coin-logo .logo {width:32px;height:32px;}
html[data-ip-theme="light"] .ip-wallet .coin-box .coin-chart {height:54px;}
html[data-ip-theme="light"] .ip-wallet .coin-table-header {color:var(--ip-muted);border-color:var(--ip-line);padding:12px 0;font-size:12px;}
html[data-ip-theme="light"] .ip-wallet .coin-table-row {padding:18px 0;border-color:var(--ip-line);color:var(--ip-text);gap:8px;}
html[data-ip-theme="light"] .ip-wallet .coin-table-row .coin-icon {width:36px;height:36px;margin-right:10px;}
html[data-ip-theme="light"] .ip-wallet .coin-symbol {font-size:15px;line-height:1.5;}
html[data-ip-theme="light"] .ip-wallet .coin-name {font-size:12px;line-height:1.6;}
html[data-ip-theme="light"] .ip-wallet .coin-table-row :is(.coin-col-amount,.coin-col-locked,.coin-col-krw,.coin-col-price,.coin-col-volume) {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:13px;line-height:1.6;font-variant-numeric:tabular-nums;}
html[data-ip-theme="light"] .ip-wallet .coin-btn {background:var(--ip-soft);color:var(--ip-text)!important;border-radius:8px;font-size:12px;}
html[data-ip-theme="light"] .ip-wallet .coin-btn.increase {color:var(--ip-success)!important;background:#e9f7ef;}
html[data-ip-theme="light"] .ip-wallet .coin-btn.decrease {color:var(--ip-danger)!important;background:#fff0f0;}
html[data-ip-theme="light"] .ip-wallet .btn-load-more {background:var(--ip-soft);border-color:var(--ip-line);color:var(--ip-muted);}
html[data-ip-theme="light"] .ip-member :is(.menu-tab-v3,.menu-tab-v2) {border-color:var(--ip-line);}
html[data-ip-theme="light"] .ip-member :is(.menu-tab-v3,.menu-tab-v2) .nav-link {color:var(--ip-muted);}
html[data-ip-theme="light"] .ip-member :is(.menu-tab-v3,.menu-tab-v2) .nav-link.active {color:var(--ip-primary);border-color:var(--ip-primary);}

/* Authentication and account */
html[data-ip-theme="light"] .ip-member .center-wrap {min-height:100dvh;height:auto;padding:80px 24px 40px;}
html[data-ip-theme="light"] .ip-member :is(.login-box,.register-box) {background:var(--ip-surface);border:1px solid var(--ip-line);border-radius:24px;padding:36px;max-width:460px;}
html[data-ip-theme="light"] .ip-member :is(.login-box,.register-box) img[src="/logo3.png"] {width:190px!important;height:auto!important;max-width:100%;margin-bottom:28px!important;}
html[data-ip-theme="light"] .ip-member :is(.login-box,.register-box) h2 {font-size:26px;margin:8px 0 28px;}
html[data-ip-theme="light"] .ip-member .login-box a[href="/register"] {background:var(--ip-surface)!important;color:var(--ip-primary)!important;border-color:var(--ip-line)!important;}
html[data-ip-theme="light"] .ip-member .ip-theme-settings {max-width:calc(100% - 48px);}

/* Transfer, receive, shared records */
html[data-ip-theme="light"] .ip-member .tr-wrap {max-width:900px;padding:32px 24px 100px;}
html[data-ip-theme="light"] .ip-member .tr-wrap > h1 {font-size:28px;margin-top:32px;}
html[data-ip-theme="light"] .ip-member .tr-wrap > p {color:var(--ip-muted);font-size:14px;line-height:1.8;max-width:70ch;}
html[data-ip-theme="light"] .ip-member .tr-card {background:var(--ip-surface);border-color:var(--ip-line);border-radius:20px;padding:24px;margin:24px 0;}
html[data-ip-theme="light"] .ip-member .tr-wrap label {font-size:14px;font-weight:550;margin:18px 0 8px;}
html[data-ip-theme="light"] .ip-member .tr-wrap :is(input,select,textarea) {background:var(--ip-soft);border-color:var(--ip-line);color:var(--ip-text);}
html[data-ip-theme="light"] .ip-member .tr-wrap dialog {background:var(--ip-surface);border-color:var(--ip-line);color:var(--ip-text);max-height:90dvh;overflow:auto;}
html[data-ip-theme="light"] .ip-member :is(.tr-table,.table) {color:var(--ip-text);}
html[data-ip-theme="light"] .ip-member :is(.tr-table td,.tr-table th) {border-color:var(--ip-line);}

/* Community: styles isolated from admin's shared community.css. */
html[data-ip-theme="light"] .ip-member.cm-page {background:var(--ip-bg);color:var(--ip-text);}
html[data-ip-theme="light"] .ip-member .cm-wrap {padding-top:96px;max-width:1100px;padding-bottom:calc(110px + env(safe-area-inset-bottom));}
html[data-ip-theme="light"] .ip-member :is(.cm-card,.cm-dialog) {background:var(--ip-surface);border-color:var(--ip-line);border-radius:20px;color:var(--ip-text);}
html[data-ip-theme="light"] .ip-member .cm-card {padding:24px;}
html[data-ip-theme="light"] .ip-member :is(.cm-eyebrow,.cm-post-values strong) {color:var(--ip-primary);}
html[data-ip-theme="light"] .ip-member :is(.cm-post h3,.cm-message-head strong) {color:var(--ip-text);}
html[data-ip-theme="light"] .ip-member :is(.cm-disclaimer,.cm-post-meta,.cm-message-head,.cm-empty,.cm-dialog label,.cm-detail-values dt) {color:var(--ip-muted);}
html[data-ip-theme="light"] .ip-member :is(.cm-post,.cm-comment,.cm-comments-title,.cm-chat-form) {border-color:var(--ip-line)!important;}
html[data-ip-theme="light"] .ip-member :is(.cm-online,.cm-chip) {background:#e9f7ef;color:#157647;border-color:#d0eddd;}
html[data-ip-theme="light"] .ip-member .cm-online span {color:var(--ip-success);}
html[data-ip-theme="light"] .ip-member .cm-chip.done {background:var(--ip-soft);color:var(--ip-muted);}
html[data-ip-theme="light"] .ip-member .cm-notices {background:#edf3ff;border-color:#dce7ff;color:#31558e;}
html[data-ip-theme="light"] .ip-member .cm-notices summary {color:#244a87;}
html[data-ip-theme="light"] .ip-member :is(.cm-tabs,.cm-detail-values) {background:var(--ip-soft);}
html[data-ip-theme="light"] .ip-member .cm-tabs button {background:transparent;color:var(--ip-muted);}
html[data-ip-theme="light"] .ip-member .cm-tabs button[aria-selected="true"] {background:var(--ip-surface);color:var(--ip-primary);box-shadow:0 1px 4px #1524460a;}
html[data-ip-theme="light"] .ip-member :is(.cm-quiet,.cm-dialog .cm-section-head button) {color:var(--ip-muted);background:var(--ip-soft);border:0;}
html[data-ip-theme="light"] .ip-member :is(.cm-page button,.cm-dialog button) {border-color:var(--ip-line);}
html[data-ip-theme="light"] .ip-member .cm-post {color:var(--ip-text);}
html[data-ip-theme="light"] .ip-member .cm-message .cm-body {background:var(--ip-soft);color:var(--ip-text);}
html[data-ip-theme="light"] .ip-member .cm-message.mine .cm-body {background:#edf3ff;color:#183d80;}
html[data-ip-theme="light"] .ip-member .cm-dialog .cm-section-head {background:var(--ip-surface);}
html[data-ip-theme="light"] .ip-member .cm-dialog :is(input,select,textarea) {background:var(--ip-soft);color:var(--ip-text);border-color:var(--ip-line);}
html[data-ip-theme="light"] .ip-member .cm-reply {border-left-color:#cadbff;}
html[data-ip-theme="light"] .ip-member :is(.cm-form-error,#cm-status) {color:var(--ip-danger);}
html[data-ip-theme="light"] .ip-member .cm-post-list {scrollbar-color:#c9d1dd transparent;}

/* Existing page-specific cards and inline text colors. */
html[data-ip-theme="light"] .ip-member :is(.section-box,.trade-box,.accent-box,.cs-card,.form-box,.info-card,.notice-box,.ticket-box,.message-box,.deposit-box,.withdraw-box,.query-card) {background:var(--ip-surface);border-color:var(--ip-line);color:var(--ip-text);border-radius:16px;}
html[data-ip-theme="light"] .ip-member :is(.cs-title-main,.notice-title,.cs-table-row,.cs-title,.ticket-title) {color:var(--ip-text);}
html[data-ip-theme="light"] .ip-member :is(.cs-table-header,.cs-title-sub,.notice-meta,.cs-col-date,.cs-empty) {color:var(--ip-muted);}
html[data-ip-theme="light"] .ip-member :is(.cs-item,.cs-table-row,.cs-table-header) {border-color:var(--ip-line);}
html[data-ip-theme="light"] .ip-member :is(.btn-cs-new,.btn-submit) {background:var(--ip-primary);color:#fff;border-color:var(--ip-primary);}
html[data-ip-theme="light"] .ip-member :is([style*="color:white"],[style*="color: white"],[style*="color:#fff"],[style*="color: #fff"],[style*="color: #e5e7eb"]) {color:var(--ip-text)!important;}
html[data-ip-theme="light"] .ip-member :is([style*="color:#aaa"],[style*="color: #aaa"],[style*="color:#9ca3af"],[style*="color: #9ca3af"]) {color:var(--ip-muted)!important;}
html[data-ip-theme="light"] .ip-member :is(.form-control,.form-select) {background:var(--ip-soft)!important;color:var(--ip-text)!important;border:1px solid var(--ip-line)!important;}
html[data-ip-theme="light"] .ip-member :is(.form-control,.form-select):focus {border-color:var(--ip-primary)!important;}
html[data-ip-theme="light"] .ip-member :is(.notice-content,.ticket-message,.message-content,.recovery-result,.recovery-title) {color:var(--ip-text);}
html[data-ip-theme="light"] .ip-member :is(.cs-badge-wait,.status-pending) {color:#865409;background:#fff5de;border-color:#f3e2bb;}
html[data-ip-theme="light"] .ip-member :is(.cs-badge-answer,.status-completed) {color:#137747;background:#e9f7ef;border-color:#d0eddd;}
html[data-ip-theme="light"] .ip-wallet .market-change.text-primary {color:var(--ip-success)!important;}
html[data-ip-theme="light"] .ip-wallet .market-change.text-secondary {color:var(--ip-danger)!important;}
html[data-ip-theme="light"] .ip-member input.field-input,html[data-ip-theme="light"] .ip-member input.field-input:is(:focus,:active,:focus-visible) {background:var(--ip-soft)!important;color:var(--ip-text);border:1px solid var(--ip-line)!important;}
html[data-ip-theme="light"] .ip-member input.field-input:focus-visible {outline:2px solid var(--ip-primary)!important;outline-offset:2px;}
html[data-ip-theme="light"] .ip-member .ip-theme-option input {min-height:0;}
html[data-ip-theme="light"] .ip-member .footer-fixed-v2 {background:#edf3ff;color:var(--ip-text);border-top:1px solid #dce7ff;}
html[data-ip-theme="light"] .ip-member .chat-user .chat-bubble {background:#edf3ff;color:#183d80;}
html[data-ip-theme="light"] .ip-member .chat-admin .chat-bubble {background:var(--ip-soft);color:var(--ip-text);border-color:var(--ip-line);}

@media(min-width:1100px) {
  html[data-ip-theme="light"] .ip-wallet > .pt-68 {display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-left:24px;padding-right:24px;}
  html[data-ip-theme="light"] .ip-wallet > .pt-68 > .tf-container {max-width:100%;width:100%;margin:0;}
  html[data-ip-theme="light"] .ip-wallet :is(.wallet-owned,.coin-market-info) {grid-column:1/-1;}
}
@media(max-width:767px) {
  html[data-ip-theme="light"] .ip-member > div > .bg-menuDark.tf-container {max-width:calc(100% - 28px);padding:20px;margin-bottom:14px;border-radius:18px;}
  html[data-ip-theme="light"] .ip-member > :is(.pt-68,.pt-80) {padding-top:82px;}
  html[data-ip-theme="light"] .ip-wallet .ip-wallet-hero {padding:24px 20px!important;}
  html[data-ip-theme="light"] .ip-wallet .wallet-actions {justify-content:center;gap:44px;}
  html[data-ip-theme="light"] .ip-wallet .coin-box {padding:12px;}
  html[data-ip-theme="light"] .ip-wallet .coin-box .market-price {font-size:14px;}
  html[data-ip-theme="light"] .ip-wallet .wallet-owned .coin-table-header {display:none;}
  html[data-ip-theme="light"] .ip-wallet .wallet-owned .coin-table-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:6px 14px;}
  html[data-ip-theme="light"] .ip-wallet .wallet-owned .coin-col-asset {grid-column:1;grid-row:1/3;}
  html[data-ip-theme="light"] .ip-wallet .wallet-owned .coin-col-amount {grid-column:2;grid-row:1;font-size:15px;font-weight:650;}
  html[data-ip-theme="light"] .ip-wallet .wallet-owned .coin-col-krw {grid-column:2;grid-row:2;color:var(--ip-muted);}
  html[data-ip-theme="light"] .ip-wallet .wallet-owned .coin-col-locked {grid-column:1;grid-row:3;text-align:left!important;}
  html[data-ip-theme="light"] .ip-wallet .wallet-owned .coin-col-locked::before {content:'락업 ';color:var(--ip-muted);font-size:11px;}
  html[data-ip-theme="light"] .ip-wallet .wallet-owned .coin-col-price {grid-column:2;grid-row:3;}
  html[data-ip-theme="light"] .ip-wallet .wallet-owned .coin-col-price::before {content:'현재가 ';color:var(--ip-muted);font-size:11px;}
  html[data-ip-theme="light"] .ip-member :is(.login-box,.register-box) {padding:28px 24px;border:0;}
  html[data-ip-theme="light"] .ip-member .center-wrap {padding:76px 0 30px;background:#fff;align-items:flex-start;}
  html[data-ip-theme="light"] .ip-member .ip-theme-settings {max-width:calc(100% - 28px);padding:20px;}
  html[data-ip-theme="light"] .ip-member .tr-wrap {padding:24px 16px 90px;}
  html[data-ip-theme="light"] .ip-member .tr-card {padding:20px 16px;}
  html[data-ip-theme="light"] .ip-member .cm-card {padding:18px;}
  html[data-ip-theme="light"] .ip-member .cm-wrap {padding-top:88px;}
}
@media(prefers-reduced-motion:reduce) {.ip-member *, .ip-member *::before,.ip-member *::after {scroll-behavior:auto!important;transition:none!important;animation:none!important;}}

/* IN-POCKET wallet layout refinement. Shared geometry; existing theme colors. */
html[data-ip-theme] body.ip-member.ip-wallet {height:100dvh;overflow:hidden;}
html[data-ip-theme] body.ip-member.ip-wallet > .pt-68 {
  display:flex;flex-direction:column;gap:20px;width:100%;max-width:1168px;
  position:fixed;top:64px;bottom:calc(72px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);
  margin:0;padding:24px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;
}
html[data-ip-theme] body.ip-member.ip-wallet > .pt-68 > .tf-container {
  width:100%;max-width:none;margin:0;padding:20px 24px;
  border:1px solid var(--line);border-radius:20px;min-width:0;flex-shrink:0;
}
html[data-ip-theme] body.ip-member.ip-wallet .header-style2 {height:64px;padding:10px 0;box-sizing:border-box;width:100%;max-width:none;}
html[data-ip-theme] body.ip-member.ip-wallet .header-style2 .justify-content-center {height:44px;padding-top:0!important;padding-bottom:0!important;}
html[data-ip-theme] body.ip-member.ip-wallet > .pt-68 > .tf-container > .pt-12 {padding:0!important;margin:0!important;}
html[data-ip-theme] body.ip-member.ip-wallet .header-style2 .tf-container {max-width:1168px;padding-left:24px;padding-right:24px;}
html[data-ip-theme] body.ip-member.ip-wallet .ip-wallet-hero {padding:24px!important;}
html[data-ip-theme] body.ip-member.ip-wallet #wallet-display-card {gap:12px!important;align-items:center!important;}
html[data-ip-theme] body.ip-member.ip-wallet #wallet-display-card h5 {font-size:14px;margin:0;}
html[data-ip-theme] body.ip-member.ip-wallet #wallet-display-card > div {margin-left:auto;flex-shrink:0;}
html[data-ip-theme] body.ip-member.ip-wallet .ip-wallet-hero h1 {margin:14px 0 8px!important;}
html[data-ip-theme] body.ip-member.ip-wallet #wallet-total {font-size:clamp(27px,4vw,40px);line-height:1.2;letter-spacing:-.035em;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
html[data-ip-theme] body.ip-member.ip-wallet #wallet-fx-note {font-size:11px!important;line-height:1.6!important;margin:0 0 6px;max-width:none;}
html[data-ip-theme] body.ip-member.ip-wallet .ip-wallet-hero .text-small {margin:6px 0 0!important;line-height:1.6;overflow-wrap:anywhere;}
html[data-ip-theme] body.ip-member.ip-wallet #wallet-krw-available {font-variant-numeric:tabular-nums;}
html[data-ip-theme] body.ip-member.ip-wallet .wallet-actions {display:grid;grid-template-columns:1fr 1fr;gap:16px;width:min(100%,440px);margin:18px auto 0!important;}
html[data-ip-theme] body.ip-member.ip-wallet .btn-wallet {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:4px 12px;background:transparent;border:0;color:var(--white);font-size:14px;line-height:1.4;min-width:0;}
html[data-ip-theme] body.ip-member.ip-wallet .ip-action-icon {display:grid;place-items:center;width:48px;height:48px;border-radius:50%;font-size:24px;line-height:1;background:var(--ip-soft);color:var(--primary);}
html[data-ip-theme] body.ip-member.ip-wallet .btn-wallet:first-child .ip-action-icon {background:var(--primary);color:#fff;}
html[data-ip-theme] body.ip-member.ip-wallet .ip-action-original {display:none;}
html[data-ip-theme] body.ip-member.ip-wallet .ip-market-list {margin-top:14px!important;min-width:0;}
html[data-ip-theme] body.ip-member.ip-wallet .ip-market-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch;}
html[data-ip-theme] body.ip-member.ip-wallet .ip-market-item {min-width:0;}
html[data-ip-theme] body.ip-member.ip-wallet .coin-box {display:flex!important;flex-direction:column;gap:10px;height:100%;min-width:0;padding:16px;position:relative;overflow:hidden;border:1px solid var(--line);border-radius:14px;}
html[data-ip-theme] body.ip-member.ip-wallet .coin-box > :not(.blur) {position:relative;z-index:1;}
html[data-ip-theme] body.ip-member.ip-wallet .coin-logo {display:flex;align-items:center;gap:10px;min-height:36px;}
html[data-ip-theme] body.ip-member.ip-wallet .coin-logo .logo {width:32px;height:32px;flex:0 0 32px;margin:0;}
html[data-ip-theme] body.ip-member.ip-wallet .coin-logo .title {min-width:0;}
html[data-ip-theme] body.ip-member.ip-wallet .coin-logo .title p {font-size:14px;line-height:1.4;margin:0;}
html[data-ip-theme] body.ip-member.ip-wallet .coin-logo .title span {font-size:11px;line-height:1.4;}
html[data-ip-theme] body.ip-member.ip-wallet .coin-chart {height:auto;min-height:0;margin:0!important;}
/* Existing chart loaders may append a second canvas; reserve space for one chart. */
html[data-ip-theme] body.ip-member.ip-wallet .coin-chart > div > .apexcharts-canvas ~ .apexcharts-canvas {display:none;}
html[data-ip-theme] body.ip-member.ip-wallet .coin-price {display:flex!important;flex-direction:column;align-items:flex-start;justify-content:flex-start!important;gap:4px;min-width:0;}
html[data-ip-theme] body.ip-member.ip-wallet .market-price {white-space:nowrap;overflow-wrap:normal;font-size:17px;font-weight:650;line-height:1.4;max-width:100%;font-variant-numeric:tabular-nums;}
html[data-ip-theme] body.ip-member.ip-wallet .market-change {font-size:12px;line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums;}
/* One column definition for both the holdings header and every data row. */
html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-table-header,
html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-table-row {display:grid;grid-template-columns:minmax(150px,1.25fr) minmax(110px,1fr) minmax(100px,.85fr) minmax(130px,1.1fr) minmax(120px,1fr);gap:16px;align-items:center;}
html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-table-header {padding:12px 0 10px;font-size:11px;}
html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-table-row {padding:12px 0;border-bottom:1px solid var(--line);}
html[data-ip-theme] body.ip-member.ip-wallet #list-owned > li {margin-top:0!important;}
html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-table-row > div {min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums;}
html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-table-row .coin-icon {width:32px;height:32px;margin-right:10px;flex:0 0 32px;}
html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-symbol {font-size:14px;line-height:1.4;}
html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-name {font-size:11px;line-height:1.4;}
html[data-ip-theme] body.ip-member.ip-wallet #list-owned > li:last-child .coin-table-row {border-bottom:0;padding-bottom:0;}
html[data-ip-theme] body.ip-member.ip-wallet .coin-market-info .coin-table-row {padding:12px 0;}
html[data-ip-theme] body.ip-member.ip-wallet .coin-market-info li {margin-top:0!important;}
html[data-ip-theme] body.ip-member.ip-wallet .menubar-footer {width:100%;height:calc(72px + env(safe-area-inset-bottom));min-height:72px;padding:8px 16px calc(8px + env(safe-area-inset-bottom));box-sizing:border-box;display:flex;align-items:center;}
html[data-ip-theme] body.ip-member.ip-wallet .menubar-footer .inner-bar {width:100%;max-width:1120px;margin:0 auto;padding:0;display:flex;}
html[data-ip-theme] body.ip-member.ip-wallet .menubar-footer .inner-bar li {width:20%;flex:1;min-width:0;}
html[data-ip-theme] body.ip-member.ip-wallet .menubar-footer .inner-bar li a {display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:48px;gap:5px;font-size:11px;line-height:1.2;white-space:nowrap;}
html[data-ip-theme] body.ip-member.ip-wallet :is(a,button,input) {scroll-margin-bottom:calc(96px + env(safe-area-inset-bottom));}
@media(max-width:1023px) {
  html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-table-header {display:none;}
  html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-table-row {grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:4px 16px;padding:12px 0;}
  html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-col-asset {grid-column:1;grid-row:1/3;}
  html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-col-amount {grid-column:2;grid-row:1;font-weight:650;font-size:14px;}
  html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-col-krw {grid-column:2;grid-row:2;color:var(--secondary);}
  html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-col-locked {grid-column:1;grid-row:3;text-align:left!important;font-size:11px;}
  html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-col-price {grid-column:2;grid-row:3;font-size:11px;}
  html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-col-locked::before {content:'락업 ';color:var(--secondary);font-size:11px;}
  html[data-ip-theme] body.ip-member.ip-wallet .wallet-owned .coin-col-price::before {content:'현재가 ';color:var(--secondary);font-size:11px;}
}
@media(max-width:639px) {
  html[data-ip-theme] body.ip-member.ip-wallet > .pt-68 {padding:16px;gap:16px;}
  html[data-ip-theme] body.ip-member.ip-wallet > .pt-68 > .tf-container {padding:18px 16px;border-radius:18px;}
  html[data-ip-theme] body.ip-member.ip-wallet .ip-wallet-hero {padding:20px 16px!important;}
  html[data-ip-theme] body.ip-member.ip-wallet .wallet-actions {margin-top:14px!important;gap:16px;}
  html[data-ip-theme] body.ip-member.ip-wallet .ip-market-list {overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:6px;}
  html[data-ip-theme] body.ip-member.ip-wallet .ip-market-grid {grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(220px,78%);gap:12px;}
  html[data-ip-theme] body.ip-member.ip-wallet .ip-market-item {scroll-snap-align:start;}
  html[data-ip-theme] body.ip-member.ip-wallet .market-price {font-size:16px;}
  html[data-ip-theme] body.ip-member.ip-wallet .header-style2 .tf-container {padding-left:16px;padding-right:16px;}
}

/* Member bottom navigation visibility only. Remove this block to restore the retained airdrop item. */
html[data-ip-theme] body.ip-member .menubar-footer .inner-bar{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:0;}
html[data-ip-theme] body.ip-member .menubar-footer .inner-bar>li{width:auto!important;min-width:0;}
html[data-ip-theme] body.ip-member .menubar-footer .inner-bar>li:has(>a[href="/airdrop"]){display:none!important;}
html[data-ip-theme] body.ip-member .menubar-footer .inner-bar>li>a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:48px;white-space:nowrap;}
