/* Account, add-on catalog and developer portal pages (on top of site.css) */
.page-hero { padding: 56px 0 18px; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); margin: 6px 0 8px; }
.page-hero .lead { margin: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 18px; }
.panel h2 { font-size: 24px; margin: 0 0 14px; }
.panel h3 { margin: 0 0 8px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.form { display: grid; gap: 12px; max-width: 520px; }
.form.wide { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); }
.field small { color: var(--faint); font-size: 12.5px; }
input.in, textarea.in, select.in { width: 100%; background: #090c10; border: 1px solid var(--line2); border-radius: 9px; padding: 10px 12px; color: var(--text); font: 16px var(--ui); }
textarea.in { min-height: 140px; resize: vertical; line-height: 1.5; }
input.in:focus, textarea.in:focus, select.in:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47,217,255,.15); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.msg { padding: 10px 14px; border-radius: 9px; font-size: 15px; margin: 10px 0; }
.msg.ok { background: rgba(56,224,90,.1); border: 1px solid rgba(56,224,90,.4); color: #9ff0b2; }
.msg.err { background: rgba(255,59,48,.1); border: 1px solid rgba(255,59,48,.4); color: #ffaba4; }
.msg.info { background: rgba(47,217,255,.08); border: 1px solid rgba(47,217,255,.35); color: #a8ecfb; }
.hidden { display: none !important; }
.linkbtn { background: none; border: 0; color: var(--cyan); font: inherit; cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: var(--panel2); border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; }
.stat b { display: block; font: 700 26px var(--mono); color: #fff; }
.stat span { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: left; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line2); }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:hover td { background: rgba(255,255,255,.02); }
.st { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line2); color: var(--muted); }
.st.completed, .st.published { color: #7ee89a; border-color: rgba(56,224,90,.45); }
.st.crashed, .st.removed { color: #ff8a80; border-color: rgba(255,59,48,.45); }
.st.diverted, .st.draft, .st.unlisted { color: #ffd28a; border-color: rgba(255,176,32,.45); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; color: var(--muted); font: 600 15px var(--ui); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.tabs button.on { color: #fff; border-bottom-color: var(--cyan); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { background: var(--panel2); border: 1px solid var(--line2); border-radius: 16px; padding: 5px 13px; color: var(--muted); font: 14px var(--ui); cursor: pointer; }
.chips button.on { color: #fff; border-color: var(--cyan); background: var(--cyan-d); }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.acard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--text); transition: transform .15s, border-color .15s; }
.acard:hover { transform: translateY(-2px); border-color: var(--cyan); text-decoration: none; }
.acard .cv { height: 150px; background: linear-gradient(135deg, #1b3348, #0b141e) center / cover no-repeat; position: relative; }
.acard .kd { position: absolute; left: 10px; top: 10px; padding: 2px 9px; border-radius: 10px; background: rgba(0,0,0,.6); color: var(--cyan); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.acard .bd { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 4px; }
.acard .bd b { font-size: 18px; color: #fff; } .acard .bd small { color: var(--muted); } .acard .bd p { margin: 0; color: #b3c1ce; font-size: 14.5px; line-height: 1.4; }
.acard .pr { margin-top: 6px; font-weight: 700; color: #fff; }
.detail-hero { height: 320px; border-radius: 14px; background: linear-gradient(135deg, #1b3348, #0b141e) center / cover no-repeat; margin-bottom: 20px; }
.shots-row { display: flex; gap: 10px; overflow-x: auto; margin: 14px 0; } .shots-row img { height: 180px; border-radius: 10px; }
.prose { white-space: pre-wrap; color: #c3d0dc; line-height: 1.6; max-width: 80ch; }
.side-box .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
dl.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; margin: 14px 0 0; } dl.meta dt { color: var(--muted); } dl.meta dd { margin: 0; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; } .thumbs img { height: 70px; border-radius: 6px; border: 1px solid var(--line2); }
/* docs */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; padding: 36px 0 60px; }
.docs nav { position: sticky; top: 80px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.docs nav a { color: var(--muted); padding: 4px 0; } .docs nav a:hover { color: #fff; text-decoration: none; }
.docs nav .g { margin: 14px 0 4px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.docs article h2 { font-size: 30px; margin: 46px 0 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.docs article h2:first-child { margin-top: 0; border-top: 0; }
.docs article h3 { font-size: 21px; margin: 28px 0 8px; color: #fff; }
.docs article p, .docs article li { color: #c3d0dc; line-height: 1.65; }
.docs code { font-family: var(--mono); font-size: 13.5px; background: #10161d; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: #b7f0ff; }
.docs pre { background: #0a0e13; border: 1px solid var(--line2); border-radius: 10px; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.55 var(--mono); color: #d9e6f0; }
.docs pre code { background: none; border: 0; padding: 0; color: inherit; }
.docs table.t td code { white-space: nowrap; }
.callout { border-left: 3px solid var(--cyan); background: rgba(47,217,255,.06); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 14px 0; color: #c3d0dc; }
.callout.warn { border-left-color: var(--amber); background: rgba(255,176,32,.06); }
@media (max-width: 900px) { .cols, .cols-3, .form.wide { grid-template-columns: 1fr; } .docs { grid-template-columns: 1fr; } .docs nav { position: static; } }
