:root {
  --navy: #0b2540;
  --teal: #117f87;
  --sea: #dff1ec;
  --paper: #f3f8f7;
  --line: #d5e5e3;
  --muted: #617487;
  --white: #fff;
  --danger: #a53935;
  --amber: #9c631f;
  --shadow: 0 8px 28px #0b254008;
  font:
    15px/1.55 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--navy);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #77b6cc;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.2;
}
h1 {
  font-size: clamp(28px, 3.8vw, 40px);
  letter-spacing: -1px;
}
h2 {
  font-size: 25px;
}
h3 {
  font-size: 20px;
}
p + p {
  margin-top: 10px;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.stack {
  display: grid;
  gap: 20px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
}
.right {
  text-align: right;
}
.pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.no-margin {
  margin: 0;
}
.topspace {
  margin-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: white;
  background: var(--navy);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: normal;
}
.btn:hover {
  background: #193e58;
  text-decoration: none;
}
.btn.teal {
  background: var(--teal);
}
.btn.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}
.btn.secondary:hover {
  background: #eaf3f0;
}
.btn.danger {
  background: #f8e9e7;
  color: var(--danger);
  border-color: #edceca;
}
.btn.tiny {
  padding: 7px 11px;
  min-height: 36px;
  font-size: 12px;
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 10px 0;
  text-align: left;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.skip {
  position: fixed;
  left: 8px;
  top: -100px;
  padding: 12px;
  background: var(--navy);
  color: white;
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 17px 18px;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 22px;
}
.brand img {
  width: 68px;
  height: 53px;
  object-fit: contain;
}
.brand strong {
  font:
    17px Georgia,
    serif;
  display: block;
}
.brand span {
  font-size: 9px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--teal);
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 10px;
  color: #506578;
  font-size: 13px;
}
.nav-link:hover {
  text-decoration: none;
  background: var(--paper);
}
.nav-link.active {
  color: var(--navy);
  background: var(--sea);
  font-weight: 650;
}
.nav-label {
  font-size: 9px;
  color: #83939b;
  letter-spacing: 1.7px;
  padding: 24px 15px 8px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 10px 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sea);
  color: var(--teal);
  font-weight: 600;
}
.sidebar-bottom .name {
  font-size: 12px;
  font-weight: 600;
}
.sidebar-bottom .role {
  font-size: 11px;
  color: var(--muted);
}
.main-column {
  min-width: 0;
}
.topbar {
  height: 67px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #ffffffc9;
}
.topbar span {
  font-size: 12px;
  color: var(--muted);
}
.topbar .online {
  display: flex;
  gap: 8px;
  align-items: center;
}
.online:before {
  content: '';
  width: 6px;
  height: 6px;
  background: #5a9d80;
  border-radius: 50%;
}
.online.offline:before {
  background: var(--danger);
}
.mobile-brand {
  display: none;
}
main {
  max-width: 1420px;
  margin: 0 auto;
  padding: 35px 40px 70px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 29px;
}
.page-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
  max-width: 660px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.metric {
  padding: 21px;
}
.metric .icon {
  color: var(--teal);
  margin-bottom: 20px;
}
.metric strong {
  display: block;
  font:
    32px Georgia,
    serif;
  line-height: 1.15;
  margin-bottom: 7px;
}
.metric span {
  font-size: 12px;
  color: var(--muted);
}
.cols {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.section-head a {
  font-size: 12px;
}
.list {
  display: grid;
  gap: 0;
}
.list-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
}
.list-item:first-child {
  padding-top: 2px;
}
.list-item:last-child {
  border: 0;
  padding-bottom: 0;
}
.list-item h3 {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.list-item p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.property-report-list {
  margin-top: 18px;
}
.property-report {
  justify-content: space-between;
  flex-wrap: wrap;
}
.property-report-info {
  flex: 1 1 250px;
  min-width: 0;
}
.property-report-actions {
  flex: 0 0 auto;
}
.property-badge {
  width: 45px;
  height: 45px;
  border-radius: 11px;
  background: #eaf4f1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--teal);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 10px;
  line-height: 1.4;
  background: #edf3f6;
  color: #4e687c;
  white-space: nowrap;
  font-weight: 600;
}
.badge.ok,
.badge.paid,
.badge.published,
.badge.verified,
.badge.completed {
  background: #e5f3eb;
  color: #326c51;
}
.badge.attention,
.badge.urgent,
.badge.overdue,
.badge.high,
.badge.unable,
.badge.failed {
  background: #fbecea;
  color: var(--danger);
}
.badge.in_progress,
.badge.partially_paid {
  background: #dff1f1;
  color: var(--teal);
}
.badge.pending,
.badge.reported,
.badge.needs_clarification,
.badge.draft,
.badge.deferred,
.badge.needs_setup {
  background: #fff2df;
  color: var(--amber);
}
.notice {
  border-radius: 12px;
  background: #e6f3ef;
  border: 1px solid #cce6de;
  padding: 15px 18px;
  font-size: 12px;
  color: #38685e;
}
.notice.warning {
  background: #fff6e8;
  color: #815d2e;
  border-color: #f0dfc3;
}
.notice.danger {
  background: #fbefed;
  color: #8e3b36;
  border-color: #eecdc7;
}
.notice p + p {
  margin-top: 7px;
}
.empty {
  padding: 34px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty .icon {
  display: block;
  margin: 0 auto 12px;
  color: var(--teal);
  width: 26px;
  height: 26px;
}
.empty h3 {
  color: var(--navy);
  margin-bottom: 8px;
}
.empty .btn {
  margin-top: 16px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td {
  border: 0;
}
td strong {
  font-weight: 600;
}
.subtle {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumb-sep {
  margin: 0 9px;
}
.footer-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 28px;
}
.mobile-nav {
  display: none;
}
form {
  display: grid;
  gap: 17px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #40586b;
}
input:not([type='checkbox']):not([type='file']),
select,
textarea {
  width: 100%;
  background: white;
  border: 1px solid #cededc;
  border-radius: 9px;
  padding: 11px 12px;
  min-height: 44px;
  color: var(--navy);
  font-size: 14px;
}
textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.55;
}
input::placeholder,
textarea::placeholder {
  color: #8a999f;
  font-weight: 400;
}
label small {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}
input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  flex-shrink: 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  min-height: 35px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 5px;
}
.field-error {
  font-size: 12px;
  color: var(--danger);
  border-radius: 8px;
  background: #fbefed;
  padding: 10px 13px;
}
.field-error:empty {
  display: none;
}
.form-title {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3px;
}
.search {
  max-width: 360px;
  margin-bottom: 20px;
}
.money-large {
  font:
    42px Georgia,
    serif;
  color: var(--navy);
}
.totals {
  margin-left: auto;
  width: 300px;
  max-width: 100%;
  display: grid;
  gap: 12px;
  padding: 20px 0;
}
.totals .row {
  justify-content: space-between;
  font-size: 13px;
}
.totals .total {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
}
.line-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 65px 100px 145px 36px;
  gap: 9px;
  align-items: end;
  margin-bottom: 10px;
}
.line-editor button {
  padding: 10px;
  min-height: 44px;
}
.charges-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.settings-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.billing-setup {
  margin-bottom: 20px;
}
.task-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.task-item:last-child {
  border: 0;
}
.task-item .row {
  margin-top: 10px;
}
.task-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
  white-space: pre-wrap;
}
.pill-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.pill-tabs button {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
  background: white;
  font-size: 12px;
  color: var(--muted);
}
.pill-tabs button.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.reading-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sticky-progress {
  position: sticky;
  top: 0;
  background: #f3f8f7f2;
  backdrop-filter: blur(10px);
  z-index: 4;
  padding: 16px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.progress-track {
  height: 5px;
  background: #dceae7;
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--teal);
  width: 0;
}
.checklist-section {
  padding: 0;
  overflow: hidden;
}
.checklist-section summary {
  list-style: none;
  padding: 19px 22px;
  cursor: pointer;
  font:
    20px Georgia,
    serif;
  background: #f9fbfa;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.checklist-section summary::after {
  content: '+';
  color: var(--teal);
  font: 20px sans-serif;
}
.checklist-section[open] summary::after {
  content: '−';
}
.check-item {
  padding: 21px 22px;
  border-top: 1px solid var(--line);
}
.check-item .question {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 13px;
}
.check-item .number {
  font-size: 10px;
  color: var(--muted);
  margin-right: 8px;
}
.answer-buttons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.answer-buttons button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 9px 15px;
  color: var(--muted);
  font-size: 12px;
}
.answer-buttons button.selected {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.answer-buttons button.selected[data-status='ok'] {
  background: #32735f;
  border-color: #32735f;
}
.answer-buttons button.selected[data-status='attention'] {
  background: var(--danger);
  border-color: var(--danger);
}
.check-item .observation {
  font-size: 12px;
  white-space: pre-wrap;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--paper);
  border-radius: 8px;
}
.check-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.photo-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  color: var(--teal);
  padding: 9px 0;
}
.photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.photo-thumbs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.photo-thumbs img {
  height: 65px;
  width: 90px;
  object-fit: cover;
  border-radius: 8px;
}
.report-check {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.report-check .pre {
  margin-top: 6px;
  color: var(--muted);
}
.report-section {
  margin-top: 24px;
}
.report-section h3 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sea);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.gallery figure {
  margin: 0;
}
.gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
}
.gallery figcaption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.definition {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 9px 18px;
  font-size: 13px;
}
.definition dt {
  color: var(--muted);
}
.definition dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.step:last-child {
  border: 0;
}
.step-number {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--sea);
  color: var(--teal);
  font-weight: 600;
  flex-shrink: 0;
}
.step strong {
  display: block;
  margin-bottom: 4px;
}
.step .muted {
  font-size: 12px;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: var(--navy);
  color: white;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: '';
  position: absolute;
  width: 650px;
  height: 650px;
  border: 1px solid #ffffff10;
  border-radius: 50%;
  top: 50%;
  left: 20%;
}
.auth-story .eyebrow {
  color: #a4d9cf;
}
.auth-story h1 {
  font-size: 48px;
  max-width: 480px;
  line-height: 1.14;
  margin: 18px 0;
}
.auth-story p {
  max-width: 370px;
  color: #b2c8d4;
  font-size: 14px;
  line-height: 1.9;
}
.auth-story img {
  width: 150px;
  background: white;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 55px;
}
.auth-story .story-footer {
  font-size: 10px;
  letter-spacing: 1px;
  color: #91b5bb;
  margin-top: 70px;
}
.auth-form {
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-box {
  max-width: 380px;
  width: 100%;
}
.auth-box h2 {
  font-size: 34px;
  margin-bottom: 12px;
}
.auth-box > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 26px;
}
.auth-box .btn {
  width: 100%;
  margin-top: 5px;
}
.auth-logo {
  display: none;
}
.auth-box .notice {
  margin-bottom: 20px;
}
.auth-box .legal {
  font-size: 11px;
  margin-top: 23px;
  color: var(--muted);
}
.initial {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}
.initial img {
  width: 170px;
  margin-bottom: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  width: min(560px, calc(100% - 30px));
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 25px 90px #0b254035;
  color: var(--navy);
  background: white;
}
dialog::backdrop {
  background: #0b254060;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-bottom: 10px;
}
dialog .dialog-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 21px;
}
.dialog-close {
  position: absolute;
  top: 13px;
  right: 15px;
  border: 0;
  background: transparent;
  font-size: 23px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  background: var(--navy);
  color: white;
  border-radius: 12px;
  box-shadow: 0 6px 30px #0b254030;
  font-size: 13px;
  max-width: calc(100% - 30px);
  z-index: 100;
  display: none;
}
#toast.visible {
  display: block;
}
#toast.error {
  background: #8e3530;
}
.loading {
  color: var(--muted);
  padding: 45px 0;
}
.loading:after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 10px;
  border: 2px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  main {
    padding-top: 45px;
  }
  .sidebar {
    padding-top: 35px;
  }
}
@media (max-width: 1150px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .layout {
    grid-template-columns: 210px 1fr;
  }
  main {
    padding: 28px 26px 65px;
  }
  .topbar {
    padding: 0 26px;
  }
  .auth-story {
    padding: 45px;
  }
  .auth-story h1 {
    font-size: 39px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .reading-box {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .property-report-actions {
    width: 100%;
  }
  .property-report-actions .btn {
    flex: 1;
    min-height: 44px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    padding: 0 20px;
    height: 66px;
    background: white;
  }
  .topbar > span {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .mobile-brand img {
    width: 51px;
    height: 42px;
    object-fit: contain;
  }
  .mobile-brand strong {
    font:
      15px Georgia,
      serif;
  }
  .mobile-brand small {
    font: 8px sans-serif;
    letter-spacing: 1.3px;
    color: var(--teal);
    display: block;
    margin-top: 2px;
  }
  .topbar .online {
    font-size: 10px;
  }
  main {
    padding: 27px 18px 110px;
  }
  .page-head {
    display: block;
    margin-bottom: 23px;
  }
  .page-head > .row {
    margin-top: 18px;
  }
  .page-head p {
    font-size: 12px;
  }
  h1 {
    font-size: 31px;
  }
  .card {
    padding: 20px;
    border-radius: 15px;
  }
  .cards {
    gap: 11px;
  }
  .metric {
    padding: 17px;
  }
  .metric strong {
    font-size: 27px;
  }
  .metric .icon {
    margin-bottom: 12px;
  }
  .metric span {
    font-size: 11px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8;
    background: white;
    border-top: 1px solid var(--line);
    padding: 8px 7px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-nav a,
  .mobile-nav button {
    border: 0;
    background: transparent;
    color: var(--muted);
    min-width: 55px;
    min-height: 45px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    font-size: 9px;
    line-height: 1.4;
  }
  .mobile-nav a.active {
    color: var(--teal);
  }
  .mobile-nav .icon {
    width: 19px;
    height: 19px;
  }
  .mobile-nav a:hover {
    text-decoration: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .reading-box {
    grid-template-columns: 1fr 1fr;
  }
  .line-editor {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px;
    gap: 9px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  .invoice-description {
    grid-column: 1 / -1;
  }
  .line-editor > label:has(input[type='date']) {
    grid-column: 1 / 3;
  }
  .line-editor input:not([type='checkbox']) {
    padding: 9px 6px;
    font-size: 12px;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .gallery img {
    height: 140px;
  }
  .definition {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .definition dd {
    margin-bottom: 13px;
  }
  .check-item {
    padding: 18px 15px;
  }
  .checklist-section summary {
    padding: 17px 15px;
    font-size: 18px;
  }
  .answer-buttons button {
    flex: 1;
    padding: 10px 8px;
  }
  .check-tools {
    gap: 15px;
  }
  .sticky-progress {
    padding-top: 11px;
  }
  .sticky-progress > .row {
    gap: 8px;
  }
  .auth-page {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-form {
    padding: 35px 24px;
    min-height: 100vh;
    align-items: flex-start;
  }
  .auth-box {
    margin-top: 20px;
    max-width: 420px;
  }
  .auth-logo {
    display: block;
    width: 150px;
    margin: 0 auto 35px;
  }
  .auth-box h2 {
    font-size: 31px;
  }
  .auth-box .legal {
    margin-top: 28px;
  }
  .table-wrap {
    margin: 0 -7px;
  }
  th,
  td {
    padding-left: 7px;
    padding-right: 7px;
  }
  #toast {
    bottom: 90px;
  }
  dialog {
    padding: 23px 20px;
  }
  .footer-note {
    margin-top: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .mobile-nav,
  .page-head > .row,
  .btn,
  #toast {
    display: none !important;
  }
  .layout {
    display: block;
  }
  main {
    padding: 0;
  }
  .card {
    box-shadow: none;
  }
  body {
    background: white;
  }
  .page-head {
    margin-top: 0;
  }
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
fieldset:disabled {
  opacity: 0.8;
}
