@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #203238;
  background: var(--tenant-background);
  line-height: 1.5;
  font-synthesis: none;
  --ink: #203238;
  --muted: #667778;
  --tenant-primary: #465760;
  --tenant-secondary: #26343c;
  --tenant-accent: #d3c6a8;
  --tenant-signal: #465760;
  --tenant-neutral: #eef0f2;
  --tenant-background: #f5f6f7;
  --green: var(--tenant-primary);
  --dark: var(--tenant-secondary);
  --line: #dfe6e2;
  --gold: var(--tenant-accent);
  --surface: #fff;
  --red: #a03f35;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Manrope, system-ui, sans-serif;
}
h1 {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.06rem;
}
h2 {
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.02rem;
}
h3 {
  font-size: 1rem;
  font-weight: 750;
}
p {
  font-size: 1rem;
}
small,
.meta {
  font-size: 0.8125rem;
  color: var(--muted);
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--tenant-primary);
  outline-offset: 3px;
}
.sidebar :focus-visible {
  outline-color: var(--tenant-accent);
}
button svg,
a svg {
  flex-shrink: 0;
}
svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 15px;
}
.skip-link:focus {
  top: 10px;
}
.loading {
  display: grid;
  place-content: center;
  min-height: 100vh;
  text-align: center;
  gap: 18px;
}
.shell {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--dark);
  color: #e5edeb;
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  align-self: start;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.sidebar > * {
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 29px;
  font-family: Manrope, sans-serif;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.025rem;
  white-space: nowrap;
}
.brand-mark {
  border: 1.5px solid #a7baad;
  border-radius: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  font-family: Georgia, serif;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
}
.workspace-switch {
  padding: 16px 12px;
  border-top: 1px solid #ffffff18;
  border-bottom: 1px solid #ffffff18;
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.workspace-monogram {
  background: #ffffff10;
  border-radius: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-weight: 600;
  color: var(--tenant-accent);
}
.workspace-switch strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 550;
}
.workspace-switch small {
  color: #a8bcba;
  font-size: 0.75rem;
}
.nav-caption {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: #92a9a7;
  padding: 0 14px;
  margin: 4px 0 9px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 0.9375rem;
  color: #bbc9c6;
}
.nav a.active {
  background: var(--tenant-primary);
  color: #fff;
}
.nav a.active svg {
  color: var(--tenant-accent);
}
.nav a:hover {
  background: #ffffff0b;
  color: white;
}
.nav .count {
  margin-left: auto;
  font-size: 0.75rem;
  background: #ffffff16;
  border-radius: 5px;
  padding: 0 7px;
}
.side-rooms {
  padding-top: 28px;
}
.side-rooms a {
  display: flex;
  gap: 11px;
  padding: 9px 14px;
  font-size: 0.8125rem;
  color: #b7c7c3;
  align-items: center;
}
.side-rooms a:before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid #bbcbbe;
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.preview-card {
  padding: 14px;
  border: 1px solid #ffffff20;
  border-radius: 7px;
  font-size: 0.8125rem;
  color: #b5c7c3;
}
.preview-card strong {
  display: block;
  font-size: 0.875rem;
  color: #e6eae3;
  margin-bottom: 6px;
}
.preview-card button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 8px 0 0;
  background: transparent;
  color: var(--tenant-accent);
  font-size: 0.8125rem;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ffffff18;
  padding: 20px 10px 0;
  margin-top: 20px;
}
.profile strong {
  font-size: 0.875rem;
  font-weight: 500;
}
.profile small {
  display: block;
  color: #a3b5b1;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9eee7;
  color: #4a6557;
  border: 2px solid white;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 0.7rem;
  font-weight: 650;
  flex-shrink: 0;
}
.profile .avatar {
  background: var(--tenant-accent);
  color: var(--tenant-secondary);
  border: 0;
}
.avatar-stack {
  display: flex;
  padding-left: 5px;
}
.avatar-stack .avatar {
  margin-left: -5px;
}
.workspace {
  min-width: 0;
}
.topbar {
  min-height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 550;
  border-radius: 5px;
  padding: 4px 8px;
  background: #f0f3f1;
  color: #66766c;
}
.badge.private {
  background: #f3efe3;
  color: #826936;
}
.badge.record {
  background: #e9f0ed;
  color: #426357;
}
.badge.hold {
  background: #f7e9e5;
  color: #9a4b3c;
}
.icon-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  min-width: 42px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu {
  display: none;
}
.organisation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  padding: 20px 38px;
  background: var(--surface);
  border-top: 3px solid var(--tenant-accent);
  border-bottom: 1px solid var(--line);
}
.tenant-logo {
  display: block;
  width: 196px;
  max-width: 100%;
  height: 88px;
  object-fit: contain;
  flex-shrink: 0;
}
.organisation-copy {
  min-width: 0;
  flex: 1 1 12rem;
  overflow-wrap: anywhere;
}
.organisation strong {
  display: block;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--tenant-secondary);
}
.pilot-label {
  color: var(--tenant-signal);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.governance-provider {
  font-size: 0.8125rem;
  color: var(--ink);
  margin-top: 5px;
}
.notice {
  padding: 9px 38px;
  background: var(--tenant-neutral);
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.notice button {
  background: none;
  border: 0;
  color: var(--tenant-secondary);
  text-decoration: underline;
  font-size: inherit;
  white-space: nowrap;
}
.main {
  padding: 34px 38px 48px;
  max-width: 1500px;
  margin: 0 auto;
  min-width: 0;
}
/* This is a navigation focus destination, not an interactive control. */
.main:focus {
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 8px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.9375rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 550;
  white-space: nowrap;
}
.btn:hover {
  background: #f5f7f5;
  border-color: #afbeb4;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: var(--tenant-secondary);
  border-color: var(--tenant-secondary);
}
.btn.danger {
  color: var(--red);
  border-color: #dabbb3;
}
.btn.text {
  background: none;
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  color: var(--green);
}
.btn.small {
  min-height: 36px;
  padding: 6px 11px;
  font-size: 0.8125rem;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 26px;
}
.main-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 27px;
}
.rail {
  display: grid;
  align-content: start;
  gap: 23px;
}
.meeting-card {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 15px;
  background: var(--tenant-neutral);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 27px 28px;
  position: relative;
  overflow: hidden;
}
.meeting-card .eyebrow {
  color: var(--tenant-primary);
}
.meeting-card h2 {
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.04rem;
  margin: 7px 0 11px;
}
.meeting-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--ink);
  margin: 0 0 23px;
}
.meeting-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.meeting-meta svg {
  width: 15px;
  height: 15px;
}
.meeting-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.meeting-bottom small {
  font-size: 0.75rem;
}
.meeting-date {
  align-self: center;
  text-align: center;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  color: var(--tenant-primary);
}
.meeting-date strong {
  font-family: Manrope, sans-serif;
  display: block;
  font-size: 4.6rem;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.25rem;
}
.meeting-date span {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.section-heading a {
  font-size: 0.8125rem;
  color: var(--green);
}
.section-heading small {
  margin-left: 7px;
  font-weight: 450;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.panel-pad {
  padding: 22px;
}
.room-row {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 19px 21px;
  border-bottom: 1px solid #e8ede9;
  transition: background 0.15s;
}
.room-row:last-child {
  border-bottom: 0;
}
.room-row:hover {
  background: #f8faf8;
}
.room-symbol {
  width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #eef2eb;
  color: #54735f;
  border: 1px solid #e4e9df;
  border-radius: 8px;
}
.room-symbol.private {
  background: #f6f2e7;
  color: #9c8354;
  border-color: #eee7d7;
}
.room-row-title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.room-row strong {
  font-size: 0.9375rem;
  font-weight: 600;
}
.room-row p {
  font-size: 0.8125rem;
  color: var(--muted);
}
.room-row-end {
  text-align: right;
}
.room-row-end small {
  display: block;
  margin-bottom: 7px;
  font-size: 0.75rem;
}
.room-row-end .avatar {
  width: 25px;
  height: 25px;
  font-size: 0.58rem;
}
.document-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 20px;
  border-bottom: 1px solid #e8ede9;
  width: 100%;
  background: white;
  text-align: left;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
.document-row:last-child {
  border-bottom: 0;
}
.document-row:hover {
  background: #fafbf9;
}
.doc-symbol {
  border: 1px solid #e6ded7;
  border-radius: 5px;
  background: #faf6f0;
  color: #ac7356;
  width: 34px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 0.59rem;
  font-weight: 700;
  flex-shrink: 0;
}
.document-row .doc-copy {
  flex: 1;
  min-width: 0;
}
.document-row strong {
  font-size: 0.875rem;
  font-weight: 550;
  display: block;
  overflow-wrap: anywhere;
}
.document-row small {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
}
.rail .panel-pad {
  padding: 21px;
}
.rail h2 {
  font-size: 0.9375rem;
}
.rail-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.rail-title svg {
  width: 17px;
  height: 17px;
  color: #738171;
}
.todo-line {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0eb;
}
.todo-line:last-of-type {
  border-bottom: 0;
}
.todo-line .todo-icon {
  color: #8b9b89;
  padding-top: 3px;
}
.todo-line .todo-icon svg {
  width: 17px;
  height: 17px;
}
.todo-line p {
  font-size: 0.8125rem;
  line-height: 1.6;
}
.todo-line small {
  font-size: 0.75rem;
  display: block;
  margin-top: 3px;
}
.notebook-card {
  background: #f9f7ed;
  border-color: #e8e3cd;
}
.notebook-card textarea {
  width: 100%;
  border: 0;
  background: repeating-linear-gradient(
    transparent,
    transparent 30px,
    #dedbcd 31px
  );
  resize: vertical;
  color: #67715e;
  line-height: 31px;
  min-height: 124px;
  font-size: 0.875rem;
  padding: 0;
}
.notebook-card .note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  font-size: 0.75rem;
  color: #8c927e;
}
.quiet-box {
  padding: 3px 4px;
  color: var(--muted);
}
.quiet-box strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 550;
  color: #677b6b;
  margin: 8px 0;
}
.quiet-box p {
  font-size: 0.8125rem;
  line-height: 1.65;
}
.quiet-box svg {
  color: #84997f;
}
.footer-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: #809085;
}
.footer-line a {
  text-decoration: underline;
}
.toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  max-width: 420px;
  flex: 1;
  min-width: 180px;
}
.search svg {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid #cfdad1;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  min-height: 44px;
  max-width: 100%;
}
.search input {
  padding-left: 41px;
  width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 110px;
  width: 100%;
}
label {
  font-size: 0.875rem;
  font-weight: 550;
  display: block;
}
label input:not([type="checkbox"]),
label select,
label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-height: 19px;
  accent-color: var(--green);
}
.form-grid {
  display: grid;
  gap: 19px;
}
.form-grid.two {
  grid-template-columns: 1fr 1fr;
}
.hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 7px;
}
.empty {
  padding: 45px 24px;
  text-align: center;
  color: var(--muted);
}
.empty h2 {
  color: var(--ink);
  margin-bottom: 8px;
}
.empty .btn {
  margin-top: 18px;
}
.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
}
.room-header {
  margin-bottom: 22px;
}
.room-header h1 {
  margin: 12px 0;
}
.room-header .audience-line {
  margin-top: 15px;
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 23px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  background: none;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-size: 0.875rem;
  color: var(--muted);
}
.tabs button.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 600;
}
.messages {
  padding: 22px;
  display: grid;
  gap: 23px;
  max-height: 530px;
  overflow: auto;
}
.message {
  display: flex;
  gap: 11px;
}
.message-body {
  flex: 1;
  min-width: 0;
}
.message-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 5px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}
.message-meta strong {
  font-weight: 600;
}
.message p {
  font-size: 0.9375rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message .message-controls {
  display: flex;
  gap: 15px;
  margin-top: 7px;
}
.message-controls button {
  font-size: 0.75rem;
  color: var(--muted);
  border: 0;
  background: none;
  padding: 3px 0;
}
.message.tombstone p {
  font-style: italic;
  color: var(--muted);
}
.composer {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: #fcfdfb;
}
.composer textarea {
  min-height: 96px;
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
}
.composer small {
  font-size: 0.75rem;
}
.member-list {
  display: grid;
  gap: 14px;
}
.member {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
}
.member small {
  display: block;
  font-size: 0.75rem;
}
.policy-copy {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 15px 0;
}
.notebook-full {
  min-height: 450px;
  background: repeating-linear-gradient(#fff, #fff 34px, #e6ece4 35px);
  line-height: 35px;
  border: 0;
  border-radius: 0;
  padding: 20px 28px;
  width: 100%;
  font-size: 1rem;
}
.save-status {
  font-size: 0.75rem;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
  background: #fafbf9;
}
td {
  overflow-wrap: anywhere;
}
.info-box {
  background: #f0f4ec;
  border: 1px solid #e0e7d8;
  border-radius: 7px;
  padding: 15px;
  font-size: 0.875rem;
  color: #526647;
  line-height: 1.65;
}
.error {
  color: var(--red);
  font-size: 0.875rem;
  margin: 10px 0;
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 6px;
  font-weight: 400;
}
.check-row:has(input:checked) {
  background: #eef4ed;
  border-color: #9cb698;
}
.check-row input {
  margin: 0;
}
.check-row .avatar {
  margin-left: auto;
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.check-row small {
  display: block;
}
.dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  width: min(640px, calc(100vw - 30px));
  max-height: 90vh;
  box-shadow: 0 20px 100px #102a3430;
  color: var(--ink);
}
.dialog::backdrop {
  background: #0c232a70;
  backdrop-filter: blur(2px);
}
.dialog.viewer {
  width: min(1200px, calc(100vw - 30px));
}
.dialog-header {
  padding: 23px 26px 19px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.dialog-header h2 {
  font-size: 1.3rem;
}
.dialog-body {
  padding: 24px 26px;
}
.dialog-footer {
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  color: var(--muted);
  font-size: 0.75rem;
}
.stepper .current {
  color: var(--green);
  font-weight: 700;
}
.template-list {
  display: grid;
  gap: 9px;
}
.template {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 15px;
  width: 100%;
}
.template:hover,
.template.selected {
  background: #f0f5ed;
  border-color: #8ba58f;
}
.template strong {
  font-size: 0.9375rem;
  display: block;
}
.template small {
  display: block;
  margin-top: 4px;
}
.upload-zone {
  border: 1.5px dashed #91ab96;
  border-radius: 8px;
  padding: 25px;
  background: #f5f8f1;
  text-align: center;
  margin-bottom: 20px;
}
.upload-zone.dragover {
  background: #e2edda;
}
.upload-zone p {
  font-size: 0.875rem;
  margin: 10px 0;
}
.upload-zone input {
  width: 100%;
  font-size: 0.8125rem;
  background: transparent;
  border: 0;
}
.queue-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 12px;
}
.queue-item strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.queue-item .form-grid {
  gap: 12px;
}
.queue-item label {
  font-size: 0.75rem;
}
.queue-item select {
  font-size: 0.8125rem;
}
.viewer-layout {
  display: grid;
  grid-template-columns: 1fr 285px;
  min-height: 550px;
}
.paper-canvas {
  background: #e8ece9;
  padding: 28px;
  min-width: 0;
  position: relative;
}
.sample-paper {
  background: white;
  min-height: 550px;
  padding: 45px;
  box-shadow: 0 4px 15px #203d3210;
  white-space: pre-wrap;
  line-height: 1.9;
  font-family: Georgia, serif;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.sample-paper h2 {
  font-family: Georgia, serif;
  font-size: 1.7rem;
  margin: 20px 0;
}
.paper-canvas iframe {
  width: 100%;
  height: 600px;
  border: 0;
  background: white;
}
.paper-canvas img {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
}
.paper-canvas pre {
  white-space: pre-wrap;
  background: white;
  padding: 25px;
  overflow-wrap: anywhere;
}
.viewer-aside {
  padding: 22px;
  border-left: 1px solid var(--line);
}
.viewer-aside h3 {
  margin-bottom: 10px;
}
.viewer-aside .form-grid {
  margin-top: 20px;
}
.watermark {
  position: absolute;
  pointer-events: none;
  top: 50%;
  left: 15%;
  font-size: 2.5rem;
  transform: rotate(-30deg);
  color: #1d443020;
  font-weight: 700;
}
.viewer-toolbar {
  padding: 12px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  font-size: 0.8125rem;
}
.viewer-toolbar select {
  font-size: 0.8125rem;
}
.alert-row {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 13px;
}
.alert-row.read {
  opacity: 0.65;
}
.alert-row p {
  font-size: 0.875rem;
}
.alert-row small {
  display: block;
  margin-top: 5px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #213e36;
  color: white;
  padding: 12px 21px;
  border-radius: 8px;
  box-shadow: 0 8px 40px #11261f22;
  font-size: 0.875rem;
  max-width: calc(100vw - 30px);
  display: none;
}
#toast.visible {
  display: block;
}
.connection {
  background: var(--tenant-neutral);
  color: var(--tenant-secondary);
  padding: 9px 38px;
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.connection a {
  font-weight: 600;
  text-decoration: underline;
}
.note-search {
  margin: 16px 25px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat strong {
  font:
    600 1.8rem Manrope,
    sans-serif;
  display: block;
}
.stat span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.loading-error {
  max-width: 600px;
  margin: 100px auto;
  padding: 25px;
}
.loading-error p {
  margin: 20px 0;
}
.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.support-state {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1500px) {
  .main {
    padding-top: 42px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 315px;
    gap: 30px;
  }
  .meeting-card {
    padding: 32px;
  }
}
@media (max-width: 1150px) {
  .topbar,
  .organisation,
  .notice,
  .connection {
    padding-left: 25px;
    padding-right: 25px;
  }
  .main {
    padding: 28px 25px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 20px;
  }
  .meeting-card {
    padding: 23px;
    grid-template-columns: 1fr 95px;
  }
  .meeting-date {
    padding-left: 15px;
  }
  .meeting-date strong {
    font-size: 3.5rem;
  }
  .room-grid {
    grid-template-columns: 1fr;
  }
  .room-grid > .rail {
    grid-template-columns: 1fr 1fr;
  }
  .room-row-end {
    display: none;
  }
}
@media (max-width: 950px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .rail {
    grid-template-columns: 1fr 1fr;
  }
  .rail .quiet-box {
    display: none;
  }
  .viewer-layout {
    grid-template-columns: 1fr;
  }
  .viewer-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .paper-canvas {
    padding: 18px;
  }
  .page-heading h1 {
    font-size: 1.75rem;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 50;
    width: min(17rem, calc(100vw - 24px));
    left: 0;
    box-shadow: 20px 0 50px #0004;
  }
  .shell.menu-open .sidebar {
    display: flex;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    padding: 12px 18px;
    min-height: 65px;
  }
  .breadcrumb {
    gap: 8px;
    font-size: 0.8125rem;
  }
  .breadcrumb > span {
    display: none;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions .badge {
    display: none;
  }
  .notice,
  .connection {
    padding: 10px 18px;
    font-size: 0.75rem;
    flex-wrap: wrap;
  }
  .organisation {
    padding: 16px 18px;
    gap: 16px;
  }
  .tenant-logo {
    width: 112px;
    height: 80px;
  }
  .organisation strong {
    font-size: 1rem;
  }
  .governance-provider {
    font-size: 0.75rem;
  }
  .main {
    padding: 26px 18px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading .btn {
    padding: 10px 12px;
  }
  .page-heading h1 {
    font-size: 1.65rem;
  }
  .page-heading p {
    font-size: 0.875rem;
  }
  .meeting-card {
    padding: 23px 20px;
    grid-template-columns: 1fr 78px;
  }
  .meeting-card h2 {
    font-size: 1.25rem;
  }
  .meeting-date strong {
    font-size: 3.3rem;
  }
  .meeting-meta {
    gap: 8px;
    margin-bottom: 18px;
  }
  .meeting-bottom .avatar-stack,
  .meeting-bottom small {
    display: none;
  }
  .rail {
    grid-template-columns: 1fr;
  }
  .room-row {
    padding: 17px 15px;
    gap: 10px;
    grid-template-columns: 36px 1fr;
  }
  .room-symbol {
    width: 35px;
    height: 39px;
  }
  .room-row strong {
    font-size: 0.875rem;
  }
  .room-grid > .rail {
    grid-template-columns: 1fr;
  }
  .footer-line {
    flex-wrap: wrap;
  }
  .checks,
  .form-grid.two,
  .policy-grid {
    grid-template-columns: 1fr;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-header {
    padding: 19px 20px;
  }
  .dialog-footer {
    padding: 16px 20px;
  }
  .stepper {
    font-size: 0.65rem;
  }
  .sample-paper {
    padding: 25px;
    min-height: 400px;
  }
  .viewer-toolbar {
    padding: 12px 18px;
  }
  .stat-row {
    gap: 10px;
  }
  .stat-row .panel-pad {
    padding: 14px;
  }
  .stat strong {
    font-size: 1.5rem;
  }
  .composer-footer {
    align-items: flex-end;
  }
  .composer-footer small {
    max-width: 190px;
  }
  .document-row .badge {
    display: none;
  }
  .notebook-full {
    padding: 15px 20px;
  }
  .room-header h1 {
    font-size: 1.7rem;
  }
  .section-heading h2 {
    font-size: 1.07rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep secondary actions comfortable on touch devices. */
.icon-button { min-height: 44px; min-width: 44px; }
.side-rooms a { min-height: 44px; }
.message-controls button { min-height: 44px; padding: 8px 4px; }
.btn.small { min-height: 44px; }
/* Reflow with enlarged text as well as a smaller viewport. */
.workspace { container-type: inline-size; container-name: workspace; }
.brand-mark { flex-shrink: 0; }
.avatar { width: 2.125rem; height: 2.125rem; }
.meeting-card { grid-template-columns: minmax(0, 1fr) 8.75rem; }
.meeting-date { min-width: 0; }
.meeting-date span { overflow-wrap: anywhere; }
.page-heading { flex-wrap: wrap; }
@container workspace (max-width: 60rem) {
  .home-grid { grid-template-columns: 1fr; }
  .rail { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
  .room-grid { grid-template-columns: 1fr; }
}
@container workspace (max-width: 32rem) {
  .meeting-card { grid-template-columns: minmax(0, 1fr) 5rem; }
  .meeting-bottom .avatar-stack, .meeting-bottom small { display: none; }
}
@container workspace (max-width: 32rem) {
  .meeting-card { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .meeting-date { padding-left: 12px; }
}
