:root {
  --ink: #18222f;
  --muted: #77818c;
  --paper: #f5f7f5;
  --line: #dce3e0;
  --green: #199873;
  --green-dark: #087254;
  --mint: #dff4eb;
  --yellow: #f6c85f;
  --white: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100% - 40px, 1100px); margin: 0 auto; padding: 28px 0 36px; }
.topbar { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid var(--green); border-radius: 50%; color: var(--green); font-size: 1.6rem; line-height: 1; transform: rotate(-25deg); }
.brand strong { display: block; font-size: 1.12rem; letter-spacing: .16em; }
.eyebrow, .section-label { display: block; margin: 0 0 3px; color: var(--green); font-size: .64rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.data-status { color: var(--muted); font-size: .75rem; }
.inventory-link { color: var(--green-dark); font-size: .75rem; font-weight: 800; text-decoration: none; }
.inventory-link:hover { text-decoration: underline; }
.auth-panel { max-width: 760px; padding: 28px 32px; margin: 24px auto 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 12px 35px rgba(25, 60, 50, .06); }
.auth-heading p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.auth-form { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; }
.auth-form h2 { margin: 0 0 15px; font-size: 1rem; }
.auth-form label, .reset-form label { display: block; margin: 10px 0 6px; color: var(--muted); font-size: .68rem; font-weight: 700; }
.auth-form input { padding: 10px 11px; font-size: .88rem; }
.auth-button { width: 100%; min-height: 42px; margin-top: 15px; padding: 0; }
.reset-form { margin-top: 18px; }
.reset-form .input-row { align-items: end; }
.secondary-button { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--green-dark); background: var(--mint); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.secondary-button:hover { border-color: var(--green); }
.auth-message { min-height: 18px; margin: 14px 0 0; color: var(--green-dark); font-size: .78rem; }
.user-panel { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--white); font-size: .78rem; }
.user-panel strong { color: var(--ink); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--green); }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 290px; padding: 58px 72px; margin-top: 23px; overflow: hidden; border-radius: 20px; color: var(--white); background: #143c3c; }
.hero:after { position: absolute; inset: 0; background: radial-gradient(circle at 75% 25%, rgba(36, 186, 132, .32), transparent 33%), linear-gradient(120deg, transparent 45%, rgba(255,255,255,.03) 45%); content: ""; }
.hero-copy { position: relative; z-index: 1; max-width: 570px; }
.hero .section-label { color: var(--yellow); }
h1 { margin: 12px 0 14px; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: .98; letter-spacing: -.06em; }
h1 em { color: #68d4ac; font-style: normal; }
.hero p { max-width: 480px; margin: 0; color: #b9d4cd; font-size: .97rem; line-height: 1.6; }
.pokeball-art { position: relative; z-index: 1; width: 185px; height: 185px; margin-right: 50px; border: 14px solid rgba(255,255,255,.86); border-radius: 50%; background: linear-gradient(#e85e5b 0 47%, #203a3e 47% 53%, #f7f8f2 53%); box-shadow: 0 0 0 8px rgba(255,255,255,.08); transform: rotate(-12deg); }
.pokeball-art span { position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; border: 10px solid #203a3e; border-radius: 50%; background: #f7f8f2; transform: translate(-50%, -50%); }
.search-card { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px 45px; padding: 30px 36px 25px; margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 12px 35px rgba(25, 60, 50, .06); }
h2 { margin: 4px 0 0; font-size: 1.35rem; letter-spacing: -.025em; }
.search-form label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.input-row { display: flex; gap: 10px; }
input { width: 100%; min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--ink); background: #fbfcfb; font-size: 1rem; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,152,115,.12); }
.primary-button { padding: 0 19px; border: 0; border-radius: 8px; color: var(--white); background: var(--green); font-weight: 800; white-space: nowrap; }
.primary-button:hover { background: var(--green-dark); }
.primary-button span { margin-left: 9px; font-size: 1.15rem; }
.form-help { margin: 8px 0 0; color: var(--muted); font-size: .7rem; }
.quick-searches { grid-column: 2; display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-size: .72rem; }
.quick-searches button { padding: 4px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--green-dark); background: var(--mint); font-size: .7rem; font-weight: 700; }
.results { margin-top: 22px; }
.empty-state { padding: 55px 20px; border: 1px dashed #cbd6d1; border-radius: 14px; text-align: center; background: rgba(255,255,255,.5); }
.empty-icon { color: var(--green); font-size: 2.4rem; }
.empty-state h2 { margin-top: 8px; }
.empty-state p { margin: 7px 0 0; color: var(--muted); font-size: .86rem; }
.result-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.result-header h2 { font-size: 1.5rem; }
.result-meta { color: var(--muted); font-size: .75rem; }
.card-grid { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.card-preview { min-height: 260px; display: flex; align-items: center; justify-content: center; border-radius: 14px; color: var(--white); background: linear-gradient(145deg, #3177a9, #173c6d); box-shadow: inset 0 0 50px rgba(0,0,0,.15); }
.card-preview .card-symbol { text-align: center; font-size: 4rem; }
.card-preview small { display: block; margin-top: 9px; color: #c6deeb; font-size: .7rem; letter-spacing: .12em; }
.price-panel { padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.price-summary { display: flex; justify-content: space-between; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.card-name { margin: 4px 0 4px; font-size: 1.55rem; }
.set-name { color: var(--muted); font-size: .79rem; }
.average { text-align: right; }
.average span { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.average strong { color: var(--green-dark); font-size: 1.9rem; letter-spacing: -.05em; }
.price-table { width: 100%; margin-top: 13px; border-collapse: collapse; font-size: .8rem; }
.price-table th { padding: 7px 0; color: var(--muted); font-size: .63rem; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td { padding: 11px 0; border-top: 1px solid #edf1ef; }
.condition { color: var(--muted); }
.footer { display: flex; justify-content: space-between; margin-top: 28px; color: #98a29f; font-size: .68rem; }
.error-state { border-color: #efc5c3; background: #fff8f7; }
.error-state .empty-icon { color: #d05a53; }
.inventory-section { margin-top: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.sold-heading { margin-top: 28px; }
.sold-heading h3 { margin: 4px 0 0; font-size: 1.1rem; }
.calendar-heading { margin-top: 30px; }
.calendar-heading h3 { margin: 4px 0 0; font-size: 1.1rem; }
.calendar-controls { display: flex; align-items: center; gap: 10px; color: var(--green-dark); font-size: .78rem; }
.calendar-button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--green-dark); background: var(--white); font-weight: 800; }
.calendar-button:hover { border-color: var(--green); background: var(--mint); }
.sales-calendar { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekday { padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.calendar-day { min-height: 96px; padding: 8px; border-right: 1px solid #edf1ef; border-bottom: 1px solid #edf1ef; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.empty { background: #fbfcfb; }
.calendar-day.today { background: #f0faf6; }
.calendar-date { color: var(--muted); font-size: .72rem; font-weight: 800; }
.calendar-sale { display: block; overflow: hidden; margin-top: 6px; padding: 5px 6px; border-radius: 5px; color: var(--green-dark); background: var(--mint); font-size: .66rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.calendar-sale strong { display: block; font-size: .68rem; }
.calendar-no-sales { padding: 20px; color: var(--muted); font-size: .8rem; text-align: center; }
.inventory-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.summary-card { padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.summary-card span { display: block; color: var(--muted); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.summary-card strong { display: block; margin-top: 5px; color: var(--green-dark); font-size: 1.25rem; letter-spacing: -.03em; }
.inventory-log { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.inventory-empty { padding: 28px; color: var(--muted); font-size: .82rem; text-align: center; }
.inventory-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.inventory-table th, .inventory-table td { padding: 13px 16px; border-bottom: 1px solid #edf1ef; text-align: left; }
.inventory-table th { color: var(--muted); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; }
.inventory-table th:last-child, .inventory-table td:last-child { text-align: right; }
.inventory-table tr:last-child td { border-bottom: 0; }
.sold-control { display: grid; grid-template-columns: auto 105px auto; gap: 6px; align-items: center; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.sold-control input[type="checkbox"] { accent-color: var(--green); }
.sold-price-input { width: 105px; padding: 6px 7px; font-size: .72rem; }
.save-sale-button { padding: 6px 8px; border: 0; border-radius: 5px; color: var(--white); background: var(--green); font-size: .68rem; font-weight: 800; }
.save-sale-button:hover { background: var(--green-dark); }
.inventory-card-name { display: block; font-weight: 800; }
.inventory-card-number { color: var(--muted); font-size: .7rem; }
.profit-positive { color: var(--green-dark); font-weight: 800; }
.profit-negative { color: #c44e4e; font-weight: 800; }
.card-image { width: 100%; height: 100%; min-height: 260px; display: block; object-fit: contain; border-radius: 14px; }
.card-preview.has-image { padding: 0; background: #e8eeeb; }
.inventory-form { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.inventory-form h4 { margin: 0 0 11px; font-size: .86rem; }
.inventory-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.inventory-fields label { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; }
.inventory-fields input { margin-top: 6px; padding: 10px 11px; font-size: .86rem; }
.inventory-submit { min-height: 41px; padding: 0 15px; border: 0; border-radius: 8px; color: var(--white); background: var(--green); font-size: .8rem; font-weight: 800; }
.inventory-submit:hover { background: var(--green-dark); }
.inventory-feedback { min-height: 16px; margin: 8px 0 0; color: #c44e4e; font-size: .72rem; }
@media (max-width: 700px) {
  .app-shell { width: min(100% - 24px, 600px); padding-top: 16px; }
  .hero { min-height: 300px; padding: 38px 28px; }
  .pokeball-art { position: absolute; right: -38px; bottom: -34px; width: 160px; height: 160px; opacity: .45; }
  .search-card { display: block; padding: 24px; }
  .auth-panel { padding: 24px; }
  .auth-grid { grid-template-columns: 1fr; }
  .search-form { margin-top: 22px; }
  .quick-searches { flex-wrap: wrap; margin-top: 15px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-preview { min-height: 150px; }
  .card-image { min-height: 250px; }
  .inventory-fields { grid-template-columns: 1fr 1fr; }
  .inventory-summary { grid-template-columns: 1fr 1fr; }
  .inventory-submit { grid-column: 1 / -1; min-height: 44px; }
  .inventory-log { overflow-x: auto; }
  .inventory-table { min-width: 620px; }
  .calendar-day { min-height: 78px; padding: 6px 4px; }
  .calendar-sale { padding: 4px; font-size: .58rem; }
  .calendar-sale strong { font-size: .6rem; }
  .result-header { align-items: start; flex-direction: column; gap: 5px; }
  .footer { gap: 10px; flex-direction: column; }
}
@media (max-width: 440px) {
  .data-status { display: none; }
  .input-row { flex-direction: column; }
  .primary-button { min-height: 46px; }
  .price-summary { gap: 12px; flex-direction: column; }
  .average { text-align: left; }
}
/*
:root {
  --ink: #18222f;
  --muted: #77818c;
  --paper: #f5f7f5;
  --line: #dce3e0;
  --green: #199873;
  --green-dark: #087254;
  --mint: #dff4eb;
  --yellow: #f6c85f;
  --white: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100% - 40px, 1100px); margin: 0 auto; padding: 28px 0 36px; }
.topbar { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid var(--green); border-radius: 50%; color: var(--green); font-size: 1.6rem; line-height: 1; transform: rotate(-25deg); }
.brand strong { display: block; font-size: 1.12rem; letter-spacing: .16em; }
.eyebrow, .section-label { display: block; margin: 0 0 3px; color: var(--green); font-size: .64rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.data-status { color: var(--muted); font-size: .75rem; }
.inventory-link { color: var(--green-dark); font-size: .75rem; font-weight: 800; text-decoration: none; }
.inventory-link:hover { text-decoration: underline; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--green); }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 290px; padding: 58px 72px; margin-top: 23px; overflow: hidden; border-radius: 20px; color: var(--white); background: #143c3c; }
.hero:after { position: absolute; inset: 0; background: radial-gradient(circle at 75% 25%, rgba(36, 186, 132, .32), transparent 33%), linear-gradient(120deg, transparent 45%, rgba(255,255,255,.03) 45%); content: ""; }
.hero-copy { position: relative; z-index: 1; max-width: 570px; }
.hero .section-label { color: var(--yellow); }
h1 { margin: 12px 0 14px; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: .98; letter-spacing: -.06em; }
h1 em { color: #68d4ac; font-style: normal; }
.hero p { max-width: 480px; margin: 0; color: #b9d4cd; font-size: .97rem; line-height: 1.6; }
.pokeball-art { position: relative; z-index: 1; width: 185px; height: 185px; margin-right: 50px; border: 14px solid rgba(255,255,255,.86); border-radius: 50%; background: linear-gradient(#e85e5b 0 47%, #203a3e 47% 53%, #f7f8f2 53%); box-shadow: 0 0 0 8px rgba(255,255,255,.08); transform: rotate(-12deg); }
.pokeball-art span { position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; border: 10px solid #203a3e; border-radius: 50%; background: #f7f8f2; transform: translate(-50%, -50%); }
.search-card { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px 45px; padding: 30px 36px 25px; margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 12px 35px rgba(25, 60, 50, .06); }
h2 { margin: 4px 0 0; font-size: 1.35rem; letter-spacing: -.025em; }
.search-form label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.input-row { display: flex; gap: 10px; }
input { width: 100%; min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--ink); background: #fbfcfb; font-size: 1rem; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,152,115,.12); }
.primary-button { padding: 0 19px; border: 0; border-radius: 8px; color: var(--white); background: var(--green); font-weight: 800; white-space: nowrap; }
.primary-button:hover { background: var(--green-dark); }
.primary-button span { margin-left: 9px; font-size: 1.15rem; }
.form-help { margin: 8px 0 0; color: var(--muted); font-size: .7rem; }
.quick-searches { grid-column: 2; display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-size: .72rem; }
.quick-searches button { padding: 4px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--green-dark); background: var(--mint); font-size: .7rem; font-weight: 700; }
.results { margin-top: 22px; }
.empty-state { padding: 55px 20px; border: 1px dashed #cbd6d1; border-radius: 14px; text-align: center; background: rgba(255,255,255,.5); }
.empty-icon { color: var(--green); font-size: 2.4rem; }
.empty-state h2 { margin-top: 8px; }
.empty-state p { margin: 7px 0 0; color: var(--muted); font-size: .86rem; }
.result-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.result-header h2 { font-size: 1.5rem; }
.result-meta { color: var(--muted); font-size: .75rem; }
.card-grid { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.card-preview { min-height: 260px; display: flex; align-items: center; justify-content: center; border-radius: 14px; color: var(--white); background: linear-gradient(145deg, #3177a9, #173c6d); box-shadow: inset 0 0 50px rgba(0,0,0,.15); }
.card-preview .card-symbol { text-align: center; font-size: 4rem; }
.card-preview small { display: block; margin-top: 9px; color: #c6deeb; font-size: .7rem; letter-spacing: .12em; }
.price-panel { padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.price-summary { display: flex; justify-content: space-between; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.card-name { margin: 4px 0 4px; font-size: 1.55rem; }
.set-name { color: var(--muted); font-size: .79rem; }
.average { text-align: right; }
.average span { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.average strong { color: var(--green-dark); font-size: 1.9rem; letter-spacing: -.05em; }
.price-table { width: 100%; margin-top: 13px; border-collapse: collapse; font-size: .8rem; }
.price-table th { padding: 7px 0; color: var(--muted); font-size: .63rem; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td { padding: 11px 0; border-top: 1px solid #edf1ef; }
.condition { color: var(--muted); }
.footer { display: flex; justify-content: space-between; margin-top: 28px; color: #98a29f; font-size: .68rem; }
.error-state { border-color: #efc5c3; background: #fff8f7; }
.error-state .empty-icon { color: #d05a53; }
.inventory-section { margin-top: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.sold-heading { margin-top: 28px; }
.sold-heading h3 { margin: 4px 0 0; font-size: 1.1rem; }
.calendar-heading { margin-top: 30px; }
.calendar-heading h3 { margin: 4px 0 0; font-size: 1.1rem; }
.calendar-controls { display: flex; align-items: center; gap: 10px; color: var(--green-dark); font-size: .78rem; }
.calendar-button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--green-dark); background: var(--white); font-weight: 800; }
.calendar-button:hover { border-color: var(--green); background: var(--mint); }
.sales-calendar { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekday { padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.calendar-day { min-height: 96px; padding: 8px; border-right: 1px solid #edf1ef; border-bottom: 1px solid #edf1ef; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.empty { background: #fbfcfb; }
.calendar-day.today { background: #f0faf6; }
.calendar-date { color: var(--muted); font-size: .72rem; font-weight: 800; }
.calendar-sale { display: block; overflow: hidden; margin-top: 6px; padding: 5px 6px; border-radius: 5px; color: var(--green-dark); background: var(--mint); font-size: .66rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.calendar-sale strong { display: block; font-size: .68rem; }
.calendar-no-sales { padding: 20px; color: var(--muted); font-size: .8rem; text-align: center; }
.inventory-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.summary-card { padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.summary-card span { display: block; color: var(--muted); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.summary-card strong { display: block; margin-top: 5px; color: var(--green-dark); font-size: 1.25rem; letter-spacing: -.03em; }
.inventory-log { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.inventory-empty { padding: 28px; color: var(--muted); font-size: .82rem; text-align: center; }
.inventory-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.inventory-table th, .inventory-table td { padding: 13px 16px; border-bottom: 1px solid #edf1ef; text-align: left; }
.inventory-table th { color: var(--muted); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; }
.inventory-table th:last-child, .inventory-table td:last-child { text-align: right; }
.inventory-table tr:last-child td { border-bottom: 0; }
.sold-control { display: grid; grid-template-columns: auto 105px auto; gap: 6px; align-items: center; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.sold-control input[type="checkbox"] { accent-color: var(--green); }
.sold-price-input { width: 105px; padding: 6px 7px; font-size: .72rem; }
.save-sale-button { padding: 6px 8px; border: 0; border-radius: 5px; color: var(--white); background: var(--green); font-size: .68rem; font-weight: 800; }
.save-sale-button:hover { background: var(--green-dark); }
.inventory-card-name { display: block; font-weight: 800; }
.inventory-card-number { color: var(--muted); font-size: .7rem; }
.profit-positive { color: var(--green-dark); font-weight: 800; }
.profit-negative { color: #c44e4e; font-weight: 800; }
.card-image { width: 100%; height: 100%; min-height: 260px; display: block; object-fit: contain; border-radius: 14px; }
.card-preview.has-image { padding: 0; background: #e8eeeb; }
.inventory-form { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.inventory-form h4 { margin: 0 0 11px; font-size: .86rem; }
.inventory-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.inventory-fields label { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; }
.inventory-fields input { margin-top: 6px; padding: 10px 11px; font-size: .86rem; }
.inventory-submit { min-height: 41px; padding: 0 15px; border: 0; border-radius: 8px; color: var(--white); background: var(--green); font-size: .8rem; font-weight: 800; }
.inventory-submit:hover { background: var(--green-dark); }
.inventory-feedback { min-height: 16px; margin: 8px 0 0; color: #c44e4e; font-size: .72rem; }
@media (max-width: 700px) {
  .app-shell { width: min(100% - 24px, 600px); padding-top: 16px; }
  .hero { min-height: 300px; padding: 38px 28px; }
  .pokeball-art { position: absolute; right: -38px; bottom: -34px; width: 160px; height: 160px; opacity: .45; }
  .search-card { display: block; padding: 24px; }
  .search-form { margin-top: 22px; }
  .quick-searches { flex-wrap: wrap; margin-top: 15px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-preview { min-height: 150px; }
  .card-image { min-height: 250px; }
  .inventory-fields { grid-template-columns: 1fr 1fr; }
  .inventory-summary { grid-template-columns: 1fr 1fr; }
  .inventory-submit { grid-column: 1 / -1; min-height: 44px; }
  .inventory-log { overflow-x: auto; }
  .inventory-table { min-width: 620px; }
  .calendar-day { min-height: 78px; padding: 6px 4px; }
  .calendar-sale { padding: 4px; font-size: .58rem; }
  .calendar-sale strong { font-size: .6rem; }
  .result-header { align-items: start; flex-direction: column; gap: 5px; }
  .footer { gap: 10px; flex-direction: column; }
}
@media (max-width: 440px) {
  .data-status { display: none; }
  .input-row { flex-direction: column; }
  .primary-button { min-height: 46px; }
  .price-summary { gap: 12px; flex-direction: column; }
  .average { text-align: left; }
}
*/
