*{box-sizing:border-box}body{margin:0;background:#0d1420;color:#edf2fa;font:16px/1.5 system-ui,sans-serif}header,main,footer{max-width:1100px;margin:auto;padding:24px}header{border-bottom:1px solid #2b3b50}h1{margin:.2rem 0;font-size:clamp(1.7rem,5vw,2.6rem)}h2{font-size:1.3rem}.brand{color:#8de0bd;font-weight:700}a{color:#9bcaff}nav{display:flex;gap:20px;flex-wrap:wrap}input,button{font:inherit;border-radius:8px;padding:11px 14px}input{background:#111d2d;color:#fff;border:1px solid #53647d;max-width:100%;width:100%;margin:5px 0 14px}button{background:#286bc4;border:1px solid #508cdb;color:white;cursor:pointer;margin:5px 8px 5px 0}button:disabled{opacity:.5;cursor:wait}button.secondary{background:#233249}label{display:block}#search{max-width:440px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr));gap:18px}.card{border:1px solid #314660;background:#152132;border-radius:14px;overflow:hidden}.card img{width:100%;height:220px;object-fit:contain;background:#101927}.card .body{padding:18px}.card h2{margin:0 0 5px}.card p{margin:5px 0}.price{color:#8de0bd;font-weight:700}.muted{color:#b1c0d5}.panel{background:#152132;border:1px solid #314660;border-radius:12px;padding:20px;margin-bottom:20px;max-width:650px}#status{white-space:pre-line}details{margin-top:20px}summary{cursor:pointer}#preview{margin-top:25px}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a0e7cb;outline-offset:3px}.thumbs{display:flex;gap:6px;overflow:auto;padding:8px}.thumbs button{padding:0;background:none;flex:0 0 64px}.thumbs img{width:64px;height:56px;object-fit:cover}dialog{max-width:95vw;background:#101927;color:#fff;border:1px solid #53647d;border-radius:12px}dialog img{max-width:86vw;max-height:75vh;object-fit:contain}dialog::backdrop{background:#000c}footer{color:#b1c0d5}

/* Public list follows the approved Android app. Admin styling above stays separate. */
.public-page{color-scheme:dark;background:radial-gradient(ellipse at 50% 0,#172033 0,#090b10 650px);color:#f4f7fb;font:14px/1.35 Arial,Helvetica,sans-serif;min-height:100vh;padding-bottom:12px}
.public-page .public-header{max-width:1000px;margin:12px auto 0;padding:10px 12px;display:flex;gap:12px;align-items:center;background:linear-gradient(125deg,#141b27,#0d1119);border:1px solid #303746;border-radius:18px}
.public-header>img{display:block;flex:none;object-fit:contain;border-radius:10px}.public-heading{min-width:0}.public-page .brand{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#4fd39b;text-decoration:none;font-weight:700}.public-page h1{font-size:25px;letter-spacing:-.035em;line-height:1.1;margin:3px 0 5px}.public-page nav{gap:14px;font-size:12px}.public-page nav a{color:#b9c5d9;text-decoration:none}.public-page nav a:hover{text-decoration:underline}
.public-page main{max-width:1000px;padding:0;margin:10px auto}.public-toolbar{display:flex;gap:10px;margin-bottom:10px}.public-toolbar>.search-input{flex:1}.public-page #search{flex:1;min-width:0;max-width:none;min-height:44px;margin:0;padding:9px 12px;color:#f4f7fb;border:1px solid #4b8bd4;border-radius:11px;background:#10151e;font-size:16px}.public-page button{min-height:44px;padding:8px 14px;margin:0;border:1px solid #4d7db5;border-radius:10px;background:#213b61;color:#f4f7fb;font-weight:700;touch-action:manipulation}.public-toolbar button{background:linear-gradient(180deg,#2670c7,#1d58a4);border-color:#579ef0}
.public-page #status{color:#aeb7c7;font-size:14px;margin:16px 0}.public-page .records{display:flex;flex-direction:column;gap:8px}.public-page .tire-record{margin:0;border:1px solid #344052;border-radius:14px;overflow:hidden;background:linear-gradient(125deg,#171d28,#10151e)}
.tire-summary{display:flex;gap:10px;align-items:center;padding:8px;list-style:none;cursor:pointer;min-height:100px}.record-thumb{display:block;flex:none;width:72px;height:84px;object-fit:contain;border:1px solid #303b4f;border-radius:9px;background:#0c1018}.record-thumb.placeholder{background:white}.record-info{flex:1;min-width:0}.public-page .record-info h2{margin:0;font-size:19px;line-height:1.15;letter-spacing:-.025em;font-weight:800;overflow-wrap:anywhere}.record-info p{margin:3px 0 0;overflow-wrap:anywhere}.record-name{font-size:13px;line-height:1.3;color:#b9c5d9}.record-meta{font-size:12px;color:#aeb7c7;border-top:1px solid #303746;padding-top:4px}.record-price{font-size:12px;color:#4fd39b;font-weight:700}.record-arrow{flex:none;width:22px;text-align:center;font-size:23px;color:#70b1ff;transition:transform .15s}
.record-expanded{padding:14px;border-top:1px solid #303746;display:flex;gap:20px;align-items:flex-start}.record-facts{flex:1;min-width:0;display:grid;grid-template-columns:85px minmax(0,1fr);gap:7px 12px;margin:0;font-size:14px}.record-facts dt{color:#aeb7c7}.record-facts dd{margin:0;overflow-wrap:anywhere}.record-gallery{flex:1;min-width:0;max-width:460px}.public-page .record-photo-button{display:block;width:100%;padding:0;overflow:hidden;border:1px solid #303b4f;background:#0c1018}.record-photo-button img{display:block;width:100%;max-height:300px;object-fit:contain}.record-photos{display:flex;gap:6px;overflow-x:auto;margin-top:8px;padding:2px}.public-page .record-photos button{flex:none;min-height:0;padding:2px;border:2px solid transparent;background:#1b202b;border-radius:7px}.public-page .record-photos button.selected{border-color:#4e9dff}.record-photos img{display:block;width:48px;height:48px;object-fit:cover;border-radius:4px}
.public-page dialog{padding:12px;width:min(960px,96vw);max-width:96vw;max-height:96dvh}.public-page dialog #largePhoto{display:block;width:100%;max-width:100%;max-height:80dvh;object-fit:contain;margin-top:10px}.public-page dialog::backdrop{background:#050810ed}
@media(max-width:1024px){.public-page .public-header,.public-page main{margin-left:10px;margin-right:10px}}@media(max-width:540px){.record-expanded{flex-direction:column;gap:14px}.record-facts,.record-gallery{width:100%;max-width:none}.public-page h1{font-size:24px}.tire-summary{gap:9px}.record-arrow{width:16px}}@media(max-width:340px){.record-thumb{width:64px;height:78px}.public-page .record-info h2{font-size:17px}.record-name{font-size:12px}.record-meta,.record-price{font-size:11px}.public-page .public-header{gap:9px}.public-page nav{gap:10px;font-size:11px}}
@media(min-width:700px){.public-page .tire-summary{min-height:86px}.public-page .record-thumb{width:64px;height:70px}.public-page .record-info{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'size price' 'name price' 'meta price';gap:3px 14px;align-content:center}.public-page .record-info h2{grid-area:size}.public-page .record-name{grid-area:name;margin:0}.public-page .record-meta{grid-area:meta;margin:0;padding-top:3px}.public-page .record-price{grid-area:price;align-self:center;font-size:14px;margin:0;white-space:nowrap}}.public-page .public-comments{grid-column:1/-1;white-space:pre-wrap;overflow-wrap:anywhere}.public-comments h3{font-size:14px;margin:0 0 6px}.public-comments p{font-size:15px;margin:0}.install-link{display:inline-flex;padding:0;min-height:44px;background:none;border:0;color:#9dc9ff;text-decoration:underline;font:inherit;cursor:pointer;white-space:nowrap}.public-header nav{align-items:center;flex-wrap:wrap}#installDialog{max-width:380px;width:calc(100% - 32px);border:1px solid #426b9f;border-radius:12px;background:#141821;color:#f4f7fb;padding:20px}#installDialog p{line-height:1.5}#installDialog::backdrop{background:#000b}#photoDialog{overscroll-behavior:contain}

.public-page .install-link{display:inline-flex;min-height:44px;background:none;border:0;padding:0;color:#9dc9ff;font-size:13px;font-weight:400;text-decoration:underline;box-shadow:none}.search-choice{position:relative}.choice-trigger{height:32px!important;min-height:32px!important;padding:4px 9px!important;font-size:13px!important;white-space:nowrap;border:1px solid #426b9f;border-radius:5px;background:#141821;color:#fff}.choice-menu{position:absolute;top:100%;left:0;z-index:40;min-width:145px;max-width:270px;max-height:190px;overflow:auto;padding:4px;background:#141821;border:1px solid #426b9f;box-shadow:0 4px 12px #0008}.choice-menu button{display:block;width:100%;text-align:left;white-space:nowrap;min-height:34px;height:34px;padding:5px 9px;font-size:14px;border:0;background:none;color:white}.choice-menu button[aria-selected=true]{background:#294a70}.rim-divider,.public-page .rim-divider{display:flex;align-items:center;gap:8px;margin:3px 0 0;padding:0;background:none;border:0;border-radius:0;min-height:12px;height:12px;font-size:10px;line-height:12px;color:#aabbd0}.rim-divider:after{content:'';height:1px;flex:1;background:#364354}.note-editor{margin:0}.note-editor>summary{font-size:13px;padding:7px 0;color:#cbd6e3;cursor:pointer}.note-editor textarea{margin-top:4px;min-height:55px}.note-editor button{white-space:nowrap;font-size:12px;padding:4px 8px;min-height:30px}

.public-toolbar{flex-wrap:wrap}



.public-page button.tire-summary{display:flex;width:100%;text-align:left;margin:0;padding:8px;min-height:100px;background:none;border:0;border-radius:0;font-weight:400}.public-page.show-record{height:100dvh;overflow:hidden;padding:0}.public-page #recordScreen{height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-width:1000px;margin:auto;background:#10151e}.public-page .record-header{width:100%;margin:0;padding:6px 12px;border-bottom:1px solid #303746;display:flex;align-items:center;gap:12px}.public-page .record-header h1{font-size:20px;margin:0}.public-page #recordContent{overflow:auto;overscroll-behavior:contain;min-height:0}.public-page .record-footer{width:100%;padding:5px 10px;margin:0;border-top:1px solid #303746;display:flex;justify-content:flex-end;background:#10151e}.public-page .record-footer button{min-height:36px;padding:4px 18px;white-space:nowrap}.public-page #recordContent .record-expanded{border:0}.public-page .record-info{font-weight:400}

.public-toolbar{gap:8px;margin-bottom:6px}.public-page main{margin-top:6px}

.public-page #photoDialog{inset:0;margin:0;padding:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;background:#10151e;overflow:hidden}.public-page #photoDialog[open]{display:grid;grid-template-rows:minmax(0,1fr) auto}.public-photo-scroll{overflow:auto;min-height:0;padding:8px;overscroll-behavior:contain}.public-page #photoDialog #largePhoto{max-height:none;margin:0;object-fit:contain}.public-photo-footer{display:flex;justify-content:flex-end;padding:5px 10px;border-top:1px solid #303746}.public-photo-footer button{white-space:nowrap}.public-page #closeInstall{display:block;margin-left:auto}

.public-page:has(#photoDialog[open]) #recordScreen{visibility:hidden}

.search-input{position:relative;min-width:0}.search-input input{box-sizing:border-box;width:100%}.search-suggestions{position:absolute;top:100%;left:0;right:0;z-index:70;max-height:210px;overflow:auto;background:#141821;border:1px solid #426b9f;border-radius:0 0 7px 7px;box-shadow:0 5px 12px #0008}.search-suggestions button{display:block;width:100%;min-height:38px!important;margin:0!important;padding:7px 10px!important;text-align:left;font:14px Arial,sans-serif!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0!important;border-radius:0!important;background:#141821!important;color:#f4f7fb}.search-suggestions button:hover,.search-suggestions button[aria-selected=true]{background:#294a70!important}
