/* New presentation is limited to phones; the existing computer layout is unchanged. */
.phone-only{display:none}
@media(max-width:700px), (max-width:1000px) and (max-height:520px) and (pointer:coarse) and (orientation:landscape){
 body[data-phone-view]{background:color-mix(in srgb,var(--theme-accent,#1264ed) 5%,white)}
 body[data-phone-view] #workspace-sidebar,body[data-phone-view] #sidebar-toggle,body[data-phone-view] main>header,body[data-phone-view] main>.spreadsheet-banner{display:none!important}
 body[data-phone-view] main,body[data-phone-view] main.sidebar-expanded{margin:0;max-width:800px;width:100%;padding:20px 20px calc(118px + env(safe-area-inset-bottom));min-height:100dvh}
 .phone-only{display:block}.phone-brand-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.phone-brand{color:inherit;text-decoration:none;display:flex;align-items:center;gap:12px;min-width:0}.phone-brand img{border-radius:24px;width:48px;height:48px}.phone-brand strong{font-size:20px;letter-spacing:-.6px;color:var(--theme-ink)}.phone-brand strong span{color:#1264ed}.phone-brand:focus-visible{outline:3px solid var(--theme-accent,#1264ed);outline-offset:4px;border-radius:8px}.phone-brand small{display:block;font-size:9px;letter-spacing:1.35px;color:var(--theme-muted);margin-top:5px;white-space:nowrap}.phone-brand-row>button{color:var(--theme-accent);font-weight:700;padding:8px 0;min-width:60px}
 #phone-business{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;overflow-wrap:anywhere;margin-bottom:18px}#phone-business:empty{display:none}#phone-business img{width:42px;height:42px;object-fit:contain;border-radius:8px}#phone-sync{font-size:11px;margin:-8px 0 18px;color:var(--theme-muted)}#phone-sync:empty{display:none}
 .phone-heading{margin:18px 0}.phone-heading h1,#phone-page-title{font-size:30px;letter-spacing:-.8px;line-height:1.2;margin:0 0 8px;font-weight:800}.phone-heading h2{font-size:23px;line-height:1.25;margin:0 0 8px}.phone-heading p{font-size:14px;line-height:22px;margin:0}
 #phone-home>*{margin-bottom:18px}#phone-home>.phone-heading{margin-top:24px}.phone-value-card{background:var(--theme-accent,#1264ed);padding:24px;border-radius:24px;color:white}.phone-value-card small{display:block;font-size:13px;color:#eaf2ff;line-height:1.5}.phone-value-card strong{display:block;font-size:36px;font-weight:800;letter-spacing:-.6px;margin:12px 0;overflow-wrap:anywhere}.phone-value-card p{color:#eaf2ff;font-size:15px;margin:0}
 .phone-button-row{display:flex;gap:12px}.phone-button-row button{flex:1;min-width:0}.phone-button-row button,.phone-only>button,.phone-file-actions button,#phone-add-owned{min-height:54px;border-radius:17px;font-size:16px;font-weight:700;white-space:normal;padding:14px}.phone-import-card{display:flex;align-items:center;gap:14px;width:100%;min-height:88px;padding:16px 18px;text-align:left;white-space:normal;border:1px solid var(--theme-border,#cbdef9);border-radius:18px;background:var(--theme-tint,#edf4ff);color:var(--theme-ink,#17497f)}.phone-import-card:focus-visible{outline:3px solid var(--theme-accent,#1264ed);outline-offset:3px}.phone-import-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:46px;height:48px;background:white;border-radius:12px;color:var(--theme-accent,#1264ed)}.phone-import-copy{flex:1;min-width:0}.phone-import-copy strong{display:block;font-size:17px;line-height:1.4}.phone-import-copy>span{display:block;margin-top:3px;font-size:13px;line-height:1.5;font-weight:400;color:var(--theme-muted,#52647a)}.phone-import-arrow{font-size:28px;line-height:1;color:var(--theme-accent,#1264ed)}.phone-box{background:white;padding:22px;border:1px solid var(--theme-border,#cbdef9);border-radius:20px;margin-bottom:18px}.phone-box h2{font-size:19px;margin:0 0 16px}.phone-box>strong{font-size:18px;line-height:1.4}.phone-box p{font-size:14px;line-height:22px}.phone-label{font-size:14px;font-weight:600;color:var(--theme-muted);margin:14px 0 10px}
 .phone-import-help{margin-top:-10px;padding:0 4px;color:var(--theme-ink)}.phone-import-help>summary{min-height:44px;padding:10px 0;font-size:14px;line-height:1.6;font-weight:700;color:var(--theme-accent,#1264ed);white-space:normal;cursor:pointer}.phone-import-help>summary:focus-visible{outline:3px solid var(--theme-accent,#1264ed);outline-offset:3px;border-radius:4px}.phone-import-help ol,.phone-import-help ul{padding-left:22px}.phone-import-help li,.phone-import-help p{font-size:14px;line-height:1.6;margin:10px 0}
 .phone-only .category-switch{width:100%;display:block;margin:0;position:relative}.phone-only .category-switch::before{content:'Card category';display:block;font-size:12px;color:var(--theme-muted);margin:0 0 6px}.phone-only .category-switch select{width:100%;font-size:17px;font-weight:700;background:white;min-height:56px;border:1px solid var(--theme-border);border-radius:16px;margin:0;padding:15px;color:var(--theme-ink)}#phone-page-category{margin-bottom:22px}
 body[data-phone-view] #inventory-purpose{width:100%;background:transparent;padding:0;display:flex;flex-wrap:nowrap;gap:8px;border-radius:0;margin:0 0 18px}body[data-phone-view] #inventory-purpose button{flex:1;white-space:normal;min-width:0;min-height:70px;border:1px solid var(--theme-border);background:white;color:var(--theme-ink);border-radius:16px;padding:10px 6px;font-size:13px;font-weight:700;line-height:20px;box-shadow:none}body[data-phone-view] #inventory-purpose button[aria-pressed=true]{background:var(--theme-accent);border-color:var(--theme-accent);color:white}#phone-home-scope #inventory-purpose{margin-bottom:0}
 .phone-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.phone-action-grid button{min-height:148px;padding:18px;border-radius:22px;border:1px solid var(--theme-border);background:white;color:var(--theme-ink);white-space:normal;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:9px}.phone-action-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--theme-tint);color:var(--theme-accent);font-size:24px;font-weight:700}.phone-action-grid strong{font-size:16px;font-weight:800;line-height:1.3}.phone-action-grid button>span:last-child{font-size:14px;line-height:20px;color:var(--theme-muted);font-weight:400}
 #phone-totals{padding:20px}#phone-totals summary{padding:0;border:0;background:transparent;white-space:normal;font-size:19px;line-height:1.4;min-height:44px}#phone-totals summary small{display:block;font-weight:400;font-size:14px;color:var(--theme-muted);margin-top:8px}#phone-home-metrics #metrics{display:grid;grid-template-columns:1fr;gap:12px;margin-top:16px}#phone-home-metrics #metrics>.metric{grid-column:auto;border-radius:20px;min-height:0;padding:22px;border:1px solid var(--theme-border);display:block}#phone-home-metrics #metrics>.metric::after{display:none}#phone-home-metrics #metrics>.metric strong{font-size:30px;margin-top:10px}#phone-home-metrics #metrics>.metric small{font-size:13px}#phone-home-metrics #metrics>.metric p{font-size:13px;max-width:none}#phone-home-metrics .overview-help{margin-bottom:0}.phone-event-profit{display:block;font-size:23px;margin-top:12px}.phone-event-profit small{font-size:12px}
 body[data-phone-view] main>.panel{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;min-height:0}body[data-phone-view=home] main>.panel,body[data-phone-view=more] main>.panel{display:none!important}
 body[data-phone-view] main>.hint,body[data-phone-view] main>footer,body[data-phone-view] main>#legal-details{display:none}body[data-phone-view=more] main>.hint,body[data-phone-view=more] main>footer,body[data-phone-view=more] main>#legal-details{display:flex}body[data-phone-view=more] main>#legal-details{display:block}body[data-phone-view=more] main>footer{align-items:flex-start;flex-direction:column}body[data-phone-view=more] main>.hint{display:block}
 #phone-more>.secondary{display:block;width:100%;margin:12px 0;min-height:54px;font-size:16px;border-radius:17px;white-space:normal}.phone-tools{display:grid;gap:12px;margin:18px 0}.phone-tools button{display:block;text-align:left;width:100%;color:var(--theme-ink);background:white;white-space:normal;margin:0;min-height:90px}.phone-tools span{display:block;font-size:14px;font-weight:400;color:var(--theme-muted);line-height:22px;margin-top:8px}.phone-file-actions{display:grid;gap:10px;padding-top:14px}#phone-more .phone-box summary{white-space:normal}#phone-back{margin:0 0 18px;padding-left:0;color:var(--theme-accent)}
 body[data-phone-view=inventory] #inventory>.panel-heading{display:none}body[data-phone-view=inventory] #inventory-title{font-size:30px;line-height:1.2}body[data-phone-view=inventory] #inventory-asking-count{font-size:14px}body[data-phone-view=inventory] .inventory-controls input,body[data-phone-view=inventory] .inventory-controls select{background:white;border:1px solid var(--theme-border);border-radius:13px;min-height:54px;font-size:16px;padding:15px}#phone-add-owned{display:block;width:100%;margin:18px 0}body[data-phone-view=inventory] #inventory-details{border:0;padding:0;margin-top:18px}body[data-phone-view=inventory] #inventory-details>summary{display:none}body[data-phone-view=inventory] #inventory-details:not([open])>.table-wrap,body[data-phone-view=inventory] #inventory-details:not([open])>.footnote{display:block}body[data-phone-view=inventory] .pricing-help{padding:12px 14px;background:white;border-radius:14px}
 body[data-phone-view] #cards tr:not(:has(.empty)){padding:22px;border:1px solid var(--theme-border);background:white;border-radius:20px;margin:0 0 16px;gap:12px}body[data-phone-view] #cards td:first-child{font-size:18px;padding:0;margin:0 0 4px}body[data-phone-view] #cards .card-quick-link{font-size:18px;text-align:left;white-space:normal;padding:0;min-height:28px}body[data-phone-view] #cards .card-purpose{font-size:10px;min-height:24px}body[data-phone-view] #cards td[data-label="Estimated value"] .asking-price-button{font-size:20px;font-weight:800;color:var(--theme-accent)}body[data-phone-view] #cards td[data-label="Cost invested"],body[data-phone-view] #cards td[data-label="Potential profit"]{font-size:14px}body[data-phone-view] #cards .ebay-search-link{font-size:12px;max-width:none;white-space:normal}body[data-phone-view] #cards .ebay-destination{font-size:11px}body[data-phone-view] #cards .row-menu summary{min-height:44px;background:var(--theme-tint);border:0;color:var(--theme-accent)}
 body[data-phone-view] #history>.section-disclosure,body[data-phone-view] #expenses>.section-disclosure,body[data-phone-view] #account>.section-disclosure,body[data-phone-view] #shows>.section-disclosure{background:white;border:1px solid var(--theme-border);border-radius:20px;padding:0 18px}body[data-phone-view] .event{padding:18px 0;border-radius:0}body[data-phone-view] .event>div>strong{font-size:18px}body[data-phone-view] .profit-chart{background:white;border-radius:22px;padding:18px}body[data-phone-view] #profit-summary .metric,body[data-phone-view] #expense-summary .metric{border-radius:20px}body[data-phone-view] .quick-note{background:white;border-radius:20px;padding:22px}body[data-phone-view=cash-history] #deal-history-details{display:none}
 #phone-page-detail{font-size:14px;line-height:22px;margin:0 0 18px}#phone-page-scope{margin-bottom:22px}#phone-history-actions{margin:18px 0}body[data-phone-view=history] #history>h2,body[data-phone-view=history] #history>p,body[data-phone-view=profits] #profits>.panel-heading>div{display:none}
 #auth-screen{display:flex;flex-direction:column;gap:18px;padding:28px 20px;background:color-mix(in srgb,var(--theme-accent,#1264ed) 5%,white);overflow:visible}#auth-screen::before,#auth-screen::after{display:none}#auth-screen>.auth-card{order:0;width:100%;max-width:700px;background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;position:static;margin:0 auto}#auth-screen .cardtrackt-auth-logo{width:94px;height:94px;margin:0 0 24px;border-radius:47px}#auth-screen #auth-title{font-size:30px;letter-spacing:-.8px;margin:16px 0 8px}#auth-screen .auth-card>p{font-size:14px;line-height:22px}#auth-screen input:not([type=checkbox]){min-height:50px;background:white;border:1px solid var(--theme-border);border-radius:13px;padding:15px}#auth-screen #auth-submit,#auth-screen #auth-switch,#auth-screen #forgot-password{display:block;width:100%;min-height:54px;border-radius:17px;font-size:16px;white-space:normal;margin:12px 0}#auth-screen #auth-switch,#auth-screen #forgot-password{background:white;border:1px solid var(--theme-border);color:var(--theme-accent)}.phone-auth-trial{padding:16px;border:1px solid var(--theme-border);border-radius:16px;background:white}.phone-auth-about{order:1;border:1px solid var(--theme-border);border-radius:20px;padding:18px;width:100%;max-width:700px;margin:0 auto}.phone-auth-about>summary{white-space:normal;line-height:1.5}.phone-auth-about .public-intro{margin-top:20px}.phone-auth-about .public-intro h1{font-size:30px;letter-spacing:-.8px}.phone-auth-about .public-lead{font-size:16px}.phone-auth-about .public-plans{padding:16px}.phone-auth-about .public-features{grid-template-columns:1fr}
 body[data-phone-view] .inventory-controls{display:flex;flex-direction:column;align-items:stretch;gap:10px}body[data-phone-view] .inventory-search,body[data-phone-view] .inventory-sort{width:100%;max-width:none}body[data-phone-view] #inventory .table-wrap{overflow:visible}body[data-phone-view] #inventory table,body[data-phone-view] #inventory tbody{display:block}body[data-phone-view] #inventory thead{display:none}body[data-phone-view] #cards tr:not(:has(.empty)){display:grid;grid-template-columns:1fr 1fr}body[data-phone-view] #cards td{display:block;border:0;padding:5px 0;min-width:0}body[data-phone-view] #cards td:first-child{grid-column:1/-1}body[data-phone-view] #cards td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:var(--theme-muted);margin-bottom:4px}body[data-phone-view] #cards td.card-actions{grid-column:1/-1}body[data-phone-view] #cards .row-menu .menu-items{display:flex;flex-wrap:wrap;gap:4px;min-width:0}body[data-phone-view] #cards .row-menu .menu-items button{flex:1;min-width:90px;text-align:center}body[data-phone-view] .grid{grid-template-columns:1fr}body[data-phone-view] .event{flex-direction:column;gap:8px}body[data-phone-view] .event .delete-transaction{margin-left:0}body[data-phone-view] #profit-summary,body[data-phone-view] #show-summary{grid-template-columns:1fr}body[data-phone-view=cash-history] #history>h2,body[data-phone-view=cash-history] #history>p{display:none}
 #phone-nav{position:fixed;bottom:0;left:0;right:0;z-index:70;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));background:white;border-top:1px solid var(--theme-border);padding:10px 8px calc(6px + env(safe-area-inset-bottom));gap:4px}#phone-nav button{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-height:62px;padding:10px 2px;border-radius:18px;color:var(--theme-muted);background:white;font-size:12px;font-weight:500;min-width:0}#phone-nav button[aria-current=page]{background:var(--theme-tint);color:var(--theme-accent);font-weight:800}#phone-nav svg{width:23px;height:23px}#phone-nav path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 body[data-phone-view] dialog{width:100%;max-width:700px;max-height:100dvh;height:auto;border-radius:22px 22px 0 0;margin:auto auto 0;padding:22px 20px calc(24px + env(safe-area-inset-bottom));border-bottom:0}body[data-phone-view] dialog input:not([type=checkbox]):not([type=radio]),body[data-phone-view] dialog select,body[data-phone-view] dialog textarea{font-size:16px;min-height:50px;border-radius:13px;background:white}body[data-phone-view] dialog button.submit{min-height:54px;font-size:16px;border-radius:17px}body[data-phone-view] .card-scanner{background:white;border-radius:16px}body[data-phone-view] #trial-status{margin:18px 0}
}
@media(max-width:360px){body[data-phone-view] main{padding-left:16px;padding-right:16px}.phone-brand small{font-size:8px;letter-spacing:1px}.phone-brand img{width:40px;height:40px}.phone-brand strong{font-size:18px}.phone-brand-row{gap:6px}.phone-action-grid button{padding:15px}.phone-action-grid strong{font-size:15px}.phone-value-card{padding:22px}body[data-phone-view] #inventory-purpose button{font-size:12px;padding:9px 4px}body[data-phone-view] #cards tr:not(:has(.empty)){padding:18px}.phone-box{padding:18px}}
