@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --paper: #f1eee4;
  --ink: #171a17;
  --muted: #74786e;
  --line: rgba(23, 26, 23, 0.14);
  --garden: #151916;
  --leaf: #7fbd4d;
  --leaf-dark: #5d9639;
  --amber: #f2c84b;
  --panel: rgba(255, 253, 246, .62);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --signature-scale-desktop: 1;
  --signature-scale-mobile: .7;
}

* { box-sizing: border-box; }

html {
  min-width: 0;
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(rgba(27, 31, 25, .055) .7px, transparent .7px),
    var(--paper);
  background-size: 5px 5px;
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.is-hidden {
  display: none !important;
}

.app-shell {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(rgba(27, 31, 25, .055) .7px, transparent .7px),
    rgba(241, 238, 228, .9);
  background-size: 5px 5px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 46% 54%;
  background: #f9f4df;
  border: 1px solid rgba(23, 26, 23, .18);
  font-size: 18px;
  line-height: 1;
  transform: rotate(-7deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 3px 10px rgba(23, 26, 23, .08);
}

.session-area {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.role-badge {
  padding: 6px 10px;
  border-radius: 999px;
  color: #243318;
  background: rgba(127, 189, 77, .22);
  font-weight: 700;
}

.session-name {
  color: var(--ink);
  font-weight: 600;
}

.admin-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(92, 151, 63, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  color: #31591f;
  font-weight: 800;
  text-decoration: none;
}

.admin-edit-link.active {
  background: rgba(113, 190, 75, .28);
  border-color: rgba(92, 151, 63, .52);
  color: #203912;
}

.logout-button,
.change-password-button,
.peer-card,
.roster-card {
  cursor: pointer;
}

.logout-button,
.change-password-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
  padding: 7px 12px;
}

.change-password-button {
  color: #233716;
  background: rgba(127, 189, 77, .18);
  font-weight: 700;
}

.section-jump-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.section-jump-nav:has(button) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-jump-nav a,
.section-jump-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(93, 150, 57, .28);
  border-radius: 999px;
  background: rgba(127, 189, 77, .16);
  color: #31591f;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -.02em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .18s var(--ease), background .18s ease, border-color .18s ease;
  cursor: pointer;
}

.section-jump-nav a:hover,
.section-jump-nav button:hover {
  transform: translateY(-1px);
  border-color: rgba(93, 150, 57, .5);
  background: rgba(127, 189, 77, .24);
}

.main-panel > .section-jump-nav {
  width: 100%;
  max-width: none;
  margin: 18px auto 0;
}

.login-view {
  min-height: calc(100dvh - 128px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .62fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: center;
}

.login-copy {
  max-width: 720px;
}

.kicker,
.panel-heading p {
  margin: 0 0 18px;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.login-copy h1,
.panel-heading h1 {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.06em;
}

.login-copy p:not(.kicker) {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.login-card,
.editor-card,
.challenge-card,
.challenge-history,
.readonly-section {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(23, 26, 23, .08);
}

.login-card {
  padding: 30px;
}

.login-card h2,
.editor-card h2,
.challenge-card h2,
.challenge-history h2,
.readonly-section h2,
.mentor-roster h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.03em;
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.login-card label span {
  color: var(--muted);
  font-size: 13px;
}

.login-card input {
  width: 100%;
  border: 1px solid rgba(23, 26, 23, .2);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, .66);
  outline: none;
}

.login-card input:focus {
  border-color: var(--leaf-dark);
  box-shadow: 0 0 0 4px rgba(127, 189, 77, .16);
}

.login-card button {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 18px;
  color: #14200f;
  background: var(--leaf);
  font-weight: 700;
  cursor: pointer;
  transition: transform .22s var(--ease), background .22s ease;
}

.login-card button:hover {
  background: #8fca5b;
  transform: translateY(-2px);
}

.login-card button:active {
  transform: translateY(0);
}

.form-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: #b12b36;
  font-size: 13px;
}

.workspace {
  padding-top: 34px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.15fr) minmax(380px, .85fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: start;
}

.main-panel,
.side-panel {
  min-width: 0;
}

.mentor-editor-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 24px;
}

.mentee-detail-panel {
  grid-column: 1 / -1;
}

.panel-heading {
  margin-bottom: 28px;
}

.panel-heading h1 {
  max-width: 760px;
  font-size: clamp(34px, 4.6vw, 62px);
}

.garden-shell {
  width: 100%;
  aspect-ratio: 1.08;
  padding: 10px;
  border: 1px solid rgba(23, 26, 23, .25);
  border-radius: 52px;
}

.garden-shell.compact {
  padding: 5px;
  border-radius: 28px;
}

.garden {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 43px;
  background:
    radial-gradient(circle at 50% 74%, rgba(111, 144, 77, .16), transparent 30%),
    var(--garden);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 28px 60px rgba(20, 24, 20, .16);
}

.compact .garden {
  border-radius: 23px;
}

.garden::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.garden-topline {
  position: absolute;
  z-index: 3;
  inset: 28px 34px auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: rgba(242, 240, 232, .58);
  font-size: 10px;
  letter-spacing: .18em;
}

.growth-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.growth-meta b {
  color: rgba(242, 240, 232, .72);
  font-weight: 600;
}

.growth-meta small {
  color: rgba(244, 241, 229, .62);
  font-size: 1.42em;
  font-weight: 700;
  letter-spacing: .08em;
}

.compact .garden-topline {
  inset: 15px 17px auto;
  font-size: 7px;
}

.board-heading {
  position: absolute;
  z-index: 3;
  top: 11%;
  left: 8%;
  color: #f6f3ea;
  font-family: "Noto Sans SC", sans-serif;
}

.board-heading strong {
  display: block;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.compact .board-heading strong {
  font-size: 16px;
}

.board-heading span {
  display: block;
  margin-top: 8px;
  font-size: clamp(9px, 1vw, 13px);
  font-weight: 600;
}

.compact .board-heading span {
  font-size: 8px;
}

.signature-field {
  position: absolute;
  inset: 19% 4% 7%;
  z-index: 4;
  pointer-events: none;
}

.signature {
  position: absolute;
  color: var(--signature-color);
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  font-size: clamp(
    calc(15px * var(--signature-scale-desktop)),
    calc(2.65vw * var(--signature-scale-desktop)),
    calc(33px * var(--signature-scale-desktop))
  );
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px) rotate(var(--signature-rotate)) scale(.94);
  transition: opacity .75s ease, transform .85s var(--ease);
  text-shadow: 0 0 9px color-mix(in srgb, var(--signature-color) 34%, transparent);
}

.compact .signature {
  font-size: clamp(8px, 1.65vw, 16px);
}

.signature.visible {
  animation: revealSignature .78s var(--signature-delay) var(--ease) forwards;
}

.layout-edit-mode .signature-field {
  pointer-events: auto;
}

.layout-edit-mode .garden-shell:not(.compact) .signature {
  cursor: grab;
  pointer-events: auto;
  border-radius: 999px;
  outline: 1px dashed color-mix(in srgb, var(--signature-color) 70%, white);
  outline-offset: 7px;
  user-select: none;
  touch-action: none;
}

.layout-edit-mode .garden-shell:not(.compact) .signature.dragging {
  cursor: grabbing;
  z-index: 12;
  opacity: 1;
  transform: translateY(0) rotate(var(--signature-rotate)) scale(1.08);
  text-shadow:
    0 0 11px color-mix(in srgb, var(--signature-color) 54%, transparent),
    0 9px 24px rgba(0, 0, 0, .32);
}

.layout-editor {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(520px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(103, 139, 76, .25);
  border-radius: 22px;
  background: rgba(250, 248, 240, .92);
  box-shadow: 0 18px 50px rgba(35, 42, 29, .18);
  backdrop-filter: blur(18px);
}

.layout-editor strong,
.layout-editor span {
  display: block;
}

.layout-editor strong {
  font-size: 14px;
  color: #171914;
}

.layout-editor span {
  margin-top: 2px;
  font-size: 12px;
  color: #6f7568;
}

.layout-editor button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: #6bb94f;
  color: #10210d;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.admin-editor {
  margin: 0 0 28px;
  border: 1px solid rgba(103, 139, 76, .24);
  border-radius: 28px;
  background: rgba(255, 253, 246, .78);
  box-shadow: 0 24px 70px rgba(23, 26, 23, .08);
  overflow: hidden;
}

.admin-editor summary {
  cursor: pointer;
  padding: 20px 24px;
  color: #203216;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  background: rgba(127, 189, 77, .16);
}

.admin-editor-grid {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 16px;
  padding: 18px;
}

.admin-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(23, 26, 23, .11);
  border-radius: 22px;
  background: rgba(255, 255, 255, .55);
}

.admin-card h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.03em;
}

.admin-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.admin-card label {
  display: grid;
  gap: 6px;
}

.admin-card label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
  width: 100%;
  border: 1px solid rgba(23, 26, 23, .16);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  outline: none;
}

.admin-card textarea {
  min-height: 280px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus {
  border-color: var(--leaf-dark);
  box-shadow: 0 0 0 4px rgba(127, 189, 77, .14);
}

.admin-card button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  color: #14200f;
  background: var(--leaf);
  font-weight: 800;
  cursor: pointer;
}

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

.account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(23, 26, 23, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .48);
}

.account-row strong,
.account-row span {
  display: block;
}

.account-row strong {
  font-size: 13px;
}

.account-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.account-row button {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.reset-result {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(93, 150, 57, .3);
  border-radius: 16px;
  background: rgba(245, 252, 234, .86);
}

.reset-result code {
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(23, 26, 23, .08);
  color: #14200f;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .08em;
}

.reset-result span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 21, 17, .34);
  backdrop-filter: blur(12px);
}

.password-modal {
  position: relative;
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(23, 26, 23, .14);
  border-radius: 28px;
  background: #fffdf6;
  box-shadow: 0 30px 90px rgba(23, 26, 23, .22);
}

.password-modal h2,
.password-modal p {
  margin: 0;
}

.password-modal p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.password-modal label {
  display: grid;
  gap: 7px;
}

.password-modal label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.password-modal input {
  width: 100%;
  border: 1px solid rgba(23, 26, 23, .18);
  border-radius: 14px;
  padding: 12px 13px;
  outline: none;
}

.password-modal input:focus {
  border-color: var(--leaf-dark);
  box-shadow: 0 0 0 4px rgba(127, 189, 77, .14);
}

.password-modal button[type="submit"] {
  min-height: 46px;
  border: 0;
  border-radius: 15px;
  background: var(--leaf);
  color: #14200f;
  font-weight: 850;
  cursor: pointer;
}

.assessment-modal {
  position: relative;
  width: min(860px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  overflow: auto;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(23, 26, 23, .14);
  border-radius: 30px;
  background: #fffdf6;
  box-shadow: 0 34px 100px rgba(23, 26, 23, .24);
}

.assessment-modal > p {
  margin: 0 0 8px;
  color: var(--leaf-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.assessment-modal h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -.05em;
}

.assessment-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 16px;
  margin-top: 22px;
}

.assessment-panel {
  padding: 18px;
  border: 1px solid rgba(23, 26, 23, .1);
  border-radius: 22px;
  background: rgba(255, 255, 255, .5);
}

.assessment-panel.attention {
  background: linear-gradient(135deg, rgba(242, 200, 75, .14), rgba(255, 255, 255, .56));
}

.assessment-panel h3 {
  margin: 0 0 12px;
  font-size: 17px;
  letter-spacing: -.03em;
}

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

.assessment-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid rgba(23, 26, 23, .1);
  border-radius: 16px;
  background: rgba(255, 253, 246, .72);
}

.assessment-list b {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.assessment-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.assessment-list strong {
  color: #31591f;
  font-size: 13px;
  white-space: nowrap;
}

.assessment-panel.attention .assessment-list strong {
  color: #8a6120;
}

.assessment-empty {
  padding: 16px;
  border: 1px dashed rgba(23, 26, 23, .16);
  border-radius: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.weekly-report-modal {
  width: min(960px, 100%);
}

.weekly-report-picker-modal {
  width: min(820px, 100%);
}

.weekly-report-picker-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.weekly-report-picker-row {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(23, 26, 23, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .56);
}

.weekly-report-picker-row strong {
  font-size: 16px;
  letter-spacing: -.02em;
}

.weekly-report-picker-row div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.weekly-report-picker-row button {
  min-height: 42px;
  border: 1px solid rgba(93, 150, 57, .24);
  border-radius: 999px;
  background: rgba(127, 189, 77, .14);
  color: #31591f;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s ease, border-color .18s ease;
}

.weekly-report-picker-row button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(93, 150, 57, .5);
  background: rgba(127, 189, 77, .24);
}

.weekly-report-picker-row button:disabled {
  cursor: progress;
  opacity: .68;
}

.weekly-report-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 18px;
}

.weekly-report-overview div {
  padding: 16px;
  border: 1px solid rgba(93, 150, 57, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(127, 189, 77, .14), rgba(255, 255, 255, .64));
}

.weekly-report-overview small,
.weekly-report-overview strong {
  display: block;
}

.weekly-report-overview small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.weekly-report-overview strong {
  margin-top: 6px;
  color: #26451a;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.05em;
}

.mentor-comment-box {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(23, 26, 23, .1);
  border-radius: 22px;
  background: rgba(255, 255, 255, .5);
}

.mentor-comment-box h3 {
  margin: 0 0 12px;
  font-size: 17px;
  letter-spacing: -.03em;
}

.mentor-comment-box p {
  margin: 0;
  color: #384235;
  font-size: 14px;
  line-height: 1.7;
}

.mentor-comment-box small {
  display: block;
  margin: -4px 0 10px;
  color: var(--leaf-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.growth-story {
  display: grid;
  gap: 12px;
}

.growth-story p {
  margin: 0;
  color: #2f3b2d;
  font-size: 14px;
  line-height: 1.8;
}

.growth-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.growth-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(127, 189, 77, .14);
  color: #31591f;
  font-size: 11px;
  font-weight: 850;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.dimension-grid div {
  padding: 10px;
  border: 1px solid rgba(23, 26, 23, .08);
  border-radius: 14px;
  background: rgba(255, 253, 246, .58);
}

.dimension-grid small,
.dimension-grid strong {
  display: block;
}

.dimension-grid small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.dimension-grid strong {
  margin-top: 4px;
  color: #28461b;
  font-size: 13px;
}

.weekly-report-form {
  display: grid;
  gap: 12px;
}

.weekly-report-form label {
  display: grid;
  gap: 7px;
}

.weekly-report-form label span {
  color: #33402f;
  font-size: 12px;
  font-weight: 850;
}

.weekly-report-form input,
.weekly-report-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 26, 23, .16);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  outline: none;
  font: inherit;
}

.weekly-report-form textarea {
  min-height: 120px;
  resize: vertical;
}

.weekly-report-form input:focus,
.weekly-report-form textarea:focus {
  border-color: var(--leaf-dark);
  box-shadow: 0 0 0 4px rgba(127, 189, 77, .14);
}

.weekly-report-form button {
  min-height: 46px;
  border: 0;
  border-radius: 15px;
  background: var(--leaf);
  color: #14200f;
  font-weight: 850;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.video-growth {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 54%;
  width: 31%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  container-type: inline-size;
}

.video-growth::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(3, 5, 4, .92) 0 54%, rgba(3, 5, 4, .72) 55% 68%, transparent 69%);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, .42);
  opacity: 1;
  pointer-events: none;
}

.video-growth::after {
  content: none;
}

.video-growth svg {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.video-growth circle {
  fill: none;
  stroke-width: 13;
}

.video-track {
  stroke: rgba(172, 154, 95, .28);
}

.video-progress {
  stroke: #ffe200;
  stroke-linecap: round;
  stroke-dasharray: 421;
  stroke-dashoffset: 421;
  filter: drop-shadow(0 0 6px rgba(255, 226, 0, .82)) drop-shadow(0 0 11px rgba(255, 226, 0, .45));
  transition: stroke-dashoffset 1.25s cubic-bezier(.22,.75,.25,1);
  animation: growRing 2.6s .18s cubic-bezier(.18,.78,.18,1) forwards;
}

.emoji-disc {
  position: relative;
  z-index: 3;
  width: 54%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle, #394334 0 54%, #222922 56% 100%);
  box-shadow: 0 0 0 11px rgba(255,255,255,.025), 0 14px 32px rgba(0,0,0,.4);
  opacity: 0;
  transform: scale(.82);
  animation: revealDisc .85s .45s var(--ease) forwards;
}

.emoji-disc span {
  display: block;
  font-size: 31cqw;
  line-height: 1;
  transform: translateY(-1%);
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.25));
}

.stage-image {
  width: 72%;
  height: 72%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.25));
}

@supports not (font-size: 1cqw) {
  .emoji-disc span {
    font-size: clamp(24px, 4vw, 62px);
  }

  .compact .emoji-disc span {
    font-size: clamp(16px, 2.2vw, 30px);
  }
}

.stage-name {
  position: absolute;
  left: 34px;
  bottom: 28px;
  color: rgba(240, 240, 230, .6);
  font-size: 10px;
  letter-spacing: .18em;
}

.compact .stage-name {
  left: 17px;
  bottom: 14px;
  font-size: 6px;
}

.mentor-roster {
  margin-top: 74px;
  margin-bottom: 20px;
}

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

.roster-card {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 246, .48);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  text-align: left;
  transition: transform .2s var(--ease), border-color .2s ease, background .2s ease;
}

.roster-card:hover,
.roster-card.active {
  border-color: rgba(93, 150, 57, .5);
  background: rgba(127, 189, 77, .18);
  transform: translateY(-2px);
}

.roster-card strong {
  font-size: 22px;
}

.roster-card span {
  display: grid;
  gap: 5px;
}

.editor-card,
.challenge-card,
.challenge-history,
.readonly-section {
  padding: 24px;
}

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

.editor-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.editor-heading span {
  color: var(--leaf-dark);
  font-weight: 700;
}

.learning-groups {
  display: grid;
  gap: 18px;
}

.weekly-focus-card {
  margin-bottom: 18px;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid rgba(93, 150, 57, .28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(127, 189, 77, .22), transparent 36%),
    linear-gradient(135deg, rgba(238, 250, 224, .94), rgba(255, 253, 246, .78));
  box-shadow: 0 18px 45px rgba(50, 77, 34, .08);
}

.mentor-editor-panel .weekly-focus-card {
  break-inside: avoid;
}

.weekly-focus-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.weekly-focus-heading p {
  margin: 0 0 7px;
  color: var(--leaf-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.weekly-focus-heading h3 {
  margin: 0;
  color: #172016;
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.15;
  letter-spacing: -.045em;
}

.weekly-focus-success {
  padding: 15px;
  border: 1px solid rgba(93, 150, 57, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .45);
}

.weekly-focus-success > span {
  display: block;
  margin-bottom: 10px;
  color: #31591f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.weekly-focus-success ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.weekly-focus-success li {
  color: #263522;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 650;
}

.mentor-editor-panel .learning-groups,
.mentor-editor-panel .checklist-masonry,
.mentor-editor-panel .confidence-groups {
  display: block;
  column-gap: 18px;
}

.mentor-editor-panel .learning-groups,
.mentor-editor-panel .checklist-masonry {
  column-count: 2;
}

.mentor-editor-panel .confidence-groups {
  column-count: 3;
}

.mentor-editor-panel .editor-card {
  padding: clamp(24px, 2.4vw, 34px);
}

.mentor-editor-panel .learning-group,
.mentor-editor-panel .confidence-group {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
}

.learning-group {
  padding: 14px;
  border: 1px solid rgba(23, 26, 23, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .28);
}

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

.learning-group-heading p {
  margin: 0 0 5px;
  color: var(--leaf-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.learning-group-heading h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.learning-group-heading span {
  color: var(--leaf-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

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

.learning-item {
  min-height: 50px;
  border: 1px solid rgba(23, 26, 23, .11);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .42);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.learning-item input {
  width: 17px;
  height: 17px;
  accent-color: var(--leaf-dark);
}

.learning-item span {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.learning-item small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.learning-item.done {
  border-color: rgba(93, 150, 57, .3);
  background: rgba(127, 189, 77, .14);
}

.section-note {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.confidence-section {
  background: rgba(255, 253, 246, .72);
}

.confidence-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

.confidence-summary span {
  color: var(--leaf-dark);
  font-weight: 800;
}

.confidence-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.confidence-legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 99px;
}

.confidence-legend i.latest {
  background: #69b84f;
}

.confidence-legend i.historical {
  background: #f0cf63;
}

.weekly-recap {
  margin: 12px 0 18px;
  padding: 16px;
  border: 1px solid rgba(93, 150, 57, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(127, 189, 77, .16), rgba(255, 255, 255, .7));
}

.weekly-recap p {
  margin: 0 0 6px;
  color: var(--leaf-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.weekly-recap h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.weekly-recap span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.confidence-groups {
  display: grid;
  gap: 16px;
}

.confidence-group {
  padding: 14px;
  border: 1px solid rgba(23, 26, 23, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .26);
}

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

.confidence-item {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(23, 26, 23, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .42);
}

.confidence-item > span {
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.confidence-item > span small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.confidence-scale {
  display: flex;
  align-items: center;
  gap: 6px;
}

.confidence-scale label {
  position: relative;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 26, 23, .16);
  border-radius: 9px;
  background: rgba(255, 255, 255, .76);
  color: var(--muted);
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s ease, background .18s ease;
}

.confidence-scale label.checked {
  border-color: rgba(93, 150, 57, .42);
  background: rgba(127, 189, 77, .22);
  color: #243318;
}

.confidence-scale label.latest {
  border-color: rgba(83, 158, 57, .62);
  background: rgba(113, 190, 79, .34);
  color: #1d3514;
  box-shadow: 0 0 0 3px rgba(113, 190, 79, .13);
}

.confidence-scale label.historical {
  border-color: rgba(202, 159, 43, .55);
  background: rgba(240, 207, 99, .35);
  color: #594515;
}

.confidence-scale label:hover {
  transform: translateY(-1px);
}

.confidence-scale label[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: max-content;
  max-width: 160px;
  padding: 6px 9px;
  border: 1px solid rgba(23, 26, 23, .12);
  border-radius: 999px;
  background: rgba(23, 26, 23, .94);
  color: #fffdf6;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .08s ease, transform .08s ease;
}

.confidence-scale label[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  z-index: 31;
  width: 9px;
  height: 9px;
  background: rgba(23, 26, 23, .94);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity .08s ease, transform .08s ease;
}

.confidence-scale label[data-tooltip]:hover::after,
.confidence-scale label[data-tooltip]:focus-within::after,
.confidence-scale label[data-tooltip]:hover::before,
.confidence-scale label[data-tooltip]:focus-within::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.confidence-scale input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.confidence-scale b {
  font-size: 12px;
  font-weight: 800;
}

.readonly-section {
  margin-top: 24px;
}

.mentee-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.mentee-detail-grid .readonly-section {
  margin-top: 0;
}

.readonly-section h2 {
  margin-bottom: 16px;
}

.challenge-card {
  margin-bottom: 20px;
}

.challenge-card p,
.challenge-history p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.peer-card {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  transition: transform .22s var(--ease);
}

.peer-card:hover {
  transform: translateY(-3px);
}

.peer-name-card {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 246, .58);
  box-shadow: 0 18px 48px rgba(23, 26, 23, .07);
}

.peer-name-card span {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.peer-name-card strong {
  color: var(--leaf-dark);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.peer-card.shared {
  grid-column: 1 / -1;
  cursor: default;
}

.peer-card.shared .garden-shell.compact {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.challenge-modal {
  position: sticky;
  top: 14px;
  z-index: 20;
  margin-bottom: 20px;
}

.challenge-modal-card {
  padding: 22px;
  border: 1px solid rgba(93, 150, 57, .35);
  border-radius: 26px;
  background: rgba(245, 252, 234, .96);
  box-shadow: 0 24px 70px rgba(35, 42, 29, .16);
}

.challenge-modal-card p {
  margin: 0 0 8px;
  color: var(--leaf-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.challenge-modal-card h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.04em;
}

.challenge-modal-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.challenge-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.challenge-actions button {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 15px;
  font-weight: 800;
  cursor: pointer;
}

.accept-challenge {
  border: 0;
  background: var(--leaf);
  color: #14200f;
}

.decline-challenge {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .54);
  color: var(--muted);
}

.challenge-history {
  margin-top: 20px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 10;
  padding: 11px 18px;
  color: #edf2e9;
  background: #1b201b;
  border-radius: 999px;
  font-size: 12px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .4s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes growRing {
  from {
    stroke-dashoffset: 421;
  }
  to {
    stroke-dashoffset: var(--target-offset);
  }
}

@keyframes revealDisc {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealSignature {
  to {
    opacity: .88;
    transform: translateY(0) rotate(var(--signature-rotate)) scale(1);
  }
}

@media (max-width: 1100px) {
  .workspace-grid,
  .login-view,
  .admin-editor-grid,
  .mentee-detail-grid {
    grid-template-columns: 1fr;
  }

  .mentee-mode .main-panel {
    order: 1;
  }

  .mentee-mode .mentee-detail-panel {
    order: 2;
  }

  .mentee-mode .side-panel {
    order: 3;
  }

  .mentor-editor-panel .learning-groups,
  .mentor-editor-panel .checklist-masonry,
  .mentor-editor-panel .confidence-groups {
    column-count: 2;
  }

  .mentor-roster {
    margin-top: 0;
  }

  .garden-shell {
    max-width: 780px;
  }

  .main-panel > .section-jump-nav {
    max-width: 780px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 104px;
  }

  .app-shell {
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .topbar {
    height: auto;
    min-height: 58px;
    align-items: flex-start;
    padding: 13px 0;
    gap: 12px;
  }

  .session-area {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .login-copy h1,
  .panel-heading h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .workspace {
    padding-top: 22px;
  }

  .panel-heading {
    margin-bottom: 18px;
  }

  .panel-heading p {
    margin-bottom: 12px;
  }

  .login-card,
  .editor-card,
  .challenge-card,
  .challenge-history,
  .readonly-section {
    border-radius: 22px;
    padding: 18px;
  }

  .garden-shell {
    max-width: 100%;
    padding: 6px;
    border-radius: 30px;
  }

  .garden-shell.compact {
    padding: 6px;
    border-radius: 30px;
  }

  .garden,
  .compact .garden {
    border-radius: 24px;
  }

  .garden-topline,
  .compact .garden-topline {
    inset: 18px 20px auto;
    font-size: 8px;
  }

  .board-heading strong,
  .compact .board-heading strong {
    font-size: clamp(22px, 7.6vw, 34px);
  }

  .board-heading span,
  .compact .board-heading span {
    margin-top: 8px;
    font-size: clamp(9px, 3vw, 13px);
  }

  .stage-name,
  .compact .stage-name {
    left: 20px;
    bottom: 18px;
    font-size: 8px;
  }

  .video-growth {
    width: 34%;
    top: 56%;
  }

  .video-growth::before {
    inset: 3%;
    opacity: 1;
    filter: none;
    background:
      radial-gradient(circle, rgba(2, 4, 3, .96) 0 55%, rgba(2, 4, 3, .8) 56% 69%, transparent 70%);
    box-shadow:
      0 16px 30px rgba(0, 0, 0, .5);
  }

  .video-growth::after {
    content: none;
  }

  .video-progress {
    filter: drop-shadow(0 0 6px rgba(255, 226, 0, .92)) drop-shadow(0 0 11px rgba(255, 226, 0, .54));
  }

  .signature,
  .compact .signature {
    font-size: clamp(
      calc(8px * var(--signature-scale-mobile)),
      calc(3vw * var(--signature-scale-mobile)),
      calc(14px * var(--signature-scale-mobile))
    );
  }

  .learning-list,
  .mentor-editor-panel .learning-groups,
  .mentor-editor-panel .checklist-masonry,
  .mentor-editor-panel .confidence-groups,
  .confidence-item,
  .section-jump-nav:has(button),
  .weekly-report-overview,
  .peer-grid,
  .roster-grid {
    grid-template-columns: 1fr;
  }

  .mentor-editor-panel .learning-groups,
  .mentor-editor-panel .checklist-masonry,
  .mentor-editor-panel .confidence-groups {
    column-count: 1;
  }

  .confidence-summary,
  .challenge-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .assessment-modal-grid,
  .assessment-list li,
  .weekly-report-picker-row {
    grid-template-columns: 1fr;
  }

  .weekly-report-picker-row div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assessment-list strong {
    white-space: normal;
  }

  .confidence-scale {
    justify-content: space-between;
  }

  .admin-editor summary {
    padding: 16px 18px;
  }

  .admin-editor-grid {
    padding: 12px;
  }

  .layout-editor {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .learning-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .video-progress {
    stroke-dashoffset: var(--target-offset);
  }

  .emoji-disc,
  .signature.visible {
    opacity: 1;
    transform: none;
  }

  .signature.visible {
    transform: translateY(0) rotate(var(--signature-rotate)) scale(1);
  }
}
