/* File: static/console/styles.css — console/embed shared styles */
:root {
  --bg: #f3f5f7;
  --card: #fff;
  --ink: #1c2430;
  --muted: #5b6775;
  --accent: #1f6b4f;
  --danger: #a12828;
  --line: #d7dee6;
  --skin-bg: var(--card);
  --skin-accent: var(--accent);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #10231c;
  color: #f4faf7;
}
.top h1 { margin: 0; font-size: 1.2rem; }
.sub { margin: 0.2rem 0 0; opacity: 0.8; font-size: 0.85rem; }
.layout { max-width: 1100px; margin: 1rem auto; padding: 0 1rem 2rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.row { display: flex; gap: 0.5rem; align-items: end; }
.row.wrap { flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; align-items: center; }
.grow { flex: 1; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--muted); }
input, select, textarea {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
}
button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.danger, button.ghost.danger { color: var(--danger); border-color: #e2b4b4; }
.hidden { display: none !important; }
.error { color: var(--danger); min-height: 1.2em; }
.hint { color: var(--muted); font-size: 0.85rem; }
table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.4rem; text-align: left; font-size: 0.9rem; }
.tabs { display: flex; gap: 0.4rem; margin-bottom: 0.8rem; }
.tabs button.active { background: #144c39; }
.skin-root {
  background: var(--skin-bg);
  border-left: 4px solid var(--skin-accent);
  padding-left: 0.5rem;
}
.skin-title { margin-top: 0; }
.actions { white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.role-set {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  margin: 0;
}
.role-set legend { padding: 0 0.25rem; color: var(--muted); font-size: 0.8rem; }
.role-set label { flex-direction: row; align-items: center; gap: 0.35rem; margin: 0.2rem 0; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
