/* Anomak reading tokens. Relative to the user's browser font preference. */
:root,
html[data-reading-size='normal'] {
  font-size: 100%;
}
html[data-reading-size='comfortable'] {
  font-size: 112.5%;
}
html[data-reading-size='large'] {
  font-size: 131.25%;
}
html[data-reading-size='xlarge'] {
  font-size: 150%;
}
body,
body[data-ui-size] {
  --hub-text: 1rem;
  --read: 1rem;
  --nav-read: 1rem;
  --hub-space: 1;
  --ws-muted: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: visible;
}
body * {
  min-width: 0;
}
body .muted,
body .quietLabel,
body .small,
body .muted.small,
body .mini,
body .footnote,
body .notice,
body .label,
body .txNotes,
body .txState,
body .documentFileBar,
body .cdChosen,
body .warningCurrency,
body .docFolderPath,
body .v12-note,
body .successDetail,
body .helpTopics p,
body .authFooter,
body .authSetupHelp,
body .cloudhint {
  font-size: 0.9375rem;
  color: var(--ws-muted);
  line-height: 1.55;
}
body .field label,
body .strong,
body .btn,
body .btn.sm,
body .nav button,
body .accountMenuAction,
body .field input,
body .field select,
body .field textarea,
body input:not([type='checkbox']):not([type='file']),
body select,
body textarea,
body .createPanel > summary,
body .empty,
body .folderFile b,
body .folderCard b,
body .folderChild b {
  font-size: 1rem;
  line-height: 1.4;
}
body .small,
body .muted.small,
body small,
body .pill,
body .countBadge,
body .dashSectionTitle h2 .countBadge,
body .dataTable th,
body .dashAttention .muted.small,
body .dashProjectNumbers span,
body .folderChild small,
body .folderFile .muted {
  font-size: 0.9375rem;
}
body .dataTable,
body .dashProjectNumbers b,
body .proofCheckbox,
body .dashAmount {
  font-size: 1rem;
}
body .top h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
body .card h2,
body .dashSectionTitle h2,
body .workspaceDialog h2,
body .hubDialog h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
body .card h3,
body .documentReviewIntro h3,
body .helpTopics summary {
  font-size: 1.125rem;
  line-height: 1.4;
}
body .dashKpiNumber,
body .kpiNum {
  font-size: 2rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
body .dashAttention .dashKpiNumber {
  font-size: 1.65rem;
}
body .side {
  width: 15.5rem;
  min-width: 15.5rem;
  padding: 0.9rem 0.65rem;
  overflow: auto;
}
body .brand {
  font-size: 1.45rem;
  white-space: normal;
  line-height: 1.15;
  margin: 0 0.4rem;
  padding: 0;
}
body .tagline {
  font-size: 0.875rem;
  letter-spacing: 0.055em;
  line-height: 1.35;
  margin: 0.35rem 0.4rem 1.1rem;
  padding: 0;
  color: var(--rule-2);
}
body .nav button {
  min-height: 2.75rem;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
body .nav .hubIcon {
  width: 1.35rem;
  height: 1.35rem;
}
body .sidenote {
  font-size: 0.875rem !important;
}
body .main {
  padding: clamp(14px, 2vw, 32px);
  width: 100%;
  min-width: 0;
}
body .btn,
body .btn.sm,
body .createPanel > summary,
body .pageCreateButton,
body input:not([type='checkbox']):not([type='file']),
body select,
body textarea {
  min-height: max(44px, 2.6rem);
  padding: 0.55rem 0.75rem;
  white-space: normal;
}
body .btn.ghost {
  padding: 0.45rem 0.4rem;
}
body .headerTools .pill {
  font-size: 0.9375rem;
  padding: 0.35rem 0.55rem;
}
body .profileButton,
body .headerTools #hubHelp,
body .helpMark,
body .dialogClose {
  width: max(44px, 2.4rem);
  height: max(44px, 2.4rem);
  min-height: max(44px, 2.4rem);
  padding: 0;
  flex-shrink: 0;
  font-size: 1rem !important;
}
body .profileAvatar {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 0.9375rem;
}
body .hubIcon {
  width: 1.3rem;
  height: 1.3rem;
}
body .dashMetrics {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
body .dashMainGrid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr));
}
body .dashAttention {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
}
body .dashAttention > span {
  min-width: 0;
  padding: 0.8rem;
  overflow-wrap: anywhere;
}
body .dashIntro,
body .dashActions,
body .dashProjectHead,
body .dashTimelineItem,
body .row,
body .actions,
body .workspaceDialogActions,
body .hubDialogActions {
  flex-wrap: wrap;
}
body .dashActions select {
  min-width: min(10rem, 100%);
  max-width: 100%;
}
body .dashProjectNumbers {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
}
body .columns {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
body .two,
body .fields {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
body .deadlineLayout {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
}
body .card {
  padding: clamp(0.85rem, 1.65vw, 1.4rem);
}
body .folderGrid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
body .folderChild {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding-right: 3rem;
}
body .folderMore > summary,
body .fileMore > summary {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}
body .folderMorePanel,
body .fileMorePanel {
  max-width: min(18rem, calc(100vw - 24px));
  min-width: 0;
  width: max-content;
}
body .tableScroll {
  overflow-x: auto;
  max-width: 100%;
}
body .dataTable {
  min-width: 51rem;
}
body .dataTable td:nth-child(2) {
  min-width: 10rem;
  max-width: 19rem;
}
body .dataTable td:last-child {
  min-width: 7rem;
}
body .workspaceDialog,
body .hubDialog {
  width: min(38rem, calc(100vw - 24px));
  padding: 1.25rem;
  max-height: calc(100dvh - 24px);
  overflow: auto;
}
body .workspaceDialog .dialogBody,
body .workspaceDialog .dialogItem,
body .workspaceDialog .typedLabel,
body .authCard p,
body .authCard label,
body .authLink {
  font-size: 1rem;
  overflow-wrap: anywhere;
}
body .authCard {
  width: 100%;
  max-width: 32rem;
  padding: 1.4rem;
}
body .authShell {
  max-width: min(36rem, 100%);
}
body .authGate {
  overflow: auto;
}
body .headerTools {
  max-width: 100%;
  flex-wrap: wrap;
}
body .hubAccountMenu {
  width: min(18rem, calc(100vw - 24px));
  overflow-wrap: anywhere;
}
body .pageCreation {
  margin-bottom: 16px;
  display: flex;
  justify-content: flex-start;
}
body .pageCreateButton {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-height: max(44px, 2.6rem);
  padding: 0.55rem 0.85rem;
  font-weight: 650;
  background: var(--accent-fill);
  border-radius: 10px;
}
body .createPanel > summary {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  gap: 0.5rem;
}
body .createPanel > summary .hubIcon {
  width: 1.3rem;
  height: 1.3rem;
}
body .appearanceHead {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
body .appearanceHead h2 {
  margin: 0;
}
body .appearanceGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
  align-items: start;
}
body .appearanceFields {
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
body .appearancePreview {
  border: 1px solid var(--rule-1);
  background: var(--paper-1);
  border-radius: 14px;
  padding: 1.15rem;
  overflow-wrap: anywhere;
}
body .appearancePreview h3 {
  margin: 0.35rem 0;
}
.appearancePreview p {
  margin: 0.6rem 0;
}
.previewAmount {
  font-size: 1.8rem;
  font-weight: 730;
  line-height: 1.3;
  color: var(--accent-strong);
}
.previewAmount span {
  font-size: 1rem;
  font-weight: 550;
}
body:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
body .line,
body .folderFile {
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
body .row > select {
  min-width: min(9rem, 100%);
}
/* Large text leaves less working space; reflow earlier rather than shrinking text. */
@media (max-width: 1050px) {
  body .side {
    display: none;
  }
  body .main {
    padding: 1rem 0.85rem 7rem;
  }
  body .mobileNav {
    display: flex !important;
    overflow-x: auto;
    max-width: 100%;
    gap: 0.35rem;
    padding: 0.45rem;
    min-height: 3.8rem;
    background: var(--ink-0);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    justify-content: flex-start;
  }
  body .mobileNav button {
    flex: 0 0 auto;
    min-width: 5.5rem;
    max-width: 9rem;
    font-size: 0.9375rem;
    min-height: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    background: transparent;
    border: 0;
    color: var(--paper-2);
    white-space: normal;
    line-height: 1.25;
  }
  body .mobileNav button.active {
    background: var(--accent-strong);
    color: #fff;
    border-radius: 8px;
  }
  body .mobileNav .hubIcon {
    width: 1.4rem;
    height: 1.4rem;
  }
  body .hubSuccess {
    bottom: 6rem;
    max-width: calc(100vw - 20px);
  }
  body .top {
    align-items: flex-start;
  }
}
@media (min-width: 1051px) and (max-width: 1350px) {
  html[data-reading-size='large'] body .side,
  html[data-reading-size='xlarge'] body .side {
    width: 12.5rem;
    min-width: 12.5rem;
  }
}
@media (max-width: 520px) {
  body .main {
    padding: 0.8rem 0.65rem 7rem;
  }
  body .top {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }
  body .headerTools {
    gap: 0.4rem;
  }
  body .fields,
  body .two,
  body .appearanceGrid,
  body .deadlineLayout,
  body .dashMainGrid {
    grid-template-columns: 1fr;
  }
  body .dashActions {
    justify-content: flex-start;
  }
  body .dashActions select {
    flex: 1 1 100%;
  }
  body .workspaceDialogActions > button,
  body .hubDialogActions > button {
    flex: 1 1 auto;
  }
  body .authCard {
    padding: 1rem;
  }
  body .folderFile .folderMove {
    max-width: 100% !important;
  }
  body .cdTreeCreate input {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  body .dashMetric {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Keep meaning and status contrast, not just text size. */
body .warningCurrency {
  color: var(--warn);
  background: var(--warn-soft);
}
body .txState.pending {
  color: var(--warn);
}
body .txState.verified {
  color: var(--ok);
}
body .dashIntro .dashActions {
  width: auto;
  max-width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
body .dashIntro .dashActions .finFilter {
  flex: 0 1 11rem;
}
body .dashSectionTitle h2 {
  margin: 0;
}
body .pageCreation + .card > .row {
  margin-bottom: 0.6rem;
}
@media (max-width: 520px) {
  body .dashIntro .dashActions {
    justify-content: flex-start;
    flex: 1 1 100%;
  }
  body .dashIntro .dashActions .finFilter {
    flex: 1 1 100%;
  }
}
