/* All offline presentation is scoped to these components. */
.lh-offline-status { position: sticky; top: 0; z-index: 10000; background: #f8f8f8; color: #000; padding: 10px 15px; display: flex; flex-wrap: wrap; gap: 15px; align-items: center; font-size: 14px; }
.lh-offline-status[hidden], .lh-offline-panel[hidden] { display: none; }
.lh-offline-status button { background: white; border: 1px solid #ddd; border-radius: 6px; padding: 5px 10px; }
.lh-offline-shell { padding-top: 20px; padding-bottom: 100px; }
.lh-offline-panel { margin: 20px auto; padding: 15px; max-width: 800px; }
.lh-offline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 20px; margin-bottom: 20px; }
.lh-offline-shell .lh-offline-control, .lh-offline-panel .lh-offline-control { display: inline-flex; align-items: center; gap: 8px; background: #f6f6f6; color: #333; border: 1px solid #ddd; border-radius: 6px; padding: 10px 15px; text-decoration: none; min-height: 44px; }
.lh-offline-control:focus-visible, .lh-offline-status button:focus-visible, .lh-offline-nav a:focus-visible { outline: 2px solid #c60000; outline-offset: 3px; }
.lh-offline-shell textarea { width: 100%; min-height: 150px; margin-top: 15px; }
.lh-offline-shell p, .lh-offline-panel p { margin: 0 0 15px; overflow-wrap: anywhere; }
.lh-offline-shell section, .lh-offline-shell details { margin-top: 20px; margin-bottom: 20px; }
.lh-offline-shell summary { cursor: pointer; }
.lh-offline-muted { color: #666; }
.lh-offline-score { margin: 20px 0; font-weight: bold; }
.lh-offline-history { padding: 15px 0; border-bottom: 1px solid #eee; }
.lh-offline-nav { display: flex; justify-content: space-around; align-items: center; position: fixed; bottom: 0; left: 0; width: 100%; padding: 15px; background: #f8f8f8; z-index: 9999; }
.lh-offline-nav a { color: #333; border: 0; padding: 5px 10px; }
.lh-offline-detail p { white-space: pre-wrap; }
.lh-offline-pending { white-space: nowrap; color: #666; }
.lh-offline-error { color: #a40000; margin: 20px 0; }

.lh-offline-progress { margin: 20px 0; color: #666; }
.lh-offline-panel { max-height: 90vh; overflow-y: auto; }

#lh-offline-local-history .lh-offline-history, #lh-offline-local-medals { margin: 20px 0; }

.lh-home { max-width: 500px; margin: 0 auto; background: #fff; color: #292a24; padding: 0 26px 24px; }
.lh-home .lh-home-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 20px 0 26px; }
.lh-home .lh-home-heading { min-width: 0; font-size: 19px; letter-spacing: -0.7px; font-weight: bold; }
.lh-home .lh-home-mascot { flex-shrink: 0; text-align: right; }
.lh-home-kids .lh-home-mascot { width: 100px; }
.lh-home-kids .lh-home-mascot > div { width: 100px !important; height: 150px !important; }
.lh-home-kids .lh-home-mascot video { width: 100%; height: 150px !important; object-fit: contain; }
.lh-home-kids .lh-home-mascot .applemute { top: 5px !important; right: 0 !important; }
.lh-home-kids .lh-home-kids-actions { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 5px; }
.lh-home-kids .lh-home-kids-actions a, .lh-home-kids .lh-home-kids-actions button { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; border: 1px dotted #1b757c; border-radius: 5px; background: #fff; color: #1b757c; font-size: 12px; letter-spacing: normal; font-weight: normal; text-decoration: none; white-space: nowrap; }
.lh-home.lh-home-kids .lh-home-scan { background: #1b757c; }
.lh-home-kids .lh-home-heading { font-size: 28px; letter-spacing: normal; }
.lh-home-kids .lh-home-kids-actions a { font-weight: bold; }
.lh-home .appname { opacity: 1; transform: none; animation: none; line-height: normal; }
.lh-home .lh-home-apple { width: 44px; height: 44px; padding: 0; background: white; border: 1px solid #e9e5dc; border-radius: 50%; overflow: hidden; }
.lh-home .lh-home-apple img { width: 100%; height: 100%; object-fit: contain; }
.lh-home .lh-home-intro { margin: 0 0 22px; font-size: 38px; line-height: 1.08; letter-spacing: -1.5px; font-weight: bold; text-align: left; }
.lh-home .lh-home-scan { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 23px 18px; background: #c90012; color: white; border: 0; border-radius: 10px; font-size: 17px; font-weight: bold; text-decoration: none; }
.lh-home .lh-home-scan i { font-size: 25px; }
.lh-home .lh-home-scan-hint { margin: 15px 0 0; color: #6f7165; text-align: center; font-size: 13px; line-height: 1.5; }
.lh-home .lh-home-showcase { margin-top: 28px; }
.lh-home .lh-home-section-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 15px; }
.lh-home .lh-home-section-top h2 { margin: 0; font-size: 19px; letter-spacing: -0.6px; font-weight: bold; }
.lh-home .lh-home-section-top span { font-size: 11px; color: #6f7165; }
.lh-home .lh-home-feature { display: flex; flex-direction: column; padding: 23px; border: 0; border-radius: 18px; background: #f7e6dc; color: #292a24; text-decoration: none; }
.lh-home .lh-home-country { align-self: flex-start; padding: 5px 7px; margin-bottom: 24px; border: 1px solid #6f7165; border-radius: 5px; font-size: 10px; text-transform: uppercase; white-space: nowrap; }
.lh-home .lh-home-brand { font-size: 12px; letter-spacing: 1.5px; font-weight: bold; overflow-wrap: anywhere; }
.lh-home .lh-home-product-name { margin: 10px 0 0; font-size: 29px; line-height: 1.1; letter-spacing: -1px; font-weight: bold; overflow-wrap: anywhere; }
.lh-home .lh-home-product-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; padding: 14px 16px; background: #fff; color: #292a24; border: 1px solid #e9e5dc; border-radius: 10px; font-size: 13px; font-weight: bold; text-decoration: none; }
.lh-home .lh-home-more { margin-top: 25px; }
.lh-home .lh-home-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lh-home .lh-home-example { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 17px; border: 0; border-radius: 13px; background: #fff; color: #292a24; text-decoration: none; }
.lh-home .lh-home-example strong { font-size: 14px; overflow-wrap: anywhere; }
.lh-home .lh-home-example small { font-size: 12px; line-height: 1.5; color: #6f7165; overflow-wrap: anywhere; }
.lh-home .lh-home-example img { width: 52px; height: 60px; object-fit: contain; }
.lh-home .lh-home-quota-note { margin: 15px 0 0; font-size: 11px; line-height: 1.5; color: #6f7165; }
.lh-home .lh-home-tools { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e9e5dc; }
.lh-home .lh-home-search > summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; list-style: none; cursor: pointer; font-size: 14px; }
.lh-home .lh-home-search > summary::-webkit-details-marker { display: none; }
.lh-home .lh-home-search > summary .fa-chevron-down { margin-left: auto; font-size: 11px; }
.lh-home .lh-home-search[open] > summary .fa-chevron-down { transform: rotate(180deg); }
.lh-home .lh-home-search-row { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 7px 7px 7px 15px; border: 1px solid #e9e5dc; background: #fff; border-radius: 14px; }
.lh-home .lh-home-search-row > .input-container { min-width: 0; flex: 1; }
.lh-home .lh-home-search-row .q { width: 100%; padding: 9px 28px 9px 0; background: transparent; border: 0; font-size: 16px; color: #292a24; }
.lh-home .lh-home-search-row .q::placeholder { color: #6f7165; }
.lh-home .lh-home-search-row #clearButton { right: 3px; }
.lh-home .lh-home-search-submit { flex: 0 0 38px; height: 38px; border: 0; background: #292a24; color: #fffdf8; border-radius: 9px; }
.lh-home .lh-home-search-help { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-top: 15px; font-size: 11px; color: #6f7165; }
.lh-home .lh-home-barcode { padding: 0; border: 0; background: none; color: #292a24; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lh-home .lh-home-paste { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; margin-top: 18px; border: 0; background: none; color: #292a24; text-align: left; font-size: 14px; }
.lh-home .lh-home-paste .fa-arrow-right { margin-left: auto; font-size: 12px; }
.lh-home #suggestions { margin-top: 15px; }
.lh-home .suggestion-item { background: #fff; border-color: #e9e5dc; font-size: 14px; }
.lh-home .lh-home-paste-panel { margin-top: 20px; }
.lh-home .lh-home-paste-panel label { display: block; margin-bottom: 15px; }
.lh-home .lh-home-paste-panel textarea { width: 100%; height: 200px; padding: 13px; border: 1px solid #e9e5dc; border-radius: 10px; font-size: 16px; background: #fff; }
.lh-home .lh-home-paste-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-top: 18px; }
.lh-home .lh-home-paste-actions button { padding: 12px 16px; border: 1px solid #e9e5dc; border-radius: 9px; background: #fff; color: #292a24; }
.lh-home .lh-home-paste-actions button[type="submit"] { background: #292a24; color: #fffdf8; }
.lh-home .lh-home-paste-count { margin: 15px 0 0; color: #6f7165; font-size: 12px; }
.lh-home .lh-home-browser-warning { margin: 20px 0; padding: 20px; background: #ff005c; color: white; border-radius: 10px; font-size: 14px; }
.lh-home .lh-home-language { margin-top: 25px; color: #6f7165; font-size: 12px; line-height: 1.6; }
.lh-home-upgrade { max-width: 500px; margin: 20px auto; padding: 0 26px; }
.lh-home-apple-language { max-width: 500px; margin: 20px auto; padding: 20px; color: gray; background: white; border-radius: 5px; line-height: 1.65; }
.lh-home-apple-language p { margin: 20px 0 0; }
.lh-home-upgrade a { display: block; border: 0; }
.lh-home-upgrade img { display: block; width: 100%; border: 2px dotted silver; }
.lh-home a:focus-visible, .lh-home button:focus-visible, .lh-home input:focus-visible, .lh-home textarea:focus-visible, .lh-home summary:focus-visible { outline: 2px solid #292a24; outline-offset: 3px; }
@media (max-width: 430px) {
    .lh-home.lh-home-kids { padding-left: 16px; padding-right: 16px; }
    .lh-home-kids .lh-home-header { gap: 8px; }
    .lh-home-kids .lh-home-mascot, .lh-home-kids .lh-home-mascot > div { width: 64px !important; }
}
@media (max-width: 390px) {
    .lh-home { padding-left: 20px; padding-right: 20px; }
    .lh-home .lh-home-intro { font-size: 34px; }
    .lh-home .lh-home-feature { padding: 20px; }
    .lh-home .lh-home-product-name { font-size: 26px; }
}

.lh-offline-footer{display:flex;justify-content:center}.lh-offline-footer .noselect{position:fixed;bottom:0;width:100%;max-width:480px;z-index:99999;background:#f8f8f8;border-top-left-radius:5px}.lh-offline-footer table{background:#f8f8f8;width:100%}.lh-offline-footer .cerc{position:fixed;bottom:-30px;left:50%;transform:translateX(-50%);width:120px;height:120px;background:#f8f8f8;border:2px solid #f8f8f8;border-radius:50%;z-index:99998}.lh-offline-menu{position:fixed;bottom:100px;left:calc(50% - 100px);width:200px;padding:10px;background:#f8f8f8;border-radius:5px;z-index:100001}.lh-offline-menu button,.lh-offline-menu a{display:flex;gap:8px;width:100%;padding:10px;border:0;background:transparent;color:inherit;text-decoration:none;font-size:14px}.lh-offline-menu-shade{position:fixed;inset:0;background:rgba(0,0,0,.8);z-index:100000}.lh-offline-menu[hidden],.lh-offline-menu-shade[hidden]{display:none}

.lh-offline-menu .amenulink { align-items:center; gap:5px; background:#eaeaea; color:black; margin-bottom:10px; border-radius:5px; }

.lh-offline-shell:has(.lh-home) {padding-top:10px;}

.lh-offline-menu.lh-offline-home-menu { bottom:80px; width:160px; padding:0; background:transparent; border-radius:0; display:flex; flex-direction:column; gap:8px; }
.lh-offline-menu.lh-offline-home-menu[hidden] { display:none; }
.lh-offline-home-menu a { position:absolute; left:0; align-items:center; gap:4px; min-height:42px; padding:10px 0 10px 15px; color:white; border-radius:4px; font-size:15px; text-align:left; white-space:nowrap; }
.lh-offline-home-menu a:nth-child(1) { bottom:150px; }
.lh-offline-home-menu a:nth-child(2) { bottom:100px; }
.lh-offline-home-menu a:nth-child(3) { bottom:50px; }
.lh-offline-home-menu a:nth-child(4) { bottom:0; }
.lh-offline-home-menu i { font-size:16px; }
.lh-offline-menu-shade.lh-offline-home-shade { background:rgba(255,255,255,0.9); }

.lh-offline-preparation { margin-top: 15px; color: #6f7165; font-size: 12px; line-height: 1.6; }
.lh-offline-preparation[hidden] { display:none; }
