/* 教师端与登录页样式。管理后台使用 admin.css，互不影响。 */

:root {
  --bg: #f4f5fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --text: #1c1f2e;
  --text-2: #4b5168;
  --muted: #8a90a6;
  --line: #e7e9f1;
  --primary: #5b5bd6;
  --primary-2: #4747c2;
  --primary-soft: #eeeefd;
  --green: #12a150;
  --green-soft: #e5f6ec;
  --red: #e5484d;
  --red-soft: #fdecec;
  --amber: #c27a0e;
  --amber-soft: #fdf3e1;
  --blue-soft: #e8f1fd;
  --blue: #2f6fd6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 54, .04), 0 4px 16px rgba(20, 24, 54, .05);
  --shadow-lg: 0 10px 40px rgba(20, 24, 54, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 650; }
p { margin: 0; }
a { color: var(--primary); }
[hidden] { display: none !important; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ok { color: var(--green); }
.bad { color: var(--red); }

/* ---------- 表单控件 ---------- */

input, select, button, .btn { font: inherit; color: inherit; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=search], input:not([type]), select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a90a6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .85rem; color: var(--text-2); font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; text-decoration: none; white-space: nowrap;
  font-weight: 550; transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(91, 91, 214, .3); }
.btn-primary:hover { background: var(--primary-2); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1.02rem; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: .88rem; border-radius: 8px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(20, 24, 54, .05); }
.btn-soft { background: var(--primary-soft); border-color: transparent; color: var(--primary-2); }
.btn-soft:hover { background: #e3e3fb; }
.btn-danger-text { border-color: transparent; background: transparent; color: var(--red); }
.btn-danger-text:hover { background: var(--red-soft); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- 顶栏与标签页 ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1040px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #7c6cf2, #4f8df5); color: #fff; font-size: .95rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(91, 91, 214, .35);
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.me { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--text-2); }
.topbar-right .link-a { font-size: .88rem; color: var(--primary); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.topbar-right .link-a:hover { background: var(--primary-soft); }

.tabs { max-width: 1040px; margin: 0 auto; padding: 0 12px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 12px 14px; border: none; background: none; cursor: pointer;
  color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.tab svg { width: 18px; height: 18px; }
.tab:hover { color: var(--text-2); }
.tab[aria-selected=true] { color: var(--primary); border-bottom-color: var(--primary); }
.tab .tab-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; font-size: .72rem; line-height: 18px; text-align: center;
  background: var(--red); color: #fff;
}

/* ---------- 页面 ---------- */

.page { max-width: 1040px; margin: 0 auto; padding: 24px 20px 64px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h2 { font-size: 1.45rem; }
.page-head p { color: var(--text-2); margin-top: 4px; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title h3 { font-size: 1.05rem; }
.section-title { font-size: .95rem; font-weight: 650; color: var(--text-2); margin: 4px 2px 0; display: flex; align-items: center; justify-content: space-between; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- 上传 ---------- */

.dropzone {
  position: relative; border: 2px dashed #d4d6e6; border-radius: 14px; background: var(--surface-2);
  padding: 30px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-icon { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.dropzone-icon svg { width: 26px; height: 26px; }
.dropzone strong { display: block; font-size: 1rem; }
.dropzone .muted { margin-top: 2px; }

.file-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: .88rem; max-width: 100%; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.file-chip button { width: 22px; height: 22px; border-radius: 50%; border: none; background: #e6e8f0; cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--text-2); }
.file-chip button:hover { background: var(--red-soft); color: var(--red); }

.upload-form { display: flex; flex-direction: column; gap: 16px; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- 进度条 ---------- */

.progress { height: 8px; border-radius: 99px; background: #ecedf5; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7c6cf2, #4f8df5); transition: width .8s ease; }
.progress.indeterminate > i { width: 35%; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: .85rem; color: var(--text-2); }

/* ---------- 记录卡片 ---------- */

.records { display: flex; flex-direction: column; gap: 12px; }
.record { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.record-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; }
.record-head:hover { background: #fcfcfe; }
.record-main { flex: 1; min-width: 0; }
.record-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-sub { font-size: .85rem; color: var(--muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.record-chev { color: var(--muted); transition: transform .2s; flex: none; width: 18px; height: 18px; }
.record.open .record-chev { transform: rotate(180deg); }
.record-body { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.record-progress { padding: 0 18px 16px; margin-top: -6px; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-queued { background: var(--amber-soft); color: var(--amber); }
.pill-processing { background: var(--blue-soft); color: var(--blue); }
.pill-done { background: var(--green-soft); color: var(--green); }
.pill-failed { background: var(--red-soft); color: var(--red); }

.score { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: .78rem; font-weight: 550; background: #f0f1f6; color: var(--text-2); white-space: nowrap; }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-violet { background: var(--primary-soft); color: var(--primary-2); }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); color: #8a5a0b; font-size: .9rem; margin-top: 16px; }
.notice.error { background: var(--red-soft); color: #b42318; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.notice ul { margin: 0; padding-left: 1.1em; }

.report-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.stat span { font-size: .8rem; color: var(--muted); }
.stat.green b { color: var(--green); }
.stat.red b { color: var(--red); }

.q-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.q-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 4px 10px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.q-list li:last-child { border-bottom: none; }
.q-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; align-self: center; }
.q-mark.right { background: var(--green-soft); color: var(--green); }
.q-mark.wrong { background: var(--red-soft); color: var(--red); }
.q-mark.skip { background: #f0f1f6; color: var(--muted); }
.q-text { min-width: 0; }
.q-text .stu { color: var(--red); text-decoration: line-through; text-decoration-thickness: 1px; margin-right: 6px; }
.q-text .ans { color: var(--primary-2); font-weight: 550; }
.q-text .prompt { margin-right: 8px; }
.q-meta { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.sub-head { margin-top: 18px; font-size: .9rem; font-weight: 650; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.toggle-all { margin-top: 14px; }

.papers { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.paper { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.paper-info { flex: 1; min-width: 180px; }
.paper-info .muted { font-size: .84rem; }
.paper-btns { display: flex; gap: 8px; }

/* ---------- 头像 ---------- */

.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 650; font-size: .92rem; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: .78rem; }
.avatar.lg { width: 48px; height: 48px; font-size: 1.1rem; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid #fff; margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.record-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.record-icon svg { width: 20px; height: 20px; }
.record-icon.violet { background: var(--primary-soft); color: var(--primary); }
.record-icon.green { background: var(--green-soft); color: var(--green); }

/* ---------- 今日复习 ---------- */

.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 6px;
  border: 1.5px solid var(--line); border-radius: 99px; background: var(--surface); cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s;
}
.pick input { display: none; }
.pick:hover { border-color: #cfd1e3; }
.pick.on { border-color: var(--primary); background: var(--primary-soft); }
.pick .check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c9ccdc; display: grid; place-items: center; margin-left: 2px; }
.pick.on .check { background: var(--primary); border-color: var(--primary); }
.pick.on .check::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

.qtypes { display: flex; flex-direction: column; gap: 8px; }
.qtype-subject { font-size: .82rem; font-weight: 650; color: var(--muted); letter-spacing: .04em; margin: 6px 0 2px; }
.qtype-opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; user-select: none; transition: border-color .15s, background .15s; flex-wrap: wrap;
}
.qtype-opt input { display: none; }
.qtype-opt .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c9ccdc; flex: none; display: grid; place-items: center; }
.qtype-opt.on { border-color: var(--primary); background: #fafaff; }
.qtype-opt.on .box { background: var(--primary); border-color: var(--primary); }
.qtype-opt.on .box::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.qtype-opt .name { font-weight: 550; flex: 1; min-width: 120px; }
.qtype-opt .tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; height: 44px; background: #fff; }
.stepper button { width: 44px; height: 100%; border: none; background: var(--surface-2); cursor: pointer; font-size: 1.2rem; color: var(--text-2); }
.stepper button:hover { background: var(--primary-soft); color: var(--primary); }
.stepper input { width: 64px; height: 100%; border: none; text-align: center; font-weight: 650; padding: 0; border-radius: 0; }
.stepper input:focus { box-shadow: none; }
.review-options { display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: end; }

.summary-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, #f1efff, #eaf2ff);
}
.summary-bar strong { font-size: 1.02rem; }
.summary-bar .muted { font-size: .86rem; color: var(--text-2); }

.stack { display: flex; flex-direction: column; gap: 18px; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.label-row > span { font-size: .9rem; font-weight: 600; color: var(--text-2); }

/* ---------- 题库 ---------- */

.bank-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.big-stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.big-stat b { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1.15; }
.big-stat span { color: var(--muted); font-size: .86rem; }
.big-stat.red b { color: var(--red); }

.searchbar { position: relative; }
.searchbar svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.searchbar input { padding-left: 42px; }

.subject { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.subject-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.subject-head h3 { font-size: 1.05rem; }
.qtype { border-top: 1px solid var(--line); }
.qtype-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; flex-wrap: wrap; }
.qtype-head:hover { background: #fcfcfe; }
.qtype-head .name { font-weight: 600; }
.qtype-head .count { color: var(--muted); font-size: .86rem; }
.qtype-head .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.qtype.open .record-chev { transform: rotate(180deg); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; padding: 0 20px 18px; }
.item { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: .9rem; }
.item .ans { color: var(--primary-2); font-weight: 550; margin-top: 2px; word-break: break-word; }
.item .unit { color: var(--muted); font-size: .76rem; }

/* ---------- 学生 ---------- */

.students { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.student-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.student-top { display: flex; align-items: center; gap: 12px; }
.student-top .name { font-weight: 650; font-size: 1.02rem; }
.student-top .klass { color: var(--muted); font-size: .85rem; }
.student-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.student-foot { display: flex; justify-content: flex-end; margin: -8px -8px -8px 0; }
.add-student { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }

/* ---------- 空状态 / 提示 ---------- */

.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: #c5c8da; margin-bottom: 8px; }
.empty strong { display: block; color: var(--text-2); margin-bottom: 4px; }
.card .empty { padding: 20px; }

.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #1f2233; color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: toast-in .25s ease; max-width: calc(100vw - 32px); }
.toast.error { background: #b42318; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.msg { min-height: 1.2em; font-size: .9rem; }
.msg.error { color: var(--red); }
.msg.ok { color: var(--green); }

/* ---------- 登录页 ---------- */

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); }
.login-hero {
  position: relative; overflow: hidden; padding: 56px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(1200px 600px at -10% -10%, #8f7bff 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #3fa0ff 0%, transparent 55%), #5148d6;
}
.login-hero .brand { color: #fff; font-size: 1.15rem; }
.login-hero .brand-mark { background: rgba(255, 255, 255, .2); box-shadow: none; }
.login-hero h1 { font-size: 2.1rem; line-height: 1.35; font-weight: 700; max-width: 440px; }
.login-hero p { opacity: .85; margin-top: 14px; max-width: 420px; font-size: 1.02rem; }
.curve { position: absolute; right: -40px; bottom: 90px; width: 520px; opacity: .25; }
.login-hero .foot { font-size: .85rem; opacity: .7; }
.login-side { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 18px; }
.login-card h2 { font-size: 1.6rem; }
.login-card .muted { margin-top: 4px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.login-card .btn { width: 100%; margin-top: 6px; }

/* ---------- 窄屏 ---------- */

@media (max-width: 760px) {
  .login-page { grid-template-columns: 1fr; }
  .login-hero { padding: 32px 24px 28px; min-height: 0; gap: 28px; }
  .login-hero h1 { font-size: 1.5rem; }
  .curve { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .topbar-inner { padding: 0 14px; height: 54px; }
  .me span { display: none; }
  .tabs { padding: 0; gap: 0; }
  .tab { flex: 1 1 0; flex-direction: column; gap: 2px; padding: 8px 4px 7px; font-size: .76rem; position: relative; }
  .tab svg { width: 20px; height: 20px; }
  .tab .tab-badge { position: absolute; top: 4px; left: calc(50% + 6px); height: 16px; min-width: 16px; line-height: 16px; font-size: .66rem; }
  .page { padding: 16px 14px 48px; gap: 16px; }
  .page-head h2 { font-size: 1.25rem; }
  .card { padding: 16px; }
  .grid-2, .review-options, .add-student { grid-template-columns: 1fr; }
  .report-stats { grid-template-columns: repeat(2, 1fr); }
  .bank-stats { gap: 8px; }
  .big-stat { padding: 12px; }
  .big-stat b { font-size: 1.35rem; }
  .q-list li { grid-template-columns: 26px 1fr; }
  .q-meta { grid-column: 2; justify-content: flex-start; }
  .paper-btns { width: 100%; }
  .paper-btns .btn { flex: 1; }
  .form-actions .btn { width: 100%; }
}
