/* Product CSS migrated from confirmed AIPH_00115 demo. */
.app-update{--primary:#006b62;--on-primary:#fff;--tonal:#d5efea;--canvas:#f7f9f7;--surface:#fff;--soft:#f0f3f1;--ink:#1b1c1b;--muted:#5d625f;--line:#d9e0dc;--error:#b3261e;--error-bg:#ffdad6;--ok:#2d6948;--ok-bg:#dcede2;--warn:#725300;--warn-bg:#f7e8be;font-family:Inter,system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--ink);background:#e9eeeb;line-height:1.55;font-synthesis:none}
.app-update *{box-sizing:border-box}
.app-update{margin:0}
.app-update button,.app-update input,.app-update select{font:inherit}
.app-update button,.app-update a{touch-action:manipulation}
.app-update button{min-height:48px;border:0;border-radius:28px;padding:0 22px;cursor:pointer;background:var(--primary);color:white;font-weight:600;display:inline-flex;gap:8px;align-items:center;justify-content:center}
.app-update button:hover{filter:brightness(.94)}
.app-update button:active{transform:translateY(1px)}
.app-update button:disabled{background:#e0e4e1;color:#737874;cursor:default;transform:none}
.app-update button.secondary{background:transparent;color:var(--primary);border:1px solid #818985}
.app-update button.text{background:transparent;color:var(--primary);padding:0 12px}
.app-update button.icon{width:48px;flex:none;padding:0;background:transparent;color:var(--ink)}
.app-update :focus-visible{outline:3px solid #467ed4;outline-offset:3px}
.app-update h1[tabindex="-1"]:focus{outline:none}
.app-update a{color:var(--primary)}
.app-update svg{width:22px;height:22px;flex:none}
.app-update h1,.app-update h2,.app-update h3,.app-update p{margin:0}
.app-update h1{font-size:26px;line-height:1.3;letter-spacing:-.6px}
.app-update h2{font-size:20px;line-height:1.4}
.app-update h3{font-size:16px}
.app-update small,.app-update .muted{color:var(--muted)}
.app-update small{font-size:12px}
.app-update p{overflow-wrap:anywhere}
.app-update .main{padding:30px 28px;min-width:0}
.app-update .heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.app-update .heading p{font-size:13px;color:var(--muted);margin-top:7px}
.app-update .surface{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.app-update .pad{padding:20px}
.app-update .pkg-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.9fr) 72px;align-items:center;gap:14px;padding:21px 20px;border-top:1px solid var(--line);font-size:14px}
.app-update .pkg-row:first-child{border:0}
.app-update .pkg-row.head{background:var(--soft);font-size:12px;padding:12px 20px;color:var(--muted)}
.app-update .pkg-row strong{display:block}
.app-update .pkg-row small{display:block;margin-top:3px}
.app-update .pkg-row button{padding:0 8px}
.app-update .pill{display:inline-flex;align-items:center;gap:6px;background:var(--ok-bg);color:var(--ok);padding:4px 10px;border-radius:20px;font-size:12px;font-weight:500}
.app-update .notice{padding:14px 16px;border-radius:12px;background:var(--soft);font-size:13px;line-height:1.7;margin-top:18px;overflow-wrap:anywhere}
.app-update .notice.success{color:var(--ok);background:var(--ok-bg)}
.app-update .notice.error{color:var(--error);background:#fff0ee}
.app-update .notice.warning{color:var(--warn);background:#fff5d9}
.app-update .flex{display:flex;gap:12px;align-items:center}
.app-update .spread{justify-content:space-between}
.app-update .stack{display:grid;gap:16px}
.app-update .fields{margin:0}
.app-update .fields>div{display:grid;grid-template-columns:95px minmax(0,1fr);gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}
.app-update .fields>div:last-child{border:0}
.app-update .fields dt{color:var(--muted)}
.app-update .fields dd{margin:0;overflow-wrap:anywhere}
.app-update .mono{font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px;word-break:break-all}
.app-update .label{display:block;font-size:13px;color:var(--muted);margin-bottom:8px}
.app-update select{width:100%;height:56px;border:1px solid #818985;border-radius:6px;background:var(--surface);padding:0 14px;color:var(--ink)}
.app-update .file-box{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;background:var(--soft);border:1px dashed #818985;border-radius:12px;min-height:92px}
.app-update .file-box p{font-size:13px}
.app-update .actions{display:flex;gap:8px;justify-content:flex-end;margin-top:24px;flex-wrap:wrap}
.app-update .empty{padding:44px 20px;text-align:center}
.app-update .empty .app-icon{margin:0 auto 14px}
.app-update .empty p{margin:8px 0 20px}
.app-update .two{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.app-update .section-label{font-size:13px;color:var(--muted);margin:22px 0 10px}
.app-update .history-row{display:flex;justify-content:space-between;gap:16px;padding:14px 20px;border-bottom:1px solid var(--line);font-size:13px}
.app-update .history-row:last-child{border:0}
.app-update dialog{border:0;border-radius:28px;padding:24px;max-width:calc(100vw - 32px);width:410px;background:#f0f5f1;color:var(--ink);box-shadow:0 24px 80px #183c3033}
.app-update dialog::backdrop{background:#14251e66}
.app-update dialog h2{font-size:22px;margin-bottom:14px}
.app-update dialog p{font-size:14px}
.app-update dialog .actions{margin-top:20px}
.app-update .file-choice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:white;color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:12px;width:100%;overflow-wrap:anywhere}
.app-update .phone{height:704px;display:flex;flex-direction:column;position:relative;background:var(--canvas)}
.app-update .topbar{display:flex;gap:6px;align-items:center;min-height:60px;padding:4px 10px;flex:none;border-bottom:1px solid #edf0ed}
.app-update .topbar h2{font-size:19px}
.app-update .phone-content{padding:20px 18px 24px;overflow:auto;flex:1;min-height:0}
.app-update .app-identity{text-align:center;padding:12px 0 24px}
.app-update .app-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:var(--tonal);color:var(--primary);margin:0 auto 12px}
.app-update .app-icon svg{width:30px;height:30px}
.app-update .app-identity h3{font-size:18px}
.app-update .app-identity p{margin-top:4px;font-size:13px;color:var(--muted)}
.app-update .phone .pad{padding:16px}
.app-update .phone h3{font-size:16px}
.app-update .phone .fields>div{grid-template-columns:74px minmax(0,1fr);font-size:13px;padding:12px 0}
.app-update .phone .notice{margin-top:16px}
.app-update .phone .section-label{margin:20px 0 10px}
.app-update .phone .full{width:100%;margin-top:18px}
.app-update .phone .actions{margin-top:16px}
.app-update .setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;border-bottom:1px solid var(--line);padding:10px 16px;font-size:14px}
.app-update .setting-row:last-child{border:0}
.app-update .setting-row small{display:block;margin-top:2px}
.app-update .setting-row.action{width:100%;background:white;border-radius:0;color:var(--ink);font-weight:400;text-align:left;justify-content:space-between}
.app-update .version{font-size:26px;font-weight:650;letter-spacing:-.5px;margin:10px 0 3px}
.app-update .progress{height:6px;background:#dce7e1;border-radius:6px;overflow:hidden;margin:16px 0 8px}
.app-update .progress>span{display:block;background:var(--primary);height:100%;border-radius:6px}
.app-update .download-meta{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.app-update .dialog-card{padding:24px;background:#f0f5f1;border-radius:28px;width:100%;max-height:100%;overflow:auto;box-shadow:0 12px 32px #17362d22}
.app-update .dialog-card h3{font-size:22px;margin-bottom:14px}
.app-update .dialog-card p{font-size:14px;line-height:1.65}
.app-update .dialog-card .actions{gap:0;margin-top:20px;flex-wrap:nowrap}
.app-update .dialog-card button{padding:0 13px}
.app-update .taskline{font-size:13px;display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.app-update .system-icon{margin-bottom:16px;display:flex;align-items:center;gap:12px}
.app-update .system-icon .app-icon{margin:0;width:42px;height:42px;border-radius:12px}
.app-update .system-icon h3{font-size:18px;margin:0}
.app-update .help{margin:12px 0 0;font-size:12px;color:var(--muted);line-height:1.7}
@media(max-width:1080px){.app-update .main{padding:24px 20px}
.app-update .pkg-row{padding:16px 12px;gap:8px}
}
@media(max-width:760px){.app-update .main{padding:22px 18px}
.app-update .heading{align-items:flex-start}
.app-update .heading h1{font-size:23px}
.app-update .heading>button{white-space:nowrap;padding:0 14px}
.app-update .pkg-row{grid-template-columns:1fr auto;gap:12px}
.app-update .pkg-row.head{display:none}
.app-update .pkg-row>[data-label]:before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:4px}
.app-update .two{grid-template-columns:1fr}
.app-update .file-box{align-items:flex-start;flex-direction:column}
.app-update .phone{height:724px}
}
@media(prefers-reduced-motion:reduce){.app-update *{scroll-behavior:auto!important;transition:none!important}
}

.app-update{background:var(--canvas);min-height:100%;}.app-update [hidden]{display:none!important}

.app-update{background:var(--canvas);font-size:14px}.app-update .pad{padding:16px}.app-update .full{width:100%;margin-top:18px}.app-update .help{white-space:normal}.app-update .notice{margin-top:16px}
/* Adapt the existing shell's 16px inset to the confirmed product content's 18px inset. */
.app-update{padding:4px 2px}.app-update .app-identity h3{font-size:16px}
.app-update{font-size:16px}

/* Preserve the confirmed mobile field grid outside the Demo phone frame. */
.app-update .fields>div{grid-template-columns:74px minmax(0,1fr);font-size:13px;padding:12px 0}
