/* Prism Translate — popup styles. Dark premium theme, indigo→pink accent. */
:root {
  --bg: #0f0d1a;
  --panel: #17142a;
  --panel-2: #1f1b38;
  --line: rgba(255, 255, 255, 0.09);
  --text: #ece9f8;
  --muted: #9b96b8;
  --accent: #6366f1;
  --accent-2: #ec4899;
  --grad: linear-gradient(135deg, #6366f1, #ec4899);
  --ok: #34d399;
  --warn: #fbbf24;
}
[data-theme="light"] {
  --bg: #f6f5fb;
  --panel: #ffffff;
  --panel-2: #f0eef9;
  --line: rgba(20, 18, 40, 0.1);
  --text: #1d1b2e;
  --muted: #6b6788;
}

* { box-sizing: border-box; }
body {
  width: 320px;
  margin: 0;
  padding: 14px;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  word-break: keep-all;
}

.hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; flex: 1; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); font-size: 11px; }
.icon-btn {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  width: 30px; height: 30px; cursor: pointer; font-size: 14px;
}
.icon-btn:hover { background: var(--panel-2); }

.big-btn {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  background: var(--grad);
  color: #fff; border: none; border-radius: 12px;
  padding: 13px 16px; font-size: 15px; font-weight: 600;
  cursor: pointer; margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.big-btn:hover { filter: brightness(1.07); }
.big-btn:active { transform: scale(0.98); }
.big-btn.active { background: var(--panel-2); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.big-btn .bt-icon { font-size: 18px; }
.big-btn .bt-label { flex: 1; text-align: left; }
.big-btn kbd {
  font: 11px/1 ui-monospace, monospace;
  background: rgba(0, 0, 0, 0.25); border-radius: 5px;
  padding: 3px 6px; color: rgba(255, 255, 255, 0.85);
}
.big-btn.active kbd { background: var(--panel); color: var(--muted); }

.row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 9px;
}
.row label { color: var(--muted); font-size: 13px; white-space: nowrap; }
.row select {
  flex: 1; max-width: 190px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 9px; font-size: 13px; cursor: pointer;
}
.row select:focus { outline: none; border-color: var(--accent); }

.warn {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--warn);
  border-radius: 9px; padding: 9px 11px; font-size: 12px;
  margin: 6px 0 4px; line-height: 1.5;
}
.warn a { color: var(--warn); text-decoration: underline; cursor: pointer; }

.usage {
  margin: 10px 0; font-size: 12px; color: var(--muted);
  display: flex; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 10px;
}
.usage b { color: var(--text); font-weight: 600; white-space: nowrap; }

.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 8px; }
.tool-btn {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px; font-size: 13px; cursor: pointer;
}
.tool-btn:hover { background: var(--panel-2); border-color: var(--accent); }

.ft { margin-top: 6px; }
.ghost-btn {
  width: 100%;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; font-size: 13px; cursor: pointer;
}
.ghost-btn:hover { background: var(--panel-2); border-color: var(--accent); }
