/* OnStart App Studio — customer area. Scoped under .ost; inherits the theme's font. */
.ost{--ink:#14202b;--muted:#5d6b78;--line:#dde3e8;--wash:#f3f6f8;--card:#fff;--brand:#0b7a75;--brand-d:#085e5a;--brand-w:#e1f2f0;--warn:#a85f00;--warn-w:#fff1d6;--bad:#b3261e;--bad-w:#fde7e4;--good:#1b7a3d;--good-w:#e3f4e9;
  color:var(--ink);font-size:15px;line-height:1.85;max-width:980px;margin:0 auto}
.ost *{box-sizing:border-box}
.ost h2{font-size:24px;line-height:1.4;margin:0 0 16px}
.ost h3{font-size:17px;line-height:1.5;margin:0 0 8px}
.ost a{color:var(--brand)}
.ost p{margin:0 0 12px}
.ost-ltr{direction:ltr;text-align:left;unicode-bidi:plaintext}
.ost-muted{color:var(--muted);font-size:13.5px}
.ost-hint{display:block;font-weight:400;color:var(--muted);font-size:12.5px;line-height:1.6}
.ost-ok{color:var(--good);font-weight:700;font-size:14px}
.ost-warn{color:var(--warn);font-weight:700}

.ost-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.ost-head h2{margin:0}
.ost-back{display:inline-block;font-size:14px;text-decoration:none;color:var(--muted)}
.ost-back::before{content:"›";margin-inline-end:6px}

.ost-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:0 20px;border:1.5px solid var(--brand);border-radius:10px;background:var(--brand);color:#fff!important;font:inherit;font-weight:700;font-size:14.5px;cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s}
.ost-btn:hover{background:var(--brand-d);border-color:var(--brand-d)}
.ost-btn.alt{background:#fff;color:var(--brand)!important}
.ost-btn.alt:hover{background:var(--brand-w)}
.ost-btn.danger{background:#fff;color:var(--bad)!important;border-color:var(--bad)}
.ost-btn.danger:hover{background:var(--bad-w)}
.ost :focus-visible{outline:3px solid #7cc4bf;outline-offset:2px}

.ost-note{padding:11px 16px;border-radius:12px;margin:0 0 16px;border:1px solid transparent}
.ost-note.ok{background:var(--good-w);border-color:#bfe3cb}
.ost-note.err{background:var(--bad-w);border-color:#f3c3be}
.ost-note .ost-btn{margin-inline-end:10px}

.ost-empty{border:1.5px dashed var(--line);border-radius:18px;padding:36px 20px;text-align:center;background:var(--wash)}
.ost-empty p{color:var(--muted);max-width:420px;margin:0 auto 16px}

/* chips */
.ost-chip{display:inline-block;padding:1px 12px;border-radius:999px;font-size:12.5px;font-weight:700;line-height:1.9;background:var(--wash);color:var(--muted);white-space:nowrap}
.ost-chip.is-approved,.ost-chip.is-done{background:var(--good-w);color:var(--good)}
.ost-chip.is-pending,.ost-chip.is-queued{background:var(--warn-w);color:var(--warn)}
.ost-chip.is-building{background:var(--brand-w);color:var(--brand-d)}
.ost-chip.is-failed,.ost-chip.is-suspended,.ost-chip.is-cancelled{background:var(--bad-w);color:var(--bad)}

/* the phone: the one signature element */
.ost-phone{--app:#0b7a75;width:112px;aspect-ratio:9/17;border-radius:22px;padding:7px;background:var(--ink);flex:none;box-shadow:0 14px 28px -14px rgba(20,32,43,.55)}
.ost-phone-bar{height:5px;width:34%;margin:2px auto 6px;border-radius:9px;background:#3a4856}
.ost-phone-screen{height:calc(100% - 13px);border-radius:15px;background:linear-gradient(180deg,var(--app) 0 36%,#fff 36%);display:flex;flex-direction:column;align-items:center;padding-top:20%;gap:7px;overflow:hidden}
.ost-phone-icon{width:42%;aspect-ratio:1;border-radius:24%;background:#fff;display:grid;place-items:center;font-weight:800;color:var(--app);font-size:20px;overflow:hidden;box-shadow:0 4px 10px -4px rgba(0,0,0,.4)}
.ost-phone-icon img{width:100%;height:100%;object-fit:cover}
.ost-phone-screen::after{content:"";width:80%;flex:1;margin:12% 0 10%;border-radius:8px;background:repeating-linear-gradient(#e9eef2 0 13px,transparent 13px 20px)}
.ost-row .ost-phone-screen::after{display:none}
.ost-phone-name{font-size:9.5px;font-weight:700;color:var(--ink);max-width:86%;text-align:center;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:24%}

/* list */
.ost-list{display:grid;gap:12px}
.ost-row{display:flex;align-items:center;gap:18px;padding:14px 18px 14px 20px;border:1px solid var(--line);border-radius:18px;background:var(--card);text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.ost-row:hover{border-color:var(--brand);box-shadow:0 8px 22px -16px rgba(11,122,117,.7)}
.ost-row .ost-phone{width:56px;border-radius:12px;padding:4px;box-shadow:none}
.ost-row .ost-phone-bar{height:3px;margin:1px auto 3px}
.ost-row .ost-phone-screen{border-radius:8px;height:calc(100% - 7px)}
.ost-row .ost-phone-icon{font-size:11px}
.ost-row .ost-phone-name{display:none}
.ost-row-main{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.6}
.ost-row-main span{color:var(--muted);font-size:13px}

/* app page */
.ost-app{display:grid;grid-template-columns:200px 1fr;gap:28px;align-items:start}
.ost-side{position:sticky;top:110px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.ost-side .ost-phone{width:132px}
.ost-side-meta{display:flex;flex-direction:column;gap:2px;align-items:center;font-size:13px;color:var(--muted);word-break:break-all}
.ost-side-meta strong{color:var(--ink);font-size:16px}
.ost-steps{position:relative;display:grid;gap:14px}
.ost-step{display:grid;grid-template-columns:38px 1fr;gap:14px;position:relative}
.ost-step:not(:last-child)::before{content:"";position:absolute;inset-inline-start:18px;top:40px;bottom:-14px;width:2px;background:var(--line)}
.ost-step-mark{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:#fff;border:2px solid var(--line);color:var(--muted);z-index:1}
.ost-step.is-done .ost-step-mark{background:var(--brand);border-color:var(--brand);color:#fff}
.ost-step-body{border:1px solid var(--line);border-radius:16px;background:var(--card);padding:16px 20px 8px;min-width:0}
.ost-step.is-done .ost-step-body{background:#fbfefd}

/* forms */
.ost-panel{border:1px solid var(--line);border-radius:16px;background:var(--card);padding:20px;max-width:560px}
.ost-form label{display:block;margin:0 0 14px;font-weight:700;font-size:14px}
.ost-form input[type=text],.ost-form input[type=password],.ost-form input[type=url],.ost-form select{display:block;width:100%;max-width:440px;min-height:42px;margin-top:6px;padding:6px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font:inherit;font-weight:400;color:var(--ink)}
.ost-form input[type=file]{display:block;margin-top:6px;font-weight:400;font-size:13.5px}
.ost-form input:focus,.ost-form select:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px #cfe9e6}
.ost-color{display:block;margin-top:6px;width:64px;height:42px;padding:2px;border:1.5px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}
.ost-copy{display:flex;gap:8px;margin:0 0 12px;max-width:560px}
.ost-copy input{flex:1;min-width:0;min-height:42px;padding:6px 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--wash);font:13px/1.4 ui-monospace,Menlo,Consolas,monospace;color:var(--ink)}
.ost details{margin:0 0 12px}
.ost summary{cursor:pointer;font-weight:700;color:var(--brand);padding:4px 0}
.ost details[open]>summary{margin-bottom:10px}
.ost pre{direction:ltr;text-align:left;background:#14202b;color:#e3ebf2;padding:12px;border-radius:12px;max-height:240px;overflow:auto;white-space:pre-wrap;font-size:12px;line-height:1.6;margin:8px 0 0}
.ost-facts{display:grid;grid-template-columns:auto 1fr;gap:4px 16px;margin:0 0 12px;font-size:13.5px}
.ost-facts dt{color:var(--muted)}.ost-facts dd{margin:0;word-break:break-all}.ost-facts dd.ost-ltr{font:12px/1.6 ui-monospace,Menlo,Consolas,monospace}

/* builds */
.ost-builds{list-style:none;margin:12px 0;padding:0;display:grid;gap:8px}
.ost-builds li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:10px 14px;border:1px solid var(--line);border-radius:12px}
.ost-builds li>div{flex:1;min-width:160px}
.ost-builds li details{flex-basis:100%;margin:0}
.ost-busy{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--brand-d)}
.ost-spin{width:18px;height:18px;border-radius:50%;border:3px solid var(--brand-w);border-top-color:var(--brand);animation:ost-r .9s linear infinite}
@keyframes ost-r{to{transform:rotate(360deg)}}
.ost-guide{padding-inline-start:20px;margin:0 0 12px}.ost-guide li{margin-bottom:6px}
.ost-danger{margin-top:26px;border-top:1px solid var(--line);padding-top:12px}.ost-danger summary{color:var(--bad)}

@media (max-width:720px){
  .ost-app{grid-template-columns:1fr;gap:18px}
  .ost-side{position:static;flex-direction:row;text-align:start;justify-content:flex-start}
  .ost-side .ost-phone{width:84px;border-radius:16px;padding:5px}
  .ost-side .ost-phone-bar{height:3px;margin:1px auto 4px}
  .ost-side .ost-phone-name{display:none}
  .ost-side-meta{align-items:flex-start}
  .ost-step{grid-template-columns:30px 1fr;gap:10px}
  .ost-step-mark{width:30px;height:30px;font-size:13px}
  .ost-step:not(:last-child)::before{inset-inline-start:14px;top:32px}
  .ost-step-body{padding:14px 14px 6px}
  .ost-row{gap:12px;padding:12px}
}
@media (prefers-reduced-motion:reduce){.ost-spin{animation-duration:3s}.ost *{transition:none!important}}
.ost-builds .ost-muted{display:inline-block}

/* themes often style bare h2/h3/p/li/ul/a heavily: pin our own scale with higher specificity */
.ost .ost-head h2,.ost>h2{font-size:22px!important;line-height:1.5!important;margin:0 0 14px!important;padding:0!important;font-weight:700!important}
.ost .ost-step-body h3{font-size:16px!important;line-height:1.5!important;margin:0 0 10px!important;padding:0!important;font-weight:700!important;color:var(--ink)!important}
.ost .ost-step-body p,.ost .ost-note,.ost .ost-guide li{font-size:14.5px!important;line-height:1.9!important;margin:0 0 10px!important}
.ost .ost-step-body{padding:14px 20px 6px!important}
.ost ul.ost-builds,.ost ol.ost-guide{margin:10px 0!important}
.ost .ost-builds li{margin:0!important;padding:10px 14px!important;list-style:none!important}
.ost .ost-guide{padding-inline-start:22px!important;list-style:decimal!important}
.ost .ost-guide li{padding:0!important}
.ost label{display:block}
.ost .ost-btn{font-size:14.5px!important;line-height:1!important;text-decoration:none!important;box-shadow:none!important}
.ost .ost-step-mark{font-size:14px!important;line-height:1!important;margin:0!important;padding:0!important}
.ost .ost-chip{font-size:12.5px!important;line-height:1.9!important;margin:0!important;padding:1px 12px!important}
.ost .ost-side-meta strong{font-size:16px!important;line-height:1.5!important}
