/* Decision 3.0 live demo: what the demo adds to the Studio (studio.css, d3.css): the free-key call to action in
   the hero, the model picker, the key and privacy notices next to Run and the uploads, the family table and limit messages. */


.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-links { margin: 16px 0 0; color: #cfc6bd; font-size: 13px; }
.hero-links a { color: #f4efe9; text-decoration: underline; text-decoration-color: rgba(242,180,122,.55); text-underline-offset: 3px; }
.hero-links a:hover { text-decoration-color: var(--accent); }

.model-select-wrap { position: relative; display: inline-flex; align-items: center; gap: 10px; min-width: 260px; padding: 8px 12px; }
.model-select { appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; padding: 2px 24px 2px 0; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23f2b47a' stroke-width='1.6'/%3E%3C/svg%3E") right center / 16px no-repeat; color: var(--ink); font: 600 15px/1.2 var(--font); letter-spacing: -0.015em; cursor: pointer; }
.model-select:focus { outline: none; }
.model-select-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.model-select option { background: #17131f; color: var(--ink); }
.model-state { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }

.privacy-note { margin: 10px 2px 18px; color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
.privacy-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.privacy-note a:hover { color: var(--ink); }
.studio-card { grid-template-areas: "bar" "actions" "runnote" "scenarios" "note" "work"; }
.run-note { grid-area: runnote; margin: -8px 0 0; padding: 0 22px 14px; color: var(--ink-3); font-size: 12.5px; line-height: 1.5; text-align: right; }
.run-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.run-note a:hover { color: var(--ink); }

.limit-message { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--accent-ring); border-radius: var(--radius); background: var(--accent-wash); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.limit-message b { color: var(--ink); }
.limit-message a { color: var(--accent-strong); font-weight: 600; }

.family-sheet { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.family-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); box-shadow: var(--shadow-card); }
.family-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.family-table th { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.family-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); vertical-align: middle; }
.family-table tr:last-child td { border-bottom: 0; }
.family-table tr.is-current td { background: var(--accent-wash); }
.family-table .fam-name { color: var(--ink); font-weight: 600; }
.family-table .fam-links { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: flex-end; }
.family-table .fam-links a, .family-table .fam-use { color: var(--accent-strong); font-size: 13px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.family-table .fam-links a:hover, .family-table .fam-use:hover { text-decoration: underline; }
.family-table .fam-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.family-table .fam-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--idle); }
.family-table .fam-state.is-ready i { background: var(--ok); box-shadow: 0 0 0 3px rgba(127,216,179,.15); }
.family-table .fam-state.is-down i { background: var(--bad); }
.quickstart-foot { margin: 10px 2px 0; color: var(--ink-3); font-size: 12.5px; }
.footer-credits { flex-basis: 100%; margin: 6px 0 0; color: var(--ink-3); font-size: 12px; }

@media (max-width: 900px) {
  .family-sheet { grid-template-columns: minmax(0, 1fr); }
  .model-select-wrap { min-width: 0; width: 100%; }
  .run-note { margin-top: 0; text-align: left; }
}
