:root {
  --ink: #10231d;
  --ink-soft: #53645f;
  --forest: #0b5f4b;
  --forest-dark: #084b3c;
  --mint: #dff4e9;
  --mint-soft: #f0f8f4;
  --cream: #f5f3ec;
  --paper: #fffefa;
  --line: #dce4df;
  --error: #b42318;
  --shadow: 0 24px 70px rgba(20, 46, 38, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--cream);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.prototype-notice {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  padding: 7px 16px;
  color: #e9fff6;
  background: var(--ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-align: center;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  min-height: 100vh;
  padding-top: 29px;
}

.brand-panel {
  position: relative;
  display: flex;
  min-height: calc(100vh - 29px);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 44px clamp(38px, 6vw, 94px) 56px;
  color: #f7fff9;
  background:
    radial-gradient(circle at 85% 18%, rgba(143, 221, 181, 0.22), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(81, 167, 133, 0.2), transparent 31%),
    #0b2f27;
}

.brand-panel::after {
  position: absolute;
  right: -140px;
  bottom: -170px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 68px rgba(255, 255, 255, 0.025),
    0 0 0 140px rgba(255, 255, 255, 0.018);
  content: "";
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #b9f0d2;
}

.brand-mark svg {
  width: 25px;
  fill: none;
  stroke: #0b493a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 70px 0 54px;
}

.eyebrow,
.section-kicker,
.preview-label {
  margin: 0 0 12px;
  color: #82d9ad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-description {
  max-width: 590px;
  margin: 28px 0 32px;
  color: #c8ddd5;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
}

.value-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e6f4ed;
  font-size: 15px;
}

.check {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(185, 240, 210, 0.35);
  border-radius: 50%;
  color: #b9f0d2;
  font-size: 12px;
}

.preview-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
}

.preview-header,
.preview-footer,
.study-meta,
.exam-topline,
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-header > div {
  display: grid;
  gap: 3px;
}

.preview-label {
  margin: 0;
  color: #93b7a9;
  font-size: 10px;
}

.time-pill,
.status-pill,
.days-left {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(185, 240, 210, 0.14);
  color: #c7f5dd;
  font-size: 12px;
  font-weight: 750;
}

.preview-task {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.task-number {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #153c31;
  background: #b9f0d2;
  font-size: 12px;
  font-weight: 800;
}

.preview-task div {
  display: grid;
  gap: 4px;
}

.preview-task span:last-child,
.preview-footer span {
  color: #a9c4ba;
  font-size: 12px;
}

.progress-track {
  height: 6px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: #9ce4be;
}

.access-panel {
  display: grid;
  min-height: calc(100vh - 29px);
  place-items: center;
  padding: 54px clamp(28px, 5vw, 78px);
  background:
    linear-gradient(rgba(16, 35, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 35, 29, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

.access-card {
  width: min(100%, 480px);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(16, 35, 29, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 254, 250, 0.96);
  box-shadow: var(--shadow);
}

.access-heading .eyebrow {
  color: var(--forest);
}

.access-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.access-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 30px 0 26px;
  padding: 4px;
  border-radius: 13px;
  background: #eef2ef;
}

.auth-tab {
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: #66746f;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}

.auth-tab.is-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 3px 12px rgba(16, 35, 29, 0.08);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.consent {
  color: #34453f;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cfd9d4;
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #61706b 50%),
    linear-gradient(135deg, #61706b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.field input:focus,
.field select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(11, 95, 75, 0.1);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 78px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  padding: 5px;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  transform: translateY(-50%);
}

.field-hint,
.field-error {
  min-height: 14px;
  color: #7a8883;
  font-size: 11px;
}

.field-error {
  min-height: 0;
  color: var(--error);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 500;
  line-height: 1.45;
}

.consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--forest);
}

.primary-button,
.secondary-button {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 13px;
  font-weight: 780;
  transition: transform 150ms ease, background 150ms ease;
}

.primary-button {
  color: #f5fff9;
  background: var(--forest);
}

.primary-button:hover {
  background: var(--forest-dark);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.form-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--forest);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.form-message.is-error {
  color: var(--error);
}

.privacy-note {
  margin: 12px 0 0;
  color: #83908b;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.onboarding {
  min-height: 100vh;
  padding: 29px 24px 70px;
  background:
    radial-gradient(circle at 80% 5%, rgba(114, 196, 154, 0.16), transparent 26%),
    var(--cream);
}

.onboarding-header {
  display: flex;
  width: min(100%, 1120px);
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 25px 0;
}

.brand--onboarding {
  color: var(--ink);
}

.onboarding-shell {
  width: min(100%, 780px);
  margin: 30px auto 0;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(16, 35, 29, 0.1);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.onboarding-progress {
  margin-bottom: 48px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: #71807b;
  font-size: 12px;
}

.progress-copy strong {
  color: var(--ink);
}

.onboarding-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4ebe7;
}

.onboarding-track span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: var(--forest);
  transition: width 220ms ease;
}

.onboarding-copy {
  margin-bottom: 32px;
}

.onboarding-copy .eyebrow {
  color: var(--forest);
}

.onboarding-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.onboarding-copy > p:last-child {
  max-width: 610px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.onboarding-fields {
  display: grid;
  gap: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 16px;
}

.level-fieldset {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.level-fieldset legend {
  margin-bottom: 10px;
  color: #34453f;
  font-size: 13px;
  font-weight: 700;
}

.level-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.level-options label {
  cursor: pointer;
}

.level-options input {
  position: absolute;
  opacity: 0;
}

.level-options span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #5e6c67;
  font-size: 13px;
  font-weight: 700;
}

.level-options input:checked + span {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 1px var(--forest);
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.availability-grid label {
  display: grid;
  grid-template-columns: 1fr 74px 38px;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #364740;
  font-size: 13px;
  font-weight: 700;
}

.availability-grid input {
  width: 100%;
  padding: 7px 5px;
  border: 0;
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #eef3f0;
  font-weight: 750;
  text-align: center;
}

.availability-grid input:focus {
  box-shadow: 0 0 0 2px rgba(11, 95, 75, 0.18);
}

.availability-grid small {
  color: #87948f;
  font-size: 10px;
  font-weight: 600;
}

.availability-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 15px 17px;
  border-radius: 12px;
  color: var(--forest-dark);
  background: var(--mint-soft);
  font-size: 13px;
}

.onboarding-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.onboarding-actions button {
  min-width: 145px;
  padding-inline: 20px;
}

.dashboard {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 100vh;
  padding-top: 29px;
  background: #f3f5f1;
}

.sidebar {
  position: sticky;
  top: 29px;
  display: flex;
  height: calc(100vh - 29px);
  flex-direction: column;
  padding: 28px 20px;
  color: #e8f6ef;
  background: #0d2b24;
}

.brand--dashboard {
  margin: 0 10px 40px;
}

.brand--dashboard .brand-mark {
  width: 34px;
  height: 34px;
}

.sidebar-nav {
  display: grid;
  gap: 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  color: #adc4bb;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-item.is-active,
.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item span {
  width: 20px;
  font-size: 17px;
  text-align: center;
}

.sidebar-bottom {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.export-link {
  padding: 10px 11px;
  border-radius: 10px;
  color: #adc4bb;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.export-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.logout-button {
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  color: #bfd2cb;
  background: transparent;
  font-size: 13px;
}

.dashboard-main {
  min-width: 0;
  padding: 42px clamp(24px, 4vw, 64px) 60px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.dashboard-date {
  color: #71807b;
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
}

.dashboard-header h1 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #d7f4e5;
  background: var(--forest);
  font-weight: 800;
}

.mobile-menu {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.page-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.page-heading p {
  margin: 9px 0 0;
  color: var(--ink-soft);
}

.page-action {
  min-width: 170px;
  padding-inline: 20px;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.subject-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #dce5e0;
  border-radius: 19px;
  background: var(--paper);
}

.subject-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--subject-color, var(--forest));
  content: "";
}

.subject-card-top,
.subject-card-footer,
.archived-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.subject-card-label {
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.subject-menu-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #586761;
  background: transparent;
  font-size: 18px;
}

.subject-card h3 {
  margin: 17px 0 8px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.subject-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.subject-card-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #5f6d68;
  background: #eff3f0;
  font-size: 11px;
  font-weight: 700;
}

.subject-card-footer {
  padding-top: 16px;
  border-top: 1px solid #e6ebe8;
}

.subject-card-footer > div {
  display: grid;
  gap: 4px;
}

.subject-card-footer span {
  color: #7c8984;
  font-size: 11px;
}

.subject-card-footer strong {
  font-size: 13px;
}

.archive-button,
.restore-button {
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  color: #5b6a64;
  background: #eef2ef;
  font-size: 11px;
  font-weight: 750;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 50px 24px;
  border: 1px dashed #bdcbc5;
  border-radius: 19px;
  color: var(--ink-soft);
  background: rgba(255, 254, 250, 0.5);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 18px;
}

.archived-section {
  margin-top: 32px;
  padding: 22px;
  border: 1px solid #dce4df;
  border-radius: 18px;
  background: rgba(255, 254, 250, 0.66);
}

.archived-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.archived-heading h3 {
  margin: 0;
  font-size: 17px;
}

.archived-list {
  display: grid;
  gap: 8px;
}

.archived-item {
  padding: 13px 14px;
  border-radius: 11px;
  background: #eef2ef;
}

.archived-item div {
  display: grid;
  gap: 3px;
}

.archived-item span {
  color: #78857f;
  font-size: 11px;
}

.subject-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(16, 35, 29, 0.12);
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(10, 31, 24, 0.24);
}

.subject-dialog::backdrop {
  background: rgba(7, 25, 20, 0.55);
  backdrop-filter: blur(3px);
}

.subject-dialog form {
  padding: clamp(23px, 5vw, 38px);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.dialog-heading .eyebrow {
  color: var(--forest);
}

.dialog-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.dialog-heading p:last-child {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.dialog-close {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #65736e;
  background: transparent;
  font-size: 23px;
}

.dialog-fields {
  display: grid;
  gap: 18px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.dialog-actions button {
  min-width: 140px;
  padding-inline: 18px;
}

.today-card,
.exam-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #dfe6e1;
  border-radius: 22px;
  background: var(--paper);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-kicker {
  margin-bottom: 7px;
  color: var(--forest);
  font-size: 10px;
}

.section-heading h2,
.now-card h2,
.exam-card h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.status-pill {
  color: #52625c;
  background: #edf1ee;
}

.study-list {
  display: grid;
  gap: 10px;
}

.study-item {
  display: grid;
  grid-template-columns: 10px 1fr 40px;
  gap: 16px;
  align-items: center;
  padding: 19px 17px;
  border: 1px solid #e1e7e3;
  border-radius: 16px;
  background: #fff;
}

.study-item:hover {
  border-color: #b9cbc3;
}

.subject-dot {
  width: 8px;
  height: 42px;
  border-radius: 99px;
}

.subject-dot--algebra {
  background: #2a8b70;
}

.subject-dot--calculus {
  background: #bd7a3d;
}

.subject-dot--review {
  background: #6c7cb5;
}

.study-meta strong {
  color: var(--forest);
  font-size: 12px;
  text-transform: uppercase;
}

.study-meta span {
  color: #7b8883;
  font-size: 12px;
  font-weight: 700;
}

.study-item h3 {
  margin: 6px 0 4px;
  font-size: 16px;
}

.study-item p {
  margin: 0;
  color: #697772;
  font-size: 13px;
  line-height: 1.5;
}

.study-item > button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--forest);
  background: var(--mint-soft);
}

.dashboard-side {
  display: grid;
  gap: 24px;
}

.now-card {
  padding: 28px;
  border-radius: 22px;
  color: #f1fff7;
  background: #0d4739;
  box-shadow: 0 18px 38px rgba(13, 71, 57, 0.17);
}

.now-card .section-kicker {
  color: #9fe0bf;
}

.now-card h2 {
  max-width: 250px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.15;
}

.time-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 24px 0 18px;
}

.time-options button {
  padding: 9px 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #bcd6cc;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.time-options button.is-selected {
  border-color: #c7f4dd;
  color: #123d32;
  background: #c7f4dd;
}

.primary-button--light {
  width: 100%;
  color: #103a2f;
  background: #f1fff7;
}

.primary-button--light:hover {
  background: #dff6ea;
}

.exam-card p {
  margin: 7px 0 22px;
  color: #6a7873;
  font-size: 13px;
}

.days-left {
  color: #765027;
  background: #f7eadb;
}

.exam-progress > div {
  height: 7px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7ece9;
}

.exam-progress > div span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--forest);
}

.exam-progress strong {
  font-size: 12px;
}

.following-exams {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #e4e9e6;
}

.following-label {
  color: #7a8782;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.following-exam {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 9px 0;
}

.following-dot {
  width: 5px;
  height: 32px;
  border-radius: 99px;
  background: var(--exam-color, var(--forest));
}

.following-exam > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.following-exam strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.following-exam span,
.following-exam b {
  color: #7b8883;
  font-size: 10px;
}

.following-empty {
  margin: 0 !important;
  line-height: 1.45;
}

.materials-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  align-items: start;
}

.upload-card,
.materials-panel {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid #dce5e0;
  border-radius: 20px;
  background: var(--paper);
}

.material-subject-field {
  margin-bottom: 14px;
}

.material-category-field {
  margin-bottom: 18px;
}

.dropzone {
  display: grid;
  min-height: 230px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px 20px;
  border: 1.5px dashed #aebfb7;
  border-radius: 16px;
  color: #65736e;
  background: #f7f9f6;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-dragging {
  border-color: var(--forest);
  outline: none;
  background: var(--mint-soft);
  transform: translateY(-1px);
}

.dropzone.is-uploading {
  pointer-events: none;
  opacity: 0.62;
}

.dropzone.is-uploading strong::after {
  content: " · subiendo…";
}

.dropzone-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 12px;
  color: #eafff4;
  background: var(--forest);
  font-size: 21px;
}

.dropzone strong {
  color: var(--ink);
  font-size: 15px;
}

.dropzone span:not(.dropzone-icon) {
  font-size: 12px;
}

.dropzone small {
  max-width: 330px;
  margin-top: 8px;
  color: #89958f;
  font-size: 10px;
  line-height: 1.45;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.prototype-data-note {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 14px 15px;
  border-radius: 12px;
  color: #66746f;
  background: #eef3ef;
  font-size: 11px;
  line-height: 1.45;
}

.upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.upload-actions button {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 11px;
}

.camera-button {
  border: 0;
  border-radius: 11px;
  color: #effff7;
  background: var(--forest);
  font-weight: 750;
}

.camera-button span {
  margin-right: 5px;
}

.prototype-data-note strong {
  color: var(--forest-dark);
}

.materials-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.materials-panel-heading h3 {
  margin: 0;
  font-size: 21px;
}

.material-list {
  display: grid;
  gap: 9px;
}

.material-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e1e7e3;
  border-radius: 13px;
  background: #fff;
}

.file-type {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 11px;
  color: var(--forest);
  background: var(--mint-soft);
  font-size: 10px;
  font-weight: 850;
}

.material-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.material-info strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-info span,
.material-info small {
  color: #75827d;
  font-size: 10px;
}

.material-info small {
  color: #93683b;
}

.material-details {
  width: fit-content;
}

.material-details summary {
  color: var(--forest);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.material-details small {
  display: block;
  max-width: 460px;
  margin-top: 7px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #6e7c76;
  background: #f0f4f1;
  line-height: 1.45;
}

.material-actions {
  display: flex;
  gap: 6px;
}

.material-actions button {
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  color: #52615b;
  background: #eef2ef;
  font-size: 10px;
  font-weight: 750;
}

.material-empty {
  padding-block: 42px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100vw - 48px));
  padding: 13px 17px;
  border-radius: 12px;
  color: #ecfff5;
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: auto;
    padding: 34px 34px 46px;
  }

  .hero-copy {
    margin: 65px 0 42px;
  }

  .hero-copy h1 {
    max-width: 720px;
  }

  .preview-card {
    display: none;
  }

  .access-panel {
    min-height: auto;
    padding: 46px 22px 70px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subject-grid {
    grid-template-columns: 1fr;
  }

  .materials-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .prototype-notice {
    font-size: 10px;
  }

  .brand-panel {
    padding: 25px 22px 38px;
  }

  .hero-copy {
    margin: 52px 0 0;
  }

  .hero-copy h1 {
    font-size: 47px;
  }

  .hero-description {
    font-size: 16px;
  }

  .value-list {
    margin-top: 24px;
  }

  .access-card {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .onboarding {
    padding: 29px 14px 45px;
  }

  .onboarding-header {
    padding: 20px 8px;
  }

  .onboarding-shell {
    margin-top: 10px;
    padding: 25px 19px;
    border-radius: 20px;
  }

  .onboarding-progress {
    margin-bottom: 36px;
  }

  .field-row,
  .availability-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .onboarding-actions button {
    width: 100%;
  }

  .dashboard {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 15;
    top: 29px;
    left: 0;
    width: 250px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 14;
    inset: 29px 0 0;
    display: block;
    width: 100%;
    height: calc(100vh - 29px);
    padding: 0;
    border: 0;
    background: rgba(7, 25, 20, 0.46);
    backdrop-filter: blur(2px);
  }

  body.menu-open {
    overflow: hidden;
  }

  .dashboard-main {
    padding: 25px 18px 50px;
  }

  .dashboard-header {
    align-items: center;
  }

  .mobile-menu {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: var(--paper);
  }

  .dashboard-header h1 {
    font-size: 28px;
  }

  .dashboard-date {
    font-size: 11px;
  }

  .avatar {
    width: 38px;
    height: 38px;
  }

  .section-heading {
    display: grid;
  }

  .status-pill {
    width: fit-content;
  }

  .study-item {
    grid-template-columns: 7px 1fr;
    padding: 16px 13px;
  }

  .study-item > button {
    display: none;
  }

  .dashboard-side {
    grid-template-columns: 1fr;
  }

  .page-heading {
    display: grid;
    align-items: start;
  }

  .page-action {
    width: 100%;
  }

  .subject-card {
    padding: 20px;
  }

  .material-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .file-type {
    width: 42px;
    height: 42px;
  }

  .material-actions {
    grid-column: 2;
  }

  .upload-actions {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dialog-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
