/* Shared tokens for the studio and its native platform previews.
   华为门店营销工作台基调：华为红 #D9342B、炭黑 #1B1B1B、暖灰 #F5F2EC、纸张白 #FFFCF7、信号绿 #5C8D68。 */
:root {
  color-scheme: light;
  --bg-canvas: #f5f2ec; --bg-surface: #fffcf7; --bg-surface-subtle: #ece8de; --bg-surface-elevated: #fbf8f2;
  --text-main: #1b1b1b; --text-muted: #5f5b54; --text-faint: #6f6a63;
  --border-hairline: #e4dfd4; --border-line: #d4cdc0; --border-strong: #a89d8d;
  /* 品牌强调色沿用旧变量名，值切为华为红，避免逐个改选择器。 */
  --accent-terracotta: #d9342b; --accent-terracotta-hover: #b2241e; --accent-terracotta-dark: #b2241e; --accent-tint: #f8e3de; --accent-terracotta-soft: #f8e3de;
  --state-ok: #5c8d68; --state-ok-bg: #e9f1e6; --state-warn: #9c6634; --state-warn-bg: #f6eee1; --state-bad: #a34739; --state-bad-bg: #f7e9e4;
  --radius-xs: 3px; --radius-sm: 5px; --radius-md: 8px; --radius-lg: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; font-size: 14px; background: var(--bg-canvas); color: var(--text-main); }
body { margin: 0; height: 100%; height: 100dvh; overflow: hidden; display: grid; grid-template-rows: 76px minmax(0, 1fr); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; background: none; border: 0; }
button:disabled { cursor: wait; opacity: .5; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, [role="tab"]:focus-visible { outline: 1px solid var(--border-strong); outline-offset: 4px; }
[role="tabpanel"]:focus { outline: none; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--border-strong); outline-offset: 1px; border-color: var(--text-muted); }
h1, h2, h3, p { margin: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 8px; padding: 11px 18px; font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.btn-primary { color: #fffdf8; background: var(--text-main); border: 1px solid var(--text-main); }
.btn-primary:hover:not(:disabled) { background: #454239; }
.btn-secondary { border: 1.5px solid var(--border-line); background: var(--bg-surface); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-surface-subtle); border-color: var(--border-strong); }
.text-button { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; font-weight: 500; line-height: 1.6; color: var(--text-muted); }
.text-button:hover { color: var(--accent-terracotta); }
.text-button .icon { width: 15px; height: 15px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; }
.icon-button:hover { background: var(--bg-surface-subtle); }
.section-label { font-size: 12px; font-weight: 400; color: var(--text-muted); line-height: 1.5; }
.muted, .small { color: var(--text-muted); }
.small { font-size: 12px; }
.mono { font-family: var(--font-mono); }
.tag { display: inline-block; padding: 4px 8px; font-size: 11px; line-height: 1.5; color: var(--text-muted); background: var(--bg-surface-subtle); border-radius: 4px; margin: 3px 5px 3px 0; }
.tag.ok { color: var(--state-ok); background: var(--state-ok-bg); }
.tag.warn { color: var(--state-warn); background: var(--state-warn-bg); }
.tag.bad { color: var(--state-bad); background: var(--state-bad-bg); }
input, select, textarea { width: 100%; border: 1.5px solid var(--border-line); border-radius: 8px; background: var(--bg-surface); padding: 11px 13px; min-width: 0; line-height: 1.5; font-size: 14px; }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input::placeholder, textarea::placeholder { color: #918c80; }
textarea { resize: none; }
label, legend { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.8; }
th { background: var(--bg-surface-subtle); color: var(--text-muted); text-align: left; font-weight: 400; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--border-line); vertical-align: top; overflow-wrap: anywhere; }
pre { font: 12px/1.8 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
details summary { cursor: pointer; padding: 14px 0; }
details { border-bottom: 1px solid var(--border-line); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
