:root {
  --ink: #142033;
  --muted: #657386;
  --canvas: #eef2f6;
  --surface: #ffffff;
  --soft: #f3f6f9;
  --line: #dfe5ec;
  --line-strong: #ccd5df;
  --blue: #1769e0;
  --blue-dark: #0d4faa;
  --green: #149f75;
  --amber: #a96d0e;
  --red: #cc4c42;
  --shadow: 0 24px 70px rgba(23, 38, 58, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 2%, rgba(23, 105, 224, 0.08), transparent 25rem),
    radial-gradient(circle at 90% 92%, rgba(20, 159, 117, 0.055), transparent 24rem),
    var(--canvas);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(20, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 51, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
  pointer-events: none;
}

button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(23, 105, 224, 0.24); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.page-shell { width: min(1280px, calc(100% - 64px)); min-height: 100vh; margin: 0 auto; }
.brand-mark { width: 38px; height: 38px; display: flex; align-items: end; gap: 3px; padding: 10px; border-radius: 11px; color: #fff; background: var(--ink); box-shadow: 0 8px 22px rgba(20, 32, 51, 0.16); }
.brand-mark i { display: block; width: 4px; border-radius: 4px; background: currentColor; }
.brand-mark i:nth-child(1) { height: 8px; opacity: 0.5; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 12px; opacity: 0.72; }
.connection { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 10px/1 "SFMono-Regular", "Menlo", monospace; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(20, 159, 117, 0.11); }
.connection.is-offline .pulse { background: var(--red); box-shadow: 0 0 0 5px rgba(204, 76, 66, 0.11); }

main { padding: 34px 0 58px; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font: 700 9px/1.2 "SFMono-Regular", "Menlo", monospace; letter-spacing: 0.13em; }

.work-board { overflow: hidden; border: 1px solid rgba(204, 213, 223, 0.95); border-radius: var(--radius); background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.board-header { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 23px 26px 21px 30px; }
.board-identity { min-width: 0; display: flex; align-items: center; gap: 16px; }
.board-heading h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.board-heading > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.board-overview { flex: 0 0 auto; display: flex; align-items: center; gap: 22px; }
.board-navigation { display: flex; align-items: stretch; padding: 0 24px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfcfd; }
.board-tabs { min-width: 0; display: flex; flex: 1 1 auto; gap: 4px; }
.board-tab { position: relative; min-height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 0; color: #7b8796; background: transparent; cursor: pointer; font: 650 11px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; }
.board-tab::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; content: ""; border-radius: 2px 2px 0 0; background: transparent; }
.board-tab strong { min-width: 20px; padding: 4px 6px; border-radius: 999px; color: #5d6c7e; background: #edf1f5; font: 700 10px/1 "SFMono-Regular", "Menlo", monospace; text-align: center; }
.board-tab:hover { color: var(--ink); }
.board-tab.is-active { color: var(--ink); }
.board-tab.is-active::after { background: var(--blue); }
.board-tab.is-active strong { color: #fff; background: var(--ink); }
.board-external-tab { position: relative; min-height: 46px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; margin-left: 14px; padding: 0 13px 0 18px; border-left: 1px solid var(--line); color: #566579; font: 650 11px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; text-decoration: none; transition: color 140ms ease, background 140ms ease; }
.board-external-tab::after { position: absolute; right: 10px; bottom: -1px; left: 14px; height: 2px; content: ""; border-radius: 2px 2px 0 0; background: transparent; transition: background 140ms ease; }
.board-external-tab:hover, .board-external-tab:focus-visible { color: var(--blue-dark); background: #f5f8fc; }
.board-external-tab:hover::after, .board-external-tab:focus-visible::after { background: var(--blue); }
.board-external-mark { color: var(--blue); font: 700 13px/1 "SFMono-Regular", "Menlo", monospace; }
.board-view[hidden] { display: none; }
.overview-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); background: #f7f9fb; }
.board-navigation + .board-view .overview-filters { border-top: 0; }
.overview-filter { min-height: 62px; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px; margin: 0; padding: 12px 20px; border: 0; border-left: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; text-align: left; transition: color 150ms ease, background 150ms ease; }
.overview-filter:first-child { border-left: 0; }
.overview-filter strong { font: 500 24px/1 "SFMono-Regular", "Menlo", monospace; letter-spacing: -0.08em; }
.overview-filter span { padding-bottom: 2px; color: var(--muted); font-size: 10px; line-height: 1.15; }
.overview-filter.is-today strong { color: var(--blue); }
.overview-filter.is-history strong { color: var(--amber); }
.overview-filter.is-done strong { color: var(--green); }
.overview-filter:hover { background: #fff; }
.overview-filter.is-active { color: #fff; background: var(--ink); }
.overview-filter.is-active strong, .overview-filter.is-active span { color: #fff; }
.task-tools { display: grid; grid-template-columns: minmax(190px, 1fr) 150px 150px 142px auto auto auto; align-items: center; gap: 10px; padding: 12px 24px 12px 30px; border-top: 1px solid var(--line); background: #fbfcfd; }
.search-field { position: relative; }
.search-field::before { position: absolute; top: 50%; left: 13px; width: 11px; height: 11px; border: 1.5px solid #8b97a6; border-radius: 50%; content: ""; transform: translateY(-58%); pointer-events: none; }
.search-field::after { position: absolute; top: calc(50% + 5px); left: 23px; width: 5px; height: 1.5px; content: ""; background: #8b97a6; transform: rotate(45deg); transform-origin: left center; pointer-events: none; }
.search-field input, .owner-field select, .module-filter-field select, .priority-filter-field select { width: 100%; height: 38px; border: 1px solid #d8e0e8; border-radius: 9px; color: var(--ink); background: #fff; font: 11px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; transition: border-color 140ms ease, box-shadow 140ms ease; }
.search-field input { padding: 0 14px 0 36px; }
.search-field input::placeholder { color: #9aa4b0; }
.search-field input:focus, .owner-field select:focus, .module-filter-field select:focus, .priority-filter-field select:focus { outline: none; border-color: #85abe0; box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.08); }
.owner-field, .module-filter-field, .priority-filter-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; }
.owner-field > span, .module-filter-field > span, .priority-filter-field > span { color: #7c8897; font-size: 10px; white-space: nowrap; }
.owner-field select, .module-filter-field select, .priority-filter-field select { min-width: 0; padding: 0 8px; }
.result-count { min-width: 84px; color: #657386; text-align: right; font: 10px/1.2 "SFMono-Regular", "Menlo", monospace; }
.sort-field, .sort-direction { display: none; }
.sort-direction { width: 38px; min-height: 38px; padding: 0; border: 1px solid #cbd8e8; border-radius: 9px; color: var(--blue-dark); background: #f3f7fd; cursor: pointer; font: 700 16px/1 "SFMono-Regular", "Menlo", monospace; }
.sort-direction:hover:not(:disabled) { border-color: #91b1dc; background: #eaf2fc; }
.add-task { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 9px; color: #fff; background: var(--ink); cursor: pointer; font: 650 10px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; white-space: nowrap; transition: background 140ms ease, transform 140ms ease; }
.add-task:hover:not(:disabled) { background: #24344a; transform: translateY(-1px); }
.add-task:disabled { opacity: 0.48; cursor: default; transform: none; }
.export-excel { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px 0 10px; border: 1px solid #b9d9cb; border-radius: 9px; color: #117153; background: #edf8f4; cursor: pointer; font: 650 10px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; white-space: nowrap; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; }
.export-excel:hover:not(:disabled) { border-color: #79b79f; background: #e2f4ed; transform: translateY(-1px); }
.export-excel:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.export-mark { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; color: #fff; background: #16845f; font: 800 9px/1 "SFMono-Regular", "Menlo", monospace; }
.export-excel.is-exporting .export-mark { animation: export-pulse 800ms ease-in-out infinite alternate; }

.task-list-head, .task-card { grid-template-columns: 100px minmax(180px, 1.25fr) 100px 72px 82px 100px 100px minmax(100px, 0.55fr) 112px; column-gap: 10px; }
.task-list-head { position: sticky; z-index: 3; top: 0; display: grid; align-items: center; padding: 11px 24px 10px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #657386; background: rgba(247, 249, 251, 0.96); backdrop-filter: blur(10px); font: 10px/1.2 "SFMono-Regular", "Menlo", monospace; letter-spacing: 0.07em; }
.sort-button { min-width: 0; display: inline-flex; align-items: center; gap: 4px; padding: 3px 0; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; letter-spacing: inherit; text-align: left; }
.sort-button:hover, .sort-button:focus-visible, .sort-button.is-active { color: var(--blue-dark); }
.sort-indicator { flex: 0 0 auto; color: #a1acb8; font: 12px/1 "SFMono-Regular", "Menlo", monospace; letter-spacing: 0; }
.sort-button.is-active .sort-indicator { color: var(--blue); }
.new-task-form { display: grid; grid-template-columns: 110px minmax(220px, 1.25fr) 110px 96px 82px minmax(155px, 0.9fr); align-items: end; gap: 12px; padding: 16px 24px 14px 30px; border-bottom: 1px solid #cdddf2; background: #f5f9fe; box-shadow: inset 3px 0 var(--blue); }
.new-task-form[hidden] { display: none; }
.new-task-field { min-width: 0; display: grid; gap: 7px; }
.new-task-field > span { color: #637083; font-size: 9px; font-weight: 650; }
.new-task-field input, .new-task-field select, .new-task-field textarea { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #cfdbe9; border-radius: 8px; color: var(--ink); background: #fff; font: 11px/1.5 "PingFang SC", "Hiragino Sans GB", sans-serif; transition: border-color 140ms ease, box-shadow 140ms ease; }
.new-task-field textarea { padding-block: 9px; resize: none; }
.new-task-field input:focus, .new-task-field select:focus, .new-task-field textarea:focus { outline: none; border-color: #75a2df; box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.08); }
.new-task-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.new-task-cancel, .new-task-save { min-height: 32px; padding: 0 14px; border-radius: 7px; cursor: pointer; font: 10px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; }
.new-task-cancel { border: 1px solid #ccd6e1; color: var(--muted); background: #fff; }
.new-task-save { border: 1px solid var(--blue); color: #fff; background: var(--blue); }
.new-task-save:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.new-task-save:disabled { opacity: 0.55; cursor: wait; }
.task-list { background: var(--surface); }
.task-card { --status: var(--blue); position: relative; height: 68px; display: grid; grid-template-areas: "module main owner priority status created completed note actions"; align-items: center; padding: 8px 24px 8px 30px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: inset 3px 0 transparent; animation: reveal 0.32s ease both; transition: background 160ms ease, box-shadow 160ms ease, opacity 160ms ease; }
.task-card:last-child { border-bottom: 0; }
.task-card:hover { background: #f8fbff; box-shadow: inset 3px 0 var(--status); }
.task-card.is-linked-task { background: #fffbea; box-shadow: inset 3px 0 #d89b24, 0 0 0 2px rgba(216, 155, 36, 0.24); }
.task-card[data-status="进行中"] { --status: #1769e0; }
.task-card[data-status="收件箱"] { --status: #8492a6; }
.task-card[data-status="等待中"] { --status: #a96d0e; }
.task-card[data-status="已完成"] { --status: #149f75; }
.task-card[data-status="已搁置"] { --status: #a56b5e; }
.task-main { grid-area: main; min-width: 0; }
.task-title-field { position: relative; display: block; min-width: 0; padding-bottom: 10px; }
.task-status, .task-id { font: 10px/1.2 "SFMono-Regular", "Menlo", monospace; letter-spacing: 0.03em; }
.task-id { display: block; margin-bottom: 3px; overflow: hidden; color: #96a1ae; text-overflow: ellipsis; white-space: nowrap; }
.task-module-field { grid-area: module; min-width: 0; }
.task-owner-field { grid-area: owner; min-width: 0; }
.task-priority-field { grid-area: priority; min-width: 0; }
.task-app-id-field { display: none; grid-area: app; min-width: 0; }
.task-note-field { grid-area: note; min-width: 0; }
.task-actions { grid-area: actions; justify-self: end; display: flex; gap: 5px; }
.task-follow-up { min-height: 30px; padding: 0 9px; border: 1px solid #cfe0f6; border-radius: 7px; color: var(--blue-dark); background: #f5f9ff; cursor: pointer; font: 650 9px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; }
.task-follow-up:hover:not(:disabled) { border-color: #8db2e5; background: #eaf3ff; }
.task-follow-up:disabled { opacity: 0.55; cursor: wait; }
.task-date { position: relative; min-width: 0; padding-bottom: 10px; color: #657386; white-space: nowrap; }
.task-created { grid-area: created; }
.task-completed { grid-area: completed; }
.task-module-field, .task-owner-field, .task-priority-field, .task-app-id-field, .task-note-field { position: relative; padding-bottom: 10px; }
.inline-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.task-module, .task-title-input, .task-owner, .task-app-id, .task-note, .task-date-input { width: 100%; border: 1px solid #e0e7ee; border-radius: 7px; color: #425166; background: #f8fafc; font-family: "PingFang SC", "Hiragino Sans GB", sans-serif; transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease; }
.task-module, .task-title-input, .task-owner, .task-app-id, .task-note { height: 34px; padding: 0 9px; overflow: hidden; line-height: 32px; text-overflow: ellipsis; white-space: nowrap; }
.task-module, .task-owner { padding-right: 27px; font-size: 12px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23657586' d='M1 1.25 6 6.5l5-5.25' stroke='%23657586' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.task-title-input { font-size: 12px; font-weight: 650; letter-spacing: -0.01em; }
.task-app-id { font: 10px/32px "SFMono-Regular", "Menlo", monospace; }
.task-note { color: var(--muted); font-size: 10px; }
.task-module:focus, .task-title-input:focus, .task-owner:focus, .task-app-id:focus, .task-note:focus { overflow-x: auto; text-overflow: clip; }
.task-date-input { min-width: 0; height: 34px; padding: 0 5px 0 8px; font: 10px/1 "SFMono-Regular", "Menlo", monospace; letter-spacing: -0.04em; }
.task-date-input::-webkit-calendar-picker-indicator { width: 12px; height: 12px; margin: 0; padding: 2px; opacity: 0.45; cursor: pointer; }
.task-module::placeholder, .task-title-input::placeholder, .task-owner::placeholder, .task-app-id::placeholder, .task-note::placeholder { color: #a0aab6; }
.task-module:hover, .task-title-input:hover, .task-owner:hover, .task-app-id:hover, .task-note:hover, .task-date-input:hover { border-color: #d7e0e9; background: #fff; }
.task-module:focus, .task-title-input:focus, .task-owner:focus, .task-app-id:focus, .task-note:focus, .task-date-input:focus { outline: none; border-color: #85abe0; background: #fff; box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.08); }
.field-save-state { position: absolute; right: 2px; bottom: -2px; min-height: 10px; color: #657386; font-size: 9px; line-height: 1; }
[data-save-state="saving"] .field-save-state { color: var(--blue); }
[data-save-state="saved"] .field-save-state { color: var(--green); }
[data-save-state="error"] .field-save-state { color: var(--red); }
[data-save-state="dirty"] .field-save-state { color: var(--amber); }
[data-save-state="saving"] .task-module, [data-save-state="saving"] .task-title-input, [data-save-state="saving"] .task-owner, [data-save-state="saving"] .task-app-id, [data-save-state="saving"] .task-note, [data-save-state="saving"] .task-date-input { border-color: #8db2e5; }
[data-save-state="saved"] .task-module, [data-save-state="saved"] .task-title-input, [data-save-state="saved"] .task-owner, [data-save-state="saved"] .task-app-id, [data-save-state="saved"] .task-note, [data-save-state="saved"] .task-date-input { border-color: #8fcbb7; }
[data-save-state="error"] .task-module, [data-save-state="error"] .task-title-input, [data-save-state="error"] .task-owner, [data-save-state="error"] .task-app-id, [data-save-state="error"] .task-note, [data-save-state="error"] .task-date-input { border-color: #e4a39e; }
.task-status { grid-area: status; justify-self: start; max-width: 100%; height: 34px; padding: 0 5px 0 8px; border: 1px solid color-mix(in srgb, var(--status) 18%, white); border-radius: 7px; color: var(--status); background: color-mix(in srgb, var(--status) 9%, white); cursor: pointer; font-weight: 700; }
.task-status:hover { border-color: color-mix(in srgb, var(--status) 40%, white); }
.task-priority { width: 100%; height: 34px; padding: 0 5px 0 8px; border: 1px solid #e4dccb; border-radius: 7px; color: #76571d; background: #fffaf0; cursor: pointer; font: 700 10px/1.2 "PingFang SC", "Hiragino Sans GB", sans-serif; }
.task-priority:hover, .task-priority:focus { outline: none; border-color: #d4ba84; background: #fff; box-shadow: 0 0 0 3px rgba(200, 135, 24, 0.08); }
[data-save-state="saving"] .task-priority { border-color: #8db2e5; }
[data-save-state="saved"] .task-priority { border-color: #8fcbb7; }
[data-save-state="error"] .task-priority { border-color: #e4a39e; }
.task-delete { min-height: 30px; padding: 0 9px; border: 1px solid #ead7d4; border-radius: 7px; color: #a04a42; background: #fffafa; cursor: pointer; font: 650 9px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; transition: border-color 140ms ease, color 140ms ease, background 140ms ease; }
.task-delete:hover:not(:disabled) { border-color: #d99b95; color: #862f28; background: #fff2f0; }
.task-delete:disabled { opacity: 0.45; cursor: wait; }
.task-card.is-updating { opacity: 0.52; pointer-events: none; }
.inline-option-menu { position: fixed; z-index: 100; max-height: min(280px, 45vh); padding: 5px; overflow-y: auto; border: 1px solid #d5dee8; border-radius: 10px; background: #fff; box-shadow: 0 14px 38px rgba(20, 32, 51, 0.16); }
.inline-option-menu[hidden] { display: none; }
.inline-option-item { width: 100%; min-height: 34px; display: flex; align-items: center; padding: 0 10px; border: 0; border-radius: 6px; color: #425166; background: transparent; cursor: pointer; font: 11px/1.35 "PingFang SC", "Hiragino Sans GB", sans-serif; text-align: left; }
.inline-option-item:hover, .inline-option-item[aria-selected="true"] { color: var(--blue-dark); background: #edf4fd; }
.inline-option-empty { padding: 10px; color: #8b97a6; font-size: 10px; text-align: center; }
.draft-view { min-height: 380px; background: #fff; }
.draft-view-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 30px; background: linear-gradient(110deg, #fffaf0, #fff 58%); }
.draft-kicker { margin: 0 0 7px; color: var(--amber); font: 700 9px/1 "SFMono-Regular", "Menlo", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.draft-view-header h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 23px; line-height: 1.1; }
.draft-view-header div > p:last-child { max-width: 560px; margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.draft-header-actions { display: flex; align-items: center; gap: 14px; }
.draft-summary { min-width: 82px; display: grid; justify-items: end; }
.draft-summary strong { color: var(--amber); font: 500 28px/1 "SFMono-Regular", "Menlo", monospace; letter-spacing: -0.08em; }
.draft-summary span { margin-top: 6px; color: var(--muted); font-size: 9px; }
.draft-dismiss-all { min-height: 34px; padding: 0 12px; border: 1px solid #d8c8aa; border-radius: 8px; color: #8a641f; background: rgba(255, 255, 255, 0.82); cursor: pointer; font: 650 9px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; white-space: nowrap; }
.draft-dismiss-all:hover:not(:disabled) { border-color: #b9934d; color: #6d4b0e; background: #fff; }
.draft-dismiss-all:disabled { opacity: 0.45; cursor: default; }
.draft-list-head, .draft-row { display: grid; grid-template-columns: 150px minmax(280px, 0.9fr) minmax(360px, 1.35fr) 118px; column-gap: 14px; }
.draft-list-head { align-items: center; padding: 10px 24px 10px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #8792a1; background: #f7f9fb; font: 9px/1.2 "SFMono-Regular", "Menlo", monospace; letter-spacing: 0.08em; }
.draft-row { min-height: 168px; align-items: start; padding: 18px 24px 18px 30px; border-bottom: 1px solid var(--line); animation: reveal 0.32s ease both; transition: background 150ms ease, opacity 150ms ease; }
.draft-row:hover { background: #fffdf8; }
.draft-row.is-updating { opacity: 0.5; pointer-events: none; }
.draft-source-meta { min-width: 0; display: grid; justify-items: start; gap: 6px; }
.draft-confidence { padding: 4px 7px; border: 1px solid #ead8b3; border-radius: 999px; color: #9a6710; background: #fff7e7; font-size: 8px; font-weight: 700; }
.draft-conversation { max-width: 100%; overflow: hidden; color: #4d5c70; font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.draft-time { color: #97a1ad; font: 8px/1.2 "SFMono-Regular", "Menlo", monospace; }
.draft-task-fields { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 8px; align-items: end; }
.draft-question-field, .draft-owner-field { min-width: 0; }
.draft-question { width: 100%; height: 52px; padding: 8px 10px; border: 1px solid #d9e1e9; border-radius: 8px; color: var(--ink); background: #f9fbfc; font: 620 12px/1.5 "PingFang SC", "Hiragino Sans GB", sans-serif; resize: none; transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease; }
.draft-question:hover { border-color: #cbd7e3; background: #fff; }
.draft-question:focus { outline: none; border-color: #85abe0; background: #fff; box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.08); }
.draft-owner { width: 100%; height: 52px; padding: 8px 10px; border: 1px solid #d9e1e9; border-radius: 8px; color: #4d5c70; background: #f9fbfc; font: 600 10px/1.2 "PingFang SC", "Hiragino Sans GB", sans-serif; }
.draft-owner:hover { border-color: #cbd7e3; background: #fff; }
.draft-owner:focus { outline: none; border-color: #85abe0; background: #fff; box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.08); }
.draft-plan { min-width: 0; display: grid; gap: 9px; }
.draft-plan-block { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
.draft-plan-block > span { color: #9a6710; font: 700 8px/1.55 "SFMono-Regular", "Menlo", monospace; letter-spacing: 0.04em; }
.draft-plan p, .draft-plan ol, .draft-plan ul { margin: 0; }
.draft-plan ol, .draft-plan ul { padding-left: 16px; }
.draft-plan li, .draft-objective { color: #4f5f72; font-size: 10px; line-height: 1.5; }
.draft-plan-meta { padding-top: 7px; border-top: 1px dashed #e3e8ee; color: #7a8796; font-size: 9px; line-height: 1.5; }
.draft-evidence { color: #7d8997; font-size: 9px; }
.draft-evidence summary { width: fit-content; cursor: pointer; color: #6e7d90; font-weight: 650; }
.draft-excerpt { margin: 8px 0 0; padding: 9px 10px; border-radius: 7px; color: #778393; background: #f6f8fa; font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.draft-actions { display: grid; gap: 7px; }
.draft-dismiss, .draft-promote { min-height: 32px; padding: 0 9px; border-radius: 7px; cursor: pointer; font: 650 9px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; }
.draft-dismiss { border: 1px solid #d8e0e8; color: #778393; background: #fff; }
.draft-promote { border: 1px solid var(--ink); color: #fff; background: var(--ink); }
.draft-dismiss:hover { border-color: #b7c4d1; color: var(--ink); }
.draft-promote:hover { background: #24344a; }
.draft-empty { min-height: 260px; display: grid; place-content: center; justify-items: center; padding: 40px 20px; color: var(--muted); text-align: center; }
.draft-empty::before { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 14px; border: 1px dashed #d5b87e; border-radius: 13px; color: #a87419; background: #fff9ec; content: "?"; font: 700 18px/1 "Songti SC", "STSong", serif; }
.draft-empty strong { color: #526075; font-size: 13px; }
.draft-empty p { max-width: 430px; margin: 8px 0 0; font-size: 10px; line-height: 1.6; }
.release-view { min-height: 380px; background: #fff; }
.release-view .task-list-head, .release-view .task-card { grid-template-columns: 100px minmax(180px, 1.25fr) 100px 82px 100px 112px minmax(135px, 0.8fr) 48px; }
.release-view .task-card { grid-template-areas: "module main owner status created app note actions"; }
.release-view .task-priority-field { display: none; }
.release-view .task-completed { display: none; }
.release-view .task-app-id-field { display: block; }
.release-new-task-form { grid-template-columns: 100px minmax(200px, 1.25fr) 100px 112px 112px minmax(135px, 0.8fr); }
#release-new-task-date { color: #5d6b7d; background: #eef3f8; cursor: default; }
.release-tools { min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 11px 24px 11px 30px; background: #fbfcfd; }
.release-date-filter-field { display: flex; align-items: center; gap: 9px; color: #7c8897; font-size: 10px; white-space: nowrap; }
.release-date-filter-field input { width: 150px; height: 38px; padding: 0 9px; border: 1px solid #d8e0e8; border-radius: 9px; color: var(--ink); background: #fff; font: 10px/1 "SFMono-Regular", "Menlo", monospace; transition: border-color 140ms ease, box-shadow 140ms ease; }
.release-date-filter-field input:focus { outline: none; border-color: #85abe0; box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.08); }
.release-today { min-height: 38px; padding: 0 13px; border: 1px solid #cbd8e8; border-radius: 9px; color: var(--blue-dark); background: #f3f7fd; cursor: pointer; font: 650 10px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; transition: border-color 140ms ease, background 140ms ease; }
.release-today:hover:not(:disabled) { border-color: #91b1dc; background: #eaf2fc; }
.release-today:disabled { color: #8c97a5; background: #f3f5f7; cursor: default; opacity: 0.7; }
.release-filter-summary { margin-left: auto; color: #83909f; font: 9px/1.3 "SFMono-Regular", "Menlo", monospace; text-align: right; }
.trash-view { min-height: 380px; background: #fff; }
.trash-view-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 30px; background: linear-gradient(110deg, #f4f7fa, #fff 60%); }
.trash-kicker { margin: 0 0 7px; color: #687789; font: 700 9px/1 "SFMono-Regular", "Menlo", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.trash-view-header h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 23px; line-height: 1.1; }
.trash-view-header div > p:last-child { max-width: 560px; margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.trash-summary { min-width: 86px; display: grid; justify-items: end; }
.trash-summary strong { color: #657487; font: 500 28px/1 "SFMono-Regular", "Menlo", monospace; letter-spacing: -0.08em; }
.trash-summary span { margin-top: 6px; color: var(--muted); font-size: 9px; }
.trash-list-head, .trash-row { display: grid; grid-template-columns: 124px minmax(280px, 1fr) 120px 94px 142px 78px; grid-template-areas: "id main owner status deleted restore"; column-gap: 14px; }
.trash-list-head { align-items: center; padding: 10px 24px 10px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #8792a1; background: #f7f9fb; font: 9px/1.2 "SFMono-Regular", "Menlo", monospace; letter-spacing: 0.08em; }
.trash-row { min-height: 82px; align-items: center; padding: 13px 24px 13px 30px; border-bottom: 1px solid var(--line); background: #fff; animation: reveal 0.32s ease both; transition: background 150ms ease, opacity 150ms ease; }
.trash-row:hover { background: #f8fafc; }
.trash-row.is-updating { opacity: 0.5; pointer-events: none; }
.trash-task-id { grid-area: id; overflow: hidden; color: #778698; font: 9px/1.3 "SFMono-Regular", "Menlo", monospace; text-overflow: ellipsis; white-space: nowrap; }
.trash-main { grid-area: main; min-width: 0; display: grid; gap: 6px; }
.trash-title { overflow: hidden; color: #344258; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.trash-module { overflow: hidden; color: #96a1ae; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.trash-owner { grid-area: owner; overflow: hidden; color: #657386; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.trash-status { grid-area: status; justify-self: start; padding: 5px 7px; border: 1px solid #d9e0e7; border-radius: 999px; color: #667587; background: #f5f7f9; font-size: 9px; font-weight: 650; }
.trash-deleted-at { grid-area: deleted; color: #8793a1; font: 9px/1.3 "SFMono-Regular", "Menlo", monospace; }
.trash-restore { grid-area: restore; min-height: 32px; padding: 0 11px; border: 1px solid #a9c5e8; border-radius: 7px; color: #1c5fae; background: #f4f8fd; cursor: pointer; font: 650 9px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; transition: border-color 140ms ease, color 140ms ease, background 140ms ease; }
.trash-restore:hover:not(:disabled) { border-color: #6f9fd8; color: #0d4faa; background: #eaf3fe; }
.trash-restore:disabled { opacity: 0.5; cursor: wait; }
.trash-empty { min-height: 260px; display: grid; place-content: center; justify-items: center; padding: 40px 20px; color: var(--muted); text-align: center; }
.trash-empty::before { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 14px; border: 1px dashed #b8c4d0; border-radius: 13px; color: #718196; background: #f7f9fb; content: "↺"; font: 500 19px/1 "SFMono-Regular", "Menlo", monospace; }
.trash-empty strong { color: #526075; font-size: 13px; }
.trash-empty p { max-width: 430px; margin: 8px 0 0; font-size: 10px; line-height: 1.6; }
.follow-up-view { min-height: 380px; background: #fff; }
.follow-up-view-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 30px; background: linear-gradient(110deg, #f1f7ff, #fff 60%); }
.follow-up-kicker { margin: 0 0 7px; color: var(--blue); font: 700 9px/1 "SFMono-Regular", "Menlo", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.follow-up-view-header h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 23px; line-height: 1.1; }
.follow-up-view-header div > p:last-child { max-width: 560px; margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.follow-up-summary { min-width: 86px; display: grid; justify-items: end; }
.follow-up-summary strong { color: var(--blue); font: 500 28px/1 "SFMono-Regular", "Menlo", monospace; letter-spacing: -0.08em; }
.follow-up-summary span { margin-top: 6px; color: var(--muted); font-size: 9px; }
.follow-up-list-head, .follow-up-row { display: grid; grid-template-columns: 112px minmax(210px, 1.1fr) minmax(260px, 1.6fr) 100px 74px; grid-template-areas: "time task content owner status"; column-gap: 14px; }
.follow-up-list-head { align-items: center; padding: 10px 24px 10px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #8792a1; background: #f7f9fb; font: 9px/1.2 "SFMono-Regular", "Menlo", monospace; letter-spacing: 0.08em; }
.follow-up-row { min-height: 78px; align-items: center; padding: 14px 24px 14px 30px; border-bottom: 1px solid var(--line); animation: reveal 0.32s ease both; transition: background 150ms ease; }
.follow-up-row:hover { background: #f8fbff; }
.follow-up-time { grid-area: time; color: #8793a1; font: 9px/1.3 "SFMono-Regular", "Menlo", monospace; }
.follow-up-task { grid-area: task; min-width: 0; display: grid; gap: 5px; }
.follow-up-task-id { color: #718197; font: 9px/1.2 "SFMono-Regular", "Menlo", monospace; }
.follow-up-title { overflow: hidden; color: #344258; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.follow-up-content { grid-area: content; min-width: 0; margin: 0; overflow: hidden; color: #5d6b7d; font-size: 10px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.follow-up-owner { grid-area: owner; overflow: hidden; color: #657386; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.follow-up-status { grid-area: status; justify-self: start; padding: 5px 7px; border: 1px solid #d9e0e7; border-radius: 999px; color: #667587; background: #f5f7f9; font-size: 9px; font-weight: 650; }
.follow-up-status.is-sent { border-color: #b9ddcf; color: #247657; background: #effaf5; }
.follow-up-status.is-failed { border-color: #e4b8b1; color: #a04a42; background: #fff5f3; }
.follow-up-status.is-pending { border-color: #cbd8e8; color: var(--blue-dark); background: #f3f7fd; }
.follow-up-empty { min-height: 260px; display: grid; place-content: center; justify-items: center; padding: 40px 20px; color: var(--muted); text-align: center; }
.follow-up-empty::before { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 14px; border: 1px dashed #a9c5e8; border-radius: 13px; color: var(--blue); background: #f3f8ff; content: "↗"; font: 500 19px/1 "SFMono-Regular", "Menlo", monospace; }
.follow-up-empty strong { color: #526075; font-size: 13px; }
.follow-up-empty p { margin: 8px 0 0; font-size: 10px; line-height: 1.6; }
.empty-state { padding: 58px 20px; color: var(--muted); text-align: center; }
.empty-state p { margin: 0; }
.clear-filters { min-height: 34px; margin-top: 14px; padding: 0 13px; border: 1px solid #ccd7e2; border-radius: 8px; color: #4d5c70; background: #fff; cursor: pointer; font: 10px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; }
.clear-filters:hover { border-color: #9db2ca; background: #f7faff; }

.page-shell > footer { min-height: 74px; display: flex; align-items: center; justify-content: space-between; color: #657386; font: 10px/1.5 "SFMono-Regular", "Menlo", monospace; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 32px)); display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; color: #fff; background: var(--ink); box-shadow: 0 18px 46px rgba(23, 33, 43, 0.22); opacity: 0; transform: translateY(10px); transition: opacity 180ms ease, transform 180ms ease; font-size: 12px; line-height: 1.5; }
.toast-message { min-width: 0; }
.toast-action { min-height: 36px; flex: 0 0 auto; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 8px; color: #fff; background: rgba(255, 255, 255, 0.12); cursor: pointer; font: 700 11px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; }
.toast-action:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); }
.toast-action:disabled { opacity: 0.5; cursor: wait; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { background: #9e332b; }

@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes export-pulse { to { opacity: 0.45; transform: scale(0.86); } }

@media (max-width: 940px) {
  .page-shell { width: min(100% - 34px, 880px); }
  .task-tools { grid-template-columns: minmax(190px, 1fr) 140px 140px 132px; }
  .result-count { text-align: left; }
  .task-list-head, .task-card { grid-template-columns: 76px minmax(145px, 1.1fr) 82px 62px 70px 84px 84px minmax(80px, 0.55fr) 104px; column-gap: 7px; }
  .release-view .task-list-head, .release-view .task-card { grid-template-columns: 76px minmax(145px, 1.1fr) 82px 70px 84px 96px minmax(80px, 0.55fr) 104px; }
  .new-task-form { grid-template-columns: 96px minmax(190px, 1.2fr) 96px 82px 72px minmax(135px, 0.8fr); column-gap: 9px; padding-inline: 22px; }
  .release-new-task-form { grid-template-columns: 82px minmax(180px, 1.2fr) 88px 90px 100px minmax(120px, 0.75fr); }
  .task-list-head { padding-inline: 22px; }
  .task-card { padding-inline: 22px; }
  .draft-list-head, .draft-row { grid-template-columns: 120px minmax(240px, 1.1fr) minmax(170px, 0.8fr) 100px; column-gap: 10px; padding-inline: 22px; }
  .trash-list-head, .trash-row { grid-template-columns: 105px minmax(220px, 1fr) 96px 82px 124px 70px; column-gap: 10px; padding-inline: 22px; }
  .follow-up-list-head, .follow-up-row { grid-template-columns: 94px minmax(170px, 1fr) minmax(190px, 1.2fr) 82px 66px; column-gap: 10px; padding-inline: 22px; }
}

@media (max-width: 820px) {
  .page-shell { width: calc(100% - 20px); }
  .brand-mark { width: 35px; height: 35px; padding: 9px; }
  .connection { font-size: 10px; }
  main { padding: 14px 0 42px; }
  .work-board { border-radius: 14px; }
  .board-header { min-height: 0; align-items: stretch; flex-direction: column; gap: 17px; padding: 20px 16px 16px; }
  .board-identity { gap: 13px; }
  .board-heading h1 { font-size: 29px; }
  .board-heading > p:last-child { margin-top: 7px; font-size: 10px; }
  .board-overview { align-items: stretch; flex-direction: column; gap: 11px; }
  .connection { align-self: flex-end; order: 2; }
  .board-navigation { padding-inline: 12px; }
  .board-tab { flex: 1; justify-content: center; min-height: 44px; }
  .overview-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-filter { min-height: 54px; gap: 6px; padding: 10px 11px; }
  .overview-filter:nth-child(3n + 1) { border-left: 0; }
  .overview-filter:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .overview-filter strong { font-size: 20px; }
  .overview-filter span { font-size: 10px; }
  .task-tools { grid-template-columns: 1fr auto; gap: 9px; padding: 11px 14px; }
  .task-tools input, .task-tools select, .task-tools button { min-height: 44px; }
  .search-field { grid-column: 1 / -1; }
  .owner-field, .module-filter-field, .priority-filter-field { grid-template-columns: auto minmax(0, 1fr); }
  .sort-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; }
  .sort-field > span { color: #7c8897; font-size: 10px; white-space: nowrap; }
  .sort-field select { min-width: 0; width: 100%; height: 44px; padding: 0 8px; border: 1px solid #d8e0e8; border-radius: 9px; color: var(--ink); background: #fff; font: 11px/1 "PingFang SC", "Hiragino Sans GB", sans-serif; }
  .sort-direction { display: block; grid-column: 2; min-height: 44px; justify-self: end; }
  .result-count { grid-column: 1 / -1; min-width: 74px; text-align: right; }
  .add-task, .export-excel { width: 100%; }
  .task-list-head { display: none; }
  .task-list { border-top: 1px solid var(--line); }
  .new-task-form { grid-template-columns: 1fr; align-items: stretch; gap: 12px; padding: 15px 16px 14px 18px; }
  .new-task-actions { grid-column: auto; }
  .new-task-field input, .new-task-field select, .new-task-field textarea, .new-task-cancel, .new-task-save { min-height: 44px; }
  .new-task-cancel, .new-task-save { flex: 1; }
  .task-card { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "module module" "main main" "owner owner" "priority status" "created completed" "note note" "actions actions"; row-gap: 11px; padding: 15px 16px 14px 18px; }
  .release-view .task-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "module module" "main main" "owner owner" "status status" "created created" "app app" "note note" "actions actions"; }
  .release-view .task-status { justify-self: start; }
  .task-id { margin-bottom: 7px; }
  .task-title-field { display: grid; gap: 6px; padding-bottom: 12px; }
  .task-title-input { height: 36px; font-size: 12px; line-height: 34px; }
  .task-module-field, .task-owner-field, .task-priority-field, .task-note-field { display: grid; gap: 6px; padding-bottom: 12px; }
  .release-view .task-app-id-field { display: grid; gap: 6px; padding-bottom: 12px; }
  .inline-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: #657386; font-size: 10px; white-space: normal; }
  .task-module, .task-owner { height: 34px; padding-inline: 9px; font-size: 11px; background: #f8fafc; }
  .task-status { justify-self: end; min-width: 84px; }
  .task-priority { min-width: 96px; }
  .task-date { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; padding-top: 10px; padding-bottom: 12px; border-top: 1px dashed var(--line); font-size: 10px; }
  .task-date .inline-label { color: #657386; }
  .task-date-input { height: 34px; font-size: 10px; }
  .task-note-field { padding-top: 9px; border-top: 1px dashed var(--line); }
  .task-note { height: 36px; font-size: 10px; line-height: 34px; background: #f8fafc; }
  .task-actions { justify-self: end; }
  .task-follow-up, .task-delete { min-height: 44px; padding-inline: 14px; }
  .draft-view-header { min-height: 0; align-items: flex-start; padding: 20px 18px; }
  .draft-view-header h2 { font-size: 21px; }
  .draft-header-actions { align-items: flex-end; flex-direction: column; gap: 9px; }
  .draft-summary { min-width: 56px; }
  .draft-dismiss-all { min-height: 44px; padding-inline: 10px; }
  .draft-list-head { display: none; }
  .draft-list { border-top: 1px solid var(--line); }
  .draft-row { min-height: 0; grid-template-columns: 1fr; gap: 12px; padding: 16px 18px; }
  .draft-source-meta { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .draft-time { grid-column: 1 / -1; }
  .draft-question { height: 58px; }
  .draft-task-fields { grid-template-columns: minmax(0, 1fr) 106px; }
  .draft-owner { height: 58px; }
  .draft-plan { padding: 12px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
  .draft-actions { grid-template-columns: 1fr 1.4fr; }
  .draft-dismiss, .draft-promote { min-height: 44px; }
  .release-tools { flex-wrap: wrap; padding: 11px 14px; }
  .release-tools input, .release-tools button { min-height: 44px; }
  .release-add-task { width: auto; }
  .release-filter-summary { flex-basis: 100%; margin-left: 0; text-align: left; }
  .trash-view-header { min-height: 0; align-items: flex-start; padding: 20px 18px; }
  .trash-view-header h2 { font-size: 21px; }
  .trash-summary { min-width: 58px; }
  .trash-list-head { display: none; }
  .trash-list { border-top: 1px solid var(--line); }
  .trash-row { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id status" "main main" "owner owner" "deleted restore"; gap: 11px 14px; padding: 16px 18px; }
  .trash-title { white-space: normal; }
  .trash-owner { padding-top: 10px; border-top: 1px dashed var(--line); }
  .trash-deleted-at { align-self: center; }
  .trash-restore { min-width: 90px; min-height: 44px; }
  .follow-up-view-header { min-height: 0; align-items: flex-start; padding: 20px 18px; }
  .follow-up-view-header h2 { font-size: 21px; }
  .follow-up-summary { min-width: 58px; }
  .follow-up-list-head { display: none; }
  .follow-up-list { border-top: 1px solid var(--line); }
  .follow-up-row { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time status" "task task" "content content" "owner owner"; gap: 9px 14px; padding: 16px 18px; }
  .follow-up-content { padding-top: 10px; border-top: 1px dashed var(--line); -webkit-line-clamp: unset; }
  .follow-up-owner { padding-top: 9px; color: #7a8796; border-top: 1px dashed var(--line); }
  .task-module, .task-owner, .task-title-input, .task-app-id, .task-note, .task-date-input, .task-priority, .task-status { height: 44px; }
  .task-module, .task-owner, .task-title-input, .task-app-id, .task-note { line-height: 42px; }
  .inline-option-item, .clear-filters, .toast-action { min-height: 44px; }
  .page-shell > footer { min-height: 66px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding-inline: 4px; }
  .toast { right: 16px; bottom: 16px; }
}

@media (max-width: 460px) {
  .board-navigation { padding-inline: 7px; }
  .board-tabs { gap: 0; }
  .board-tab { min-width: 0; gap: 5px; padding-inline: 7px; font-size: 9px; }
  .board-tab strong { min-width: 18px; padding-inline: 5px; }
  .release-date-filter-field { flex: 1; }
  .release-date-filter-field input { min-width: 0; width: 100%; }
  .release-add-task { width: 100%; }
  .trash-view-header { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
