:root {
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans SC',sans-serif;
  color:#24272c;
  background:#f5f6f8;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
  --ink:#24272c;
  --muted:#838783;
  --line:#e8e9ed;
  --soft:#f6f7f9;
  --button-ink:#313743;
  --button-soft:#eff1f6;
  --accent:#dce3ee;
  --ease-out:cubic-bezier(.23,1,.32,1);
  --ease-in-out:cubic-bezier(.77,0,.175,1);
  font-optical-sizing:auto;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:96px;
}

body {
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:#f5f6f8;
}

a {
  color:inherit;
  text-decoration:none;
}

button,input,textarea,select {
  font:inherit;
}

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

.topbar {
  min-height:62px;
  padding:0 24px;
  border-bottom:1px solid #e6e8ed;
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px) saturate(150%);
}

.topbar-inner {
  width:min(1200px,100%);
  min-height:62px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:38px;
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  flex:none;
  font-size:14px;
  letter-spacing:0;
  white-space:nowrap;
}

.brand-mark {
  width:28px;
  height:28px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:var(--accent);
  font-size:16px;
  letter-spacing:-.06em;
}

.brand-period {
  color:#7da620;
}

.main-nav,.top-actions {
  display:flex;
  align-items:center;
  gap:22px;
}

.main-nav {
  flex:1;
}

.main-nav a,.nav-admin,.quiet-button {
  font-size:13px;
  color:#6f747e;
  transition:color .18s ease,transform .18s var(--ease-out);
}

.main-nav a:hover,.nav-admin:hover,.quiet-button:hover {
  color:var(--ink);
}

.top-actions {
  gap:16px;
  margin-left:auto;
  flex:none;
}

.nav-chat {
  color:#4e5663;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
}

.nav-chat span {
  color:#8b92a0;
  margin-left:3px;
}

.inline-form {
  margin:0;
}

.quiet-button {
  padding:8px 0;
  border:0;
  background:none;
  cursor:pointer;
}

.avatar-link {
  display:inline-flex;
}

.avatar {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#edf0eb;
  color:#345340;
  font-weight:600;
  font-size:13px;
}

.page-shell {
  width:min(1160px,calc(100% - 48px));
  margin:0 auto;
  flex:1;
}

.site-footer {
  display:flex;
  justify-content:space-between;
  padding:30px max(5.5vw,24px);
  margin-top:100px;
  border-top:1px solid var(--line);
  color:#90958f;
  font-size:12px;
}

.button {
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  padding:15px 21px;
  border:1px solid var(--button-ink);
  border-radius:7px;
  background:var(--button-ink);
  color:white;
  font-weight:600;
  font-size:13px;
  line-height:1.2;
  cursor:pointer;
  transition:transform .14s var(--ease-out),background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
}

.button:hover {
  background:#454d5b;
  border-color:#454d5b;
  box-shadow:0 6px 16px rgba(33,40,54,.12);
}

.button:active {
  transform:scale(.975);
}

.button-small {
  padding:10px 14px;
  font-size:12px;
  gap:12px;
}

.button-outline {
  background:transparent;
  color:var(--button-ink);
}

.button-outline:hover {
  color:white;
}

.button-wide {
  width:100%;
  height:51px;
  margin-top:7px;
}

.button:focus-visible,a:focus-visible,button:focus-visible,summary:focus-visible {
  outline:3px solid #7e899d;
  outline-offset:3px;
}

.text-link,.back-link {
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:var(--button-ink);
  font-size:13px;
  font-weight:600;
  transition:gap .2s var(--ease-out),color .18s ease;
}

.text-link:hover,.back-link:hover {
  gap:14px;
  color:#414958;
}

.hero {
  padding:104px 0 112px;
  max-width:780px;
  animation:rise-in .55s var(--ease-out) both;
}

.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:.17em;
  color:#898f88;
  margin:0 0 18px;
}

.hero h1,.page-intro h1,.article-header h1,.error-state h1 {
  font-size:clamp(48px,8vw,86px);
  line-height:1.07;
  letter-spacing:-.065em;
  margin:0;
  font-weight:600;
}

.hero h1 span {
  color:#9ca39a;
}

.hero-copy {
  font-size:16px;
  color:#777e77;
  line-height:1.8;
  margin:25px 0 31px;
  max-width:460px;
}

.hero-actions {
  display:flex;
  align-items:center;
  gap:29px;
}

.section-block {
  padding:43px 0 55px;
  border-top:1px solid var(--line);
}

.section-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  margin-bottom:25px;
}

.section-heading .eyebrow {
  margin-bottom:10px;
}

.section-heading h2,.admin-section h2 {
  margin:0;
  font-size:26px;
  letter-spacing:-.04em;
}

.card-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
}

.content-card,.resource-card {
  display:flex;
  flex-direction:column;
  position:relative;
  min-height:226px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  transition:transform .22s var(--ease-out),border-color .2s ease,box-shadow .2s ease;
}

.content-card:hover,.resource-card:hover {
  transform:translateY(-4px);
  border-color:#d5dbd4;
  box-shadow:0 12px 32px rgba(39,52,41,.06);
}

.card-meta {
  font-size:10px;
  letter-spacing:.045em;
  color:#939991;
}

.content-card h3,.resource-card h2 {
  font-size:19px;
  letter-spacing:-.035em;
  margin:14px 0 9px;
}

.content-card p,.resource-card p {
  font-size:13px;
  line-height:1.7;
  color:#7c827c;
  margin:0 0 20px;
}

.card-arrow {
  position:absolute;
  right:20px;
  bottom:18px;
  color:#9da39d;
  transition:transform .2s var(--ease-out);
}

.content-card:hover .card-arrow {
  transform:translate(3px,-3px);
}

.resource-callout {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:4px;
  padding:42px;
  background:#f7f8f5;
  border:0;
  border-radius:10px;
}

.resource-callout h2 {
  font-size:31px;
  letter-spacing:-.045em;
  margin:0 0 10px;
}

.resource-callout p:not(.eyebrow) {
  color:#818780;
  font-size:13px;
  margin:0;
}

.resource-callout .eyebrow {
  margin-bottom:11px;
}

.page-intro {
  padding:76px 0 42px;
}

.page-intro h1 {
  font-size:clamp(48px,7vw,68px);
}

.page-intro>p:last-child {
  color:#7a807a;
  font-size:15px;
  margin:18px 0 0;
}

.list-stack {
  border-top:1px solid var(--line);
}

.post-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:27px 10px;
  border-bottom:1px solid var(--line);
  transition:padding .2s var(--ease-out),background .2s ease;
}

.post-row:hover {
  padding-left:17px;
  padding-right:17px;
  background:#fcfdfb;
}

.post-row h2 {
  font-size:22px;
  letter-spacing:-.04em;
  margin:8px 0;
}

.post-row p {
  font-size:13px;
  color:#818780;
  margin:0;
  line-height:1.65;
  max-width:760px;
}

.row-arrow {
  color:#9ba19b;
  font-size:18px;
  transition:transform .2s var(--ease-out);
}

.post-row:hover .row-arrow {
  transform:translate(3px,-3px);
}

.resource-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
}

.resource-card {
  min-height:248px;
  padding:23px;
}

.file-icon {
  width:35px;
  height:35px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:var(--button-soft);
  color:var(--button-ink);
  font-size:16px;
  margin-bottom:23px;
}

.resource-card h2 {
  margin:8px 0;
}

.resource-size {
  margin-top:auto;
  padding-top:16px;
  font-size:11px;
  color:#929891;
}

.empty-state {
  padding:70px 25px;
  text-align:center;
  border:1px dashed #e2e5e0;
  border-radius:9px;
  color:#7c837c;
}

.empty-state h2 {
  color:#3a403b;
  font-size:18px;
  margin:15px 0 5px;
}

.empty-state p {
  font-size:13px;
  margin:0;
}

.empty-icon {
  font-size:25px;
  color:#a8bf7e;
}

.article-view {
  max-width:760px;
  margin:0 auto;
  padding:66px 0 20px;
}

.back-link {
  color:#777e77;
  margin-bottom:54px;
  font-weight:500;
}

.article-header {
  padding-bottom:35px;
  border-bottom:1px solid var(--line);
}

.article-header .eyebrow {
  margin-bottom:15px;
}

.article-header h1 {
  font-size:clamp(40px,6vw,64px);
  line-height:1.12;
}

.article-deck {
  color:#828882;
  margin:15px 0 0;
  font-size:13px;
}

.article-body {
  padding:30px 0;
  color:#444a44;
  font-size:15px;
  line-height:1.95;
  overflow-wrap:anywhere;
}

.article-body h2,.article-body h3 {
  color:var(--ink);
  letter-spacing:-.035em;
  line-height:1.3;
  margin:1.8em 0 .6em;
}

.article-body p {
  margin:0 0 1.2em;
}

.article-body img {
  max-width:100%;
  height:auto;
  border-radius:7px;
}

.article-body a {
  color:#286346;
  text-decoration:underline;
  text-underline-offset:3px;
}

.article-body pre {
  overflow:auto;
  padding:17px;
  border-radius:8px;
  background:#f4f5f2;
  font-size:12px;
}

.article-body code {
  font-size:.9em;
  background:#f4f5f2;
  padding:2px 5px;
  border-radius:4px;
}

.version-list {
  margin:24px 0 30px;
}

.version-list h2 {
  font-size:18px;
  letter-spacing:-.03em;
}

.version-row,.setting-row,.logout-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  padding:17px 0;
}

.version-row strong,.setting-row strong,.logout-row strong {
  display:block;
  font-size:13px;
}

.version-row span,.setting-row small,.logout-row small {
  display:block;
  color:#898f89;
  font-size:11px;
  margin-top:5px;
}

.version-row .button {
  flex:none;
}

.login-wrap {
  display:grid;
  place-items:center;
  min-height:calc(100vh - 220px);
  padding:50px 0;
}

.login-card {
  width:min(100%,420px);
  padding:38px;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 20px 60px rgba(29,40,31,.05);
  animation:rise-in .4s var(--ease-out) both;
}

.login-card .back-link {
  margin-bottom:45px;
}

.login-card h1 {
  font-size:36px;
  letter-spacing:-.055em;
  margin:0;
}

.login-copy {
  font-size:13px;
  color:#7d837d;
  margin:11px 0 30px;
}

.form-stack {
  display:grid;
  gap:10px;
}

.form-stack label,.admin-form>label,.admin-form .form-grid label,.quick-form label {
  font-size:11px;
  font-weight:600;
  color:#555c55;
}

.form-stack input,.admin-form input:not([type=checkbox]):not([type=file]),.admin-form textarea,.admin-form select,.quick-form input {
  width:100%;
  border:1px solid #e0e4df;
  border-radius:6px;
  padding:12px 13px;
  background:#fff;
  color:var(--ink);
  font-size:13px;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease;
}

.form-stack input:focus,.admin-form input:focus,.admin-form textarea:focus,.admin-form select:focus,.quick-form input:focus {
  border-color:#86a78f;
  box-shadow:0 0 0 3px rgba(55,112,72,.09);
}

.form-stack input::placeholder,.quick-form input::placeholder {
  color:#b0b5b0;
}

.form-hint {
  margin:18px 0 0;
  text-align:center;
  font-size:11px;
  color:#969b96;
}

.button-spinner {
  display:none;
  width:15px;
  height:15px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:white;
  border-radius:50%;
}

.button.is-loading .button-spinner {
  display:block;
  animation:spin .7s linear infinite;
}

.button.is-loading .button-label {
  opacity:.8;
}

.button-spark {
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0;
  background:radial-gradient(circle at center,rgba(220,227,238,.34),transparent 65%);
  transform:scale(.55);
}

.button.is-loading .button-spark {
  animation:expand-glow .55s var(--ease-out) both;
}

.account-card {
  display:flex;
  align-items:center;
  gap:20px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:10px;
}

.account-avatar {
  width:56px;
  height:56px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--button-soft);
  color:var(--button-ink);
  font-size:21px;
  font-weight:600;
}

.account-main {
  flex:1;
}

.account-main h2 {
  font-size:20px;
  letter-spacing:-.03em;
  margin:5px 0;
}

.account-main p {
  font-size:12px;
  color:#878d87;
  margin:0;
}

.status-pill {
  display:inline-flex;
  padding:5px 9px;
  border-radius:20px;
  background:#e8f2e9;
  color:#47734e;
  font-size:10px;
  white-space:nowrap;
}

.status-off {
  background:#f1f1ef;
  color:#888;
}

.account-links {
  margin-top:25px;
}

.setting-row,.logout-row {
  padding:20px 2px;
}

.setting-row>span:last-child {
  color:#9ba19b;
}

.logout-row button {
  border:0;
  background:none;
  cursor:pointer;
}

.error-state {
  max-width:570px;
  margin:100px auto;
  padding:0 0 20px;
}

.error-mark {
  width:39px;
  height:39px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#f2f3f1;
  color:#747a73;
  font-weight:600;
  margin-bottom:32px;
}

.error-state h1 {
  font-size:49px;
}

.error-state>p:not(.eyebrow) {
  color:#828882;
  line-height:1.7;
  margin:18px 0 25px;
}

.flash-stack {
  display:grid;
  gap:8px;
  margin:18px 0;
}

.flash {
  padding:12px 14px;
  border-radius:6px;
  background:#edf5ed;
  color:#3d6944;
  font-size:12px;
}

.flash.error,.flash.danger {
  background:#fbefed;
  color:#8b4940;
}

.admin-tabs {
  position:sticky;
  top:76px;
  z-index:5;
  display:flex;
  gap:26px;
  padding:14px 0;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
  overflow-x:auto;
}

.admin-tabs a {
  white-space:nowrap;
  font-size:12px;
  color:#747a74;
}

.admin-tabs a:hover {
  color:var(--button-ink);
}

.admin-section {
  padding:46px 0;
  border-bottom:1px solid var(--line);
  scroll-margin-top:130px;
}

.admin-section .section-heading {
  margin-bottom:18px;
}

.admin-section h2 {
  font-size:23px;
}

.editor-panel {
  border:1px solid var(--line);
  border-radius:8px;
  margin:12px 0 22px;
  padding:0 17px;
  background:#fff;
}

.editor-panel>summary,.admin-item>summary {
  list-style:none;
  cursor:pointer;
}

.editor-panel>summary::-webkit-details-marker,.admin-item>summary::-webkit-details-marker {
  display:none;
}

.editor-panel>summary {
  padding:16px 0;
  font-size:12px;
  font-weight:600;
  color:var(--button-ink);
}

.editor-panel[open]>summary {
  border-bottom:1px solid var(--line);
}

.admin-form {
  display:grid;
  gap:16px;
  padding:19px 0;
}

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

.form-grid label,.admin-form>label {
  display:grid;
  gap:7px;
}

.form-grid .span-2 {
  grid-column:span 2;
}

.admin-form textarea {
  resize:vertical;
  line-height:1.6;
}

.admin-form select {
  cursor:pointer;
}

.check-row {
  display:flex;
  gap:19px;
  flex-wrap:wrap;
}

.check-row label {
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-weight:400!important;
  font-size:11px!important;
  color:#747a74!important;
}

.check-row input {
  accent-color:var(--button-ink);
}

.table-wrap {
  overflow-x:auto;
}

.table-wrap table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:12px;
}

.table-wrap th {
  font-size:10px;
  font-weight:600;
  color:#898f89;
  padding:12px 10px;
  border-bottom:1px solid var(--line);
}

.table-wrap td {
  padding:14px 10px;
  border-bottom:1px solid #f0f1ef;
  white-space:nowrap;
}

.table-wrap td:first-child strong,.table-wrap td:first-child small {
  display:block;
}

.table-wrap td:first-child small {
  color:#939993;
  margin-top:4px;
  font-size:10px;
}

.table-empty {
  color:#929892;
  text-align:center!important;
  padding:30px!important;
}

.inline-edit summary {
  font-size:11px;
  color:var(--button-ink);
  cursor:pointer;
}

.compact-form {
  min-width:230px;
  padding:12px;
  background:#fafbf9;
  border:1px solid var(--line);
  border-radius:7px;
}

.compact-form label {
  display:grid;
  gap:5px;
  font-size:10px;
  color:#606660;
}

.compact-form input:not([type=checkbox]) {
  padding:8px!important;
}

.compact-form .check-row {
  gap:8px;
}

.quick-form {
  display:flex;
  align-items:center;
  gap:12px;
  max-width:650px;
  margin:15px 0 22px;
}

.quick-form label {
  white-space:nowrap;
}

.quick-form input {
  flex:1;
}

.chip-list {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.group-chip {
  padding:8px 12px;
  border-radius:20px;
  background:#f4f6f2;
  color:#596359;
  font-size:11px;
}

.group-chip small {
  color:#a0a59f;
  margin-left:4px;
}

.admin-items {
  border-top:1px solid var(--line);
}

.admin-item {
  border-bottom:1px solid var(--line);
}

.admin-item>summary {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 4px;
}

.admin-item>summary strong,.admin-item>summary small {
  display:block;
}

.admin-item>summary strong {
  font-size:13px;
}

.admin-item>summary small {
  font-size:10px;
  color:#8a908a;
  margin-top:5px;
}

.admin-item[open] .row-arrow {
  transform:rotate(180deg);
}

.muted {
  font-size:12px;
  color:#969b96;
}

.file-field input {
  font-size:12px;
}

.activity-list {
  border-top:1px solid var(--line);
}

.activity-row {
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px 3px;
  border-bottom:1px solid #f0f1ef;
}

.activity-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#a9c87e;
}

.activity-row strong,.activity-row small {
  display:block;
}

.activity-row strong {
  font-size:12px;
  font-weight:500;
}

.activity-row small {
  font-size:10px;
  color:#8e948e;
  margin-top:4px;
}

@keyframes rise-in {
  from {
    opacity:0;
    transform:translateY(12px);
  }
  to {
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}

@keyframes expand-glow {
  0% {
    opacity:0;
    transform:scale(.55);
  }
  35% {
    opacity:1;
  }
  100% {
    opacity:0;
    transform:scale(1.65);
  }
}

@media (hover:hover) and (pointer:fine) {
  .brand:hover .brand-mark {
    transform:rotate(-8deg) scale(1.06);
    transition:transform .2s var(--ease-out);
  }
  .nav-admin:hover,.main-nav a:hover {
    transform:translateY(-1px);
  }
}

@media(max-width:760px) {
  .topbar {
    height:64px;
    padding:0 22px;
    gap:24px;
  }
  .main-nav {
    gap:18px;
  }
  .top-actions {
    gap:12px;
  }
  .page-shell {
    width:calc(100% - 40px);
  }
  .hero {
    padding:83px 0 85px;
  }
  .hero h1 {
    font-size:clamp(52px,12vw,75px);
  }
  .section-block {
    padding:35px 0 42px;
  }
  .card-grid,.resource-grid {
    grid-template-columns:1fr 1fr;
  }
  .content-card {
    min-height:210px;
  }
  .resource-callout {
    padding:28px;
  }
  .admin-tabs {
    top:64px;
  }
  .site-footer {
    margin-top:65px;
    padding:24px 22px;
  }
}

@media(max-width:520px) {
  .topbar {
    padding:0 17px;
    gap:16px;
  }
  .brand {
    font-size:17px;
  }
  .main-nav {
    gap:12px;
  }
  .main-nav a,.nav-admin,.quiet-button {
    font-size:11px;
  }
  .top-actions {
    gap:9px;
  }
  .avatar {
    width:30px;
    height:30px;
  }
  .page-shell {
    width:calc(100% - 34px);
  }
  .hero {
    padding:72px 0 68px;
  }
  .hero-copy {
    font-size:14px;
  }
  .hero-actions {
    gap:18px;
  }
  .section-heading h2 {
    font-size:22px;
  }
  .card-grid,.resource-grid {
    grid-template-columns:1fr;
  }
  .content-card {
    min-height:190px;
  }
  .resource-card {
    min-height:215px;
  }
  .resource-callout {
    align-items:flex-start;
    flex-direction:column;
    gap:22px;
    padding:24px;
  }
  .resource-callout h2 {
    font-size:26px;
  }
  .page-intro {
    padding:57px 0 30px;
  }
  .page-intro h1 {
    font-size:52px;
  }
  .page-intro>p:last-child {
    font-size:13px;
  }
  .post-row {
    padding:22px 3px;
  }
  .post-row h2 {
    font-size:18px;
  }
  .post-row p {
    font-size:12px;
  }
  .article-view {
    padding-top:39px;
  }
  .back-link {
    margin-bottom:40px;
  }
  .article-header h1 {
    font-size:42px;
  }
  .article-body {
    font-size:14px;
  }
  .site-footer {
    font-size:10px;
  }
  .login-card {
    padding:28px 23px;
  }
  .account-card {
    gap:12px;
    padding:17px;
  }
  .account-avatar {
    width:46px;
    height:46px;
  }
  .account-main h2 {
    font-size:17px;
  }
  .account-main p {
    font-size:10px;
  }
  .status-pill {
    font-size:9px;
  }
  .admin-tabs {
    gap:20px;
  }
  .admin-section {
    padding:34px 0;
  }
  .form-grid {
    grid-template-columns:1fr;
  }
  .form-grid .span-2 {
    grid-column:auto;
  }
  .quick-form {
    align-items:stretch;
    flex-direction:column;
  }
  .quick-form label {
    margin-bottom:-6px;
  }
  .quick-form .button {
    align-self:flex-start;
  }
  .error-state {
    margin:75px auto;
  }
  .error-state h1 {
    font-size:39px;
  }
  .site-footer {
    gap:15px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
  }
  .button-spinner {
    animation-duration:.8s!important;
  }
  .hero,.login-card {
    animation:none;
  }
}

@media(prefers-reduced-transparency:reduce) {
  .topbar,.admin-tabs {
    background:#fff;
    backdrop-filter:none;
  }
}

@media(prefers-contrast:more) {
  :root {
    --line:#c8ccc7;
    --muted:#585f59;
  }
  .main-nav a,.nav-admin,.quiet-button,.post-row p,.content-card p,.resource-card p {
    color:#555c55;
  }
  .topbar {
    background:#fff;
  }
}

.brand {
  font-size:16px;
  letter-spacing:0;
}

.brand-mark,.brand-period {
  display:none;
}

.article-body {
  white-space:pre-wrap;
}

.button.is-loading .button-spinner,.login-link.is-loading .button-spinner {
  display:block;
  animation:spin .7s linear infinite;
}

.login-link.is-loading .button-label {
  opacity:.8;
}

.login-link.is-loading .button-spark {
  animation:expand-glow .5s var(--ease-out) both;
}

.field-help {
  margin:-10px 0 0;
  color:#929892;
  font-size:10px;
}

/* Compact workbench shell shared by every portal page. */
.app-frame {
  min-height:100vh;
  display:grid;
  grid-template-columns:218px minmax(0,1fr);
}

.side-nav {
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  padding:21px 13px 14px;
  background:#fff;
  border-right:1px solid #e5e7eb;
}

.side-nav .brand {
  min-height:34px;
  padding:0 10px;
  color:#282d36;
  font-size:14px;
  font-weight:650;
}

.side-links {
  display:grid;
  gap:4px;
  margin-top:27px;
}

.side-link {
  min-height:37px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:0 10px;
  border-radius:6px;
  color:#606775;
  font-size:12px;
  transition:background .16s ease,color .16s ease,transform .16s var(--ease-out);
}

.side-link:hover {
  background:#f1f3f6;
  color:#303744;
}

.side-link[aria-current="page"] {
  background:#f0f2f5;
  color:#343b48;
  font-weight:600;
}

.side-icon {
  width:17px;
  color:#818896;
  font-size:15px;
  line-height:1;
  text-align:center;
}

.side-bottom {
  display:grid;
  gap:5px;
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid #eceef1;
}

.side-chat .side-icon {
  color:#454d5b;
}

.side-profile {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:4px 8px;
  border-radius:6px;
  color:#525966;
  font-size:11px;
}

.side-profile:hover {
  background:#f4f5f7;
}

.side-profile .avatar {
  width:27px;
  height:27px;
  background:#e8ebf1;
  color:#4b5361;
  font-size:11px;
}

.side-external {
  margin-left:auto;
  color:#9ba1ab;
  font-size:11px;
}

.app-main {
  min-width:0;
}

.topbar {
  position:sticky;
  height:54px;
  min-height:54px;
  padding:0 32px;
  border-bottom:1px solid #e6e8ed;
  box-shadow:0 1px 2px rgba(20,27,38,.025);
}

.topbar-inner {
  min-height:54px;
  width:100%;
  gap:12px;
}

.topbar-label {
  color:#8a909b;
  font-size:11px;
}

.page-shell {
  width:min(1180px,calc(100% - 64px));
  padding:28px 0 60px;
}

.workspace-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:1px 0 21px;
}

.workspace-heading h1 {
  margin:0;
  color:#252a33;
  font-size:23px;
  font-weight:620;
  letter-spacing:-.035em;
  line-height:1.25;
}

.workspace-heading p {
  margin:5px 0 0;
  color:#8a909b;
  font-size:11px;
}

.workspace-heading .button {
  padding:9px 12px;
  border-color:#d9dde5;
  background:#fff;
  color:#48505e;
  box-shadow:none;
  font-size:11px;
}

.workspace-heading .button:hover {
  background:#f3f4f7;
  border-color:#cbd0da;
}

.workspace-actions {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:11px;
}

.workspace-action {
  min-width:0;
  min-height:79px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border:1px solid #e4e6eb;
  border-radius:7px;
  background:#fff;
  transition:border-color .16s ease,box-shadow .18s ease,transform .18s var(--ease-out);
}

.workspace-action:hover {
  border-color:#cbd0da;
  box-shadow:0 5px 14px rgba(31,38,52,.05);
  transform:translateY(-2px);
}

.workspace-icon,.workspace-file {
  flex:none;
  width:33px;
  height:33px;
  display:grid;
  place-items:center;
  border-radius:6px;
  background:#f0f2f6;
  color:#606978;
  font-size:15px;
}

.workspace-action strong,.workspace-action small {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.workspace-action strong {
  color:#363c47;
  font-size:12px;
  font-weight:600;
}

.workspace-action small {
  margin-top:4px;
  color:#9298a2;
  font-size:10px;
}

.workspace-arrow {
  flex:none;
  margin-left:auto;
  color:#a1a7b0;
  font-size:13px;
}

.workspace-content {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:15px;
  margin-top:19px;
}

.workspace-panel {
  min-width:0;
  padding:0 17px;
  border:1px solid #e4e6eb;
  border-radius:7px;
  background:#fff;
}

.workspace-panel-heading {
  min-height:47px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid #eceef1;
}

.workspace-panel-heading h2 {
  margin:0;
  color:#353b46;
  font-size:12px;
  font-weight:600;
}

.workspace-panel-heading a {
  color:#818895;
  font-size:10px;
  white-space:nowrap;
}

.workspace-panel-heading a:hover {
  color:#333a46;
}

.workspace-list {
  display:grid;
}

.workspace-row {
  min-width:0;
  min-height:63px;
  display:flex;
  align-items:center;
  gap:10px;
  border-bottom:1px solid #f0f1f3;
}

.workspace-row:last-child {
  border-bottom:0;
}

.workspace-row-copy {
  min-width:0;
  flex:1;
}

.workspace-row-copy strong,.workspace-row-copy small {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.workspace-row-copy strong {
  color:#414752;
  font-size:11px;
  font-weight:550;
}

.workspace-row-copy small {
  margin-top:5px;
  color:#969ca6;
  font-size:10px;
}

.workspace-file {
  width:28px;
  height:28px;
  font-size:12px;
}

.workspace-empty {
  margin:0;
  padding:22px 0;
  color:#969ca6;
  font-size:11px;
}

@media(max-width:1000px) {
  .app-frame {
    grid-template-columns:184px minmax(0,1fr);
  }
  .page-shell {
    width:calc(100% - 40px);
  }
  .workspace-actions {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px) {
  .app-frame {
    display:block;
  }
  .side-nav {
    position:relative;
    z-index:12;
    width:100%;
    height:auto;
    padding:0 16px;
    border-right:0;
    border-bottom:1px solid #e5e7eb;
  }
  .side-nav .brand {
    min-height:47px;
    padding:0;
    font-size:13px;
  }
  .side-links {
    display:flex;
    gap:4px;
    overflow-x:auto;
    margin:0 -2px;
    padding:0 0 9px;
    scrollbar-width:none;
  }
  .side-links::-webkit-scrollbar {
    display:none;
  }
  .side-link {
    flex:none;
    min-height:31px;
    gap:6px;
    padding:0 8px;
    font-size:11px;
  }
  .side-icon {
    width:14px;
    font-size:13px;
  }
  .side-bottom {
    display:none;
  }
  .topbar {
    position:relative;
    height:43px;
    min-height:43px;
    padding:0 16px;
  }
  .topbar-inner {
    min-height:43px;
  }
  .page-shell {
    width:calc(100% - 32px);
    padding:21px 0 40px;
  }
  .workspace-content {
    grid-template-columns:minmax(0,1fr);
    gap:12px;
  }
}

@media(max-width:380px) {
  .workspace-actions {
    grid-template-columns:minmax(0,1fr);
    gap:8px;
  }
  .workspace-action {
    min-height:62px;
    padding:10px 12px;
  }
  .workspace-heading h1 {
    font-size:21px;
  }
}

.login-link {
  gap:9px;
}

.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 3.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.hero-actions {
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.home-sections {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-sections .card-grid, .home-sections .resource-grid {
  grid-template-columns: 1fr;
}

.home-sections .content-card, .home-sections .resource-card {
  min-height: 0;
}

@media (max-width: 680px) {
  .home-sections {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.console-trail {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
}

.console-trail > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-trail a:hover { text-decoration: underline; }
.console-trail [aria-current="page"] { color: #344a77; font-weight: 650; }
