@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Text";
  src: url("./assets/dm-serif-text.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #192f32;
  --green: #275b52;
  --dark: #183b3d;
  --dim: #5b6c6a;
  --line: #dde4de;
  --soft: #f5f7f3;
  --white: #fff;
  --sage: #e2eee5;
  --sand: #f6efdd;
  --lav: #eeeaf6;
  --blue: #e5eef5;
  --rust: #914e32;
  --shadow: 0 12px 40px #1732310b;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: #f6f8f5;
  font-synthesis: none;
}
.company-logo {
  display: block;
  max-width: 168px;
  max-height: 76px;
  object-fit: contain;
  margin: 4px 0 18px;
}
.account-logo {
  width: 31px;
  height: 31px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}
.logo-edit {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
}
.logo-edit .company-logo {
  max-width: 90px;
  max-height: 60px;
  margin: 0;
}
.workflow-list {
  padding: 0;
  margin: 10px 0;
  list-style: none;
}
.workflow-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.workflow-row:last-child {
  border: 0;
}
.workflow-row .actions,
.listrow .actions {
  margin: 0;
  flex-wrap: wrap;
}
.step-no {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  height: 31px;
  color: var(--green);
  background: var(--sage);
  border-radius: 50%;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step-main {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.doc-preview {
  font: inherit;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 14px 0 0;
}
.doc-fields {
  margin: 8px 0;
}
.template-text {
  min-height: 250px;
}
.content > .fleet-notice {
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .workflow-row {
    flex-wrap: wrap;
    gap: 9px;
  }
  .workflow-row .actions {
    margin-left: 39px;
    width: calc(100% - 39px);
  }
  .logo-edit {
    flex-wrap: wrap;
  }
  .step-main strong {
    font-size: 0.94rem;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--green);
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #408b88;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 8px;
  z-index: 30;
  background: #fff;
  padding: 10px;
}
.skip:focus {
  top: 8px;
}
.ic {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  height: 100dvh;
  position: sticky;
  top: 0;
  z-index: 8;
  background: linear-gradient(155deg, #1b4143, #173739 90%);
  color: #e6efea;
  display: flex;
  flex-direction: column;
  padding: 30px 16px 15px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 9px;
  color: #f7f5e9;
  text-decoration: none;
}
.brand img {
  width: 37px;
  height: 37px;
}
.brandword {
  font:
    400 31px/1 "DM Serif Text",
    Georgia,
    serif;
  letter-spacing: -1.5px;
}
.brandword span {
  color: #c5d6c2;
}
.nav {
  margin-top: 35px;
  overflow: auto;
}
.nav-label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #afc5be;
  padding: 0 13px;
  margin: 19px 0 8px;
}
.nav-label:first-child {
  margin-top: 0;
}
.navbtn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #d6e3dc;
  border: 0;
  background: none;
  padding: 11px 13px;
  font-size: 0.94rem;
  line-height: 1.3;
  font-weight: 500;
  border-radius: 7px;
  margin: 1px 0;
}
.navbtn:hover {
  background: #ffffff12;
}
.navbtn.current {
  color: #fff;
  background: #355956;
}
.navbtn.current:before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 4px;
  background: #c8d5a7;
}
.side-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.account {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 5px 2px;
  color: #f4f7f2;
  background: transparent;
  border: 0;
  border-top: 1px solid #ffffff27;
  text-align: left;
}
.account strong,
.account small {
  display: block;
}
.account strong {
  font-size: 0.87rem;
}
.account small {
  font-size: 0.76rem;
  color: #bdd0c7;
  margin-top: 3px;
}
.account > .ic {
  margin-left: auto;
}
.account-mark {
  display: grid;
  place-items: center;
  border: 1px solid #749088;
  border-radius: 10px;
  background: #345552;
  width: 35px;
  height: 35px;
}
.work {
  min-width: 0;
}
.topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px clamp(18px, 3.5vw, 62px);
  border-bottom: 1px solid var(--line);
  background: #fcfdfb;
}
.crumb,
.utility {
  display: flex;
  align-items: center;
  gap: 11px;
}
.crumb {
  font-size: 0.87rem;
  color: var(--dim);
}
.crumb strong {
  color: var(--ink);
  font-weight: 650;
}
.crumb .ic {
  width: 15px;
  height: 15px;
}
.utility {
  gap: 9px;
}
.searchbtn,
.modechip,
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  font-size: 0.84rem;
  padding: 7px 11px;
  min-height: 36px;
  color: #405b58;
}
.modechip {
  background: #edf2e9;
  border-color: #dce7d9;
  color: #365443;
}
.searchbtn .ic,
.modechip .ic {
  width: 16px;
  height: 16px;
}
.iconbtn {
  width: 36px;
  min-height: 36px;
  padding: 6px;
}
.mobile-menu {
  display: none;
}
main.content {
  width: min(1600px, 100%);
  margin: auto;
  padding: 30px clamp(18px, 3.5vw, 62px) 50px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.eyedate {
  color: #537368;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 650;
  margin-bottom: 6px;
}
.eyedate .ic {
  width: 16px;
  height: 16px;
}
.eyedate:first-letter {
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
.display {
  font:
    400 clamp(2.15rem, 3.25vw, 3.35rem) / 1.08 "DM Serif Text",
    Georgia,
    serif;
  letter-spacing: -0.045em;
}
h2 {
  font:
    400 1.52rem/1.2 "DM Serif Text",
    Georgia,
    serif;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.02rem;
}
.subtext {
  color: var(--dim);
  font-size: 0.95rem;
  margin-top: 7px;
  line-height: 1.5;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #cfdad2;
  border-radius: 8px;
  background: #fff;
  color: #29443e;
  padding: 9px 15px;
  min-height: 42px;
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}
.btn:hover,
.searchbtn:hover,
.iconbtn:hover {
  border-color: #a8bab0;
  background: #f2f6f1;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
  box-shadow: 0 2px 4px #193f3620;
}
.btn.primary:hover {
  background: #1d4c44;
}
.btn.small {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 0.82rem;
}
.btn .ic {
  width: 17px;
  height: 17px;
}
.textbtn {
  border: 0;
  background: none;
  color: #2f6653;
  padding: 4px 0;
  font-size: 0.88rem;
  font-weight: 650;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.textbtn:hover {
  text-decoration: underline;
}
.textbtn:disabled {
  opacity: 0.4;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 2px 3px #18393304;
}
.stat {
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 18px 15px;
  min-height: 131px;
  gap: 7px;
  transition: border-color 0.15s;
}
.stat:hover {
  border-color: #9eb5a7;
}
.stat-top {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 650;
  color: #455d56;
}
.tileicon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
}
.tileicon .ic {
  width: 17px;
  height: 17px;
}
.tone0 {
  color: #356451;
  background: #e4eee3;
}
.tone1 {
  color: #80612b;
  background: #f6efd9;
}
.tone2 {
  color: #586b83;
  background: #e8eef4;
}
.tone3 {
  color: #715d81;
  background: #f0ebf3;
}
.stat-value {
  font:
    550 clamp(1.8rem, 2.6vw, 2.55rem) / 1.05 "DM Sans",
    sans-serif;
  letter-spacing: -0.06em;
}
.meta,
.stat-foot {
  color: var(--dim);
  font-size: 0.81rem;
  line-height: 1.4;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(245px, 0.9fr);
  gap: 18px;
  align-items: start;
}
.panel {
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 19px 20px 16px;
}
.panel-body {
  padding: 0 20px 18px;
}
.panel-foot {
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  background: #fbfcfa;
}
.flow-gap {
  display: grid;
  gap: 18px;
}
.mt {
  margin-top: 18px;
}
.table-scroll {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}
.data-table th {
  font-size: 0.76rem;
  color: #50635c;
  font-weight: 600;
  background: #f6f8f4;
  white-space: nowrap;
}
.data-table th,
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #e8ece7;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table td {
  vertical-align: middle;
}
.data-table tbody tr[data-open] {
  cursor: pointer;
}
.data-table tbody tr[data-open]:hover {
  background: #f6f9f4;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.avatar {
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.01em;
  font-weight: 700;
  flex: 0 0 35px;
  height: 35px;
  border-radius: 10px;
}
.person strong {
  font-size: 0.91rem;
  font-weight: 650;
}
.person small,
.cell-sub {
  display: block;
  color: #64736f;
  font-size: 0.78rem;
  margin-top: 3px;
}
.pill {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 0.76rem;
  line-height: 1.15;
  font-weight: 600;
}
.pill:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill.open {
  color: #7e5c29;
  background: #f6eedc;
}
.pill.progress {
  color: #346153;
  background: #e5efe6;
}
.pill.done {
  color: #536b86;
  background: #e9eef6;
}
.pill.arch {
  color: #67676a;
  background: #eeeeee;
}
.agenda-row,
.work-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e8ece7;
  text-align: left;
}
.agenda-row:last-child,
.work-row:last-child {
  border-bottom: 0;
}
.agenda-row:hover,
.work-row:hover {
  color: #287456;
}
.dateblock {
  width: 44px;
  min-width: 44px;
  height: 47px;
  border: 1px solid #dce5db;
  border-radius: 9px;
  background: #f5f8f3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.dateblock .day {
  font-size: 1.1rem;
  line-height: 1.05;
  font-weight: 650;
}
.dateblock .month {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #607566;
}
.rowtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
}
.rowtitle + .meta {
  display: block;
  margin-top: 3px;
}
.backdrop {
  display: none;
}
.actions,
.filters,
.tabs,
.form-footer,
.toolbar,
.rowline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.filters {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.filters input {
  flex: 1;
  min-width: 150px;
}
.tabs {
  border-bottom: 1px solid var(--line);
  margin: 14px 0 19px;
  gap: 14px;
}
.tab {
  border: 0;
  background: none;
  color: var(--dim);
  padding: 9px 2px 11px;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.tab.active {
  border-color: var(--green);
  color: var(--green);
}
.formgrid,
.detailgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.detailgrid {
  gap: 0 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field.wide,
.wide {
  grid-column: 1/-1;
}
.field > span,
.group-title {
  font-size: 0.86rem;
  font-weight: 650;
  color: #405750;
}
.field small {
  color: var(--dim);
  font-size: 0.79rem;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd6cf;
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  max-width: 100%;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 17px;
  accent-color: var(--green);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352685a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.filters select {
  width: auto;
}
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
}
.checkline input {
  flex: none;
  margin: 2px 0 0;
}
.datarow {
  padding: 11px 0;
  border-bottom: 1px solid #e6ebe6;
  min-width: 0;
}
.datarow small {
  display: block;
  color: var(--dim);
  font-size: 0.8rem;
  margin-bottom: 3px;
}
.datarow strong {
  font-size: 0.94rem;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.panels2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.empty {
  padding: 22px 10px;
  color: var(--dim);
  text-align: center;
  line-height: 1.55;
  font-size: 0.91rem;
}
.empty .ic {
  display: block;
  margin: 0 auto 8px;
  color: #7b9386;
  width: 25px;
  height: 25px;
}
.empty strong {
  display: block;
  color: #3f5850;
}
.listrow {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.listrow:last-child {
  border-bottom: 0;
}
.listrow > div:first-child {
  min-width: 0;
}
.listrow > * {
  overflow-wrap: anywhere;
}
.badge {
  display: inline-flex;
  border-radius: 6px;
  background: var(--soft);
  padding: 4px 7px;
  color: var(--dim);
  font-size: 0.79rem;
}
.notice,
.error,
.successbox {
  border-radius: 8px;
  background: #edf3ed;
  border: 1px solid #d9e4d8;
  color: #3f5d49;
  padding: 11px 14px;
  line-height: 1.5;
  font-size: 0.9rem;
}
.error {
  background: #fff2ed;
  border-color: #ecc4b8;
  color: #843926;
}
.error:empty,
.modal-feedback:empty {
  display: none;
}
.progress-note {
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--dim);
}
.balance {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.balance strong {
  font-size: 1.04rem;
}
.calendar-group h3 {
  padding: 12px 18px;
  background: #f4f7f2;
  font-size: 0.88rem;
}
.calendar-group .work-row {
  padding: 13px 18px;
}
.calendar-group .work-row > .time {
  min-width: 55px;
  color: #385a47;
  font-weight: 600;
}
.task-pending {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.task-pending:last-child {
  border: 0;
}
.task-pending > div {
  flex: 1;
}
.task-pending.done .rowtitle {
  text-decoration: line-through;
  color: var(--dim);
}
.taskbtn {
  border: 1px solid #a9bcae;
  background: white;
  border-radius: 5px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: none;
}
.taskbtn.checked {
  background: #38684e;
  color: white;
}
.taskbtn .ic {
  width: 16px;
  height: 16px;
}
.money {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
dialog {
  border: 1px solid #d4dfd7;
  border-radius: 16px;
  padding: 0;
  color: var(--ink);
  width: min(610px, calc(100% - 24px));
  max-height: 90dvh;
  box-shadow: 0 20px 80px #102b3450;
}
dialog::backdrop {
  background: #132e35a0;
  backdrop-filter: blur(2px);
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
dialog header h2 {
  font-size: 1.55rem;
}
.dialog-body {
  padding: 19px 22px;
  overflow-y: auto;
}
.dialog-body form {
  display: grid;
  gap: 16px;
}
.form-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.form-section {
  grid-column: 1/-1;
  margin: 6px 0 0;
  color: #2e5142;
  font-size: 0.98rem;
  font-weight: 650;
}
.form-section:not(:first-child) {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
details summary {
  cursor: pointer;
  font-weight: 650;
}
details .formgrid {
  margin-top: 12px;
}
.stack {
  display: grid;
  gap: 11px;
}
.search-results button {
  width: 100%;
  background: white;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.search-results button:hover {
  background: var(--soft);
}
.boot {
  display: grid;
  justify-content: center;
  padding: 20vh 24px;
  text-align: center;
  color: var(--dim);
}
.boot b {
  font:
    36px "DM Serif Text",
    Georgia,
    serif;
  color: var(--green);
}
#toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  z-index: 18;
}
.toast {
  padding: 12px 18px;
  background: #214a41;
  color: white;
  box-shadow: var(--shadow);
  border-radius: 8px;
  margin-top: 8px;
}
.toast.bad {
  background: #8b4636;
}
.card-note {
  padding: 14px 18px;
  background: #f3f6ef;
  border-left: 3px solid #a5b794;
  border-radius: 6px;
}
.bignum {
  font-size: 1.55rem;
  font-weight: 620;
  letter-spacing: -0.04em;
}
.hidden {
  display: none !important;
}
.datebadge {
  color: #566c5c;
}
.data-table a {
  color: var(--ink);
  text-decoration: none;
}
.data-table a:hover {
  text-decoration: underline;
}
.ghost-date {
  font-size: 0.8rem;
  margin-top: 4px;
}
.sectionbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.screen-only {
  display: initial;
}
@media (min-width: 1500px) {
  .shell {
    grid-template-columns: 258px minmax(0, 1fr);
  }
  .stat {
    min-height: 145px;
  }
  .panel-head {
    padding-top: 22px;
    padding-bottom: 20px;
  }
  .data-table th,
  .data-table td {
    padding: 14px 20px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(215px, 0.9fr);
    gap: 12px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 14px 12px;
  }
  .data-table th,
  .data-table td {
    padding: 10px;
  }
  .hide-md {
    display: none;
  }
  .panel-head {
    padding: 16px 13px;
  }
  .panel-body {
    padding: 0 13px 14px;
  }
  .tab {
    font-size: 0.87rem;
  }
}
@media (max-width: 900px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    width: 240px;
    transform: translateX(-105%);
    transition: transform 0.16s;
  }
  .shell.nav-open .sidebar {
    transform: translateX(0);
  }
  .shell.nav-open .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #10292f63;
    border: 0;
    z-index: 7;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    min-height: 56px;
  }
  .content {
    padding-top: 24px !important;
  }
  .stats {
    gap: 10px;
  }
  .brandword {
    font-size: 30px;
  }
}
@media (max-width: 660px) {
  main.content {
    padding: 20px 14px 36px;
  }
  .topbar {
    padding: 8px 12px;
  }
  .crumb {
    gap: 6px;
  }
  .crumb > .ic,
  .crumb > .parent {
    display: none;
  }
  .utility {
    gap: 5px;
  }
  .searchbtn span {
    display: none;
  }
  .page-head {
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 17px;
  }
  .page-head .btn {
    font-size: 0.82rem;
    padding: 8px 10px;
    white-space: nowrap;
    min-height: 38px;
  }
  .page-head h1 {
    font-size: 2.25rem;
  }
  .eyedate {
    font-size: 0.78rem;
  }
  .subtext {
    font-size: 0.86rem;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 15px;
  }
  .stat {
    min-height: 112px;
  }
  .stat-value {
    font-size: 1.8rem;
  }
  .dashboard-grid,
  .panels2 {
    grid-template-columns: 1fr;
  }
  .stat-top {
    font-size: 0.81rem;
  }
  .stat-foot {
    font-size: 0.76rem;
  }
  .data-table th,
  .data-table td {
    padding: 10px 8px;
  }
  .hide-sm {
    display: none;
  }
  .tabs {
    gap: 9px;
  }
  .avatar {
    height: 31px;
    flex-basis: 31px;
  }
  .person {
    gap: 7px;
  }
  .pill {
    font-size: 0.73rem;
  }
  .formgrid {
    gap: 11px;
  }
  .formgrid .field {
    min-width: 0;
  }
  .dialog-body {
    padding: 15px;
  }
  .panel-head h2 {
    font-size: 1.35rem;
  }
  .stats.three .stat:last-child {
    grid-column: 1/-1;
  }
  .filters {
    padding: 10px;
  }
  .filters select {
    max-width: 46%;
  }
  .actions {
    gap: 5px;
  }
  .sectionbar {
    align-items: flex-start;
  }
}
@media (max-width: 410px) {
  .modechip {
    font-size: 0.75rem;
    padding: 6px;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .formgrid,
  .detailgrid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 7px;
  }
  .page-head h1 {
    font-size: 2.1rem;
  }
  .data-table .avatar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.module-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  background: #edf3e9;
  padding: 15px;
  margin: 0 0 12px;
  color: #355848;
}
.module-feature strong {
  display: block;
  font-size: 0.96rem;
}
.module-feature p {
  color: #546b59;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 4px;
}
.feature-icon {
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: #dbe7d6;
  color: #426746;
  display: grid;
  place-items: center;
}
.feature-icon .ic {
  width: 22px;
  height: 22px;
}
.stats.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sidebar .brand img {
  border: 1px solid #72908566;
  border-radius: 10px;
}
@media (max-width: 660px) {
  .stats.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* RitoSuite · Apple-inspired light interface. Screen only: document printing is unchanged. */
@media screen {
  :root {
    --ink:#202124; --dim:#656971; --green:#216b60; --dark:#184843;
    --line:#e3e5e8; --soft:#f4f5f7; --shadow:0 12px 36px rgba(22,32,42,.07);
    background:#f5f5f7;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","DM Sans",sans-serif;
    -webkit-font-smoothing:antialiased;
  }
  .sidebar {
    background:linear-gradient(160deg,#fbfcfc,#eff2f3);
    color:#26292c; border-right:1px solid #dfe3e6;
    padding-top:27px;
  }
  .brand {color:#212528;gap:10px}
  .brandword {font:650 26px/1.05 -apple-system,BlinkMacSystemFont,"Segoe UI","DM Sans",sans-serif;letter-spacing:-1.1px}
  .brandword span {color:#216b60}
  .sidebar .brand img{border:0;box-shadow:0 3px 9px #18484329}
  .nav-label {color:#71767d;font-size:.69rem;letter-spacing:.075em;font-weight:650}
  .navbtn {color:#41464d;border-radius:10px;gap:10px;padding:10px 12px;font-weight:500}
  .navbtn .ic {color:#59686b;stroke-width:1.75}
  .navbtn:hover {background:#e6ebed}
  .navbtn.current {color:#185b51;background:#dbece6;font-weight:650}
  .navbtn.current .ic {color:#185b51}
  .navbtn.current:before {display:none}
  .account {color:#252a2e;border-color:#dce1e4}
  .account small {color:#646a73}
  .account-mark {border:1px solid #dce6e2;background:#e5efeb;color:#22685e;border-radius:11px}
  .topbar {background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
  h1,.display {font:680 clamp(2rem,3vw,3rem)/1.12 -apple-system,BlinkMacSystemFont,"Segoe UI","DM Sans",sans-serif;letter-spacing:-.045em}
  h2 {font:650 1.24rem/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI","DM Sans",sans-serif;letter-spacing:-.024em}
  .eyedate {color:#626970;font-weight:500}
  .stat,.panel {border:1px solid #e7e8eb;border-radius:19px;box-shadow:0 3px 14px rgba(22,32,42,.035)}
  .stat {gap:10px}
  .stat-value {font:650 clamp(1.8rem,2.6vw,2.55rem)/1.08 -apple-system,BlinkMacSystemFont,"Segoe UI","DM Sans",sans-serif;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
  .stat-top {color:#51565d;font-weight:550}
  .stat:hover {border-color:#bfcec9;box-shadow:0 6px 18px rgba(22,32,42,.055)}
  .tileicon {border-radius:10px;width:33px;height:33px}
  .tone0 {background:#e5f2eb;color:#276c57}
  .tone1 {background:#fff1dc;color:#875a20}
  .tone2 {background:#e8f1fb;color:#345e91}
  .tone3 {background:#f1eafa;color:#74508a}
  .panel-foot {background:#fbfbfc}
  .data-table th {background:#f6f6f8;color:#646970;font-weight:600}
  .data-table th,.data-table td {border-bottom-color:#ececef}
  .data-table tbody tr[data-open]:hover {background:#f5f8f7}
  .avatar,.dateblock {border-radius:11px}
  .dateblock {background:#f5f5f7;border-color:#e4e6e9}
  .person small,.cell-sub {color:#686d75}
  .btn,.searchbtn,.iconbtn,.modechip {border-radius:11px;transition:background .14s,border-color .14s,box-shadow .14s}
  .btn {border-color:#dfe2e6;color:#30383b}
  .btn.primary {background:#216b60;border-color:#216b60;box-shadow:0 2px 7px #216b6022;color:#fff}
  .btn.primary:hover {background:#195b51}
  .searchbtn,.iconbtn {background:#f5f5f7;color:#555b62;border-color:#e7e8eb}
  .modechip {background:#e6f0e9;color:#28644d}
  input,select,textarea {border-radius:10px;border-color:#d9dde2;background-color:#fbfbfc}
  input:focus,select:focus,textarea:focus {border-color:#216b60;background-color:white}
  input[type="checkbox"] {accent-color:#216b60}
  .tabs {gap:16px;border-color:#e2e4e8}
  .tab.active {color:#216b60;border-color:#216b60}
  dialog {border-radius:22px;border-color:#e2e5e9;box-shadow:0 24px 80px #18232b33;background:#fff}
  dialog::backdrop {background:#2229325c;backdrop-filter:blur(5px)}
  .notice,.error,.successbox,.toast,.card-note,.module-feature {border-radius:12px}
  .boot b {font:650 35px -apple-system,BlinkMacSystemFont,"Segoe UI","DM Sans",sans-serif}
  button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {outline:3px solid #58a296;outline-offset:3px}
}
@media screen and (max-width:900px) {
  .sidebar {box-shadow:12px 0 32px #18232b1a}
}
@media screen and (max-width:660px) {
  .page-head h1 {font-size:1.95rem}
  .stat-value {font-size:1.7rem}
  .stat,.panel {border-radius:16px}
  .panel-head h2 {font-size:1.12rem}
}
@media (prefers-reduced-motion:reduce) {
  .btn,.searchbtn,.iconbtn,.modechip {transition:none}
}

@media screen{.sidebar .brand img{width:44px;height:44px;flex:none;border:0;box-shadow:none;border-radius:0}.brandword{color:#123f38;letter-spacing:-1px}.brandword span{color:inherit}.boot-mark{width:64px;height:64px;margin:0 auto 15px}}

@media screen{.archive-group-title{font-size:13px;font-weight:650;color:var(--dim);margin:18px 0 8px}.archive-group-title:first-child{margin-top:0}}


/* RitoSuite Heritage · visual layer only. No changes to printed documents. */
@media screen {
  :root{
    --ink:#24352f;--dim:#5d6862;--green:#174b40;--dark:#123f38;
    --line:#e0ded6;--soft:#f6f4ef;--sage:#e4eee7;--sand:#f3ead8;
    --shadow:0 6px 24px rgba(43,54,43,.055);
    --heritage-gold:#a9844d;--heritage-paper:#f7f5f0;
    background:var(--heritage-paper);
  }
  .sidebar{background:#123f38;color:#f8f5ee;border-right:1px solid #0e352e;padding-top:28px}
  .brand{color:#fff9ed;gap:10px}
  .brandword,.brandword span{color:#fff9ed}
  .brandword{font:400 28px/1.05 "DM Serif Text",Georgia,serif;letter-spacing:-.8px}
  .sidebar .brand img{width:44px;height:44px;border:0;box-shadow:none}
  .nav-label{color:#c6d3ca;font-size:.69rem;letter-spacing:.11em}
  .navbtn,.navbtn .ic{color:#e0e8e1}
  .navbtn:hover{background:#ffffff10}
  .navbtn.current{background:#ffffff17;color:#fff9ed}
  .navbtn.current .ic{color:#ead1a3}
  .navbtn.current:before{display:block;background:#d8b47b;width:3px}
  .account{color:#fff9ed;border-color:#ffffff26}
  .account small{color:#c7d4cb}
  .account-mark{background:#28584b;border-color:#547b6e;color:#f3dba8}
  .topbar{background:rgba(250,249,245,.93);border-color:var(--line)}
  main.content{padding-top:34px}
  .page-head{margin-bottom:28px}
  h1,.display{font:400 clamp(2.15rem,3.2vw,3.3rem)/1.12 "DM Serif Text",Georgia,serif;letter-spacing:-.036em}
  h2{font:650 1.24rem/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI","DM Sans",sans-serif;letter-spacing:-.023em}
  .eyedate{color:#52695d;font-size:.79rem;letter-spacing:.01em}
  .stat,.panel{border-color:var(--line);border-radius:16px;box-shadow:var(--shadow)}
  .stat{gap:10px;min-height:132px}
  .stat-top{color:#4e5e55}
  .stat-value{color:#233b31;font-variant-numeric:tabular-nums}
  .tone0{background:#e5efe8;color:#285c47}
  .tone1{background:#f4ead7;color:#76561d}
  .tone2{background:#e9eef1;color:#496375}
  .tone3{background:#efebe6;color:#685748}
  .panel-head{border-bottom:1px solid var(--line);margin-bottom:12px}
  .panel-head + .table-scroll{margin-top:-12px}
  .panel-foot,.data-table th,.calendar-group h3{background:#faf8f3}
  .data-table th{color:#5c685f;letter-spacing:.015em}
  .data-table th,.data-table td,.agenda-row,.work-row{border-bottom-color:#e9e6df}
  .data-table tbody tr[data-open]:hover{background:#f5f4ee}
  .dateblock{background:#f6f3ec;border-color:#e3ded2}
  .btn,.searchbtn,.iconbtn,.modechip{border-radius:10px}
  .btn{border-color:#d8dcd4;color:#244b3e}
  .btn.primary{background:#174b40;border-color:#174b40;color:white;box-shadow:0 2px 6px #174b4024}
  .btn.primary:hover{background:#103d34}
  .searchbtn,.iconbtn{background:#f9f8f4;border-color:var(--line);color:#475a50}
  .modechip{background:#e8efe7;color:#315746;border-color:#dce5da}
  .textbtn{color:#245b48}
  input,select,textarea{background-color:#fcfbf8;border-color:#d9dcd4}
  input:focus,select:focus,textarea:focus{border-color:#347261;background-color:#fff}
  input[type="checkbox"]{accent-color:#174b40}
  .tabs{border-color:var(--line)}
  .tab.active{color:#174b40;border-color:#a9844d}
  .step-no{background:#f3ead8;color:#785b2a}
  .workflow-row{border-color:var(--line)}
  .archive-group-title{color:#596b61;letter-spacing:.045em}
  .doc-preview{background:#faf9f5;border:1px solid var(--line);border-radius:10px;padding:14px}
  dialog{border-color:#deded5;border-radius:19px;box-shadow:0 24px 80px #172f2940}
  dialog::backdrop{background:#142d2966;backdrop-filter:blur(4px)}
  .boot b{font:400 38px "DM Serif Text",Georgia,serif;color:#174b40}
  button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #438a76;outline-offset:3px}
}
@media screen and (max-width:900px){.sidebar{box-shadow:12px 0 32px #123f3833}}
@media screen and (max-width:660px){main.content{padding-top:22px!important}.page-head{margin-bottom:18px}.page-head h1{font-size:2rem}.stat{min-height:112px}.stat,.panel{border-radius:14px}.panel-head h2{font-size:1.12rem}.doc-preview{padding:10px}}
