.landing-actions #practiceHomeEntry {
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  height: auto;
  min-height: 42px;
  margin: 0;
  padding: 8px 20px;
  font-size: 15px;
  box-shadow: none;
}
html[data-home-theme="editorial"] .landing-actions #practiceHomeEntry {
  min-height: 44px;
  height: auto;
  width: auto;
  color: var(--editorial-text);
  background: var(--editorial-surface);
  border: 1px solid var(--editorial-line-warm);
  font: 500 16px/1.4 var(--font-editorial);
}
#aiPanel .ai-panel-head { flex-wrap: wrap; }
#practiceAiEntry {
  width: auto;
  min-height: 40px;
  margin: 0 0 0 auto;
  padding: 8px 14px;
  font-size: 14px;
}
#practiceBundle {
  --p-bg: var(--editorial-surface, #111925);
  --p-text: var(--editorial-text-strong, #f4f7fc);
  --p-muted: var(--editorial-text-secondary, #b5bfd1);
  --p-line: var(--editorial-line, #384454);
  --p-field: var(--editorial-field-border, #506078);
  --p-accent: var(--editorial-focus, #81bbff);
  display: block;
  box-sizing: border-box;
  width: min(100% - 32px, 800px);
  margin: 22px auto 72px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--p-text);
  box-shadow: none;
}
#practiceBundle[hidden], #practiceBundle [hidden] { display: none !important; }
#practiceBundle * { box-sizing: border-box; }
#practiceBundle .practice-bar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
#practiceBundle .practice-card {
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: var(--p-bg);
}
#practiceBundle h2 {
  margin: 0 0 8px;
  color: var(--p-text);
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: .02em;
}
#practiceBundle .practice-intro { margin: 0 0 28px; font-size: 15px; line-height: 1.65; color: var(--p-muted); }
#practiceBundle #practiceFields { min-width: 0; margin: 0; padding: 0; border: 0; }
#practiceBundle label, #practiceBundle legend { display: block; margin: 0 0 7px; font-size: 15px; color: var(--p-text); }
#practiceBundle input:not([type="radio"]), #practiceBundle textarea, #practiceBundle select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--p-field);
  border-radius: 4px;
  margin: 0;
  padding: 10px 12px;
  min-height: 44px;
  background: var(--editorial-bg, #0b1320);
  color: var(--p-text);
  font: inherit;
}
#practiceBundle .practice-numbers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 18px 0; }
#practiceBundle #practiceQuestionTotal {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 32px;
  background-image: linear-gradient(45deg,transparent 50%,var(--p-muted) 50%),linear-gradient(135deg,var(--p-muted) 50%,transparent 50%);
  background-size: 5px 5px;
  background-position: right 16px center,right 11px center;
  background-repeat: no-repeat;
}
#practiceBundle textarea { min-height: 78px; height: auto; resize: vertical; }
#practiceBundle .practice-requirements { margin: 0 0 20px; }
#practiceBundle .practice-requirements-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 7px; }
#practiceBundle .practice-requirements-head label { margin: 0; }
#practiceRequirementFiles { list-style:none; margin:8px 0; padding:0; }
#practiceRequirementFiles li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:5px 0; overflow-wrap:anywhere; color:var(--p-muted); font-size:14px; }
#practiceRequirementFiles li button { min-height:32px; padding:4px 12px; }
#practiceBundle #practicePickImage, #practiceBundle #practiceStopOcr { padding: 5px 12px; min-height: 38px; font-size: 14px; }
#practiceBundle #practiceStopOcr { margin-top: 6px; }
#practiceBundle summary { color: var(--p-muted); cursor: pointer; padding: 8px 0; font-size: 14px; }
#practiceBundle .practice-source { min-width: 0; border: 0; padding: 0; margin: 0 0 12px; }
#practiceBundle .practice-source legend { padding: 0; }
#practiceBundle .practice-radios, #practiceBundle .practice-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
#practiceBundle .practice-radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 38px;
  cursor: pointer;
}
#practiceBundle .practice-radios input {
  appearance: auto;
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--p-accent);
}
#practiceBundle .practice-hint, #practiceBundle .practice-count { margin: 5px 0 0; color: var(--p-muted); font-size: 14px; line-height: 1.65; }
#practiceBundle button { margin: 0; width: auto; min-height: 42px; padding: 9px 16px; font-size: 15px; }
#practiceBundle button[disabled], #practiceBundle fieldset[disabled] button { opacity: .55; cursor: default; }
#practiceBundle #practiceGenerate { width: 100%; margin-top: 12px; min-height: 48px; }
#practiceCollection { border-left: 2px solid var(--p-field); margin: 14px 0 18px; padding-left: 16px; }
#practiceBundle #practiceSurvey { padding-top: 14px; }
#practiceBundle .practice-links a, #practiceBundle #practicePreview { color: var(--p-accent); text-decoration: underline; text-underline-offset: 3px; }
#practiceBundle #practiceSurvey details { margin: 8px 0; }
#practiceBundle #practiceQuestions { margin: 8px 0 12px; padding-left: 24px; line-height: 1.6; }
#practiceQuestions li { margin-bottom: 8px; }
#practiceQuestions span { display: block; color: var(--p-muted); font-size: 14px; }
#practiceBundle #practiceUpload { font-size: 14px; }
#practiceBundle .practice-status { margin: 10px 0 0; font-size: 14px; color: var(--p-muted); line-height: 1.6; }
#practiceBundle .practice-status:empty { display: none; }
#practiceBundle .practice-error { color: var(--editorial-danger, #ffac9f); }
#practiceBundle [id="practiceReconnect"] { margin-top: 8px; }
#practiceBundle .practice-task {
  --task-accent: #a3b4ff;
  color: #f4f5fb;
  border: 1px solid #414a66;
  border-radius: 16px;
  padding: clamp(20px, 3.5vw, 32px);
  margin: 16px 0;
  background: radial-gradient(ellipse at 100% 0, #252e49 0, transparent 64%), #17191f;
  scroll-margin-block: 20px;
}
#practiceBundle .practice-task:focus-visible { outline: 2px solid var(--task-accent); outline-offset: 3px; }
#practiceBundle .practice-task-head { display: flex; align-items: center; gap: 16px; }
#practiceBundle .practice-task-head > div { min-width: 0; }
#practiceBundle .practice-task h3 {
  font: 650 clamp(20px, 2.6vw, 27px)/1.4 "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #f4f5fb;
  letter-spacing: -.03em;
  margin: 0;
}
#practiceBundle #practiceTaskMessage {
  margin: 5px 0 0;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: #d6dbef;
}
#practiceBundle #practiceTaskMessage .practice-status { margin: 0; color: inherit; font: inherit; }
#practiceBundle .practice-task-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 46px;
  border: 1px solid #495781;
  border-radius: 14px;
  color: var(--task-accent);
  background: #232a40;
  font: 650 24px/1 system-ui, sans-serif;
}
#practiceBundle .practice-task[data-state="active"] .practice-task-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #687bac;
  border-top-color: #e4e9ff;
  border-right-color: #bbcaff;
  border-radius: 50%;
  animation: practice-orbit 1.5s linear infinite;
}
#practiceBundle .practice-task-track {
  height: 5px;
  margin: 24px 0 0;
  overflow: hidden;
  border-radius: 99px;
  background: #343b51;
}
#practiceBundle .practice-task-track > span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #668aff 34%, #cfdbff 82%, transparent);
  animation: practice-light 2.1s ease-in-out infinite;
}
#practiceRecent:not([hidden]) {
  display: grid; gap: 6px; list-style: none;
  margin: 16px 0 0; padding: 0; color: #aebbd4;
  font-size: 13px; line-height: 1.55;
}
#practiceRecent li { display: flex; align-items: baseline; gap: 8px; overflow-wrap: anywhere; }
#practiceRecent li::before { content: "✓"; color: #9edcc8; flex: none; }
#practiceBundle .practice-task-hint { margin: 15px 0 0; color: #aeb5ca; font-size: 13px; line-height: 1.7; }
#practiceBundle .practice-task-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#practiceBundle .practice-task-actions > :is(a,button):not([hidden]) { margin-top: 16px; }
#practiceBundle .practice-task[data-state="failed"], #practiceBundle .practice-task[data-state="paused"] {
  --task-accent: #ffd495;
  background: #201e1d;
  border-color: #5d5243;
}
#practiceBundle .practice-task:is([data-state="failed"],[data-state="paused"]) .practice-task-icon {
  background: #302a24;
  border-color: #695a46;
}
#practiceBundle .practice-task[data-state="done"] { --task-accent: #a8e4c4; }
#practiceBundle .practice-task[data-state="done"] .practice-task-icon { background: #20352d; border-color: #405f50; }
@keyframes practice-light { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes practice-orbit { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  #practiceBundle .practice-task[data-state="active"] .practice-task-icon::before { animation: none; }
  #practiceBundle .practice-task-track > span {
    width: 100%;
    animation: none;
    background: repeating-linear-gradient(120deg, #7e94de 0 5px, #414e72 5px 9px);
  }
}
#practiceBundle :is(button,input,textarea,select,summary,a):focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
@media (max-width: 600px) {
  html[data-home-theme="editorial"] .landing-actions #practiceHomeEntry { width: 100%; }
  #practiceAiEntry { margin-left: 0; }
  #practiceBundle { width: calc(100% - 24px); margin-top: 12px; }
  #practiceBundle .practice-card { padding: 18px 16px; }
}

/* The heading carries the glass artwork, leaving a steady, low-glare writing surface. */
#practiceBundle {
  color-scheme: dark;
  --p-text: #f1f2f1;
  --p-muted: #babec0;
  --p-line: #ffffff2b;
  --p-field: #666c6f;
  --p-accent: #bbdfe7;
  --p-action: #eaeeed;
  --p-glass: linear-gradient(145deg, #3a3d3ed9, #232527ed 68%);
  width: min(940px, calc(100% - 40px));
  margin: clamp(14px, 2vw, 26px) auto 60px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
#practiceBundle .practice-bar { justify-content: flex-start; }
#practiceBundle button {
  border: 1px solid var(--p-line);
  border-radius: 999px;
  min-height: 44px;
  background: var(--p-glass);
  box-shadow: inset 0 1px 0 #ffffff12;
  color: var(--p-text);
  line-height: 1.4;
  transition: background-color .16s, border-color .16s, scale .14s ease-out;
}
#practiceBundle .practice-bar button {
  display: inline-flex; align-items: center; gap: 9px;
}
#practiceBundle .practice-bar button::before {
  content: ""; width: .48em; height: .48em;
  border: solid currentColor; border-width: 1.5px 0 0 1.5px; transform: rotate(-45deg);
}
#practiceBundle .practice-card {
  --p-inset: clamp(20px, 4vw, 44px);
  border-radius: 26px;
  padding: 0 0 24px;
  overflow: clip;
  background: linear-gradient(135deg, #292c2df2, #1c1e20f5 59%);
  border: 1px solid var(--p-line);
  box-shadow: inset 0 1px #ffffff12, 0 15px 52px #0002;
}
#practiceBundle .practice-heading {
  position: relative;
  display: grid;
  align-content: center;
  gap: 9px;
  min-height: 151px;
  padding: 30px var(--p-inset);
  border: 0;
  border-bottom: 1px solid var(--p-line);
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(90deg, #151819f5 0%, #191b1de6 42%, #16191b42 79%),
              url("/assets/thesis-glass-book.webp") right 36% / cover no-repeat, #202224;
}
#practiceBundle h2 {
  color: var(--p-text);
  font: 640 clamp(26px, 3.3vw, 39px)/1.2 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -.035em;
  margin: 0;
}
#practiceBundle .practice-intro {
  max-width: 32em; margin: 0; color: #d3d6d6; line-height: 1.65;
}
#practiceBundle :is(#practiceForm,#practiceStatus,#practiceTask) { margin-inline: var(--p-inset); }
#practiceBundle #practiceForm { margin-top: 26px; }
#practiceBundle label, #practiceBundle legend { font-size: 14px; font-weight: 600; }
#practiceBundle #practiceFields :is(input:not([type="radio"]), textarea, select) {
  border-radius: 12px;
  min-height: 46px;
  border: 1px solid var(--p-field);
  background-color: #181a1b;
  color: var(--p-text);
  line-height: 1.5;
  padding: 10px 14px;
  box-shadow: inset 0 1px 3px #0002;
  transition: border-color .16s, box-shadow .16s;
}
#practiceBundle #practiceFields :is(input,textarea)::placeholder { color: #a5aaad; }
#practiceBundle #practiceFields textarea {
  display: block; min-height: 94px; height: auto;
}
#practiceBundle .glass-composer { position: relative; border-radius: 12px; }
#practiceBundle .practice-numbers { margin: 18px 0; }
#practiceBundle .practice-source { margin-block: 16px 3px; }
#practiceBundle :is(#practicePickImage,#practiceStopOcr,#practiceRequirementFiles button) { min-height: 44px; font-size: 14px; }
#practiceBundle .practice-radios {
  display: inline-flex; max-width: 100%; gap: 3px;
  padding: 3px; border: 1px solid var(--p-line); border-radius: 15px; background: #161819;
}
#practiceBundle .practice-radios label {
  padding: 7px 13px; border-radius: 11px; min-height: 40px; color: var(--p-muted);
  border: 1px solid transparent;
  transition: background-color .16s, color .16s;
}
#practiceBundle .practice-radios label:has(:checked) {
  color: var(--p-text); border-color: #ffffff2d; background: #373b3d;
  box-shadow: inset 0 1px #ffffff12;
}
#practiceBundle .practice-radios label:has(:focus-visible) { outline: 2px solid var(--p-accent); outline-offset: 2px; }
#practiceBundle #practiceCollection {
  border: 1px solid var(--p-line); border-radius: 16px; padding: clamp(12px,2vw,20px);
  background: #181a1b;
}
#practiceBundle input[type="file"]::file-selector-button {
  border: 1px solid var(--p-line); border-radius: 8px; padding: 4px 10px;
  background: #343739; color: var(--p-text); cursor: pointer;
}
#practiceBundle #practiceGenerate {
  min-height: 48px; margin-top: 18px; font-weight: 650;
  background: var(--p-action); color: #191d1e; border-color: #ffffff65;
}
#practiceBundle #practiceTask { border: 0; padding: 0; background: transparent; box-shadow: none; }
#practiceBundle :is(.practice-task-hint,#practiceTaskMessage,#practiceRecent) { color: var(--p-muted); }
#practiceBundle #practiceTask:focus-visible { outline-offset: 5px; border-radius: 16px; }
@media (hover: hover) {
  #practiceBundle button:not(:disabled):hover { border-color: #aabfc4; background-color: #35383a; }
  #practiceBundle #practiceGenerate:hover { background: #fff; }
  #practiceBundle #practiceFields :is(input:not([type="radio"]),textarea,select):hover { border-color: #91999d; }
}
@media (prefers-reduced-motion: no-preference) {
  #practiceBundle button:not(:disabled):active { scale: .98; }
  html:not([data-home-motion="static"]) #practiceBundle .practice-card,
  html:not([data-home-motion="static"]) #practiceBundle #practiceCollection:not([hidden]) {
    animation: practice-surface-in .29s cubic-bezier(.2,.78,.25,1);
  }
  @keyframes practice-surface-in { from { opacity: .2; transform: translateY(6px); } }
}
@media (max-width: 600px) {
  #practiceBundle { width: calc(100% - 24px); margin-top: 12px; }
  #practiceBundle .practice-card { --p-inset: 16px; border-radius: 21px; padding-bottom: 18px; }
  #practiceBundle .practice-heading { min-height: 122px; padding-block: 20px; }
  #practiceBundle .practice-intro { max-width: 23em; font-size: 14px; }
  #practiceBundle #practiceForm { margin-top: 18px; }
  #practiceBundle .practice-radios { display: flex; }
  #practiceBundle .practice-radios label { flex: 1 1 auto; justify-content: center; min-height: 44px; padding-inline: 5px; }
  #practiceBundle #practiceFields :is(input:not([type="radio"]),textarea,select) { font-size: 16px; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  #practiceBundle .practice-heading, #practiceBundle .practice-card { background: #202223; }
  #practiceBundle { --p-line: #7c8486; --p-field: #969da0; --p-glass: #303334; }
}
@media (prefers-reduced-motion: reduce) {
  #practiceBundle *, #practiceBundle *::before, #practiceBundle *::after { transition: none; }
}
@media (forced-colors: active) {
  #practiceBundle :is(.practice-card,.practice-heading,button,.practice-radios) { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; }
  #practiceBundle .practice-radios label:has(:checked) { border-color: Highlight; }
}

