/* Torna's shared design system. All sizing follows the reader's text preference. */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-sans-3.woff2') format('woff2');
}
:root {
  --ink: #183f35;
  --muted: #52665c;
  --paper: #f8f8f2;
  --card: #fffefa;
  --line: #ccd7ce;
  --tint: #e5eddd;
  --button: #23563f;
  --navigation: #183f35;
  --on-button: #fff;
  --on-navigation: #f3f8f0;
  --focus: #aa441c;
  color: var(--ink);
  background: var(--paper);
}
:root {
  font-family:
    'Source Sans 3',
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
  font-size: 100%;
  line-height: 1.5;
  color-scheme: light;
}
[data-theme='ocean'] {
  --ink: #183e54;
  --muted: #4b6170;
  --paper: #f2f7f9;
  --card: #fcfeff;
  --tint: #e0edf4;
}
[data-theme='clay'] {
  --ink: #503329;
  --muted: #73594d;
  --paper: #fcf5ef;
  --card: #fffaf6;
  --tint: #f4e5d9;
}
[data-surface='cool'] {
  --paper: #f0f5f8;
  --card: #fbfdff;
  --tint: #e2edf4;
}
[data-surface='rose'] {
  --paper: #fbf2f4;
  --card: #fffafb;
  --tint: #f3e3e9;
}
[data-accent='forest'] {
  --button: #23563f;
}
[data-accent='ocean'] {
  --button: #215677;
}
[data-accent='berry'] {
  --button: #77395d;
}
[data-accent='clay'] {
  --button: #87422b;
}
[data-sidebar='forest'] {
  --navigation: #183f35;
}
[data-sidebar='ocean'] {
  --navigation: #1b405a;
}
[data-sidebar='berry'] {
  --navigation: #513047;
}
[data-sidebar='clay'] {
  --navigation: #5e3728;
}
[data-theme='midnight'] {
  --ink: #edf5f1;
  --muted: #bccfc4;
  --paper: #101c23;
  --card: #1c2c35;
  --line: #51636e;
  --tint: #2c404a;
  --focus: #ffd19c;
  color-scheme: dark;
}
[data-theme='midnight'][data-surface='rose'] {
  --paper: #241a22;
  --card: #32242f;
  --tint: #463344;
}
[data-theme='midnight'][data-surface='warm'] {
  --paper: #201e19;
  --card: #2c2b25;
  --tint: #3c3c30;
}
html[data-text-size='112'] {
  font-size: 112%;
}
html[data-text-size='125'] {
  font-size: 125%;
}
html[data-text-size='150'] {
  font-size: 150%;
}
html[data-text-size='175'] {
  font-size: 175%;
}
html[data-text-size='200'] {
  font-size: 200%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
img {
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
:focus-visible {
  outline: 0.18rem solid var(--focus);
  outline-offset: 0.2rem;
}
h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
}
h2 {
  font-size: 1.3rem;
  font-weight: 600;
}
h3 {
  font-size: 1.05rem;
}
p {
  line-height: 1.7;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(100%, 80rem);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.skip-link {
  position: fixed;
  inset-block-start: -8rem;
  inset-inline-start: 1rem;
  z-index: 1000;
  padding: 0.75rem;
  background: var(--card);
}
.skip-link:focus {
  inset-block-start: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.brand.small {
  font-size: 1.4rem;
}
.brand img {
  width: 2rem;
  height: 2rem;
}
.btn,
.icon-button,
.item-actions button,
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: transparent;
}
.btn:hover,
.item-actions button:hover {
  text-decoration: none;
  filter: brightness(0.95);
}
.btn-primary {
  background: var(--button);
  color: var(--on-button);
  border-color: transparent;
}
.btn-danger {
  background: #a32e2e;
  color: white;
  border-color: transparent;
}
.btn-outline {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}
.btn-small {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}
.full {
  width: 100%;
}
.icon-button {
  padding: 0.3rem 0.6rem;
  font-size: 1.35rem;
  min-width: 2.75rem;
  flex: none;
}
.text-link,
.person-link {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.delete-link {
  color: var(--ink);
  text-decoration: underline;
  background: transparent;
  border: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  font-size: 0.8rem;
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 750;
  text-transform: uppercase;
  line-height: 1.6;
}
.fine-print,
.micro {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
  margin-block: 0.75rem;
}
.muted {
  color: var(--muted);
}
.badge {
  display: inline-block;
  background: var(--tint);
  color: var(--ink);
  border-radius: 0.4rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.badge.red {
  background: #fce7df;
  color: #833c29;
}
.avatar {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.65rem;
  font-size: 0.7rem;
  font-weight: 650;
  flex: none;
}
.sage {
  background: #dfe9d7;
  color: #385637;
}
.peach {
  background: #f7dfc6;
  color: #784323;
}
.lilac {
  background: #e7e2f2;
  color: #5e517a;
}
.status-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}
.button-row,
.detail-actions,
.modal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block-start: 1rem;
}
.form-stack {
  display: grid;
  gap: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
}
.span-2 {
  grid-column: 1 / -1;
}
label,
.field {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.6;
  min-width: 0;
}
input:not([type='checkbox']):not([type='range']),
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--ink);
  padding: 0.7rem;
  min-height: 2.75rem;
  font-size: 1rem;
}
input[type='range'] {
  width: 100%;
  min-height: 2.75rem;
  accent-color: var(--button);
}
input[type='file'] {
  font-size: 0.85rem !important;
}
input[type='checkbox'] {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  margin: 0.2rem 0 0;
  accent-color: var(--button);
}
textarea {
  resize: vertical;
  min-height: 6rem;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.checkbox-label a {
  text-decoration: underline;
}
.form-error,
.notice,
.banner {
  background: #fff1d9;
  color: #64451d;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.form-error {
  background: #fff0e8;
  color: #8a3421;
}
.notice {
  margin-block: 1rem;
}
.banner {
  border-radius: 0;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}
.toast {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 2rem);
  width: max-content;
  background: #183f35;
  color: #fff;
  padding: 0.85rem 1.2rem;
  border-radius: 0.65rem;
  box-shadow: 0 0.3rem 1.4rem #0003;
  z-index: 1000;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
[dir='rtl'] .toast {
  transform: translateX(50%);
}
dialog {
  width: 40rem;
  max-width: calc(100vw - 1.5rem);
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1rem 5rem #0003;
}
dialog::backdrop {
  background: #0a221899;
}
.modal-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-block-end: 1px solid var(--line);
}
.modal-header h2 {
  min-width: 0;
}
.modal-header .icon-button {
  flex: none;
}
#modal-content,
.modal-body {
  padding: 1.25rem;
}
#modal-content > p {
  margin-block-end: 1rem;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
}
.detail-meta dt {
  color: var(--muted);
  font-size: 0.8rem;
}
.detail-meta dd {
  margin: 0.3rem 0 0;
  overflow-wrap: anywhere;
}
.history-note,
.post-text,
.message-bubble p,
.profile-description,
.profile-contact p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#modal-content h3 {
  margin-block: 1.5rem 0.8rem;
}
/* Application layout */
.app-body {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  inset-block-start: 0;
  align-self: start;
  block-size: 100dvh;
  z-index: 20;
  background: var(--navigation);
  color: var(--on-navigation);
  padding: 1.8rem 1rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sidebar > .brand {
  margin-inline: 0.6rem;
}
.sidebar-caption {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin: 2rem 0.75rem 1rem;
  overflow-wrap: anywhere;
}
.sidebar nav {
  display: grid;
  gap: 0.3rem;
}
.sidebar nav :is(a, button) {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
  min-height: 2.75rem;
}
.sidebar nav :is(a, button) > .nav-icon {
  font-size: 1.4rem;
  min-width: 1.5rem;
}
.sidebar nav :is(a, button) > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.sidebar nav :is(a, button):hover,
.sidebar nav a.active {
  background: #ffffff1a;
  text-decoration: none;
}
.sidebar nav a.active {
  box-shadow: inset 0.18rem 0 #f8cfa9;
}
.sidebar-bottom {
  margin-block-start: auto;
  padding-block-start: 2rem;
}
.account-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.logout {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0.8rem;
  min-height: 2.75rem;
  font-size: 0.8rem;
}
.app-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-block-end: 1px solid var(--line);
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: var(--card);
}
.app-top > p {
  font-size: 0.85rem;
}
.app-top > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.app-shell main {
  width: min(100%, 100rem);
  margin-inline: auto;
  padding: 2rem clamp(1rem, 3vw, 2.5rem) 3rem;
  flex: 1;
  min-width: 0;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 2rem;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-block-end: 1.5rem;
}
.view-header h1 {
  margin-block: 0.5rem;
}
.view-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.875rem;
}
.view-header > div {
  flex: 1 1 18rem;
  min-width: 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem;
  margin-block-end: 1.5rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.2rem;
  border-radius: 0.8rem;
  min-width: 0;
}
.stat-card > span {
  font-size: 0.8rem;
  color: var(--muted);
}
.stat-card strong {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  margin-block: 0.6rem;
  overflow-wrap: anywhere;
}
.stat-card small {
  font-size: 0.75rem;
  color: var(--muted);
}
.stat-card.highlight {
  background: var(--tint);
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 25%);
  gap: 1.25rem;
  align-items: start;
}
.panel,
.aside-card,
.settings-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  min-width: 0;
}
.panel-heading,
.panel-body {
  padding: 1.25rem;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 1rem;
}
.filter-btn {
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
}
.filter-btn.active {
  background: var(--tint);
  color: var(--ink);
  border-color: var(--line);
}
.item-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.25rem;
  border-block-start: 1px solid var(--line);
}
.item-main {
  flex: 1 1 11rem;
  min-width: 0;
}
.item-title {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.item-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-block-start: 0.3rem;
}
.item-price {
  font-size: 0.85rem;
}
.item-actions button {
  font-size: 0.8rem;
  padding: 0.5rem 0.65rem;
}
.aside-card,
.settings-card {
  padding: 1.35rem;
  margin-block-end: 1.25rem;
}
.aside-card h2,
.settings-card h2 {
  margin-block-end: 0.8rem;
}
.aside-card.promo {
  background: var(--tint);
}
.aside-card p,
.settings-card > p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-block: 0.8rem;
}
.big-symbol {
  font-size: 2.5rem;
}
.mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-block-start: 1px solid var(--line);
  padding-block: 1rem;
}
.mini-item strong {
  font-size: 0.85rem;
}
.mini-item p {
  font-size: 0.75rem;
}
.empty-state {
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.empty-state p {
  margin: 1rem;
}
.empty-symbol {
  display: block;
  font-size: 2.5rem;
  margin-block-end: 1rem;
}
.search-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-block-end: 1rem;
}
.search-toolbar label {
  flex: 1 1 15rem;
  max-width: 30rem;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  align-items: start;
}
.loading {
  padding: 5rem 1rem;
  text-align: center;
}
/* Colleagues and conversations */
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 32%);
  gap: 1.5rem;
  align-items: start;
}
.people-panel {
  min-width: 0;
}
.people-panel > .settings-card {
  margin-block-start: 1rem;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}
.person-card {
  display: flex;
  align-items: start;
  gap: 0.85rem;
  padding: 1.1rem 0;
  border-block-end: 1px solid var(--line);
}
.person-card > div {
  min-width: 0;
  flex: 1;
}
.person-card h2,
.person-card h3 {
  font-size: 1rem;
  margin-block-end: 0.4rem;
}
.person-card p {
  font-size: 0.8rem;
  margin-block: 0.4rem;
}
.profile-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  flex: none;
  display: inline-grid;
  place-items: center;
  object-fit: cover;
  background: var(--tint);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 650;
}
.profile-avatar.large {
  width: 7rem;
  height: 7rem;
  border-radius: 1rem;
  font-size: 1.8rem;
}
.post {
  border-block-start: 1px solid var(--line);
  padding: 1.25rem;
}
.post-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.post-byline time {
  color: var(--muted);
  font-size: 0.75rem;
  margin-inline-start: auto;
}
.post-text {
  margin-block-start: 0.8rem;
}
.invite-list {
  list-style: none;
  padding: 0;
}
.invite-list li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-block: 0.8rem;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.invite-list small {
  display: block;
  color: var(--muted);
}
.profile-page {
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  overflow: hidden;
  max-width: 56rem;
  margin-inline: auto;
}
.profile-cover {
  min-height: 11rem;
  background: var(--navigation);
  color: var(--on-navigation);
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 1.75rem;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.profile-ring {
  font-size: clamp(3rem, 8vw, 6rem);
  flex: none;
  line-height: 1;
  opacity: 0.55;
}
.profile-content {
  padding: 0 clamp(1rem, 4vw, 2.5rem) 2rem;
  background: var(--card);
}
.profile-content > .profile-avatar {
  margin-block-start: -2.5rem;
  position: relative;
  border: 0.3rem solid var(--card);
}
.profile-content > .badge {
  margin: 1rem;
}
.profile-content h1 {
  margin-block: 1.2rem 0.7rem;
}
.profile-description {
  color: var(--muted);
  max-width: 42rem;
}
.profile-contact {
  border-block-start: 1px solid var(--line);
  margin-block-start: 1.5rem;
  padding-block-start: 1.5rem;
}
.profile-contact h2 {
  font-size: 0.85rem;
  color: var(--muted);
  margin-block-end: 0.6rem;
}
.conversation {
  max-width: 56rem;
  margin-inline: auto;
}
.conversation-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding: 1.2rem;
  border-block-end: 1px solid var(--line);
}
.message-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem;
  max-height: min(55dvh, 32rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  overflow-anchor: none;
}
.message-bubble {
  background: var(--tint);
  color: var(--ink);
  border-radius: 0.8rem 0.8rem 0.8rem 0.15rem;
  padding: 0.85rem 1rem;
  align-self: flex-start;
  max-width: 90%;
  min-width: 0;
}
.message-bubble.mine {
  align-self: flex-end;
  border-radius: 0.8rem 0.8rem 0.15rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--card);
}
.message-bubble time {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  margin-block-start: 0.4rem;
}
#older-messages {
  margin: 1rem;
}
#unread-count {
  background: #f7d7aa;
  color: #173e34;
  padding: 0.15rem 0.4rem;
  border-radius: 1rem;
  font-size: 0.65rem;
}
/* Public site and account screens */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-block: 1.75rem;
}
.site-header nav,
.header-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.875rem;
}
.header-actions {
  gap: 0.6rem;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: 3rem 5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.07;
  margin-block: 1.5rem;
}
.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 30rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-block: 1.75rem 0.6rem;
}
.hero-foot {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  border-block-start: 1px solid var(--line);
  padding-block-start: 1.4rem;
  margin-block-start: 2rem;
}
.round-symbol {
  font-size: 1.75rem;
}
.hero-art {
  background: var(--tint);
  border-radius: 1.5rem;
  padding: 1.5rem;
  background-image:
    linear-gradient(#7b8d7015 1px, transparent 1px),
    linear-gradient(90deg, #7b8d7015 1px, transparent 1px);
  background-size: 2.4rem 2.4rem;
}
.floating-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  margin-block-end: 1.5rem;
}
.preview-window {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 1rem 2.5rem #29432413;
}
.preview-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  border-block-end: 1px solid var(--line);
  padding: 1rem;
}
.preview-content {
  padding: 1.25rem;
}
.preview-content h2 {
  font-size: 1.5rem;
  margin-block: 0.6rem 1.5rem;
}
.preview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
  gap: 1rem;
  background: var(--tint);
  padding: 1rem;
  border-radius: 0.5rem;
}
.preview-stats small {
  font-size: 0.75rem;
}
.preview-stats strong {
  display: block;
  font-size: 1.8rem;
}
.preview-list > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.85rem;
  border-block-end: 1px solid var(--line);
  font-size: 0.75rem;
}
.preview-list .badge {
  margin-inline-start: auto;
}
.preview-message {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--navigation);
  color: var(--on-navigation);
  padding: 0.9rem;
  border-radius: 0.5rem;
  margin-block-start: 1rem;
  font-size: 0.8rem;
}
.preview-message > span {
  font-size: 2rem;
}
.preview-message p {
  font-size: 0.7rem;
}
.section {
  padding-block: 4.5rem;
}
.section > .eyebrow {
  margin-block-end: 1.5rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
}
.feature-card {
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  background: var(--tint);
  width: 3rem;
  height: 3rem;
  border-radius: 0.7rem;
  font-size: 1.75rem;
  margin-block-end: 2rem;
}
.feature-card h2 {
  margin-block-end: 0.85rem;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
}
.value-section {
  background: var(--navigation);
  color: var(--on-navigation);
}
.value-grid,
.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}
.value-grid h2,
.price-layout h2,
.faq-section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-block: 1rem 1.5rem;
}
.calculator,
.pricing-card {
  padding: 1.8rem;
  border-radius: 1rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.calculator label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.calculator input {
  margin-block: 0.6rem 1rem;
}
.calc-total {
  border-block-start: 1px solid var(--line);
  padding-block-start: 1rem;
}
.calc-total > span {
  font-size: 0.85rem;
}
.calc-total strong {
  display: block;
  font-size: 2.5rem;
  overflow-wrap: anywhere;
}
.price {
  font-size: 4rem;
  letter-spacing: -0.04em;
  margin-block: 1rem;
}
.price > span {
  font-size: 1rem;
  letter-spacing: 0;
  margin-inline-start: 0.5rem;
}
.setup-price,
.section-sub {
  color: var(--muted);
}
.pricing-card .btn {
  margin-block-start: 1.5rem;
}
.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem;
  border-block-start: 1px solid var(--line);
}
details {
  padding-block: 1.25rem;
  border-block-end: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 600;
  overflow-wrap: anywhere;
}
details p {
  margin-block-start: 1rem;
  color: var(--muted);
}
.closing {
  text-align: center;
  padding-block: 3rem 5rem;
}
.closing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-block-end: 2rem;
}
.site-footer,
.simple-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-block-start: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.simple-footer {
  justify-content: center;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  max-width: 70rem;
  padding-block: 3rem 4rem;
  align-items: center;
}
.auth-story h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-block: 1.5rem;
}
.auth-story p {
  color: var(--muted);
}
.auth-loop {
  font-size: 7rem;
  color: var(--muted);
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
}
.auth-card h2 {
  font-size: 1.8rem;
  margin-block: 1rem;
}
.auth-card > p {
  margin-block: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.auth-switch,
.forgot {
  display: block;
  text-align: center;
  margin-block-start: 1.5rem;
  text-decoration: underline;
  font-size: 0.875rem;
}
.legal-page {
  max-width: 52rem;
  padding: 1.5rem;
  margin: 2rem auto;
}
.legal-page h1 {
  margin-block: 1.5rem;
}
.legal-page h2 {
  margin-block: 2rem 0.8rem;
}
.legal-page a {
  text-decoration: underline;
}
/* Reflow without hiding content, including at 200% text size. */
@media (max-width: 76rem) {
  .work-grid,
  .company-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .work-aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
  }
}
@media (max-width: 58rem) {
  .app-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .sidebar {
    padding: 0.8rem;
  }
  .sidebar > .brand {
    font-size: 1.5rem;
  }
  .sidebar-caption {
    margin: 0.6rem;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .sidebar nav :is(a, button) {
    flex: 1 1 8rem;
    padding: 0.65rem;
  }
  .sidebar-bottom {
    padding: 0.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .hero,
  .value-grid,
  .price-layout,
  .faq-section,
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .hero-art {
    width: min(100%, 34rem);
    margin-inline: auto;
  }
  .auth-story {
    display: none;
  }
  .auth-card {
    width: min(100%, 34rem);
    margin-inline: auto;
  }
}
@media (max-width: 30rem) {
  .site-header nav {
    width: 100%;
    order: 3;
  }
  .app-top {
    padding: 0.8rem 1rem;
  }
  .app-top > p {
    width: 100%;
  }
  .app-shell main {
    padding-block-start: 1.25rem;
  }
  .item-actions {
    width: 100%;
  }
  .item-actions button {
    width: 100%;
  }
  .hero {
    padding-block-start: 1rem;
  }
  .hero-art,
  .preview-content {
    padding: 1rem;
  }
  .section {
    padding-block: 2.5rem;
  }
}
html:is([data-text-size='150'], [data-text-size='175'], [data-text-size='200']) .app-body {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}
html:is([data-text-size='150'], [data-text-size='175'], [data-text-size='200']) .sidebar nav {
  display: flex;
  flex-wrap: wrap;
}
html:is([data-text-size='150'], [data-text-size='175'], [data-text-size='200'])
  .sidebar
  nav
  :is(a, button) {
  flex: 1 1 8rem;
}
html:is([data-text-size='150'], [data-text-size='175'], [data-text-size='200'])
  :is(.work-grid, .company-grid, .hero, .value-grid, .price-layout, .faq-section, .auth-layout) {
  grid-template-columns: minmax(0, 1fr);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media (forced-colors: active) {
  .btn,
  .badge,
  .sidebar nav a.active {
    border: 1px solid ButtonText;
  }
}

/* Consistent controls, including long translations and portrait viewports. */
.btn > span,
.button-row > *,
.detail-actions > *,
.modal-actions > *,
.account-label > strong,
.conversation-heading > h2,
.mini-item > div {
  min-width: 0;
}
button,
.btn,
.text-link,
label,
small,
time {
  overflow-wrap: anywhere;
}
.text-link:is(button) {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 0.6rem;
}
.stat-card strong,
.item-price,
time,
.field-hint {
  font-variant-numeric: tabular-nums;
}
.field-hint {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}
.password-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}
.password-control input {
  flex: 1 1 10rem;
}
.password-control button {
  flex: 0 1 auto;
}
input[type='file'] {
  overflow: hidden;
}
input[type='file']::file-selector-button {
  font: inherit;
  color: var(--ink);
  background: var(--tint);
  border: 0;
  border-radius: 0.3rem;
  padding: 0.4rem;
  margin-inline-end: 0.5rem;
  max-width: 100%;
  white-space: normal;
}
.results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-block-end: 1px solid var(--line);
}
.sidebar-top {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#sidebar-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-block-size: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-icon,
.menu-toggle svg {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-toggle {
  display: none;
}
.sidebar[data-compact='true'] {
  block-size: auto;
  max-block-size: 100dvh;
  padding: 0.65rem 1rem;
}
.sidebar[data-compact='true'] .brand {
  font-size: 1.5rem;
}
.sidebar[data-compact='true'] .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  max-width: 100%;
  color: inherit;
  background: transparent;
  border: 1px solid #ffffff66;
  border-radius: 0.4rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
}
.sidebar[data-compact='true']:not([data-open='true']) #sidebar-content {
  display: none;
}
.sidebar[data-compact='true'] .sidebar-bottom {
  padding-block-start: 0.75rem;
}
.sidebar[data-compact='true'] nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.sidebar[data-compact='true'] .sidebar-caption {
  margin: 1rem 0.75rem 0.5rem;
}
.photo-cropper {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
#modal-content .photo-cropper h3 {
  margin: 0;
}
.crop-frame {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 2px solid var(--ink);
  background: repeating-conic-gradient(#ddd 0% 25%, #fff 0% 50%) 0 0 / 1rem 1rem;
}
.crop-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.crop-frame canvas:active {
  cursor: grabbing;
}
.crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid #fff;
  background:
    linear-gradient(
      90deg,
      transparent 33.1%,
      #ffffff75 33.1%,
      #ffffff75 33.5%,
      transparent 33.5%,
      transparent 66.5%,
      #ffffff75 66.5%,
      #ffffff75 66.9%,
      transparent 66.9%
    ),
    linear-gradient(
      transparent 33.1%,
      #ffffff75 33.1%,
      #ffffff75 33.5%,
      transparent 33.5%,
      transparent 66.5%,
      #ffffff75 66.5%,
      #ffffff75 66.9%,
      transparent 66.9%
    );
}
.crop-directions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  direction: ltr;
}
.crop-directions button {
  padding-inline: 0.25rem;
}
.photo-cropper input[type='range'] {
  width: 100%;
  min-height: 2.75rem;
  accent-color: var(--button);
  padding: 0;
}
.appearance-preview {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem;
  background: var(--tint);
}
@media (max-width: 40rem) {
  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
    gap: 0.75rem;
  }
  .stat-card {
    padding: 1rem;
  }
  .stat-card strong {
    font-size: 1.65rem;
  }
  .button-row,
  .detail-actions,
  .modal-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    align-items: stretch;
  }
  .button-row > *,
  .detail-actions > *,
  .modal-actions > *,
  .view-header > .btn {
    width: 100%;
  }
  .app-top {
    gap: 0.5rem;
  }
  .app-top > div {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .settings-card,
  .aside-card,
  .panel-body,
  .post {
    padding: 1rem;
  }
  .item-row {
    gap: 0.65rem;
    padding: 1rem;
  }
  .item-actions {
    width: 100%;
  }
  .item-actions button {
    width: 100%;
  }
  .profile-cover {
    padding: 1.25rem;
    min-height: 8rem;
  }
  .profile-content > .badge {
    margin-inline: 0.5rem;
  }
  .conversation-heading,
  .message-list {
    padding: 1rem;
  }
  .conversation-heading > h2 {
    flex: 1 1 8rem;
  }
  .message-bubble {
    max-width: 100%;
  }
  dialog {
    max-width: calc(100vw - 1rem);
    max-height: 94dvh;
    border-radius: 0.65rem;
  }
  .modal-header,
  #modal-content,
  .modal-body {
    padding: 0.9rem;
  }
  .photo-cropper {
    padding: 0.65rem;
  }
  .app-footer {
    padding-inline: 1rem;
  }
}

/* Workspace palettes are allowlisted; profiles inherit the reader's workspace. */
[data-theme='slate'] {
  --ink: #25364b;
  --muted: #58677a;
  --paper: #f3f5f8;
  --card: #fcfdff;
  --tint: #e7edf4;
}
[data-theme='lavender'] {
  --ink: #3e315b;
  --muted: #68597e;
  --paper: #f6f3fb;
  --card: #fefcff;
  --tint: #ece4f6;
}
[data-surface='neutral'] {
  --paper: #f3f4f5;
  --card: #fff;
  --tint: #e9ecef;
}
[data-surface='lavender'] {
  --paper: #f6f2fb;
  --card: #fefcff;
  --tint: #eee5f7;
}
[data-accent='slate'] {
  --button: #3c506d;
}
[data-accent='violet'] {
  --button: #624080;
}
[data-accent='amber'] {
  --button: #79501d;
}
[data-sidebar='slate'] {
  --navigation: #25364b;
}
[data-sidebar='violet'] {
  --navigation: #3e2c53;
}
[data-sidebar='amber'] {
  --navigation: #50391d;
}
[data-theme='graphite'] {
  --ink: #f0f1f5;
  --muted: #c2c7d1;
  --paper: #181b22;
  --card: #232834;
  --line: #535e73;
  --tint: #343d4f;
  --focus: #ffda9e;
  color-scheme: dark;
}
[data-theme='midnight'][data-surface='neutral'] {
  --paper: #171e24;
  --card: #252f38;
  --tint: #35434e;
}
:is([data-theme='midnight'], [data-theme='graphite'])[data-surface='lavender'] {
  --paper: #201c2b;
  --card: #2e283c;
  --tint: #42374f;
}
[data-theme='graphite'][data-surface='warm'] {
  --paper: #211f1b;
  --card: #302d27;
  --tint: #454034;
}
[data-theme='graphite'][data-surface='rose'] {
  --paper: #251d23;
  --card: #352832;
  --tint: #483747;
}
[data-theme='graphite'][data-surface='cool'] {
  --paper: #171f29;
  --card: #252f3e;
  --tint: #34445b;
}
.nav-appearance {
  color: inherit;
  background: transparent;
  border: 0;
  text-align: start;
  width: 100%;
}
.app-top > div {
  margin-inline-start: auto;
}
.app-top > p {
  width: auto;
}
.refresh-button {
  white-space: normal;
}
fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
legend {
  padding-inline: 0.4rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.form-section {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem;
}
.form-section > div {
  margin-block-start: 1rem;
}
.visit-checklist {
  display: grid;
  gap: 0.8rem;
}
.visit-checklist label {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
.work-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-block-start: 0.3rem;
}
.work-badges:empty {
  display: none;
}
.work-filter-panel {
  margin-block-end: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--card);
}
.work-filter-panel > div {
  margin-block-start: 1rem;
}
.calendar-actions {
  margin-block-end: 0.5rem;
}
.service-entry {
  border-block-end: 1px solid var(--line);
  padding-block: 1rem;
}
.service-entry:last-child {
  border: 0;
}
.service-entry header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
#modal-content .service-entry h3 {
  margin: 0;
}
.checklist-results {
  list-style: none;
  padding: 0;
  margin-block: 1rem;
}
.checklist-results li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.5rem;
  border-block-end: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.service-report {
  max-width: 58rem;
  margin-inline: auto;
}
.service-report > section {
  margin-block-end: 1rem;
}
[data-density='compact'] :is(.item-row, .post, .panel-heading, .person-card) {
  padding-block: 0.7rem;
}
[data-density='compact'] .stat-card {
  padding-block: 0.8rem;
}
[data-density='compact'] .stat-card strong {
  margin-block: 0.35rem;
}

/* Short, purposeful motion; neither reduced-motion preference can be overridden. */
@keyframes torna-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes torna-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes torna-dialog {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes torna-toast {
  from {
    opacity: 0;
    margin-block-end: -4px;
  }
  to {
    opacity: 1;
    margin-block-end: 0;
  }
}
@keyframes torna-turn {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion='none'])
    :is(button, .btn, .sidebar a, .filter-btn, input, select, textarea) {
    transition:
      background-color 140ms ease,
      border-color 140ms ease,
      color 140ms ease,
      box-shadow 140ms ease,
      opacity 100ms ease,
      transform 100ms ease;
  }
  html:not([data-motion='none']),
  html:not([data-motion='none'])
    :is(
      .sidebar,
      .app-top,
      .panel,
      .stat-card,
      .settings-card,
      .profile-page,
      .profile-cover,
      .profile-content
    ) {
    transition:
      background-color 160ms ease,
      color 160ms ease,
      border-color 160ms ease;
  }
  html:not([data-motion='none']) :is(button, .btn):active:not(:disabled) {
    transform: translateY(1px);
  }
  html:not([data-motion='none']) .view-enter {
    animation: torna-enter 150ms ease-out;
  }
  html:not([data-motion='none']) dialog[open] {
    animation: torna-dialog 150ms ease-out;
  }
  html:not([data-motion='none']) dialog[open]::backdrop,
  html:not([data-motion='none']) details[open] > :not(summary) {
    animation: torna-fade 120ms ease-out;
  }
  html:not([data-motion='none']) .toast:not([hidden]) {
    animation: torna-toast 140ms ease-out;
  }
  html:not([data-motion='none']) .sidebar[data-compact='true'][data-open='true'] #sidebar-content {
    animation: torna-enter 130ms ease-out;
  }
  html:not([data-motion='none']) .refresh-button[aria-busy='true'] svg {
    animation: torna-turn 1s linear infinite;
  }
  html:not([data-motion='none']) .form-error:not([hidden]) {
    animation: torna-enter 120ms ease-out;
  }
}
html[data-motion='none'] *,
html[data-motion='none'] *::before,
html[data-motion='none'] *::after,
html[data-motion='none'] *::backdrop {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (max-width: 40rem) {
  .app-top > div {
    display: flex;
    flex: initial;
  }
  .visit-checklist label {
    grid-template-columns: minmax(0, 1fr);
  }
  fieldset {
    padding: 0.8rem;
  }
}
@media print {
  :root,
  :root[data-theme] {
    color-scheme: light;
    color: #111;
    background: white;
    font-size: 11pt !important;
    --ink: #111;
    --muted: #444;
    --paper: white;
    --card: white;
    --line: #bbb;
    --tint: #eee;
  }
  .app-body {
    display: block !important;
  }
  .sidebar,
  .app-top,
  #banner,
  .app-footer,
  .toast,
  dialog,
  .skip-link,
  .service-report button {
    display: none !important;
  }
  .app-shell main {
    padding: 0;
    width: 100%;
  }
  .service-report {
    max-width: none;
  }
  .service-report .panel {
    border: 0;
    padding: 0;
  }
  .service-entry {
    break-inside: avoid;
  }
  a {
    text-decoration: none;
  }
  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
}

/* Product preview carousel */
.product-tour { padding-top: 1rem; }
.tour-heading { display:flex; justify-content:space-between; gap:2rem; align-items:end; margin-bottom:2rem; }
.tour-heading h2 { font-size:clamp(2rem,4vw,3.4rem); margin-top:.8rem; max-width:32rem; }
.tour-heading .section-sub { max-width:23rem; color:var(--muted); }
.tour-shell { display:grid; grid-template-columns:minmax(15rem,.72fr) minmax(0,1.28fr); overflow:hidden; border:1px solid var(--line); border-radius:1.5rem; background:#f2eee6; min-height:31rem; }
.tour-copy { display:flex; flex-direction:column; padding:clamp(1.5rem,4vw,3.5rem); position:relative; z-index:2; }
.tour-count { font-size:.75rem; letter-spacing:.12em; color:var(--muted); }
.tour-slide-copy { display:none; margin:auto 0; max-width:20rem; animation:tour-in .45s ease both; }
.tour-slide-copy.is-active { display:block; }
.tour-kicker { color:#b75d3a; font-size:.75rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.tour-slide-copy h3 { font-size:clamp(1.8rem,3vw,2.8rem); line-height:1.08; margin:.8rem 0 1rem; }
.tour-slide-copy p { color:var(--muted); }
.tour-controls { display:flex; align-items:center; gap:.8rem; margin-top:auto; }
.tour-arrow { width:2.5rem; height:2.5rem; border:1px solid var(--line); border-radius:50%; background:var(--card); color:var(--ink); font-size:1.1rem; cursor:pointer; }
.tour-arrow:hover { background:var(--navigation); color:var(--on-navigation); }
.tour-dots { display:flex; gap:.45rem; margin:0 .3rem; }
.tour-dot { width:2.2rem; height:.3rem; border:0; border-radius:1rem; background:#c7c1b4; cursor:pointer; padding:0; }
.tour-dot.is-active { background:#b75d3a; }
.tour-visual { position:relative; min-height:31rem; overflow:hidden; background:#dce6da; }
.tour-glow { position:absolute; width:28rem; height:28rem; border-radius:50%; background:#f7d7aa; filter:blur(45px); opacity:.65; top:12%; right:8%; }
.tour-image { position:absolute; inset:2.5rem 2.5rem -18rem; border:8px solid #193f35; border-radius:1rem; box-shadow:0 1.5rem 3rem #183f3540; opacity:0; transform:translateX(2rem) rotate(2deg); transition:opacity .45s ease, transform .55s ease; overflow:hidden; background:#fff; }
.tour-image.is-active { opacity:1; transform:translateX(0) rotate(-2deg); }
.tour-image img { display:block; width:100%; height:auto; }
@keyframes tour-in { from { opacity:0; transform:translateY(.7rem); } to { opacity:1; transform:none; } }
@media (max-width: 44rem) { .tour-heading { display:block; } .tour-heading .section-sub { margin-top:1rem; } .tour-shell { grid-template-columns:1fr; } .tour-copy { min-height:20rem; } .tour-visual { min-height:23rem; } .tour-image { inset:1.5rem 1.25rem -12rem; border-width:5px; } }
/* Keep long product captures inside a consistent browser-like frame. */
.tour-visual::before {
  content: '•  •  •';
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 2.4rem;
  padding: .45rem 1rem;
  color: #8fa59a;
  background: #193f35;
  font-size: .75rem;
  letter-spacing: .18rem;
}
.tour-image {
  inset: 2.4rem 2.5rem 1.5rem;
  height: auto;
  min-height: 0;
  transform: translateX(2rem) rotate(1.5deg);
}
.tour-image.is-active { transform: translateX(0) rotate(-1.2deg); }
.tour-image img { width: 100%; max-width: none; }
.tour-arrow { flex: 0 0 2.5rem; display: inline-grid; place-items: center; padding: 0; line-height: 1; }
@media (max-width: 44rem) {
  .tour-image { inset: 2.4rem 1.25rem 1.25rem; }
}
/* The account controls stay together at the foot of the app navigation. */
.sidebar {
  align-self: stretch;
  min-height: 100dvh;
  height: auto;
}
.sidebar-appearance {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  min-height: 2.75rem;
  padding: .8rem;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: .5rem;
  text-align: start;
  font-size: .8rem;
}
.sidebar-appearance:hover { background: #ffffff1a; }
@media (max-width: 58rem) {
  .sidebar { align-self: start; height: auto; min-height: 0; }
}
/* Let the grid row determine sidebar height on long pages and full-page captures. */
.sidebar { block-size: auto; }
@media (max-width: 58rem) { .sidebar { block-size: auto; } }
/* Keep the account cluster visible while navigating long views. */
.sidebar-bottom {
  position: sticky;
  inset-block-end: 0;
  z-index: 2;
  background: var(--navigation);
}
