/* Unified Tool Runtime V2 — bundled here to keep the root cold start request count unchanged. */
:root {
  --tool-v2-accent: #2cff73;
  --tool-v2-ink: #111411;
  --tool-v2-border: #ecedef;
  --tool-v2-control-radius: 12px;
  --tool-v2-card-radius: 16px;
  --tool-v2-panel-radius: 24px;
  --tool-v2-motion: 180ms cubic-bezier(.2, .8, .2, 1);
  --tool-v2-shell-height: 64px;
  --tool-v2-safe-top: max(var(--app-safe-top, 0px), env(safe-area-inset-top, 0px));
  --tool-v2-shell-block-size: calc(var(--tool-v2-shell-height) + var(--tool-v2-safe-top));
}

/* Shared loading affordance for Web tool transitions. Android remains on its frozen native asset path. */
.global-load-progress { position: fixed; z-index: 20000; inset: 0; display: grid; place-items: center; padding: 24px; color: #102117; background: rgba(245, 250, 246, .9); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 180ms ease, visibility 180ms step-end; backdrop-filter: blur(12px); }
.global-load-progress[aria-hidden="false"] { opacity: 1; visibility: visible; transition: opacity 180ms ease; }
.global-load-progress.is-error { pointer-events: auto; }
.global-load-progress__surface { width: min(360px, 100%); display: grid; justify-items: center; gap: 20px; padding: 30px 28px; border: 1px solid rgba(25, 100, 56, .13); border-radius: 28px; background: rgba(255, 255, 255, .88); box-shadow: 0 26px 70px rgba(19, 62, 35, .16); }
.global-load-progress__loader { display: none; grid-template-columns: repeat(4, 12px); gap: 7px; }
.global-load-progress__loader i { width: 12px; height: 12px; border-radius: 4px; background: #16a95a; box-shadow: 0 6px 14px rgba(22, 169, 90, .24); animation: global-load-boxes 1.08s cubic-bezier(.55, .05, .45, .95) infinite; }
.global-load-progress[data-scope^="tool:"] .global-load-progress__loader--four,
.global-load-progress:not([data-scope^="tool:"]) .global-load-progress__loader--eight { display: grid; }
.global-load-progress__loader--eight { grid-template-columns: repeat(4, 10px); gap: 6px; padding: 7px; border-radius: 18px; background: rgba(22, 169, 90, .07); }
.global-load-progress__loader--eight i { width: 10px; height: 10px; border-radius: 3px; }
.global-load-progress__loader i:nth-child(2) { animation-delay: .08s; }.global-load-progress__loader i:nth-child(3) { animation-delay: .16s; }.global-load-progress__loader i:nth-child(4) { animation-delay: .24s; }.global-load-progress__loader i:nth-child(5) { animation-delay: .32s; }.global-load-progress__loader i:nth-child(6) { animation-delay: .4s; }.global-load-progress__loader i:nth-child(7) { animation-delay: .48s; }.global-load-progress__loader i:nth-child(8) { animation-delay: .56s; }
.global-load-progress__copy { display: grid; justify-items: center; gap: 7px; text-align: center; font-family: "OPPO Sans", "PingFang SC", sans-serif; }
.global-load-progress__copy strong { font-size: 15px; font-weight: 700; }.global-load-progress__copy > span { color: #647269; font-size: 13px; }
.global-load-progress__copy button { min-height: 40px; margin-top: 5px; padding: 0 14px; border: 0; border-radius: 12px; color: #fff; background: #15723e; font: inherit; font-weight: 700; cursor: pointer; }
.global-load-progress__copy button:focus-visible { outline: 3px solid rgba(21, 114, 62, .34); outline-offset: 3px; }
.global-load-progress.is-error .global-load-progress__surface { border-color: rgba(180, 35, 24, .2); }.global-load-progress.is-error .global-load-progress__copy strong { color: #8f1c13; }.global-load-progress.is-error .global-load-progress__loader i { background: #b42318; box-shadow: none; animation: none; }
@keyframes global-load-boxes { 0%, 100% { transform: translateY(0) scale(.72); opacity: .38; } 45% { transform: translateY(-6px) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .global-load-progress { transition-duration: .01ms; }.global-load-progress__loader i { animation: none; }.global-load-progress__surface { box-shadow: 0 12px 30px rgba(19, 62, 35, .12); } }

/* The Runtime shell and the active tool must be sibling layers. Moving the
 * document with padding creates a second scroll owner and lets iframe tools
 * paint behind the shell/status bar. Keep the document fixed and constrain
 * the managed tool to the exact content viewport below the shell. */
html.runtime-v2-active body.android-app {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden !important;
  overscroll-behavior-y: none;
  padding: 0 !important;
}

html.runtime-v2-active body.android-app > .runtime-v2-managed {
  position: fixed !important;
  top: var(--tool-v2-shell-block-size) !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

html.runtime-v2-active body.android-app > .runtime-v2-managed > main {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
}

/* The Web price-tag iframe owns its editor scroll. Keep the host fixed below
 * the shared shell so file-picker relayouts cannot add a second scroll owner
 * or collapse the embedded workbench. */
html.runtime-v2-active body:not(.android-app) > #priceTagToolApp.runtime-v2-managed {
  position: fixed !important;
  top: var(--tool-v2-shell-block-size) !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

html.runtime-v2-active body:not(.android-app) > #priceTagToolApp.runtime-v2-managed > .price-tag-runtime {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

/* Android landscape remains a single-scroll-owner layout. These selectors are
 * inert on the Web because they require body.android-app. */
@media (orientation: landscape) {
  html.runtime-v2-active body.android-app {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden !important;
    overscroll-behavior-y: none;
    padding: 0 !important;
  }

  html.runtime-v2-active body.android-app > :is(#toolApp, #longToolApp, #posterToolApp, #coverProToolApp, #sampleWatermarkToolApp, #officialVideoEndboardToolApp).runtime-v2-managed {
    position: fixed !important;
    top: var(--tool-v2-shell-block-size) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    overscroll-behavior-y: contain;
    background: #f7faf8;
  }

  html.runtime-v2-active body.android-app > :is(#toolApp, #longToolApp, #posterToolApp, #coverProToolApp, #sampleWatermarkToolApp, #officialVideoEndboardToolApp).runtime-v2-managed > main {
    display: block !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 12px;
    scroll-padding-bottom: calc(16px + var(--marketing-ime-spacer, 0px));
    padding-bottom: var(--marketing-ime-spacer, 0px) !important;
  }

  html.runtime-v2-active body.android-app > :is(#toolApp, #longToolApp, #posterToolApp, #coverProToolApp, #sampleWatermarkToolApp, #officialVideoEndboardToolApp).runtime-v2-managed :is(.preview-panel, .long-preview-panel, .poster-preview-panel, .cover-pro-preview-panel) {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    z-index: 0;
    background: #f7faf8;
  }

  html.runtime-v2-active body.android-app > :is(#toolApp, #longToolApp, #posterToolApp, #coverProToolApp, #sampleWatermarkToolApp, #officialVideoEndboardToolApp).runtime-v2-managed :is(.editor-panel, .long-editor-panel, .poster-editor-panel, .cover-pro-editor-panel, .control-area, .panel-scroll) {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  html.runtime-v2-active body.android-app > :is(#toolApp, #longToolApp, #posterToolApp, #coverProToolApp).runtime-v2-managed :is(#coverCanvas, #longCanvas, #coverProCanvas) {
    touch-action: none;
  }
}

.tool-runtime-v2-shell {
  position: fixed;
  z-index: 9000;
  top: var(--tool-v2-safe-top);
  right: 0;
  left: 0;
  min-height: var(--tool-v2-shell-height);
  padding: 10px max(16px, var(--app-safe-right, 0px), env(safe-area-inset-right, 0px)) 10px max(16px, var(--app-safe-left, 0px), env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--tool-v2-ink);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--tool-v2-border);
  font-family: "OPPO Sans", "PingFang SC", system-ui, sans-serif;
  backdrop-filter: blur(18px);
}

.tool-runtime-v2-shell[hidden],
.tool-runtime-v2-shell nav[hidden],
.tool-runtime-v2-shell [data-runtime-dirty][hidden] { display: none !important; }
.tool-runtime-v2-brand, .tool-runtime-v2-shell nav { display: flex; align-items: center; gap: 8px; }
.tool-runtime-v2-brand > span { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--tool-v2-accent); font-weight: 900; }
.tool-runtime-v2-brand strong { white-space: nowrap; }
.tool-runtime-v2-brand i { color: #875600; background: #fff5cc; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-style: normal; }
.tool-runtime-v2-shell button { min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--tool-v2-border); border-radius: var(--tool-v2-control-radius); color: var(--tool-v2-ink); background: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: transform var(--tool-v2-motion), background var(--tool-v2-motion), opacity var(--tool-v2-motion); }
@media (hover: hover) and (pointer: fine) {
  .tool-runtime-v2-shell button:hover:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) { background: #f5f7f5; }
}
.tool-runtime-v2-shell button:focus-visible, .tool-runtime-v2-export-dialog button:focus-visible, .tool-runtime-v2-export-dialog [data-runtime-web-download]:focus-visible { outline: 3px solid rgba(44, 255, 115, .35); outline-offset: 2px; }
.tool-runtime-v2-shell button:disabled { opacity: .42; cursor: not-allowed; }
.tool-runtime-v2-shell button.is-primary { min-width: 92px; background: var(--tool-v2-accent); border-color: var(--tool-v2-accent); color: #081109; }
.tool-runtime-v2-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tool-runtime-v2-toast { position: fixed; margin: 0; border: 0; right: auto; bottom: auto; top: calc(var(--tool-v2-shell-block-size) + 12px); left: 50%; max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border-radius: var(--tool-v2-control-radius); color: #fff; background: #151915; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); opacity: 0; transform: translate(-50%, -8px); pointer-events: none; transition: opacity var(--tool-v2-motion), transform var(--tool-v2-motion); }
.tool-runtime-v2-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.tool-runtime-v2-toast[data-kind="error"] { background: #9d1c1c; }
.tool-runtime-v2-toast[data-kind="success"] { color: #09140b; background: var(--tool-v2-accent); }

.runtime-v2-active body { padding-top: var(--tool-v2-shell-block-size) !important; }
.runtime-v2-managed > .topbar { display: none !important; }

.tool-runtime-v2-export-dialog { width: min(520px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--tool-v2-border); border-radius: var(--tool-v2-panel-radius); color: var(--tool-v2-ink); background: #fff; font-family: "OPPO Sans", "PingFang SC", system-ui, sans-serif; box-shadow: 0 28px 80px rgba(0, 0, 0, .2); }
.tool-runtime-v2-export-dialog::backdrop { background: rgba(8, 12, 9, .42); backdrop-filter: blur(4px); }
.tool-runtime-v2-export-dialog form { padding: 22px; }
.tool-runtime-v2-export-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.tool-runtime-v2-export-dialog h2 { margin: 3px 0 0; font-size: 22px; }
.tool-runtime-v2-export-dialog header small, .tool-runtime-v2-export-dialog form > p { color: #6b716c; }
.tool-runtime-v2-export-dialog header button { width: 44px; height: 44px; border: 1px solid var(--tool-v2-border); border-radius: var(--tool-v2-control-radius); background: #fff; font-size: 24px; }
.tool-runtime-v2-export-dialog [data-runtime-export-options] { display: grid; gap: 10px; }
.tool-runtime-v2-export-dialog [data-runtime-capability] { min-height: 64px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; border: 1px solid var(--tool-v2-border); border-radius: var(--tool-v2-card-radius); background: #fff; color: inherit; }
.tool-runtime-v2-export-dialog [data-runtime-capability]:hover { border-color: #b8edc9; background: #f4fff7; }
.tool-runtime-v2-export-dialog [data-runtime-capability] small { color: #747a75; }
.tool-runtime-v2-export-dialog [data-runtime-web-download] { min-height: 64px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #b8edc9; border-radius: var(--tool-v2-card-radius); color: inherit; background: #f4fff7; text-decoration: none; }
.tool-runtime-v2-export-dialog [data-runtime-web-download] span { min-width: 0; display: grid; gap: 4px; }
.tool-runtime-v2-export-dialog [data-runtime-web-download] strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-runtime-v2-export-dialog [data-runtime-web-download] small { color: #5f6961; }
.tool-runtime-v2-export-dialog [data-runtime-web-download] b { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; color: #081109; background: var(--tool-v2-accent); }
.tool-runtime-v2-export-dialog [data-runtime-web-download].is-started { border-color: var(--tool-v2-border); background: #fff; }
.tool-runtime-v2-export-dialog form > p { margin: 16px 0 0; font-size: 13px; }

@media (max-width: 640px) {
  :root { --tool-v2-shell-height: 68px; }
  .tool-runtime-v2-shell { gap: 4px; padding-inline: 8px; overflow-x: hidden; }
  .tool-runtime-v2-brand, .tool-runtime-v2-shell nav { min-width: 0; gap: 4px; }
  .tool-runtime-v2-brand > span, .tool-runtime-v2-brand strong { display: none; }
  .tool-runtime-v2-brand i { position: absolute; top: 4px; left: 58px; padding: 2px 6px; }
  .tool-runtime-v2-shell nav { flex: 1 1 auto; margin-left: auto; justify-content: flex-end; }
  .tool-runtime-v2-shell button { min-width: 0; padding: 0 8px; }
  .tool-runtime-v2-brand button { flex: 0 0 auto; }
  .tool-runtime-v2-shell nav button { flex: 0 1 auto; min-width: 0; font-size: 12px; white-space: nowrap; }
  .runtime-v2-managed .workspace, .runtime-v2-managed .summer-benefits-workspace, .runtime-v2-managed .price-tag-workspace { min-height: calc(100dvh - var(--tool-v2-shell-block-size)); }
  .runtime-v2-managed .workspace { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 35dvh) minmax(0, 65dvh) !important; }
  .runtime-v2-managed .preview-panel { min-height: 0; overflow: hidden; }
  .runtime-v2-managed .editor-panel, .runtime-v2-managed .control-area { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(24px, env(safe-area-inset-bottom, var(--app-safe-bottom, 0px))); }
}

@media (prefers-reduced-motion: reduce) {
  .tool-runtime-v2-shell *, .tool-runtime-v2-toast { scroll-behavior: auto !important; transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* UI-CLOSE-HOME-HEADER-START */
/* This source is also emitted after legacy unified-ui rules by the bundle script. */
:root { --launch-action-size: 44px; --launch-search-overlay-max: 600px; }
.launch-appbar { position: relative; display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0, 1.45fr) auto; align-items: center; gap: 20px; }.launch-brand { min-inline-size: 0; }.launch-brand-mark-slot { inline-size: 38px; block-size: 38px; flex-basis: 38px; display: grid; place-items: center; }.launch-brand-mark-slot .launch-mini-mark { inline-size: 100%; block-size: 100%; object-fit: contain; }.launch-brand-copy { display: grid; gap: 2px; }
.launch-nav { justify-content: center; min-width: 0; }.launch-nav a { white-space: nowrap; }.launch-actions { position: relative; justify-self: end; margin-left: 0; gap: 8px; }.launch-actions > .launch-icon-btn, .launch-license-pill { inline-size: var(--launch-action-size); min-inline-size: var(--launch-action-size); block-size: var(--launch-action-size); min-height: var(--launch-action-size); padding: 0; border: 1px solid rgba(21, 32, 24, .1); border-radius: 13px; justify-content: center; background: rgba(255, 255, 255, .9); box-shadow: none; }.launch-actions > .launch-icon-btn:hover, .launch-actions > .launch-icon-btn:focus-visible, .launch-license-pill:hover, .launch-license-pill:focus-visible { border-color: rgba(var(--ds-primary-rgb), .46); background: rgba(var(--ds-primary-rgb), .08); }.launch-icon-btn:focus-visible, .launch-license-pill:focus-visible, .launch-search-field:focus-within { outline: 3px solid rgba(var(--ds-primary-rgb), .28); outline-offset: 2px; }
.launch-license-pill { display: inline-grid; place-items: center; color: #15723e; }.launch-license-pill [data-launch-license-label] { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }.launch-license-pill[data-license-state="expiring"] { color: #9a6500; background: #fff8e8; }.launch-license-pill[data-license-state="offline"], .launch-license-pill[data-license-state="restoring"], .launch-license-pill[data-license-state="network-pending"] { color: #3d6250; background: #f0f6f2; }.launch-license-pill[data-license-state="inactive"], .launch-license-pill[data-license-state="expired"] { color: #a12b23; background: #fff2f0; }.launch-menu-btn { display: none; }.launch-actions #enterAdminTool { position: relative; }.launch-admin-tooltip { position: absolute; z-index: 220; inset-block-start: calc(100% + 9px); inset-inline-end: 0; padding: 7px 9px; border-radius: 9px; color: #fff; background: #18251d; box-shadow: 0 8px 18px rgba(15, 30, 20, .22); font: 700 12px/1 "OPPO Sans", "PingFang SC", sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease, visibility .16s step-end; }.launch-actions #enterAdminTool:hover .launch-admin-tooltip, .launch-actions #enterAdminTool:focus .launch-admin-tooltip, .launch-actions #enterAdminTool[data-admin-tooltip-visible="true"] .launch-admin-tooltip { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .16s ease, transform .16s ease, visibility 0s; }
.launch-search-overlay { position: absolute; z-index: 90; inset-block-start: calc(100% + 12px); inset-inline-end: 0; inline-size: min(var(--launch-search-overlay-max), calc(100vw - 32px)); display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(21, 32, 24, .13); border-radius: 20px; background: rgba(255, 255, 255, .98); box-shadow: 0 24px 64px rgba(15, 45, 27, .18); }.launch-search-overlay[hidden] { display: none; }.launch-search-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.launch-search-panel-head > div { display: grid; gap: 3px; }.launch-search-panel-head strong { color: #18251d; font-size: 15px; }.launch-search-panel-head small, .launch-search-hint { color: #667168; font-size: 12px; line-height: 1.5; }.launch-search-close { flex: 0 0 var(--launch-action-size); }.launch-search-field { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 13px; border: 1px solid rgba(21, 32, 24, .14); border-radius: 14px; color: #557060; background: #f8fbf8; }.launch-search-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: #172017; background: transparent; font: inherit; }.launch-search-field input:focus, .launch-search-field input:focus-visible { border-color: transparent !important; outline: none !important; box-shadow: none !important; }.launch-search-field kbd { padding: 3px 6px; border: 1px solid rgba(21, 32, 24, .14); border-radius: 6px; color: #6d756f; background: #fff; font: 600 11px/1 "OPPO Sans", "PingFang SC", sans-serif; }.launch-search-hint { margin: -5px 1px 0; }
.tool-search-results { position: static; display: grid; gap: 14px; width: auto; max-height: min(430px, 54vh); margin: 0; padding: 0; overflow: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; }.tool-search-results[hidden] { display: none; }.tool-search-group { display: grid; gap: 5px; }.tool-search-group h3 { margin: 0 0 2px; color: #78827b; font-size: 11px; font-weight: 800; letter-spacing: .08em; }.tool-search-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border: 1px solid transparent; border-radius: 12px; }.tool-search-option > span { min-width: 0; display: grid; gap: 3px; }.tool-search-option mark { padding: 0; color: #0c6c36; background: transparent; font-weight: 800; }.tool-search-option em { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; color: #8a5a00; background: #fff5d9; font-size: 11px; font-style: normal; font-weight: 700; }.tool-search-option[data-unavailable="true"] { cursor: not-allowed; opacity: .68; }.tool-search-option[data-unavailable="true"]:hover { background: transparent; }
@media (max-width: 960px) { .launch-appbar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }.launch-brand { min-inline-size: 36px; }.launch-brand-copy { display: none; }.launch-actions { gap: 4px; }.launch-menu-btn { display: grid; }.launch-nav { display: none; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 6px; }.launch-appbar[data-mobile-expanded="true"] .launch-nav { display: grid; }.launch-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border: 1px solid rgba(21, 32, 24, .1); border-radius: 12px; background: #fff; font-size: 13px; }.launch-search-overlay { position: fixed; inset: auto 0 0; inline-size: auto; max-block-size: min(76dvh, 620px); padding: 20px 16px max(20px, env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; box-shadow: 0 -18px 56px rgba(15, 45, 27, .16); }.tool-search-results { max-height: min(44dvh, 380px); } }
@media (max-width: 960px) { html body .launch-shell .launch-brand { min-width: 38px !important; } html body .launch-shell .launch-brand-copy { display: none !important; } html body .launch-shell .launch-actions > .launch-icon-btn, html body .launch-shell .launch-license-pill { width: 44px !important; min-width: 44px !important; max-width: 44px !important; height: 44px !important; min-height: 44px !important; padding: 0 !important; } html body .launch-shell .launch-license-pill { display: inline-grid !important; overflow: visible !important; font-size: inherit !important; } html body .launch-shell .launch-actions #enterAdminTool { display: grid !important; } }
@media (max-width: 520px) { .launch-appbar { grid-template-columns: minmax(0, 1fr); gap: 8px; } .launch-brand { inline-size: 38px; min-inline-size: 38px; } .launch-actions { grid-column: 1; inline-size: 100%; justify-self: stretch; display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 4px; } .launch-actions > .launch-icon-btn, .launch-actions > .launch-license-pill { justify-self: center; } }
#coverPreviewResourceStatus { max-width: min(42vw, 320px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px; border-radius: 999px; color: #315e42; background: rgba(var(--ds-primary-rgb), .1); font-weight: 700; }.preview-status #coverPreviewResourceStatus[data-state="error"] { color: #9b2c24; background: rgba(180, 35, 24, .1); }#coverPreviewResourceStatus[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .launch-appbar *, .launch-search-overlay, #coverPreviewResourceStatus { transition-duration: 1ms !important; animation: none !important; } }
/* UI-CLOSE-HOME-HEADER-END */
/* End Unified Tool Runtime V2 bundle. */

/* LightFieldCard bridge: Registry markup consumes the design-system primitive.
   Geometry and interaction stay public; only --lf-card-accent is data-driven. */
.feature-card.lf-card {
  min-height: 174px;
  padding: var(--lf-card-padding);
  border: 1px solid var(--lf-card-border);
  border-radius: var(--lf-card-radius);
  display: grid;
  grid-template-columns: var(--lf-card-icon-size) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "icon title" "icon description" ". action";
  column-gap: 14px;
  row-gap: 5px;
  align-content: stretch;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--lf-card-accent) 9%, transparent) 0, transparent 62%),
    var(--lf-card-surface);
  box-shadow: var(--lf-card-shadow);
}
.feature-card.lf-card.featured,
.feature-card.lf-card.available.featured,
.feature-card.lf-card.poster-entry,
.feature-card.lf-card.long-entry,
.feature-card.lf-card.asset-entry,
.feature-card.lf-card.official-watermark-entry {
  border-color: var(--lf-card-border);
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--lf-card-accent) 9%, transparent) 0, transparent 62%),
    var(--lf-card-surface);
  box-shadow: var(--lf-card-shadow);
}
.feature-card.lf-card .lf-card__icon {
  grid-area: icon;
  width: var(--lf-card-icon-size) !important;
  height: var(--lf-card-icon-size) !important;
  color: var(--lf-card-accent) !important;
}
.feature-card.lf-card .lf-card__title {
  grid-area: title;
  padding-right: 48px;
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.feature-card.lf-card .lf-card__description {
  grid-area: description;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.feature-card.lf-card .lf-card__action {
  grid-area: action;
  min-width: 44px;
  min-height: 44px;
  margin: -8px -8px -8px auto;
  display: grid;
  place-items: center;
  color: var(--lf-card-accent);
}
.feature-card.lf-card .lf-card__action > i,
.feature-card.lf-card .lf-card__action > em { position: static; margin: 0; }
.feature-card.lf-card .lf-card__badge {
  border-color: color-mix(in srgb, var(--lf-card-accent) 24%, var(--lf-card-border));
  color: color-mix(in srgb, var(--lf-card-accent) 68%, #111411);
  background: color-mix(in srgb, var(--lf-card-accent) 8%, #fff);
}
.launch-menu-btn { display: none; }
.license-sheet-detail { margin: 0; display: grid; gap: 10px; }
.license-sheet-detail > div { padding: 10px 12px; border: 1px solid #ECEDEF; border-radius: 12px; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
.license-sheet-detail dt { color: rgba(17,20,17,.58); }
.license-sheet-detail dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }

@media (max-width: 768px) {
  html body .launch-shell {
    --page-gutter: 12px;
    padding-top: calc(var(--safe-area-top) + 6px) !important;
  }
  html body .launch-shell .launch-appbar {
    top: var(--safe-area-top) !important;
    min-height: 54px !important;
    height: auto !important;
    margin-bottom: 10px !important;
    padding: 5px 8px !important;
    border-radius: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    align-items: center;
  }
  .launch-brand { min-width: 0; gap: 7px; }
  .launch-brand strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .launch-mini-mark { width: 34px; height: 34px; flex: 0 0 34px; }
  .launch-actions { margin: 0; gap: 4px; }
  .launch-actions #enterAdminTool { display: none; }
  .launch-license-pill { min-width: 44px; max-width: 118px; min-height: 44px; padding: 0 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .launch-icon-btn,
  .launch-menu-btn { width: 44px; min-width: 44px; min-height: 44px; padding: 0; }
  .launch-menu-btn { display: inline-grid; place-items: center; }
  .launch-nav,
  .launch-search { grid-column: 1 / -1; width: 100%; max-width: none; min-width: 0; }
  .launch-appbar:not([data-mobile-expanded="true"]) .launch-nav,
  .launch-appbar:not([data-mobile-expanded="true"]) .launch-search { display: none !important; }
  .launch-appbar[data-mobile-expanded="true"] .launch-nav { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .launch-appbar[data-mobile-expanded="true"] .launch-nav a { min-width: 0; min-height: 44px; padding: 0 4px; font-size: 12px; }
  .launch-appbar[data-mobile-expanded="true"] .launch-search { display: flex !important; min-height: 44px; }

  html body .launch-shell .launch-hero { min-height: 124px !important; padding: 14px 16px !important; border-radius: 20px; }
  .launch-hero .launch-mark { width: 34px; height: 34px; }
  .launch-hero p { margin: 8px 0 3px; font-size: 10px; }
  .launch-hero h1 { max-width: 270px; font-size: 22px; line-height: 1.16; }
  .developer-signature { margin-top: 5px; min-height: 30px; }
  .launch-summary { margin: 10px 0 14px; gap: 8px; }
  .profile-card,
  .expiry-card { min-height: 58px; padding: 10px 12px; }
  .tool-section { margin-top: 14px; }
  .tool-section h2 { margin-bottom: 9px; font-size: 18px; }
  .feature-grid,
  .open-tools,
  .pending-tools { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 11px !important; }
  html body .launch-shell .feature-card.lf-card {
    --lf-card-padding: 14px;
    min-height: 124px !important;
    height: 124px !important;
    padding: 14px !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    grid-template-rows: 44px minmax(0, 1fr);
    grid-template-areas: "icon title" "description description";
    column-gap: 10px !important;
    row-gap: 2px !important;
    border-radius: 16px !important;
  }
  .feature-card.lf-card .lf-card__icon,
  .feature-card.lf-card .lf-card__icon .lf-icon-tile { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; }
  .feature-card.lf-card .lf-card__title { padding-right: 0; font-size: clamp(13px, 4vw, 15px) !important; line-height: 1.18 !important; }
  .feature-card.lf-card .lf-card__description { padding-right: 0; font-size: 10px !important; line-height: 1.28 !important; }
  .feature-card.lf-card .lf-card__action { position: absolute; right: 6px; bottom: 4px; min-height: 44px; margin: 0; }
}

@media (max-width: 340px) {
  .launch-license-pill { max-width: 92px; font-size: 10px; }
  .launch-actions { gap: 2px; }
  .feature-grid,
  .open-tools,
  .pending-tools { gap: 10px !important; }
  html body .launch-shell .feature-card.lf-card { padding: 12px !important; column-gap: 8px !important; }
}
/* Unified 2026 light-field interface.
   This is the final visual layer for Web and Android; feature logic stays unchanged. */
:root {
  --ui-primary: #2CFF73;
  --ui-primary-rgb: 44, 255, 115;
  --ui-cover: #2CFF73;
  --ui-cover-rgb: 44, 255, 115;
  --ui-poster: #FF4D5E;
  --ui-poster-rgb: 255, 77, 94;
  --ui-long: #7C5CFF;
  --ui-long-rgb: 124, 92, 255;
  --ui-asset: #23C7D9;
  --ui-asset-rgb: 35, 199, 217;
  --ui-ink: #141714;
  --ui-muted: rgba(20, 23, 20, .66);
  --ui-subtle: rgba(20, 23, 20, .48);
  --ui-line: rgba(20, 24, 20, .08);
  --ui-surface: rgba(255, 255, 255, .88);
  --ui-surface-strong: #FFFFFF;
  --ui-panel: rgba(248, 250, 249, .92);
  --ui-radius-card: 16px;
  --ui-radius-panel: 24px;
  --ui-shadow: 0 18px 48px rgba(18, 24, 18, .07);
  --ui-shadow-hover: 0 24px 64px rgba(18, 24, 18, .12);
  --ui-ease: 200ms cubic-bezier(.2, .8, .2, 1);
  --ds-primary: var(--ui-primary);
  --ds-primary-rgb: var(--ui-primary-rgb);
  --ds-bg: #F7F9F8;
  --ds-surface: var(--ui-surface-strong);
  --ds-text: var(--ui-ink);
  --ds-muted: var(--ui-muted);
  --ds-border: var(--ui-line);
  --ds-radius-card: var(--ui-radius-card);
  --ds-transition: var(--ui-ease);
}

html,
body {
  color: var(--ui-ink);
  background:
    linear-gradient(135deg, rgba(44, 255, 115, .10) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(225deg, rgba(35, 199, 217, .08) 0%, rgba(255, 255, 255, 0) 38%),
    #F7F9F8;
}

button,
a,
input,
textarea,
select {
  transition: transform var(--ui-ease), box-shadow var(--ui-ease), border-color var(--ui-ease), background-color var(--ui-ease), color var(--ui-ease), opacity var(--ui-ease);
}

button:active,
.quiet-btn:active,
.back-btn:active,
.export-btn:active,
.launch-icon-btn:active,
.feature-card.tap-animating {
  transform: translateY(3px) scale(.955);
}

.launch-shell,
.app {
  background:
    linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(247,249,248,.94) 42%, rgba(241,245,243,.98) 100%),
    #F7F9F8;
}

.launch-shell {
  min-height: 100dvh;
  padding: 18px 24px 36px;
}

.launch-appbar,
.topbar {
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.76);
  box-shadow: 0 10px 34px rgba(16, 22, 16, .055);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.launch-appbar {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 64px;
  width: min(1180px, 100%);
  margin: 0 auto 26px;
  padding: 0 16px;
  border-radius: 24px;
}

.launch-brand strong,
.brand strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.launch-brand {
  min-width: 176px;
}

.launch-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
}

.launch-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  white-space: nowrap;
  word-break: keep-all;
  line-height: 1;
}

.launch-search {
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 420px;
}

.launch-mini-mark,
.launch-mark,
.brand-mark,
.activation-logo {
  color: #07120b;
  background: linear-gradient(145deg, var(--ui-primary), #0BA752);
  box-shadow: 0 14px 34px rgba(var(--ui-primary-rgb), .26);
}

.launch-content {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.launch-hero {
  min-height: 290px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.94) 0%, rgba(239,255,246,.88) 56%, rgba(255,255,255,.82) 100%);
  box-shadow: var(--ui-shadow);
}

.launch-hero p {
  margin-top: 24px;
  color: #047336;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.launch-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
}

.launch-summary {
  gap: 16px;
  margin: 18px 0 28px;
}

.profile-card,
.expiry-card,
.feature-card,
.asset-filter-panel,
.asset-main-panel,
.asset-detail,
.asset-product-card,
.asset-item-card,
.asset-link-dialog > div,
.progress-card,
.activation-card {
  border: 1px solid rgba(20, 24, 20, .075);
  border-radius: var(--ui-radius-card);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-card,
.expiry-card {
  min-height: 78px;
  padding: 18px 20px;
}

.tool-section {
  margin-top: 28px;
}

.tool-section h2 {
  font-size: 22px;
  font-weight: 800;
}

.tool-section > p {
  color: var(--ui-muted);
  font-size: 14px;
}

.feature-grid,
.open-tools,
.pending-tools {
  gap: 18px;
}

.feature-card {
  min-height: 194px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--ui-shadow);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ui-shadow-hover);
}

.feature-card .tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: rgba(var(--ui-primary-rgb), .13);
  color: #047336;
}

.feature-card strong {
  font-size: 22px;
  line-height: 1.22;
  font-weight: 800;
}

.feature-card small {
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.5;
}

.feature-card.featured,
.feature-card.available.featured {
  border-color: rgba(var(--ui-primary-rgb), .55);
  background:
    linear-gradient(135deg, rgba(var(--ui-primary-rgb), .18), rgba(255,255,255,.9) 58%, rgba(255,255,255,.84));
  box-shadow: 0 0 0 1px rgba(var(--ui-primary-rgb), .14), 0 22px 60px rgba(var(--ui-primary-rgb), .14);
}

.feature-card.poster-entry {
  border-color: rgba(var(--ui-poster-rgb), .22);
}

.feature-card.poster-entry .tool-icon {
  background: rgba(var(--ui-poster-rgb), .13);
  color: #D91F3A;
}

.feature-card.long-entry .tool-icon {
  background: rgba(var(--ui-long-rgb), .13);
  color: #5D43D6;
}

.asset-entry,
.feature-card.asset-entry {
  border-color: rgba(var(--ui-asset-rgb), .26);
}

.asset-entry .tool-icon {
  background: rgba(var(--ui-asset-rgb), .13);
  color: #07889A;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--topbar-height);
  padding: 0 22px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.brand {
  gap: 12px;
}

.top-actions button,
.top-actions a,
.launch-license-pill,
.launch-icon-btn,
.quiet-btn,
.back-btn,
.export-btn,
.activate-btn,
.asset-actions button,
.asset-link-list button,
.asset-detail-back,
.asset-tabs button {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
}

.quiet-btn,
.back-btn,
.asset-detail-back,
.asset-tabs button {
  background: rgba(20,24,20,.06);
  color: rgba(20,23,20,.78);
}

.export-btn,
.activate-btn,
.asset-actions button:first-child,
.asset-link-list button:nth-child(2),
.asset-external-actions .export-btn {
  background: var(--ui-primary);
  color: #07120b;
  box-shadow: 0 12px 28px rgba(var(--ui-primary-rgb), .20);
}

.license-badge,
.launch-license-pill {
  color: #047336;
  background: rgba(var(--ui-primary-rgb), .14);
}

.workspace {
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 430px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(247,249,248,.92)),
    #F7F9F8;
}

.preview-panel {
  padding: 26px 32px 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.66), rgba(255,255,255,.22)),
    #F7F9F8;
}

.editor-panel {
  border-left: 1px solid rgba(20,24,20,.075);
  background: rgba(255,255,255,.86);
  box-shadow: -16px 0 40px rgba(18,24,18,.035);
}

.section {
  margin-bottom: 20px;
}

.section-title strong {
  font-size: 18px;
  font-weight: 800;
}

.section-title > span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(var(--ui-primary-rgb), .14);
  color: #047336;
}

.ratio-card,
.template-card,
.upload-box,
.text-input,
.select-input,
.asset-search,
.asset-filter-panel select {
  border-radius: 14px;
  border-color: rgba(20,24,20,.09);
  background: rgba(255,255,255,.78);
}

.ratio-card.active,
.template-card.active,
.asset-tabs button.active {
  border-color: rgba(var(--ui-primary-rgb), .64);
  background: rgba(var(--ui-primary-rgb), .10);
  box-shadow: 0 0 0 3px rgba(var(--ui-primary-rgb), .12);
}

.poster-app {
  --ui-primary: var(--ui-poster);
  --ui-primary-rgb: var(--ui-poster-rgb);
  --ds-primary: var(--ui-poster);
  --ds-primary-rgb: var(--ui-poster-rgb);
}

.poster-app .brand-mark,
.poster-mark {
  background: linear-gradient(145deg, #FF6C79, #D91F3A);
  color: #fff;
  box-shadow: 0 14px 34px rgba(var(--ui-poster-rgb), .24);
}

.poster-app .workspace {
  background:
    linear-gradient(135deg, rgba(var(--ui-poster-rgb), .09), rgba(255,255,255,.04) 44%),
    #FAF7F8;
}

.poster-app .preview-panel {
  background:
    linear-gradient(135deg, rgba(var(--ui-poster-rgb), .10), rgba(255,255,255,.64)),
    #FAF7F8;
}

.poster-canvas-stage {
  border-radius: 24px;
  box-shadow: 0 22px 68px rgba(var(--ui-poster-rgb), .15);
}

.long-app {
  --ui-primary: var(--ui-long);
  --ui-primary-rgb: var(--ui-long-rgb);
  --ds-primary: var(--ui-long);
  --ds-primary-rgb: var(--ui-long-rgb);
}

.long-app .brand-mark {
  background: linear-gradient(145deg, #9076FF, #5136D2);
  color: #fff;
  box-shadow: 0 14px 34px rgba(var(--ui-long-rgb), .24);
}

.long-app .workspace {
  background:
    linear-gradient(135deg, rgba(var(--ui-long-rgb), .09), rgba(255,255,255,.04) 44%),
    #F8F7FD;
}

.long-canvas-stage {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(145deg, #202322, #121514);
}

.asset-app {
  --ui-primary: var(--ui-asset);
  --ui-primary-rgb: var(--ui-asset-rgb);
  --ds-primary: var(--ui-asset);
  --ds-primary-rgb: var(--ui-asset-rgb);
}

.asset-app .brand-mark {
  background: linear-gradient(145deg, #54E3EE, #07889A);
  color: #062326;
  box-shadow: 0 14px 34px rgba(var(--ui-asset-rgb), .22);
}

.asset-shell {
  background:
    linear-gradient(135deg, rgba(var(--ui-asset-rgb), .08), rgba(255,255,255,.02) 48%),
    #F7FAFA;
}

.asset-hero {
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.92), rgba(var(--ui-asset-rgb), .08));
  box-shadow: var(--ui-shadow);
}

.asset-product-card:hover,
.asset-item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ui-shadow-hover);
}

.asset-link-dialog {
  border-radius: 22px;
}

.asset-link-dialog::backdrop {
  background: rgba(10, 14, 10, .42);
  backdrop-filter: blur(10px);
}

.activation-gate {
  background:
    linear-gradient(135deg, rgba(var(--ui-primary-rgb), .10), rgba(255,255,255,0) 42%),
    #F7F9F8;
}

.toast {
  bottom: max(28px, calc(var(--app-safe-bottom) + 18px));
  z-index: 200;
  font-size: 13px;
  box-shadow: 0 16px 44px rgba(0,0,0,.18);
}

/* Mobile license screen must not inherit wider card assumptions from the final visual layer. */
@media (max-width: 720px) {
  .activation-gate,
  body.android-app .activation-gate {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    overflow-x: hidden !important;
    justify-items: start !important;
  }

  .activation-card,
  body.android-app .activation-card {
    width: min(360px, calc(100vw - 28px)) !important;
    max-width: min(360px, calc(100vw - 28px)) !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 24px 20px !important;
    place-self: center start !important;
    overflow-x: hidden !important;
  }

  .activation-card *,
  body.android-app .activation-card * {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  .license-input-wrap input,
  body.android-app .license-input-wrap input {
    min-width: 0 !important;
    font-size: 13px !important;
    letter-spacing: .015em !important;
  }

  .activate-btn,
  body.android-app .activate-btn,
  .contact-developer button,
  body.android-app .contact-developer button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .demo-license,
  body.android-app .demo-license {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .demo-license button,
  body.android-app .demo-license button {
    width: 100% !important;
    text-align: left !important;
  }
}

/* Android 原生卡片进入 WebView 后，在服务端授权完成前隐藏工具首页闪烁。 */
.native-tool-route-pending {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
  color: #101510;
  background:
    radial-gradient(circle at 50% 28%, rgba(44, 255, 115, .16), transparent 34%),
    #f5f7f5;
}

.native-tool-route-pending__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: calc(64px + var(--app-safe-top, 0px));
  padding: var(--app-safe-top, 0px) 16px 0;
  border-bottom: 1px solid #ecedef;
  background: rgba(255, 255, 255, .94);
}

.native-tool-route-pending__bar > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #2cff73;
  font-weight: 800;
}

.native-tool-route-pending__bar strong { font-size: 15px; }
.native-tool-route-pending__bar small {
  margin-left: auto;
  color: #687069;
  font-size: 12px;
}

.native-tool-route-pending__body {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 32px 24px calc(32px + var(--app-safe-bottom, 0px));
  text-align: center;
}

.native-tool-route-pending__body i {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border: 3px solid rgba(16, 21, 16, .12);
  border-top-color: #00ad4f;
  border-radius: 50%;
  animation: nativeToolRouteSpin 720ms linear infinite;
}

.native-tool-route-pending__body h1 {
  margin: 0;
  font-size: clamp(22px, 6vw, 30px);
}

.native-tool-route-pending__body p,
.native-tool-route-pending__body small { margin: 0; }
.native-tool-route-pending__body p { color: #3d463f; }
.native-tool-route-pending__body small { color: #737b75; }

@keyframes nativeToolRouteSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .native-tool-route-pending__body i { animation-duration: 1400ms; }
}

@media (min-width: 1080px) {
  .feature-grid,
  .open-tools,
  .pending-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .launch-shell {
    padding: 12px 16px 28px;
  }

  .launch-appbar {
    top: 8px;
    min-height: 58px;
    margin-bottom: 18px;
    border-radius: 22px;
  }

  .launch-nav,
  .launch-search {
    display: none !important;
  }

  .launch-actions {
    margin-left: auto;
  }

  .launch-hero {
    min-height: 230px;
    padding: 28px 24px;
  }

  .launch-hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .launch-summary {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .open-tools,
  .pending-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .feature-card {
    min-height: 158px;
    padding: 18px;
  }

  .feature-card .tool-icon {
    width: 48px;
    height: 48px;
  }

  .feature-card strong {
    font-size: 20px;
  }

  .feature-card small {
    font-size: 13px;
  }

  .workspace,
  .long-workspace,
  .poster-workspace {
    grid-template-columns: 1fr;
  }

  .preview-panel,
  .editor-panel {
    position: relative;
    top: auto;
    height: auto;
  }

  .editor-panel {
    border-left: 0;
    border-top: 1px solid rgba(20,24,20,.075);
  }
}

@media (max-width: 430px) {
  .launch-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .launch-hero {
    min-height: 218px;
    padding: 24px 20px;
    border-radius: 26px;
  }

  .launch-hero h1 {
    font-size: 31px;
  }

  .feature-grid,
  .open-tools,
  .pending-tools {
    gap: 12px;
  }

  .feature-card {
    min-height: 146px;
    padding: 16px;
    border-radius: 18px;
  }

  .feature-card strong {
    font-size: 19px;
  }

  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }
}

body.android-app .launch-shell {
  padding-top: 3px !important;
  padding-bottom: max(24px, var(--app-safe-bottom)) !important;
}

body.android-app .launch-appbar {
  position: sticky !important;
  top: 0 !important;
  margin-top: 0 !important;
}

body.android-app .preview-panel {
  top: calc(var(--topbar-height) + var(--app-safe-top, 0px)) !important;
  height: calc(100dvh - var(--topbar-height) - var(--app-safe-top, 0px)) !important;
}

@media (max-width: 720px) {
  body.android-app .preview-panel {
    top: auto !important;
    height: auto !important;
  }
}

/* Final safe-area override. Keep this file last in index.html. */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

body.android-app {
  padding-top: env(safe-area-inset-top) !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
}

.launch-shell {
  padding-top: 8px !important;
  padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
}

body.android-app .launch-shell {
  padding-top: 8px !important;
  padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
}

.launch-hero {
  margin-top: 8px !important;
}

body.android-app .launch-hero {
  margin-top: 8px !important;
}

/* Topbar safe-area padding is owned by styles.css via --android-status-bar. */

.workspace,
body.android-app .workspace,
.long-workspace,
.poster-workspace {
  min-height: calc(100dvh - var(--topbar-height) - var(--app-safe-top, 0px)) !important;
}

.preview-panel,
body.android-app .preview-panel {
  top: calc(var(--topbar-height) + var(--app-safe-top, 0px)) !important;
  height: calc(100dvh - var(--topbar-height) - var(--app-safe-top, 0px)) !important;
}

body.android-app .preview-panel {
  top: calc(var(--topbar-height) + var(--app-safe-top, 0px)) !important;
  height: calc(100dvh - var(--topbar-height) - var(--app-safe-top, 0px)) !important;
}

.long-canvas-stage,
.canvas-stage,
.long-editor-panel,
.poster-editor-panel,
.editor-panel {
  box-sizing: border-box;
}

.long-canvas-stage,
#longCanvas {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.long-canvas-stage.is-dragging,
.long-canvas-stage.is-dragging #longCanvas {
  cursor: grabbing;
}

@media (max-width: 720px) {
  .preview-panel,
  body.android-app .preview-panel {
    top: auto !important;
    height: auto !important;
  }
}

/* Final mobile home authority: keep the first row readable and make every
   registry card consume the same compact LightFieldCard geometry. */
@media (max-width: 768px) {
  html body .launch-shell .launch-appbar {
    grid-template-columns: minmax(132px, 1fr) auto !important;
    padding: 5px 8px !important;
  }

  html body .launch-shell .launch-brand {
    min-width: 0 !important;
    gap: 7px !important;
  }

  html body .launch-shell .launch-brand strong {
    display: block !important;
    min-width: 0 !important;
    overflow: visible !important;
    color: #101510 !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  html body .launch-shell .launch-brand .launch-mini-mark {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    opacity: 1 !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 11px !important;
    color: #101510 !important;
    background: linear-gradient(145deg, #2CFF73, #18D769) !important;
    box-shadow: 0 6px 16px rgba(44, 255, 115, .22) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }

  html body .launch-shell .launch-brand img.launch-mini-mark {
    display: block !important;
    place-items: initial !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain !important;
  }

  html body .launch-shell .launch-actions {
    min-width: 0 !important;
    gap: 4px !important;
  }

  html body .launch-shell .launch-license-pill {
    width: auto !important;
    min-width: 76px !important;
    max-width: 92px !important;
    min-height: 44px !important;
    padding: 0 8px !important;
    overflow: visible !important;
    font-size: 10px !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  html body .launch-shell .feature-card.lf-card {
    height: 124px !important;
    min-height: 124px !important;
    padding: 12px !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    grid-template-rows: 44px minmax(0, 1fr) !important;
    grid-template-areas:
      "icon title"
      "description description" !important;
    column-gap: 7px !important;
    row-gap: 4px !important;
    align-items: start !important;
  }

  html body .launch-shell .feature-card.lf-card .lf-card__icon {
    position: static !important;
    grid-area: icon !important;
    margin: 0 !important;
  }

  html body .launch-shell .feature-card.lf-card .lf-card__title {
    grid-area: title !important;
    align-self: center !important;
    padding: 0 !important;
    display: -webkit-box !important;
    max-height: 36px !important;
    overflow: hidden !important;
    color: #101510 !important;
    font-size: 14px !important;
    line-height: 1.24 !important;
    text-align: left !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .launch-shell .feature-card.lf-card .lf-card__description {
    position: static !important;
    grid-area: description !important;
    align-self: start !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    max-height: 28px !important;
    overflow: hidden !important;
    color: #68716b !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .launch-shell .feature-card.lf-card .lf-card__badge {
    position: absolute !important;
    grid-area: auto !important;
    top: 7px !important;
    left: 43px !important;
    z-index: 2 !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    font-size: 7px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body .launch-shell .feature-card.lf-card .lf-card__action {
    position: absolute !important;
    grid-area: auto !important;
    right: 3px !important;
    bottom: 3px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: -9px -9px -9px 0 !important;
  }
}

@media (max-width: 340px) {
  html body .launch-shell .launch-appbar {
    grid-template-columns: minmax(124px, 1fr) auto !important;
  }

  html body .launch-shell .launch-actions {
    width: 118px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
  }

  html body .launch-shell .launch-brand strong {
    font-size: 12px !important;
  }

  html body .launch-shell .launch-license-pill {
    min-width: 70px !important;
    max-width: 76px !important;
    padding-inline: 5px !important;
  }
}

/* Safe Area Layout Engine: final contract for Web, Android WebView and iOS. */
:root {
  --safe-area-top-raw: var(--app-safe-top, env(safe-area-inset-top, 0px));
  --safe-area-bottom-raw: var(--app-safe-bottom, env(safe-area-inset-bottom, 0px));
  --safe-area-top: clamp(0px, var(--safe-area-top-raw), 48px);
  --safe-area-bottom: clamp(0px, var(--safe-area-bottom-raw), 34px);
  --page-gutter: 16px;
  --page-top-gap: 12px;
  --page-bottom-gap: 12px;
  --nav-content-height: 56px;
  --nav-total-height: calc(var(--safe-area-top) + var(--nav-content-height));
}

html,
body {
  box-sizing: border-box;
  min-height: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body,
body.android-app {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/*
 * Shared safe-area contract for independently rendered tools.
 * A tool root only needs data-safe-area-page and its header needs
 * data-safe-area-header. Android WebView supplies --app-safe-top/bottom;
 * browsers fall back to the platform safe-area environment variables.
 */
[data-safe-area-page] {
  --safe-area-page-top: var(--app-safe-top, env(safe-area-inset-top, 0px));
  --safe-area-page-bottom: var(--app-safe-bottom, env(safe-area-inset-bottom, 0px));
  --safe-header-total-height: calc(var(--safe-header-base-height, 56px) + var(--safe-area-page-top));
  min-height: 100dvh;
  padding-bottom: calc(var(--safe-area-page-bottom) + var(--page-bottom-gap));
  box-sizing: border-box;
}

[data-safe-area-page] [data-safe-area-header] {
  top: 0 !important;
  min-height: var(--safe-header-total-height) !important;
  box-sizing: border-box;
}

.launch-shell,
body.android-app .launch-shell {
  min-height: 100dvh !important;
  padding: calc(var(--safe-area-top) + var(--page-top-gap)) var(--page-gutter) calc(var(--safe-area-bottom) + var(--page-bottom-gap)) !important;
  align-content: start !important;
}

.launch-appbar,
body.android-app .launch-appbar {
  position: sticky !important;
  top: var(--safe-area-top) !important;
  min-height: var(--nav-content-height) !important;
  padding: 0 16px !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

.launch-hero,
body.android-app .launch-hero {
  margin-top: 0 !important;
}

.topbar,
body.android-app .topbar,
#toolApp .topbar,
#longToolApp .topbar,
#posterToolApp .topbar,
#assetToolApp .topbar,
body.android-app #toolApp .topbar,
body.android-app #longToolApp .topbar,
body.android-app #posterToolApp .topbar,
body.android-app #assetToolApp .topbar {
  position: sticky !important;
  top: 0 !important;
  min-height: var(--nav-total-height) !important;
  height: var(--nav-total-height) !important;
  padding: var(--safe-area-top) var(--page-gutter) 0 !important;
  align-items: center !important;
}

.workspace,
body.android-app .workspace,
.long-workspace,
.poster-workspace {
  min-height: calc(100dvh - var(--nav-total-height)) !important;
}

.preview-panel,
body.android-app .preview-panel {
  top: var(--nav-total-height) !important;
  height: calc(100dvh - var(--nav-total-height)) !important;
}

.editor-panel,
.long-editor-panel,
.poster-editor-panel,
.asset-panel,
body.android-app .editor-panel,
body.android-app .long-editor-panel,
body.android-app .poster-editor-panel,
body.android-app .asset-panel {
  padding-bottom: calc(24px + var(--safe-area-bottom)) !important;
}

@media (max-width: 720px) {
  .launch-shell,
  body.android-app .launch-shell {
    padding-left: var(--page-gutter) !important;
    padding-right: var(--page-gutter) !important;
  }

  .topbar,
  body.android-app .topbar,
  #toolApp .topbar,
  #longToolApp .topbar,
  #posterToolApp .topbar,
  #assetToolApp .topbar,
  body.android-app #toolApp .topbar,
  body.android-app #longToolApp .topbar,
  body.android-app #posterToolApp .topbar,
  body.android-app #assetToolApp .topbar {
    min-height: var(--nav-total-height) !important;
    height: var(--nav-total-height) !important;
    padding-top: var(--safe-area-top) !important;
  }

  .preview-panel,
  body.android-app .preview-panel {
    top: auto !important;
    height: auto !important;
  }
}

/* UI-CLOSE-HOME-HEADER-GENERATED-START */
/* This source is also emitted after legacy unified-ui rules by the bundle script. */
:root { --launch-action-size: 44px; --launch-search-overlay-max: 600px; }
.launch-appbar { position: relative; display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0, 1.45fr) auto; align-items: center; gap: 20px; }.launch-brand { min-inline-size: 0; }.launch-brand-mark-slot { inline-size: 38px; block-size: 38px; flex-basis: 38px; display: grid; place-items: center; }.launch-brand-mark-slot .launch-mini-mark { inline-size: 100%; block-size: 100%; object-fit: contain; }.launch-brand-copy { display: grid; gap: 2px; }
.launch-nav { justify-content: center; min-width: 0; }.launch-nav a { white-space: nowrap; }.launch-actions { position: relative; justify-self: end; margin-left: 0; gap: 8px; }.launch-actions > .launch-icon-btn, .launch-license-pill { inline-size: var(--launch-action-size); min-inline-size: var(--launch-action-size); block-size: var(--launch-action-size); min-height: var(--launch-action-size); padding: 0; border: 1px solid rgba(21, 32, 24, .1); border-radius: 13px; justify-content: center; background: rgba(255, 255, 255, .9); box-shadow: none; }.launch-actions > .launch-icon-btn:hover, .launch-actions > .launch-icon-btn:focus-visible, .launch-license-pill:hover, .launch-license-pill:focus-visible { border-color: rgba(var(--ds-primary-rgb), .46); background: rgba(var(--ds-primary-rgb), .08); }.launch-icon-btn:focus-visible, .launch-license-pill:focus-visible, .launch-search-field:focus-within { outline: 3px solid rgba(var(--ds-primary-rgb), .28); outline-offset: 2px; }
.launch-license-pill { display: inline-grid; place-items: center; color: #15723e; }.launch-license-pill [data-launch-license-label] { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }.launch-license-pill[data-license-state="expiring"] { color: #9a6500; background: #fff8e8; }.launch-license-pill[data-license-state="offline"], .launch-license-pill[data-license-state="restoring"], .launch-license-pill[data-license-state="network-pending"] { color: #3d6250; background: #f0f6f2; }.launch-license-pill[data-license-state="inactive"], .launch-license-pill[data-license-state="expired"] { color: #a12b23; background: #fff2f0; }.launch-menu-btn { display: none; }.launch-actions #enterAdminTool { position: relative; }.launch-admin-tooltip { position: absolute; z-index: 220; inset-block-start: calc(100% + 9px); inset-inline-end: 0; padding: 7px 9px; border-radius: 9px; color: #fff; background: #18251d; box-shadow: 0 8px 18px rgba(15, 30, 20, .22); font: 700 12px/1 "OPPO Sans", "PingFang SC", sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease, visibility .16s step-end; }.launch-actions #enterAdminTool:hover .launch-admin-tooltip, .launch-actions #enterAdminTool:focus .launch-admin-tooltip, .launch-actions #enterAdminTool[data-admin-tooltip-visible="true"] .launch-admin-tooltip { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .16s ease, transform .16s ease, visibility 0s; }
.launch-search-overlay { position: absolute; z-index: 90; inset-block-start: calc(100% + 12px); inset-inline-end: 0; inline-size: min(var(--launch-search-overlay-max), calc(100vw - 32px)); display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(21, 32, 24, .13); border-radius: 20px; background: rgba(255, 255, 255, .98); box-shadow: 0 24px 64px rgba(15, 45, 27, .18); }.launch-search-overlay[hidden] { display: none; }.launch-search-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.launch-search-panel-head > div { display: grid; gap: 3px; }.launch-search-panel-head strong { color: #18251d; font-size: 15px; }.launch-search-panel-head small, .launch-search-hint { color: #667168; font-size: 12px; line-height: 1.5; }.launch-search-close { flex: 0 0 var(--launch-action-size); }.launch-search-field { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 13px; border: 1px solid rgba(21, 32, 24, .14); border-radius: 14px; color: #557060; background: #f8fbf8; }.launch-search-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: #172017; background: transparent; font: inherit; }.launch-search-field input:focus, .launch-search-field input:focus-visible { border-color: transparent !important; outline: none !important; box-shadow: none !important; }.launch-search-field kbd { padding: 3px 6px; border: 1px solid rgba(21, 32, 24, .14); border-radius: 6px; color: #6d756f; background: #fff; font: 600 11px/1 "OPPO Sans", "PingFang SC", sans-serif; }.launch-search-hint { margin: -5px 1px 0; }
.tool-search-results { position: static; display: grid; gap: 14px; width: auto; max-height: min(430px, 54vh); margin: 0; padding: 0; overflow: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; }.tool-search-results[hidden] { display: none; }.tool-search-group { display: grid; gap: 5px; }.tool-search-group h3 { margin: 0 0 2px; color: #78827b; font-size: 11px; font-weight: 800; letter-spacing: .08em; }.tool-search-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border: 1px solid transparent; border-radius: 12px; }.tool-search-option > span { min-width: 0; display: grid; gap: 3px; }.tool-search-option mark { padding: 0; color: #0c6c36; background: transparent; font-weight: 800; }.tool-search-option em { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; color: #8a5a00; background: #fff5d9; font-size: 11px; font-style: normal; font-weight: 700; }.tool-search-option[data-unavailable="true"] { cursor: not-allowed; opacity: .68; }.tool-search-option[data-unavailable="true"]:hover { background: transparent; }
@media (max-width: 960px) { .launch-appbar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }.launch-brand { min-inline-size: 36px; }.launch-brand-copy { display: none; }.launch-actions { gap: 4px; }.launch-menu-btn { display: grid; }.launch-nav { display: none; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 6px; }.launch-appbar[data-mobile-expanded="true"] .launch-nav { display: grid; }.launch-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border: 1px solid rgba(21, 32, 24, .1); border-radius: 12px; background: #fff; font-size: 13px; }.launch-search-overlay { position: fixed; inset: auto 0 0; inline-size: auto; max-block-size: min(76dvh, 620px); padding: 20px 16px max(20px, env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; box-shadow: 0 -18px 56px rgba(15, 45, 27, .16); }.tool-search-results { max-height: min(44dvh, 380px); } }
@media (max-width: 960px) { html body .launch-shell .launch-brand { min-width: 38px !important; } html body .launch-shell .launch-brand-copy { display: none !important; } html body .launch-shell .launch-actions > .launch-icon-btn, html body .launch-shell .launch-license-pill { width: 44px !important; min-width: 44px !important; max-width: 44px !important; height: 44px !important; min-height: 44px !important; padding: 0 !important; } html body .launch-shell .launch-license-pill { display: inline-grid !important; overflow: visible !important; font-size: inherit !important; } html body .launch-shell .launch-actions #enterAdminTool { display: grid !important; } }
@media (max-width: 520px) { .launch-appbar { grid-template-columns: minmax(0, 1fr); gap: 8px; } .launch-brand { inline-size: 38px; min-inline-size: 38px; } .launch-actions { grid-column: 1; inline-size: 100%; justify-self: stretch; display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 4px; } .launch-actions > .launch-icon-btn, .launch-actions > .launch-license-pill { justify-self: center; } }
#coverPreviewResourceStatus { max-width: min(42vw, 320px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px; border-radius: 999px; color: #315e42; background: rgba(var(--ds-primary-rgb), .1); font-weight: 700; }.preview-status #coverPreviewResourceStatus[data-state="error"] { color: #9b2c24; background: rgba(180, 35, 24, .1); }#coverPreviewResourceStatus[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .launch-appbar *, .launch-search-overlay, #coverPreviewResourceStatus { transition-duration: 1ms !important; animation: none !important; } }
/* UI-CLOSE-HOME-HEADER-GENERATED-END */

/* GREEN-ACCOUNT-SHELL-GENERATED-START */
.green-account-gate {
  position: fixed;
  z-index: 210;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 560px);
  gap: clamp(24px, 6vw, 96px);
  align-items: center;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: clamp(24px, 6vw, 88px);
  color: #18251d;
  background: linear-gradient(118deg, #f5f7f5 0 56%, #eaf5ed 56% 100%);
}
.green-account-gate.hidden { display: none; }
.green-account-context { max-width: 720px; }
.green-account-context small { color: #15723e; font-weight: 800; letter-spacing: .12em; }
.green-account-context h1 { max-width: 640px; margin: 18px 0 14px; font: 800 clamp(38px, 5.2vw, 72px)/1.02 "OPPO Sans", "PingFang SC", sans-serif; letter-spacing: -.045em; }
.green-account-context p { max-width: 580px; margin: 0; color: #526158; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.75; }
.green-account-context ul { display: grid; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; color: #35473c; }
.green-account-context li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #2cff73; box-shadow: 0 0 0 4px rgba(44, 255, 115, .18); }
.green-account-panel { display: grid; gap: 18px; padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(21, 32, 24, .11); border-radius: 28px; background: rgba(255, 255, 255, .94); box-shadow: 0 30px 90px rgba(15, 45, 27, .13); }
.green-account-panel header { display: grid; gap: 8px; }
.green-account-panel header small { color: #15723e; font-weight: 800; letter-spacing: .08em; }
.green-account-panel h2 { margin: 0; font: 800 clamp(24px, 3vw, 34px)/1.15 "OPPO Sans", "PingFang SC", sans-serif; }
.green-account-panel header p { margin: 0; color: #667168; line-height: 1.65; }
.green-account-panel-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.green-account-entry-close { width: 42px; height: 42px; border: 0; border-radius: 12px; color: #18251d; background: #eef3ef; font-size: 24px; }
.green-account-gate:not([data-account-state="active"]):not([data-account-state="entitlement_required"]):not([data-phone-binding-intent="true"]) .green-account-entry-close { display: none; }
.green-entry-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px; border: 1px solid rgba(21, 32, 24, .1); border-radius: 16px; background: #eef3ef; }
.green-entry-tabs button { height: 42px; min-height: 42px; padding: 0 10px; border: 0; border-radius: 11px; color: #657068; background: transparent; font: 750 13px/1 "OPPO Sans", "PingFang SC", sans-serif; }
.green-entry-tabs button.is-active { color: #0c2816; background: #fff; box-shadow: 0 5px 18px rgba(15, 45, 27, .1); }
.green-entry-tabs button:focus-visible { outline: 3px solid rgba(44, 255, 115, .25); outline-offset: 2px; }
.green-account-form { display: grid; gap: 12px; }
.green-account-form [data-green-entry-panel] { display: grid; min-height: 306px; align-content: start; gap: 12px; }
.green-account-form [data-green-entry-panel][hidden] { display: none; }
.green-account-form label { display: grid; gap: 7px; color: #35473c; font-size: 13px; font-weight: 700; }
.green-account-form input, .green-account-form select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(21, 32, 24, .16); border-radius: 13px; color: #18251d; background: #f8fbf8; font: 500 16px/1 "OPPO Sans", "PingFang SC", sans-serif; box-sizing: border-box; }
.green-account-form input:focus, .green-account-form select:focus { border-color: #15723e; outline: 3px solid rgba(44, 255, 115, .2); }
.green-field-feedback { display: block; min-height: 17px; color: #a12b23; font-size: 12px; font-weight: 600; line-height: 1.45; }
.green-field-feedback[hidden] { display: none; }
.green-field-feedback[data-tone="success"] { color: #15723e; }
.green-consent-feedback { margin: -6px 0 0 26px; }
.green-account-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.green-account-actions span { align-self: center; max-width: 220px; color: #778078; font-size: 12px; line-height: 1.45; }
.green-account-actions button, .green-provider-grid button, .green-account-subflow button, [data-green-entry-panel] > button, .green-profile-panel > button { min-height: 46px; border: 1px solid rgba(21, 32, 24, .12); border-radius: 13px; color: #18251d; background: #fff; font: 700 14px/1 "OPPO Sans", "PingFang SC", sans-serif; }
.green-account-actions button:first-child { color: #07150c; border-color: #2cff73; background: #2cff73; }
.green-account-actions button:focus-visible, .green-provider-grid button:focus-visible { outline: 3px solid rgba(44, 255, 115, .25); outline-offset: 2px; }
.green-account-subflow { display: grid; gap: 11px; padding: 14px; border-left: 3px solid #2cff73; border-radius: 4px 13px 13px 4px; background: #f4faf5; }
.green-account-subflow[hidden] { display: none; }
.green-account-subflow p, [data-green-entry-panel] > p { margin: 0; color: #67736a; font-size: 12px; line-height: 1.6; }
.green-activation-binding-note { display: grid; gap: 5px; padding: 12px 14px; border-radius: 12px; color: #53635a; background: #f4f8f5; font-size: 12px; line-height: 1.6; }
.green-activation-binding-note[hidden] { display: none; }
.green-activation-binding-note strong { color: #24412f; }
.green-activation-binding-note p { margin: 0; }
.green-profile-panel { display: grid; gap: 11px; padding: 16px; border: 1px solid rgba(21, 114, 62, .18); border-radius: 16px; background: #f0f8f2; }
.green-profile-panel[hidden] { display: none; }
.green-profile-panel label[hidden] { display: none; }
.green-profile-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.green-profile-panel header strong { color: #18251d; }
.green-profile-panel header span, .green-profile-panel p { margin: 0; color: #667168; font-size: 12px; line-height: 1.55; }
.green-profile-panel > button { color: #07150c; border-color: #2cff73; background: #2cff73; }
.green-account-form .auth-consent { grid-template-columns: 18px minmax(0, 1fr); align-items: start; column-gap: 8px !important; row-gap: 0; line-height: 1.55; }
.green-account-form .auth-consent input { align-self: start; width: 18px; min-height: 18px; height: 18px; margin: 1px 0 0; padding: 0; accent-color: #15723e; }
.green-account-form .auth-consent > span { min-width: 0; line-height: 1.55; overflow-wrap: anywhere; }
.green-account-form .auth-consent > span button { display: inline; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; color: #0b7d42; background: transparent; font: inherit; line-height: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; cursor: pointer; }
.green-account-form .auth-consent > span button:focus-visible { outline: 2px solid rgba(44, 255, 115, .35); outline-offset: 2px; border-radius: 3px; }
.green-provider-block { display: grid; gap: 9px; padding-top: 4px; border-top: 1px solid rgba(21, 32, 24, .08); }
.green-provider-block > span { color: #78827b; font-size: 12px; }
.green-provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.green-provider-grid button { display: grid; grid-template-columns: 28px minmax(0, auto); align-items: center; justify-content: center; gap: 9px; min-height: 58px; padding: 8px 10px; color: #758078; background: #f4f6f4; cursor: not-allowed; }
.green-provider-icon { display: block; width: 28px; height: 28px; border-radius: 7px; object-fit: contain; }
.green-provider-grid button > span { display: grid; gap: 3px; min-width: 0; text-align: left; }
.green-provider-grid button strong { color: #58635b; font-size: 13px; line-height: 1; }
.green-provider-grid button small { color: #8b948d; font-size: 10px; font-weight: 600; line-height: 1; }
.green-account-status { min-height: 18px; margin: 0; color: #a12b23; font-size: 12px; word-break: break-word; }
.green-account-facts { margin: 0; color: #667168; font-size: 12px; line-height: 1.6; }
.auth-sms-feedback { display: grid; gap: 13px; padding: 16px; border: 1px solid rgba(173, 78, 31, .24); border-radius: 16px; color: #3b2117; background: #fff8f2; box-shadow: 0 12px 30px rgba(83, 36, 15, .08); }
.auth-sms-feedback[hidden] { display: none; }
.auth-sms-feedback header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.auth-sms-feedback header div { display: grid; gap: 4px; }
.auth-sms-feedback header small { color: #a3471e; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.auth-sms-feedback h3 { margin: 0; font: 800 18px/1.25 "OPPO Sans", "PingFang SC", sans-serif; }
.auth-sms-feedback header > button { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 10px; color: #6d3b25; background: rgba(173, 78, 31, .09); font-size: 22px; cursor: pointer; }
.auth-sms-feedback > p { margin: 0; font-size: 13px; line-height: 1.65; }
.auth-sms-feedback dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; margin: 0; padding: 10px 12px; border-radius: 11px; background: rgba(255, 255, 255, .72); font-size: 11px; line-height: 1.55; }
.auth-sms-feedback [data-sms-feedback-diagnostics][hidden] { display: none; }
.auth-sms-feedback dt { color: #8a624f; }
.auth-sms-feedback dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.auth-sms-feedback__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-sms-feedback__actions button { min-height: 40px; padding: 0 12px; border: 1px solid rgba(173, 78, 31, .22); border-radius: 11px; color: #5c2b16; background: #fff; font: 730 12px/1.25 "OPPO Sans", "PingFang SC", sans-serif; cursor: pointer; }
.auth-sms-feedback__actions button:first-child { color: #fff; border-color: #a3471e; background: #a3471e; }
.auth-sms-feedback button:focus-visible { outline: 3px solid rgba(173, 78, 31, .2); outline-offset: 2px; }
.auth-sms-feedback__fallback { box-sizing: border-box; width: 100%; min-height: 116px; resize: vertical; padding: 10px 12px; border: 1px solid rgba(173, 78, 31, .22); border-radius: 11px; color: #3b2117; background: #fff; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.auth-sms-feedback__copy-status { min-height: 18px; color: #6d3b25; }
.auth-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 14px; border-top: 1px solid rgba(21, 32, 24, .08); color: #66736b; }
.auth-footer__copyright { font-size: 12px; line-height: 1.6; }
.auth-footer-author { display: inline-flex; min-width: 0; min-height: 40px; align-items: center; gap: 10px; padding: 7px 10px 7px 13px; border: 1px solid rgba(11, 143, 70, .2); border-radius: 999px; color: #0b8f46; background: #f5f8f5; font: 760 13px/1.2 "OPPO Sans", "PingFang SC", sans-serif; cursor: pointer; }
.auth-footer-author__name { display: inline-flex; min-width: 0; color: #101713; letter-spacing: .015em; white-space: nowrap; }
.auth-footer-author__character { display: inline-block; animation: auth-footer-author-wave 3.2s cubic-bezier(.22, .7, .22, 1) infinite; animation-delay: calc(var(--auth-author-character-index) * 65ms); will-change: transform, opacity; }
.auth-footer-author__cue { padding: 5px 8px; border-radius: 999px; color: #0b8f46; background: rgba(22, 168, 91, .1); white-space: nowrap; }
.auth-footer__record { color: #0b8f46; font-size: 12px; line-height: 1.6; text-decoration: none; }
.auth-footer__record:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-footer__record:focus-visible { outline: 3px solid rgba(44, 255, 115, .28); outline-offset: 3px; border-radius: 4px; }
.auth-footer-author:hover { border-color: rgba(11, 143, 70, .38); background: #eef8f1; }
.auth-footer-author:active { transform: scale(.98); }
.auth-footer-author:focus-visible { outline: 3px solid rgba(44, 255, 115, .28); outline-offset: 2px; }
@keyframes auth-footer-author-wave {
  0%, 15%, 100% { transform: translateY(0); opacity: 1; }
  6% { transform: translateY(-4px); opacity: .78; }
  10% { transform: translateY(1px); opacity: 1; }
}
.green-session-dialog { max-width: 520px; width: calc(100% - 32px); padding: 0; border: 0; border-radius: 22px; color: #18251d; }
.green-session-dialog::backdrop { background: rgba(10, 20, 13, .46); backdrop-filter: blur(8px); }
.green-session-dialog section { display: grid; gap: 16px; padding: 28px; }
.green-session-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.green-session-dialog h2 { margin: 0; font: 800 24px/1.2 "OPPO Sans", "PingFang SC", sans-serif; }
.green-session-dialog header button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: #eef3ef; }
.green-session-state { padding: 16px; border-radius: 15px; color: #15723e; background: #eef8f1; font-weight: 800; }
.green-session-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.green-session-actions button { min-height: 46px; border: 1px solid rgba(21, 32, 24, .12); border-radius: 13px; background: #fff; font-weight: 700; }
.green-workbench-notice { position: fixed; z-index: 145; right: clamp(16px, 3vw, 42px); bottom: clamp(16px, 3vw, 36px); display: grid; gap: 10px; max-width: min(460px, calc(100vw - 32px)); padding: 16px 18px; border: 1px solid rgba(21, 114, 62, .22); border-radius: 16px; color: #18251d; background: #f4faf5; box-shadow: 0 18px 48px rgba(15, 45, 27, .15); }
.green-workbench-notice[hidden] { display: none; }
.green-workbench-notice strong { line-height: 1.5; }
.green-workbench-notice div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.green-workbench-notice button { min-height: 40px; padding: 0 14px; border: 1px solid #15723e; border-radius: 11px; color: #fff; background: #15723e; font-weight: 750; }
.green-workbench-notice span { color: #667168; font-size: 12px; }
.green-account-gate.auth-gate { display: flex; align-items: center; justify-content: center; }
.green-account-gate.auth-gate.hidden { display: none; }
.green-account-gate.auth-gate .auth-shell { flex: 0 1 auto; }
.green-account-gate.auth-gate .green-account-panel { min-width: 0; }
@media (max-width: 860px) {
  .green-account-gate { grid-template-columns: 1fr; align-content: start; overflow: auto; padding: 26px 18px max(30px, env(safe-area-inset-bottom, 0px)); }
  .green-account-context h1 { margin-top: 10px; font-size: clamp(34px, 10vw, 54px); }
  .green-account-context ul { display: none; }
  .green-account-panel { border-radius: 22px; }
}
@media (max-width: 480px) {
  .green-account-gate { gap: 20px; }
  .green-account-context p { font-size: 14px; }
  .green-account-panel { padding: 22px 18px; }
  .green-account-actions { grid-template-columns: 1fr; }
  .green-account-actions span { max-width: none; }
  .green-entry-tabs { grid-template-columns: 1fr; }
  .green-entry-tabs button { text-align: left; padding-inline: 14px; }
  .green-account-form [data-green-entry-panel] { min-height: 360px; }
  .green-provider-grid { grid-template-columns: 1fr; }
  .green-profile-panel { padding: 14px; }
  .auth-sms-feedback__actions { display: grid; grid-template-columns: 1fr; }
  .auth-sms-feedback__actions button { width: 100%; }
  .auth-footer { align-items: flex-start; flex-direction: column; }
  .auth-footer-author { max-width: 100%; }
  .green-workbench-notice div { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .green-account-gate *, .green-session-dialog * { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .auth-footer-author__character { animation: none !important; opacity: 1; transform: none; will-change: auto; }
}
/* GREEN-ACCOUNT-SHELL-GENERATED-END */
