:root {
  --ink: #1c2d29;
  --muted: #71807a;
  --green: #16483b;
  --green-hover: #10372d;
  --green-light: #edf4f0;
  --paper: #ffffff;
  --background: #f5f7f5;
  --border: #e3e9e5;
  --blue: #3265a5;
  --red: #b44d3d;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { letter-spacing: inherit; }
input, select, textarea { width: 100%; border: 1px solid #d7e0d9; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.5; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #a5b8ab; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #4d8068; box-shadow: 0 0 0 3px #dcebe1; }
input::placeholder, textarea::placeholder { color: #95a099; }
textarea { resize: vertical; min-height: 88px; }
input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--green); flex: 0 0 auto; }
input[type="file"] { padding: 9px; font-size: 12px; }
input[type="file"]::file-selector-button { padding: 6px 9px; border: 0; border-radius: 5px; background: var(--green-light); color: var(--green); margin-right: 8px; font: inherit; cursor: pointer; }
input[readonly] { background: #f7faf8; }
:focus-visible { outline: 3px solid #5e997c; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.3; letter-spacing: -.7px; font-weight: 650; margin-bottom: 10px; overflow-wrap: anywhere; }
h2 { font-size: 17px; font-weight: 650; line-height: 1.5; margin-bottom: 9px; letter-spacing: -.2px; }
h3 { font-size: 16px; line-height: 1.5; font-weight: 600; margin-bottom: 8px; }
p { line-height: 1.75; }
form { margin: 0; }
label { font-size: 13px; font-weight: 550; line-height: 1.5; }
time { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.small { font-size: 12px; }
.eyebrow { color: #678275; font-size: 10px; font-weight: 700; letter-spacing: 2.2px; line-height: 1.6; margin-bottom: 12px; }
.subtle-label { color: #8a9890; font-size: 10px; font-weight: 600; letter-spacing: 1.1px; }
.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; left: 15px; top: -90px; padding: 12px 18px; background: var(--green); color: white; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 15px; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { min-height: 76px; max-width: 1392px; padding: 0 40px; margin: 0 auto; display: flex; align-items: center; gap: 52px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; background: var(--green); border-radius: 9px; padding: 9px 8px; }
.brand-mark span { width: 4px; height: 11px; border-radius: 2px; background: #fff; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 14px; }
.brand-text { font-size: 18px; font-weight: 750; letter-spacing: -.7px; white-space: nowrap; }
.brand-text strong { font-weight: 450; color: #53655c; margin-left: 3px; }
.primary-nav { align-self: stretch; display: flex; align-items: stretch; gap: 29px; }
.primary-nav a { display: flex; align-items: center; padding-top: 2px; border-bottom: 2px solid transparent; font-size: 13px; color: #718078; white-space: nowrap; }
.primary-nav a:hover { color: var(--green); }
.primary-nav a[aria-current="page"] { color: var(--green); font-weight: 650; border-bottom-color: var(--green); }
.header-account { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.account-link { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.account-link:hover, .text-link:hover { color: var(--green); }
.avatar, .mini-avatar { display: inline-flex; align-items: center; justify-content: center; background: #e9f0eb; color: #52715f; border-radius: 50%; flex: 0 0 auto; font-size: 13px; font-weight: 600; }
.avatar { width: 34px; height: 34px; }
.mini-avatar { width: 27px; height: 27px; font-size: 11px; }
.text-button { border: 0; padding: 4px 0; color: var(--muted); background: transparent; font-size: 12px; }
.text-button:hover { color: var(--green); }
.header-tag { margin-left: auto; font-size: 12px; color: #8a9890; }
.page-shell { max-width: 1280px; margin: 0 auto; padding: 43px 40px 70px; min-height: calc(100vh - 151px); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading .eyebrow { margin-bottom: 9px; }
.page-heading .button { flex-shrink: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 41px; border: 1px solid transparent; border-radius: 8px; padding: 9px 17px; font-size: 13px; line-height: 1.5; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.button-primary { color: #fff; background: var(--green); border-color: var(--green); box-shadow: 0 2px 3px #153f2f0c; }
.button-primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.button-secondary { color: #3d5b4a; background: #fff; border-color: #dbe4dd; }
.button-secondary:hover { background: #f0f5f1; border-color: #a9c0b0; }
.button-full { width: 100%; }
.button-small { min-height: 33px; font-size: 12px; padding: 6px 11px; }
.text-link { color: #678172; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 30px; }
.stat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 21px 23px; transition: border-color .15s; }
.stat-card:hover { border-color: #a7bfaf; }
.stat-label { display: flex; align-items: center; gap: 7px; color: #6d7e73; font-size: 12px; }
.stat-card strong { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.4; margin: 6px 0; letter-spacing: -1px; }
.stat-note { color: #99a59d; font-size: 11px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #b7c3ba; }
.dot-progress { background: #5483bb; }
.dot-overdue { background: #d18866; }
.dot-done { background: #6a9a7d; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 25px 20px; }
.panel-heading h2 { margin-bottom: 3px; }
.padded-panel { padding: 25px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 19px; }
.section-heading h2 { margin-bottom: 0; }
.count-label { font-size: 11px; color: #8a9b90; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 5px; padding: 0 5px; border-radius: 5px; background: #f2f5f2; vertical-align: middle; }
.filter-bar { padding: 16px 25px 20px; display: flex; align-items: flex-end; gap: 12px; border-top: 1px solid #f0f3f0; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.filter-bar .field { flex: 1; }
.filter-bar .search-field { flex: 1.7; }
.filter-bar label { color: #7c8a80; font-size: 11px; }
.filter-bar input, .filter-bar select { font-size: 12px; padding: 8px 10px; min-height: 37px; }
.filter-overdue { margin-bottom: 9px; white-space: nowrap; }
.check-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #65776b; font-weight: 400; }
.filter-buttons { display: flex; align-items: center; gap: 12px; }
.filter-buttons .button { min-height: 37px; padding: 7px 14px; font-size: 12px; }
.filter-buttons .text-link { font-size: 11px; white-space: nowrap; }
.table-wrap { overflow-x: auto; border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.data-table th { color: #8b978f; font-size: 11px; font-weight: 500; background: #f9fbf9; border-top: 1px solid #edf1ed; border-bottom: 1px solid #edf1ed; padding: 13px 18px; white-space: nowrap; }
.data-table td { border-bottom: 1px solid #f0f3f0; padding: 19px 18px; vertical-align: middle; }
.data-table th:first-child, .data-table td:first-child { padding-left: 25px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 25px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfdfb; }
.action-title-cell { width: 42%; }
.row-title { display: inline-block; color: #293e32; font-size: 13px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.row-title:hover { color: #327151; text-decoration: underline; text-underline-offset: 3px; }
.row-id { display: block; color: #a1aca4; font-size: 10px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.person-chip { display: inline-flex; align-items: center; gap: 8px; }
.badge { display: inline-flex; justify-content: center; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 5px; font-size: 10px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.badge-open { background: #f0f3f0; color: #7c8b80; }
.badge-in_progress { background: #edf3fb; color: #517eae; }
.badge-blocked { background: #fff3e7; color: #b17b3c; }
.badge-done { background: #eaf3ed; color: #5c8a6c; }
.badge-admin { background: #eaf0ec; color: #3b6c51; }
.priority { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; color: #829188; }
.priority i { width: 5px; height: 9px; border-radius: 1px; background: #a4b3a8; }
.priority-high { color: #b57555; }
.priority-high i { background: #c58566; }
.priority-low { color: #93a097; }
.priority-low i { background: #c8d1ca; }
.overdue-text { color: var(--red); }
.overdue-note { display: block; font-size: 10px; margin-top: 3px; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 58px 24px 65px; border-top: 1px solid #f0f3f0; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 15px; background: #f1f5ef; color: #7c9a81; font-size: 23px; margin-bottom: 20px; }
.empty-state p { font-size: 13px; color: var(--muted); max-width: 420px; margin-bottom: 23px; }
.empty-inline { color: #8e9c93; font-size: 12px; line-height: 1.8; padding: 12px 0 4px; margin-bottom: 15px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: #85958a; font-size: 12px; margin-bottom: 27px; }
.back-link:hover { color: var(--green); }
.detail-heading { align-items: flex-start; margin-bottom: 25px; }
.detail-heading h1 { font-size: 29px; }
.heading-badges { display: flex; gap: 13px; align-items: center; margin-top: 14px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 23px; align-items: start; }
.detail-main, .detail-sidebar { display: grid; gap: 22px; }
.detail-sidebar .padded-panel { padding: 22px; }
.detail-sidebar h2 { font-size: 14px; }
.edit-form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 5px; }
.required-mark { color: #a1b1a5; font-size: 11px; font-weight: 400; }
.optional-mark { font-size: 10px; color: #9aa79e; font-weight: 400; margin-left: 4px; }
.helper-panel { background: #f0f5f0; border-color: #e2eae1; }
.helper-panel .eyebrow { font-size: 9px; margin-bottom: 12px; }
.helper-list { margin: 18px 0 0; padding-left: 16px; color: #7b8e7d; font-size: 12px; line-height: 2.5; }
.meta-list { margin: 18px 0 0; }
.meta-list > div { display: flex; flex-direction: column; gap: 5px; margin: 0 0 18px; }
.meta-list > div:last-child { margin-bottom: 0; }
.meta-list dt { color: #96a299; font-size: 11px; }
.meta-list dd { margin: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.body-copy { font-size: 14px; margin-top: 20px; color: #53695a; }
.comment-list { list-style: none; margin: 8px 0 25px; padding: 0; }
.comment { display: flex; align-items: flex-start; gap: 11px; padding: 17px 0; border-bottom: 1px solid #f0f3f0; }
.comment:first-child { padding-top: 4px; }
.comment .avatar { width: 30px; height: 30px; font-size: 11px; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.comment-meta strong { font-size: 12px; font-weight: 600; }
.comment-meta time { font-size: 10px; color: #9eaaa2; }
.comment-body p { font-size: 13px; color: #586c5e; margin: 7px 0 0; }
.comment-form { display: grid; gap: 10px; }
.comment-form label { color: #829287; font-size: 12px; }
.attachment-list { list-style: none; margin: 15px 0 20px; padding: 0; }
.attachment-list li { padding: 10px 0; border-bottom: 1px solid #f0f3f0; }
.attachment-name { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.6; color: #4b7059; }
.attachment-name > span:last-child { overflow-wrap: anywhere; }
.attachment-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.file-icon { width: 24px; height: 24px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 5px; background: #f1f5f1; font-size: 16px; }
.attachment-meta { display: block; padding-left: 32px; color: #a1ada4; font-size: 9px; line-height: 1.7; margin-top: 3px; }
.upload-form { display: grid; gap: 9px; padding-top: 8px; }
.upload-form label { font-size: 11px; color: #8a9b8e; }
.upload-form .button { justify-self: start; }
.timeline { list-style: none; margin: 20px 0 0; padding-left: 12px; }
.timeline li { position: relative; padding: 0 0 20px 15px; border-left: 1px solid #e4ece5; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; width: 7px; height: 7px; position: absolute; left: -4px; top: 5px; border: 2px solid white; border-radius: 50%; background: #9fb8a6; box-sizing: content-box; }
.timeline p { font-size: 11px; margin: 0 0 4px; color: #7d8f82; overflow-wrap: anywhere; }
.timeline strong { color: #4e6a57; font-weight: 500; }
.timeline time { font-size: 9px; color: #a6b1a9; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 23px; align-items: start; }
.member-name { font-size: 12px; font-weight: 550; }
.member-email { display: block; font-size: 10px; color: #99a69d; margin-top: 3px; overflow-wrap: anywhere; }
.username { color: #6d8473; font-size: 11px; }
.member-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.member-controls select { min-width: 82px; width: auto; padding: 6px 8px; font-size: 11px; }
.member-controls .check-label { font-size: 11px; white-space: nowrap; }
.invite-panel .eyebrow { font-size: 9px; }
.stack-form { display: flex; flex-direction: column; margin-top: 24px; }
.stack-form > label { margin-bottom: 7px; }
.stack-form > input, .stack-form > select { margin-bottom: 19px; }
.stack-form > .button { margin-top: 6px; }
.form-note { color: #9aa69e; font-size: 11px; line-height: 1.8; display: block; margin: 18px 0 0; }
.upload-form .form-note { margin: 0; font-size: 10px; }
.invitation-result { margin-bottom: 24px; padding: 20px 24px; }
.invitation-result h2 { font-size: 15px; }
.invitation-result p { font-size: 12px; margin-bottom: 12px; }
.copy-row { display: flex; gap: 10px; }
.copy-row input { font-size: 11px; }
.copy-row .button { flex: 0 0 auto; }
.invitation-result .form-note { min-height: 20px; margin-top: 6px; }
.account-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); max-width: 920px; align-items: start; gap: 24px; }
.profile-panel h2 { margin: 15px 0 10px; font-size: 21px; }
.avatar-large { width: 57px; height: 57px; font-size: 22px; }
.profile-panel .meta-list { border-top: 1px solid #edf1ed; margin-top: 23px; padding-top: 23px; }
.password-form { max-width: 450px; }
.password-form .form-actions { margin-top: 3px; }
.flash-stack { margin-bottom: 24px; display: grid; gap: 9px; }
.form-error { margin-bottom: 24px; }
.notice { padding: 12px 16px; border: 1px solid #dde8e0; border-radius: 9px; font-size: 13px; line-height: 1.7; background: #eef5f0; color: #4f755b; overflow-wrap: anywhere; }
.notice-error { border-color: #eedbd4; background: #fff3ef; color: #ad6651; }
.notice-warning { border-color: #ebdfc7; background: #fff8e9; color: #9e824c; }
.notice-info { border-color: #dce6ed; background: #f1f7fb; color: #57798f; }
.auth-page { background: #f8faf7; }
.auth-shell { max-width: 1110px; min-height: calc(100vh - 151px); padding: 78px 40px 90px; margin: auto; display: grid; grid-template-columns: 1fr 390px; gap: 100px; align-items: center; }
.auth-shell > .flash-stack { grid-column: 1 / -1; margin: 0; }
.auth-shell > .form-error { grid-column: 1 / -1; margin: 0; }
.auth-intro .eyebrow { color: #87a08c; font-size: 10px; margin-bottom: 20px; }
.auth-intro h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.4; font-weight: 600; color: #244a36; letter-spacing: -1px; margin-bottom: 20px; }
.intro-copy { color: #8a9a8d; font-size: 14px; line-height: 2; max-width: 340px; }
.auth-card { background: #fff; padding: 34px 32px 29px; border: 1px solid #e4ebe2; border-radius: 16px; box-shadow: 0 16px 42px #284b2710; }
.auth-card h2 { font-size: 23px; margin-bottom: 9px; letter-spacing: -.5px; }
.auth-card .eyebrow { color: #95a78e; font-size: 9px; margin-bottom: 13px; }
.auth-card .muted { font-size: 12px; }
.auth-card .stack-form { margin-top: 28px; }
.auth-card .stack-form label { font-size: 12px; }
.auth-card .button-full { margin-top: 8px; justify-content: space-between; }
.auth-card .form-note { text-align: center; font-size: 10px; margin-top: 22px; }
.intro-preview { background: #fff; border: 1px solid #e4ece3; border-radius: 12px; padding: 15px 19px 7px; max-width: 330px; margin-top: 34px; box-shadow: 0 10px 25px #284b2706; transform: rotate(-2deg); }
.preview-header { display: flex; align-items: center; gap: 7px; font-size: 8px; letter-spacing: 1px; color: #a4b2a3; padding-bottom: 12px; border-bottom: 1px solid #f0f4ec; }
.preview-dot { width: 5px; height: 5px; border-radius: 50%; background: #a4be9b; }
.preview-dots { margin-left: auto; font-size: 17px; line-height: 10px; }
.preview-row { display: flex; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 1px solid #f6f8f3; }
.preview-row:last-child { border: 0; }
.preview-check, .preview-circle { width: 13px; height: 13px; flex: 0 0 auto; border-radius: 50%; background: #e8f2e7; color: #8ca482; font-size: 8px; display: flex; align-items: center; justify-content: center; }
.preview-circle { border: 1px solid #dce5d8; background: #fff; }
.preview-line { height: 5px; background: #e5ebe1; border-radius: 4px; }
.line-long { width: 105px; }
.line-medium { width: 85px; }
.line-short { width: 67px; }
.preview-pill { padding: 3px 6px; color: #91a989; background: #edf4e8; font-size: 7px; margin-left: auto; border-radius: 3px; }
.preview-pill-blue { color: #92a9bc; background: #edf3f7; }
.preview-pill-gray { color: #a8b0a4; background: #f3f5f0; }
.single-auth { display: flex; justify-content: center; flex-direction: column; gap: 20px; padding-top: 58px; }
.single-auth .auth-card { width: 100%; max-width: 440px; }
.single-auth .flash-stack { width: 100%; max-width: 440px; }
.single-auth > .form-error { width: 100%; max-width: 440px; }
.single-auth h1 { font-size: 24px; }
.single-auth .button-full { justify-content: center; }
.invited-identity { display: flex; flex-direction: column; gap: 7px; background: #f5f8f4; border: 1px solid #eaf0e7; border-radius: 8px; padding: 13px 15px; margin-top: 23px; }
.invited-identity strong { font-size: 13px; font-weight: 550; }
.error-state { text-align: center; max-width: 590px; margin: 60px auto 80px; }
.error-code { display: block; font-size: 82px; color: #d8e3d7; font-weight: 650; letter-spacing: -4px; line-height: 1.3; margin-bottom: 15px; }
.error-state h1 { font-size: 27px; }
.error-state .muted { margin: 17px 0 27px; }
.site-footer { min-height: 75px; padding: 22px 40px; max-width: 1280px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #a5b1a8; font-size: 10px; }
.site-footer span:first-child { font-weight: 600; letter-spacing: .5px; }
@media (min-width: 1440px) { .page-shell { padding-top: 50px; } }
@media (max-width: 1120px) {
  .header-inner { gap: 32px; padding: 0 28px; }
  .page-shell { padding: 35px 28px 60px; }
  .filter-bar { flex-wrap: wrap; }
  .filter-bar .search-field { min-width: 220px; }
  .filter-bar .field:not(.search-field) { min-width: 135px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
  .admin-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
  .member-controls { gap: 7px; }
  .auth-shell { gap: 60px; }
}
@media (max-width: 900px) {
  .header-inner { gap: 25px; }
  .primary-nav { gap: 22px; }
  .account-name { display: none; }
  .header-account { gap: 14px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 18px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .detail-sidebar > section:last-child { grid-column: 1 / -1; }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .invite-panel { max-width: none; }
  .invite-panel .stack-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
  .invite-panel .stack-form label { align-self: end; margin: 0; }
  .invite-panel .stack-form > input, .invite-panel .stack-form > select { margin: 0 0 9px; }
  .invite-panel .stack-form label:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .invite-panel .stack-form input[name="username"] { grid-column: 1; grid-row: 2; }
  .invite-panel .stack-form label:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .invite-panel .stack-form input[name="display_name"] { grid-column: 2; grid-row: 2; }
  .invite-panel .stack-form label:nth-of-type(3) { grid-column: 1; grid-row: 3; }
  .invite-panel .stack-form input[name="email"] { grid-column: 1; grid-row: 4; }
  .invite-panel .stack-form label:nth-of-type(4) { grid-column: 2; grid-row: 3; }
  .invite-panel .stack-form select { grid-column: 2; grid-row: 4; }
  .invite-panel .stack-form .button { grid-column: 1 / -1; justify-self: start; width: auto; }
  .auth-shell { grid-template-columns: minmax(0, 1fr) 350px; gap: 35px; padding-left: 28px; padding-right: 28px; }
  .auth-intro h1 { font-size: 35px; }
  .intro-copy { font-size: 13px; }
  .intro-preview { max-width: 280px; }
  .auth-card { padding: 30px 27px; }
}
@media (max-width: 680px) {
  .header-inner { min-height: 66px; padding: 0 20px; gap: 17px; flex-wrap: wrap; }
  .brand-text { font-size: 16px; }
  .brand-mark { width: 29px; height: 29px; padding: 7px; gap: 3px; border-radius: 8px; }
  .brand-mark span { width: 3px; height: 9px; }
  .brand-mark span:nth-child(2) { height: 14px; }
  .brand-mark span:nth-child(3) { height: 11px; }
  .primary-nav { order: 3; flex-basis: 100%; gap: 24px; min-height: 43px; }
  .primary-nav a { font-size: 12px; padding: 0 0 11px; }
  .header-account { gap: 14px; }
  .avatar { width: 29px; height: 29px; font-size: 11px; }
  .logout-button { font-size: 11px; }
  .header-tag { font-size: 10px; }
  .page-shell { padding: 28px 20px 40px; }
  .page-heading { align-items: flex-start; margin-bottom: 24px; gap: 15px; }
  .page-heading .button { font-size: 11px; padding: 8px 11px; min-height: 36px; margin-top: 19px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading .muted { font-size: 12px; max-width: 240px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.6px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 22px; }
  .stat-card { padding: 17px 18px; }
  .stat-label { font-size: 11px; }
  .stat-card strong { font-size: 29px; margin: 4px 0; }
  .stat-note { font-size: 10px; }
  .panel-heading { padding: 20px; }
  .panel-heading .subtle-label { display: none; }
  .filter-bar { padding: 15px 20px 20px; gap: 13px 11px; }
  .filter-bar .search-field { min-width: 100%; }
  .filter-bar .field:not(.search-field) { min-width: calc(50% - 6px); }
  .filter-overdue { margin: 7px 0; }
  .filter-buttons { margin-left: auto; gap: 14px; }
  .action-table thead { display: none; }
  .action-table, .action-table tbody, .action-table tr, .action-table td { display: block; }
  .action-table tr { padding: 18px 20px; border-top: 1px solid #edf1ed; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .action-table td, .action-table td:first-child, .action-table td:last-child { border: 0; padding: 0; }
  .action-table .action-title-cell { width: auto; grid-column: 1 / -1; padding-bottom: 4px; }
  .action-table td:not(.action-title-cell)::before { content: attr(data-label); display: block; color: #a1ada4; font-size: 9px; margin-bottom: 5px; }
  .action-table .row-title { font-size: 14px; }
  .action-table .row-id { display: inline-block; margin-left: 6px; }
  .action-table .overdue-note { display: inline; margin-left: 6px; }
  .padded-panel { padding: 21px; }
  .detail-heading h1 { font-size: 26px; }
  .back-link { margin-bottom: 23px; }
  .detail-grid, .detail-main, .detail-sidebar { gap: 18px; }
  .detail-sidebar { grid-template-columns: minmax(0, 1fr); }
  .detail-sidebar > section:last-child { grid-column: auto; }
  .form-grid { gap: 13px; }
  .edit-form { gap: 18px; }
  .section-heading .subtle-label { font-size: 9px; letter-spacing: 0; }
  .meta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .meta-list > div { margin: 0; }
  .helper-list { font-size: 12px; }
  .member-table thead { display: none; }
  .member-table, .member-table tbody, .member-table tr, .member-table td { display: block; }
  .member-table tr { padding: 20px; border-top: 1px solid #edf1ed; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .member-table td, .member-table td:first-child, .member-table td:last-child { padding: 0; border: 0; }
  .member-table td:last-child { grid-column: 1 / -1; border-top: 1px solid #f0f3f0; padding-top: 12px; }
  .member-table .member-controls { justify-content: flex-start; gap: 15px; }
  .member-table td:nth-child(2) { text-align: right; }
  .member-table td:nth-child(2)::before { content: attr(data-label); display: block; font-size: 9px; color: #a2afa5; margin-bottom: 5px; }
  .member-controls .button { margin-left: auto; }
  .account-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .profile-panel .meta-list { margin-top: 20px; padding-top: 18px; }
  .auth-shell { display: flex; flex-direction: column; padding: 38px 20px 50px; gap: 29px; min-height: calc(100vh - 141px); }
  .auth-intro { width: 100%; max-width: 390px; }
  .auth-intro h1 { font-size: 31px; margin-bottom: 12px; }
  .auth-intro h1 br { display: none; }
  .auth-intro .eyebrow { font-size: 8px; margin-bottom: 14px; }
  .intro-copy { font-size: 12px; margin-bottom: 0; max-width: 360px; }
  .intro-preview { display: none; }
  .auth-card { width: 100%; max-width: 390px; padding: 28px 25px; }
  .auth-card h2 { font-size: 22px; }
  .auth-shell > .flash-stack { width: 100%; max-width: 390px; }
  .single-auth { padding-top: 45px; justify-content: flex-start; }
  .single-auth h1 { font-size: 23px; }
  .site-footer { padding: 22px 20px; min-height: 75px; font-size: 9px; gap: 15px; }
  .error-state { margin: 40px auto 60px; }
  .error-code { font-size: 70px; }
}
@media (max-width: 380px) {
  .header-inner { padding-left: 15px; padding-right: 15px; }
  .page-shell { padding-left: 15px; padding-right: 15px; }
  .brand-text { font-size: 15px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading .button { padding: 7px 9px; }
  .form-grid { grid-template-columns: 1fr; }
  .invite-panel .stack-form { display: flex; }
  .invite-panel .stack-form label { align-self: flex-start; }
  .invite-panel .stack-form .button { align-self: flex-start; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .filter-bar, .form-actions, .upload-form, .comment-form, .back-link, .flash-stack { display: none !important; }
  body, :root { background: white; }
  .page-shell { padding: 0; max-width: none; }
  .panel { break-inside: avoid; box-shadow: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .page-heading { margin-bottom: 20px; }
}
