/* AGRON workshop: a quiet editorial workspace with an equipment-led identity. */
:root {
  --bg: #f5f3ee;
  --ink: #242c35;
  --muted: #606a74;
  --line: #dddcd5;
  --green: #315cd1;
  --orange: #b65029;
  --studio-paper: #fffefa;
  --studio-nav: #eeece5;
  --studio-blue: #315cd1;
  --studio-coral: #e98359;
  --studio-lime: #d9e6a3;
  --studio-shadow: 0 8px 30px rgba(37, 43, 52, 0.045);
  --drawing-top: #ffe6cf;
  --drawing-front: #efa77a;
  --drawing-side: #e78a5d;
  --drawing-accent: #eef3ce;
}
html[data-theme="dark"] {
  --bg: #171d25;
  --ink: #ecede9;
  --muted: #b0b8c2;
  --line: #39414c;
  --green: #a8bfff;
  --orange: #f0a57e;
  --studio-paper: #202833;
  --studio-nav: #1c232c;
  --studio-blue: #a8bfff;
  --studio-coral: #e7a07e;
  --studio-lime: #cedb9e;
  --studio-shadow: 0 10px 34px rgba(0, 0, 0, 0.13);
  --drawing-top: #f0c7a3;
  --drawing-front: #cd885f;
  --drawing-side: #ae6d4d;
  --drawing-accent: #d9e6a3;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
#workspace > .sidebar {
  width: 252px;
  background: var(--studio-nav);
  border: 0;
  padding: 28px 20px;
  gap: 0;
}
#workspace > main {
  margin-left: 252px;
}
.brand-sidebar {
  padding: 0 8px 26px;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
}
.brand-sidebar img {
  width: 150px;
  max-height: 52px;
}
.brand-sidebar > span {
  font-size: 23px !important;
  letter-spacing: -0.7px !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  margin-top: 9px;
}
.workspace-label {
  display: none;
}
.sidebar nav {
  margin-top: 24px;
  gap: 4px;
}
.sidebar nav button {
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 8px;
  padding: 11px 12px;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.sidebar nav button > span:first-child {
  background: none !important;
  box-shadow: none !important;
  font-size: 16px;
  width: 21px;
  height: auto;
  border-radius: 0;
  color: var(--muted);
}
html .sidebar nav button.active,
html[data-theme="dark"] .sidebar nav button.active {
  color: var(--ink);
  background: var(--studio-paper);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  border-left: 3px solid var(--studio-coral);
  font-weight: 700;
}
html .sidebar nav button:hover {
  background: var(--studio-paper);
  color: var(--ink);
  transform: translateX(2px);
}
.sidebar .nav-domains,
.sidebar .nav-work,
.sidebar .nav-knowledge {
  border: 0;
  padding: 0;
  margin: 5px 0;
}
.sidebar details > summary {
  color: var(--muted);
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-weight: 650 !important;
  padding: 12px 8px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar details > summary::after {
  content: "+";
  font-size: 16px;
  font-weight: 400;
}
.sidebar details[open] > summary::after {
  content: "−";
}
.sidebar details button {
  width: 100%;
}
.sidebar .nav-partner {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 7px;
}
.sidebar nav > button[data-page="protection"] {
  font-size: 12px;
  color: var(--muted);
}
.nav-access-label {
  display: none;
}
.sidebar #admin-navigation {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.side-bottom {
  padding-top: 24px;
}
.isolation {
  display: none;
}
.identity {
  font-size: 13px;
}
.identity small {
  font-size: 11px;
}
.identity > span {
  background: var(--studio-paper) !important;
  color: var(--ink) !important;
}
.topbar {
  background: transparent !important;
  border-bottom: 1px solid var(--line);
  min-height: 64px;
  padding: 16px 40px;
  font-size: 12px;
}
.topbar .clock {
  display: none;
}
.topbar > span {
  font-size: 11px;
  letter-spacing: 0.04em;
}
.topbar .badge {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 10px;
}
.preferences {
  top: 15px;
  right: 28px;
  box-shadow: none;
  background: var(--studio-paper) !important;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 3px;
}
.preferences button {
  min-width: 33px;
  min-height: 30px;
  font-size: 12px;
  border-radius: 20px !important;
}
.preferences .segmented {
  border: 0;
}
.topbar > div {
  padding-right: 160px;
}
.content {
  max-width: 1510px;
  padding: 28px 40px 48px;
}
.page-back-row {
  margin-bottom: 20px;
}
.back-button {
  font-size: 12px;
  border: 0 !important;
  background: transparent !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
  color: var(--muted) !important;
}
.page-back-row #back-context {
  font-size: 11px;
}
.page-heading {
  margin-bottom: 24px;
  align-items: flex-end;
  gap: 16px;
}
.page-heading .eyebrow {
  display: none;
}
.page-heading h1 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -1.4px;
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 9px;
}
.page-heading p {
  font-size: 14px;
  max-width: 65ch;
  margin-bottom: 0;
  color: var(--muted);
}
.heading-actions {
  gap: 8px;
}
.heading-actions button,
.heading-actions a.button {
  font-size: 12px;
  padding: 8px 12px;
  white-space: nowrap;
}
.content > .boundary {
  margin: 0 0 24px;
  padding: 12px 15px;
  background: var(--studio-paper) !important;
  border: 1px solid var(--line);
  border-left: 3px solid var(--studio-coral);
  color: var(--muted);
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: none;
}
.boundary-lock {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.content > #storage-warning {
  border-left-color: #d09c3a;
  color: var(--ink);
}
html .panel,
html[data-theme="dark"] .panel,
html .metrics article,
html[data-theme="dark"] .metrics article {
  background: var(--studio-paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--studio-shadow);
  padding: 25px;
}
.section-intro {
  margin: 24px 0;
}
.section-intro h2 {
  font-size: 22px;
}
.section-intro p {
  font-size: 14px;
  max-width: 90ch;
  color: var(--muted);
}
.panel h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
.panel p {
  font-size: 15px;
  line-height: 1.65;
}
.panel small,
.hint {
  font-size: 12px;
  line-height: 1.65;
}
.panel label {
  font-size: 13px;
}
.panel input,
.panel textarea,
.panel select {
  border-radius: 8px;
  font-size: 15px;
  padding: 11px 12px;
}
html button,
html a.button,
html[data-theme="dark"] button,
html[data-theme="dark"] a.button {
  background: var(--studio-paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 9px;
  box-shadow: none;
}
html button:hover,
html a.button:hover,
html[data-theme="dark"] button:hover {
  background: var(--studio-nav);
  border-color: var(--muted);
}
html button.primary,
html a.button.primary,
html[data-theme="dark"] button.primary {
  background: var(--studio-blue);
  color: #fff;
  border-color: transparent;
}
html[data-theme="dark"] button.primary {
  color: #172039;
}
html input,
html select,
html textarea,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}
button:focus-visible,
a:focus-visible,
input:focus,
textarea:focus,
select:focus,
summary:focus-visible {
  outline: 3px solid var(--studio-blue);
  outline-offset: 3px;
}
.record-actions button {
  font-size: 12px;
  padding: 8px 12px;
}
.pill {
  font-size: 11px;
  padding: 4px 9px;
}
.report-metrics {
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.report-metrics .panel {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  padding: 16px 24px 20px 0;
}
.report-metrics strong {
  font-size: 32px;
}
.report-metrics label {
  font-size: 12px;
}
.domain-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.domain-card {
  position: relative;
  border-top: 3px solid var(--studio-blue) !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.domain-card:nth-child(3n + 2) {
  border-top-color: var(--studio-coral) !important;
}
.domain-card:nth-child(3n) {
  border-top-color: var(--studio-lime) !important;
}
.domain-icon {
  background: transparent !important;
  color: var(--studio-blue) !important;
  box-shadow: none !important;
  font-size: 30px;
}
.domain-card p {
  min-height: 0;
  font-size: 14px;
}
.domain-card button {
  margin-top: 16px;
}
.domain-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.09);
}
.studio-focused-grid {
  grid-template-columns: 1fr !important;
}
.studio-compose {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--studio-paper);
  box-shadow: var(--studio-shadow);
  margin-bottom: 8px;
}
.studio-compose > summary {
  padding: 18px 22px;
  cursor: pointer;
  color: var(--studio-blue);
  font-size: 15px;
  font-weight: 650;
  list-style: none;
}
.studio-compose > summary::after {
  content: "↗";
  float: right;
  font-weight: 400;
}
.studio-compose[open] > summary::after {
  content: "−";
}
.studio-compose > form.panel {
  border: 0;
  box-shadow: none;
  margin: 0;
  border-radius: 0 0 12px 12px;
  padding-top: 5px;
}
.studio-compose > form > h2 {
  display: none;
}
.studio-compose[open] {
  border-color: var(--studio-blue);
}
.studio-protocol-body {
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.studio-protocol-body > summary {
  cursor: pointer;
  color: var(--studio-blue);
  font-size: 14px;
  font-weight: 600;
}
.studio-protocol-body[open] > summary {
  margin-bottom: 20px;
}
.studio-protocol-body p {
  white-space: pre-wrap;
}
.studio-protocol-body h3 {
  font-size: 14px;
  margin: 20px 0 6px;
}
.protocol > .panel-heading {
  margin-bottom: 12px;
}
.protocol > small {
  display: block;
  overflow-wrap: anywhere;
}
.protocol > .hint {
  font-size: 11px;
}
.record-list,
.record-list > div {
  gap: 18px;
}
.filter-bar {
  padding: 8px 0 18px;
}
.handbook-header {
  background: var(--studio-paper);
  border-radius: 14px;
  box-shadow: var(--studio-shadow);
}
.handbook-toc a {
  background: var(--studio-paper);
}
.handbook-entry p,
.handbook-entry li {
  font-size: 16px;
}
.handbook-category-grid {
  gap: 18px;
}
/* A visual assembly drawing, deliberately distinct from measured equipment state. */
.content[data-current-page="overview"] .page-heading,
.content[data-current-page="overview"] .page-back-row {
  display: none;
}
.content[data-current-page="overview"] > .boundary {
  margin-bottom: 28px;
}
.studio-hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--studio-paper);
  box-shadow: var(--studio-shadow);
  min-height: 355px;
}
.studio-hero-copy {
  padding: 38px 40px;
}
.studio-kicker {
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--muted);
}
.studio-hero h2 {
  font-size: clamp(40px, 4.8vw, 70px);
  line-height: 1.01;
  letter-spacing: -3px;
  margin: 24px 0 18px;
  font-weight: 700;
}
.studio-hero-copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}
html .studio-primary,
html[data-theme="dark"] .studio-primary {
  background: #253c90;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13px;
  display: flex;
  gap: 24px;
  align-items: center;
}
html .studio-primary:hover {
  background: #3153ba;
}
.studio-drawing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: #f1b38b;
  color: #343c46;
  padding: 28px 20px;
  min-width: 0;
  --drawing-top: #ffe6cf;
  --drawing-front: #efa77a;
  --drawing-side: #e78a5d;
  --drawing-accent: #eef3ce;
}
.studio-drawing svg {
  width: 100%;
  max-height: 300px;
  overflow: visible;
}
.studio-drawing-label,
.studio-drawing-caption {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.13em;
  position: relative;
  z-index: 1;
}
.studio-drawing-label {
  margin: 0 10px 0;
}
.studio-drawing-caption {
  margin: 14px 10px 0;
  text-align: right;
}
.studio-section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 30px 0 16px;
  gap: 16px;
}
.studio-section-label h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 0;
}
.studio-section-label > span {
  font-size: 12px;
  color: var(--muted);
}
.studio-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
html .studio-path,
html[data-theme="dark"] .studio-path {
  text-align: left;
  padding: 21px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  border: 1px solid var(--line);
  background: var(--studio-paper);
  box-shadow: var(--studio-shadow);
}
html .studio-path:hover {
  transform: translateY(-4px);
  background: var(--studio-paper);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.1);
}
.studio-path-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.studio-path-top b {
  font-size: 12px;
  font-weight: 600;
  display: inline-grid;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  place-items: center;
  background: #dfe7ff;
  color: #234397;
}
.studio-orange .studio-path-top b {
  background: #fae3d5;
  color: #8b421f;
}
.studio-lime .studio-path-top b {
  background: #e6edce;
  color: #45562d;
}
.studio-path-top > span {
  color: var(--muted);
  font-size: 23px;
}
.studio-path h3 {
  font-size: 22px;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 9px;
  font-weight: 650;
}
.studio-path p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.studio-path-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
}
.studio-footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.studio-footer-line p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.studio-footer-line p b {
  color: var(--ink);
  font-size: 15px;
}
.studio-footer-line p > span {
  margin: 0 9px;
  color: var(--line);
}
html .studio-text-button {
  font-size: 12px;
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: var(--muted);
}
.studio-text-button span {
  margin-left: 10px;
  color: var(--studio-blue);
}
.studio-reference {
  padding: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.studio-reference summary {
  cursor: pointer;
}
.studio-utility-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.studio-utility-links button {
  font-size: 12px;
}
.login-art {
  background: var(--studio-nav) !important;
  color: var(--ink) !important;
}
.login-art h1 {
  letter-spacing: -3px;
}
.login-art > p {
  color: var(--muted);
}
.login-form {
  background: var(--studio-paper) !important;
}
.login-foot {
  color: var(--muted) !important;
}
.orbits {
  opacity: 0.45;
}
.login-shell .eyebrow {
  color: var(--studio-blue);
}
@media (min-width: 1600px) {
  .studio-hero {
    min-height: 410px;
  }
  .studio-drawing svg {
    max-height: 340px;
  }
  .studio-hero-copy {
    padding: 46px 48px;
  }
}
@media (max-width: 1120px) {
  #workspace > .sidebar {
    width: 220px;
    padding: 24px 16px;
  }
  #workspace > main {
    margin-left: 220px;
  }
  .content {
    padding: 26px;
  }
  .topbar {
    padding: 16px 26px;
  }
  .brand-sidebar > span {
    font-size: 20px !important;
  }
  .studio-hero-copy {
    padding: 30px;
  }
  .studio-hero h2 {
    font-size: 49px;
  }
  .studio-drawing {
    padding: 24px 12px;
  }
  .studio-path {
    padding: 18px !important;
  }
  .studio-path h3 {
    font-size: 20px;
  }
  .domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-footer-line {
    flex-wrap: wrap;
  }
  .studio-footer-line > div {
    width: 100%;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 760px) {
  #workspace > .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 18px;
    overflow: visible;
    border-bottom: 1px solid var(--line);
  }
  #workspace > main {
    margin-left: 0;
  }
  .brand-sidebar {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 0 0 18px;
  }
  .brand-sidebar img {
    width: 100px;
  }
  .brand-sidebar > span {
    font-size: 16px !important;
    letter-spacing: 0 !important;
    margin-top: 0;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 16px;
  }
  .sidebar nav > button[data-page="overview"] {
    grid-column: 1/-1;
  }
  .sidebar details {
    min-width: 0;
  }
  .sidebar details[open] {
    grid-column: 1/-1;
  }
  .sidebar .nav-partner {
    margin-top: 0;
    border-top: 0;
    padding: 0;
  }
  .side-bottom {
    padding-top: 14px;
  }
  .identity {
    padding-top: 12px;
  }
  .topbar {
    display: none;
  }
  .content {
    padding: 22px 18px 36px;
  }
  .preferences {
    position: absolute;
    top: 14px;
    right: 14px;
  }
  .studio-hero {
    grid-template-columns: 1fr;
  }
  .studio-hero-copy {
    padding: 28px;
  }
  .studio-hero h2 {
    font-size: 54px;
  }
  .studio-drawing {
    padding: 22px;
    min-height: 210px;
  }
  .studio-drawing svg {
    max-height: 205px;
  }
  .studio-paths {
    grid-template-columns: 1fr;
  }
  .studio-path {
    min-height: 180px !important;
  }
  .studio-path-top {
    margin-bottom: 18px;
  }
  .studio-path h3 {
    font-size: 23px;
  }
  .studio-section-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .studio-footer-line {
    gap: 8px;
  }
  .studio-footer-line > div {
    margin-bottom: 10px;
  }
  .domain-grid {
    grid-template-columns: 1fr;
  }
  .content > .boundary {
    font-size: 11px;
    padding: 10px 12px;
  }
  .boundary-lock {
    display: none;
  }
  .heading-actions {
    flex-wrap: wrap;
  }
  html .panel {
    padding: 20px;
  }
  .handbook-standalone-bar {
    padding-right: 20px;
  }
  .login-shell .preferences {
    position: absolute;
  }
  .studio-compose > summary {
    font-size: 14px;
  }
  .handbook-standalone main {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html *,
  html *::before,
  html *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .studio-drawing,
  .studio-compose:not([open]),
  .studio-reference,
  .preferences {
    display: none !important;
  }
  .studio-protocol-body {
    display: block;
  }
  .studio-protocol-body > * {
    display: block !important;
  }
  #workspace > main {
    margin: 0;
  }
  .studio-paths {
    display: block;
  }
  .studio-hero {
    display: block;
  }
  .studio-hero-copy {
    padding: 0;
  }
}
/* Reset legacy navigation treatments so colour has a clear hierarchy. */
#workspace .sidebar nav button {
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  box-shadow: none;
  padding: 10px 9px;
  font-size: 13px;
  min-height: 39px;
}
#workspace .sidebar nav button.active {
  border-left-color: var(--studio-coral);
  background: var(--studio-paper);
  color: var(--ink);
}
#workspace .sidebar nav button:hover {
  background: var(--studio-paper);
  border-left-color: var(--studio-blue);
}
#workspace .sidebar details > summary {
  background: transparent;
  color: var(--muted);
  border-radius: 0;
}
#workspace .sidebar .brand-sidebar > span {
  width: 100%;
  font-size: 19px !important;
  letter-spacing: -0.7px !important;
}
.studio-text-button {
  border: 0 !important;
  background: transparent !important;
}
html .studio-primary {
  color: #fff !important;
}
.studio-hero-copy {
  padding: 32px;
}
.studio-hero {
  min-height: 310px;
}
.studio-drawing svg {
  max-height: 260px;
}
html body #workspace button.studio-primary {
  background: #29479e !important;
  color: #fff !important;
  border-color: transparent !important;
}
html body #workspace button.studio-primary:hover {
  background: #3659bb !important;
}
@media (max-width: 760px) {
  #workspace > .sidebar {
    padding-top: 62px;
  }
  .sidebar .nav-work[open],
  .sidebar .nav-knowledge[open] {
    grid-column: 1/-1;
  }
  .sidebar nav details[open] > button {
    min-height: 43px;
  }
}
html[data-theme="dark"] #workspace .sidebar .nav-domains {
  background: transparent;
}
#workspace-menu {
  display: none;
}
.preferences button.active {
  background: #315cd1 !important;
  color: #fff !important;
}
html[data-theme="dark"] .preferences button.active {
  background: #a8bfff !important;
  color: #172039 !important;
}
@media (max-width: 760px) {
  #workspace-menu {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    background: var(--studio-paper);
    font-size: 14px;
    padding: 12px 15px;
  }
  #workspace .sidebar nav {
    display: none;
  }
  #workspace[data-nav-open="true"] .sidebar nav {
    display: grid;
  }
  #workspace .side-bottom {
    display: block;
    padding-top: 12px;
  }
  #workspace .identity {
    padding-top: 10px;
  }
  #workspace .identity small {
    font-size: 10px;
  }
  .brand-sidebar > span {
    font-size: 17px !important;
  }
}
.studio-page-help {
  margin: 0 0 22px;
  font-size: 12px;
  color: var(--muted);
}
.studio-page-help > summary {
  cursor: pointer;
  color: var(--studio-blue);
  padding: 5px 0;
  display: list-item;
}
.studio-page-help .section-intro {
  margin: 14px 0 20px;
  padding: 20px;
  border-left: 2px solid var(--studio-blue);
  background: var(--studio-paper);
  border-radius: 0 10px 10px 0;
}
.studio-page-help .section-intro h2 {
  font-size: 17px;
  margin-bottom: 9px;
}
.studio-page-help .section-intro p {
  font-size: 14px;
  margin-bottom: 0;
}
@media print {
  .studio-page-help {
    display: block;
  }
  .studio-page-help > * {
    display: block !important;
  }
  .studio-compose[open] > form {
    display: block !important;
  }
}

/* Audit hardening: preserve mobile heading breaks and brand aspect ratio. */
.brand picture {
  display: block;
  max-width: 100%;
  width: 100%;
}
.brand picture img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .login-art h1 {
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: -1px;
    overflow-wrap: anywhere;
  }
  .login-art h1 br {
    display: block;
  }
}
.audit-status {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 14px 0;
}
.record:target {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

#email-access {
  min-height: 310px;
}
.login-form {
  width: min(100%, 520px);
}
.login-form h2 {
  min-height: 2.6em;
}
.login-form > p {
  min-height: 4.8em;
}

body[data-session-pending] #login,
body[data-session-pending] #workspace {
  visibility: hidden;
}
#session-loading {
  position: fixed;
  inset: 0;
  display: grid;
  align-content: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  color: var(--ink);
  z-index: 10;
}
#session-loading span {
  font-size: 16px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
#session-loading p {
  color: var(--muted);
}
body:not([data-session-pending]) #session-loading {
  display: none;
}
