:root {
  color-scheme: light;
  --ink: #1d2340;
  --muted: #788096;
  --line: #e9ebf2;
  --paper: #fff;
  --wash: #f5f7fb;
  --purple: #6d63d9;
  --purple-dark: #554bbc;
  --mint: #e9f7f1;
  --shadow: 0 12px 35px rgba(40, 49, 88, .055);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.page-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8eaf1; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #e9e7ff; color: var(--purple); font: 800 21px 'Segoe UI', Arial, sans-serif; }
.brand strong, .brand small { display: block; }
.brand strong { font: 800 17px 'Segoe UI', Arial, sans-serif; letter-spacing: -.4px; }
.brand small { color: var(--muted); font-size: 12px; }
.account-bar { display: flex; gap: 16px; align-items: center; }
.account-name { font-weight: 700; }

.auth-view { min-height: 580px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; padding: 48px 6%; }
.auth-intro h1, .welcome-row h1 { margin: 20px 0 12px; font: 800 clamp(36px, 5vw, 52px)/1.12 'Segoe UI', Arial, sans-serif; letter-spacing: -2px; }
.auth-intro h1 span { color: var(--purple); }
.auth-intro > p { max-width: 430px; color: var(--muted); font-size: 17px; }
.eyebrow { color: #7772c7; font-size: 10px; font-weight: 800; letter-spacing: 1.25px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 100%; background: #45bf8d; box-shadow: 0 0 0 4px #dff5eb; }
.privacy-note { margin-top: 40px; color: #626a80; font-size: 13px; }
.privacy-note span { margin-right: 7px; color: var(--purple); font-size: 18px; vertical-align: -1px; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.auth-card { max-width: 440px; width: 100%; padding: 30px; }
.panel-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 25px; }
.icon-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--purple); background: #f0efff; font-size: 21px; }
.panel h2, .section-heading h2 { margin: 4px 0 0; font: 750 20px 'Segoe UI', Arial, sans-serif; letter-spacing: -.45px; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
label.field-label, .auth-card > label { display: block; margin: 16px 0 7px; color: #444c64; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #e4e6ee; border-radius: 10px; outline: none; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input, select { min-height: 44px; padding: 0 12px; }
textarea { display: block; padding: 12px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: #9c95ef; box-shadow: 0 0 0 3px rgba(109, 99, 217, .12); }
input::placeholder, textarea::placeholder { color: #a1a7b6; }
.field-hint { margin: 11px 0 0; color: #868da0; font-size: 11px; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 700; transition: background .15s, transform .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { background: var(--purple); color: white; }
.button-primary:hover:not(:disabled) { background: var(--purple-dark); }
.button-secondary { border-color: #e6e3ff; background: #f5f4ff; color: #5d55bf; }
.button-secondary:hover:not(:disabled) { background: #eeecff; }
.button-quiet { border-color: #e8eaf0; background: #fff; color: #646c81; }
.button-success { background: #e8f7ef; color: #268259; }
.full-width { width: 100%; }
.auth-card .button { margin-top: 22px; min-height: 48px; }

.app-view { padding: 44px 0 24px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.welcome-row h1 { margin: 7px 0 2px; font-size: 36px; letter-spacing: -1.5px; }
.welcome-row h1 span { color: var(--purple); }
.welcome-row p { margin: 0; color: var(--muted); }
.today-badge { padding: 10px 14px; border: 1px solid #eceaff; border-radius: 10px; background: #f1f0ff; color: #5f58bb; font-size: 11px; font-weight: 700; }
.today-badge span { margin-right: 6px; }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
.summary-card { display: flex; gap: 14px; align-items: center; min-height: 108px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.summary-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; font-size: 18px; }
.summary-icon.purple { background: #f0efff; color: #6f65d6; }
.summary-icon.amber { background: #fff4e2; color: #d49a37; }
.summary-icon.green { background: #e8f7ee; color: #319366; }
.summary-card strong, .summary-label, .summary-card small { display: block; }
.summary-label { color: #8a90a1; font-size: 9px; font-weight: 800; letter-spacing: .9px; }
.summary-card strong { margin: -1px 0; font: 800 23px 'Segoe UI', Arial, sans-serif; }
.summary-card small { color: #969caf; font-size: 10px; }

.workspace-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; }
.main-column, .side-column { display: grid; gap: 16px; }
.section-panel { padding: 21px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-heading h2 { font-size: 18px; }
.section-count { color: #9298a9; font-size: 10px; }
.inline-form { display: grid; grid-template-columns: 1fr minmax(150px, .75fr) auto; gap: 9px; }
.inline-form input { min-width: 0; }
.subject-list { margin-top: 12px; }
.subject-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid #f0f1f5; }
.subject-row:last-child { border-bottom: 0; }
.subject-symbol { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; font: 750 14px 'Segoe UI', Arial, sans-serif; }
.subject-color-0 { color: #695fd0; background: #efedff; }
.subject-color-1 { color: #368a70; background: #e9f7f1; }
.subject-color-2 { color: #c18435; background: #fff3e4; }
.subject-color-3 { color: #4f80b4; background: #eaf3fb; }
.subject-details { display: grid; min-width: 0; flex: 1; }
.subject-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.subject-details span { color: #969caf; font-size: 10px; }
.subject-action { border: 0; background: transparent; color: #7066cd; font-size: 10px; font-weight: 700; }
.list-empty { margin: 12px 0 0; color: #8d94a6; font-size: 12px; }

.upload-form select, .learning-panel select { margin-bottom: 12px; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 145px; padding: 18px; border: 1px dashed #c9c6eb; border-radius: 13px; background: #fafaff; color: #555d73; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.drop-zone:hover, .drop-zone.dragging { border-color: #8279df; background: #f3f2ff; }
.drop-zone strong { margin-top: 6px; font-size: 12px; }
.drop-zone > span:not(.upload-icon) { color: #9399aa; font-size: 10px; }
.upload-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #eeedff; color: #6d63d9; font-size: 20px; }
.drop-zone input { display: none; }
.upload-status { min-height: 17px; margin-top: 9px; color: #788096; font-size: 11px; }
.processing-indicator { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 7px; padding: 11px 12px; border: 1px solid #e8e6fb; border-radius: 10px; background: #faf9ff; color: #57528d; }
.processing-spinner { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; border: 2px solid #e1def9; border-top-color: #7168d5; border-radius: 50%; animation: processing-spin .8s linear infinite; }
.processing-details { display: grid; width: 100%; gap: 7px; font-size: 11px; }
.processing-details progress { width: 100%; height: 6px; border: 0; border-radius: 99px; appearance: none; background: #e9e7f7; }
.processing-details progress::-webkit-progress-bar { border-radius: 99px; background: #e9e7f7; }
.processing-details progress::-webkit-progress-value { border-radius: 99px; background: #746bd6; transition: width .2s ease; }
.processing-details progress::-moz-progress-bar { border-radius: 99px; background: #746bd6; }
@keyframes processing-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .processing-spinner { animation-duration: 2s; } }
.document-list { margin-top: 8px; }
.document-list-heading { margin: 11px 0 3px; color: #7772c7; font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.document-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #f0f1f5; }
.document-row:last-child { border-bottom: 0; }
.document-details { display: grid; min-width: 0; flex: 1; }
.document-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.document-details span { color: #969caf; font-size: 9px; }
.pdf-workspace { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.pdf-workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pdf-workspace-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.pdf-workspace .field-hint { margin: 9px 0; }
.pdf-workspace .field-label { margin-top: 14px; }
.text-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.text-tools span { color: #8c92a3; font-size: 10px; }
.text-tools button { flex: 0 0 auto; }
#ocr-button { margin-bottom: 8px; }
.local-ai-panel { margin-top: 18px; padding: 16px; border: 1px solid #e8e6fb; border-radius: 12px; background: #fbfaff; }
.local-ai-panel h3 { margin: 4px 0 7px; color: var(--ink); font-size: 14px; }
.local-ai-panel > p { margin: 7px 0; color: #747b8e; font-size: 10px; }
.ai-links { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 10px 0; }
.ai-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid #e6e3ff; border-radius: 9px; background: #f5f4ff; }
.ai-links a { color: #5f57bc; font-size: 10px; font-weight: 700; text-decoration: none; }
.ai-links a:hover { text-decoration: underline; }
.ai-steps { display: grid; gap: 5px; padding-left: 19px; color: #646c81; font-size: 10px; }
.ai-steps code { padding: 2px 4px; border-radius: 4px; background: #f0eff7; color: #4c476f; font-size: 9px; }
.local-ai-panel > .button { margin: 7px 0; }
.cloud-ai-panel { margin: 14px 0; padding: 14px; border: 1px solid #e8e6fb; border-radius: 12px; background: #faf9ff; }
.cloud-ai-panel h3 { margin: 3px 0 7px; font-size: 15px; }
.cloud-ai-panel > p { color: #70778c; font-size: 11px; }
.cloud-ai-consent { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; color: #565e73; font-size: 11px; }
.cloud-ai-consent input { width: 17px; min-height: 17px; flex: 0 0 auto; margin: 2px 0 0; }
.cloud-ai-panel > .button { margin: 6px 0; }
.local-ai-panel > input[type="file"] { padding: 8px; font-size: 10px; }
.ai-preview { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e8e6fb; }
.ai-preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 11px; }
.ai-card-draft { margin: 8px 0; padding: 10px; border: 1px solid #e9eaf1; border-radius: 9px; background: #fff; }
.ai-card-draft-top { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: #82889a; font-size: 9px; }
.ai-card-draft-top input[type="checkbox"] { width: 15px; min-height: 15px; }
.ai-card-draft label { display: block; margin: 5px 0 3px; color: #687087; font-size: 9px; font-weight: 700; }
.ai-card-draft textarea { min-height: 50px; padding: 7px; font-size: 10px; }
.ai-source-page { max-width: 100px; min-height: 36px; padding: 4px 7px; font-size: 10px; }
.ai-source-preview { display: block; max-width: 100%; max-height: 220px; margin: 8px auto; border: 1px solid var(--line); border-radius: 8px; }
.card-source-preview { display: block; max-width: 100%; max-height: 260px; margin: 0 auto 10px; border: 1px solid var(--line); border-radius: 9px; }
.card-source-error { color: #a33b3b; font-size: 11px; }
.ai-details { margin-top: 10px; border-top: 1px solid #e8e6fb; padding-top: 9px; color: #757c8e; font-size: 10px; }
.ai-details summary { color: #6861ba; cursor: pointer; font-weight: 700; }
.ai-details p { margin: 8px 0 0; }
.ai-details a { color: #5f57bc; }
.update-check { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.update-check h3 { margin: 0 0 6px; font-size: 13px; }
.update-check > p:not(.field-hint) { color: #747b8e; font-size: 10px; }
.update-check .button { margin-top: 7px; }
.update-check a { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.learning-panel > h2, .quiz-panel > h2, .admin-panel > h2 { margin-bottom: 15px; }
.empty-state { display: flex; min-height: 135px; flex-direction: column; align-items: center; justify-content: center; padding: 18px; border: 1px dashed #e6e6ef; border-radius: 12px; text-align: center; }
.empty-state > span:first-child { margin-bottom: 6px; color: #8880dd; font-size: 21px; }
.empty-state strong { font-size: 12px; }
.empty-state > span:last-child { max-width: 210px; margin-top: 4px; color: #969caf; font-size: 10px; }
.study-card { min-height: 190px; padding: 15px; border: 1px solid #eceaff; border-radius: 13px; background: linear-gradient(145deg, #fbfaff, #f8f8ff); }
.study-card-top { display: flex; justify-content: space-between; align-items: center; }
.tag { padding: 4px 7px; border-radius: 6px; background: #eeedff; color: #655bc2; font-size: 8px; font-weight: 800; letter-spacing: .5px; }
.card-position { color: #999fb0; font-size: 10px; }
.card-front { display: grid; min-height: 78px; place-items: center; padding: 11px 4px; text-align: center; font: 700 16px/1.35 'Segoe UI', Arial, sans-serif; }
.card-back { padding: 10px 4px; color: #535b71; text-align: center; font-size: 13px; }
.answer-area { border-top: 1px solid #e9e7fa; }
.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.study-card > .button { margin-top: 6px; }
.quiz-panel > p { margin: -6px 0 14px; color: #888fa1; font-size: 11px; }
.quiz-area { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.quiz-question { margin-bottom: 12px; font: 700 14px/1.4 'Segoe UI', Arial, sans-serif; }
.quiz-options { display: grid; gap: 7px; }
.quiz-option { padding: 10px 12px; border: 1px solid #e8e9f0; border-radius: 9px; background: #fff; color: #454d64; text-align: left; font-size: 11px; }
.quiz-option:hover:not(:disabled) { border-color: #aaa4ed; background: #faf9ff; }
.quiz-option.option-correct { border-color: #72c59b; background: #edfbf3; color: #287c53; }
.quiz-option.option-wrong { border-color: #e6a3a3; background: #fff2f2; color: #aa4848; }
.quiz-feedback { color: #555d72; font-size: 11px; }
.admin-panel form { display: grid; gap: 4px; }
.admin-panel .field-label { margin-bottom: 4px; }
.admin-panel .button { margin-top: 12px; }
.admin-panel .field-hint { overflow-wrap: anywhere; }
.admin-panel h3 { margin: 14px 0 6px; font-size: 13px; }
.admin-tools { display: grid; gap: 12px; margin-top: 16px; }
.admin-tools form, #organization-form, #existing-member-form { padding-top: 12px; border-top: 1px solid var(--line); }
.organization-user-list { display: grid; gap: 7px; margin-top: 10px; }
.organization-user-row { display: grid; grid-template-columns: minmax(0, 1fr) 1fr auto auto; gap: 6px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.organization-user-row strong { overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.organization-user-row select, .organization-user-row button { min-height: 34px; font-size: 10px; }
.permission-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 10px; }
.permission-option input { width: 16px; min-height: 16px; }
.progress-report-panel { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.progress-report-row { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.progress-report-row strong { font-size: 10px; }
.read-only-learning-card { margin: 8px 0; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fcfcff; font-size: 10px; }
.read-only-learning-card p { margin: 6px 0 0; color: #60677b; }
.create-card-panel { margin-top: 16px; }
.card-form { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-items: end; }
.card-form .field-label { margin: 0 0 6px; }
.card-form .button { min-height: 44px; }
.vocabulary-duplicate-status { grid-column: 1 / -1; margin: 0; color: #a04444; font-weight: 700; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; max-width: min(400px, calc(100% - 48px)); padding: 13px 17px; border: 1px solid #dcd9fb; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(31, 38, 72, .14); color: #4f4a91; font-size: 12px; }
.toast-error { border-color: #f0d0d0; color: #a04444; }
footer { display: flex; justify-content: space-between; gap: 12px; padding: 22px 0 28px; color: #a0a5b3; font-size: 10px; }
footer span:first-child { color: #747b8e; font-weight: 700; }

@media (max-width: 820px) {
  .auth-view { grid-template-columns: 1fr; gap: 30px; padding: 45px 4%; }
  .auth-card { max-width: none; }
  .auth-intro h1 { font-size: 42px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: 1fr 1fr; align-items: start; }
  .learning-panel { grid-row: span 2; }
}

@media (max-width: 580px) {
  .page-shell { width: min(100% - 28px, 460px); }
  .topbar { height: 72px; }
  .brand-mark { width: 37px; height: 37px; }
  .account-bar { gap: 7px; }
  .account-name { max-width: 82px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .account-bar .button { min-height: 36px; padding: 0 10px; }
  .app-view { padding-top: 31px; }
  .welcome-row { align-items: start; flex-direction: column; }
  .welcome-row h1 { font-size: 31px; }
  .today-badge { align-self: flex-start; }
  .summary-grid { grid-template-columns: 1fr; gap: 9px; }
  .summary-card { min-height: 80px; }
  .side-column { grid-template-columns: 1fr; }
  .learning-panel { grid-row: auto; }
  .section-panel { padding: 17px; }
  .inline-form { grid-template-columns: 1fr; }
  .organization-user-row { grid-template-columns: 1fr 1fr; }
  .inline-form button { width: 100%; }
  .card-form { grid-template-columns: 1fr; }
  .text-tools { align-items: stretch; flex-direction: column; }
  .pdf-workspace-heading { align-items: stretch; flex-direction: column; }
  footer { flex-direction: column; gap: 3px; }
}

.module-hidden { display: none !important; }
body { background: radial-gradient(circle at 85% 0, #eae8ff 0, transparent 32rem), #f5f7fb; }
.topbar { border-color: #dedff0; }
.brand-mark { background: linear-gradient(145deg, #7164dd, #968be9); color: #fff; box-shadow: 0 8px 18px rgba(109, 99, 217, .22); }
.panel, .summary-card { border-color: #e8e8f4; box-shadow: 0 12px 32px rgba(46, 40, 100, .06); }
.module-navigation { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.module-nav-button { min-height: 40px; padding: 8px 14px; border: 1px solid #e4e3f1; border-radius: 12px; background: #fff; color: #555d73; font-weight: 700; font-size: 12px; }
.module-nav-button:hover, .module-nav-button[aria-current="page"] { border-color: #756cdd; background: #eeecff; color: #5146aa; }
.module-nav-button:focus-visible, .dashboard-tile:focus-visible, .button:focus-visible { outline: 3px solid #7168d5; outline-offset: 3px; }
.dashboard-home { padding: clamp(20px, 4vw, 36px); border: 1px solid #e8e6f5; border-radius: 22px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.dashboard-heading h2 { margin: 4px 0; font-size: 24px; letter-spacing: -.5px; }
.dashboard-heading p, .dashboard-settings p { margin: 0; color: #646c81; }
.dashboard-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.dashboard-tile { display: flex; align-items: center; gap: 14px; min-height: 118px; padding: 19px; border: 1px solid #e9e7f5; border-radius: 16px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 6px 20px rgba(49, 42, 105, .05); transition: transform .15s, border-color .15s, box-shadow .15s; }
.dashboard-tile:hover { transform: translateY(-2px); border-color: #bcb6ed; box-shadow: 0 12px 24px rgba(49, 42, 105, .10); }
.dashboard-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px; color: #5d51bc; background: #eeecff; font-weight: 800; font-size: 19px; }
.dashboard-tile strong, .dashboard-tile small { display: block; }
.dashboard-tile strong { font-size: 15px; }
.dashboard-tile small { margin-top: 4px; color: #646c81; font-size: 12px; line-height: 1.4; }
.dashboard-arrow { margin-left: auto; color: #746bd6; font-size: 20px; }
.dashboard-settings { margin: 0 0 22px; padding: 18px; border: 1px solid #e7e5f6; border-radius: 14px; background: #faf9ff; }
.dashboard-options { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 14px 0; }
.dashboard-option { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.dashboard-option input { width: 18px; min-height: 18px; accent-color: var(--purple); }
.workspace-grid { display: block; }
.main-column, .side-column { grid-template-columns: 1fr; }
.side-column { margin-top: 0; }
.learning-panel { grid-row: auto; }
.create-card-panel { margin-top: 0; }
@media (max-width: 580px) {
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-tile, .button { transition: none; }
}
