/* Domivault 在线演示共用样式：纯前端模拟器，无后端，数据不落盘 */
:root {
  color-scheme: dark;
  --bg: #0d0e11;
  --panel: #15171c;
  --panel-2: #1b1e25;
  --line: #2a2e37;
  --text: #e8eaf0;
  --muted: #8b909c;
  --faint: #5a5f6b;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 system-ui, "Segoe UI", sans-serif;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* 顶部演示标识条 */
.demo-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.demo-banner .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0a93e;
  flex-shrink: 0;
}

.demo-banner b {
  color: var(--text);
  font-weight: 600;
}

/* 通用控件 */
button,
.btn {
  font: inherit;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

button:hover,
.btn:hover {
  background: #23262f;
}

button.primary {
  background: var(--accent, #c7352b);
  border-color: var(--accent, #c7352b);
  color: #fff;
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

input,
textarea,
select {
  font: inherit;
  color: var(--text);
  background: #101216;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  outline: none;
  width: 100%;
}

input:focus,
textarea:focus {
  border-color: var(--accent, #c7352b);
}

.mono {
  font-family: var(--mono);
}

.muted {
  color: var(--muted);
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.tag.ok {
  color: #6fc77a;
  border-color: #2c4a32;
}

.tag.warn {
  color: #e0a93e;
  border-color: #4a3d24;
}

.tag.bad {
  color: #e86a5f;
  border-color: #4a2c28;
}

/* 页签 */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--panel-2);
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  overflow-x: auto;
}

.tabs button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.55rem 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.tabs button.active {
  color: var(--text);
  border-bottom-color: var(--accent, #c7352b);
}

.tab-panel {
  flex: 1;
  overflow: auto;
  padding: 0.9rem;
}

.tab-panel[hidden] {
  display: none;
}

/* 列表项 */
.row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 0.45rem;
}

main.stage {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

h3.sec {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0.9rem 0 0.5rem;
}

h3.sec:first-child {
  margin-top: 0;
}
