:root {
  color-scheme: light;
  --canvas: #f6f8f6;
  --paper: #fff;
  --sidebar: #f0f4ef;
  --ink: #202d25;
  --muted: #516259;
  --line: #dce4dd;
  --forest: #175947;
  --forest-dark: #104636;
  --soft-green: #e4f1e8;
  --soft-blue: #e9eef6;
  --soft-orange: #f8ede2;
  --danger: #8f3028;
  --radius: 20px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
h1 {
  font: 400 clamp(2.2rem, 4.1vw, 3.45rem)/1.1 Georgia, serif;
  letter-spacing: -.044em;
  overflow-wrap: anywhere;
}
h2 { font-size: 1.17rem; line-height: 1.3; letter-spacing: -.016em; }
h3 { font-size: 1rem; line-height: 1.35; }
a { color: var(--forest); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .72; }
:focus-visible { outline: 3px solid #267555; outline-offset: 3px; }
button, input, textarea, select { color: inherit; }
time { font-variant-numeric: tabular-nums; }

.screen-reader-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 20;
  top: .5rem;
  left: .5rem;
  background: var(--paper);
  padding: .75rem 1rem;
}

.signed-in { min-height: 100vh; }
.sidebar {
  width: 232px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 1.65rem 1.15rem 1.2rem;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: max-content;
  max-width: 100%;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -.025em;
  font-size: 1.1rem;
  text-decoration: none;
}
.sidebar .brand { margin: 0 .55rem 2.25rem; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: none;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--forest);
  color: #fff;
}
.brand-mark::before {
  content: "";
  width: 16px;
  height: 18px;
  border: 1.6px solid currentColor;
  border-radius: 2px 4px 4px 2px;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  top: 16px;
  left: 15px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}
.side-nav { display: grid; gap: .3rem; }
.side-nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: .72rem;
  position: relative;
  padding: .64rem .8rem;
  color: #3f5347;
  text-decoration: none;
  border-radius: 11px;
  font-weight: 650;
  font-size: .95rem;
}
.side-nav a:hover { background: #e8efe9; }
.side-nav a[aria-current] {
  color: var(--forest-dark);
  background: #dcecdf;
}
.nav-count {
  margin-left: auto;
  padding: .08rem .43rem;
  min-width: 1.3rem;
  text-align: center;
  background: var(--forest);
  color: #fff;
  border-radius: 1rem;
  font-size: .75rem;
  font-weight: 720;
}
.sidebar-bottom { margin-top: auto; padding: 1rem .45rem 0; border-top: 1px solid #d6e0d8; }
.account { display: flex; align-items: center; gap: .7rem; }
.account-text { display: grid; min-width: 0; gap: .04rem; }
.account-text strong { font-size: .88rem; overflow-wrap: anywhere; }
.account-text span { color: var(--muted); font-size: .79rem; }
.quiet.sign-out { margin-top: .4rem; padding-left: 0; color: var(--muted); }
.quiet.account-security { display: flex; justify-content: flex-start; padding-left: 0; margin-top: .28rem; }

.application { margin-left: 232px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 65px;
  gap: 1rem;
  padding: .6rem clamp(1.25rem, 4vw, 3.25rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar.demo-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.breadcrumb { display: flex; gap: .68rem; min-width: 0; align-items: center; color: var(--muted); font-size: .9rem; }
.breadcrumb > span { flex: none; }
.breadcrumb strong { color: var(--ink); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: .72rem; }
.demo-switch { display: flex; flex-wrap: wrap; gap: .4rem; }
.demo-label { font-size: .79rem; color: #36594a; background: #ecf3ed; border-radius: 20px; white-space: nowrap; padding: .23rem .6rem; font-weight: 650; }
.mobile-brand, .mobile-account { display: none; }
.main {
  margin: 0 auto;
  max-width: 1400px;
  padding: clamp(1.4rem, 3.6vw, 2.9rem) clamp(1.25rem, 4vw, 3.25rem) 3.75rem;
}
.public-main { max-width: 1100px; padding: 2rem clamp(1rem, 5vw, 3rem); margin: 0 auto; }
.page-heading { display: flex; gap: 1rem 1.5rem; justify-content: space-between; align-items: flex-end; margin-bottom: 1.65rem; }
.page-heading > div { min-width: 0; }
.page-heading > .primary, .page-heading > .secondary { flex: none; }
.page-date { color: var(--muted); font-size: .92rem; font-weight: 650; margin-bottom: .45rem; overflow-wrap: anywhere; }
.dashboard-heading { margin-bottom: 1.6rem; }
.lead { color: var(--muted); margin-top: .7rem; max-width: 52ch; }
.narrow { max-width: 760px; }
.muted, .row-meta { color: var(--muted); }
.row-meta { font-size: .88rem; }
.wrap, .preserve-lines { overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-wrap; }

.primary, .secondary, .quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .55rem .91rem;
  text-align: center;
  text-decoration: none;
  font-weight: 670;
  font-size: .93rem;
  line-height: 1.3;
}
.primary { color: #fff; background: var(--forest); border-color: var(--forest); }
.primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); }
.secondary { background: var(--paper); border-color: #c9d8ce; color: var(--forest-dark); }
.secondary:hover { background: #eef5ef; border-color: #9cbca8; }
.quiet { background: transparent; color: var(--forest-dark); }
.quiet:hover { text-decoration: underline; }
.compact { padding: .45rem .68rem; font-size: .9rem; flex: none; }
.back-link, .text-link { font-weight: 650; }
.back-link { margin-bottom: .55rem; display: inline-flex; align-items: center; min-height: 44px; }
.panel-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .45rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

.panel {
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 1.55rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 2px 3px #1a352006;
}
.section-heading { display: flex; gap: .5rem 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; }
.section-heading .text-link { display: inline-flex; min-height: 44px; align-items: center; font-size: .92rem; }
.panel > p + p, .panel > p + form { margin-top: .7rem; }
.section-space { margin-top: 1.15rem; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.15rem; align-items: start; }
.dashboard-stack { display: grid; gap: 1.15rem; align-content: start; min-width: 0; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.22rem; }
.metric {
  display: flex;
  align-items: center;
  gap: .82rem;
  min-height: 100px;
  min-width: 0;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
}
.metric:hover { border-color: #9cbca8; }
.metric > div { display: grid; gap: .18rem; min-width: 0; }
.metric strong { font-size: 1.85rem; line-height: 1; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.metric div span { color: var(--muted); font-size: .88rem; line-height: 1.25; font-weight: 640; }
.metric-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; flex: none; }
.metric-green { background: var(--soft-green); color: var(--forest-dark); }
.metric-blue { background: var(--soft-blue); color: #385173; }
.metric-orange { background: var(--soft-orange); color: #804629; }

.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-size: .83rem; font-weight: 740; }
.account-avatar { width: 38px; height: 38px; background: #dce9df; color: #204c3a; }
.student-avatar { width: 42px; height: 42px; }
.tone-mint { color: #16503d; background: #e2f0e7; }
.tone-sand { color: #794726; background: #f6ebdd; }
.tone-violet { color: #563b73; background: #eee8f5; }
.review-list, .thesis-list { display: grid; }
.review-row, .thesis-row, .item-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .83rem 0;
}
.review-row + .review-row, .thesis-row + .thesis-row, .item-row + .item-row { border-top: 1px solid #e8ede9; }
.review-copy, .thesis-row-main, .item-copy, .meeting-copy { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.review-copy h3 a, .thesis-row h3 a, .item-copy > a, .meeting-copy > a { color: var(--ink); text-decoration: none; font-weight: 700; }
.review-copy h3 a:hover, .thesis-row h3 a:hover, .item-copy > a:hover, .meeting-copy > a:hover { text-decoration: underline; }
.review-copy p, .thesis-row-main p, .item-copy p, .meeting-copy p { color: var(--muted); font-size: .88rem; line-height: 1.4; margin-top: .22rem; }
.review-copy .row-meta { margin: 0 0 .14rem; }
.thesis-row { gap: .78rem; }
.thesis-stage { flex: 0 1 clamp(9rem, 24%, 14rem); min-width: 0; }
.stage-label { font-weight: 650; font-size: .9rem; }
.stage-progress { display: flex; align-items: center; gap: .48rem; margin-top: .32rem; }
.stage-progress span { color: var(--muted); font-size: .81rem; white-space: nowrap; }
progress { accent-color: var(--forest); }
.stage-progress progress {
  flex: 1;
  min-width: 0;
  max-width: 130px;
  height: .38rem;
  border: 0;
  border-radius: 1rem;
  background: #e4ece6;
  appearance: none;
}
.stage-progress progress::-webkit-progress-bar { background: #e4ece6; border-radius: 1rem; }
.stage-progress progress::-webkit-progress-value { background: #437a61; border-radius: 1rem; }
.stage-progress progress::-moz-progress-bar { background: #437a61; border-radius: 1rem; }
.empty { color: var(--muted); padding: .55rem 0 .6rem; line-height: 1.5; }
.items, .meeting-list, .phase-list, .version-list { list-style: none; padding: 0; }
.meeting-panel { background: #f3f8f3; border-color: #d9e7dc; }
.meeting-list li { display: flex; gap: .85rem; align-items: center; padding: .65rem 0; min-width: 0; }
.meeting-list li + li { border-top: 1px solid #dfe9e0; }
.date-tile {
  display: grid;
  place-content: center;
  gap: .15rem;
  min-width: 52px;
  min-height: 53px;
  padding: .27rem;
  text-align: center;
  background: #e5efe6;
  border-radius: 11px;
  color: #24573f;
  flex: none;
}
.date-tile strong { font-size: 1.27rem; line-height: 1; }
.date-tile span { font-size: .76rem; font-weight: 680; }
.next-panel {
  border-color: #cfe2d4;
  background: linear-gradient(130deg, #edf6ee, #f9fcf9 75%);
}
.next-copy { display: grid; justify-items: start; gap: .58rem; margin: .9rem 0 1.05rem; }
.next-copy h3 { font: 400 1.7rem/1.2 Georgia, serif; letter-spacing: -.03em; overflow-wrap: anywhere; }
.status {
  display: inline-flex;
  align-items: center;
  font-size: .85rem;
  line-height: 1.28;
  font-weight: 660;
  padding: .27rem .53rem;
  border-radius: .48rem;
  background: #edf1ee;
  color: #405448;
}
.status-review { background: var(--soft-blue); color: #2d4c72; }
.status-active, .status-done { background: #e2f1e6; color: #205642; }
.status-revision { background: var(--soft-orange); color: #823f1c; }
.status-open { background: #f0f0e4; color: #5b561c; }
.item-row > .status, .phase-list .status { flex: none; }

.tabs { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.tabs a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #43584b;
  text-decoration: none;
  padding: .45rem .78rem;
  border-radius: 9px;
  font-size: .91rem;
  font-weight: 650;
}
.tabs a:hover { background: #edf4ee; }
.tabs a[aria-current] { color: var(--forest-dark); background: #deeee2; }
.room-tabs { margin-bottom: 1.15rem; padding: .55rem; border-radius: 13px; background: var(--paper); border: 1px solid var(--line); }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem; margin-bottom: .8rem; }
.search { display: flex; gap: .4rem; align-items: center; min-width: 0; }
.search input { max-width: 270px; }
.phase-list li {
  display: flex;
  gap: .65rem;
  align-items: center;
  padding: .8rem 0;
}
.phase-list li + li { border-top: 1px solid #e7ede8; }
.phase-list .text-link { font-size: .88rem; min-height: 44px; display: inline-flex; align-items: center; }
.phase-dot { width: 11px; height: 11px; flex: none; border-radius: 50%; border: 1.5px solid #acbdb0; }
.phase-active { background: #fff; border: 3px solid #397457; }
.phase-done { background: #397457; border-color: #397457; }
.room-contact { margin: .4rem 0; font-weight: 650; }
.room-settings summary, .summary-edit summary { font-weight: 670; }
.room-settings p { margin-top: .75rem; }
.room-settings form { margin-top: 1rem; }
.room-settings summary { min-height: 44px; align-content: center; }
.facts { display: flex; gap: .7rem 1.5rem; flex-wrap: wrap; margin: .8rem 0; }
.facts > div { min-width: 0; }
.facts dt { color: var(--muted); font-size: .89rem; font-weight: 620; }
.facts dd { font-weight: 650; margin-top: .1rem; overflow-wrap: anywhere; }
.task-description { border-top: 1px solid var(--line); padding-top: .8rem; }
.version { padding: .9rem 0; }
.version + .version { border-top: 1px solid var(--line); }
.version-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.version p + p { margin-top: .3rem; }
.feedback { padding: .78rem; border-radius: 11px; background: #edf4ee; margin-top: .7rem; }
.feedback > p { margin-top: .3rem; }
.feedback-panel .preserve-lines { margin-bottom: .5rem; }
.summary-edit, .row-form { margin-top: .9rem; }
.summary-edit > summary { min-height: 44px; align-content: center; }
.decision { padding: .68rem 0; }
.decision + .decision { border-top: 1px solid var(--line); }
.decision a { display: inline-flex; min-height: 44px; align-items: center; margin-top: .3rem; }
.bordered-form, .conversation { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.conversation-entry { padding: .75rem 0; }
.conversation-entry + .conversation-entry { border-top: 1px solid var(--line); }
.conversation-entry .preserve-lines { margin-top: .3rem; }
.conversation-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; }
.conversation-meta time { color: var(--muted); font-size: .88rem; }
.notice h2 { font-size: 1rem; }
.notice .status { margin-top: .35rem; }

.flash-stack { display: grid; gap: .6rem; margin-bottom: 1rem; }
.flash {
  padding: .7rem .92rem;
  color: #234b39;
  background: #e4f2e8;
  border: 1px solid #bbd6c5;
  border-radius: 11px;
  overflow-wrap: anywhere;
}
.flash.error { background: #fbece9; color: var(--danger); border-color: #e8bdb4; }
.flash.warning { background: #fbf2e5; color: #70441e; border-color: #e7cfaf; }
.stack-form { display: grid; gap: 1rem; justify-items: start; }
.field { width: 100%; display: grid; gap: .35rem; min-width: 0; }
.field label { font-weight: 660; }
.field-help { font-size: .88rem; color: var(--muted); }
.field-help ul { padding-left: 1.2rem; }
.field-check label { display: flex; align-items: center; min-height: 44px; gap: .65rem; font-weight: 560; }
.errorlist { color: var(--danger); font-size: .9rem; padding-left: 1.2rem; }
input:not([type="hidden"], [type="checkbox"]), textarea, select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .5rem .65rem;
  background: var(--paper);
  border: 1px solid #b9c8bd;
  border-radius: 9px;
  font-size: 1rem;
}
input[type="file"] { overflow: hidden; }
input[type="file"]::file-selector-button { padding: .25rem .5rem; margin-right: .6rem; color: var(--forest-dark); background: #e8f1ea; border: 1px solid #cbdccf; border-radius: 6px; font: inherit; cursor: pointer; }
input[type="checkbox"] { width: 1.23rem; height: 1.23rem; margin: 0; accent-color: var(--forest); flex: none; }
input:disabled, select:disabled { background: #edf1ee; color: #506058; }
textarea { resize: vertical; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 51%, #41604f 51%), linear-gradient(135deg, #41604f 51%, transparent 51%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
  text-overflow: ellipsis;
}
.submit-guide { margin-bottom: 1rem; padding: .8rem 1rem; background: var(--soft-orange); border-radius: 12px; font-size: .95rem; }
.submit-guide p { margin: 0; }
.submit-guide p + p { margin-top: .5rem; }
.calendar-link input { width: 100%; font: inherit; font-size: .85rem; }

.login-layout {
  min-height: min(680px, calc(100vh - 4rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.login-brand {
  display: grid;
  justify-items: start;
  align-content: end;
  gap: 1.05rem;
  padding: clamp(2rem, 5.3vw, 4.6rem);
  color: #fff;
  background: radial-gradient(ellipse at 80% 8%, #367860, transparent 62%), linear-gradient(148deg, #245f4c, #0f3c2e 75%);
}
.login-brand .brand-mark { width: 49px; height: 49px; border: 1px solid #a6c8b2; background: #ffffff14; }
.login-brand .brand-mark::after { top: 22px; left: 21px; }
.login-brand h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; color: #f7fbf6; }
.login-brand p { color: #e4eee6; max-width: 30ch; }
.login-side { display: grid; align-content: center; gap: 1rem; padding: clamp(1.35rem, 4vw, 3.2rem); }
.login-side h2 { font: 400 2.15rem/1.1 Georgia, serif; letter-spacing: -.032em; }
.login-side .stack-form > .primary { width: 100%; }
.login-help a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.example-sign-in { border-top: 1px solid var(--line); padding-top: 1rem; }
.example-sign-in h3 { margin-bottom: .62rem; color: var(--muted); }
.auth-card { max-width: 580px; margin: 1rem auto; padding: clamp(1.3rem, 5vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.signed-in .auth-card { margin: 0; }
.auth-card h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.auth-card > :not(:first-child) { margin-top: .9rem; }
.auth-back { display: inline-flex; min-height: 44px; align-items: center; font-weight: 650; }
.mfa-setup-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .85rem 1.1rem; }
.mfa-qr { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.mfa-manual summary { display: list-item; min-height: 44px; align-content: center; font-weight: 650; }
.mfa-manual code { display: block; margin-top: .4rem; overflow-wrap: anywhere; }
.mfa-codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .48rem;
  list-style: none;
  padding: 0;
}
.mfa-codes code { display: block; padding: .5rem .58rem; background: var(--sidebar); border-radius: 7px; overflow-wrap: anywhere; }

.icon { width: 20px; height: 20px; display: inline-block; flex: none; position: relative; }
.icon::before, .icon::after { content: ""; display: block; position: absolute; }
.icon-grid::before { border: 1.55px solid currentColor; inset: 2px; border-radius: 4px; }
.icon-grid::after { top: 6px; left: 6px; width: 3px; height: 3px; border-radius: .6px; background: currentColor; box-shadow: 5px 0 currentColor, 0 5px currentColor, 5px 5px currentColor; }
.icon-book::before { inset: 1px 3px; border: 1.55px solid currentColor; border-radius: 2px 4px 4px 2px; }
.icon-book::after { top: 7px; left: 8px; width: 5px; height: 1.6px; background: currentColor; box-shadow: 0 4px currentColor; }
.icon-calendar::before { inset: 3px 2px 2px; border: 1.55px solid currentColor; border-radius: 4px; }
.icon-calendar::after { top: 8px; left: 3px; width: 14px; height: 1.55px; background: currentColor; }
.icon-bell::before { inset: 2px 4px 5px; border: 1.55px solid currentColor; border-radius: 7px 7px 3px 3px; }
.icon-bell::after { bottom: 2px; left: 8px; width: 4px; height: 1.55px; border-radius: 2px; background: currentColor; }
.icon-person::before { top: 1px; left: 6px; width: 8px; height: 8px; border: 1.55px solid currentColor; border-radius: 50%; }
.icon-person::after { inset: 10px 2px 1px; border: 1.55px solid currentColor; border-radius: 8px 8px 3px 3px; }
.icon-file::before { inset: 1px 3px; border: 1.55px solid currentColor; border-radius: 3px; }
.icon-file::after { top: 7px; left: 7px; width: 6px; height: 1.5px; background: currentColor; box-shadow: 0 4px currentColor; }
.icon-clock::before { inset: 1px; border: 1.55px solid currentColor; border-radius: 50%; }
.icon-clock::after { top: 5px; left: 9px; width: 5px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.icon-plus { width: 16px; height: 16px; }
.icon-plus::before { left: 2px; right: 2px; top: 7px; height: 1.5px; background: currentColor; }
.icon-plus::after { top: 2px; bottom: 2px; left: 7px; width: 1.5px; background: currentColor; }

@media (max-width: 1050px) {
  .sidebar { width: 190px; padding-inline: .8rem; }
  .application { margin-left: 190px; }
  .main, .topbar { padding-inline: 1.5rem; }
  .metrics { gap: .65rem; }
  .metric { gap: .55rem; padding: .8rem; }
  .metric-icon { width: 36px; height: 36px; }
  .dashboard-columns { gap: .8rem; }
}

@media (max-width: 800px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    padding: .28rem max(.35rem, env(safe-area-inset-right)) max(.28rem, env(safe-area-inset-bottom)) max(.35rem, env(safe-area-inset-left));
    background: var(--paper);
    border: 0;
    border-top: 1px solid var(--line);
  }
  .sidebar > .brand, .sidebar-bottom, .breadcrumb { display: none; }
  .side-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .15rem; }
  .management-nav { grid-template-columns: minmax(0, 1fr); }
  .side-nav a { min-height: 51px; gap: .12rem; align-items: center; justify-content: center; flex-direction: column; padding: .28rem .1rem; font-size: clamp(.73rem, 2.65vw, .86rem); }
  .side-nav .nav-count { position: absolute; top: .12rem; left: calc(50% + .38rem); font-size: .68rem; min-width: 1.12rem; padding: .04rem .22rem; }
  .application { margin: 0; }
  .main { padding-bottom: 5.4rem; }
  .topbar { min-height: 58px; }
  .mobile-brand { display: inline-flex; }
  .mobile-brand .brand-mark { width: 34px; height: 34px; }
  .mobile-brand .brand-mark::after { top: 14px; left: 13px; }
  .mobile-account { display: block; position: relative; }
  .mobile-account summary { list-style: none; display: grid; place-items: center; min-height: 44px; min-width: 44px; }
  .mobile-account summary::-webkit-details-marker { display: none; }
  .account-popover {
    position: absolute;
    z-index: 6;
    right: 0;
    top: 100%;
    min-width: 180px;
    max-width: 240px;
    padding: .75rem .85rem;
    background: var(--paper);
    box-shadow: 0 6px 28px #173e3021;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow-wrap: anywhere;
  }
  .account-popover .quiet { padding-left: 0; }
}

@media (max-width: 620px) {
  .main, .topbar { padding-inline: .92rem; }
  .topbar.demo-header { grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .65rem; }
  .demo-switch { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-switch button { width: 100%; }
  .main { padding-top: 1.45rem; }
  .mfa-setup-grid { grid-template-columns: minmax(0, 1fr); }
  .page-heading { align-items: flex-start; flex-direction: column; gap: .9rem; }
  .page-heading h1 { font-size: clamp(2.1rem, 8.3vw, 3rem); }
  .dashboard-heading { margin-bottom: 1.15rem; }
  .dashboard-columns { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .dashboard-stack { gap: .85rem; }
  .metrics { gap: .52rem; margin-bottom: .85rem; }
  .metric { min-height: 0; padding: .66rem .52rem; flex-direction: column; align-items: flex-start; gap: .48rem; border-radius: 12px; }
  .metric-icon { width: 31px; height: 31px; border-radius: 8px; }
  .metric strong { font-size: 1.52rem; }
  .metric div span { font-size: .82rem; overflow-wrap: anywhere; }
  .panel { border-radius: 15px; }
  .section-space { margin-top: .85rem; }
  .thesis-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .4rem .65rem; }
  .thesis-row .student-avatar { grid-row: span 2; align-self: start; }
  .thesis-stage, .thesis-open { grid-column: 2; }
  .thesis-open { width: max-content; }
  .item-row { flex-wrap: wrap; }
  .advisor-invite-row .item-copy { flex-basis: 100%; }
  .phase-list li { flex-wrap: wrap; gap: .35rem .55rem; }
  .phase-list li .item-copy { flex-basis: 58%; }
  .phase-list .text-link { margin-left: auto; }
  .tabs { gap: .15rem; }
  .tabs a { padding-inline: .56rem; font-size: .875rem; }
  .review-row .avatar { width: 35px; height: 35px; }
  .review-row { gap: .55rem; }
  .public-main { padding: .85rem; }
  .login-layout { min-height: 0; grid-template-columns: minmax(0, 1fr); border-radius: 17px; }
  .login-brand { padding: 1.3rem; gap: .56rem; }
  .login-brand .brand-mark { width: 38px; height: 38px; }
  .login-brand .brand-mark::after { top: 16px; left: 15px; }
  .login-brand h1 { font-size: clamp(2.15rem, 9vw, 3rem); }
  .login-brand p { max-width: 35ch; }
}

/* Resmî metinler */
.legal-layout { display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); gap: clamp(1rem, 4vw, 3rem); align-items: start; }
.legal-nav { position: sticky; top: 1rem; display: grid; gap: .2rem; }
.legal-nav .brand { margin-bottom: .8rem; }
.legal-nav a:not(.brand) { padding: .5rem .7rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
.legal-nav a[aria-current="page"] { background: var(--soft-green); color: var(--forest-dark); font-weight: 650; }
.legal-text { max-width: 72ch; padding: clamp(1.2rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.legal-text h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal-text h2 { margin-top: 1.8rem; font-size: 1.15rem; }
.legal-text p, .legal-text ul, .legal-text table, .legal-text dl { margin-top: .7rem; }
.legal-text ul { padding-left: 1.2rem; }
.legal-text li + li { margin-top: .3rem; }
.legal-draft { padding: .6rem .9rem; border-radius: 12px; background: var(--soft-orange); font-weight: 600; margin-bottom: 1rem; }
.legal-todo { background: var(--soft-orange); border-radius: 6px; padding: 0 .3rem; font-style: italic; }
.legal-meta { margin-top: 2rem !important; color: var(--muted); font-size: .9rem; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.2rem; }
.legal-facts dt { font-weight: 650; }
.faq { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.faq p { margin-top: .3rem; }
.legal-quick { padding-left: 1.2rem; }
.consent-field label { align-items: flex-start; }
.consent-field input { margin-top: .3rem; flex: none; }
.site-footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .88rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.site-footer a { color: var(--muted); }
@media (max-width: 760px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; }
  .legal-facts { grid-template-columns: 1fr; }
}
