:root {
    color-scheme: light;
    --ink: #171b3e;
    --muted: #535e7d;
    --accent: #4c42ce;
    --line: #dfe2f0;
    --surface: #fff;
    background: #f5f6fc;
    color: var(--ink);
    font: 16px/1.55 Inter, system-ui, "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.sample-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.sample-header-inner, main {
    width: min(1200px, calc(100% - 2 * clamp(14px, 4vw, 38px)));
    margin: 0 auto;
}
.sample-header-inner, .sample-brand, .language-picker, .actions, .report-toolbar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.sample-header-inner { justify-content: space-between; padding-block: 13px; }
.sample-brand { color: var(--ink); text-decoration: none; font-weight: 680; }
.sample-brand img { width: 39px; height: 35px; object-fit: contain; }
.language-picker { gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: #f5f6fc; padding: 3px; }
.language-picker a { color: var(--muted); text-decoration: none; font-size: .83rem; padding: 5px 9px; border-radius: 7px; }
.language-picker a[aria-current] { color: var(--accent); background: var(--surface); box-shadow: 0 1px 4px #1b25461a; }
main { padding-block: clamp(24px, 4vw, 44px) 52px; }
h1, h2, h3 { line-height: 1.23; letter-spacing: -.025em; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h2 { font-size: 1.22rem; }
h3 { font-size: 1.05rem; }
p { color: var(--muted); margin: 8px 0 0; }
a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
button, select { font: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, pre:focus-visible { outline: 2px solid #6258dc; outline-offset: 3px; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
.playback-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(255px, 1fr); gap: 18px; align-items: start; margin-top: 23px; }
.playback, .app-card, details, .sample-notice, .pdf-card { min-width: 0; }
.playback { background: #191a20; border: 1px solid #272a3c; border-radius: 15px; overflow: hidden; }
drmx-universal-player { display: block; width: 100%; min-width: 0; }
.app-card, .pdf-card, details, .sample-notice { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.app-card, .pdf-card, .sample-notice { padding: clamp(15px, 2vw, 22px); }
.sample-notice { margin-top: 20px; }
.device-picker { display: block; margin-top: 12px; color: var(--muted); font-size: .9rem; }
.device-picker select, .report-toolbar select {
    color: var(--ink); background: #fafaff; border: 1px solid var(--line);
    border-radius: 8px; padding: 7px 9px;
}
.device-picker select { display: block; width: 100%; margin-top: 4px; min-height: 43px; }
.app-card .actions { align-items: stretch; display: grid; margin-top: 10px; }
.app-card .native-retry { font-size: .88rem; }
.app-help { font-size: .91rem; }
.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    border-radius: 9px; border: 1px solid var(--line); color: var(--ink);
    background: var(--surface); padding: 8px 13px; line-height: 1.35; text-align: center;
    font-weight: 620; text-decoration: none;
}
.button:hover { background: #f1f0ff; }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.primary:hover { background: #3e33b9; }
.app-status:not(:empty) { background: #f0efff; color: #332881; padding: 9px 11px; border-radius: 8px; font-size: .91rem; overflow-wrap: anywhere; }
.pdf-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 16px; }
.pdf-card [role="status"] { flex-basis: 100%; margin: 0; }
.disclosures { display: grid; gap: 10px; margin-top: 16px; }
summary { padding: 12px clamp(13px, 2vw, 19px); font-weight: 660; }
summary::marker { color: var(--accent); }
.disclosure-body { padding: 0 clamp(13px, 2vw, 19px) 17px; min-width: 0; }
.disclosure-body > :first-child { margin-top: 0; }
.disclosure-body .actions, .report-toolbar { margin-top: 10px; }
pre {
    margin: 12px 0 0; padding: 13px; max-width: 100%; overflow: auto; border-radius: 9px;
    background: #171c34; color: #e4eaff; font: .84rem/1.6 ui-monospace, Consolas, monospace;
}
#events, #report-events { min-height: 64px; max-height: 290px; white-space: pre-wrap; overflow-wrap: anywhere; }
code { overflow-wrap: anywhere; }
.report-toolbar label { display: flex; align-items: center; gap: 5px; }
.phone-limit-status { border-left: 3px solid var(--accent); margin-top: 13px; padding-left: 12px; font-size: .875rem; }
.tutorial-step + .tutorial-step { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.tutorial-step ol { margin: 8px 0; padding-left: 22px; color: var(--muted); }
[id] { scroll-margin-top: 16px; }
@media (max-width: 780px) {
    .playback-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
    .app-card { grid-row: 1; }
}
@media (max-width: 490px) {
    .sample-brand { gap: 4px; font-size: .85rem; }
    .sample-brand img { width: 30px; height: 29px; }
    .sample-header-inner { gap: 6px; }
    .pdf-card .actions { width: 100%; }
    .pdf-card .button { flex: 1 1 100%; }
    .report-toolbar label { flex-wrap: wrap; }
}
