/* Sanctuary Estate brand fonts, self-hosted so the app shell works offline. */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/cinzel.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/cormorant-garamond.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/jost.woff2') format('woff2');
}
:root {
  font-family:
    Jost,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #0a2c33;
  background: #f4ede0;
  font-synthesis: none;
  font-size: 16px;
  --green: #0e3a43;
  --teal-deep: #0a2c33;
  --ivory: #f4ede0;
  --gold: #c9a24e;
  --bronze: #6e5314;
  --mid: #3c6e5c;
  --muted: #6f6b5e;
  --line: #e4decf;
  --paper: #fbf7ef;
  --sage: #e2e6de;
  --amber: #6e5314;
  --red: #7c2d2a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #c9a24e;
  outline-offset: 3px;
}
button {
  border: 0;
}
button svg {
  flex-shrink: 0;
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--green);
  color: #f4ede0;
  padding: 35px 22px 24px;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
/* Wordmark: the engraved S seal + "The Sanctuary Estate" in Cinzel, always on one line. */
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-family: Cinzel, 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand svg.seal {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.sidebar .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 0 7px;
  margin-bottom: 44px;
}
.sidebar .brand svg.seal {
  width: 56px;
  height: 56px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.navbtn {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 49px;
  padding: 12px 15px;
  background: none;
  color: inherit;
  text-align: left;
  border-radius: 8px;
  font-size: 15px;
}
.navbtn.active {
  background: #1f525c;
  color: #fbf7ef;
}
.navbtn:hover {
  background: #174852;
}
.navbtn .count {
  margin-left: auto;
  background: #c9a24e;
  color: #0e3a43;
}
.sidebar-foot {
  margin-top: auto;
  padding: 24px 7px 0;
  border-top: 1px solid #2c5a64;
  display: grid;
  gap: 14px;
}
.identity {
  display: flex;
  gap: 11px;
  align-items: center;
}
.avatar {
  width: 37px;
  height: 37px;
  display: inline-grid;
  place-items: center;
  background: #f3ead7;
  color: #1f5b6a;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.identity small {
  display: block;
  color: #cecbc2;
  font-size: 12px;
  margin-top: 4px;
}
.text-button {
  background: none;
  color: inherit;
  padding: 5px 0;
  text-align: left;
}
.foot-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #e8decb;
  font-size: 13px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #fcfaf6;
  gap: 12px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 14px;
}
.breadcrumb span {
  margin: 0 11px;
  color: #5d96a4;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.connection {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #406872;
}
.connection:before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #436d78;
}
.connection.offline:before {
  background: #c48e23;
}
.iconbutton {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border-radius: 8px;
  color: var(--green);
  position: relative;
}
.iconbutton:hover {
  background: #f3ead9;
}
.notification-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ba8721;
  right: 10px;
  top: 7px;
}
.mobile-brand,
.menu-toggle,
.mobile-nav {
  display: none;
}
.content {
  padding: 39px 42px 50px;
  max-width: 1480px;
  margin: auto;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #436d78;
  font-size: 11px;
  font-weight: 650;
  margin: 0 0 9px;
}
h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-weight: 400;
  font-size: 39px;
  line-height: 1.15;
  letter-spacing: -1.1px;
  margin: 0 0 10px;
}
h2 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 7px;
}
p {
  line-height: 1.55;
}
.muted {
  color: var(--muted);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border-radius: 7px;
  background: #fbf7ef;
  border: 1px solid #e9dec9;
  color: #1a4c59;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  white-space: normal;
}
.btn:hover {
  background: #f6f0e4;
}
.btn.primary {
  background: var(--green);
  color: #fbf7ef;
  border-color: var(--green);
}
.btn.primary:hover {
  background: #1b4f5c;
}
.btn.danger {
  color: var(--red);
  border-color: #ecc8c7;
  background: #fbf7ef;
}
.btn.subtle {
  background: transparent;
  border-color: transparent;
}
.btn.wide {
  width: 100%;
}
.btn.small {
  padding: 7px 10px;
  min-height: 36px;
  font-size: 13px;
}
.summary-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 11px;
  padding: 24px 28px;
  background: #e2e6de;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.summary-banner .summary-copy {
  max-width: 70%;
}
.summary-banner h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-weight: 400;
  font-size: 23px;
  margin-bottom: 7px;
}
.summary-banner p {
  margin: 0;
  font-size: 14px;
  color: #375a62;
}
.summary-progress {
  width: 210px;
  max-width: 35%;
  flex-shrink: 0;
}
.summary-progress strong {
  font-weight: 500;
  font-size: 13px;
  display: block;
  margin-bottom: 10px;
  text-align: right;
}
.progress {
  height: 6px;
  background: #d9d7d0;
  border-radius: 20px;
  overflow: hidden;
}
.progress > span {
  display: block;
  background: #375a63;
  height: 100%;
  border-radius: 20px;
  transition: width 0.2s;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px;
  background: #fbf7ef;
  margin-bottom: 27px;
}
.day-button {
  background: transparent;
  min-height: 66px;
  color: #426a75;
  border-radius: 6px;
  display: grid;
  place-content: center;
  gap: 6px;
}
.day-button small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.day-button strong {
  font-size: 17px;
  color: #1a4d5a;
  font-weight: 550;
}
.day-button.active {
  background: var(--green);
  color: #e8dcc5;
}
.day-button.active strong {
  color: white;
}
.day-button.is-today:not(.active) {
  background: #f6efe2;
}
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.panel {
  background: #fbf7ef;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-header {
  padding: 21px 23px;
  border-bottom: 1px solid #f2ebdd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}
.panel-header .icon {
  width: 18px;
  color: #426b75;
}
.count {
  background: #f6f1e8;
  color: #446e79;
  border-radius: 5px;
  font-size: 11px;
  padding: 3px 7px;
  min-width: 22px;
  text-align: center;
}
.task-row {
  padding: 20px 22px;
  border-bottom: 1px solid #f5efe3;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.task-row:last-child {
  border-bottom: 0;
}
.check {
  width: 23px;
  height: 23px;
  margin-top: 2px;
  border: 1.5px solid #c8c5bb;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #fbf7ef;
  color: #fbf7ef;
  flex-shrink: 0;
  padding: 0;
}
.check.done {
  background: #385b64;
  border-color: #385b64;
}
.check svg {
  width: 16px;
  height: 16px;
}
.task-open {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.task-title {
  font-size: 15px;
  font-weight: 550;
  line-height: 1.45;
  margin-bottom: 8px;
}
.task-row.is-done .task-title {
  color: #4a7883;
  text-decoration: line-through;
  text-decoration-color: #c6c3b9;
}
.task-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: #4c7b86;
}
.task-meta .icon {
  width: 12px;
  height: 12px;
}
.pill {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border-radius: 4px;
  padding: 4px 7px;
  line-height: 1.2;
  font-size: 11px;
  font-weight: 550;
  background: #f7f2e9;
  color: #436d78;
}
.pill.done {
  background: #f5eddd;
  color: #267184;
}
.pill.help {
  background: #fbeccf;
  color: #996f1b;
}
.pill.overdue {
  background: #f5e2e2;
  color: #af3e3a;
}
.assignee-mini {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #4b7a86;
}
.assignee-mini .avatar {
  width: 21px;
  height: 21px;
  font-size: 8px;
}
.task-chevron {
  color: #aca799;
  align-self: center;
}
.task-chevron .icon {
  width: 16px;
}
.panel-footer {
  padding: 12px 21px;
  border-top: 1px solid #f5efe3;
  background: #fefdfb;
}
.panel-footer button {
  font-size: 13px;
  color: #426a75;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  min-height: 30px;
}
.notice {
  margin-top: 24px;
  border: 1px solid #e8d9bc;
  background: #fcf6eb;
  border-radius: 8px;
  padding: 17px 21px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.notice .icon {
  color: #b88520;
  flex-shrink: 0;
}
.notice strong {
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.notice p {
  font-size: 13px;
  margin: 0;
  color: #a7791e;
}
.notice button {
  margin-left: auto;
  flex-shrink: 0;
}
.empty {
  padding: 32px 22px;
  color: #497682;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.empty .icon {
  display: block;
  margin: 0 auto 10px;
  width: 26px;
  height: 26px;
  color: #568b98;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.toolbar-left {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid var(--line);
  background: #fbf7ef;
  border-radius: 6px;
  padding: 8px 13px;
  color: #406872;
  font-size: 13px;
  min-height: 38px;
}
.filter.active {
  background: #f4ebda;
  border-color: #d8d6d0;
  color: #1c5360;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.project-card {
  background: #fbf7ef;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  text-align: left;
  color: inherit;
  min-height: 242px;
}
.project-card:hover {
  border-color: #5c94a3;
  box-shadow: 0 4px 16px #0f2c330b;
}
.project-card .project-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 8px;
  background: #f6efe2;
  margin-bottom: 23px;
  color: #416973;
}
.project-card h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 10px 0 9px;
}
.project-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
}
.project-card .progress {
  margin: 12px 0;
}
.project-card footer {
  margin-top: auto;
  padding-top: 20px;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.small-text {
  font-size: 12px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: #fbf7ef;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}
.calendar-day {
  min-height: 245px;
  border-right: 1px solid var(--line);
  padding: 12px 9px;
}
.calendar-day:last-child {
  border: 0;
}
.calendar-day.selected {
  background: #f8f2e6;
}
.calendar-day > button {
  display: grid;
  gap: 5px;
  place-items: center;
  width: 100%;
  background: none;
  color: #256e80;
  padding: 5px 0 16px;
}
.calendar-day strong {
  font-size: 22px;
  font-weight: 500;
}
.calendar-day small {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
}
.calendar-task {
  display: block;
  width: 100%;
  padding: 9px 8px;
  margin-bottom: 7px;
  border-radius: 5px;
  background: #f3ead9;
  color: #1e5867;
  text-align: left;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.calendar-task.oneoff {
  background: #f2eee5;
}
.calendar-task.done {
  opacity: 0.6;
}
.routine-row {
  padding: 19px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #f5efe3;
}
.routine-row:last-child {
  border: 0;
}
.routine-row p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.routine-actions {
  display: flex;
  gap: 8px;
}
.section-label {
  margin: 30px 0 15px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat {
  padding: 21px 24px;
  background: #fbf7ef;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.stat .num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 33px;
  display: block;
  margin: 9px 0;
}
.stat .label {
  font-size: 13px;
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #47737e;
  background: #fcfaf5;
  padding: 15px 22px;
  font-weight: 550;
}
td {
  padding: 18px 22px;
  font-size: 14px;
  border-bottom: 1px solid #f5efe3;
}
tr:last-child td {
  border-bottom: 0;
}
.table-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-user .avatar {
  width: 31px;
  height: 31px;
  font-size: 11px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 28px;
}
.report-grid .panel-header {
  padding: 19px;
}
.report-grid .report-list {
  padding: 0 20px 14px;
}
.report-list p {
  font-size: 14px;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid #f5efe3;
}
.report-list p:last-child {
  border: 0;
}
.report-entry {
  padding: 23px;
  border-bottom: 1px solid var(--line);
}
.report-entry:last-child {
  border: 0;
}
.report-entry h3 {
  margin: 18px 0 6px;
  font-size: 13px;
}
.report-entry p {
  font-size: 14px;
  margin: 0;
  white-space: pre-wrap;
}
.activity-row {
  display: flex;
  gap: 15px;
  padding: 23px;
  border-bottom: 1px solid #f5efe3;
}
.activity-row.unread {
  background: #faf6ed;
}
.activity-row:last-child {
  border: 0;
}
.activity-row p {
  font-size: 14px;
  margin: 7px 0;
  white-space: pre-wrap;
}
.activity-row .activity-body {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.offline-banner,
.demo-bar {
  background: #f4ebda;
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #256d7f;
}
.demo-bar {
  background: #f0e4cd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}
.demo-bar button {
  background: transparent;
  text-decoration: underline;
  color: #1d5563;
  font-size: 12px;
  padding: 0;
}
.error-banner {
  background: #f7e8e8;
  color: #8f3330;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 0 0 20px;
  font-size: 14px;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 30px 18px;
  background: #f8f2e7;
}
.login-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.login-card .brand {
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  margin-bottom: 40px;
  color: var(--green);
}
.login-card .brand svg.seal {
  width: 84px;
  height: 84px;
}
.login-card h1 {
  font-family: inherit;
  letter-spacing: 0;
  font-size: 20px;
  font-weight: 550;
  margin-bottom: 10px;
}
.login-card > p {
  font-size: 14px;
  color: #4b7985;
  margin-bottom: 25px;
}
.pin-input {
  width: 100%;
  height: 65px;
  font-size: 28px;
  letter-spacing: 20px;
  text-align: center;
  padding-left: 20px;
  background: #fbf7ef;
  border: 1px solid #ebdfc6;
  border-radius: 8px;
  color: #1d5563;
  margin: 8px 0 25px;
}
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 20px;
}
.keypad button {
  height: 64px;
  border-radius: 8px;
  background: #f2e9d8;
  font-size: 25px;
  color: #174450;
}
.keypad button:hover {
  background: #d9d7d1;
}
.login-card .btn.primary {
  height: 52px;
}
.login-note {
  font-size: 12px;
  color: #4c7b87;
  margin-top: 25px;
  line-height: 1.7;
}
.login-demo {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.login-demo p {
  font-size: 12px;
  color: #3f6670;
  margin: 0 0 6px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #0a2c3366;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  backdrop-filter: blur(2px);
}
.drawer {
  background: #fdfcf9;
  width: 520px;
  max-width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 50px #0c252b12;
}
.drawer-header {
  padding: 22px 27px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fbf7ef;
}
.drawer-header h2 {
  font-size: 19px;
}
.drawer-content {
  padding: 26px 28px;
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}
.drawer-content h1 {
  font-size: 28px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  margin-top: 14px;
}
.drawer-content .instructions {
  font-size: 15px;
  color: #3d636d;
  white-space: pre-wrap;
}
.drawer-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 26px;
}
.drawer-section h3 {
  margin-bottom: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  min-width: 0;
}
.field > span,
.field > label {
  font-size: 13px;
  color: #385b64;
  font-weight: 550;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d9d7d1;
  border-radius: 6px;
  padding: 12px;
  background: #fbf7ef;
  color: #194b58;
  min-height: 45px;
  min-width: 0;
  font-size: 15px;
}
.field textarea {
  min-height: 94px;
  resize: vertical;
  line-height: 1.5;
}
.field small {
  font-size: 12px;
  color: #487480;
  line-height: 1.5;
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.form-actions > .primary {
  flex: 1;
}
.check-group {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.check-option {
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 11px;
  background: white;
  min-height: 42px;
}
.check-option input {
  accent-color: #205e6e;
  width: 17px;
  height: 17px;
  margin: 0;
}
.comment {
  background: #f7f1e4;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
}
.comment p {
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
}
.comment header {
  font-size: 12px;
  color: #3c626b;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.mentions-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 30px);
  background: #0e3a43;
  color: white;
  padding: 13px 21px;
  border-radius: 8px;
  z-index: 100;
  box-shadow: 0 8px 30px #10303822;
  font-size: 14px;
  line-height: 1.5;
}
.loading {
  padding: 80px;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 28px;
}
.spaced {
  margin-top: 26px;
}
.hide {
  display: none !important;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.status-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.text-preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.view-link {
  background: none;
  border: 0;
  padding: 0;
  color: #23697a;
  text-decoration: underline;
  text-align: left;
  font-size: 13px;
}
.deleted {
  opacity: 0.6;
}
.pending-dot {
  color: #b38220;
}
.sync-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid #ebd6ac;
  border-radius: 7px;
  margin-bottom: 13px;
  background: #fffaef;
  font-size: 13px;
}
.week-label {
  font-size: 16px;
  font-weight: 550;
}
.report-meta {
  font-size: 12px;
  color: #446f79;
}
.overdue-panel {
  margin-top: 24px;
}
.footer-note {
  margin-top: 28px;
  font-size: 12px;
  color: #518491;
  text-align: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.login-error {
  color: #a23a36;
  font-size: 14px;
  min-height: 20px;
}
.drawer .empty {
  padding: 20px 0;
}
.mobile-overlay {
  display: none;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 48px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 15px 22px;
  }
  .content {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .calendar-task {
    font-size: 10px;
  }
  .calendar-day {
    padding: 10px 5px;
  }
  .task-row {
    padding: 17px;
  }
  .panel-header {
    padding: 18px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    width: 260px;
    left: -270px;
    z-index: 45;
    transition: left 0.2s;
    height: 100dvh;
  }
  .sidebar.open {
    left: 0;
  }
  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #0a2c3366;
    z-index: 44;
  }
  .topbar {
    height: 71px;
    padding: 0 17px;
    background: #fcf9f4;
  }
  .mobile-brand {
    display: flex;
    font-size: 11px;
    gap: 8px;
  }
  .mobile-brand svg.seal {
    width: 30px;
    height: 30px;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .breadcrumb {
    display: none;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions .connection {
    display: none;
  }
  .top-actions > .avatar {
    display: none;
  }
  .content {
    padding: 26px 18px 104px;
  }
  .page-head {
    margin-bottom: 22px;
    align-items: flex-start;
    gap: 12px;
  }
  h1 {
    font-size: 33px;
  }
  .page-head p {
    font-size: 14px;
  }
  .page-head > .btn {
    font-size: 12px;
    padding: 10px 12px;
    min-height: 40px;
  }
  .page-head > .btn .icon {
    width: 15px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.7px;
  }
  .summary-banner {
    padding: 21px;
    display: block;
    margin-bottom: 20px;
  }
  .summary-banner .summary-copy {
    max-width: none;
  }
  .summary-banner h2 {
    font-size: 22px;
  }
  .summary-banner p {
    font-size: 13px;
  }
  .summary-progress {
    width: 100%;
    max-width: none;
    margin-top: 18px;
  }
  .summary-progress strong {
    text-align: left;
    font-size: 12px;
  }
  .week-strip {
    margin-bottom: 21px;
    padding: 5px;
    gap: 2px;
  }
  .day-button {
    min-height: 58px;
  }
  .day-button small {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .day-button strong {
    font-size: 16px;
  }
  .section-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .task-row {
    padding: 20px;
  }
  .task-title {
    font-size: 16px;
  }
  .task-meta {
    font-size: 12px;
  }
  .check {
    width: 26px;
    height: 26px;
  }
  .panel-header {
    padding: 19px 20px;
  }
  .panel-header h2 {
    font-size: 17px;
  }
  .task-row .check {
    position: relative;
  }
  .task-row .check:after {
    content: '';
    position: absolute;
    inset: -9px;
  }
  .task-open {
    padding-left: 2px;
  }
  .notice {
    padding: 17px;
    gap: 11px;
    align-items: flex-start;
  }
  .notice p {
    font-size: 12px;
  }
  .notice > .btn {
    padding: 4px;
    min-width: 30px;
    font-size: 11px;
  }
  .notice strong {
    font-size: 13px;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: #fdfbf8;
    border-top: 1px solid #ece0c9;
    z-index: 30;
    padding: 9px 6px max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px #0e2a3105;
  }
  .mobile-nav button {
    display: grid;
    gap: 5px;
    place-items: center;
    background: none;
    color: #4a7984;
    font-size: 10px;
    min-height: 43px;
    min-width: 56px;
  }
  .mobile-nav button.active {
    color: var(--green);
    font-weight: 650;
  }
  .mobile-nav .icon {
    width: 21px;
    height: 21px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .project-card {
    min-height: 210px;
    padding: 22px;
  }
  .project-card .project-icon {
    margin-bottom: 13px;
  }
  .project-card h2 {
    font-size: 19px;
  }
  .project-card p {
    font-size: 14px;
  }
  .project-card footer {
    padding-top: 10px;
  }
  .calendar-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .calendar-day {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 7px;
    padding: 12px;
  }
  .calendar-day > button {
    grid-row: 1 / span 20;
    padding: 0;
    align-self: start;
    gap: 4px;
  }
  .calendar-day strong {
    font-size: 20px;
  }
  .calendar-day small {
    font-size: 10px;
  }
  .calendar-task {
    font-size: 13px;
    margin: 0;
    padding: 12px;
  }
  .calendar-day .empty {
    padding: 7px;
    font-size: 12px;
    text-align: left;
  }
  .admin-stats {
    gap: 9px;
  }
  .stat {
    padding: 15px 12px;
  }
  .stat .label {
    font-size: 11px;
  }
  .stat .num {
    font-size: 28px;
  }
  .stat .small-text {
    font-size: 10px;
  }
  .table-scroll table {
    min-width: 620px;
  }
  th,
  td {
    padding: 15px;
  }
  .routine-row {
    padding: 17px;
    align-items: flex-start;
  }
  .routine-row h3 {
    font-size: 15px;
  }
  .routine-row p {
    font-size: 12px;
  }
  .routine-actions {
    flex-direction: column;
  }
  .drawer-header {
    padding: 18px 20px;
  }
  .drawer-content {
    padding: 20px;
  }
  .drawer {
    width: 100%;
  }
  .drawer-content h1 {
    font-size: 28px;
  }
  .drawer .btn {
    min-height: 46px;
  }
  .drawer .field input,
  .drawer .field select,
  .drawer .field textarea {
    font-size: 16px;
  }
  .toast {
    bottom: 88px;
  }
  .week-label {
    font-size: 14px;
  }
  .report-grid {
    gap: 15px;
  }
  .report-entry {
    padding: 19px;
  }
  .btn {
    min-height: 44px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar-left {
    gap: 6px;
  }
  .filter {
    padding: 9px 10px;
    font-size: 12px;
  }
  .form-grid {
    gap: 12px;
  }
  .activity-row {
    padding: 20px 17px;
    gap: 10px;
  }
  .activity-row p {
    font-size: 15px;
  }
  .demo-bar {
    font-size: 11px;
    padding: 7px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 760px) {
  .summary-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
  }
  .summary-banner .summary-copy {
    max-width: 60%;
  }
  .summary-banner h2 {
    font-size: 19px;
    margin-bottom: 4px;
  }
  .summary-progress {
    width: 135px;
    max-width: 40%;
    margin-top: 0;
  }
  .summary-progress strong {
    font-size: 11px;
    text-align: right;
  }
  .summary-banner p {
    font-size: 12px;
  }
}
