/* The band patch maker (/tools/patch-maker/, static/js/patch/studio.js): the
   page round the design frame's shell. The editor's own look is
   design_frame.css (df-); what is here is the page: the head, the examples,
   the panels' chips and the finish panel. Prefixed pt-. docs/patch-maker.md */

.pt-wrap { max-width: 1720px; margin: 0 auto; padding: 0 1rem 2rem; }
.pt-head { margin: 0 0 1.2rem; }
.pt-head h1 { font-family: Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .4rem; }
.pt-tagline { max-width: 68ch; color: #c8c8c8; line-height: 1.6; margin: 0 0 .5rem; }
.pt-noai { display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; color: #bbb; margin: 0; }
.pt-noai-badge { padding: .15rem .5rem; border: 1px solid #ff0000; color: #ff0000; border-radius: 4px; font-weight: 800; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

/* The shell's panels, in the portal's register without the portal's sheet. */
.pt-editor .df-panel-title { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8a8a8a; border-bottom: 1px solid #262626; padding-bottom: .6rem; margin: 0 0 .9rem; }
.pt-label { display: block; margin: 10px 0 4px; font-size: .9rem; }
.pt-help { font-size: .82rem; opacity: .75; margin: 4px 0 0; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-chip { position: relative; }
.pt-chip input { position: absolute; opacity: 0; inset: 0; }
.pt-chip span {
    display: inline-block; padding: 7px 13px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18); cursor: pointer; font-size: .88rem;
}
.pt-chip input:checked + span { background: #fff; color: #111; border-color: #fff; }
.pt-chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.pt-chip-blurb { display: block; font-size: .78rem; opacity: .7; margin: 2px 0 0; }
.pt-variant { display: grid; gap: 6px; }
.pt-variant label { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: start; padding: 8px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; cursor: pointer; }
.pt-variant label:has(input:checked) { border-color: #fff; background: rgba(255,255,255,.06); }
.pt-variant input { margin-top: 3px; }
.pt-variant strong { display: block; font-size: .9rem; }
.pt-size-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: 6px; }
.pt-size-row .pt-label { margin: 0; font-size: .82rem; opacity: .8; }
.pt-size-row .pt-mm { width: 4.4em; min-width: 0; padding: 6px 6px; }
.pt-size-row .pt-x { opacity: .6; }
.pt-input, .pt-select {
    width: 100%; min-width: 0; padding: 8px 10px; box-sizing: border-box; border-radius: 6px;
    border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.25); color: inherit; font: inherit; font-size: .95rem;
}
.pt-input:focus, .pt-select:focus { outline: none; border-color: #ff0000; box-shadow: 0 0 0 3px rgba(255,0,0,.22); }
.pt-row { display: flex; gap: 8px; }
.pt-row .pt-input, .pt-row .pt-select { flex: 1; width: auto; }
.pt-btn {
    display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem;
    border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(255,255,255,.04);
    color: inherit; font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
    text-decoration: none;
}
.pt-btn:hover { background: rgba(255,255,255,.1); }
.pt-btn--primary { background: #ff0000; border-color: #ff0000; color: #fff; }
.pt-btn--primary:hover { background: #d40000; }
.pt-btn:disabled { opacity: .45; cursor: default; }
.pt-file {
    display: block; width: 100%; padding: .5rem .6rem; box-sizing: border-box; margin: 0;
    background: rgba(0,0,0,.25); border: 1px dashed rgba(255,255,255,.35); border-radius: 8px;
    color: #bbb; font: inherit; font-size: .85rem; cursor: pointer;
}
.pt-check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; font-size: .9rem; cursor: pointer; }
.pt-spec { margin: 6px 0 0; font-size: .85rem; opacity: .8; }
.pt-problems { margin: 8px 0 0; padding-left: 1.1rem; font-size: .85rem; line-height: 1.5; }
.pt-problems .is-block { color: #ff8a65; }
.pt-problems .is-warn { color: #ffb74d; }
.pt-finish-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pt-status { margin: 8px 0 0; font-size: .88rem; opacity: .85; }
.pt-status.is-error { color: #ff8a65; opacity: 1; }
.pt-notice { display: flex; gap: .9rem; align-items: flex-start; padding: 12px 14px; margin: 0 0 14px; border: 1px solid #333; border-radius: 10px; background: #121212; font-size: .92rem; line-height: 1.5; }
.pt-notice i { color: #ffb300; margin-top: .2rem; }
.pt-notice .df-row { margin-top: 8px; }

/* The examples: the page's own product, drawn by render_patch_examples. */
.pt-examples { margin: 2.5rem 0 0; }
.pt-examples h2 { margin: 0 0 .8rem; }
.pt-examples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pt-example { display: block; border-radius: 10px; overflow: hidden; background: #1f1f1f; border: 1px solid #262626; }
.pt-example img { display: block; width: 100%; height: auto; }
.pt-example figcaption { padding: .5rem .7rem; font-size: .8rem; color: #bbb; }

@media (max-width: 899px) {
    .pt-wrap { padding: 0 1rem 2rem; }
    .pt-examples-grid { grid-template-columns: repeat(2, 1fr); }
}
