:root {
  --brand: #872a08;
  --brand-dark: #652006;
  --tint: #faf1e9;
  --bg: #faf9f7;
  --surface: #fff;
  --ink: #2d2420;
  --text: #4f453f;
  --muted: #776d66;
  --line: #e9e3dc;
  --green: var(--brand);
  --deep: var(--brand-dark);
  --mint: var(--tint);
  --gold: #d4a574;
  --radius: 12px;
  --font: "Inter", "Cairo", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
html[lang="ar"] {
  --font: "Cairo", "Inter", Tahoma, sans-serif;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.6;
}
h1 {
  font-size: 28px;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 17px;
}
.icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #c78159;
  outline-offset: 4px;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 10px;
  inset-inline-start: 10px;
  padding: 10px 20px;
  background: white;
  border: 1px solid var(--brand);
}
.muted,
.subtle {
  color: var(--muted);
}
.subtle {
  font-size: 13px;
}
.eyebrow {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-block-end: 6px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  transition: background 0.15s;
}
.button .icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}
.button.primary {
  background: var(--brand);
  color: #fff;
}
.button.primary:hover:not(:disabled) {
  background: var(--brand-dark);
}
.button.secondary {
  background: white;
  border-color: #d8cfc7;
  color: var(--ink);
}
.button.secondary:hover {
  background: var(--tint);
}
.button.danger {
  color: #9b3535;
  background: #fff7f5;
  border-color: #eed5d0;
}
.button.compact {
  min-height: 44px;
  padding: 8px 13px;
  font-size: 14px;
}
.button.full {
  width: 100%;
}
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
}
.text-link:hover {
  text-decoration: underline;
}
.text-link .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
html[dir="rtl"] .button use[href$="#arrow"],
html[dir="rtl"] .text-link use[href$="#arrow"] {
  transform: rotate(180deg);
  transform-origin: center;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #d8cfc7;
  border-radius: 9px;
  flex-shrink: 0;
}
.center {
  justify-content: center;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.notice {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border: 1px solid #e7d6c4;
  background: #fdf7ef;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.9;
}
.notice .icon {
  margin-block-start: 3px;
  flex-shrink: 0;
}
.notice.error {
  background: #fff3f1;
  color: #9a3633;
  border-color: #efd1cc;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #382a21;
  color: #fff;
  padding: 13px 20px;
  border-radius: 9px;
  z-index: 100;
  width: max-content;
  max-width: calc(100% - 32px);
  font-size: 14px;
}
.spinner {
  width: 22px;
  height: 22px;
  display: inline-block;
  border: 2px solid #e8d9cc;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.button .spinner {
  width: 18px;
  height: 18px;
  border-color: #ffffff40;
  border-top-color: white;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Familiar navigation: a single header, and a thumb-friendly bar on phones. */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: 1180px;
  margin: auto;
  min-height: 84px;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.logo-frame {
  display: block;
  position: relative;
  width: 105px;
  height: 59px;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 215px;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}
.brand-caption {
  font-size: 11px;
  max-width: 110px;
  color: var(--muted);
  line-height: 1.8;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.desktop-nav a {
  padding: 10px 14px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 7px;
  white-space: nowrap;
}
.desktop-nav a.is-active {
  background: var(--tint);
  color: var(--brand);
  font-weight: 700;
}
.desktop-nav a:hover {
  background: #f8f5f0;
}
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  min-height: 44px;
  white-space: nowrap;
}
.language-switch .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.avatar {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2e7d8;
  border-radius: 50%;
  color: #77583d;
  font-size: 14px;
  font-weight: 600;
}
.page-content {
  max-width: 1150px;
  width: 100%;
  padding: 35px 28px 48px;
  margin: auto;
  min-height: calc(100dvh - 165px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-block-end: 25px;
}
.page-heading > p {
  flex: 0 0 100%;
  margin-block-start: -9px;
}
.page-heading p {
  font-size: 15px;
  color: var(--muted);
}
.page-heading > div p {
  margin-block-start: 7px;
}
.workspace-footer {
  max-width: 1094px;
  margin: auto;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.workspace-footer a {
  color: var(--brand);
}
.mobile-nav {
  display: none;
}
.section {
  margin-block-start: 30px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 15px;
}
.section-heading h2 {
  font-size: 20px;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 18px;
}
.panel-heading h2 {
  font-size: 18px;
}
.panel-heading > .icon {
  color: var(--brand);
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.loading-placeholder {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
}
.loading-card,
.case-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  padding: 65px 25px;
  text-align: center;
  color: var(--muted);
}
.case-loading {
  min-height: 340px;
}
.case-loading h2 {
  font-size: 19px;
}
.case-loading p {
  font-size: 14px;
  max-width: 330px;
}
.empty-state {
  padding: 36px 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-direction: column;
}
.empty-state h2 {
  font-size: 20px;
}
.empty-state p {
  max-width: 400px;
  font-size: 15px;
  color: var(--muted);
}
.empty-state .button {
  margin-block-start: 7px;
}
.empty-illustration {
  width: 54px;
  height: 58px;
  background: var(--tint);
  color: #a6805f;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 4px;
}
.empty-illustration > .icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}
.empty-spark,
.empty-tags {
  display: none;
}
.error-state {
  padding: 35px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 15px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: #f4f1ed;
  color: #706258;
  border-radius: 5px;
  font-size: 12px;
  white-space: normal;
  line-height: 1.7;
}
.badge.success {
  background: #edf5ee;
  color: #3c7050;
}
.badge.pending {
  background: #faf0df;
  color: #87622c;
}
.badge.locale {
  font:
    11px/1.7 "Inter",
    sans-serif;
  border: 1px solid var(--line);
  background: transparent;
}
.inline-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.prose {
  font-size: 16px;
  line-height: 2;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.brief-list {
  font-size: 15px;
  line-height: 1.95;
  padding-inline-start: 22px;
  margin: 0;
}
.brief-list li {
  padding-inline-start: 4px;
  margin-block-end: 9px;
  overflow-wrap: anywhere;
}
.brief-list li::marker {
  color: #aa8160;
}
/* Home: practice and recent sessions come first. */
.home-intro {
  padding-block: 5px 26px;
  max-width: 750px;
}
.welcome {
  font-size: 14px;
  color: var(--muted);
  margin-block-end: 6px;
}
.home-intro h1 {
  font-size: 30px;
  margin-block-end: 10px;
}
.home-intro > p:not(.welcome) {
  font-size: 16px;
  color: var(--muted);
}
.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-block-start: 22px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-block: 10px 27px;
  overflow: hidden;
}
.stat-card {
  padding: 17px 23px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}
.stat-card:not(:last-child):after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  inset-block: 20px;
  width: 1px;
  background: var(--line);
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
}
.stat-card strong {
  font:
    600 24px/1.5 "Inter",
    sans-serif;
  color: var(--ink);
}
.stat-card strong small {
  font-size: 12px;
  color: #938278;
  margin-inline-start: 5px;
  font-weight: 400;
}
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 43px;
  flex-shrink: 0;
  color: var(--brand);
  background: var(--tint);
  border-radius: 7px;
}
.session-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.session-list-row:last-child {
  border: 0;
}
.session-list-row:hover {
  background: #fdfbf8;
}
.session-row-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.session-row-main h3 {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.session-row-main p {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-block-start: 5px;
}
.session-row-end {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.session-score {
  font:
    600 19px/1.5 "Inter",
    sans-serif;
  color: var(--brand);
  white-space: nowrap;
}
.session-score small {
  font-size: 12px;
  color: #907d70;
  font-weight: 400;
}
.session-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}
.session-open .icon {
  width: 17px;
  height: 17px;
}
html[dir="rtl"] .session-open {
  transform: rotate(180deg);
}
.help-guide {
  margin-block-start: 30px;
  border-top: 1px solid var(--line);
  padding-block: 20px;
  color: var(--muted);
}
.help-guide summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.help-guide ol {
  padding-inline-start: 22px;
}
.help-guide li {
  margin-block: 15px;
}
.help-guide strong {
  font-size: 15px;
  color: var(--ink);
}
.help-guide p {
  font-size: 14px;
}
/* Configure a case without a second empty canvas. */
.steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
  max-width: 600px;
  gap: 0;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #8b7e73;
  line-height: 1.6;
}
.steps li:not(:last-child):after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
  margin-inline: 12px;
  min-width: 5px;
}
.steps li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  border: 1px solid #ded3c8;
  background: white;
  font:
    12px "Inter",
    sans-serif;
}
.steps li.current {
  color: var(--brand);
  font-weight: 600;
}
.steps li.current > span {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.steps li.done > span {
  background: var(--tint);
  color: var(--brand);
}
.steps li.done .icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}
.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
  gap: 24px;
}
.setup-grid.has-case {
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: start;
}
.setup-panel {
  padding: 25px 28px;
  min-width: 0;
}
.setup-panel > summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.setup-panel > summary::-webkit-details-marker {
  display: none;
}
.setup-panel > summary:after {
  content: "+";
  font:
    23px "Inter",
    sans-serif;
  color: var(--brand);
}
.setup-panel[open] > summary:after {
  content: "−";
}
.setup-panel form {
  padding-block-start: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block-end: 24px;
  min-width: 0;
}
.field label,
.role-field legend {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}
.field input:not([type="range"]),
.field select {
  height: 49px;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #d8d0c8;
  border-radius: 8px;
  font-size: 16px;
}
.field input:focus,
.field select:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #872a0809;
}
.field small,
.field-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.field-hint {
  margin-block-start: 14px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.label-row output {
  font-size: 13px;
  color: var(--brand);
  background: var(--tint);
  padding: 2px 8px;
  border-radius: 5px;
}
.field input[type="range"] {
  width: 100%;
  height: 8px;
  margin: 15px 0 8px;
  accent-color: var(--brand);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.role-field {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.role-field legend {
  padding: 0;
  margin-block-end: 12px;
}
.role-option {
  position: relative;
  cursor: pointer;
}
.role-option input {
  position: absolute;
  inset-inline-start: 12px;
  top: 20px;
  accent-color: var(--brand);
  margin: 0;
  width: 16px;
  height: 16px;
}
.role-option > span {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8d0c8;
  border-radius: 8px;
  min-height: 59px;
  padding: 12px;
  padding-inline-start: 36px;
  font-size: 14px;
  line-height: 1.8;
}
.role-option .icon {
  display: none;
}
.role-option input:checked + span {
  background: var(--tint);
  border-color: #b58b6b;
  color: var(--brand);
}
.setup-panel .notice {
  margin-block-end: 16px;
}
.case-preview {
  overflow: hidden;
  min-width: 0;
}
.brief-head {
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
}
.brief-head h2 {
  font-size: 23px;
  margin-block: 13px 17px;
  line-height: 1.7;
}
.brief-head .eyebrow {
  display: none;
}
.brief-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  margin: 23px 0 0;
}
.brief-meta dt {
  color: var(--muted);
  font-size: 13px;
  margin-block-end: 4px;
}
.brief-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.brief-body {
  padding: 25px 28px;
}
.brief-section + .brief-section {
  margin-block-start: 27px;
}
.brief-section h3 {
  font-size: 18px;
  margin-block-end: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.brief-section h3 .icon {
  color: #a27b58;
  width: 18px;
  height: 18px;
}
.brief-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 20px 28px;
  background: #fdfbf8;
}
.case-mobile-actions {
  display: none;
}
/* Writing and the case brief are adjacent on desktop, separate tabs on mobile. */
.practice-tabs {
  display: none;
}
.timer-panel {
  display: flex;
  align-items: center;
  gap: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 16px;
  margin-block-end: 20px;
  width: max-content;
  max-width: 100%;
}
.timer-panel .label-row {
  font-size: 13px;
  color: var(--muted);
  gap: 8px;
}
.timer-panel .label-row > .icon {
  width: 17px;
  height: 17px;
}
.timer-display {
  font:
    500 22px/1.4 "Inter",
    sans-serif;
  color: var(--ink);
  letter-spacing: 1px;
}
.timer-progress {
  display: none;
}
.timer-actions {
  display: flex;
  gap: 6px;
  margin-inline-start: 8px;
}
.timer-actions .button {
  min-height: 38px;
  padding: 6px 11px;
  font-size: 12px;
}
.timer-actions .icon-button {
  width: 38px;
  height: 38px;
}
.argument-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.editor-panel {
  overflow: hidden;
  min-width: 0;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.editor-toolbar h2 {
  font-size: 18px;
}
.editor-toolbar p {
  font-size: 13px;
  margin-block-start: 4px;
}
.editor-panel > .notice {
  margin: 15px 20px 0;
}
.editor-panel textarea {
  display: block;
  border: 0;
  resize: vertical;
  min-height: 390px;
  padding: 22px;
  width: 100%;
  outline: 0;
  font-size: 17px;
  line-height: 2;
  color: var(--ink);
  background: white;
}
.editor-panel textarea::placeholder {
  color: #9c8f83;
}
.editor-panel textarea:focus {
  box-shadow: inset 3px 0 0 #d8b493;
}
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 22px;
  color: var(--muted);
  font-size: 12px;
}
.editor-footer #draft-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}
.editor-footer .icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  color: #7a8e71;
}
.editor-tip {
  padding: 10px 22px;
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  background: #fcfaf7;
}
.editor-tip > .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  margin-block-start: 4px;
}
.evaluation-action {
  padding: 20px 22px;
}
.evaluation-action .notice {
  margin-block-end: 14px;
}
.evaluation-action .text-link {
  display: flex;
  margin-block-start: 8px;
}
.argument-aside {
  min-width: 0;
}
.compact-brief {
  padding: 22px;
}
.compact-brief .brief-title {
  font-size: 18px;
  line-height: 1.8;
  margin-block: 12px;
}
.compact-brief .brief-meta {
  grid-template-columns: 1fr;
  gap: 13px;
  margin-block: 18px;
}
.compact-brief .brief-meta dd {
  font-size: 14px;
}
.compact-brief details {
  border-top: 1px solid var(--line);
  padding-block: 13px;
}
.compact-brief summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 24px;
}
.compact-brief details .prose,
.compact-brief .brief-list {
  font-size: 14px;
  margin-block-start: 12px;
}
.is-recording {
  background: #fff0ed !important;
  border-color: #cf9386 !important;
  color: #a33c30 !important;
}
.is-recording .icon {
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
/* Feedback reads like a report, not a dashboard of decorative cards. */
.result-overview {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 24px;
  margin-block: 0 26px;
}
.score-panel {
  padding: 25px;
  background: #f4e9dc;
  border: 1px solid #e5d3bf;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.score-panel > .eyebrow {
  color: #876b55;
}
.score-ring {
  background: none;
  width: auto;
  height: auto;
  margin-block: 10px 0;
}
.score-ring strong {
  font:
    600 54px/1.3 "Inter",
    sans-serif;
  color: var(--brand);
}
.score-panel > p {
  font-size: 13px;
  color: #876b55;
}
.result-case-title {
  font-size: 14px;
  font-weight: 500;
  margin-block-start: 15px;
  color: #715943;
}
.rubric-panel {
  padding: 25px 28px;
}
.rubric-panel h2 {
  font-size: 18px;
  margin-block-end: 23px;
}
.criterion {
  display: grid;
  grid-template-columns: 150px 1fr 50px;
  align-items: center;
  gap: 18px;
  margin-block: 16px;
}
.criterion-label {
  font-size: 14px;
}
.criterion-track {
  height: 6px;
  border-radius: 3px;
  background: #f1eae3;
  overflow: hidden;
}
.criterion-track > span {
  height: 100%;
  display: block;
  background: #ad7752;
  border-radius: 3px;
}
.criterion-score {
  direction: ltr;
  unicode-bidi: isolate;
  font:
    500 15px "Inter",
    sans-serif;
  text-align: end;
}
.criterion-score small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.feedback-panel {
  padding: 25px 28px;
  margin-block-end: 22px;
}
.feedback-panel h2 {
  font-size: 19px;
  margin-block-end: 14px;
}
.feedback-panel .prose {
  font-size: 15px;
}
.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-block: 24px;
}
.feedback-card {
  padding: 23px 26px;
}
.feedback-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  margin-block-end: 13px;
}
.feedback-card h3 .icon {
  color: #947451;
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.feedback-card.positive {
  border-top: 3px solid #8da28a;
}
.feedback-card.improve {
  border-top: 3px solid #c0a276;
}
.feedback-card .brief-list {
  font-size: 15px;
}
.analysis-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.analysis-heading h2 {
  margin: 0;
}
.analysis-container:not(:empty) {
  margin-block-start: 20px;
}
.analysis-item {
  border-bottom: 1px solid var(--line);
  padding-block: 15px;
}
.analysis-item:last-child {
  border: 0;
}
.analysis-item h4 {
  font-size: 15px;
  margin-block-end: 5px;
}
.analysis-item p {
  font-size: 14px;
  color: var(--muted);
}
.result-transcript {
  white-space: pre-wrap;
  max-height: 400px;
  overflow: auto;
  padding: 18px;
  background: #fbf9f6;
  border: 1px solid var(--line);
  border-radius: 7px;
  line-height: 2;
  font-size: 15px;
}
.result-actions {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-block: 24px;
}
.feedback-panel > summary {
  font-size: 16px;
  cursor: pointer;
  line-height: 1.9;
}
.feedback-panel .brief-body {
  padding: 20px 0 0;
}
/* History and account. */
.history-panel {
  margin-block-start: 25px;
  overflow: hidden;
}
.history-toolbar {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #f3efea;
  border-radius: 8px;
}
.segmented button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 8px 13px;
  font-size: 13px;
  white-space: nowrap;
}
.segmented button.selected {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 3px #43210b09;
  font-weight: 600;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d8d0c8;
  border-radius: 8px;
  padding-inline: 12px;
  background: #fff;
  max-width: 350px;
  width: 100%;
}
.search-input .icon {
  width: 18px;
  height: 18px;
  color: #918070;
}
.search-input input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font-size: 14px;
  padding-block: 9px;
}
.table-wrap {
  overflow-x: auto;
}
.history-table {
  border-collapse: collapse;
  text-align: start;
  width: 100%;
}
.history-table th {
  text-align: start;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: #fdfbf8;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
.history-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.history-table tr:last-child td {
  border: 0;
}
.case-cell {
  max-width: 330px;
}
.case-cell strong {
  font-size: 14px;
  color: var(--ink);
  display: block;
  font-weight: 600;
}
.case-cell small {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-block-start: 4px;
}
.history-cards {
  display: none;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}
.settings-panel {
  padding: 25px 28px;
}
.profile-heading {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-block: 25px;
}
.profile-heading h3 {
  font-size: 18px;
}
.profile-heading p {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.large-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--brand);
  font-size: 23px;
  font-weight: 600;
}
.account-details {
  margin: 0 0 25px;
}
.account-details > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.account-details dt {
  font-size: 13px;
  color: var(--muted);
}
.account-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  text-align: end;
}
.settings-panel > p {
  font-size: 14px;
}
.language-cards {
  display: grid;
  gap: 13px;
  margin-block: 22px;
}
.language-card {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.language-card.selected {
  border-color: #b98b66;
  background: #fdf7ef;
}
.language-card > div {
  flex: 1;
  min-width: 0;
}
.language-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 17px;
  font-weight: 600;
  flex-shrink: 0;
}
.language-card strong {
  font-size: 14px;
}
.language-card .subtle {
  display: block;
  font-size: 12px;
}
.language-card p {
  font-size: 13px;
  color: var(--muted);
  margin-block-start: 3px;
}
.language-card > .icon {
  color: var(--brand);
}
.about-hero {
  max-width: 700px;
  padding-block: 10px 30px;
}
.about-hero > .brand-mark {
  display: none;
}
.about-hero > .eyebrow {
  display: none;
}
.about-hero h1 {
  font-size: 29px;
  margin-block-end: 12px;
}
.about-hero p {
  font-size: 16px;
  line-height: 2;
  color: var(--muted);
  margin-block-end: 23px;
}
.about-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 30px;
}
.about-panel h2 {
  margin-block-end: 15px;
}
.about-panel p {
  line-height: 2;
}
.rubric-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}
.rubric-list > div:last-child {
  border: 0;
}
.rubric-list strong {
  font-family: "Inter", sans-serif;
  color: var(--brand);
}
.track-card {
  padding: 25px;
}
.track-card > .icon {
  color: var(--brand);
  margin-block-end: 15px;
}
.track-card h3 {
  margin-block-end: 7px;
}
.track-card p {
  color: var(--muted);
  font-size: 14px;
}
/* Sign-in retains the original identity without a separate promotional panel. */
.auth-page {
  background: #f8f4ef;
}
.auth-layout {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 35px;
}
.auth-main {
  width: 100%;
  max-width: 440px;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 34px;
}
.auth-language {
  position: fixed;
  inset-inline-end: 25px;
  top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  z-index: 1;
}
.auth-form-wrap {
  width: 100%;
}
.auth-logo {
  display: flex;
  justify-content: center;
  margin-block-end: 22px;
}
.auth-logo .logo-frame {
  width: 160px;
  height: 85px;
}
.auth-logo img {
  width: 325px;
}
.auth-form-wrap > h2 {
  font-size: 23px;
  margin-block-end: 8px;
}
.auth-form-wrap > .muted {
  font-size: 14px;
  line-height: 1.9;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  background: #f3eee8;
  border-radius: 8px;
  margin-block: 25px 23px;
}
.auth-tabs button {
  min-height: 44px;
  padding: 9px 10px;
  border: 0;
  background: none;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}
.auth-tabs button[aria-selected="true"] {
  background: white;
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 1px 4px #3a1b0810;
}
.auth-form-wrap .notice {
  margin-block-end: 20px;
}
.auth-form-wrap .field {
  margin-block-end: 20px;
}
.auth-form-footer {
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
  color: var(--muted);
  margin-block-start: 24px;
}
.password-input {
  position: relative;
}
.password-input input {
  padding-inline-end: 48px !important;
}
.password-input button {
  position: absolute;
  inset-block: 3px;
  inset-inline-end: 3px;
  width: 42px;
  border: 0;
  background: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-input .icon {
  width: 19px;
  height: 19px;
}
@media (max-width: 1050px) {
  .brand-caption {
    display: none;
  }
  .header-inner {
    gap: 18px;
  }
  .desktop-nav {
    gap: 0;
  }
  .desktop-nav a {
    padding-inline: 12px;
  }
  .argument-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
  }
  .criterion {
    grid-template-columns: 140px 1fr 45px;
    gap: 12px;
  }
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
  .settings-panel {
    padding: 23px;
  }
  .setup-grid.has-case {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .setup-panel {
    padding: 23px;
  }
  .workspace-footer {
    margin-inline: 28px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .header-inner {
    min-height: 68px;
    padding: 4px 18px;
  }
  .site-brand .logo-frame {
    width: 90px;
    height: 55px;
  }
  .site-brand .logo-frame img {
    width: 185px;
  }
  .desktop-nav {
    display: none;
  }
  .header-actions {
    gap: 15px;
  }
  .language-switch {
    font-size: 14px;
  }
  .avatar {
    width: 34px;
    height: 34px;
  }
  .page-content {
    padding: 25px 18px 30px;
    min-height: calc(100dvh - 220px);
  }
  .page-heading {
    gap: 10px;
    margin-block-end: 22px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 15px;
    line-height: 1.9;
  }
  .page-heading > div .eyebrow {
    display: none;
  }
  .page-heading > .button {
    font-size: 14px;
    min-height: 44px;
    padding: 9px 14px;
  }
  .workspace-footer {
    margin-inline: 18px;
    padding: 18px 0 calc(94px + env(safe-area-inset-bottom));
    font-size: 11px;
    gap: 18px;
  }
  .workspace-footer span {
    max-width: 230px;
    text-align: end;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    height: calc(71px + env(safe-area-inset-bottom));
    padding: 5px 12px calc(5px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e7ddd3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 50;
  }
  .mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    font-weight: 500;
    color: #84776b;
    min-height: 60px;
    position: relative;
  }
  .mobile-nav a > .icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
  .mobile-nav a.is-active {
    color: var(--brand);
    font-weight: 700;
  }
  .mobile-nav a.is-active:before {
    content: "";
    position: absolute;
    top: 1px;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand);
  }
  .toast {
    bottom: calc(85px + env(safe-area-inset-bottom));
    font-size: 14px;
  }
  .home-intro {
    padding-block: 0 23px;
  }
  .home-intro h1 {
    font-size: 26px;
  }
  .home-intro .welcome {
    font-size: 14px;
  }
  .home-intro > p:not(.welcome) {
    font-size: 15px;
  }
  .home-actions {
    gap: 10px;
    margin-block-start: 20px;
  }
  .home-actions > .button {
    flex: 1;
    padding-inline: 14px;
    font-size: 15px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    margin-block: 0 25px;
  }
  .stat-card {
    padding: 15px 18px;
  }
  .stat-card:nth-child(2):after {
    display: none;
  }
  .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .stat-label {
    font-size: 13px;
  }
  .stat-card strong {
    font-size: 23px;
  }
  .section {
    margin-block-start: 24px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .section-heading .text-link {
    font-size: 13px;
  }
  .session-list-row {
    align-items: flex-start;
    gap: 12px;
    padding: 19px 17px;
    flex-wrap: wrap;
  }
  .session-row-main {
    gap: 10px;
    flex: 1 1 190px;
  }
  .session-row-main h3 {
    font-size: 15px;
    line-height: 1.8;
  }
  .session-row-main > .stat-icon {
    display: none;
  }
  .session-row-main p {
    font-size: 12px;
    gap: 6px;
  }
  .session-row-end {
    gap: 12px;
    width: 100%;
    justify-content: space-between;
  }
  .session-open {
    display: none;
  }
  .session-score {
    font-size: 18px;
  }
  .help-guide {
    margin-block-start: 25px;
  }
  .help-guide summary {
    min-height: 44px;
    font-size: 15px;
  }
  .steps {
    margin-block-end: 23px;
  }
  .steps li {
    font-size: 12px;
    gap: 6px;
    line-height: 1.5;
  }
  .steps li > span {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    font-size: 11px;
  }
  .steps li:not(:last-child):after {
    margin-inline: 6px;
  }
  .setup-grid,
  .setup-grid.has-case {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .setup-panel {
    padding: 23px 21px;
  }
  .setup-panel > summary {
    font-size: 17px;
  }
  .setup-panel form {
    padding-block-start: 23px;
  }
  .field {
    margin-block-end: 25px;
    gap: 9px;
  }
  .field label,
  .role-field legend {
    font-size: 15px;
  }
  .field input:not([type="range"]),
  .field select {
    height: 52px;
    font-size: 16px;
    padding-inline: 13px;
  }
  .field small,
  .field-hint {
    font-size: 13px;
  }
  .role-field {
    gap: 9px;
  }
  .role-option > span {
    min-height: 67px;
    font-size: 14px;
    padding: 12px 10px;
    padding-inline-start: 34px;
  }
  .role-option input {
    top: 24px;
    inset-inline-start: 11px;
  }
  .field input[type="range"] {
    height: 9px;
    margin-block: 16px 10px;
  }
  .range-labels {
    font-size: 12px;
  }
  .setup-panel .button {
    min-height: 52px;
    font-size: 16px;
  }
  .case-preview {
    border-radius: 10px;
  }
  .brief-head,
  .brief-body {
    padding: 23px 21px;
  }
  .brief-head h2 {
    font-size: 22px;
    line-height: 1.8;
  }
  .brief-meta {
    grid-template-columns: 1fr 1fr;
    gap: 16px 14px;
  }
  .brief-meta dt {
    font-size: 13px;
  }
  .brief-meta dd {
    font-size: 15px;
  }
  .brief-list {
    font-size: 16px;
    line-height: 2;
  }
  .prose {
    font-size: 16px;
    line-height: 2;
  }
  .brief-section h3 {
    font-size: 18px;
  }
  .brief-actions {
    padding: 18px 21px;
    gap: 10px;
  }
  .brief-actions .button {
    font-size: 14px;
    padding-inline: 12px;
  }
  .has-generated-case .brief-actions {
    display: none;
  }
  .case-mobile-actions:not([hidden]) {
    position: fixed;
    inset-inline: 0;
    bottom: calc(71px + env(safe-area-inset-bottom));
    display: flex;
    gap: 10px;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 18px;
    z-index: 45;
  }
  .case-mobile-actions > .button {
    flex: 1;
    min-height: 48px;
  }
  .case-mobile-actions > .icon-button {
    height: 48px;
    width: 48px;
  }
  .has-generated-case .page-content {
    padding-block-end: 100px;
  }
  .practice-tabs:not([hidden]) {
    display: flex;
    border-bottom: 1px solid #ded3c7;
    margin-block: 0 16px;
    gap: 0;
    background: var(--bg);
  }
  .practice-tabs button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    font-size: 15px;
    color: var(--muted);
    padding: 8px 10px;
  }
  .practice-tabs button[aria-selected="true"] {
    border-bottom-color: var(--brand);
    color: var(--brand);
    font-weight: 700;
  }
  .practice-tabs .icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }
  .timer-panel {
    width: 100%;
    padding: 10px 12px;
    gap: 10px;
    margin-block-end: 17px;
    justify-content: space-between;
  }
  .timer-panel .label-row {
    font-size: 12px;
    gap: 5px;
  }
  .timer-panel .label-row > .icon {
    display: none;
  }
  .timer-display {
    font-size: 20px;
    letter-spacing: 0.5px;
  }
  .timer-actions {
    gap: 5px;
    margin-inline-start: 0;
  }
  .timer-actions .button {
    min-height: 40px;
    padding: 6px 9px;
    font-size: 12px;
  }
  .timer-actions .button .icon {
    display: none;
  }
  .timer-actions .icon-button {
    width: 37px;
    height: 40px;
  }
  .timer-actions .icon-button .icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
  .argument-grid {
    display: block;
  }
  .editor-toolbar {
    padding: 17px 17px;
    gap: 10px;
  }
  .editor-toolbar h2 {
    font-size: 16px;
  }
  .editor-toolbar p {
    font-size: 12px;
  }
  .editor-toolbar .button {
    font-size: 13px;
    padding: 8px 10px;
    min-height: 44px;
  }
  .editor-toolbar .button .icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
  .editor-panel textarea {
    font-size: 17px;
    line-height: 2;
    min-height: 340px;
    padding: 18px;
    resize: vertical;
  }
  .editor-footer {
    padding: 12px 17px;
    font-size: 12px;
    gap: 10px;
  }
  .editor-footer #draft-status {
    font-size: 10px;
  }
  .editor-tip {
    padding: 12px 17px;
    font-size: 12px;
    line-height: 1.8;
  }
  .evaluation-action {
    position: fixed;
    inset-inline: 0;
    bottom: calc(71px + env(safe-area-inset-bottom));
    padding: 10px 18px;
    border-top: 1px solid var(--line);
    background: white;
    z-index: 45;
  }
  .evaluation-action .button {
    min-height: 48px;
    font-size: 16px;
  }
  .evaluation-action .text-link {
    display: none;
  }
  .evaluation-action .notice {
    max-height: 140px;
    overflow: auto;
  }
  .workspace[data-page="judge"] .page-content {
    padding-block-end: 100px;
  }
  .compact-brief {
    padding: 22px 20px;
  }
  .compact-brief .brief-title {
    font-size: 20px;
  }
  .compact-brief .brief-meta {
    grid-template-columns: 1fr 1fr;
  }
  .compact-brief .brief-meta dd {
    font-size: 15px;
  }
  .compact-brief summary {
    font-size: 16px;
    min-height: 32px;
  }
  .compact-brief details {
    padding-block: 15px;
  }
  .compact-brief details .prose,
  .compact-brief .brief-list {
    font-size: 16px;
  }
  .compact-brief .text-link {
    font-size: 15px;
  }
  .is-editing .mobile-nav,
  .is-editing .evaluation-action {
    display: none;
  }
  .result-overview {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-block-end: 22px;
  }
  .score-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    text-align: start;
    padding: 20px 22px;
    gap: 2px 20px;
  }
  .score-panel > .eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 14px;
  }
  .score-ring {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
  }
  .score-ring strong {
    font-size: 43px;
  }
  .score-panel > p {
    grid-column: 1;
    grid-row: 2;
    font-size: 13px;
  }
  .result-case-title {
    grid-column: 1/-1;
    font-size: 14px;
    margin-block-start: 10px;
    border-top: 1px solid #e4d0ba;
    padding-block-start: 12px;
  }
  .rubric-panel {
    padding: 23px 21px;
  }
  .rubric-panel h2 {
    font-size: 19px;
  }
  .criterion {
    grid-template-columns: 125px minmax(0, 1fr) 44px;
    gap: 12px;
    margin-block: 19px;
  }
  .criterion-label {
    font-size: 13px;
  }
  .criterion-score {
    font-size: 14px;
  }
  .criterion-score small {
    font-size: 10px;
  }
  .feedback-panel {
    padding: 23px 21px;
    margin-block-end: 20px;
  }
  .feedback-panel h2 {
    font-size: 19px;
  }
  .feedback-panel .prose {
    font-size: 16px;
    line-height: 2;
  }
  .feedback-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-block: 20px;
  }
  .feedback-card {
    padding: 23px 21px;
  }
  .feedback-card h3 {
    font-size: 18px;
  }
  .feedback-card .brief-list {
    font-size: 16px;
  }
  .analysis-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .analysis-heading .button {
    font-size: 14px;
    min-height: 46px;
  }
  .analysis-item h4 {
    font-size: 16px;
  }
  .analysis-item p {
    font-size: 15px;
  }
  .two-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .result-transcript {
    font-size: 16px;
    line-height: 2;
  }
  .result-actions {
    display: flex;
    flex-direction: column;
  }
  .result-actions .button {
    width: 100%;
    font-size: 15px;
    min-height: 50px;
  }
  .history-toolbar {
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .segmented {
    width: 100%;
    display: grid;
    grid-template-columns: 0.6fr 1.4fr 1fr;
    gap: 3px;
  }
  .segmented button {
    font-size: 12px;
    padding: 8px 6px;
    min-height: 44px;
  }
  .search-input {
    max-width: none;
  }
  .search-input input {
    font-size: 16px;
    min-height: 48px;
  }
  .history-panel .table-wrap {
    display: none;
  }
  .history-cards {
    display: block;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .settings-panel {
    padding: 24px 21px;
  }
  .profile-heading h3 {
    font-size: 18px;
  }
  .account-details dt {
    font-size: 13px;
  }
  .account-details dd {
    font-size: 14px;
  }
  .language-card {
    padding: 16px 13px;
  }
  .language-card strong {
    font-size: 14px;
  }
  .language-card p {
    font-size: 13px;
  }
  .language-card .subtle {
    font-size: 12px;
  }
  .notice {
    font-size: 14px;
  }
  .about-hero h1 {
    font-size: 25px;
  }
  .about-hero p {
    font-size: 16px;
  }
  .about-panel {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px 21px;
  }
  .about-panel p {
    font-size: 16px;
  }
  .track-card p {
    font-size: 15px;
  }
  .auth-layout {
    padding: 80px 18px 30px;
    align-items: flex-start;
  }
  .auth-main {
    max-width: 430px;
    padding: 26px 23px;
    border-radius: 12px;
  }
  .auth-form-wrap > h2 {
    font-size: 22px;
  }
  .auth-form-wrap > .muted {
    font-size: 14px;
  }
  .auth-logo {
    margin-block-end: 20px;
  }
  .auth-logo .logo-frame {
    width: 145px;
    height: 78px;
  }
  .auth-logo img {
    width: 295px;
  }
  .auth-language {
    inset-inline-end: 18px;
    top: 16px;
    font-size: 13px;
    min-height: 42px;
  }
  .auth-tabs button {
    font-size: 14px;
    min-height: 45px;
  }
  .auth-form-wrap .field label {
    font-size: 14px;
  }
  .auth-form-footer {
    font-size: 12px;
  }
  .auth-form-wrap .button {
    min-height: 51px;
    font-size: 16px;
  }
}
@media (max-width: 370px) {
  .page-content {
    padding-inline: 15px;
  }
  .header-inner {
    padding-inline: 15px;
  }
  .home-actions {
    flex-direction: column;
  }
  .home-actions .button {
    width: 100%;
  }
  .home-intro h1 {
    font-size: 24px;
  }
  .steps li {
    font-size: 10px;
    gap: 5px;
  }
  .steps li > span {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
    font-size: 10px;
  }
  .steps li:not(:last-child):after {
    margin-inline: 4px;
  }
  .criterion {
    grid-template-columns: 112px minmax(0, 1fr) 40px;
    gap: 9px;
  }
  .criterion-label {
    font-size: 12px;
  }
  .role-option > span {
    font-size: 13px;
  }
  .timer-panel .label-row {
    font-size: 11px;
  }
  .timer-display {
    font-size: 18px;
  }
  .timer-actions .button {
    font-size: 11px;
    padding-inline: 7px;
  }
  .mobile-nav a {
    font-size: 11px;
  }
  .editor-toolbar h2 {
    font-size: 15px;
  }
  .editor-toolbar .button {
    font-size: 12px;
  }
  .editor-footer #draft-status {
    max-width: 160px;
    font-size: 10px;
  }
  .editor-footer {
    gap: 8px;
  }
  .settings-panel {
    padding: 22px 18px;
  }
  .account-details > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .account-details dd {
    text-align: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .practice-tabs:not([hidden]) {
    position: sticky;
    top: 68px;
    z-index: 35;
    scroll-margin-top: 68px;
  }
}
/* Lighter introduction: one clear starting action, then a concrete example. */
h1,
h2,
h3,
h4 {
  font-weight: 600;
}
.setup-panel > summary,
.mobile-nav a.is-active {
  font-weight: 600;
}
.header-signin {
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: nowrap;
}
.header-signin:hover {
  background: var(--tint);
}
.workspace[data-page="home"] .page-content {
  padding-block: 44px 35px;
}
.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  padding-block: 12px 36px;
}
.intro-label {
  font-size: 13px;
  font-weight: 500;
  color: #976d50;
  margin-block-end: 20px;
}
.intro-copy h1 {
  font-size: 43px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: -0.7px;
  margin-block-end: 18px;
}
html[lang="en"] .intro-copy h1 {
  font-size: 42px;
  line-height: 1.4;
  letter-spacing: -1.2px;
}
.intro-copy h1 > span {
  color: #9a6440;
}
.intro-summary {
  max-width: 490px;
  font-size: 16px;
  line-height: 2;
  color: #776c63;
}
.intro-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-block-start: 27px;
}
.start-button {
  min-height: 51px;
  padding-inline: 27px;
  font-size: 16px;
}
.intro-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--muted);
  min-height: 44px;
}
.intro-more .icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}
.intro-more:hover {
  color: var(--brand);
}
.intro-languages {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  line-height: 1.9;
  color: #8a7f75;
  margin-block-start: 21px;
  max-width: 440px;
}
.intro-languages > .icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
  margin-block-start: 4px;
}
.session-example {
  background: #fff;
  border: 1px solid #e5dbd1;
  border-radius: 14px;
  box-shadow: 0 16px 48px -34px #6c452b38;
  overflow: hidden;
  min-width: 0;
}
.example-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #fcfaf7;
  border-bottom: 1px solid #eee7df;
  font-size: 11px;
  color: #7e7064;
  line-height: 1.7;
}
.example-top small {
  font-size: 10px;
  color: #ac927d;
  margin-inline-start: auto;
  white-space: nowrap;
}
.example-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bf9773;
  flex-shrink: 0;
}
.example-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-inline: 18px;
  border-bottom: 1px solid #eee7df;
  gap: 10px;
}
.example-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  min-height: 49px;
  padding: 10px 3px;
  font-size: 12px;
  line-height: 1.5;
  color: #968779;
}
.example-tabs button > span {
  font:
    10px "Inter",
    sans-serif;
  opacity: 0.6;
}
.example-tabs button[aria-selected="true"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}
.example-content {
  padding: 25px 25px 27px;
  min-height: 305px;
}
.example-type {
  display: inline-block;
  font-size: 11px;
  color: #9a7a60;
  margin-block-end: 9px;
}
.example-content h2 {
  font-size: 21px;
  line-height: 1.6;
  margin-block-end: 13px;
  font-weight: 600;
}
.example-content > p,
.example-content blockquote {
  font-size: 14px;
  line-height: 2;
  color: #6e6259;
  margin: 0;
}
.example-content blockquote {
  background: #fcfaf7;
  border-inline-start: 2px solid #d9b798;
  padding: 16px 18px;
  border-radius: 0 6px 6px 0;
}
.example-evidence {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 17px;
  margin-top: 18px;
  border-top: 1px solid #eee7df;
  font-size: 12px;
  line-height: 1.9;
  color: #8c7765;
}
.example-evidence > .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  margin-block-start: 3px;
}
.example-footnote {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 22px;
  font-size: 11px;
  color: #a3907f;
}
.example-footnote > .icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.how-section {
  padding-block: 32px 38px;
  border-top: 1px solid #e9e1d8;
  scroll-margin-top: 90px;
}
.how-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: 25px;
}
.how-heading h2 {
  font-size: 21px;
  font-weight: 600;
}
.how-heading p {
  font-size: 13px;
  color: #8a7b6d;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.how-steps article {
  position: relative;
  padding-inline-start: 38px;
}
.how-number {
  position: absolute;
  inset-inline-start: 0;
  top: 5px;
  font:
    12px "Inter",
    sans-serif;
  color: #bf9d7c;
}
.how-steps h3 {
  font-size: 16px;
  margin-block-end: 7px;
  font-weight: 600;
}
.how-steps p {
  font-size: 13px;
  line-height: 1.9;
  color: #88796d;
  max-width: 245px;
}
.assessment-summary {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 23px 26px;
  background: #f4eee5;
  border-radius: 10px;
}
.assessment-summary h2 {
  font-size: 17px;
  margin-block-end: 4px;
  font-weight: 600;
}
.assessment-summary p {
  font-size: 13px;
  color: #8a7563;
  line-height: 1.9;
  max-width: 660px;
}
.assessment-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a37c57;
  flex-shrink: 0;
}
.assessment-symbol > .icon {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}
.assessment-summary .text-link {
  margin-inline-start: auto;
  white-space: nowrap;
  font-size: 13px;
}
.resume-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  border: 1px solid #e5dbcf;
  border-radius: 9px;
  background: #fff;
  margin-block: 0 25px;
}
.resume-session > div {
  min-width: 0;
}
.resume-session span {
  font-size: 12px;
  color: #9d7a5c;
}
.resume-session p {
  font-size: 14px;
  margin-block-start: 3px;
  overflow-wrap: anywhere;
}
.resume-session .button {
  flex-shrink: 0;
}
@media (max-width: 1050px) {
  .intro-section {
    gap: 35px;
  }
  .intro-copy h1 {
    font-size: 36px;
  }
  html[lang="en"] .intro-copy h1 {
    font-size: 36px;
  }
  .intro-summary {
    font-size: 15px;
  }
  .intro-actions {
    gap: 18px;
  }
  .example-content {
    padding: 22px;
    min-height: 315px;
  }
  .example-content h2 {
    font-size: 19px;
  }
  .assessment-summary .text-link {
    white-space: normal;
    min-width: 100px;
  }
  .how-steps {
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .visitor .workspace-footer {
    padding-bottom: 28px;
  }
  .header-signin {
    font-size: 12px;
    padding-inline: 10px;
    min-height: 40px;
  }
  .visitor .header-actions {
    gap: 12px;
  }
  .visitor .language-switch {
    font-size: 12px;
    gap: 5px;
  }
  .workspace[data-page="home"] .page-content {
    padding-block: 27px 25px;
  }
  .intro-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 0 32px;
  }
  .intro-label {
    font-size: 12px;
    margin-block-end: 14px;
  }
  .intro-copy h1,
  html[lang="en"] .intro-copy h1 {
    font-size: 32px;
    line-height: 1.65;
    letter-spacing: -0.6px;
    margin-block-end: 13px;
  }
  html[lang="en"] .intro-copy h1 {
    font-size: 32px;
    line-height: 1.4;
    letter-spacing: -0.8px;
  }
  .intro-summary {
    font-size: 15px;
    line-height: 1.95;
    max-width: 470px;
  }
  .intro-actions {
    margin-block-start: 22px;
    gap: 18px;
    flex-wrap: nowrap;
  }
  .start-button {
    font-size: 15px;
    min-height: 50px;
    padding-inline: 20px;
    flex: 1;
    max-width: 240px;
  }
  .intro-more {
    font-size: 12px;
    gap: 5px;
    white-space: nowrap;
  }
  .intro-languages {
    font-size: 11px;
    line-height: 1.9;
    margin-block-start: 16px;
  }
  .intro-languages > .icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
  .session-example {
    border-radius: 12px;
    box-shadow: none;
  }
  .example-top {
    padding: 12px 17px;
    font-size: 11px;
  }
  .example-top small {
    font-size: 9px;
  }
  .example-tabs {
    padding-inline: 15px;
    gap: 7px;
  }
  .example-tabs button {
    font-size: 12px;
    min-height: 47px;
  }
  .example-content {
    min-height: 300px;
    padding: 22px;
  }
  .example-content h2 {
    font-size: 20px;
    margin-block-end: 12px;
  }
  .example-content > p,
  .example-content blockquote {
    font-size: 14px;
    line-height: 2;
  }
  .example-type {
    font-size: 11px;
  }
  .example-evidence {
    font-size: 12px;
    line-height: 1.9;
  }
  .how-section {
    padding-block: 26px 29px;
  }
  .how-heading {
    display: block;
    margin-block-end: 21px;
  }
  .how-heading h2 {
    font-size: 21px;
    margin-block-end: 5px;
  }
  .how-heading p {
    font-size: 13px;
    line-height: 1.9;
  }
  .how-steps {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .how-steps article {
    padding-inline-start: 37px;
  }
  .how-steps h3 {
    font-size: 16px;
    margin-block-end: 4px;
  }
  .how-steps p {
    font-size: 13px;
    max-width: none;
  }
  .how-number {
    top: 5px;
  }
  .assessment-summary {
    padding: 22px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .assessment-summary h2 {
    font-size: 16px;
  }
  .assessment-summary p {
    font-size: 13px;
  }
  .assessment-symbol {
    display: none;
  }
  .assessment-summary .text-link {
    margin: 0;
    min-height: 40px;
    font-size: 13px;
  }
  .resume-session {
    padding: 16px;
    gap: 15px;
    align-items: flex-start;
    margin-block-end: 25px;
    flex-wrap: wrap;
  }
  .resume-session p {
    font-size: 13px;
  }
  .resume-session .button {
    font-size: 12px;
  }
}
@media (max-width: 370px) {
  .intro-copy h1,
  html[lang="en"] .intro-copy h1 {
    font-size: 28px;
  }
  .intro-summary {
    font-size: 14px;
  }
  .intro-actions {
    gap: 12px;
  }
  .start-button {
    padding-inline: 14px;
    font-size: 14px;
  }
  .intro-more {
    font-size: 11px;
  }
  .intro-more > .icon {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }
  .example-tabs button {
    font-size: 11px;
  }
  .example-content {
    padding: 20px;
  }
}
