/* FarmEasy — a considered workspace for a small team. */
@font-face {
  font-family: Manrope;
  src: url("fonts/Manrope.946beb949095.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --canvas: #f6f5f0;
  --paper: #ffffff;
  --ink: #243c34;
  --muted: #69756d;
  --line: #e2e5dc;
  --forest: #173f34;
  --forest-deep: #112f2a;
  --green: #28654d;
  --sage: #dce6be;
  --sage-soft: #eef2e6;
  --brass: #b59b5d;
  --warning: #96682f;
  --red: #b45242;
  --radius: 16px;
  --shadow: 0 2px 5px #193b2803, 0 8px 24px #193b2803;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: wait; opacity: .65; }
a, button, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #8ba15c; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.3; }
input, select, textarea { max-width: 100%; }
input::placeholder, textarea::placeholder { color: #758171; opacity: 1; }
svg { flex-shrink: 0; }
strong { font-weight: 700; }
::selection { background: #d9e6bd; color: #183e32; }
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-small { width: 16px; height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 12px 20px; border-radius: 10px; background: white; color: var(--forest); box-shadow: 0 6px 25px #112f2a25; }
.skip-link:focus { top: 12px; }
.muted, .text-muted { color: var(--muted); }
.text-warning { color: var(--red); }
.heading-dot { color: #a8b77d; }
.text-link { color: var(--green); font-weight: 650; }
.text-link:hover, .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-button { padding: 5px 0; background: none; font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 19px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.button-primary { background: var(--forest); color: #fff; border-color: #173f34; box-shadow: 0 3px 5px #12332912, inset 0 1px 0 #ffffff14; }
.button-primary:hover { background: #24533f; border-color: #24533f; box-shadow: 0 5px 12px #1233291c; transform: translateY(-1px); }
.button-primary:active { transform: translateY(0); }
.button-secondary { background: #fff; border-color: #dce2d7; color: #455a4c; box-shadow: 0 1px 2px #12332904; }
.button-secondary:hover { border-color: #b9c7ac; background: #fbfcf8; }
.button-quiet { color: var(--muted); background: transparent; }
.button-quiet:hover { background: #eaeede; color: var(--ink); }
.button-small { min-height: 40px; padding: 8px 14px; font-size: 12px; }
.button-full { width: 100%; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9px; background: transparent; color: #74816e; transition: color .18s, background .18s; }
.icon-button:hover { background: #e1e8d9; color: var(--forest); }

/* Navigation and the application frame. */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: 0 0 248px; position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; padding: 35px 19px 21px; background: var(--forest-deep); background-image: radial-gradient(ellipse at 0 0, #2b564325, transparent 75%); color: #f1f4e9; border-right: 1px solid #19392c; }
.brand { display: flex; align-items: center; gap: 12px; width: fit-content; color: #f4f5e9; font-size: 25px; line-height: 1.15; font-weight: 750; letter-spacing: -1px; }
.sidebar .brand { margin-left: 10px; }
.brand-logo { display: block; flex-shrink: 0; width: 72px; height: 72px; object-fit: contain; border: 1px solid #f5eedb; border-radius: 12px; background: #f5eedb; box-shadow: 0 5px 18px #061a1225; }
.brand-title { font-size: 16px; font-weight: 650; letter-spacing: -.4px; }
.brand-descriptor { display: block; color: #a5b9a4; font-size: 8px; font-weight: 600; letter-spacing: 1.6px; margin-top: 8px; }
.auth-story .brand-logo { width: 86px; height: 86px; border-radius: 15px; }
.auth-story .brand-title { font-size: 22px; }
.auth-story .brand-descriptor { font-size: 9px; letter-spacing: 2.5px; }
.workspace-name { display: flex; align-items: center; gap: 10px; margin: 37px 0 32px; padding: 14px 12px; background: #ffffff04; border: 1px solid #ffffff15; border-radius: 12px; font-size: 12px; font-weight: 650; }
.workspace-name small { display: block; margin-top: 3px; color: #a4b7aa; font-size: 11px; font-weight: 400; }
.workspace-name > .icon { width: 14px; margin-left: auto; color: #92ac97; }
.workspace-avatar { display: grid; place-items: center; width: 34px; height: 37px; flex-shrink: 0; color: #e5edcc; background: #ffffff09; border: 1px solid #899c672e; border-radius: 9px; font-size: 16px; font-weight: 600; }
.nav-label { margin: 0 15px 13px; font-size: 10px; font-weight: 650; letter-spacing: 1.8px; color: #98ae9c; }
.nav-links { display: flex; flex-direction: column; gap: 8px; }
.nav-link { display: flex; align-items: center; gap: 13px; min-height: 47px; padding: 12px 15px; border: 1px solid transparent; border-radius: 10px; color: #b7cabb; font-size: 13px; font-weight: 550; transition: background .18s, color .18s; }
.nav-link .icon { width: 19px; height: 19px; }
.nav-link:hover { background: #ffffff09; color: #f2f5e6; }
.nav-link.is-active { color: #243e2b; background: #dce6bd; border-color: #e7edcb; box-shadow: inset 0 1px 0 #ffffff50, 0 4px 12px #071d1910; font-weight: 750; }
.sidebar-note { margin: auto 13px 27px; padding-top: 70px; color: #c5d4b9; font-size: 11px; line-height: 1.8; }
.sidebar-note > .icon { display: block; width: 28px; height: 28px; margin-bottom: 14px; color: #a6bc8c; stroke-width: 1.35; }
.sidebar-note > span { display: block; color: #cbd7bf; font-size: 12px; font-weight: 550; }
.sidebar-note p { color: #99b09c; font-size: 11px; margin: 8px 0 0; }
.small-status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #c3d198; box-shadow: 0 0 0 3px #bed2920b; }
.current-user { display: flex; align-items: center; gap: 10px; border-top: 1px solid #ffffff15; padding: 21px 2px 0; }
.user-name { min-width: 0; flex: 1; color: #e8eedf; font-size: 12px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.user-name small { display: block; color: #a0b79f; font-size: 10px; font-weight: 400; margin-top: 5px; }
.current-user form { flex-shrink: 0; }
.logout-button { color: #a6bfa6; width: 34px; }
.logout-button:hover { background: #ffffff0b; color: #fff; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; flex-shrink: 0; background: #e7edda; color: #516949; border: 2px solid #fff; border-radius: 50%; font-size: 12px; font-weight: 750; }
.avatar-light { background: #5a7660; color: #f4f5e5; border-color: #779070; }
.avatar-small { width: 30px; height: 30px; font-size: 11px; }
.avatar-large { width: 46px; height: 46px; font-size: 16px; }
.avatar-unassigned { background: #f0f2eb; color: #89947f; }
.main-shell { display: flex; flex-direction: column; min-width: 0; width: calc(100% - 248px); margin-left: 248px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 20px; padding: 0 38px; background: #fcfcf8; border-bottom: 1px solid var(--line); }
.breadcrumb { color: #7a857a; font-size: 12px; }
.breadcrumb span { color: #bbc2b3; margin: 0 13px; }
.breadcrumb strong { color: #4d6151; font-weight: 650; }
.private-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #dfe6d4; border-radius: 7px; background: #f3f6ed; color: #60734c; font-size: 11px; font-weight: 600; white-space: nowrap; }
.private-badge .icon { width: 13px; height: 13px; }
.workspace-members { display: flex; align-items: center; gap: 12px; }
.workspace-presence { color: #718065; font-size: 11px; }
.member-stack { display: flex; align-items: center; padding-left: 7px; }
.member-initials { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: -7px; border: 2px solid #fcfcf8; border-radius: 50%; color: #647b4d; background: #e5ecd8; font-size: 9px; font-weight: 750; }
.member-initials:nth-child(2) { color: #8a754e; background: #ece5d6; }
.member-initials:nth-child(3) { color: #6a8081; background: #e2e9e5; }
.workspace-members .avatar { width: 30px; height: 30px; margin-left: -7px; border: 2px solid #fcfcf8; font-size: 10px; }
.workspace-members .avatar:nth-child(2) { color: #8d764c; background: #efe7d4; }
.workspace-members .avatar:nth-child(3) { color: #677b82; background: #e0e9e9; }
.workspace-member-count { font-size: 11px; color: var(--muted); }
.main-content { flex: 1; width: 100%; max-width: 1760px; margin: 0 auto; padding: 39px 38px 40px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 31px; }
.page-heading > div { min-width: 0; }
.eyebrow { color: #7c875f; font-size: 10px; font-weight: 750; letter-spacing: 1.7px; margin-bottom: 11px; }
h1 { color: #253e31; font-size: 34px; font-weight: 650; letter-spacing: -1.35px; margin-bottom: 10px; }
.page-description { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 0; }
.page-heading > .button { flex-shrink: 0; }
.app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 19px 38px; border-top: 1px solid #e3e7db; color: #5c6b61; font-size: 10px; letter-spacing: .1px; }

/* The overview and board. */
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 33px; }
.stat { position: relative; overflow: hidden; min-width: 0; padding: 21px 22px 20px; background: #fff; border: 1px solid #e1e5d8; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat:nth-child(2) { background: #fbfaf5; border-color: #e7e2d2; }
.stat:nth-child(3) { background: #f0f5e9; border-color: #dce5cd; }
.stat:nth-child(4) { background: #fcf7f1; border-color: #e9dfd4; }
.stat-topline { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.stat-label { display: flex; align-items: center; gap: 7px; color: #5f7058; font-size: 12px; font-weight: 600; }
.stat strong { display: block; font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -1.3px; margin: 14px 0 9px; font-variant-numeric: tabular-nums; }
.stat-caption { color: #6b785e; font-size: 11px; line-height: 1.5; }
.stat-icon { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 29px; height: 29px; background: #eef2e6; border: 1px solid #e1e8d3; border-radius: 9px; color: #788d5e; }
.stat-icon .icon { width: 15px; height: 15px; }
.stat:nth-child(2) .stat-icon { background: #f1ecdc; border-color: #e8e0c7; color: #9d874b; }
.stat:nth-child(3) .stat-icon { background: #e4edda; border-color: #d7e3c9; color: #6e925b; }
.stat:nth-child(4) .stat-icon { background: #f4eadd; border-color: #eadbc9; color: #ae8354; }
.status-dot { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #99a48c; }
.status-todo { background: #909f8b; }
.status-in_progress { background: #b09a52; }
.status-blocked { background: #c48b6c; }
.status-done { background: #76965e; }
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.view-label { display: flex; align-items: center; gap: 9px; color: #405740; font-size: 13px; }
.view-label > .icon { width: 18px; height: 18px; color: #758b62; }
.view-label strong { font-weight: 700; }
.board-filters { display: flex; align-items: center; gap: 9px; margin: 0; }
.search-field { position: relative; }
.search-field > .icon { position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; color: #8c987f; pointer-events: none; }
.search-field input { width: 215px; height: 42px; padding: 9px 12px 9px 36px; border: 1px solid #dfe4d5; border-radius: 9px; background: #fff; color: var(--ink); font-size: 12px; }
.search-field input:focus { outline: 2px solid #c6d5ab; outline-offset: 1px; border-color: #8ea776; }
.board-filters select { max-width: 168px; min-width: 0; height: 42px; padding: 8px 26px 8px 11px; border: 1px solid #dfe4d5; border-radius: 9px; background: #fff; color: #5c6e50; font-size: 12px; }
.board-filters .button { min-height: 42px; }
.board-filters .text-link { font-size: 12px; }
.kanban { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.kanban-column { --column-accent: #99a78e; display: flex; flex-direction: column; position: relative; min-width: 0; min-height: 375px; padding: 13px 11px 11px; border: 1px solid #e1e5d8; border-top: 3px solid var(--column-accent); border-radius: 12px; background: #ecefe6; transition: border-color .18s, background .18s; }
.column-in_progress { --column-accent: #b7a16a; background: #f0eee5; border-color: #e5e1d3; border-top-color: var(--column-accent); }
.column-blocked { --column-accent: #c4977a; background: #f2eee7; border-color: #e8dfd5; border-top-color: var(--column-accent); }
.column-done { --column-accent: #8eaa75; background: #edf1e5; border-color: #e0e6d2; border-top-color: var(--column-accent); }
.column-heading { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 13px; padding: 0 1px 0 4px; }
.column-heading h2 { display: flex; align-items: center; gap: 7px; margin: 0; color: #455a3e; font-size: 12px; font-weight: 750; white-space: nowrap; }
.column-heading .icon-button { width: 30px; height: 32px; flex-shrink: 0; color: #889778; }
.column-heading .icon-button:hover { background: #dce4ce; }
.column-count { min-width: 21px; padding: 2px 6px; margin-left: 1px; border: 1px solid #dae0cd; border-radius: 6px; background: #ffffff70; color: #778969; font-size: 10px; font-weight: 650; line-height: 1.5; text-align: center; }
.column-tasks { display: flex; flex-direction: column; flex: 1; min-height: 130px; gap: 11px; }
.task-card { padding: 15px 13px 11px; border: 1px solid #dfe5d7; border-radius: 11px; background: #fff; box-shadow: 0 2px 3px #21392004, 0 5px 13px #21392003; overflow-wrap: anywhere; transition: border-color .18s, box-shadow .18s, transform .18s; }
.task-card[draggable="true"] { cursor: grab; }
.task-card:active { cursor: grabbing; }
.task-card:hover, .task-card:focus-within { border-color: #b4c39f; box-shadow: 0 5px 17px #3047250c; }
.task-card.is-dragging { opacity: .45; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 12px; }
.task-id { color: #738361; font-size: 10px; font-weight: 650; letter-spacing: .4px; font-variant-numeric: tabular-nums; }
.priority { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid transparent; border-radius: 5px; color: #677953; background: #f0f4e9; font-size: 10px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.priority > span { display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.priority-low { color: #657d4d; background: #f0f4e8; border-color: #e9efde; }
.priority-medium { color: #8b763b; background: #f8f3e5; border-color: #f1ead5; }
.priority-high { color: #a8723d; background: #fcf0e3; border-color: #f8e8d4; }
.priority-urgent { color: #a6544b; background: #f9eae6; border-color: #f2dcd6; }
.task-card h3 { margin: 0 0 9px; color: #365035; font-size: 14px; font-weight: 700; line-height: 1.6; letter-spacing: -.22px; }
.task-card h3 a { display: inline; }
.task-card h3 a:hover { color: #28654d; text-decoration: underline; text-underline-offset: 3px; }
.task-excerpt { margin-bottom: 15px; color: #68765d; font-size: 12px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #eef1e8; }
.task-date { display: inline-flex; align-items: center; gap: 5px; color: #69795a; font-size: 11px; font-weight: 500; }
.task-date .icon { width: 13px; height: 13px; }
.task-date.is-overdue { color: #b76c53; }
.no-due-date { color: #758365; font-size: 11px; }
.card-move-form { display: flex; gap: 6px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #f0f2eb; }
.card-move-form select { min-width: 0; width: 100%; min-height: 32px; padding: 4px 3px; border: 0; border-radius: 5px; background: transparent; color: #657751; font-size: 11px; }
.card-move-form button { min-width: 42px; min-height: 32px; padding: 4px 8px; flex-shrink: 0; border: 1px solid #e1e7d8; border-radius: 6px; background: #f8faf4; color: #65834b; font-size: 11px; font-weight: 650; white-space: nowrap; }
.card-move-form button:hover { background: #edf3e4; border-color: #bacba6; }
.column-add { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; margin: 12px 0 0; padding: 9px; border: 1px dashed transparent; border-radius: 8px; color: #778d63; font-size: 12px; font-weight: 550; }
.column-add:hover { color: #496332; border-color: #c6d1b5; background: #e4eadb; }
.column-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; min-height: 225px; padding: 25px 8px; color: #889a74; text-align: center; }
.empty-column-mark { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 15px; border: 1px dashed #bccbab; border-radius: 12px; background: #ffffff36; color: #9baf82; }
.empty-column-mark .icon { width: 18px; height: 18px; }
.column-empty p { margin-bottom: 6px; color: #65774f; font-size: 12px; font-weight: 600; line-height: 1.7; }
.column-empty small { max-width: 175px; color: #70825c; font-size: 11px; line-height: 1.7; }
.kanban-column.is-drop-target { background: #e2ecd5; border-color: #88a568; }
.board-hint { margin: 22px 0 0; color: #758167; font-size: 11px; text-align: center; }

/* Form surfaces, notices, and task detail. */
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.panel h2 { margin-bottom: 21px; font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.panel h3 { font-size: 14px; font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; margin-bottom: 23px; color: #748566; font-size: 12px; font-weight: 550; }
.back-link:hover { color: var(--green); }
.form-layout { display: grid; grid-template-columns: minmax(0,740px) minmax(190px,270px); align-items: start; gap: 42px; }
.form-panel { padding: 31px 33px; }
.task-form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 21px; }
.task-form-fields .form-field:has(#id_title), .task-form-fields .form-field:has(#id_description) { grid-column: 1 / -1; }
.task-form-fields .form-field { min-width: 0; }
.styled-form .form-field { margin-bottom: 23px; }
.form-field label { display: block; margin-bottom: 8px; color: #536a47; font-size: 13px; font-weight: 650; }
.required-indicator { color: #839e6a; font-weight: 450; }
.optional-label { margin-left: 7px; color: #89987b; font-size: 11px; font-weight: 400; }
.form-field input:not([type="checkbox"]), .form-field select, .form-field textarea { display: block; width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #dbe3d1; border-radius: 9px; background: #fdfefb; color: var(--ink); font-size: 14px; line-height: 1.6; transition: border-color .18s, box-shadow .18s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #90a771; outline: none; box-shadow: 0 0 0 3px #b8ce972b; background: #fff; }
.form-field textarea { min-height: 145px; resize: vertical; }
.field-help { margin-top: 8px; color: #687b55; font-size: 12px; line-height: 1.75; }
.field-help ul { padding-left: 19px; margin: 8px 0; }
.field-error, .errorlist { font-size: 12px; color: var(--red); }
.field-error { margin: 7px 0; }
.errorlist { padding: 13px 16px; margin: 0 0 21px; border: 1px solid #eed8cf; border-radius: 9px; background: #fcf0e9; list-style: none; }
.has-error input, .has-error select, .has-error textarea { border-color: #c88776 !important; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; margin-top: 29px; border-top: 1px solid var(--line); }
.form-aside { padding: 24px 0; color: #7e906b; }
.form-aside h2 { margin: 21px 0 16px; color: #5b7247; font-size: 21px; font-weight: 550; line-height: 1.55; letter-spacing: -.5px; }
.form-aside p { margin-bottom: 19px; color: #7b8b6c; font-size: 13px; line-height: 1.9; }
.aside-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #dce6cc; border-radius: 14px; background: #eaf0df; color: #7c955e; }
.aside-icon .icon { width: 24px; height: 24px; }
.notice { padding: 16px 19px; margin-bottom: 24px; border: 1px solid #dce8ce; border-radius: 12px; background: #f1f6e9; color: #5e7a46; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.notice p { margin: 6px 0 0; }
.notice p:last-child { margin-bottom: 0; }
.notice-warning { border-color: #e8dcc1; background: #fcf6e9; color: #907039; }
.notice-error, .notice-danger { border-color: #ebd5ca; background: #fbeee6; color: #a26049; }
.notice-success { border-color: #d3e3be; background: #eef6e4; color: #5b7c42; }
.messages { margin-bottom: 6px; }
.messages .notice:last-child { margin-bottom: 24px; }
.task-page-heading { align-items: flex-start; }
.task-page-heading h1 { max-width: 830px; font-size: 32px; line-height: 1.35; overflow-wrap: anywhere; }
.task-page-heading > .button { margin-top: 24px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 24px; align-items: start; }
.detail-main { display: flex; flex-direction: column; min-width: 0; gap: 24px; }
.detail-panel { padding: 26px; }
.prose { color: #657a55; font-size: 14px; line-height: 1.9; white-space: normal; overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.detail-panel > .muted { color: #77896a; font-size: 13px; line-height: 1.9; }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 23px; }
.section-heading h2 { margin: 0; }
.count-badge { display: inline-block; min-width: 25px; padding: 2px 7px; border-radius: 6px; background: #edf3e3; color: #627e44; font-size: 11px; font-weight: 650; text-align: center; }
.section-heading .subtle-label { margin-left: auto; color: #6b7d55; font-size: 11px; }
.comments { margin-bottom: 24px; }
.comment { display: flex; gap: 13px; padding: 20px 0; border-top: 1px solid #edf1e5; }
.comment:first-child { padding-top: 5px; border-top: 0; }
.comment-content { flex: 1; min-width: 0; }
.comment-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 11px; margin-bottom: 7px; line-height: 1.5; }
.comment-byline strong { color: #5a7446; font-size: 12px; }
.comment-byline time { color: #758760; font-size: 11px; }
.comment-content .prose { font-size: 13px; }
.comment-form { padding-top: 24px; border-top: 1px solid var(--line); }
.comment-form .form-field { margin-bottom: 15px; }
.comment-form textarea { min-height: 115px; }
.quiet-empty { display: flex; align-items: center; gap: 13px; padding: 17px 0; color: #829965; }
.quiet-empty > .icon { width: 25px; height: 25px; flex-shrink: 0; color: #a9bc8b; }
.quiet-empty p { margin: 0; color: #708956; font-size: 13px; }
.quiet-empty small { display: block; margin-top: 5px; color: #6c8255; font-size: 12px; }
.task-properties { margin: 0; }
.task-properties > div { margin-bottom: 23px; }
.task-properties dt { color: #6d8159; font-size: 11px; font-weight: 550; margin-bottom: 8px; }
.task-properties dd { margin: 0; color: #5e7a49; font-size: 13px; line-height: 1.75; }
.task-properties dd small { display: block; font-size: 11px; }
.task-properties .text-warning { color: var(--red); }
.person-inline { display: flex; align-items: center; gap: 9px; line-height: 1.5; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid #e4ebd7; border-radius: 6px; background: #f1f5e9; color: #738f57; font-size: 11px; font-weight: 600; }
.status-pill-in_progress { color: #9a813d; border-color: #e9dfbf; background: #f9f3e2; }
.status-pill-blocked { color: #ac7952; border-color: #efdecb; background: #faf0e5; }
.status-pill-done { color: #658b4b; border-color: #dce8cd; background: #eef5e5; }
.status-change-form { padding-top: 23px; border-top: 1px solid var(--line); }
.status-change-form .form-field { margin-bottom: 13px; }
.status-change-form .form-field select { min-height: 43px; padding: 9px 11px; font-size: 12px; }
.status-change-form .form-field label { color: #7b9266; font-size: 12px; font-weight: 550; }
.archive-form { text-align: center; margin: 20px 0; }
.archive-form .text-button { color: #728164; font-size: 12px; }
.archive-form .text-button:hover { color: var(--red); }
.aside-caption { margin: 18px 11px; color: #6f815b; font-size: 12px; line-height: 1.8; }

/* Activity and workspace access. */
.activity-panel { max-width: 1050px; padding: 31px 33px; }
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-item { display: flex; position: relative; gap: 15px; padding-bottom: 29px; }
.activity-item:last-child { padding-bottom: 0; }
.activity-item:not(:last-child)::before { content: ""; position: absolute; top: 36px; bottom: 6px; left: 16px; width: 1px; background: #e5edda; }
.activity-marker { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; flex-shrink: 0; margin-top: 1px; border: 1px solid #e3ebd5; border-radius: 50%; background: #f1f5e9; color: #8fa675; }
.activity-description { padding-top: 5px; color: #718a59; font-size: 13px; line-height: 1.75; }
.activity-description strong { color: #4e6e35; }
.activity-detail { margin: 6px 0 0; color: #6a8053; font-size: 12px; overflow-wrap: anywhere; }
.activity-item time { display: block; margin-top: 7px; color: #708659; font-size: 11px; }
.activity-task-link { display: block; margin-top: 5px; color: #5d7e43; font-size: 13px; }
.activity-task-link span { margin-right: 6px; color: #6c8352; font-size: 11px; }
.activity-task-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pagination { display: flex; align-items: center; gap: 16px; padding-top: 23px; margin-top: 27px; border-top: 1px solid var(--line); color: #6d8256; font-size: 12px; }
.team-panel { overflow: hidden; margin-bottom: 25px; }
.team-panel > .section-heading { padding: 26px 28px 0; }
.member-row { display: flex; align-items: center; gap: 17px; padding: 23px 28px; border-top: 1px solid #ebefdf; }
.member-row:nth-child(2) > .avatar { color: #a28a54; background: #f1ead8; }
.member-row:nth-child(3) > .avatar { color: #6c9290; background: #e1efea; }
.member-info { flex: 1; min-width: 0; }
.member-info h3 { margin-bottom: 5px; color: #4a6838; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.member-info > a { color: #657d4d; font-size: 12px; overflow-wrap: anywhere; }
.member-info > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.you-label { margin-left: 8px; padding: 2px 6px; border-radius: 5px; color: #67824b; background: #f0f6e6; font-size: 10px; font-weight: 500; }
.role-badge { min-width: 68px; padding: 4px 10px; border: 1px solid #dfe7d0; border-radius: 6px; color: #627c46; background: #f9fcf3; font-size: 11px; font-weight: 550; text-align: center; }
.member-state { display: flex; align-items: center; gap: 7px; min-width: 111px; margin-left: 16px; color: #769257; font-size: 11px; }
.panel-footnote { display: flex; align-items: center; gap: 8px; padding: 15px 28px; border-top: 1px solid #e8eedb; background: #fafcf5; color: #6b814f; font-size: 11px; }
.panel-footnote > .icon { width: 13px; height: 13px; }
.team-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; margin-bottom: 25px; }
.team-settings-grid > .panel { padding: 28px; }
.section-icon { display: flex; align-items: center; justify-content: center; width: 39px; height: 39px; margin-bottom: 18px; border: 1px solid #e1eacd; border-radius: 11px; background: #f0f5e4; color: #8ba66a; }
.section-icon .icon { width: 19px; height: 19px; }
.team-settings-grid h2 { margin-bottom: 12px; }
.team-settings-grid .styled-form { margin-top: 25px; }
.notification-form { margin-top: 26px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 27px; color: #668746; font-size: 13px; cursor: pointer; }
.checkbox-label input { width: 18px; height: 18px; margin: 3px 0; flex-shrink: 0; accent-color: var(--forest); }
.checkbox-label small { display: block; margin-top: 6px; color: #6c8253; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.copy-field { display: flex; gap: 9px; margin-top: 16px; }
.copy-field input { flex: 1; min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid #cbdeb6; border-radius: 8px; background: #fff; color: #749656; font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { padding: 12px 16px; border-bottom: 1px solid var(--line); color: #627e46; font-size: 11px; font-weight: 650; white-space: nowrap; }
td { padding: 16px; border-bottom: 1px solid #eaf1df; color: #597b3b; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.mail-status-panel { margin-bottom: 25px; }
.mail-status-counts { display: flex; flex-wrap: wrap; gap: 26px; color: #637e49; font-size: 12px; }
.mail-status-counts strong { margin-right: 6px; color: #5b7e3e; font-size: 23px; font-weight: 600; letter-spacing: -.5px; }
.toast { position: fixed; z-index: 100; bottom: 24px; left: calc(50% + 124px); transform: translateX(-50%); max-width: min(460px,calc(100vw - 32px)); padding: 16px 22px; border: 1px solid #486348; border-radius: 12px; background: var(--forest); box-shadow: 0 8px 32px #173e3426; color: #fff; font-size: 13px; text-align: center; }

/* The welcome experience uses the same quiet, confident language. */
.auth-body { background: #f7f6ef; }
.auth-shell { display: grid; grid-template-columns: minmax(390px,48%) minmax(0,1fr); min-height: 100vh; }
.auth-story { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 49px 62px 37px; overflow: hidden; color: #fff; background: #112f2a; background-image: radial-gradient(ellipse at 90% 65%, #53624628, transparent 62%), radial-gradient(ellipse at 5% 0, #25554180, transparent 55%); }
.auth-story::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#d4dfb905 1px,transparent 1px), linear-gradient(90deg,#d4dfb905 1px,transparent 1px); background-size: 78px 78px; mask-image: linear-gradient(transparent,#000,transparent); }
.auth-story::after { content: ""; position: absolute; width: 740px; height: 740px; border: 1px solid #cbdbab0c; border-radius: 50%; top: 40%; left: 22%; box-shadow: 0 0 0 90px #bfd19804, 0 0 0 180px #bfd19803; pointer-events: none; }
.auth-story .brand { position: relative; z-index: 1; font-size: 28px; }
.auth-story-content { position: relative; z-index: 1; margin: auto 0; padding: 53px 0 40px; }
.auth-eyebrow { display: inline-flex; align-items: center; color: #c2d1a4; font-size: 10px; font-weight: 650; letter-spacing: 1.9px; }
.auth-eyebrow .small-status-dot { width: 5px; height: 5px; margin-right: 10px; background: #d0dda5; }
.auth-story h1 { margin: 22px 0 24px; color: #f4f4e6; font-size: clamp(43px,4.5vw,67px); font-weight: 500; line-height: 1.14; letter-spacing: -2.8px; }
.auth-story h1 span { color: #d5dbaa; }
.auth-story-content > p, .auth-story-lede { max-width: 350px; margin-bottom: 0; color: #b2c5ac; font-size: 14px; font-weight: 400; line-height: 1.95; }
.auth-story-bottom { position: relative; z-index: 1; }
.auth-principles { display: flex; flex-wrap: wrap; gap: 9px 17px; padding: 19px 0; border-top: 1px solid #b8cf9a20; border-bottom: 1px solid #b8cf9a20; color: #c5d3b2; font-size: 10px; font-weight: 500; }
.auth-principles span { display: flex; align-items: center; gap: 7px; }
.auth-principles span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: #a6b579; }
.auth-story-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 19px 0 0; color: #a8bd9f; font-size: 10px; }
.auth-story-footer .icon { width: 13px; height: 13px; }
.auth-orbit { position: relative; width: 268px; height: 238px; margin: 30px 0 0 24px; }
.auth-orbit-ring { position: absolute; width: 218px; height: 218px; top: 10px; left: 21px; border: 1px solid #b7c89438; border-radius: 50%; transform: rotate(-18deg); }
.auth-orbit-ring::before, .auth-orbit-ring::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #c5cf90; box-shadow: 0 0 0 5px #c5cf9009; }
.auth-orbit-ring::before { top: 29px; left: 30px; }
.auth-orbit-ring::after { right: 14px; bottom: 44px; width: 4px; height: 4px; background: #8fa274; }
.auth-orbit-ring-inner { width: 144px; height: 144px; top: 47px; left: 58px; border-color: #b7c8941e; transform: rotate(30deg); }
.auth-orbit-ring-inner::before, .auth-orbit-ring-inner::after { display: none; }
.auth-orbit-core { position: absolute; top: 77px; left: 88px; display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid #acbc7855; border-radius: 24px; background: linear-gradient(145deg,#365340,#274836); box-shadow: 0 10px 30px #061a1225,inset 0 1px 0 #ffffff0b; transform: rotate(-9deg); }
.auth-orbit-core .icon { width: 42px; height: 42px; color: #dce5b7; stroke-width: 1.4; transform: rotate(9deg); }
.auth-orbit-node { position: absolute; display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #7f996743; border-radius: 14px; background: #254734; color: #becf9e; box-shadow: 0 6px 14px #081c1220; }
.auth-orbit-node .icon { width: 20px; height: 20px; stroke-width: 1.5; }
.auth-orbit-node-one { top: 4px; left: 156px; color: #344a2d; background: #cad4a0; border-color: #d9e2b3; transform: rotate(10deg); }
.auth-orbit-node-two { top: 120px; left: 6px; transform: rotate(-12deg); }
.auth-orbit-node-three { right: 14px; bottom: 29px; color: #d8c88d; background: #394e34; transform: rotate(8deg); }
/* Retain fallback support for the older decorative card composition. */
.auth-art { max-width: 300px; margin-top: 35px; transform: rotate(-3deg); }
.art-card { display: flex; align-items: center; gap: 13px; padding: 16px; margin-bottom: 11px; border: 1px solid #9caf7030; border-radius: 12px; background: #274d3a; }
.art-card > div { flex: 1; }
.art-card-two { margin-left: 18px; opacity: .75; }
.art-card-three { margin-left: 34px; opacity: .45; }
.art-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #bccd94; color: #345333; }
.art-check .icon { width: 14px; height: 14px; }
.art-check-pending { background: transparent; border: 1px solid #92aa72; }
.art-line { display: block; height: 5px; margin-bottom: 7px; border-radius: 5px; background: #9cbf7a; }
.art-line-long { width: 105px; opacity: .7; }
.art-line-short { width: 65px; height: 4px; margin-bottom: 0; opacity: .35; }
.art-avatar { width: 25px; height: 25px; border: 3px solid #789763; border-radius: 50%; background: #90ac7b; }
.art-avatar-gold { background: #c7b576; border-color: #a79860; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 60px 42px 29px; background-image: radial-gradient(ellipse at 100% 0,#e9eadb75,transparent 50%); }
.auth-form-wrap { width: 100%; max-width: 455px; padding: 38px; margin: auto 0; border: 1px solid #e3e7d8; border-radius: 21px; background: #ffffffbd; box-shadow: 0 5px 12px #3e4d2903, 0 22px 55px #3e4d2905; }
.auth-kicker { display: block; margin-bottom: 17px; color: #6f8150; font-size: 10px; font-weight: 750; letter-spacing: 1.5px; }
.auth-form-wrap h1 { margin-bottom: 14px; color: #29422f; font-size: 33px; font-weight: 650; line-height: 1.25; letter-spacing: -1.35px; }
.auth-description { margin-bottom: 28px; color: #667955; font-size: 13px; line-height: 1.85; }
.auth-form { margin-top: 28px; }
.auth-form .form-field { margin-bottom: 21px; }
.auth-form .form-field label { color: #5f7849; font-size: 12px; font-weight: 650; }
.auth-form .form-field input { padding: 12px 13px; border-color: #dde5ce; background: #fff; font-size: 13px; min-height: 48px; }
.auth-form .button-full { min-height: 48px; margin-top: 10px; font-size: 13px; }
.auth-forgot { display: flex; justify-content: flex-end; margin: -7px 0 17px; font-size: 11px; }
.auth-forgot a { color: #6e8b51; }
.auth-forgot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-switch { margin: 24px 0 27px; color: #6d805c; font-size: 12px; text-align: center; }
.auth-switch a { margin-left: 4px; color: #5c7f3d; font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-security-note { display: flex; align-items: flex-start; gap: 9px; padding-top: 23px; border-top: 1px solid #e4ead8; color: #6e8655; }
.auth-security-note > .icon { width: 14px; height: 14px; margin-top: 3px; }
.auth-security-note p { margin-bottom: 0; color: #6b8057; font-size: 11px; line-height: 1.8; }
.auth-main > footer { padding-top: 40px; color: #5c6b61; font-size: 10px; text-align: center; }
.auth-result-icon { display: flex; align-items: center; justify-content: center; width: 53px; height: 53px; margin-bottom: 25px; border: 1px solid #dce8c6; border-radius: 15px; background: #eff5e4; color: #88a666; }
.auth-result-icon > .icon { width: 25px; height: 25px; }
.invited-email { display: flex; align-items: center; gap: 9px; padding: 12px 13px; margin-bottom: 22px; border: 1px solid #dce8ca; border-radius: 9px; background: #f1f6e8; color: #5b793e; font-size: 13px; overflow-wrap: anywhere; }
.auth-body .toast { left: 50%; }

/* Compact screens keep full-sized type and comfortable controls. */
@media (min-width: 1600px) {
  .main-content { padding: 48px 48px 44px; }
  .topbar, .app-footer { padding-left: 48px; padding-right: 48px; }
  .kanban { gap: 20px; }
  .kanban-column { min-height: 430px; padding: 15px 13px 12px; }
  .column-heading h2 { font-size: 13px; }
  .task-card { padding: 18px 17px 13px; }
  .auth-story { padding-left: 82px; padding-right: 82px; }
  .auth-story h1 { font-size: 72px; }
  .auth-story-content > p { font-size: 15px; max-width: 380px; }
}
@media (max-width: 1250px) {
  .sidebar { width: 224px; flex-basis: 224px; padding-left: 15px; padding-right: 15px; }
  .main-shell { width: calc(100% - 224px); margin-left: 224px; }
  .sidebar .brand { margin-left: 6px; font-size: 24px; }
  .sidebar .brand-logo { width: 64px; height: 64px; }
  .workspace-name { gap: 8px; padding: 13px 10px; font-size: 11px; }
  .workspace-name small { font-size: 10px; }
  .workspace-name > .icon { width: 12px; }
  .nav-link { gap: 11px; padding: 12px; }
  .sidebar-note { margin-left: 9px; margin-right: 9px; font-size: 10px; }
  .sidebar-note p { font-size: 10px; }
  .current-user { gap: 8px; }
  .current-user .avatar { width: 31px; height: 31px; }
  .user-name { font-size: 11px; }
  .user-name small { font-size: 10px; }
  .main-content { padding: 33px 28px 35px; }
  .topbar, .app-footer { padding-left: 28px; padding-right: 28px; }
  h1 { font-size: 30px; }
  .page-description { font-size: 12px; }
  .stats-grid { gap: 12px; }
  .stat { padding: 19px 18px; }
  .stat strong { font-size: 33px; }
  .stat-label { font-size: 11px; }
  .stat-icon { right: 14px; width: 25px; height: 25px; }
  .board-toolbar { align-items: flex-start; flex-direction: column; gap: 16px; }
  .board-filters { width: 100%; }
  .search-field { flex: 1; }
  .search-field input { width: 100%; }
  .kanban { gap: 12px; }
  .kanban-column { padding: 11px 9px 10px; }
  .column-heading h2 { gap: 5px; font-size: 11px; }
  .column-heading .icon-button { width: 24px; }
  .column-count { min-width: 18px; padding: 2px 5px; }
  .task-card { padding: 13px 11px 10px; }
  .task-card h3 { font-size: 13px; }
  .form-layout { grid-template-columns: minmax(0,1fr) 215px; gap: 28px; }
  .detail-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 20px; }
  .detail-panel { padding: 23px; }
  .member-row { padding: 23px; gap: 13px; }
  .member-state { min-width: 102px; margin-left: 6px; }
  .auth-story { padding: 43px 45px 33px; }
  .auth-main { padding: 50px 30px 28px; }
  .auth-form-wrap { padding: 32px; }
  .auth-story h1 { font-size: 52px; }
  .auth-story-content { padding-top: 45px; padding-bottom: 35px; }
  .auth-orbit { width: 250px; margin-left: 8px; }
  .toast { left: calc(50% + 112px); }
}
@media (max-width: 1100px) {
  .kanban { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .kanban-column { min-height: 300px; padding: 13px 12px 10px; }
  .column-heading h2 { gap: 8px; font-size: 13px; }
  .column-heading .icon-button { width: 34px; }
  .column-tasks { min-height: 110px; }
  .column-empty { min-height: 170px; }
  .task-card { padding: 17px 16px 12px; }
  .task-card h3 { font-size: 14px; }
  .stat-caption { font-size: 10px; }
  .stat-icon { display: none; }
  .auth-story { padding-left: 34px; padding-right: 34px; }
  .auth-story h1 { font-size: 47px; letter-spacing: -2px; }
  .auth-eyebrow { font-size: 9px; letter-spacing: 1.45px; }
  .auth-form-wrap { padding: 29px; }
  .auth-form-wrap h1 { font-size: 30px; }
  .auth-principles { gap: 8px 12px; font-size: 9px; }
}
@media (max-width: 950px) {
  .sidebar { width: 207px; flex-basis: 207px; padding-left: 12px; padding-right: 12px; }
  .main-shell { width: calc(100% - 207px); margin-left: 207px; }
  .sidebar .brand { font-size: 22px; gap: 8px; }
  .sidebar .brand-logo { width: 60px; height: 60px; }
  .workspace-name { gap: 8px; margin-top: 31px; }
  .workspace-name > .icon { display: none; }
  .workspace-avatar { width: 31px; height: 34px; }
  .nav-link { font-size: 12px; }
  .current-user { gap: 6px; }
  .logout-button { width: 28px; }
  .main-content { padding: 29px 24px 32px; }
  .topbar, .app-footer { padding-left: 24px; padding-right: 24px; }
  .page-heading { align-items: flex-start; gap: 18px; }
  .page-heading > .button { margin-top: 21px; padding: 10px 13px; font-size: 12px; }
  h1 { font-size: 28px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-bottom: 27px; }
  .stat { padding: 18px 20px; }
  .stat-label { font-size: 12px; }
  .stat strong { font-size: 32px; margin: 11px 0 6px; }
  .stat-caption { font-size: 11px; }
  .stat-icon { display: grid; }
  .form-layout { display: block; }
  .form-aside { display: none; }
  .form-panel { padding: 28px; }
  .detail-layout { grid-template-columns: minmax(0,1fr); }
  .detail-aside { display: grid; grid-template-columns: 1fr auto; align-items: start; order: 1; }
  .detail-aside > .panel { width: 100%; grid-column: 1 / -1; }
  .detail-main { order: 2; }
  .task-properties { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 28px; }
  .task-properties > div { margin-bottom: 19px; }
  .status-change-form { display: flex; align-items: flex-end; gap: 12px; }
  .status-change-form .form-field { flex: 1; margin: 0; }
  .status-change-form .button { width: auto; min-height: 43px; }
  .archive-form { grid-column: 1 / -1; justify-self: center; }
  .team-settings-grid { grid-template-columns: 1fr; }
  .member-row { flex-wrap: wrap; gap: 10px; }
  .member-info { min-width: 130px; }
  .member-info h3 { font-size: 13px; }
  .member-state { min-width: 95px; margin-left: 0; font-size: 10px; }
  .role-badge { min-width: 60px; font-size: 10px; }
  .member-stack, .workspace-presence { display: none; }
  .auth-shell { grid-template-columns: minmax(330px,44%) minmax(0,1fr); }
  .auth-story { padding: 35px 28px 30px; }
  .auth-story .brand { font-size: 26px; }
  .auth-story h1 { font-size: 41px; letter-spacing: -1.6px; }
  .auth-story-content > p { font-size: 13px; }
  .auth-orbit { margin-top: 25px; margin-left: -4px; transform: scale(.92); transform-origin: left center; }
  .auth-story-footer { font-size: 9px; }
  .auth-main { padding: 42px 25px 26px; }
  .auth-form-wrap { padding: 26px; }
  .auth-form-wrap h1 { font-size: 29px; }
  .auth-kicker { font-size: 9px; letter-spacing: 1.2px; }
  .auth-description { font-size: 12px; }
  .toast { left: calc(50% + 104px); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr auto; width: 100%; min-height: 0; padding: 18px 22px 0; border-right: 0; }
  .sidebar .brand { margin: 0; font-size: 24px; gap: 10px; }
  .sidebar .brand-descriptor { margin-top: 6px; font-size: 8px; letter-spacing: 1.3px; }
  .sidebar .brand-logo { width: 54px; height: 54px; border-radius: 9px; }
  .workspace-name, .nav-label, .sidebar-note { display: none; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: 8px; margin-top: 20px; padding-bottom: 15px; }
  .nav-link { gap: 8px; min-height: 43px; padding: 10px 13px; font-size: 12px; white-space: nowrap; }
  .nav-link > .icon { width: 17px; height: 17px; }
  .current-user { grid-row: 1; grid-column: 2; gap: 7px; padding: 0; border: 0; }
  .current-user > .user-name { display: none; }
  .current-user > .avatar { width: 32px; height: 32px; }
  .current-user .logout-button { width: 37px; }
  .main-shell { width: 100%; margin: 0; }
  .topbar { height: 61px; padding: 0 23px; gap: 12px; }
  .breadcrumb { font-size: 11px; }
  .breadcrumb span { margin: 0 9px; }
  .private-badge { padding: 6px 9px; gap: 6px; font-size: 10px; }
  .private-badge .icon { width: 12px; height: 12px; }
  .main-content { padding: 29px 23px 32px; }
  .page-heading { margin-bottom: 25px; gap: 16px; }
  h1 { font-size: 29px; letter-spacing: -1px; }
  .page-description { font-size: 12px; }
  .page-heading > .button { margin-top: 22px; min-height: 43px; }
  .stats-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
  .stat { padding: 17px 15px; }
  .stat-label { font-size: 11px; gap: 6px; }
  .stat-icon { display: none; }
  .stat-caption { font-size: 10px; }
  .stat strong { font-size: 29px; }
  .board-toolbar { margin-bottom: 19px; }
  .board-filters { flex-wrap: wrap; gap: 8px; }
  .board-filters select { max-width: 170px; }
  .column-heading h2 { font-size: 13px; }
  .column-heading .icon-button { width: 36px; height: 36px; }
  .column-add { min-height: 43px; }
  .card-move-form select, .card-move-form button { min-height: 40px; font-size: 12px; }
  .app-footer { padding: 19px 23px; font-size: 10px; }
  .back-link { min-height: 33px; margin-bottom: 20px; }
  .task-page-heading h1 { font-size: 28px; }
  .team-panel > .section-heading { padding: 24px 24px 0; }
  .member-row { padding: 22px 24px; }
  .panel-footnote { padding: 15px 24px; }
  .team-settings-grid > .panel { padding: 25px; }
  .page-heading > .private-badge { display: none; }
  .activity-panel { padding: 27px; }
  .auth-shell { display: block; }
  .auth-story { min-height: 0; padding: 23px 28px; }
  .auth-story .brand { font-size: 26px; }
  .auth-story .brand-logo { width: 64px; height: 64px; border-radius: 11px; }
  .auth-story-content, .auth-story-bottom, .auth-story-footer { display: none; }
  .auth-main { min-height: calc(100svh - 110px); padding: 35px 24px 24px; }
  .auth-form-wrap { max-width: 455px; padding: 33px; border-radius: 18px; }
  .auth-kicker { font-size: 10px; letter-spacing: 1.4px; }
  .auth-form-wrap h1 { font-size: 31px; }
  .auth-description { font-size: 13px; }
  .auth-main > footer { padding-top: 27px; font-size: 10px; }
  .toast { left: 50%; }
}
@media (max-width: 540px) {
  .sidebar { padding-left: 18px; padding-right: 18px; }
  .nav-links { gap: 6px; }
  .nav-link { padding: 10px 11px; font-size: 11px; gap: 7px; }
  .main-content { padding: 27px 18px 30px; }
  .topbar { padding: 0 18px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb span { margin: 0 7px; }
  .private-badge { font-size: 9px; padding: 5px 7px; }
  .page-heading { flex-wrap: wrap; gap: 17px; align-items: center; }
  .page-heading > div { flex-basis: 100%; }
  .page-heading > .button { min-height: 43px; margin-top: 0; padding: 10px 15px; font-size: 12px; }
  .page-heading h1 { font-size: 29px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .page-description { max-width: 340px; font-size: 12px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 26px; }
  .stat { padding: 17px; border-radius: 13px; }
  .stat-label { font-size: 12px; }
  .stat strong { margin: 12px 0 7px; font-size: 31px; }
  .stat-caption { font-size: 10px; }
  .board-filters .search-field { flex-basis: 100%; margin-bottom: 1px; }
  .search-field input { min-height: 44px; font-size: 13px; }
  .search-field > .icon { top: 14px; }
  .board-filters select { flex: 1; max-width: 100%; height: 44px; font-size: 12px; }
  .board-filters .button { min-height: 44px; }
  .view-label { font-size: 13px; }
  .kanban { grid-template-columns: minmax(0,1fr); gap: 19px; }
  .kanban-column { min-height: 0; padding: 12px; border-radius: 13px; }
  .column-heading { margin-bottom: 12px; }
  .column-heading h2 { font-size: 13px; }
  .column-heading .icon-button { width: 40px; height: 40px; }
  .column-tasks { min-height: 0; }
  .column-empty { display: grid; grid-template-columns: 37px minmax(0,1fr); column-gap: 13px; row-gap: 3px; min-height: 91px; padding: 14px 8px; align-content: center; text-align: left; }
  .empty-column-mark { grid-column: 1; grid-row: 1 / 3; width: 37px; height: 37px; margin: 0; border-radius: 11px; }
  .column-empty p { grid-column: 2; margin: 0; font-size: 12px; }
  .column-empty small { grid-column: 2; max-width: none; font-size: 11px; }
  .column-add { margin-top: 9px; }
  .task-card { padding: 17px 16px 13px; }
  .task-id, .priority { font-size: 11px; }
  .task-card h3 { font-size: 14px; }
  .task-excerpt { font-size: 12px; }
  .task-date, .no-due-date { font-size: 12px; }
  .board-hint { font-size: 10px; line-height: 1.8; }
  .form-panel, .detail-panel, .activity-panel { padding: 23px; }
  .panel h2 { font-size: 15px; }
  .task-form-fields { grid-template-columns: minmax(0,1fr); }
  .form-field input:not([type="checkbox"]), .form-field select, .form-field textarea { font-size: 16px; }
  .form-field label { font-size: 13px; }
  .form-actions { gap: 9px; }
  .form-actions .button { font-size: 12px; }
  .task-page-heading h1 { font-size: 27px; }
  .task-properties { column-gap: 18px; }
  .task-properties dd { font-size: 12px; }
  .status-change-form { gap: 9px; }
  .status-change-form .button { padding: 9px 12px; font-size: 11px; }
  .comment { gap: 10px; }
  .comment-byline { gap: 4px; }
  .comment-byline time { width: 100%; }
  .section-heading { gap: 8px; }
  .section-heading .subtle-label { font-size: 10px; }
  .member-row { position: relative; padding: 20px; gap: 10px; }
  .member-row > .avatar { width: 40px; height: 40px; font-size: 14px; }
  .member-info { min-width: 170px; }
  .member-info h3 { font-size: 13px; }
  .member-info > a { font-size: 11px; }
  .member-row .role-badge { margin-left: 50px; padding: 3px 8px; min-width: 60px; }
  .member-state { min-width: 0; margin-left: 4px; font-size: 11px; }
  .team-panel > .section-heading { padding-left: 21px; }
  .panel-footnote { align-items: flex-start; padding: 14px 20px; font-size: 10px; line-height: 1.8; }
  .panel-footnote > .icon { margin-top: 3px; }
  .team-settings-grid > .panel { padding: 23px; }
  .copy-field { flex-direction: column; }
  .checkbox-label { font-size: 12px; }
  .checkbox-label small { font-size: 11px; }
  .mail-status-counts { gap: 12px 20px; }
  .activity-item { gap: 12px; }
  .activity-description { font-size: 12px; }
  .activity-detail { font-size: 11px; }
  .activity-task-link { font-size: 12px; }
  .app-footer { padding: 18px; font-size: 9px; gap: 15px; }
  .auth-story { padding: 22px 25px; }
  .auth-main { padding: 28px 18px 23px; }
  .auth-form-wrap { padding: 28px 25px; }
  .auth-form-wrap h1 { font-size: 30px; }
  .auth-kicker { font-size: 9px; }
  .auth-form .form-field input { font-size: 16px; }
  .auth-description { font-size: 12px; }
  .auth-switch { font-size: 11px; }
  .auth-security-note p { font-size: 10px; }
  .auth-main > footer { font-size: 9px; }
}
@media (max-width: 360px) {
  .sidebar { padding-left: 15px; padding-right: 15px; }
  .sidebar .brand { font-size: 22px; }
  .nav-links { gap: 4px; }
  .nav-link { padding: 10px 9px; font-size: 10px; gap: 6px; }
  .topbar, .main-content { padding-left: 15px; padding-right: 15px; }
  .topbar .private-badge { font-size: 8px; padding: 5px 6px; }
  .breadcrumb { font-size: 9px; }
  .page-heading h1 { font-size: 27px; }
  .stat { padding: 15px; }
  .stat-label { font-size: 11px; }
  .stat-caption { font-size: 9px; }
  .member-row { padding: 18px; }
  .member-info { min-width: 160px; }
  .app-footer span:last-child { display: none; }
  .auth-main { padding-left: 15px; padding-right: 15px; }
  .auth-form-wrap { padding: 25px 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
