/* The portal's own content. Header, menu, footer, fonts, colours and page width come from prism-shell
   (/static/shell/shell.css, loaded first); this file only styles what is inside the page. */

.eyebrow { font: 600 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--mid); margin: 0 0 12px; }
.shell-main h1 { font: 600 clamp(30px, 5vw, 44px)/1.08 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
.shell-main h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shell-main h2 { font: 600 22px/1.2 var(--display); margin: 0 0 6px; }
.shell-main h3 { font: 600 19px/1.25 var(--display); margin: 0; }
.lede { color: var(--muted); max-width: 66ch; margin: 0 0 22px; font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.aside { color: var(--muted); font-size: 14px; margin-top: 18px; }
.alert, .notice { padding: 12px 16px; border-radius: 12px; margin: 0 0 20px; max-width: 76ch; }
.alert { background: #fdecea; color: var(--alert); border: 1px solid #f5c6c0; }
.notice { background: #eef7e6; color: var(--ok); border: 1px solid #cfe6b8; }
code, kbd { font: 600 14px/1.4 "SF Mono", Menlo, Consolas, monospace; background: var(--pale); color: var(--dark);
  padding: 1px 6px; border-radius: 6px; }
kbd { white-space: nowrap; }

/* forms and buttons */
.hero { max-width: 640px; padding-top: 12px; }
.field { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; max-width: 480px; }
.field label { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
input[type=text], input:not([type]), .field input, select { padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; background: #fff; color: var(--ink); }
.field input:focus, select:focus { outline: 2px solid var(--light); border-color: var(--mid); }
.switch { margin-top: 22px; max-width: 480px; }
.switch p { margin: 0 0 8px; font-size: 15px; }
.shell-main button, .button { display: inline-block; border: 0; cursor: pointer; border-radius: 22px; padding: 11px 20px;
  background: var(--gradient); color: #fff !important; font: 600 15px/1.2 var(--display); text-decoration: none; }
.shell-main button.small, .button.small { padding: 7px 14px; font-size: 13px; }
.shell-main button:hover, .button:hover { filter: brightness(1.08); }
.shell-main button.ghost { background: #fff; color: var(--dark) !important; border: 1px solid var(--line); }
.shell-main button.ghost:hover { filter: none; background: var(--pale); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: flex;
  flex-direction: column; gap: 8px; }
.card p { margin: 0; }
.card.on { border-top: 4px solid var(--mid); }
.card.off { border-top: 4px solid var(--line); }
.badge { display: inline-block; vertical-align: 2px; padding: 1px 10px; border-radius: 10px; background: var(--pale); color: var(--dark);
  font: 600 12px/1.3 var(--display); white-space: nowrap; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin: 0 0 18px; max-width: 820px; }
.panel p { margin: 0 0 10px; }
.panel p:last-child { margin-bottom: 0; }

/* Start: what needs attention, getting started, the sandboxes, the vault */
.section-title { margin-top: 34px !important; margin-bottom: 14px !important; }
.attention { background: #fff8e6; border: 1px solid #f1dc9e; border-radius: 16px; padding: 16px 22px; margin: 0 0 26px; max-width: 820px; }
.attention h2 { font-size: 18px !important; color: #6b5300; }
.attention ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.attention a { color: #6b5300 !important; font-weight: 600; }
.getting-started { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin: 0 0 8px; }
.getting-started > .muted { margin: 0 0 12px; max-width: 76ch; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head form { margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 900px; }
.steps > li { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.steps summary { cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  font: 600 17px/1.3 var(--display); list-style: none; }
.steps summary::-webkit-details-marker { display: none; }
.steps summary::after { content: "+"; margin-left: auto; color: var(--mid); font-size: 20px; line-height: 1; }
.steps details[open] summary::after { content: "–"; }
.steps .num { flex: none; width: 28px; height: 28px; border-radius: 14px; background: var(--pale); color: var(--dark);
  font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.step-body { padding: 0 18px 16px 56px; }
.step-body p { margin: 0 0 10px; }
.step-body ol { margin: 0 0 10px; padding-left: 22px; }
.step-body li { margin-bottom: 6px; }
.step-body li::marker { color: var(--mid); font-weight: 600; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stores small { font: 400 13px/1 var(--body); opacity: .85; margin-left: 4px; }
.stores .soon { padding: 11px 20px; border-radius: 22px; background: var(--pale); color: var(--dark);
  font: 600 15px/1.2 var(--display); }
.sb .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.model-line { font-size: 14px; color: var(--muted); }
.others { margin: 14px 0 0; }
.small-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px;
  max-width: 620px; flex-wrap: wrap; }
@media (max-width: 700px) { .step-body { padding-left: 18px; } }

/* the name of a sandbox, its technical id underneath, and the rename dialog (HTML popover, no script) */
.sb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sb-head h3 { overflow-wrap: anywhere; }
.sb-id { font: 400 13px/1.4 "SF Mono", Menlo, Consolas, monospace; color: var(--muted); }
.card .sb-id { margin-top: -4px; }
th .sb-id { display: block; margin-top: 3px; text-transform: none; letter-spacing: 0; font-size: 12px; }
.rename-failed { font-size: 14px; color: var(--alert); background: #fdecea; border: 1px solid #f5c6c0; border-radius: 10px;
  padding: 6px 10px; }
.dialog[popover] { width: min(100% - 40px, 480px); padding: 26px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(27, 15, 59, .28); }
.dialog::backdrop { background: rgba(27, 15, 59, .45); }
.dialog form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.dialog h2 { margin-bottom: 8px; }
.dialog label { font-size: 14px; color: var(--muted); }
.dialog input[type=text] { width: 100%; }
.dialog input[type=text]:focus { outline: 2px solid var(--light); border-color: var(--mid); }
.dialog p { margin: 0; }
.dialog .small { font-size: 13px; }
.dialog .actions.end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* AI models: one card per provider, then how the default works */
.card .model { font: 600 24px/1.2 var(--display); letter-spacing: -.02em; }
.card .provisional { color: var(--muted); font-size: 14px; font-style: italic; margin-top: auto; padding-top: 6px; }
.how { max-width: 70ch; margin-top: 40px; }
.how ul { margin: 12px 0 0; padding-left: 20px; }
.how li { margin-bottom: 8px; }
.how li::marker { color: var(--mid); }

/* Subscription, Contact */
.status-line { font: 600 16px/1.4 var(--display); }
.status { display: inline-block; padding: 2px 12px; border-radius: 12px; font-size: 14px; }
.status.active { background: #eef7e6; color: var(--ok); }
.status.suspended { background: #fff4c4; color: #6b5300; }
.status.ended { background: #fdecea; color: var(--alert); }
.covers { margin: 6px 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.covers li::marker { color: var(--mid); }

/* tables: Team › People, the log, support */
.table { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font: 600 12px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #fbfaff; }
tr:last-child td { border-bottom: 0; }
td.check { text-align: center; }
td.check input { width: 18px; height: 18px; accent-color: var(--mid); }
table.support td, table.log td { vertical-align: top; line-height: 1.5; }
.nowrap { white-space: nowrap; }
.form-actions { margin: 16px 0 0; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 16px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.filters select { padding: 8px 12px; font-size: 14px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 14px; }
.sb .actions .button, .sb .actions button { padding: 8px 15px; font-size: 14px; }
.small-card > div { flex: 1 1 280px; }
