@font-face {
  font-family: Inter;
  src: url('/portal/assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Tomorrow;
  src: url('/portal/assets/tomorrow-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #231e1c;
  --muted: #6e625e;
  --paper: #f6f2ef;
  --surface: #fffdfb;
  --line: #e7dfd9;
  --red: #ad1936;
  --red-dark: #891128;
  --tint: #faebed;
  --dark: #201817;
  --display: Tomorrow, Inter, sans-serif;
  font: 15px/1.5 Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
svg { flex: 0 0 auto; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip { position: fixed; inset: 8px auto auto 8px; z-index: 10; padding: 8px 14px; background: var(--surface); transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { display: grid; min-height: 100dvh; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; overflow: auto; padding: 30px 17px 17px; background: var(--sidebar-background); color: var(--sidebar-text); }
.sidebar :focus-visible { outline-color: var(--sidebar-focus); }
.wordmark { display: grid; gap: 8px; justify-items: start; padding: 1px 12px 25px; border-bottom: 1px solid var(--sidebar-divider); }
.wordmark img { display: block; max-width: 100%; height: auto; }
.wordmark span { font-size: 10px; font-weight: 750; letter-spacing: .15em; color: var(--sidebar-link); }
.sidebar nav { margin-top: 24px; }
.nav-label { margin: 0 12px 8px; color: var(--sidebar-muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.nav-link + .nav-label { margin-top: 26px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 8px 11px; margin: 3px 0; border: 1px solid transparent; border-radius: 7px; color: var(--sidebar-link); font-size: 13px; font-weight: 550; }
.nav-link:hover { background: var(--sidebar-hover); color: #fff; }
.nav-link[aria-current] { color: var(--sidebar-text); background: var(--sidebar-active); border-color: var(--sidebar-active-border); }
.nav-link[aria-current] svg { color: var(--sidebar-active-icon); }
.nav-section { margin: 0 0 14px; }
.nav-section > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; gap: 8px; padding: 9px 10px; border-radius: 6px; color: #f4e6de; font-size: 12px; font-weight: 750; list-style: none; }
.nav-section > summary::-webkit-details-marker { display: none; }
.nav-section > summary::after { content: ''; width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(-45deg); }
.nav-section[open] > summary::after { transform: rotate(45deg); }
.nav-section > summary:hover { background: var(--sidebar-hover); }
.nav-project-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px; }
.nav-project-toggle { display: grid; place-items: center; min-width: 36px; min-height: 36px; border: 0; border-radius: 6px; background: transparent; color: var(--sidebar-link); }
.nav-project-toggle:hover { background: var(--sidebar-hover); color: #fff; }
.nav-project-toggle[aria-expanded=true] svg { transform: rotate(90deg); }
.nav-project-type { margin: 2px 0 4px 17px; border-left: 1px solid #574440; }
.nav-project-type summary { cursor: pointer; padding: 7px 8px; color: var(--sidebar-link); font-size: 12px; font-weight: 650; }
.nav-project-type summary:hover, .nav-project-link:hover { color: #fff; background: var(--sidebar-hover); }
.nav-project-type > div { padding: 0 3px 5px 10px; }
.nav-project-link { display: block; padding: 5px 7px; border-radius: 5px; color: #dacac1; font-size: 12px; overflow-wrap: anywhere; }
.nav-project-link[aria-current] { background: var(--sidebar-active); color: #fff; }
.account { display: flex; align-items: center; gap: 10px; padding: 15px 0 1px; margin-top: auto; border-top: 1px solid var(--sidebar-divider); }
.account > div { flex: 1; min-width: 0; }
.account strong, .account small { display: block; overflow-wrap: anywhere; line-height: 1.35; }
.account strong { font-size: 12px; }
.account small { margin-top: 3px; color: var(--sidebar-muted); font-size: 11px; }
.avatar { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; background: var(--sidebar-avatar); color: var(--sidebar-avatar-text); border-radius: 50%; font-size: 11px; font-weight: 800; }
.account .icon-button { color: #e5d9d4; }
.account .icon-button:hover { background: var(--sidebar-hover); color: #fff; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding: 11px clamp(24px, 3.5vw, 54px); background: var(--surface); border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.crumb strong { color: var(--ink); font-weight: 650; }
.workspace-name { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); padding: 5px 10px; border-radius: 20px; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.workspace-name span { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--red); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.activity-bell { position: relative; color: var(--ink); }
.activity-bell > span { position: absolute; top: 1px; right: -3px; padding: 0 4px; border-radius: 9px; background: var(--red); color: white; font-size: 10px; }
.activity-items { list-style: none; padding: 0; margin: 0; }
.activity-items li + li { border-top: 1px solid var(--line); }
.activity-items a { display: grid; gap: 2px; padding: 10px; border-radius: 6px; overflow-wrap: anywhere; }
.activity-items a:hover { background: var(--tint); }
.activity-items small { color: var(--muted); }
.menu-toggle { display: none !important; }
.main { width: min(100%, 1480px); margin-inline: auto; padding: 30px clamp(24px, 3.5vw, 54px) 48px; }
.main:focus { outline: none; }
.hero { display: flex; align-items: center; min-height: 255px; border-radius: 14px; padding: 30px 37px; color: #fff7f5; background: linear-gradient(95deg, #430f1e 0%, #68152a 46%, #74132751 78%, #5d112b22 100%), #8b1b36 url('/portal/assets/brand-pattern.webp') right 47% / cover no-repeat; }
.hero > div { max-width: min(100%, 520px); }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .16em; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; color: #ffd5dc; }
.hero .eyebrow span { width: 7px; height: 7px; border: 1px solid #ffd5dc; transform: rotate(45deg); }
.hero h1, .page-heading h1, .welcome h1 { font: 700 clamp(29px, 4.1vw, 54px)/1.11 var(--display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.hero h1 { margin: 10px 0 8px; }
.hero p:not(.eyebrow) { max-width: 42ch; color: #fff0ef; }
.hero .button { margin-top: 23px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 7px 13px; border-radius: 7px; border: 1px solid transparent; background: transparent; font-size: 12px; font-weight: 700; line-height: 1.3; text-align: center; }
.button.primary { background: var(--red); color: #fff; }
.button.primary:hover { background: var(--red-dark); }
.button.white { background: #fff7f4; color: #69152a; }
.button.white:hover { background: #ffdee5; }
.hero .button:focus-visible { outline-color: #fff; }
.button.outline { border-color: #dfd4ce; background: var(--surface); }
.button.outline:hover { background: #f8f0eb; }
.button.text-button { color: var(--red-dark); justify-content: start; min-height: 30px; padding: 4px 0; }
.button.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-button { display: inline-grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; padding: 0; background: transparent; border: 0; border-radius: 7px; color: var(--muted); }
.icon-button:hover { background: var(--tint); color: var(--red-dark); }
.section-heading { margin: 24px 0 12px; }
.section-heading h2, .card-heading h2 { font-size: 17px; line-height: 1.35; letter-spacing: -.025em; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 16px 17px 15px; }
.stat-label { display: flex; align-items: center; gap: 9px; }
.tile-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 8px; background: var(--tint); color: var(--red-dark); }
.stat-label h2 { font-size: 12px; font-weight: 700; }
.stat-number { margin-top: 9px; font-size: 30px; line-height: 1.2; font-weight: 760; letter-spacing: -.055em; }
.stat-number small { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: normal; }
.stat p { color: var(--muted); font-size: 11px; }
.stat progress { display: block; appearance: none; width: 100%; height: 5px; margin: 8px 0 5px; border: 0; background: #efe5e0; border-radius: 8px; overflow: hidden; }
.stat progress::-webkit-progress-bar { background: #efe5e0; }
.stat progress::-webkit-progress-value { background: var(--red); }
.stat progress::-moz-progress-bar { background: var(--red); }
.dashboard-bottom { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 16px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 17px; border-bottom: 1px solid var(--line); }
.card-heading h2, .task-title, .asset h2 { overflow-wrap: anywhere; }
.card-heading p, .project-description { color: var(--muted); font-size: 12px; }
.empty { display: grid; justify-items: center; gap: 5px; padding: 27px 16px 32px; text-align: center; }
.empty-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 10px; color: #816760; background: #f4ece7; margin-bottom: 4px; }
.empty strong { font-size: 14px; }
.empty p { color: var(--muted); font-size: 12px; }
.empty .button { margin-top: 9px; }
.shortcut { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 13px; padding: 9px 4px; }
.shortcut + .shortcut { border-top: 1px solid var(--line); }
.shortcut:hover { color: var(--red-dark); }
.shortcut strong, .shortcut small { display: block; }
.shortcut strong { font-size: 12px; }
.shortcut small { color: var(--muted); font-size: 11px; }
.shortcut > svg { color: var(--muted); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 6px 0 23px; }
.page-heading h1 { font-size: clamp(28px, 4vw, 44px); }
.page-heading p { margin-top: 9px; color: var(--muted); max-width: 68ch; }
.page-heading .button { flex: 0 0 auto; }
.project-list, .asset-grid { display: grid; gap: 15px; }
.workspace-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 17px; }
.workspace-filters > label:first-child { width: min(360px, 100%); }
.workspace-filters > label + label { min-width: 150px; }
.project-directory h2 { padding: 14px 18px 10px; font-size: 16px; }
.project-directory ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); list-style: none; margin: 0; padding: 0 9px 9px; }
.project-directory li a { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; padding: 9px; border-radius: 7px; }
.project-directory a:hover { background: var(--tint); }
.project-directory small, .task-results .card-heading small { color: var(--muted); }
.project-directory strong, .task-title strong { overflow-wrap: anywhere; }
.project-crumb { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.project-crumb a { text-decoration: underline; }
.task-pagination { display: flex; justify-content: end; align-items: center; gap: 10px; padding: 10px; }
.task-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.task-sidebar { min-width: 0; }
.task-detail { padding: 16px 19px; }
.task-detail h2 { margin-bottom: 14px; font-size: 18px; }
.task-detail h3 { margin-top: 16px; font-size: 13px; }
.task-detail dl { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 0; }
.task-time { grid-column: 1 / -1; padding: 10px 12px; border-radius: 8px; background: #f6eeea; }
.task-time dd { font: 700 24px/1.15 var(--display); }
.task-detail dt { color: var(--muted); font-size: 12px; }
.task-detail dd { margin: 4px 0 0; }
.task-detail p { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-card .task-conversation { min-height: 168px; }
.thread-card .task-comment-form { display: grid; gap: 8px; border-top: 1px solid var(--line); padding: 14px 18px; }
.thread-card .message { max-width: 100%; width: 100%; padding: 10px 12px; justify-self: stretch; }
.task-files { margin-top: 16px; padding: 16px 19px; }
.task-files h2 { font-size: 18px; margin-bottom: 10px; }
.task-files ul { list-style: none; margin: 8px 0 14px; padding: 0; }
.task-files li a { display: inline-flex; align-items: center; gap: 7px; overflow-wrap: anywhere; }
.task-files li a:hover { text-decoration: underline; }
.attachment-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr)); gap: 10px; }
.attachment-gallery li { min-width: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.file-thumbnail { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; padding: 0; background: #f1e9e5; }
.file-thumbnail:focus-visible { outline-offset: -3px; }
.file-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.file-preview-label { position: absolute; right: 7px; bottom: 7px; display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 5px; background: #241819e8; color: #fff; font-size: 10px; }
.file-thumbnail-caption { display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 9px; }
.file-thumbnail-caption span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.task-files .file-thumbnail-caption a { display: inline-grid; }
dialog:has(.file-preview) { width: min(900px, calc(100% - 26px)); }
dialog:has(.file-preview) .dialog-heading h2 { font: 650 17px/1.3 Inter, system-ui, sans-serif; overflow-wrap: anywhere; }
.file-preview { display: grid; place-items: center; overflow: hidden; min-height: 100px; border-radius: 8px; background: #f1e9e5; margin-bottom: 12px; }
.file-preview img { display: block; max-width: 100%; max-height: calc(100dvh - 175px); object-fit: contain; }
.file-preview-error { padding: 16px; color: var(--muted); }
.file-drop { display: grid; place-items: center; gap: 6px; padding: 12px; border: 1px dashed #c79ea8; border-radius: 8px; text-align: center; cursor: pointer; }
.file-drop.drag-target { border-color: var(--red); background: var(--tint); }
.file-drop input { max-width: 100%; padding: 4px; font-size: 12px; }
.file-feedback { max-width: 100%; color: var(--muted); overflow-wrap: anywhere; }
.priority-select { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.priority-select legend { margin-bottom: 4px; font-size: 12px; font-weight: 650; }
.priority-select label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 12px; cursor: pointer; }
.priority-select input { width: auto; min-height: 0; margin: 0; }
.priority-low { background: #e7f1ef; color: #285b4e; }
.priority-medium { background: #fff0d8; color: #7d4700; }
.priority-high { background: #fae3e8; color: #9e1835; }
#brief-suggestion { display: grid; gap: 6px; }
.project-description { margin: 12px 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filter-bar { margin: 0 0 13px; }
.filter-bar label { flex-direction: row; align-items: center; }
.filter-bar select { width: auto; }
.tasks, .messages { list-style: none; margin: 0; padding: 0; }
.task-row { display: flex; align-items: center; gap: 10px; min-height: 53px; padding: 9px 17px; }
.task-row + .task-row { border-top: 1px solid var(--line); }
.task-icon { color: var(--red-dark); }
.task-title { flex: 1; display: block; min-width: 0; border: 0; background: none; padding: 0; text-align: left; font-size: 13px; }
button.task-title:hover strong { color: var(--red-dark); text-decoration: underline; }
.task-title small { display: block; color: var(--muted); font-size: 11px; white-space: pre-wrap; }
.task-date { color: var(--muted); font-size: 11px; }
.badge { padding: 4px 8px; border-radius: 99px; background: #f2ece8; color: #584b44; font-size: 10px; font-weight: 700; text-align: center; }
.badge.in-progress { background: #faf0dc; color: #6b4610; }
.badge.done { background: #e7f1ea; color: #27583a; }
.inline-empty { padding: 18px; color: var(--muted); font-size: 13px; }
.calendar .card-heading h2 { text-transform: capitalize; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 6px 13px 13px; }
.week-day { padding: 7px 8px; font-size: 11px; font-weight: 680; color: var(--muted); }
.calendar-day { display: flex; flex-direction: column; gap: 4px; align-items: start; min-height: 64px; padding: 7px; border: 1px solid var(--line); margin: 0 -1px -1px 0; background: var(--surface); font-size: 12px; text-align: left; }
.calendar-day:hover, .calendar-day[aria-pressed=true] { background: var(--tint); }
.calendar-day[aria-pressed=true] { box-shadow: inset 0 0 0 1px var(--red); }
.calendar-day.outside { color: #746963; background: #f6f0ea; }
.calendar-day.today > span { color: var(--red-dark); font-weight: 800; }
.calendar-day small { color: var(--red-dark); font-size: 10px; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.31fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.calendar-agenda .task-date, .calendar-agenda .task-icon { display: none; }
.calendar-agenda .task-row { gap: 7px; padding-inline: 12px; }
.asset-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }
.asset { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 16px; }
.asset h2 { font-size: 14px; }
.asset p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.asset a { grid-column: 2; justify-self: start; }
.chat { max-width: 920px; }
.chat-team { display: flex; align-items: center; gap: 10px; }
.messages { display: grid; gap: 10px; min-height: 130px; padding: 18px; }
.message { max-width: min(85%, 65ch); padding: 9px 12px; border-radius: 9px; background: #f2ebe6; }
.message.sent { justify-self: end; background: var(--tint); }
.message.received { justify-self: start; }
.message strong { font-size: 12px; }
.message time { color: var(--muted); font-size: 10px; }
.message p { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-form { padding: 16px 18px; border-top: 1px solid var(--line); }
.message-form .button { margin-top: 9px; }
.connector-url { display: flex; align-items: end; gap: 9px; padding: 16px; }
.connector-url label { flex: 1; min-width: 0; }
.connector-url input { font-family: ui-monospace, monospace; font-size: 12px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 650; }
label small { color: var(--muted); }
input, textarea, select { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid #dcd1ca; border-radius: 7px; background: var(--surface); font-size: 14px; font-weight: 450; }
textarea { resize: vertical; }
dialog { width: min(485px, calc(100% - 26px)); max-height: calc(100dvh - 30px); padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: #24181999; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dialog-heading h2 { font: 700 23px/1.2 var(--display); }
dialog form { display: grid; gap: 11px; }
dialog form > p { color: var(--muted); font-size: 13px; }
.form-pair { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dialog-actions { justify-content: flex-end; }
.form-error, dialog form .form-error { padding: 5px 0; color: #a40c2b; font-size: 12px; font-weight: 650; }
#toast { position: fixed; z-index: 4; bottom: 18px; right: 18px; max-width: calc(100% - 36px); padding: 10px 15px; border-radius: 8px; background: var(--dark); color: #fff4f1; box-shadow: 0 5px 20px #20181730; }
.welcome { display: grid; grid-template-columns: 1fr 1.12fr; min-height: 100dvh; }
.welcome-art { display: flex; align-items: end; padding: clamp(20px, 6vw, 100px); background: linear-gradient(32deg, #320b17 0%, #62172b40 77%), #69162c url('/portal/assets/brand-pattern.webp') center / cover no-repeat; }
.welcome-art img { display: block; width: min(100%, 310px); }
.welcome-content { display: grid; align-items: center; justify-items: center; padding: 34px; }
.welcome form { display: grid; width: min(100%, 390px); gap: 13px; }
.welcome .eyebrow { color: var(--red-dark); }
.welcome .muted { margin-bottom: 4px; color: var(--muted); }
.welcome details { color: var(--muted); font-size: 12px; }
.welcome details label { margin-top: 8px; }
.welcome summary { cursor: pointer; }
.welcome form .button { justify-content: space-between; margin-top: 5px; min-height: 44px; }
@media (max-width: 1030px) {
  .shell { grid-template-columns: 195px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .dashboard-bottom { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .calendar-layout, .task-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 11px 15px; }
  .wordmark { padding: 0; border: 0; }
  .wordmark img { width: 120px; }
  .wordmark span { font-size: 8px; }
  .sidebar nav, .sidebar .account { display: none; }
  .menu-open .sidebar nav, .menu-open .sidebar .account { display: flex; }
  .menu-open .sidebar nav { display: block; margin: 13px 0; }
  .topbar { padding: 8px 14px; min-height: 49px; }
  .crumb { flex: 1; }
  .menu-toggle { display: inline-grid !important; }
  .main { padding: 17px 14px 35px; }
  .hero { min-height: 225px; padding: 23px; background-position: center, 63% center; }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .welcome { grid-template-columns: 1fr; grid-template-rows: 22dvh 1fr; }
  .welcome-art { padding: 20px; }
  .welcome-art img { width: min(54%, 180px); }
  .welcome-content { padding: 24px; }
}
@media (max-width: 480px) {
  .stats { gap: 6px; }
  .stat { padding: 10px 7px; }
  .stat-label { display: grid; gap: 5px; }
  .stat-label .tile-icon { width: 29px; height: 29px; }
  .stat-label h2, .stat .button { font-size: 11px; }
  .stat .button svg { width: 13px; }
  .stat-number { font-size: 25px; }
  .page-heading { align-items: start; flex-direction: column; }
  .card-heading { padding-inline: 12px; }
  .task-row { padding-inline: 10px; gap: 6px; }
  .calendar-grid { padding-inline: 7px; }
  .calendar-day { padding: 4px; min-height: 43px; }
  .calendar-word { display: none; }
}

.password-form { display: grid; gap: 12px; max-width: 520px; padding: 18px; }
.password-form .button { justify-self: start; }
.password-form .muted { color: var(--muted); font-size: 12px; }
.stat-number.negative { color: var(--red-dark); }

#task-conversation { margin: 10px 0; max-height: 350px; overflow-y: auto; border-block: 1px solid var(--line); }
.task-conversation .messages { min-height: 0; padding: 10px; }
.dialog-heading p { color: var(--muted); overflow-wrap: anywhere; }
