/* Admin editor (uses the tokens from styles.css) */
.admin [hidden] { display: none !important; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: transparent; color: #e5484d; border-color: rgba(229, 72, 77, .35); }
.btn-danger:hover { background: rgba(229, 72, 77, .1); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border-radius: 7px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--muted); font-size: .85rem; cursor: pointer; transition: color .2s, border-color .2s;
}
.icon-btn:hover:not(:disabled) { color: var(--text); border-color: var(--accent-line); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* Form controls */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: .85rem; font-weight: 500; color: var(--muted); }
.field small { color: var(--subtle); font-size: .78rem; }
.admin input:not([type="checkbox"]):not([type="file"]), .admin textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  font: inherit; font-size: .95rem; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.admin textarea { resize: vertical; min-height: 44px; }
.admin input:focus, .admin textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.admin input::placeholder, .admin textarea::placeholder { color: var(--subtle); opacity: .7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slug { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; }
.slug span { padding: 0 2px 0 12px; color: var(--subtle); font: .85rem/1 var(--mono); white-space: nowrap; }
.admin .slug input[name="id"] { border: 0; background: transparent; box-shadow: none; padding-left: 0; font-family: var(--mono); font-size: .85rem; min-width: 0; }
.slug:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { margin: -4px 0 14px; color: var(--subtle); font-size: .85rem; }
.form-error { min-height: 1.4em; margin: 0; color: #e5484d; font-size: .9rem; }

/* Login */
.login { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 360px; padding: 32px 28px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
}
.login-card img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; }
.login-card h1 { font-size: 1.5rem; margin-bottom: 20px; }
.login-card .field { text-align: left; }
.login-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.login-note { margin: -8px 0 16px; padding: 10px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-size: .85rem; }

/* App shell */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 20px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
}
/* Tabs */
.tabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.tab { padding: 6px 14px; border-radius: 7px; font-size: .88rem; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line); }

/* Profile: bio + link rows */
.profile-view { max-width: 820px; }
.profile-inner { display: grid; }
.js-bio-count { justify-self: end; font-family: var(--mono); }
.plinks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.plink {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
}
.plink-icon { width: 44px; height: 44px; }
.plink-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plink-fields input[data-key="url"] { grid-column: 1 / -1; font-family: var(--mono); font-size: .85rem !important; }
.plink-tools { display: flex; flex-direction: column; gap: 4px; }
.plink-tools .icon-btn { width: 28px; height: 26px; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; }
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100svh - 60px); }

.sidebar { padding: 20px; border-right: 1px solid var(--border); background: var(--bg-alt); }
.project-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.list-item {
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  transition: border-color .2s;
}
.list-item.active { border-color: var(--accent); }
.list-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.list-thumb { flex-shrink: 0; width: 52px; height: 36px; border-radius: 6px; background: var(--surface-2) center / cover no-repeat; }
.list-text { min-width: 0; display: grid; gap: 2px; }
.list-text strong { font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { justify-self: start; padding: 1px 7px; border-radius: 999px; font: .68rem/1.5 var(--mono); background: var(--surface-2); color: var(--subtle); }
.badge.live { background: rgba(107, 175, 148, .15); color: var(--success); }
.list-moves { display: flex; flex-direction: column; gap: 2px; }
.list-moves .icon-btn { width: 24px; height: 18px; font-size: .7rem; border-radius: 5px; }
.list-empty { color: var(--subtle); font-size: .9rem; margin-top: 16px; }

.editor { padding: 28px 32px 120px; }
.editor-empty { color: var(--subtle); padding: 40px 0; }
.editor-form { max-width: 760px; }
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.editor fieldset { margin: 0 0 20px; padding: 20px 20px 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.editor legend { padding: 0 8px; margin-left: -8px; font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }

/* Published switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background .2s; }
.switch input:checked + .switch-ui { background: var(--success); border-color: var(--success); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Rows (links, stats) */
.rows { display: grid; gap: 8px; margin-bottom: 12px; }
.rows:empty { display: none; }
.row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; align-items: center; }
[data-rows="stats"] .row { grid-template-columns: 1fr 1fr auto; }
.editor fieldset > .btn { margin-bottom: 14px; }

/* Images */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.image-grid:empty { display: none; }
.image-item { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.image-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cover-badge { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--btn); color: #fff; font: 600 .68rem/1.5 var(--mono); }
.image-tools { display: flex; justify-content: center; gap: 6px; padding: 6px; }
.upload { cursor: pointer; margin-bottom: 8px; }
.upload-status { margin: 0 0 12px; color: var(--muted); font-size: .85rem; min-height: 1.2em; }

.danger { padding-top: 8px; }

/* Save status (saving is automatic) + toast */
.savebar {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); font-size: .85rem;
}
.savebar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); flex: none; }
.savebar[data-state="saving"]::before { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.savebar[data-state="saved"]::before { background: var(--success); }
.savebar[data-state="error"] { border-color: #e5484d; }
.savebar[data-state="error"]::before { background: #e5484d; }
@keyframes pulse { 50% { opacity: .35; } }
.savebar-text { font-weight: 600; white-space: nowrap; }
.savebar[data-state="error"] .savebar-text { white-space: normal; }
.savebar .btn { border-radius: 999px; }
.toast {
  position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 40; margin: 0;
  padding: 10px 18px; border-radius: 999px; background: var(--success); color: #0b1a14; font-weight: 600; font-size: .9rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
}
.toast.error { background: #e5484d; color: #fff; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .editor { padding: 20px 16px 120px; }
}
@media (max-width: 560px) {
  .topbar { padding: 0 12px; gap: 10px; }
  .topbar .logo span { display: none; }
  .plink { grid-template-columns: 36px minmax(0, 1fr); }
  .plink-icon { width: 36px; height: 36px; }
  .plink-icon svg { width: 18px; height: 18px; }
  .plink-fields { grid-template-columns: 1fr; }
  .plink-tools { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .topbar-actions .js-view-site { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .slug span { display: none; } /* too long for phones; the field label says what it is */
  .admin .slug input[name="id"] { padding-left: 12px; }
  .row, [data-rows="stats"] .row { grid-template-columns: 1fr auto; }
  .row input:first-child { grid-column: 1 / -1; }
  .editor fieldset { padding: 16px 14px 4px; }
  .savebar { right: 12px; bottom: 12px; max-width: calc(100% - 24px); }
}

/* ---------- Videos tab ---------- */
.videos-view { max-width: 980px; }
.videos-inner { display: grid; }
.videos-inner fieldset:disabled { opacity: .45; }
.vsetup { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); }

.dropzone {
  display: grid; gap: 6px; place-items: center; text-align: center; padding: 34px 20px; margin-bottom: 16px;
  border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--bg); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone span { color: var(--subtle); font-size: .85rem; max-width: 52ch; }
.vuploads { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.vupload {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
}
.vupload-info { display: grid; gap: 2px; min-width: 0; }
.vupload-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.vupload-status { color: var(--muted); font: .78rem/1.4 var(--mono); }
.vupload-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.vupload-bar span { display: block; height: 100%; width: 0; background: var(--btn); transition: width .2s; }
.vupload.done .vupload-bar span { background: var(--success); }
.vupload.failed .vupload-status { color: #e5484d; }
.vupload.paused .vupload-status { color: #f5a524; }
.vupload.paused .vupload-bar span { background: #f5a524; }
.vupload-buttons { display: flex; align-items: center; gap: 8px; }

.vfilter { width: 100%; margin: 0 0 12px; }
.vitem.is-uploading .vthumb { cursor: default; }
.vitem.is-uploading .vthumb:hover { opacity: 1; }
.vprog {
  position: absolute; inset: 0; display: grid; align-content: end; gap: 6px; padding: 8px; border-radius: 6px;
  background: rgba(0, 0, 0, .55); color: #fff; font: 500 .72rem var(--mono);
}
.vprog-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.vprog-bar span { display: block; height: 100%; background: var(--btn); }
.vswitch { font-size: .8rem; font-weight: 500; color: var(--muted); gap: 8px; }

.vlist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.vlist-empty { color: var(--subtle); margin: 0 0 14px; }
/* A video's listing: a one-line summary, and the editor that opens under it */
.vitem { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.vitem.open { border-color: var(--border-strong); }
.vitem.dragging { position: relative; z-index: 5; box-shadow: 0 16px 40px -12px rgba(0,0,0,.7); background: var(--surface-2); }
.vsummary { display: flex; align-items: stretch; }
.vdrag {
  flex: none; width: 34px; display: grid; place-items: center; padding: 0; border: 0; background: none;
  color: var(--subtle); font-size: 1.1rem; cursor: grab; touch-action: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.vdrag:hover:not(:disabled), .vdrag:focus-visible { color: var(--text); background: var(--surface-2); }
.vdrag:disabled { cursor: default; opacity: .3; }
.vitem.dragging .vdrag { cursor: grabbing; }
.vsum-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 4px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.vsum-thumb { flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 5px; background: var(--surface-2) center / cover no-repeat; }
.vsum-text { min-width: 0; flex: 1; display: grid; gap: 3px; }
.vsum-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.vsum-sub { color: var(--subtle); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vchev { flex: none; color: var(--subtle); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.vitem.open .vchev { transform: rotate(90deg); }
.vbadges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.vbadge { padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; border: 1px solid var(--border-strong); color: var(--muted); white-space: nowrap; }
.vbadge.ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 45%, transparent); }
.vbadge.warn { color: #f5a524; border-color: rgba(245, 165, 36, .5); }
.vbadge.busy { color: var(--accent); border-color: var(--accent-line); font-family: var(--mono); font-weight: 500; }
.vbadge.info { color: var(--text); }
.vbadge.muted { color: var(--subtle); }
.vdetail {
  display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 14px 12px 12px; border-top: 1px solid var(--border);
}
.vdetail[hidden] { display: none; }
.vdelete { color: var(--subtle); }
.vdelete:hover { color: #e5484d; border-color: #e5484d; }
/* Undo for deletes, bottom left */
.vundo {
  position: fixed; left: 20px; bottom: 20px; z-index: 35; display: flex; align-items: center; gap: 12px; overflow: hidden;
  padding: 10px 10px 10px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); font-size: .9rem; max-width: calc(100% - 40px);
}
.vundo[hidden] { display: none; }
.vundo-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; animation: undo-time linear forwards; }
@keyframes undo-time { to { transform: scaleX(0); } }
/* How file names work */
.vhelp { margin: -4px 0 14px; font-size: .85rem; color: var(--muted); }
.vhelp summary { cursor: pointer; color: var(--accent); width: max-content; }
.vhelp ul { margin: 8px 0 6px; padding-left: 20px; display: grid; gap: 4px; }
.vhelp b { color: var(--text); font-family: var(--mono); font-weight: 500; font-size: .8rem; }
.vhelp p { margin: 0; }
.vthumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px;
  background: var(--surface-2) center / cover no-repeat; transition: opacity .2s;
}
.vthumb:hover { opacity: .85; }
.vdur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.75); color: #fff; font: 500 .72rem var(--mono); }
.vfields { display: grid; gap: 8px; min-width: 0; }
.vrow { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.vmeta { min-width: 150px; display: grid; gap: 6px; justify-items: start; font-size: .8rem; color: var(--subtle); white-space: nowrap; }
.vthumb-btn { cursor: pointer; white-space: nowrap; }
.vlow { display: flex; align-items: center; gap: 8px; }
.vlow-ok { color: var(--success); font-size: .8rem; }
.vlow-remove { padding: 0; border: 0; background: none; color: var(--subtle); font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.vlow-remove:hover { color: #e5484d; }

/* Parts: rows inside the show's listing (laid out like the angle rows, plus order and Remove) */
.vparts { display: grid; gap: 6px; }
.vangle.vpart { grid-template-columns: minmax(0, 170px) minmax(0, 1fr) auto; }
.vpart .vangle-info { white-space: normal; overflow: visible; line-height: 1.6; } /* wraps instead of hiding its links */
.vpart-tools { display: flex; align-items: center; gap: 6px; }
.vpart-tools .icon-btn { width: 24px; height: 22px; font-size: .75rem; }

/* Angles */
.vangles { display: grid; gap: 6px; }
.vangles-title { margin: 2px 0 0; font-size: .78rem; color: var(--subtle); }
.vangle { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .8rem; color: var(--subtle); }
.admin .vangle input:not([type="file"]) { padding: 6px 10px; font-size: .85rem; }
.vangle-info { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vangle-status { color: var(--muted); font-family: var(--mono); }
.vangle-add { justify-self: start; font-size: .8rem; color: var(--muted); cursor: pointer; }
.vangle-add:hover { color: var(--accent); }
.vusage { margin-bottom: 14px; }
.vusage-text { margin: 0 0 6px; font-size: .85rem; color: var(--muted); }
.vusage-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.vusage-bar span { display: block; height: 100%; width: 0; background: var(--success); transition: width .3s; }
.vusage-bar span.warn { background: #e5a84d; }
.vusage-pending { margin: 6px 0 0; font-size: .8rem; color: var(--subtle); }
.vtools { display: flex; flex-direction: column; gap: 4px; }

.codes { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.code-empty { color: var(--subtle); }
.code {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
}
.code-text { display: grid; gap: 2px; min-width: 0; }
.code-text span { color: var(--subtle); font-size: .8rem; }
/* The code's name: looks like text until you click it */
.admin .code-name {
  width: 100%; max-width: 320px; padding: 4px 8px; margin-left: -8px; border-color: transparent; background: transparent;
  font-weight: 700; font-size: 1rem; color: var(--text);
}
.admin .code-name:hover { border-color: var(--border); }
.admin .code-name:focus { border-color: var(--accent-line); background: var(--bg); }
.code-facts { line-height: 1.5; }
.code-history-btn { justify-self: start; }
.code-history { grid-column: 1 / -1; display: grid; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.code-history-day strong { color: var(--text); font-size: .85rem; }
.code-history-day ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.code-value { font: 600 .9rem var(--mono); letter-spacing: .06em; color: var(--accent); }
.code-devices { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 8px; }
.code-devices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.code-devices-empty { margin: 0; color: var(--subtle); font-size: .8rem; }
.cdev { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cdev-info { display: grid; gap: 1px; min-width: 0; }
.cdev-info strong { font-size: .85rem; font-weight: 600; }
.cdev-info span { color: var(--subtle); font: .75rem/1.4 var(--mono); overflow-wrap: anywhere; }
.code-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 14px; }

@media (max-width: 760px) {
  /* The editor stacks: picture, fields, the settings, then Delete */
  .vdetail { grid-template-columns: minmax(0, 1fr); }
  .vdetail .vthumb { max-width: 260px; }
  .vmeta { min-width: 0; grid-auto-flow: row; white-space: normal; }
  .vtools { flex-direction: row; justify-content: flex-end; }
  .vsum-thumb { width: 72px; }
  .vangle, .vangle.vpart { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .vangle-info { white-space: normal; }
  .vpart-tools { justify-content: flex-start; }
  .vundo { left: 12px; bottom: 62px; max-width: calc(100% - 24px); } /* above the save status */
  .vupload { grid-template-columns: minmax(0, 1fr); }
  .vupload-buttons { justify-content: flex-end; }
  .vrow { grid-template-columns: 1fr; }
  .code { grid-template-columns: minmax(0, 1fr) auto; }
  .code .btn { grid-column: 1; justify-self: start; }
  .code-form { grid-template-columns: 1fr; }
}
