:root {
  color-scheme: light;
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #eeece7;
  --surface-3: #e7eaf2;
  --text: #181b22;
  --muted: #687080;
  --line: #d9dde5;
  --line-strong: #c4cad6;
  --accent: #3157c8;
  --accent-strong: #2446a9;
  --accent-soft: #edf2ff;
  --danger: #b54747;
  --danger-soft: #fff0f0;
  --success: #247158;
  --success-soft: #eaf7f2;
  --warning: #8a5b18;
  --warning-soft: #fff5df;
  --shadow-sm: 0 1px 2px rgba(24,27,34,.05);
  --shadow-md: 0 14px 36px rgba(24,27,34,.07);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --content: 1040px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11151d;
  --surface: #191e28;
  --surface-2: #222834;
  --surface-3: #293143;
  --text: #f3f5f8;
  --muted: #a8b0bd;
  --line: #303846;
  --line-strong: #414b5b;
  --accent: #88a6ff;
  --accent-strong: #b4c6ff;
  --accent-soft: #202d50;
  --danger: #ff9d9d;
  --danger-soft: #3d2427;
  --success: #82d7b6;
  --success-soft: #1e382f;
  --warning: #e6bd73;
  --warning-soft: #3a3020;
  --shadow-sm: none;
  --shadow-md: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: var(--accent); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent);
  outline-offset: 2px;
}
button:disabled { cursor: not-allowed; opacity: .5; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--surface); color:var(--text); padding: 10px 14px; border:1px solid var(--line); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.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; }
.app-shell { min-height: 100dvh; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:64px; padding:10px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}
.brand { border:0; background:transparent; display:flex; align-items:center; gap:10px; padding:0; text-align:left; min-width:0; }
.brand-mark {
  display:grid; place-items:center; width:36px; height:36px; flex:0 0 auto;
  border-radius:9px; background:var(--text); color:var(--bg); font-family:Georgia,"Times New Roman",serif; font-weight:700; font-size:20px;
}
.brand strong { display:block; letter-spacing:-.025em; font-size:16px; }
.brand small { color:var(--muted); display:block; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:170px; }
.top-actions { display:flex; gap:7px; align-items:center; }
.language-switch select, .icon-button {
  min-height:40px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--text); box-shadow:var(--shadow-sm);
}
.language-switch select { padding:0 28px 0 10px; }
.icon-button { width:40px; padding:0; }
.main-content { width:min(100%, var(--content)); margin:0 auto; padding:20px 16px 48px; }
.lesson-shell { max-width:760px; margin:0 auto; }
.reading-column { max-width:760px; margin:0 auto; }

/* Editorial hierarchy */
h1, h2, h3, p { overflow-wrap:anywhere; }
.page-title h1, .editorial-hero h1, .section h2, .article-body h1, .article-body h2 {
  font-family: Georgia, "Noto Serif TC", "Noto Serif JP", "Times New Roman", serif;
  letter-spacing:-.035em;
}
.editorial-hero {
  display:grid; gap:22px; padding:30px 0 24px; border-bottom:1px solid var(--line);
}
.hero-copy { max-width:760px; }
.editorial-hero h1 { margin:10px 0 14px; max-width:850px; font-size:clamp(34px, 9vw, 66px); line-height:1.02; font-weight:650; }
.editorial-hero p { margin:0; max-width:720px; color:var(--muted); font-size:clamp(16px,2.3vw,19px); line-height:1.75; }
.eyebrow, .section-kicker { color:var(--accent); font-size:12px; font-weight:750; letter-spacing:.11em; text-transform:uppercase; }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:24px; }
.hero-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.hero-summary > div { padding:14px 10px; border-right:1px solid var(--line); }
.hero-summary > div:last-child { border-right:0; }
.hero-summary span { display:block; color:var(--muted); font-size:12px; }
.hero-summary strong { display:block; margin-top:4px; font-size:20px; letter-spacing:-.025em; }
.page-title { margin:12px 0 24px; max-width:760px; }
.page-title h1 { margin:0; font-size:clamp(32px,7vw,50px); line-height:1.08; font-weight:650; }
.page-title p { margin:10px 0 0; color:var(--muted); line-height:1.7; }
.section { margin-top:30px; }
.section-header { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:14px; }
.section-header h2, .section h2 { margin:3px 0 0; font-size:clamp(23px,4vw,30px); font-weight:650; }
.section-header p { margin:4px 0 0; color:var(--muted); }
.muted { color:var(--muted); }
.center { text-align:center; }
.top-gap { margin-top:16px; }
.spaced { margin-top:24px; }
.full { width:100%; }
.compact { min-height:40px !important; padding:8px 12px !important; }
.small { font-size:13px; }

/* Buttons */
.primary-button, .secondary-button, .ghost-button, .danger-button, .text-button, .answer-button {
  min-height:46px; border-radius:10px; padding:11px 16px; border:1px solid transparent; font-weight:700; transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.primary-button { background:var(--accent); color:#fff; }
.primary-button:hover { background:var(--accent-strong); }
.secondary-button { background:var(--surface); border-color:var(--line); box-shadow:var(--shadow-sm); }
.secondary-button:hover, .ghost-button:hover { border-color:var(--line-strong); background:var(--surface-2); }
.ghost-button { background:transparent; border-color:var(--line); }
.danger-button { background:var(--danger-soft); color:var(--danger); border-color:color-mix(in srgb,var(--danger) 25%,var(--line)); }
.text-button { border:0; background:transparent; color:var(--accent); padding-left:4px; padding-right:4px; }
.text-button:hover { color:var(--accent-strong); }
.button-row, .review-actions { display:flex; flex-wrap:wrap; gap:10px; }
.back-button { border:0; background:transparent; padding:8px 0; color:var(--muted); }
.back-button:hover { color:var(--text); }

/* Dashboard / modules */
.daily-strip { display:grid; gap:18px; align-items:end; padding:20px 0; border-bottom:1px solid var(--line); }
.daily-strip h2 { font-size:clamp(21px,4vw,28px); }
.goal-block { min-width:210px; }
.goal-block > div:first-child { display:flex; align-items:baseline; gap:4px; margin-bottom:8px; }
.goal-block strong { font-size:25px; }
.goal-block span { color:var(--muted); }
.progress-track { height:8px; background:var(--surface-2); border-radius:999px; overflow:hidden; }
.progress-fill { height:100%; background:var(--accent); border-radius:inherit; transition:width .25s ease; }
.module-list { border-top:1px solid var(--line); }
.module-card {
  width:100%; display:grid; grid-template-columns:48px minmax(0,1fr) auto; gap:14px; align-items:center;
  min-height:84px; padding:16px 2px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; text-align:left;
}
.module-card:hover { background:color-mix(in srgb,var(--surface) 55%,transparent); }
.module-mark { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--accent); font-family:Georgia,"Noto Serif TC","Noto Serif JP",serif; font-weight:700; }
.module-copy strong { display:block; font-size:17px; }
.module-copy small { display:block; margin-top:3px; color:var(--muted); line-height:1.45; }
.module-arrow { color:var(--muted); font-size:20px; }
.badge, .language-pill { display:inline-flex; align-items:center; width:max-content; border-radius:999px; padding:5px 9px; background:var(--accent-soft); color:var(--accent-strong); font-size:11px; font-weight:750; }
.lesson-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.stat-line { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stat-line span { color:var(--muted); }
.stat-line strong { font-size:23px; }
.summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:16px 0; }
.summary-grid > div { padding:14px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }
.summary-grid span { display:block; color:var(--muted); font-size:12px; }
.summary-grid strong { display:block; margin-top:3px; font-size:20px; }

/* Panels and vocabulary */
.content-panel, .question-panel, .commerce-panel, .record-panel, .result-panel {
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:20px; box-shadow:var(--shadow-sm);
}
.vocab-proof { display:grid; gap:12px; margin:18px 0; padding:16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.vocab-proof strong { font-size:25px; }
.source-note, .curation-note, .notice { color:var(--muted); font-size:14px; line-height:1.65; }
.source-note { margin:8px 0 0; }
.notice { padding:14px 16px; border-left:3px solid var(--accent); background:var(--accent-soft); border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
.path-list { display:grid; gap:8px; }
.path-item {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; width:100%;
  padding:15px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); text-align:left;
}
.path-item:hover, .path-item.selected { border-color:var(--accent); background:var(--accent-soft); }
.path-item strong { display:block; }
.path-item small { display:block; color:var(--muted); margin-top:3px; }
.search-box { display:grid; gap:8px; margin-top:20px; }
.search-box label { font-weight:700; }
.search-box input, .form-group input, .form-group textarea, .form-group select {
  width:100%; min-height:48px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--text); padding:11px 13px;
}
.search-box input:focus, .form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color:var(--accent); }
.search-results { display:grid; margin-top:8px; border-top:1px solid var(--line); }
.search-results button { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; padding:13px 2px; border:0; border-bottom:1px solid var(--line); background:transparent; text-align:left; }
.search-results button:hover { color:var(--accent); }
.search-results span strong, .search-results span small { display:block; }
.search-results span small { color:var(--muted); margin-top:2px; }
.search-results em { color:var(--muted); font-style:normal; text-align:right; }
.empty-inline { padding:18px 2px; color:var(--muted); }
.study-card {
  min-height:430px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:28px 20px; box-shadow:var(--shadow-md);
}
.card-meta { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-bottom:12px; color:var(--muted); font-size:12px; }
.study-word { font-family:Georgia,"Noto Serif JP","Noto Serif TC",serif; font-size:clamp(44px,14vw,78px); line-height:1; margin:8px 0 12px; letter-spacing:-.045em; font-weight:650; }
.kana-word { font-size:clamp(64px,18vw,104px); }
.phonetic { color:var(--muted); margin-bottom:16px; }
.audio-button { min-width:48px; min-height:48px; border:1px solid var(--line); border-radius:50%; background:var(--surface-2); }
.audio-button:hover { border-color:var(--accent); color:var(--accent); }
.answer-reveal { width:min(100%,620px); margin-top:20px; padding-top:20px; border-top:1px solid var(--line); }
.meaning { font-size:clamp(22px,5vw,30px); font-weight:750; margin:0 0 8px; }
.definition { color:var(--muted); line-height:1.7; }
blockquote { margin:18px 0 6px; padding:0 0 0 14px; border-left:2px solid var(--accent); text-align:left; line-height:1.7; }
.translation { color:var(--muted); }
.rating-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:100%; margin-top:16px; }
.rating-row button { min-height:54px; border:1px solid var(--line); border-radius:10px; background:var(--surface); font-size:13px; font-weight:700; }
.rating-row button:hover { border-color:var(--accent); background:var(--accent-soft); }

/* Quizzes */
.answer-grid { display:grid; grid-template-columns:1fr; gap:9px; margin-top:14px; }
.answer-button { width:100%; text-align:left; background:var(--surface); border-color:var(--line); font-weight:650; }
.answer-button:hover { border-color:var(--accent); }
.answer-button.correct { border-color:var(--success); background:var(--success-soft); color:var(--success); }
.answer-button.wrong { border-color:var(--danger); background:var(--danger-soft); color:var(--danger); }
.feedback { margin-top:14px; padding:14px 15px; border-left:3px solid var(--accent); background:var(--accent-soft); border-radius:0 var(--radius-sm) var(--radius-sm) 0; line-height:1.65; }
.result-panel { text-align:center; }
.result-level { font-family:Georgia,"Times New Roman",serif; font-size:clamp(48px,15vw,76px); font-weight:700; letter-spacing:-.06em; margin:8px 0; }

/* Reading / listening */
.reader, .article-body {
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:22px; line-height:1.9;
}
.reader { font-size:18px; }
.reader-tools, .audio-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:14px; }
.reader details { margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.article-body h1 { font-size:38px; }
.article-body h2 { margin:30px 0 10px; font-size:27px; }
.article-body h3 { margin:24px 0 8px; }
.article-body p, .article-body li { color:color-mix(in srgb,var(--text) 88%,var(--muted)); }
.article-list { display:grid; gap:0; border-top:1px solid var(--line); }
.article-list button { padding:16px 2px; border:0; border-bottom:1px solid var(--line); background:transparent; text-align:left; }
.listening-stage { text-align:center; padding:32px 18px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); }
.audio-main { min-width:64px; min-height:64px; border:0; border-radius:50%; background:var(--accent); color:#fff; font-size:22px; }

/* Shadowing */
.method-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; margin:18px 0; background:var(--line); border:1px solid var(--line); }
.method-strip > div { background:var(--surface); padding:12px 8px; text-align:center; }
.method-strip strong { display:block; font-size:18px; color:var(--accent); }
.method-strip span { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.lesson-list { border-top:1px solid var(--line); }
.lesson-row { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:12px; align-items:center; width:100%; padding:16px 2px; border:0; border-bottom:1px solid var(--line); background:transparent; text-align:left; }
.lesson-row:hover { background:color-mix(in srgb,var(--surface) 55%,transparent); }
.lesson-number { color:var(--accent); font-family:Georgia,serif; font-size:20px; }
.lesson-row strong, .lesson-row small { display:block; }
.lesson-row small { color:var(--muted); margin-top:3px; }
.shadow-progress { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; color:var(--muted); font-size:13px; }
.shadow-stage { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:22px; }
.shadow-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.segmented { display:flex; flex-wrap:wrap; gap:5px; }
.segmented button { min-height:38px; padding:7px 10px; border:1px solid var(--line); border-radius:8px; background:transparent; }
.segmented button.active { background:var(--accent); border-color:var(--accent); color:#fff; }
.shadow-text { margin:30px 0 14px; font-family:Georgia,"Noto Serif JP",serif; font-size:clamp(27px,7vw,44px); line-height:1.35; letter-spacing:-.02em; }
.shadow-text.is-hidden { filter:blur(7px); user-select:none; }
.focus-line { margin:16px 0; padding:12px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--muted); }
.shadow-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:18px; }
.record-panel { margin-top:14px; background:var(--surface-2); box-shadow:none; }
.record-actions { display:flex; flex-wrap:wrap; gap:8px; }
.record-panel audio { width:100%; margin-top:12px; }
.sentence-nav { display:flex; justify-content:space-between; gap:10px; margin-top:14px; }
.self-rating { margin-top:20px; padding-top:18px; border-top:1px solid var(--line); }
.self-rating .button-row { margin-top:10px; }

/* Forms, settings and commerce */
.form-group { margin-bottom:15px; }
.form-group label { display:block; margin-bottom:6px; font-weight:700; }
.form-group textarea { min-height:120px; resize:vertical; }
.settings-list { display:grid; gap:12px; }
.commerce-panel { text-align:left; }
.divider { height:1px; background:var(--line); margin:20px 0; }

/* States */
.empty-state { text-align:center; padding:44px 20px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); }
.empty-mark { display:grid; place-items:center; width:46px; height:46px; margin:0 auto 12px; border:1px solid var(--line); border-radius:50%; color:var(--accent); font-weight:800; }
.empty-state p { color:var(--muted); max-width:520px; margin:8px auto 18px; }
.skeleton-card { margin-top:20px; padding:24px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); }
.skeleton-line { height:13px; width:68%; border-radius:999px; background:var(--surface-2); animation:pulse 1.2s ease-in-out infinite; }
.skeleton-line.wide { width:90%; height:28px; }
.skeleton-line.short { width:38%; margin-top:12px; }
@keyframes pulse { 50% { opacity:.48; } }
.toast { position:fixed; z-index:80; left:50%; bottom:94px; transform:translate(-50%,16px); background:var(--text); color:var(--bg); padding:11px 15px; border-radius:10px; opacity:0; pointer-events:none; transition:.2s; max-width:calc(100% - 32px); text-align:center; box-shadow:var(--shadow-md); }
.toast.show { opacity:1; transform:translate(-50%,0); }
.cookie-banner { position:fixed; z-index:70; left:12px; right:12px; bottom:86px; max-width:720px; margin:auto; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:15px; box-shadow:var(--shadow-md); }
.cookie-banner p { margin:0 0 12px; color:var(--muted); line-height:1.5; }
.cookie-banner div { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }

/* Bottom navigation */
.bottom-nav {
  position:fixed; z-index:40; left:50%; bottom:0; transform:translateX(-50%); width:min(100%,760px);
  display:grid; grid-template-columns:repeat(5,1fr); padding:6px 8px calc(6px + env(safe-area-inset-bottom));
  background:color-mix(in srgb,var(--surface) 96%,transparent); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  border-top:1px solid var(--line);
}
.bottom-nav button { border:0; background:transparent; min-height:56px; display:grid; place-items:center; align-content:center; gap:2px; color:var(--muted); border-radius:9px; }
.bottom-nav button span { font-size:19px; line-height:1; }
.bottom-nav button small { font-size:11px; }
.bottom-nav button.active { color:var(--accent); background:var(--accent-soft); }

@media (min-width: 680px) {
  .main-content { padding:30px 24px 64px; }
  .editorial-hero { grid-template-columns:minmax(0,1fr) 250px; align-items:end; padding:54px 0 34px; }
  .hero-summary { grid-template-columns:1fr; border:1px solid var(--line); }
  .hero-summary > div { border-right:0; border-bottom:1px solid var(--line); padding:16px; }
  .hero-summary > div:last-child { border-bottom:0; }
  .daily-strip { grid-template-columns:minmax(0,1fr) minmax(220px,300px); }
  .summary-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .answer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rating-row { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .shadow-actions { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .vocab-proof { grid-template-columns:180px minmax(0,1fr); align-items:center; }
  .bottom-nav { border-left:1px solid var(--line); border-right:1px solid var(--line); border-radius:14px 14px 0 0; }
}
@media (max-width: 420px) {
  .brand small { max-width:116px; }
  .topbar { padding-left:12px; padding-right:12px; }
  .language-switch select { max-width:104px; }
  .main-content { padding-left:14px; padding-right:14px; }
  .editorial-hero h1 { font-size:38px; }
  .hero-summary strong { font-size:18px; }
  .module-card { grid-template-columns:42px minmax(0,1fr) auto; gap:10px; }
  .method-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .search-results button { grid-template-columns:1fr; }
  .search-results em { text-align:left; }
  .shadow-toolbar { display:grid; }
  .sentence-nav button { flex:1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

.loop-settings {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,160px)) minmax(180px,1fr);
  gap:10px;
  align-items:end;
  margin-top:14px;
  padding:12px 0 2px;
}
.loop-settings label span {
  display:block;
  margin-bottom:5px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
}
.loop-settings select {
  width:100%;
  min-height:42px;
  padding:8px 34px 8px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--text);
}
.loop-status {
  min-height:42px;
  display:flex;
  align-items:center;
  padding:8px 10px;
  border-left:2px solid var(--accent);
  color:var(--muted);
  font-size:13px;
}
@media (max-width:560px) {
  .loop-settings { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .loop-status { grid-column:1 / -1; }
}
