/* Presentation scoped to the native My Handy update dialog. */
#my-handy-panel .myhandy-updates-entry {
    justify-self: end; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 0; max-width: 100%; min-height: 32px; margin: 0 0 0 auto;
    padding: 6px 11px; border: 1px solid #cbd9e7; border-radius: 8px;
    background: linear-gradient(115deg, #fff, #f3f8ff); color: var(--o2-brand-blue, #173a5e);
    box-shadow: none;
    font: inherit; font-size: .73rem; font-weight: 850; line-height: 1.4;
    text-align: center; white-space: normal; overflow-wrap: anywhere; cursor: pointer;
    transition: border-color .16s, box-shadow .16s, transform .16s;
}
#my-handy-panel .myhandy-updates-entry:hover { border-color: #6597d9; box-shadow: 0 3px 10px rgb(28 75 132 / 12%); transform: translateY(-1px); }
#my-handy-panel .myhandy-updates-entry .mh-entry-icon { display: grid; place-items: center; flex: 0 0 16px; width: 16px; height: 16px; color: #1265bd; }
.mh-entry-icon svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mh-entry-baseline { opacity: .35; }
#my-handy-panel .myhandy-updates-entry:focus-visible { outline: 3px solid #245b91; outline-offset: 2px; }
#my-handy-panel .myhandy-updates-entry[hidden] { display: none !important; }
body[data-layout="smartphone"] #my-handy-panel .myhandy-updates-entry { grid-column: 1 / -1; }
dialog.mh-updates {
    --mh-ink: #173958; --mh-muted: #597087; --mh-soft: #f2f7fc;
    --mh-line: #dce7f1; --mh-blue: #0759c9; --mh-up: #a14815; --mh-down: #15734f;
    width: min(620px, calc(100% - 24px)); max-width: none; min-width: 0;
    max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
    margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain;
    border: 1px solid rgb(255 255 255 / 85%); border-radius: 22px;
    background: #fff; color: var(--mh-ink); box-shadow: 0 28px 90px rgb(10 30 61 / 28%), 0 3px 15px rgb(10 30 61 / 10%);
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px; line-height: 1.4; text-align: left;
    scrollbar-width: thin; scrollbar-color: #bbccdc transparent;
}
.mh-updates[open] { animation: mh-dialog-in .18s ease-out both; }
.mh-updates::backdrop { background: rgb(16 36 59 / 43%); backdrop-filter: blur(3px); }
.mh-updates *, .mh-updates *::before, .mh-updates *::after { box-sizing: border-box; }
.mh-updates [hidden] { display: none !important; }
.mh-updates button, .mh-updates a { -webkit-tap-highlight-color: transparent; }
.mh-updates button {
    font: inherit; cursor: pointer; color: inherit; letter-spacing: normal;
    min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere;
}
.mh-updates button:focus-visible, .mh-updates a:focus-visible { outline: 3px solid #245b91; outline-offset: 2px; }
.mh-updates button:disabled { opacity: .65; cursor: wait; }
.mh-update-header { display: flex; align-items: center; gap: 12px; margin: 0; padding: 19px 23px 14px; background: radial-gradient(ellipse at 0 0, #edf6ff, transparent 70%); }
.mh-update-brand { display: block; width: 42px; height: 42px; flex: 0 0 42px; position: relative; overflow: hidden; }
.mh-updates .mh-update-brand-image { display: block; position: absolute; width: 90px; max-width: none; height: auto; left: -24px; top: -9px; }
.mh-update-heading { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.mh-updates .mh-update-heading h2 { margin: 0 0 4px; color: var(--mh-ink); font-size: 21px; font-weight: 650; letter-spacing: -.5px; line-height: 1.25; }
.mh-update-meta { margin: 0; font-size: 12px; color: var(--mh-muted); }
.mh-update-meta:empty { display: none; }
.mh-updates .mh-update-close { flex: 0 0 44px; width: 44px; padding: 0; border: 1px solid var(--mh-line); border-radius: 50%; background: #fff; color: var(--mh-muted); font-size: 24px; line-height: 1; }
.mh-update-close:hover { background: var(--mh-soft); }
.mh-update-switch { display: flex; gap: 3px; padding: 3px; margin: 0 23px 13px; width: max-content; max-width: calc(100% - 46px); background: #edf2f7; border: 1px solid #e0e8f0; border-radius: 11px; }
.mh-updates .mh-update-switch button { min-height: 36px; border: 0; border-radius: 8px; background: none; color: var(--mh-muted); padding: 7px 16px; font-size: 12px; font-weight: 600; transition: background .15s, box-shadow .15s; }
.mh-updates .mh-update-switch button[aria-pressed="true"] { background: #fff; color: var(--mh-blue); box-shadow: 0 1px 5px rgb(16 54 94 / 14%); }
.mh-update-switch button:hover { box-shadow: inset 0 0 0 1px var(--mh-line); }
.mh-update-feature { margin: 0 23px 13px; padding: 17px; background: linear-gradient(120deg,#f2f7ff,#f7faff 55%,#fff); border: 1px solid #dce8f6; border-radius: 17px; overflow-wrap: anywhere; }
.mh-update-feature.is-empty { padding: 24px 16px; }
.mh-update-hero-head { display: flex; align-items: center; gap: 19px; }
.mh-update-device-stage { position: relative; display: grid; place-items: center; isolation: isolate; width: 93px; height: 110px; flex: 0 0 93px; }
.mh-update-device-stage::before { content: ''; position: absolute; z-index: -1; inset: 12px -3px 7px; border-radius: 50%; background: radial-gradient(circle,#d4e6ff, #e7f1ff 57%,transparent 59%); }
.mh-update-device-stage::after { content: ''; position: absolute; z-index: -1; width: 66px; height: 11px; bottom: 2px; border-radius: 50%; background: radial-gradient(ellipse,#385b8b35,transparent 70%); }
.mh-update-hero { display: block; width: 78px; height: 100px; object-fit: contain; filter: drop-shadow(0 5px 5px rgb(39 69 110 / 15%)); }
.mh-update-device-placeholder { width: 46px; height: 70px; stroke: #87a5c8; stroke-width: 2; }
.mh-update-hero-copy { min-width: 0; flex: 1; }
.mh-updates .mh-update-hero-copy h3 { font-size: 17px; font-weight: 650; line-height: 1.35; margin: 0 0 9px; color: var(--mh-ink); letter-spacing: -.2px; }
.mh-update-storage { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.mh-updates .mh-update-storage button { min-height: 34px; padding: 6px 10px; border: 1px solid #cfdded; border-radius: 8px; background: #fff; color: var(--mh-muted); font-size: 11px; font-weight: 600; }
.mh-updates .mh-update-storage button[aria-pressed="true"] { background: #eaf2ff; border-color: #80aaea; color: #074ab2; box-shadow: inset 0 0 0 1px #80aaea; }
.mh-update-storage button:hover { box-shadow: 0 0 0 2px rgb(0 87 217 / 12%); }
.mh-update-price-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; }
.mh-update-rate { font-size: 34px; font-weight: 650; line-height: 1.2; letter-spacing: -1.1px; font-variant-numeric: tabular-nums; }
.mh-update-rate small { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--mh-muted); }
.mh-update-previous { color: var(--mh-muted); font-size: 12px; margin-top: 4px; }
.mh-update-hero-delta { width: max-content; max-width: 100%; padding: 5px 8px; border-radius: 7px; background: #edf1f5; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mh-update-hero-delta.up { background: #fff0e4; }
.mh-update-hero-delta.down { background: #e4f4ec; }
.mh-updates .up { color: var(--mh-up); }
.mh-updates .down { color: var(--mh-down); }
.mh-updates .same { color: var(--mh-muted); }
.mh-update-terms { font-size: 12px; color: var(--mh-muted); margin: 11px 0 0; padding-top: 10px; border-top: 1px solid var(--mh-line); line-height: 1.5; font-variant-numeric: tabular-nums; }
.mh-update-chart { display: block; width: 100%; height: auto; margin-top: 7px; overflow: visible; }
.mh-update-chart text { fill: var(--mh-muted); font-family: inherit; font-size: 11px; }
.mh-update-history { margin-top: 12px; }
.mh-update-history-head { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--mh-muted); }
.mh-update-history-head strong { color: var(--mh-ink); font-weight: 600; }
.mh-update-chart line { stroke: #dce4ed; stroke-dasharray: 2 4; }
.mh-update-chart .mh-update-chart-area { stroke: none; }
.mh-update-chart .mh-update-chart-target { fill: transparent; cursor: pointer; }
.mh-update-chart .mh-update-chart-halo { opacity: 0; transition: opacity .15s; pointer-events: none; }
.mh-update-chart .mh-update-chart-halo.is-latest { opacity: .13; }
.mh-update-chart g:hover .mh-update-chart-halo, .mh-update-chart g:focus .mh-update-chart-halo { opacity: .22; }
.mh-update-chart .mh-update-chart-dot { stroke: white; stroke-width: 1.5; pointer-events: none; }
.mh-update-chart [tabindex]:focus { outline: none; }
.mh-update-chart [tabindex]:focus circle:last-child { stroke: #0057d9; stroke-width: 3; }
.mh-update-history-value { font-size: 11px; color: var(--mh-muted); margin: 5px 0 0; font-variant-numeric: tabular-nums; }
.mh-update-row-selected { color: var(--mh-blue); font-size: 11px; display: inline-flex; align-items: center; gap: 5px; }
.mh-update-row-selected svg { width: 20px; height: 20px; border-radius: 50%; background: #dceaff; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mh-update-chart rect { stroke: var(--mh-line); stroke-width: 1; }
.mh-update-chart path { stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; }
.mh-update-chart circle { fill: currentColor; }
.mh-update-chart-empty { margin: 16px 0 0; color: var(--mh-muted); font-size: 12px; }
.mh-update-list { padding: 3px 23px 6px; display: grid; gap: 6px; max-height:230px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#aebfd4 transparent; }
.mh-update-list .mh-update-row { min-height:69px; flex-shrink:0; }
.mh-update-chart-scroll { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:#aebfd4 transparent; }
.mh-update-chart-scroll svg { max-width:none; }
.mh-updates .mh-update-point-price { font-weight:650; fill:#173958; font-size:11px; paint-order:stroke; stroke:#fff; stroke-width:4px; stroke-linejoin:round; pointer-events:none; }
.mh-updates .mh-update-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; margin: 0; border: 1px solid var(--mh-line); border-radius: 11px; background: #fff; color: var(--mh-ink); text-align: left; transition: border-color .15s, background .15s, box-shadow .15s; }
.mh-updates .mh-update-row[aria-pressed="true"] { background: #f0f6ff; border-color: #a6c5ef; }
.mh-updates .mh-update-row:hover { border-color: #93b9e4; box-shadow: 0 2px 8px rgb(31 69 121 / 7%); }
.mh-update-thumb { width: 35px; height: 49px; object-fit: contain; flex: 0 0 35px; }
.mh-update-row-copy { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.mh-update-row-name { font-size: 13px; font-weight: 600; display: block; }
.mh-update-row-sub { font-size: 11px; color: var(--mh-muted); display: block; margin-top: 4px; }
.mh-update-row-prices { min-width: 0; flex: 0 1 46%; text-align: right; font-variant-numeric: tabular-nums; }
.mh-update-row-compare { font-size: 13px; font-weight: 600; display: block; }
.mh-update-row-compare del { font-size: 11px; color: var(--mh-muted); font-weight: 400; display: inline-block; margin-right: 5px; }
.mh-update-row-delta { display: block; font-size: 11px; margin-top: 5px; }
.mh-update-row-upfront { font-size: 11px; color: var(--mh-muted); display: block; margin-top: 4px; }
.mh-updates .mh-update-more { border: 0; background: none; color: var(--mh-blue); font-size: 12px; padding: 14px; width: 100%; }
.mh-update-more:hover { text-decoration: underline; }
.mh-update-footer { padding: 13px 23px; border-top: 1px solid var(--mh-line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fafcfe; border-radius: 0 0 22px 22px; }
.mh-update-footer small { font-size: 11px; color: var(--mh-muted); overflow-wrap: anywhere; }
.mh-updates .mh-update-primary { background: linear-gradient(135deg,#0865d7,#0748ad); color: #fff; border: 1px solid #0754be; border-radius: 10px; padding: 11px 19px; font-size: 13px; font-weight: 600; box-shadow: 0 3px 7px rgb(16 75 162 / 17%), inset 0 1px rgb(255 255 255 / 16%); }
.mh-update-primary:hover { background: #0048b5; }
.mh-updates .mh-update-share { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #cad9e9; background: #fff; color: var(--mh-ink); border-radius: 10px; padding: 11px 14px; font-size: 13px; margin-left: auto; }
.mh-update-share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mh-update-share:hover { background: var(--mh-soft); }
.mh-update-share[hidden] + .mh-update-primary { margin-left: auto; }
.mh-update-share-panel { padding: 16px 23px; border-top: 1px solid var(--mh-line); background: var(--mh-soft); }
.mh-updates.is-sharing :is(.mh-update-feature,.mh-update-list,.mh-update-more,.mh-update-footer) { display:none; }
.mh-update-share-head { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.mh-update-share-head strong { font-size:13px; font-weight:600; }
.mh-updates .mh-update-share-head button { border:0; border-radius:8px; padding:8px 10px; background:#fff; color:var(--mh-blue); font-size:12px; }
.mh-update-preview-link { display:block; width:100%; max-height:340px; margin:auto; border-radius:10px; overflow:auto; background:#fff; border:1px solid var(--mh-line); }
.mh-update-enlarge { display:inline-block; margin-top:10px; font-size:12px; color:var(--mh-blue); text-decoration:none; }
.mh-update-enlarge:hover { text-decoration:underline; }
.mh-update-share-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mh-updates .mh-update-share-actions button, .mh-updates .mh-update-download { border: 1px solid var(--mh-line); background: #fff; color: var(--mh-ink); border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 12px; text-decoration: none; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
.mh-updates .mh-update-download { display: inline-flex; align-items: center; color: var(--mh-blue); }
.mh-update-share-actions button:hover, .mh-update-download:hover { background: #e7f0f9; }
.mh-updates .mh-update-share-actions [data-action="native-share"] { background:var(--mh-blue); color:#fff; border-color:var(--mh-blue); }
.mh-update-share-actions { margin-top:16px; }
.mh-update-share-text { display:block; width:100%; min-height:150px; margin-top:12px; padding:12px; border:1px solid var(--mh-line); border-radius:8px; font:inherit; font-size:12px; color:var(--mh-ink); background:#fff; }
.mh-update-share-note { font-size: 11px; color: var(--mh-muted); line-height: 1.5; margin: 10px 0 0; overflow-wrap: anywhere; }
.mh-update-preview { display: block; width:100%; max-width: 100%; height:auto; margin:0; background:#fff; }
.mh-update-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 440px) {
    .mh-update-header { padding: 18px 16px; gap: 8px; }
    .mh-updates .mh-update-heading h2 { font-size: 19px; }
    .mh-update-switch { margin-left: 16px; max-width: calc(100% - 32px); }
    .mh-update-feature { margin: 0 12px 10px; padding: 13px; }
    .mh-update-hero-head { gap: 10px; }
    .mh-update-device-stage { width: 54px; height: 78px; flex-basis: 54px; }
    .mh-update-device-stage::before { inset: 12px -3px; }
    .mh-update-device-stage::after { width: 45px; }
    .mh-update-hero { width: 50px; height: 74px; }
    .mh-updates .mh-update-hero-copy h3 { font-size: 15px; }
    .mh-update-hero-delta { font-size: 11px; }
    .mh-update-rate { font-size: 29px; }
    .mh-update-rate small { font-size: 11px; }
    .mh-update-list { padding: 0 12px 12px; }
    .mh-updates .mh-update-row { flex-wrap: wrap; gap: 8px; }
    .mh-update-thumb { width: 27px; height: 41px; flex-basis: 27px; }
    .mh-update-row-copy { flex-basis: calc(100% - 43px); }
    .mh-update-row-prices { flex-basis: 100%; text-align: left; padding-left: 35px; }
    .mh-update-row-compare { font-size: 12px; }
    .mh-update-footer, .mh-update-share-panel { padding: 16px; }
    .mh-update-footer small { width: 100%; }
    .mh-updates .mh-update-share { margin-left: 0; }
}
@keyframes mh-dialog-in { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: none; } }
/* Same wide workspace in My Handy and Freie Ware. No price/card overrides. */
dialog.mh-updates { width: min(1120px, calc(100vw - 40px)); overflow: hidden; }
dialog.mh-updates[open] { display: flex; flex-direction: column; height: min(760px, calc(100dvh - 40px)); }
.mh-update-header, .mh-update-switch, .mh-update-footer { flex-shrink: 0; }
.mh-update-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); gap: 22px; flex: 1; min-height: 0; padding: 2px 23px 20px; }
.mh-update-workspace .mh-update-feature { margin: 0; min-width: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.mh-update-browser { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.mh-update-search { display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--mh-line); border-radius: 11px; background: #f8fbfe; flex-shrink: 0; }
.mh-update-search svg { width: 18px; height: 18px; stroke: #637d96; stroke-width: 1.7; flex: 0 0 auto; }
.mh-update-search input { width: 100%; min-width: 0; height: 42px; border: 0; background: transparent; font: inherit; color: var(--mh-ink); outline: none; }
.mh-update-search:focus-within { border-color: #80aaea; box-shadow: 0 0 0 2px #0759c91a; }
.mh-update-workspace .mh-update-list { display: flex; flex-direction: column; flex: 1; min-height: 0; max-height: none; padding: 2px 4px 4px 0; overflow-y: auto; }
.mh-update-search-empty { text-align: center; color: var(--mh-muted); padding: 28px 10px; font-size: 13px; }
.mh-updates.is-sharing .mh-update-workspace, .mh-updates.is-sharing .mh-update-switch { display: none; }
.mh-updates.is-sharing .mh-update-share-panel { min-height: 0; overflow-y: auto; }
@media (max-width: 799px) {
 dialog.mh-updates { width: calc(100vw - 24px); }
 dialog.mh-updates[open] { height: calc(100dvh - 24px); }
 .mh-update-workspace { display: flex; flex-direction: column; gap: 14px; padding: 0 12px 12px; overflow-y: auto; }
 .mh-update-workspace .mh-update-feature { flex: 0 0 auto; overflow: visible; }
 .mh-update-browser { flex: 1 0 190px; }
 .mh-update-workspace .mh-update-list { max-height: 300px; min-height: 140px; }
 .mh-update-search input { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .mh-updates[open] { animation: none; }
    .mh-updates *, #my-handy-panel .myhandy-updates-entry { transition: none; }
    #my-handy-panel .myhandy-updates-entry:hover { transform: none; }
}
