.linux-practice {
  position: relative;
  width: 100%;
  margin-top: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgb(178 226 202 / 24%);
  border-radius: 1.35rem;
  color: #e9f5ed;
  background:
    linear-gradient(90deg, rgb(171 221 194 / 4%) 1px, transparent 1px),
    linear-gradient(rgb(171 221 194 / 4%) 1px, transparent 1px),
    radial-gradient(circle at 78% 4%, rgb(102 156 188 / 18%), transparent 25rem),
    #0b211d;
  background-size: 2rem 2rem, 2rem 2rem, auto, auto;
  box-shadow: 0 1.6rem 3.7rem rgb(0 10 9 / 24%);
}
.linux-practice::before {
  position: absolute; inset: 0 0 auto; height: 2px; content: "";
  background: linear-gradient(90deg, #9ed7b6, #7ba9bf 58%, transparent);
}
.linux-practice button, .linux-practice select, .linux-practice input { font: inherit; }
.linux-practice button:focus-visible, .linux-practice select:focus-visible,
.linux-practice input:focus-visible { outline: 3px solid #b9ebcb; outline-offset: 3px; }

.linux-practice__heading {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem;
  align-items: end; padding: clamp(1.2rem, 3vw, 2rem);
  border-bottom: 1px solid rgb(185 226 204 / 14%);
  background: linear-gradient(135deg, rgb(210 240 222 / 7%), transparent 58%);
}
.linux-practice__eyebrow {
  margin: 0; color: #8ec3aa; font-family: var(--font-mono); font-size: .72rem;
  font-weight: 700; letter-spacing: .18em;
}
.linux-practice__heading h2 {
  margin: .4rem 0 0; color: #f3faf5; font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 600;
}
.linux-practice__intro {
  max-width: 42rem; margin: .7rem 0 0; color: #b9d0c4;
  font-size: .96rem; line-height: 1.75;
}
.linux-practice__stats {
  display: grid; grid-template-columns: repeat(4, minmax(4.4rem, 1fr)); gap: .45rem;
}
.linux-practice__stats > div {
  min-width: 4.6rem; padding: .65rem .7rem;
  border-left: 1px solid rgb(177 222 199 / 18%);
}
.linux-practice__stats strong, .linux-practice__stats span { display: block; }
.linux-practice__stats strong {
  color: #effbf3; font-family: var(--font-mono); font-size: 1.18rem;
}
.linux-practice__stats span { margin-top: .18rem; color: #82aa99; font-size: .72rem; }

.linux-practice__workspace {
  display: grid; min-height: 36rem;
  grid-template-columns: minmax(12.5rem, .28fr) minmax(0, 1fr);
}
.linux-practice__rail {
  padding: 1.3rem; border-right: 1px solid rgb(185 226 204 / 14%);
  background: rgb(5 22 19 / 42%);
}
.linux-practice__rail-label {
  display: block; margin: 0 0 .55rem; color: #91b8a6;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .12em;
}
.linux-practice__rail select {
  width: 100%; min-height: 2.85rem; margin-bottom: 1.5rem; padding: 0 .8rem;
  border: 1px solid rgb(180 225 199 / 25%); border-radius: .65rem;
  color: #e6f4ea; cursor: pointer; background: #102d26;
}
.linux-practice__modes { display: grid; gap: .4rem; }
.linux-practice__modes button {
  min-height: 2.55rem; padding: .55rem .7rem; border: 1px solid transparent;
  border-radius: .6rem; color: #a9c6b8; text-align: left; cursor: pointer; background: transparent;
}
.linux-practice__modes button:hover { color: #ecf8f0; background: rgb(175 225 198 / 7%); }
.linux-practice__modes button[aria-pressed="true"] {
  border-color: rgb(174 225 198 / 26%); color: #eaf8ef;
  background: linear-gradient(90deg, rgb(143 207 170 / 16%), transparent);
}
.linux-practice__save-note {
  margin: 2rem 0 0; color: #789889; font-size: .76rem; line-height: 1.65;
}
.linux-practice__stage { padding: clamp(1.3rem, 4vw, 2.5rem); }
.linux-practice__question-meta {
  display: flex; flex-wrap: wrap; gap: .45rem 1rem; color: #8fb6a4;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
}
.linux-practice__question-meta span:first-child { color: #bee6cd; }
.linux-practice__progress {
  height: 3px; margin-top: .9rem; overflow: hidden; border-radius: 99px;
  background: rgb(201 233 216 / 10%);
}
.linux-practice__progress span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #7bc398, #9ecad9); transition: width 240ms ease;
}
.linux-practice__question-title {
  max-width: 48rem; margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  color: #f2f8f4; font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 600; line-height: 1.55;
}
.linux-practice__select-hint { margin: .65rem 0 1.25rem; color: #8fab9f; font-size: .82rem; }
.linux-practice__answers {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem;
}
.linux-practice__option {
  display: grid; min-height: 4.1rem; grid-template-columns: 2rem minmax(0, 1fr);
  gap: .75rem; align-items: center; padding: .8rem .9rem;
  border: 1px solid rgb(186 225 204 / 15%); border-radius: .8rem;
  color: #d7e7df; font-size: .91rem; line-height: 1.55; text-align: left;
  cursor: pointer; background: rgb(221 243 229 / 4%);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.linux-practice__option:hover:not(:disabled) {
  border-color: rgb(167 222 192 / 35%); background: rgb(194 233 210 / 8%);
  transform: translateY(-1px);
}
.linux-practice__option-key {
  display: grid; width: 2rem; height: 2rem; place-items: center;
  border: 1px solid rgb(174 219 196 / 20%); border-radius: 50%;
  color: #86a998; font-family: var(--font-mono); font-size: .68rem;
}
.linux-practice__option--selected {
  border-color: #85caa2; color: #f1faf4; background: rgb(120 194 150 / 14%);
}
.linux-practice__option--selected .linux-practice__option-key {
  border-color: #a8dfbd; color: #0c291f; background: #a8dfbd;
}
.linux-practice__option--correct { border-color: #79c99b; background: rgb(91 190 130 / 16%); }
.linux-practice__option--wrong { border-color: #d28c96; background: rgb(188 91 108 / 14%); }

.linux-practice__text-answer {
  display: grid; gap: .55rem; grid-column: 1 / -1; color: #9ebbae; font-size: .78rem;
}
.linux-practice__text-answer input {
  width: 100%; min-height: 3.6rem; padding: .75rem 1rem;
  border: 1px solid rgb(172 224 197 / 28%); border-radius: .75rem;
  color: #eff9f2; font-family: var(--font-mono); font-size: 1rem; background: #071a17;
}
.linux-practice__feedback {
  margin-top: 1rem; padding: 1rem 1.1rem; border-left: 3px solid #8bcba4;
  border-radius: 0 .65rem .65rem 0; background: rgb(126 201 156 / 9%);
}
.linux-practice__feedback--wrong { border-left-color: #d3949c; background: rgb(190 104 119 / 9%); }
.linux-practice__feedback strong { color: #ecf9f0; }
.linux-practice__feedback p {
  margin: .42rem 0 0; color: #b8cdc3; font-size: .86rem; line-height: 1.65;
}
.linux-practice__actions { display: flex; justify-content: flex-end; margin-top: 1.2rem; }
.linux-practice__check, .linux-practice__next, .linux-practice__restart {
  min-height: 2.85rem; padding: .65rem 1.1rem; border: 1px solid #a9dec0;
  border-radius: 999px; color: #0b2b1f; font-weight: 700; cursor: pointer; background: #b6e3c7;
}
.linux-practice__check:hover, .linux-practice__next:hover,
.linux-practice__restart:hover { background: #d8f2e1; }
.linux-practice__empty {
  display: grid; min-height: 25rem; place-content: center;
  justify-items: start; max-width: 38rem; margin: auto;
}
.linux-practice__empty h3 {
  margin: .5rem 0 0; color: #f1f8f3; font-family: var(--font-serif); font-size: 2rem;
}
.linux-practice__empty > p:not(.linux-practice__eyebrow) {
  margin: .8rem 0 1.25rem; color: #aac1b6; line-height: 1.75;
}
.linux-practice__footer {
  display: flex; gap: 1rem; justify-content: space-between; padding: .9rem 1.3rem;
  border-top: 1px solid rgb(185 226 204 / 12%); color: #708f81;
  font-size: .72rem; background: rgb(4 17 15 / 42%);
}
.linux-practice__footer button {
  padding: 0; border: 0; color: #8fac9f; cursor: pointer; background: transparent;
}
.linux-practice__footer button:hover { color: #e7f4ec; }
.linux-practice__answers--nudge { animation: linux-practice-nudge 340ms ease; }
@keyframes linux-practice-nudge {
  25% { transform: translateX(-4px); } 60% { transform: translateX(4px); }
}
@media (max-width: 900px) {
  .linux-practice__heading { grid-template-columns: 1fr; }
  .linux-practice__stats { max-width: 34rem; }
  .linux-practice__workspace { grid-template-columns: 1fr; }
  .linux-practice__rail {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 1rem; border-right: 0; border-bottom: 1px solid rgb(185 226 204 / 14%);
  }
  .linux-practice__save-note { grid-column: 1 / -1; margin-top: .9rem; }
}
@media (max-width: 620px) {
  .linux-practice { border-radius: 1rem; }
  .linux-practice__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linux-practice__workspace { min-height: 0; }
  .linux-practice__rail { grid-template-columns: 1fr; }
  .linux-practice__answers { grid-template-columns: 1fr; }
  .linux-practice__footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .linux-practice *, .linux-practice *::before, .linux-practice *::after {
    transition-duration: .01ms !important; animation-duration: .01ms !important;
  }
}

/* 2026-09-09: align the injected practice workspace with the live light dashboard. */
.learning-dashboard__inner[data-workspace] > #learning-practice {
  display: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  scroll-margin-top: 5rem;
}
.learning-dashboard__inner[data-practice-active="true"] > #learning-practice {
  display: block;
  animation: learning-panel-in 360ms ease both;
}
.learning-dashboard__inner[data-practice-active="true"] > #learning-today,
.learning-dashboard__inner[data-practice-active="true"] > #learning-week,
.learning-dashboard__inner[data-practice-active="true"] > #learning-budget,
.learning-dashboard__inner[data-practice-active="true"] > #learning-roadmap,
.learning-dashboard__inner[data-practice-active="true"] > #learning-library,
.learning-dashboard__inner[data-practice-active="true"] > #learning-notes,
.learning-dashboard__inner[data-practice-active="true"] > #learning-memory {
  display: none !important;
}
.learning-deck-nav:has(#learning-deck-learning-practice) {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.linux-practice {
  color: #4d5148;
  border-color: rgb(87 101 75 / 20%);
  background:
    linear-gradient(90deg, rgb(113 137 99 / 4%) 1px, transparent 1px),
    linear-gradient(rgb(113 137 99 / 4%) 1px, transparent 1px),
    radial-gradient(circle at 82% 4%, rgb(176 207 218 / 34%), transparent 25rem),
    rgb(255 253 246 / 72%);
  box-shadow: 0 .9rem 2.1rem rgb(78 65 48 / 10%);
}
.linux-practice::before {
  background: linear-gradient(90deg, #829b75, #a8bea0 58%, transparent);
}
.linux-practice button:focus-visible,
.linux-practice select:focus-visible,
.linux-practice input:focus-visible {
  outline-color: #718969;
}
.linux-practice__heading {
  border-bottom-color: rgb(87 101 75 / 14%);
  background: linear-gradient(135deg, rgb(236 244 229 / 82%), rgb(255 253 246 / 34%));
}
.linux-practice__eyebrow { color: #718969; }
.linux-practice__heading h2,
.linux-practice__question-title,
.linux-practice__empty h3 { color: #403a33; }
.linux-practice__intro,
.linux-practice__feedback p,
.linux-practice__empty > p:not(.linux-practice__eyebrow) { color: #697064; }
.linux-practice__stats > div { border-left-color: rgb(103 126 91 / 18%); }
.linux-practice__stats strong { color: #4c5e47; }
.linux-practice__stats span,
.linux-practice__question-meta,
.linux-practice__select-hint { color: #7b8676; }
.linux-practice__question-meta span:first-child { color: #607657; }
.linux-practice__rail {
  border-right-color: rgb(87 101 75 / 14%);
  background: rgb(246 242 231 / 74%);
}
.linux-practice__rail-label { color: #63745c; }
.linux-practice__rail select {
  border-color: rgb(97 119 85 / 24%);
  color: #4e5849;
  background: rgb(255 253 246 / 88%);
}
.linux-practice__modes button {
  color: #6f776a;
}
.linux-practice__modes button:hover {
  color: #455140;
  background: rgb(220 235 212 / 66%);
}
.linux-practice__modes button[aria-pressed="true"] {
  border-color: rgb(113 137 99 / 30%);
  color: #41503c;
  background: linear-gradient(90deg, rgb(211 229 201 / 90%), rgb(239 246 232 / 54%));
}
.linux-practice__save-note { color: #848b7e; }
.linux-practice__progress { background: rgb(105 129 91 / 13%); }
.linux-practice__progress span { background: linear-gradient(90deg, #829b75, #aec6a4); }
.linux-practice__option {
  border-color: rgb(87 101 75 / 17%);
  color: #565b51;
  background: rgb(255 253 246 / 66%);
}
.linux-practice__option:hover:not(:disabled) {
  border-color: rgb(113 137 99 / 38%);
  background: rgb(239 246 231 / 86%);
}
.linux-practice__option-key {
  border-color: rgb(103 126 91 / 24%);
  color: #718069;
}
.linux-practice__option--selected {
  border-color: #829b75;
  color: #3f4b3a;
  background: rgb(220 237 212 / 84%);
}
.linux-practice__option--selected .linux-practice__option-key {
  border-color: #78966f;
  color: #fffdf6;
  background: #78966f;
}
.linux-practice__option--correct {
  border-color: #78966f;
  background: rgb(218 236 209 / 88%);
}
.linux-practice__option--wrong {
  border-color: #bf7e78;
  background: rgb(241 219 211 / 66%);
}
.linux-practice__text-answer { color: #687662; }
.linux-practice__text-answer input {
  border-color: rgb(97 119 85 / 30%);
  color: #464b42;
  background: rgb(255 254 249 / 90%);
}
.linux-practice__feedback {
  border-left-color: #829b75;
  background: rgb(226 239 216 / 72%);
}
.linux-practice__feedback--wrong {
  border-left-color: #bd817b;
  background: rgb(243 224 217 / 68%);
}
.linux-practice__feedback strong { color: #465240; }
.linux-practice__check,
.linux-practice__next,
.linux-practice__restart {
  border-color: #718969;
  color: #fffdf6;
  background: #718969;
}
.linux-practice__check:hover,
.linux-practice__next:hover,
.linux-practice__restart:hover {
  background: #5f7858;
}
.linux-practice__footer {
  border-top-color: rgb(87 101 75 / 13%);
  color: #7e8679;
  background: rgb(246 242 231 / 72%);
}
.linux-practice__footer button { color: #6d7b67; }
.linux-practice__footer button:hover { color: #45523f; }

@media (min-width: 960px) {
  .learning-dashboard__inner[data-workspace] > #learning-practice {
    grid-column: 2;
    grid-row: 3;
  }
}
@media (max-width: 959px) {
  .learning-dashboard__inner[data-practice-active="true"] > #learning-practice {
    order: 2;
  }
}
@media (max-width: 720px) {
  .learning-deck-nav:has(#learning-deck-learning-practice) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
