:root { --red: #bd1530; --deep-red: #96182c; --ink: #191b20; --muted: #707580; --line: #e6e8ed; --soft: #f5f6f8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overflow-anchor: none; background: #0b0c0e; color: var(--ink); font-family: Arial, "Malgun Gothic", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #2c879d; outline-offset: 3px; }
p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { letter-spacing: 0; word-break: keep-all; overflow-wrap: break-word; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: block; flex: 0 0 auto; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.preview-caption { padding: 18px 10px 0; color: #e7e8ec; font-size: 10px; text-align: center; }
.preview-caption > span { margin-left: 8px; color: #969ba5; }
.phone-app { width: min(460px, calc(100% - 20px)); min-height: calc(100vh - 75px); margin: 14px auto 30px; overflow: hidden; border: 7px solid var(--deep-red); border-radius: 34px; background: #fff; }
.phone-notch { width: 54px; height: 5px; margin: 12px auto 0; border-radius: 6px; background: #dfe0e4; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 17px 18px 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; font-size: 13px; font-weight: 800; }
.brand > span:last-child { min-width: 0; }
.brand small { display: block; margin-top: 5px; color: #6b7280; font-size: 8px; font-weight: 500; }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 5px; background: var(--red); color: #fff; font-size: 21px; }
.header-tools { display: flex; gap: 1px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 36px; padding: 7px; border: 0; border-radius: 5px; background: transparent; color: #6b7280; text-decoration: none; }
.icon-button:hover { background: #f1f2f5; color: var(--ink); }
.app-content { padding: 24px 20px 0; }
.view-heading { margin-bottom: 21px; }
.eyebrow { margin-bottom: 8px; color: var(--red); font-size: 10px; font-weight: 800; }
.view-heading h1 { font-size: 25px; line-height: 1.4; }
.view-heading > p:last-child { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.member-label { color: var(--red); font-size: 10px; font-weight: 700; white-space: nowrap; }
.menu-heading { margin-bottom: 23px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.home-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.home-ebook { display: flex; flex-direction: column; min-width: 0; }
.home-ebook > img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 792; object-fit: contain; border-radius: 4px; }
.home-book-title { min-height: 44px; margin: 14px 0; font-size: 13px; line-height: 1.7; text-align: center; }
.home-resource-button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; padding: 10px 7px; border: 0; border-radius: 5px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; }
.home-ebook .home-resource-button { margin-top: auto; }
.home-resource-button .icon { width: 15px; height: 15px; }
.home-resource-button > span { min-width: 0; overflow-wrap: anywhere; }
.home-resource-button:hover { background: var(--deep-red); }
.home-room { margin: 32px 0; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.home-room-preview { margin: 0; }
.home-room-preview img { display: block; width: min(100%, 280px); height: auto; margin: 0 auto; border-radius: 6px; }
.home-room-preview figcaption { margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.8; text-align: center; }
.home-room h2 { margin: 16px 0; font-size: 18px; line-height: 1.6; text-align: center; }
.home-room .home-resource-button { font-size: 13px; }
.menu-heading h2 { font-size: 23px; line-height: 1.4; }
.home-menu-grid { display: grid; gap: 14px; padding-bottom: 8px; }
.home-menu { display: grid; grid-template-columns: 48px minmax(0, 1fr) 19px; align-items: center; gap: 14px; width: 100%; min-height: 120px; padding: 19px 17px; border: 1px solid #e0e3e9; border-radius: 8px; background: #fff; color: var(--ink); text-align: left; }
.home-menu:hover { border-color: #dca6b1; background: #fffafb; }
.menu-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 7px; background: #fff0f3; color: var(--red); }
.menu-icon .icon { width: 27px; height: 27px; }
.market-menu .menu-icon { background: #edf7f8; color: #247580; }
.market-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.market-tabs button { min-height: 44px; padding: 10px; border: 1px solid #e0e4ea; border-radius: 6px; background: #fff; color: #6b7280; font-size: 13px; font-weight: 700; }
.market-tabs [aria-selected="true"] { border-color: var(--red); background: var(--red); color: #fff; }
.market-sync { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 38px; margin-bottom: 16px; }
.market-sync p { color: #747c89; font-size: 9px; line-height: 1.8; }
.market-sync .icon { width: 17px; height: 17px; }
.market-sync button:disabled { cursor: default; opacity: .45; }
.market-error { margin-bottom: 17px; padding: 12px; border-left: 3px solid var(--red); background: #fff3f5; color: #8b3344; font-size: 11px; line-height: 1.9; }
.market-report-heading { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.market-report-label { margin-bottom: 10px; color: var(--red); font-size: 11px; font-weight: 700; }
.market-report-heading h2 { font-size: 26px; line-height: 1.4; }
.market-basis { margin-top: 10px; color: #727a87; font-size: 10px; line-height: 1.8; }
.market-date-warning { margin-top: 15px; padding: 11px 12px; background: #f5f6f8; color: #697482; font-size: 10px; line-height: 1.9; }
.market-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.market-section h3 { font-size: 16px; line-height: 1.6; }
.market-section-note { margin: 8px 0 9px; color: #7d8592; font-size: 10px; line-height: 1.8; }
.market-index-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid #eff1f4; }
.market-index-row:last-child { border-bottom: 0; padding-bottom: 0; }
.market-index-row > span { font-size: 11px; color: #626d7c; }
.index-value { font-size: 19px; }
.index-change { min-width: 52px; font-size: 11px; text-align: right; }
.index-change.up { color: #b91d37; }
.index-change.down { color: #2d67ac; }
.market-issues { display: grid; gap: 18px; list-style: none; padding: 0; margin: 19px 0 0; }
.market-issues li { display: flex; align-items: flex-start; gap: 11px; }
.issue-number { padding-top: 2px; color: var(--red); font-size: 10px; font-weight: 700; }
.market-issues li > div { min-width: 0; }
.issue-title { color: #333f50; font-size: 12px; line-height: 1.9; text-decoration: none; overflow-wrap: anywhere; }
a.issue-title:hover { color: var(--red); text-decoration: underline; }
.issue-source { margin-top: 7px; color: #818997; font-size: 10px; line-height: 1.7; }
.market-body { margin-top: 14px; color: #5f6c7c; font-size: 12px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.market-checkpoints { margin-top: 22px; padding: 17px; border: 0; background: #eff6f7; }
.market-checkpoints h3 { color: #29676e; font-size: 14px; }
.market-checkpoints .market-body { margin-top: 8px; font-size: 11px; }
.market-source-warning { margin-top: 18px; color: #7e8794; font-size: 10px; line-height: 1.9; }
.market-original { margin-top: 22px; padding: 15px 0; border-top: 1px solid var(--line); }
.market-original summary, .market-history > summary { cursor: pointer; color: #526274; font-size: 12px; font-weight: 700; }
.market-original .market-body { font-size: 11px; }
.market-post-link { margin-top: 8px; text-decoration: none; }
.market-history { margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); }
.market-history-entry { padding: 17px 0; border-bottom: 1px solid var(--line); }
.market-history-entry summary { color: #6f7a89; font-size: 11px; line-height: 1.9; cursor: pointer; }
.market-history-entry .market-body { font-size: 11px; }
.market-history-entry .article-link { margin-top: 14px; }
#marketMore { margin-top: 17px; }
.market-channel-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 25px; color: var(--red); font-size: 11px; text-decoration: none; }
.market-channel-link .icon { width: 14px; height: 14px; }
.news-menu .menu-icon { background: #eef4fc; color: #315f94; }
.ebook-menu .menu-icon { background: #edf6f1; color: #21654f; }
.menu-copy { display: grid; gap: 9px; min-width: 0; }
.menu-copy strong { font-size: 22px; line-height: 1.4; }
.menu-copy > span { color: #6b7280; font-size: 11px; line-height: 1.8; word-break: keep-all; }
.menu-arrow { width: 19px; height: 19px; color: #9299a5; }
.data-notice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 18px; padding: 12px; background: #fff3f5; color: #8a3345; font-size: 10px; line-height: 1.8; }
.data-notice .icon { width: 16px; height: 16px; margin-top: 2px; }
.data-notice strong { font-weight: 700; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 26px; padding: 0 0 17px; border-bottom: 1px solid var(--line); }
.quick-links button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 7px; padding: 0 11px; border: 0; background: transparent; text-align: left; }
.quick-links button:first-child { padding-left: 0; }
.quick-links button + button { border-left: 1px solid var(--line); }
.quick-links strong { grid-column: 1 / -1; font-size: 20px; line-height: 1.2; }
.quick-links span { color: #6b7280; font-size: 10px; white-space: nowrap; }
.quick-links .icon { width: 13px; height: 13px; color: #6b7280; }
.content-section { margin-bottom: 26px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.section-heading h2 { font-size: 15px; line-height: 1.5; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: var(--red); font-size: 10px; font-weight: 700; }
.muted-label { color: var(--muted); font-size: 10px; }
.analysis-card { padding: 16px; border: 1px solid #e1e4e9; border-radius: 8px; background: #fff; }
.card-meta { display: flex; align-items: center; gap: 7px; min-height: 25px; margin-bottom: 12px; color: #6b7280; font-size: 9px; }
.card-meta .bookmark-button { width: 30px; height: 27px; margin: -4px -5px -4px auto; }
.market-badge { display: inline-block; padding: 4px 6px; border-radius: 3px; background: #edf3fd; color: #32629d; font-size: 9px; font-weight: 700; }
.market-badge.kr { background: #eef4f1; color: #397963; }
.analysis-card h3 { font-size: 18px; line-height: 1.4; }
.stock-ticker { margin-top: 5px; color: #6b7280; font-size: 10px; }
.analysis-summary { margin-top: 13px; color: #6b7280; font-size: 11px; line-height: 1.8; word-break: keep-all; }
.signal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.signal-tags span { padding: 5px 7px; border-radius: 4px; background: #f2f3f6; color: #5c626e; font-size: 9px; line-height: 1.5; }
.signal-tags .risk-tag { background: #fff1e5; color: #8b5d20; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #eceef2; }
.card-bottom > span { color: #6b7280; font-size: 9px; }
.card-open { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--red); font-size: 11px; font-weight: 800; }
.card-open .icon { width: 15px; height: 15px; }
.bookmark-button[aria-pressed="true"] { color: var(--red); }
.bookmark-button[aria-pressed="true"] .icon { fill: #fbe1e7; }
.routine-count { color: var(--red); font-size: 11px; font-weight: 700; }
.routine-progress { height: 3px; margin-bottom: 7px; overflow: hidden; border-radius: 3px; background: #eceef2; }
.routine-progress > span { display: block; width: 0; height: 100%; background: var(--red); }
.routine-item { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.routine-item > input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--red); }
.routine-item > label { flex: 1; cursor: pointer; }
.routine-item strong { display: block; font-size: 12px; }
.routine-item small { display: block; margin-top: 6px; color: #6b7280; font-size: 10px; }
.routine-item .icon-button { width: 27px; height: 30px; }
.routine-item:has(input:checked) strong { color: #6b7280; text-decoration: line-through; }
.book-list { display: grid; gap: 18px; }
.compact-book { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.compact-book > img { display: block; width: 46px; height: 65px; object-fit: contain; border-radius: 3px; }
.compact-book h3 { font-size: 12px; line-height: 1.6; }
.compact-book p { margin-top: 6px; color: #6b7280; font-size: 9px; }
.book-tools { display: flex; align-items: center; gap: 1px; }
.book-tools .icon-button { width: 29px; height: 34px; border: 1px solid var(--line); }
.book-tools .icon { width: 16px; height: 16px; }
.room-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 17px; border: 0; border-radius: 6px; background: var(--red); color: #fff; text-align: left; }
.room-button small { display: block; margin-bottom: 6px; color: #f9cdd6; font-size: 10px; }
.room-button strong { display: block; font-size: 13px; line-height: 1.6; }
.room-button .icon { width: 18px; height: 18px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; margin: 0 0 17px; border-radius: 6px; background: #f0f1f4; }
.segmented button { min-height: 36px; padding: 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #6b7280; font-size: 12px; font-weight: 700; }
.segmented [aria-pressed="true"] { border-color: #e3e5e9; background: #fff; color: var(--ink); }
.search-field { display: flex; align-items: center; gap: 8px; min-height: 43px; margin-bottom: 15px; padding: 9px 11px; border: 1px solid #e2e4e9; border-radius: 6px; }
.search-field .icon { width: 17px; height: 17px; color: #6b7280; }
.search-field input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 12px; line-height: 1.7; outline: 0; }
.search-field:focus-within { outline: 2px solid #2c879d; outline-offset: 2px; }
.market-filters { display: flex; gap: 7px; }
.market-filters button { min-width: 48px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #6b7280; font-size: 11px; }
.market-filters [aria-pressed="true"] { border-color: #f4d5dd; background: #fff1f4; color: var(--red); font-weight: 700; }
.result-label { margin: 17px 0 12px; color: #6b7280; font-size: 10px; line-height: 1.7; }
.result-list { display: grid; gap: 16px; }
.empty-state { padding: 40px 8px; text-align: center; }
.empty-state > .icon { width: 32px; height: 32px; margin: 0 auto 15px; color: #c6cbd4; }
.empty-state strong { display: block; font-size: 13px; line-height: 1.8; }
.empty-state p { margin-top: 8px; color: #6b7280; font-size: 11px; line-height: 1.8; }
.empty-state button { margin: 17px auto 0; }
.performance-note { padding: 12px; background: #f6f7f9; color: #6b7280; font-size: 10px; line-height: 1.8; }
.performance-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.performance-row h3 { font-size: 12px; line-height: 1.6; }
.performance-row p { margin-top: 7px; color: #6b7280; font-size: 9px; line-height: 1.7; }
.performance-row > strong { color: var(--red); font-size: 20px; white-space: nowrap; }
.back-button { display: inline-flex; align-items: center; gap: 6px; margin: -5px 0 20px; padding: 0; border: 0; background: transparent; color: #6b7280; font-size: 11px; }
.back-button .icon { width: 17px; height: 17px; }
.detail-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #6b7280; font-size: 9px; }
.detail-meta .icon-button { margin-left: auto; }
.detail-view > h1 { font-size: 26px; line-height: 1.4; }
.ticker-line { margin-top: 8px; color: #6b7280; font-size: 12px; }
.ticker-line span { margin-left: 7px; color: #6b7280; font-size: 9px; }
.detail-intro { margin-top: 18px; color: #656d79; font-size: 12px; line-height: 1.9; word-break: keep-all; }
.detail-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.detail-section h2, .risk-section h2 { font-size: 17px; line-height: 1.6; }
.reason-list { display: grid; gap: 21px; padding: 0; margin: 19px 0 0; list-style: none; }
.reason-list li { display: flex; align-items: flex-start; gap: 12px; }
.reason-list li > span { padding-top: 1px; color: var(--red); font-size: 11px; font-weight: 700; }
.reason-list strong { font-size: 12px; line-height: 1.7; }
.reason-list em { color: var(--red); font-style: normal; }
.reason-list p { margin-top: 7px; color: #6b7280; font-size: 10px; line-height: 1.8; }
.risk-section { padding: 19px 16px; margin-top: 24px; border-left: 3px solid var(--red); background: #fff4f6; }
.risk-section h2 { font-size: 15px; }
.risk-section > p:last-child { margin-top: 10px; color: #6b7280; font-size: 11px; line-height: 1.9; }
.original-values { margin: 5px 0 19px; }
.original-values > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f1f4; }
.original-values dt { color: #6b7280; font-size: 11px; }
.original-values dd { font-size: 12px; font-weight: 700; }
.original-values small { margin-left: 6px; color: #6b7280; font-size: 9px; font-weight: 400; }
.outline-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; padding: 10px; border: 1px solid #e0e3e8; border-radius: 5px; background: #fff; color: #6b7280; font-size: 11px; font-weight: 700; }
.outline-button .icon { width: 15px; height: 15px; }
.body-copy { margin-top: 13px; color: #6b7280; font-size: 11px; line-height: 1.9; }
#researchNote { display: block; width: 100%; min-height: 130px; resize: vertical; padding: 12px; border: 1px solid #dfe2e8; border-radius: 5px; background: #fbfbfc; color: #3c434e; font-size: 12px; line-height: 1.9; }
.note-actions { display: flex; align-items: center; gap: 5px; margin-top: 11px; }
.note-actions > span { flex: 1; min-width: 0; color: #6b7280; font-size: 9px; line-height: 1.6; }
.small-primary { display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; border: 0; border-radius: 5px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; }
.news-card { padding: 16px; border: 1px solid #e1e4e9; border-radius: 8px; }
.news-card h3 { margin-top: 13px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.news-card > p { margin-top: 12px; color: #6b7280; font-size: 10px; line-height: 1.9; }
.news-card .card-meta { margin-bottom: 0; }
.news-source { color: #515c6b; font-size: 11px; font-weight: 700; }
.article-link { display: inline-flex; align-items: center; gap: 5px; color: var(--red); text-decoration: none; font-size: 11px; font-weight: 700; }
.article-link .icon { width: 14px; height: 14px; }
.library-count { display: flex; align-items: center; gap: 8px; margin-bottom: 25px; padding: 12px; background: #f5f6f8; color: #6b7280; font-size: 11px; }
.library-count .icon { width: 18px; height: 18px; }
.library-count > span:last-child { margin-left: auto; color: #6b7280; font-size: 10px; }
.library-book { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.library-book > div:first-child { display: grid; grid-template-columns: 89px minmax(0, 1fr); align-items: center; gap: 18px; }
.library-book img { display: block; width: 89px; height: auto; border-radius: 4px; box-shadow: 0 10px 18px #17181b14; }
.library-book h2 { font-size: 16px; line-height: 1.6; }
.library-book .book-meta { margin-top: 10px; color: #6b7280; font-size: 10px; }
.library-book .book-description { margin-top: 10px; color: #6b7280; font-size: 10px; line-height: 1.9; }
.resource-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.resource-buttons button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 41px; padding: 9px 7px; border: 1px solid #e3e5e9; border-radius: 5px; background: #fff; color: #6b7280; font-size: 11px; font-weight: 700; }
.resource-buttons .primary-resource { border-color: var(--red); background: var(--red); color: #fff; }
.resource-buttons .icon { width: 16px; height: 16px; }
.library-room { margin-top: 28px; }
.library-room h2 { font-size: 17px; }
.library-room > p:not(.eyebrow) { margin: 12px 0 18px; color: #6b7280; font-size: 11px; line-height: 1.9; }
.resource-policy { margin-top: 18px; color: #6b7280; font-size: 10px; line-height: 1.9; }
.device-note { margin-bottom: 20px; padding: 12px; background: #f5f6f8; color: #6b7280; font-size: 10px; line-height: 1.8; }
.saved-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0f3; color: #6b7280; font-size: 11px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-footer { padding: 25px 20px 112px; color: #6b7280; font-size: 9px; line-height: 1.9; }
.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 50%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: min(446px, calc(100% - 34px)); padding: 10px 5px calc(11px + env(safe-area-inset-bottom)); transform: translateX(-50%); border-top: 1px solid #e1e4e9; background: #fff; }
.bottom-nav button { display: grid; justify-items: center; gap: 6px; min-width: 0; min-height: 45px; padding: 2px 1px; border: 0; border-radius: 4px; background: transparent; color: #6b7280; font-size: 10px; }
.bottom-nav [aria-current="page"] { color: var(--red); font-weight: 700; }
.bottom-nav .icon { width: 21px; height: 21px; }
.nav-icon-wrap { position: relative; }
.nav-icon-wrap small { position: absolute; top: -4px; right: -9px; display: grid; place-items: center; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--red); color: #fff; font-size: 8px; }
dialog { width: min(420px, calc(100% - 36px)); max-height: calc(100dvh - 40px); padding: 24px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); }
dialog::backdrop { background: #0a0c11bd; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dialog-heading > .eyebrow { margin: 0; }
.dialog-heading > h2 { font-size: 17px; }
#checkTitle { margin: 3px 0 12px; font-size: 26px; }
.dialog-description { color: #6b7280; font-size: 12px; line-height: 1.9; }
#resourceForm { margin-top: 25px; }
#resourceForm > label:first-child { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
#subscriberPhone { width: 100%; min-height: 48px; padding: 11px; border: 1px solid #cfd3dc; border-radius: 5px; font-size: 16px; }
.consent-row { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 21px; color: #6b7280; font-size: 11px; line-height: 1.9; }
.consent-row input { flex: 0 0 auto; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--red); }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 13px; width: 100%; min-height: 48px; padding: 11px; border: 0; border-radius: 5px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; }
.primary-button .icon { width: 17px; height: 17px; }
.preview-warning { margin-top: 18px; color: #6b7280; font-size: 10px; line-height: 1.9; }
#sourceDialog { padding: 17px; }
#sourceDialog img { display: block; width: 100%; height: auto; margin-top: 17px; }
.toast { position: fixed; z-index: 20; bottom: 92px; left: 50%; width: max-content; max-width: min(405px, calc(100% - 52px)); padding: 12px 16px; transform: translateX(-50%); border-radius: 6px; background: #292e38; color: #fff; text-align: center; font-size: 11px; line-height: 1.8; box-shadow: 0 4px 18px #0003; }
@media (max-width: 360px) {
  .home-ebook .home-resource-button { gap: 5px; padding-inline: 6px; font-size: 11px; }
  .home-ebook .home-resource-button .icon { width: 14px; height: 14px; }
  .home-menu-grid { gap: 12px; }
  .home-menu { min-height: 110px; }
  .app-header { padding-inline: 13px; }
  .brand { gap: 6px; font-size: 11px; }
  .brand small { font-size: 7px; }
  .brand-mark { width: 26px; height: 26px; font-size: 19px; }
  .header-tools .icon-button { width: 29px; padding: 5px; }
  .app-content { padding-inline: 15px; }
  .section-heading h2 { font-size: 14px; }
  .compact-book { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .compact-book > img { width: 38px; height: 54px; }
  .compact-book .book-tools { grid-column: 2; margin-top: -1px; }
  .library-book > div:first-child { grid-template-columns: 76px minmax(0, 1fr); gap: 13px; }
  .library-book img { width: 76px; }
  .library-book h2 { font-size: 14px; }
  .performance-row h3 { font-size: 11px; }
  .performance-row > strong { font-size: 18px; }
}
