:root {
  --ink: #1c1e26;
  --muted: #5b6275;
  --paper: #f8f9fb;
  --paper-deep: #eef1f5;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --forest: #0b0e14;
  --mint: #00f4b9;
  --mint-dark: #00a87e;
  --violet: #7b2cbf;
  --coral: #ff5a5f;
  --line: rgba(28, 30, 38, 0.1);
  --line-dark: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 70px rgba(20, 24, 38, 0.11);
  --shadow-soft: 0 12px 36px rgba(20, 24, 38, 0.07);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 89% 2%, rgba(0, 244, 185, 0.11), transparent 27rem),
    radial-gradient(circle at 23% 95%, rgba(123, 44, 191, 0.07), transparent 30rem),
    var(--paper);
  font-family: "Inter", sans-serif;
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Outfit", sans-serif; color: var(--ink); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.035;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

.loading-shell {
  width: min(760px, calc(100% - 40px));
  margin: 16vh auto;
  padding: 50px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.loading-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 38px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mint), var(--violet));
  animation: breathe 1.4s ease-in-out infinite;
}
.skeleton {
  width: 55%;
  height: 14px;
  margin: 14px 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--paper-deep), #fff, var(--paper-deep));
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton.wide { width: 78%; height: 36px; }
@keyframes breathe { 50% { opacity: 0.55; transform: scale(0.96) rotate(4deg); } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes auth-float { 50% { transform: translateY(-12px) rotate(4deg); } }

.auth-layout {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.75fr);
  gap: clamp(44px, 7vw, 104px);
  padding: clamp(28px, 4vw, 56px) max(24px, calc((100vw - 1280px) / 2));
  overflow: hidden;
  color: #fff;
  background: #0b0e14;
}
.auth-layout::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(72vw, 960px);
  aspect-ratio: 1;
  top: -54%;
  left: -21%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 244, 185, 0.22), transparent 66%);
}
.auth-layout::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  right: -18%;
  bottom: -48%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 44, 191, 0.28), transparent 68%);
}
.auth-story {
  position: relative;
  min-height: calc(100vh - clamp(56px, 8vw, 112px));
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(260px, 34vw, 490px);
  aspect-ratio: 1;
  right: clamp(-170px, -11vw, -80px);
  bottom: 2%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  transform: rotate(-8deg);
}
.auth-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(130px, 17vw, 240px);
  aspect-ratio: 1;
  right: clamp(-60px, -3vw, 4px);
  bottom: 10%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 244, 185, 0.9), rgba(123, 44, 191, 0.78));
  box-shadow: 0 22px 80px rgba(0, 244, 185, 0.12);
  animation: auth-float 5s ease-in-out infinite;
}
.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}
.brand img { width: 142px; height: auto; border-radius: 9px; }
.auth-copy { position: relative; z-index: 1; max-width: 600px; }
.eyebrow {
  color: var(--mint-dark);
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.auth-story .eyebrow, .auth-card > .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 15px;
  color: var(--mint);
  background: rgba(0, 244, 185, 0.09);
  border: 1px solid rgba(0, 244, 185, 0.2);
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: none;
}
.auth-card > .eyebrow { color: var(--mint-dark); background: rgba(0, 244, 185, 0.08); }
.auth-story h1 {
  max-width: 720px;
  margin: 24px 0;
  color: #fff;
  font-size: clamp(3.7rem, 6vw, 6.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.94;
}
.auth-story h1 span {
  color: transparent;
  background: linear-gradient(135deg, var(--mint), #b769ff);
  background-clip: text;
  -webkit-background-clip: text;
}
.auth-story p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}
.auth-foot { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.4); font-size: 0.78rem; }
.auth-panel { display: flex; align-items: center; padding: 26px 0; }
.auth-card {
  width: 100%;
  padding: clamp(30px, 4vw, 50px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
  animation: rise 0.55s ease both;
}
.auth-card h2 { margin: 18px 0 8px; font-size: 3rem; line-height: 1; letter-spacing: -0.04em; }
.lede { color: var(--muted); line-height: 1.65; }
.tabs { display: flex; gap: 7px; margin: 28px 0 20px; padding: 5px; background: var(--paper-deep); border-radius: 14px; }
.tab {
  flex: 1;
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}
.tab.active { color: var(--ink); background: #fff; box-shadow: 0 6px 18px rgba(20, 24, 38, 0.08); }
.form-grid { display: grid; gap: 15px; }
label { display: grid; gap: 7px; color: #464d5e; font-family: "Outfit", sans-serif; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em; }
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(248, 249, 251, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
textarea.large { min-height: 220px; }
input:focus, textarea:focus, select:focus {
  background: #fff;
  border-color: var(--mint-dark);
  box-shadow: 0 0 0 4px rgba(0, 244, 185, 0.12);
}
.button {
  padding: 13px 18px;
  color: #09110f;
  background: var(--mint);
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}
.button:hover { background: #20f7c4; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 204, 152, 0.22); }
.button:focus-visible, .tab:focus-visible, .nav-link:focus-visible, .logout:focus-visible, .text-button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(0, 244, 185, 0.4);
  outline-offset: 3px;
}
.button:disabled { opacity: 0.5; cursor: wait; transform: none; }
.button.secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button.secondary:hover { border-color: rgba(0, 168, 126, 0.3); box-shadow: var(--shadow-soft); }
.button.small { padding: 8px 11px; border-radius: 9px; font-size: 0.76rem; }
.button.danger { color: #9c2e32; background: #fff0f0; border-color: rgba(255, 90, 95, 0.2); }
.text-button { padding: 0; color: var(--mint-dark); background: none; border: 0; cursor: pointer; font-weight: 700; text-decoration: underline; }
.form-note { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.inline-error { margin: 4px 0 0; padding: 11px 13px; color: #9c2e32; background: #fff0f0; border: 1px solid rgba(255, 90, 95, 0.18); border-radius: 11px; font-size: 0.84rem; }

.portal { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 100vh;
  padding: 30px 24px 26px;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 244, 185, 0.16), transparent 17rem),
    radial-gradient(circle at 110% 88%, rgba(123, 44, 191, 0.22), transparent 20rem),
    #0b0e14;
  display: flex;
  flex-direction: column;
}
.sidebar::after {
  content: "";
  position: absolute;
  right: -96px;
  bottom: 92px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 44px;
  transform: rotate(24deg);
  pointer-events: none;
}
.sidebar .brand img { width: 138px; }
.role-chip {
  display: inline-flex;
  width: fit-content;
  margin: 31px 0 37px;
  padding: 7px 10px;
  color: var(--mint);
  background: rgba(0, 244, 185, 0.06);
  border: 1px solid rgba(0, 244, 185, 0.24);
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.nav-list { position: relative; z-index: 1; display: grid; gap: 6px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); transform: translateX(2px); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(0, 244, 185, 0.15), rgba(0, 244, 185, 0.04)); border-color: rgba(0, 244, 185, 0.13); }
.nav-dot { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.nav-link.active .nav-dot { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 0 4px rgba(0, 244, 185, 0.08); }
.sidebar-account { position: relative; z-index: 1; margin-top: auto; padding-top: 25px; border-top: 1px solid var(--line-dark); }
.account-name { margin-bottom: 3px; font-family: "Outfit", sans-serif; font-size: 0.9rem; font-weight: 700; }
.account-org { overflow: hidden; color: rgba(255, 255, 255, 0.45); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.logout { margin-top: 15px; padding: 0; color: var(--mint); background: none; border: 0; cursor: pointer; font-size: 0.75rem; font-weight: 600; text-decoration: underline; }

.workspace { min-width: 0; padding: 38px clamp(24px, 5vw, 72px) 76px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; margin-bottom: 40px; }
.topbar h1 { margin: 7px 0 0; font-size: clamp(2.4rem, 5vw, 4.7rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
.date-stamp { padding-top: 10px; color: var(--muted); font-family: "Outfit", sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.topbar-actions { display: flex; flex-shrink: 0; flex-direction: column; align-items: flex-end; gap: 14px; }
.view { display: none; animation: rise 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
.view.active { display: block; }
.stat-grid { display: grid; grid-template-columns: 1.25fr 0.75fr 0.75fr; gap: 16px; margin-bottom: 32px; }
.stat {
  position: relative;
  min-height: 178px;
  padding: 25px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.stat::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -56px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(123, 44, 191, 0.08);
  border-radius: 34px;
  transform: rotate(24deg);
}
.stat.primary {
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 244, 185, 0.2), transparent 15rem),
    linear-gradient(135deg, #0b0e14, #151a26);
  border-color: rgba(255, 255, 255, 0.08);
}
.stat-label { color: var(--muted); font-family: "Outfit", sans-serif; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.stat.primary .stat-label { color: var(--mint); }
.stat-value { margin-top: 30px; font-family: "Outfit", sans-serif; font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; }
.stat-detail { margin-top: 12px; color: var(--muted); font-size: 0.78rem; }
.stat.primary .stat-detail { color: rgba(255, 255, 255, 0.5); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 36px 0 17px; }
.section-head h2 { margin: 0; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 0.82rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card, .form-card {
  padding: 23px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { border-color: rgba(0, 168, 126, 0.14); box-shadow: 0 18px 44px rgba(20, 24, 38, 0.1); transform: translateY(-2px); }
.card h3, .form-card h3 { margin-bottom: 6px; font-size: 1.04rem; font-weight: 700; }
.card-sub { color: var(--muted); font-size: 0.8rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 9px;
  color: #485064;
  background: var(--paper-deep);
  border: 1px solid rgba(28, 30, 38, 0.06);
  border-radius: 999px;
  font-family: "Outfit", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-approved, .status-completed { color: #08785c; background: rgba(0, 244, 185, 0.1); border-color: rgba(0, 168, 126, 0.14); }
.status-requested, .status-proposed { color: #713aa1; background: rgba(123, 44, 191, 0.08); border-color: rgba(123, 44, 191, 0.12); }
.status-cancelled { color: #9c2e32; background: #fff0f0; border-color: rgba(255, 90, 95, 0.14); }
.split { display: grid; grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr); gap: 22px; align-items: start; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack { display: grid; gap: 13px; }
.empty { padding: 30px; color: var(--muted); text-align: center; background: rgba(255, 255, 255, 0.58); border: 1px dashed rgba(28, 30, 38, 0.16); border-radius: var(--radius); }
.empty-mark { position: relative; width: 34px; height: 34px; margin: 0 auto 14px; border: 1px solid rgba(0, 168, 126, 0.34); border-radius: 50%; }
.empty-mark::before, .empty-mark::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--mint-dark); transform: translate(-50%, -50%); }
.empty-mark::before { width: 12px; height: 1px; }
.empty-mark::after { width: 1px; height: 12px; }
.message-list { max-height: 460px; overflow-y: auto; display: grid; gap: 10px; padding-right: 5px; }
.message { max-width: 82%; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; box-shadow: 0 5px 16px rgba(20, 24, 38, 0.04); }
.message.mine { justify-self: end; color: #fff; background: linear-gradient(135deg, #121721, #28203b); border-color: rgba(123, 44, 191, 0.18); border-radius: 16px 16px 4px 16px; }
.message small { display: block; margin-top: 6px; opacity: 0.58; font-size: 0.62rem; }
.plan-copy { color: #454d5f; line-height: 1.72; white-space: pre-wrap; }
.tools { display: grid; gap: 9px; }
.tool { display: flex; align-items: center; gap: 11px; padding: 12px; background: rgba(248, 249, 251, 0.75); border: 1px solid var(--line); border-radius: 12px; }
.tool-check { width: 18px; height: 18px; background: var(--mint); border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 168, 126, 0.25); }
.meeting-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.document-link { display: flex; justify-content: space-between; align-items: center; gap: 14px; text-decoration: none; }
.document-link:hover h3 { color: var(--mint-dark); text-decoration: underline; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.check-grid label { display: flex; align-items: center; gap: 8px; padding: 10px; color: var(--ink); background: rgba(248, 249, 251, 0.72); border: 1px solid var(--line); border-radius: 10px; font-size: 0.76rem; letter-spacing: 0; }
.check-grid input { width: auto; accent-color: var(--mint-dark); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 340px; padding: 13px 17px; color: #fff; background: #121721; border: 1px solid rgba(0, 244, 185, 0.2); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: 0.25s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #6e2529; border-color: rgba(255, 255, 255, 0.12); }

.admin-portal { --mint: #00f4b9; }
.admin-portal .sidebar { background: radial-gradient(circle at 10% 0%, rgba(123, 44, 191, 0.22), transparent 18rem), #0b0e14; }
.admin-portal .role-chip { color: #c88fff; border-color: rgba(183, 105, 255, 0.3); background: rgba(123, 44, 191, 0.1); }
.control-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
  padding: 28px 31px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(0, 244, 185, 0.18), transparent 16rem),
    linear-gradient(120deg, #0b0e14, #21172f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.control-banner h2 { max-width: 650px; margin: 5px 0 0; color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
.control-banner > span { flex: 0 0 auto; padding: 7px 10px; color: var(--mint); border: 1px solid rgba(0, 244, 185, 0.24); border-radius: 8px; font-family: "Outfit", sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-metric { margin-top: 18px; font-family: "Outfit", sans-serif; font-size: 2.8rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.admin-split { grid-template-columns: minmax(300px, 0.65fr) minmax(520px, 1.35fr); }
.admin-table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.admin-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 0.78rem; }
.admin-table th { color: var(--muted); background: rgba(238, 241, 245, 0.72); font-family: "Outfit", sans-serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { margin-top: 3px; color: var(--muted); }
.locked-label { color: var(--muted); font-family: "Outfit", sans-serif; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; }
.assignment-row, .editable-row, .tool-admin-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.assignment-row h3 { margin-top: 5px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tool-admin-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tool-admin-row:last-child { border-bottom: 0; }
.admin-content-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.content-heading { margin: 36px 0 14px; }
.editable-row .plan-copy { margin-bottom: 0; }
.pa-management-layout { display: grid; grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1.45fr); gap: 20px; align-items: start; }
.pa-roster-grid, .pending-grid { display: grid; gap: 16px; }
.pa-roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pending-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pa-roster-card { gap: 13px; }
.pa-card-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.capacity-ring { display: grid; place-items: center; flex: 0 0 auto; width: 58px; height: 58px; color: #713aa1; background: rgba(123, 44, 191, 0.08); border: 1px solid rgba(123, 44, 191, 0.18); border-radius: 50%; font-family: "Outfit", sans-serif; font-size: 0.72rem; font-weight: 700; }
.pending-assignment { border-top: 3px solid var(--mint); }
.pending-banner { display: grid; gap: 10px; max-width: 620px; }
.pending-banner .pill { justify-self: start; }

@media (max-width: 920px) {
  .auth-layout { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px 72px; }
  .auth-story { min-height: 420px; padding: 0; }
  .auth-story h1 { max-width: 680px; }
  .auth-story::before { right: -80px; bottom: -30px; }
  .auth-story::after { right: 20px; bottom: 8px; }
  .auth-panel { padding: 0; }
  .portal { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; padding: 18px 20px; flex-direction: row; align-items: center; gap: 18px; overflow-x: auto; }
  .sidebar::after, .role-chip, .sidebar-account { display: none; }
  .nav-list { display: flex; margin-left: auto; }
  .nav-link { white-space: nowrap; }
  .workspace { padding-top: 30px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat.primary { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
  .admin-metric-grid, .admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-content-columns, .pa-management-layout { grid-template-columns: 1fr; }
  .pending-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .auth-layout { gap: 24px; padding: 22px 18px 48px; }
  .auth-story { min-height: 350px; }
  .auth-story h1 { margin: 18px 0; font-size: clamp(2.75rem, 14vw, 3.65rem); }
  .auth-story p { max-width: 92%; font-size: 1rem; }
  .auth-story::before { width: 260px; right: -120px; bottom: -12px; }
  .auth-story::after { width: 130px; right: -12px; bottom: 16px; }
  .auth-foot { display: none; }
  .auth-card { padding: 28px 22px; border-radius: 24px; }
  .auth-card h2 { font-size: 2.55rem; }
  .sidebar { align-items: flex-start; flex-wrap: wrap; }
  .nav-list { width: 100%; order: 2; overflow-x: auto; }
  .nav-dot { display: none; }
  .nav-link { padding: 8px 10px; font-size: 0.78rem; }
  .workspace { padding: 25px 17px 55px; }
  .topbar { margin-bottom: 28px; }
  .date-stamp { display: none; }
  .topbar { align-items: center; }
  .stat-grid, .card-grid, .two-col { grid-template-columns: 1fr; }
  .stat.primary { grid-column: auto; }
  .stat { min-height: 135px; }
  .stat-value { margin-top: 20px; }
  .check-grid { grid-template-columns: 1fr; }
  .control-banner { align-items: flex-start; flex-direction: column; }
  .admin-metric-grid, .admin-form-grid, .pa-roster-grid, .pending-grid { grid-template-columns: 1fr; }
  .assignment-row, .editable-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
.form-note a { color: var(--mint-dark); font-weight: 700; }
.invite-note { margin-bottom: 0; }
.member-number-note { margin: -6px 0 0; }

/* NuGrant reviews (PA workspace) */
.nugrant-card { display: grid; gap: 16px; }
.nugrant-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.nugrant-head .eyebrow { margin-bottom: 8px; }
.nugrant-score { display: grid; justify-items: end; text-align: right; line-height: 1.1; }
.nugrant-score strong { font-family: "Outfit", sans-serif; font-size: 2.4rem; font-weight: 700; }
.nugrant-score span { color: var(--muted); font-size: 0.8rem; }
.nugrant-score em { margin-top: 6px; color: var(--mint-dark); font-size: 0.78rem; font-style: normal; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.nugrant-sections { display: grid; gap: 10px; }
.nugrant-section { display: grid; grid-template-columns: minmax(150px, 190px) 1fr 48px; gap: 14px; align-items: center; font-size: 0.86rem; }
.nugrant-section span { color: var(--muted); }
.nugrant-section b { text-align: right; }
.nugrant-bar { height: 8px; border-radius: 999px; background: var(--paper-deep); overflow: hidden; }
.nugrant-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint-dark), var(--mint)); }
.nugrant-notes { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.nugrant-notes h4 { margin: 0 0 8px; font-family: "Outfit", sans-serif; font-size: 0.92rem; }
.nugrant-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.9rem; }
.nugrant-answers summary { cursor: pointer; color: var(--mint-dark); font-weight: 700; font-size: 0.88rem; }
.nugrant-answers dl { display: grid; grid-template-columns: minmax(160px, 34%) 1fr; gap: 10px 18px; margin: 14px 0 0; font-size: 0.88rem; }
.nugrant-answers dt { color: var(--muted); font-weight: 600; }
.nugrant-answers dd { margin: 0; white-space: pre-wrap; }
.nugrant-decision, .nugrant-decided { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.nugrant-decision label { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 600; }
.nugrant-decided .pill, .nugrant-decided .button { justify-self: start; }

@media (max-width: 640px) {
  .nugrant-head { flex-direction: column; }
  .nugrant-score { justify-items: start; text-align: left; }
  .nugrant-section { grid-template-columns: 1fr 44px; }
  .nugrant-section .nugrant-bar { grid-column: 1 / -1; grid-row: 2; }
  .nugrant-answers dl { grid-template-columns: 1fr; }
}
