:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --panel: #121417;
  --panel-soft: #181b1f;
  --text: #f4f0e8;
  --muted: #999a9c;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #df4e32;
  --accent-bright: #ff6847;
  --cream: #e9ddc9;
  --green: #89b08b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 20px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(110px); opacity: .14; pointer-events: none; }
.ambient-one { width: 540px; height: 540px; top: -260px; right: -100px; background: var(--accent); }
.ambient-two { width: 420px; height: 420px; bottom: -240px; left: -140px; background: #3e6775; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { width: min(1320px, calc(100% - 48px)); height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: Georgia, "Songti SC", serif; font-size: 24px; letter-spacing: .14em; }
.brand-mark { width: 30px; height: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skew(-8deg); }
.brand-mark i { display: block; background: var(--accent); border-radius: 2px; }
.brand-mark i:nth-child(2) { opacity: .62; }
.brand-mark i:nth-child(3) { opacity: .28; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.button { min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: transparent; font-size: 14px; font-weight: 650; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 26px rgba(223, 78, 50, .2); }
.button-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.button-secondary { background: var(--cream); border-color: var(--cream); color: #171717; white-space: nowrap; }
.button-ghost { border-color: var(--line); color: var(--cream); }
.button-ghost:hover { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.045); }
.button-wide { width: 100%; margin-top: 4px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--cream); font-size: 13px; text-decoration: underline; text-decoration-color: rgba(233,221,201,.3); text-underline-offset: 5px; }
.text-button:hover { color: #fff; text-decoration-color: var(--accent); }

.hero { padding: 94px 0 86px; }
.eyebrow, .section-kicker { margin: 0 0 20px; color: #aaa6a0; font-size: 11px; font-weight: 750; letter-spacing: .23em; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 32px; height: 1px; background: var(--accent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr); align-items: end; gap: 80px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-family: Georgia, "Songti SC", "STSong", serif; font-size: clamp(54px, 7.4vw, 100px); font-weight: 500; line-height: .96; letter-spacing: -.06em; }
h1 em { color: var(--accent); font-weight: 500; }
.hero-copy { max-width: 590px; margin: 30px 0 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 0 18px; border-left: 1px solid var(--line); }
.stats div:first-child { padding-left: 0; border-left: 0; }
.stats strong { display: block; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }

.library { padding: 0 0 60px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-heading .section-kicker { margin-bottom: 9px; }
.section-heading h2, .dialog-heading h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 36px; font-weight: 500; letter-spacing: -.03em; }
.result-summary { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.toolbar { display: grid; grid-template-columns: minmax(250px, 1fr) auto; gap: 18px; align-items: center; padding: 22px 0 30px; }
.search-field { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.search-field:focus-within { border-color: rgba(223, 78, 50, .65); box-shadow: 0 0 0 3px rgba(223,78,50,.08); }
.search-icon { width: 15px; height: 15px; border: 1.7px solid #9b9b9b; border-radius: 50%; position: relative; flex: 0 0 auto; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.7px; right: -5px; bottom: -2px; background: #9b9b9b; transform: rotate(46deg); border-radius: 2px; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-field input::placeholder { color: #737578; }
kbd { padding: 3px 7px; color: #777; background: #0d0e10; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 10px; }
.filters { display: flex; gap: 9px; flex-wrap: wrap; }
select { min-height: 48px; padding: 0 38px 0 14px; color: #c7c4bd; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23999' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--line); border-radius: 12px; appearance: none; outline: none; }
select:focus { border-color: rgba(223, 78, 50, .65); }
.notice { margin-bottom: 24px; padding: 13px 16px; border: 1px solid rgba(223,78,50,.3); border-radius: 12px; color: #efb5a9; background: rgba(223,78,50,.08); font-size: 13px; }

.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; }
.media-card { min-width: 0; position: relative; }
.poster-button { width: 100%; padding: 0; border: 0; border-radius: var(--radius); background: var(--panel); overflow: hidden; display: block; position: relative; aspect-ratio: 2 / 3; text-align: left; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.poster-button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 54%, rgba(0,0,0,.76)); opacity: .58; transition: opacity .25s ease; }
.media-card:hover .poster-button::after { opacity: .84; }
.poster-button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .42s cubic-bezier(.2,.7,.2,1); }
.media-card:hover .poster-button img { transform: scale(1.035); }
.poster-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; isolation: isolate; background: linear-gradient(145deg, var(--fallback-a), var(--fallback-b)); }
.poster-fallback::before { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; z-index: -1; }
.poster-fallback::after { content: ""; width: 150px; height: 150px; position: absolute; top: 15%; right: -42%; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.025), 0 0 0 55px rgba(255,255,255,.018); z-index: -1; }
.poster-fallback span { max-width: 75%; font-family: Georgia, "Songti SC", serif; font-size: clamp(24px, 3vw, 38px); line-height: 1.25; text-align: center; text-shadow: 0 3px 18px rgba(0,0,0,.2); }
.rating { position: absolute; z-index: 2; top: 13px; right: 13px; min-width: 46px; height: 29px; padding: 0 9px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: #fff2d2; background: rgba(7,8,9,.72); backdrop-filter: blur(9px); font-size: 12px; font-weight: 700; }
.rating::before { content: "★"; color: #efb955; font-size: 10px; }
.resource-indicator { position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 6px 9px; border-radius: 999px; color: #dcebdd; background: rgba(24,52,33,.78); backdrop-filter: blur(8px); font-size: 10px; font-weight: 650; }
.card-admin { position: absolute; z-index: 4; left: 12px; top: 12px; display: flex; gap: 7px; }
.icon-button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #fff; background: rgba(8,9,10,.76); backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 13px; }
.icon-button:hover { background: var(--accent); }
.card-info { padding: 15px 3px 0; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #898b8e; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.card-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.card-info h3 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 20px; font-weight: 500; line-height: 1.3; }
.card-info p { margin: 6px 0 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skeleton { animation: pulse 1.5s ease-in-out infinite; }
.skeleton .poster-button { background: linear-gradient(100deg, #15171a 30%, #202328 50%, #15171a 70%); background-size: 300% 100%; animation: shimmer 1.5s infinite; }
.skeleton .card-info::before, .skeleton .card-info::after { content: ""; display: block; height: 14px; margin-top: 7px; border-radius: 5px; background: #1b1e22; }
.skeleton .card-info::after { width: 62%; height: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 50% { opacity: .7; } }
.empty-state { padding: 80px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state h3 { margin: 22px 0 8px; font-family: Georgia, "Songti SC", serif; font-size: 24px; font-weight: 500; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.empty-reel { width: 58px; height: 58px; margin: auto; border: 2px solid #777; border-radius: 50%; position: relative; }
.empty-reel i { width: 11px; height: 11px; position: absolute; border: 1px solid #777; border-radius: 50%; }
.empty-reel i:nth-child(1) { top: 9px; left: 22px; }.empty-reel i:nth-child(2) { top: 22px; right: 9px; }.empty-reel i:nth-child(3) { bottom: 9px; left: 22px; }.empty-reel i:nth-child(4) { top: 22px; left: 9px; }

.site-footer { min-height: 100px; padding: 30px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #6f7174; font-size: 11px; }
.tmdb-credit { text-align: right; }
.tmdb-credit a { color: #55b7d9; font-weight: 750; text-decoration: none; }
.tmdb-credit small { display: block; margin-top: 5px; color: #55585c; font-size: 9px; }

.dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; color: var(--text); background: #111316; border: 1px solid rgba(255,255,255,.13); border-radius: 24px; box-shadow: var(--shadow); overflow: auto; }
.dialog::backdrop { background: rgba(3,4,5,.78); backdrop-filter: blur(10px); }
.dialog-close { width: 37px; height: 37px; position: sticky; z-index: 12; top: 18px; float: right; margin: 18px 18px -56px 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(15,16,18,.8); color: #b9b8b5; font-size: 22px; line-height: 1; }
.dialog-close:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.dialog-heading { padding: 42px 48px 22px; }
.dialog-heading .section-kicker { margin-bottom: 10px; }
.dialog-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.stack-form { display: grid; gap: 17px; padding: 10px 48px 48px; }
label > span { display: block; margin: 0 0 8px; color: #aaa9a5; font-size: 12px; font-weight: 600; }
label > span b { color: var(--accent); }
input, textarea { width: 100%; color: var(--text); background: #0c0e10; border: 1px solid var(--line); border-radius: 11px; outline: none; }
input { height: 46px; padding: 0 13px; }
textarea { padding: 12px 13px; resize: vertical; line-height: 1.65; }
input:focus, textarea:focus { border-color: rgba(223,78,50,.68); box-shadow: 0 0 0 3px rgba(223,78,50,.07); }
input::placeholder, textarea::placeholder { color: #595c60; }
.form-error { margin: 0; padding: 10px 12px; color: #ffb9ad; background: rgba(223,78,50,.09); border-radius: 9px; font-size: 12px; }
.source-status { margin: 0; padding: 12px 14px; color: #bcb9b2; background: #0c0e10; border: 1px solid var(--line); border-radius: 11px; font-size: 12px; }
.source-status::before { content: ""; width: 7px; height: 7px; margin-right: 8px; display: inline-block; border-radius: 50%; background: #777; }
.source-status.configured { color: #b9d5bb; border-color: rgba(137,176,139,.3); }
.source-status.configured::before { background: var(--green); box-shadow: 0 0 0 4px rgba(137,176,139,.1); }
.source-help { padding: 15px 17px; color: var(--muted); background: #0c0e10; border-radius: 12px; font-size: 12px; line-height: 1.7; }
.source-help strong { color: #d9d3c9; }
.source-help ol { margin: 8px 0; padding-left: 19px; }
.source-help a { color: #7fc7df; text-underline-offset: 4px; }
.source-help p { margin: 9px 0 0; color: #73767a; }
.settings-actions { display: flex; justify-content: flex-end; gap: 10px; }

.editor-dialog { width: min(900px, calc(100% - 32px)); }
.editor-heading { display: flex; justify-content: space-between; align-items: end; padding-right: 70px; border-bottom: 1px solid var(--line); }
.secure-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(137,176,139,.25); border-radius: 999px; color: #a8c5aa; font-size: 10px; }
.secure-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(137,176,139,.1); }
.editor-form { padding: 0 48px 48px; }
.form-section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.form-section-title { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.form-section-title > div { display: flex; align-items: center; gap: 12px; }
.form-section-title > div > span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-family: Georgia, serif; font-size: 10px; }
.form-section-title h3 { margin: 0; font-size: 14px; letter-spacing: .04em; }
.form-section-title p { margin: 0; color: var(--muted); font-size: 11px; }
.lookup-row { display: flex; align-items: end; gap: 12px; }
.grow-field { flex: 1; }
.lookup-row .button { min-height: 46px; border-radius: 11px; }
.lookup-results { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lookup-option { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: #0d0f11; text-align: left; display: grid; grid-template-columns: 46px 1fr; gap: 10px; transition: .2s ease; }
.lookup-option:hover { border-color: var(--accent); transform: translateY(-1px); }
.lookup-option img, .lookup-placeholder { width: 46px; height: 64px; object-fit: cover; border-radius: 6px; background: #24272b; }
.lookup-option strong { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; }
.lookup-option small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.lookup-message { grid-column: 1 / -1; margin: 0; padding: 12px; color: var(--muted); background: #0d0f11; border-radius: 10px; font-size: 12px; }
.lookup-settings-prompt { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lookup-settings-prompt .text-button { flex: 0 0 auto; color: var(--cream); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form-grid .span-two { grid-column: span 2; }
.form-grid select { width: 100%; min-height: 46px; background-color: #0c0e10; border-radius: 11px; }
.links-editor { display: grid; gap: 11px; }
.link-editor-row { display: grid; grid-template-columns: 150px 1fr 130px 38px; gap: 9px; align-items: end; }
.link-editor-row .remove-link { width: 38px; height: 46px; border: 1px solid var(--line); border-radius: 10px; color: #a9a9a9; background: #0c0e10; font-size: 19px; }
.link-editor-row .remove-link:hover { color: #fff; border-color: var(--accent); }
.form-actions { padding-top: 25px; display: flex; justify-content: flex-end; gap: 10px; }

.detail-dialog { width: min(860px, calc(100% - 32px)); overflow: hidden auto; }
.detail-layout { min-height: 540px; display: grid; grid-template-columns: minmax(270px, .78fr) minmax(0, 1.22fr); }
.detail-poster { min-height: 540px; position: relative; background: #202327; overflow: hidden; }
.detail-poster img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.detail-poster .poster-fallback { position: absolute; inset: 0; }
.detail-body { padding: 54px 52px 45px; }
.detail-meta { margin: 0 0 13px; color: var(--accent-bright); font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.detail-body h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(34px, 4vw, 48px); font-weight: 500; line-height: 1.1; }
.detail-original { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0; }
.chip { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #b5b3ae; font-size: 10px; }
.detail-overview { margin: 0; color: #b4b3b0; font-size: 14px; line-height: 1.85; }
.detail-facts { margin: 0 0 21px; display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 8px 12px; font-size: 12px; line-height: 1.65; }
.detail-facts dt { color: #777b80; }
.detail-facts dd { min-width: 0; margin: 0; color: #b9b7b2; }
.resource-links { margin-top: 29px; padding-top: 24px; border-top: 1px solid var(--line); }
.resource-links h3 { margin: 0 0 12px; color: #8f9194; font-size: 10px; letter-spacing: .16em; }
.resource-link { min-height: 48px; margin-top: 9px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; background: #181b1f; border: 1px solid var(--line); border-radius: 12px; transition: .2s ease; }
.resource-link:hover { border-color: var(--accent); transform: translateX(2px); }
.resource-link strong { font-size: 12px; }
.resource-link span { color: var(--muted); font-size: 10px; }
.no-resource { color: var(--muted); font-size: 12px; }
.source-link { display: inline-block; margin-top: 18px; color: #777b80; font-size: 10px; text-underline-offset: 4px; }

.toast { min-width: 220px; max-width: calc(100% - 32px); position: fixed; z-index: 100; left: 50%; bottom: 30px; padding: 12px 17px; border: 1px solid var(--line); border-radius: 999px; color: #f3eee5; background: rgba(24,26,29,.95); box-shadow: var(--shadow); text-align: center; font-size: 12px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { border-color: rgba(223,78,50,.45); color: #ffc1b6; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .stats { max-width: 520px; }
  .toolbar { grid-template-columns: 1fr; }
  .filters select { flex: 1; min-width: 140px; }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container, .site-header { width: min(100% - 28px, 1180px); }
  .site-header { height: 72px; }
  .brand { font-size: 20px; }
  .header-actions { gap: 6px; }
  .header-actions .button { min-height: 38px; padding: 0 13px; font-size: 12px; }
  .header-actions #exportButton { display: none !important; }
  .hero { padding: 70px 0 65px; }
  h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-copy { font-size: 14px; }
  .stats strong { font-size: 27px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 30px; }
  .result-summary { margin-top: 8px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filters select { width: 100%; min-width: 0; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 13px; }
  .card-info h3 { font-size: 17px; }
  .dialog-heading, .stack-form { padding-left: 25px; padding-right: 25px; }
  .editor-form { padding: 0 25px 35px; }
  .editor-heading { padding-right: 60px; }
  .editor-heading .secure-badge { display: none; }
  .form-section-title p { display: none; }
  .lookup-results { grid-template-columns: 1fr 1fr; }
  .link-editor-row { grid-template-columns: 1fr 1fr 38px; }
  .link-editor-row label:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .link-editor-row .remove-link { grid-column: 3; grid-row: 2; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-poster { min-height: 0; aspect-ratio: 16 / 10; }
  .detail-poster img { object-position: center 22%; }
  .detail-body { padding: 34px 27px; }
  .site-footer { align-items: start; flex-direction: column; justify-content: center; }
  .tmdb-credit { text-align: left; }
}

@media (max-width: 430px) {
  .brand-mark { width: 25px; height: 25px; }
  .button-ghost { padding-inline: 12px; }
  .hero { padding-top: 58px; }
  .stats div { padding: 0 10px; }
  .stats span { font-size: 9px; }
  .toolbar { padding-top: 17px; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .lookup-row { align-items: stretch; flex-direction: column; }
  .lookup-results { grid-template-columns: 1fr; }
  .lookup-settings-prompt { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-two { grid-column: span 1; }
  .link-editor-row { grid-template-columns: 1fr 38px; }
  .link-editor-row label:nth-child(3) { grid-column: 1; }
  .link-editor-row .remove-link { grid-column: 2; grid-row: 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
