/* 芃芃需求。“芃芃”是草木茂盛的意思：底色是清晨的浅绿带一点暖光，主色墨绿；
   四列的小图标是一棵苗从种子长到开花（待接收、处理中、待验收、已结束）；优先级用卡片左边的色条。 */
:root {
  --ink: #13251D;
  --ink-soft: #3B4E44;
  --muted: #6B7A71;
  --paper: #ECF2EA;
  --card: #FFFFFF;
  --line: #DFE6DE;
  --line-soft: #ECF0EA;
  --moss: #1F7A4D;
  --moss-deep: #145A37;
  --moss-tint: #E4F2E9;
  --sprout: #9FE3BC;
  --urgent: #D5402B;
  --high: #E08A1E;
  --mid: #9FB1A6;
  --low: #CFD8D1;
  --amber-tint: #FCF1DC;
  --red-tint: #FCE8E4;
  --text: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --num: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif;
  --shadow-1: 0 1px 2px rgba(19, 37, 29, .05), 0 2px 8px rgba(19, 37, 29, .04);
  --shadow: 0 2px 4px rgba(19, 37, 29, .06), 0 12px 28px rgba(19, 37, 29, .10);
}
* { box-sizing: border-box; }
html { height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100%; color: var(--ink); font: 14px/1.55 var(--text); -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 440px at 6% -10%, rgba(126, 211, 165, .32), transparent 62%),
    radial-gradient(820px 400px at 94% -12%, rgba(255, 214, 140, .24), transparent 62%) var(--paper);
  background-attachment: fixed; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- 按钮 ---------- */
.btn { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 7px 14px; font-weight: 500; line-height: 1.4; transition: background .12s, border-color .12s, box-shadow .12s, transform .12s; }
.btn:hover { border-color: #BFCBC2; background: #F7F9F6; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #2B9160, var(--moss)); border-color: #1B6E45; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(20, 90, 55, .35); }
.btn.primary:hover { background: linear-gradient(180deg, #25855A, var(--moss-deep)); border-color: var(--moss-deep); }
.btn.danger { color: var(--urgent); }
.btn.danger:hover { background: var(--red-tint); border-color: #EFB7AE; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-soft); }
.btn.ghost:hover { background: rgba(19, 37, 29, .06); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.big { padding: 10px 20px; font-size: 15px; border-radius: 12px; }

/* ---------- 头像：人是圆的，AI 是方的 ---------- */
.who { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.face { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; flex: none; box-shadow: 0 0 0 2px #fff, 0 1px 2px rgba(19, 37, 29, .18); }
.face.ai { border-radius: 7px; background: var(--ink) !important; color: var(--sprout); }
.face.lg { width: 30px; height: 30px; font-size: 13px; }
.face.lg.ai { border-radius: 9px; }
.ai-tag { font: 600 10px/1 var(--num); color: var(--moss); border: 1px solid #B9DCC7; border-radius: 4px; padding: 2px 4px; letter-spacing: .04em; background: #fff; }
.route { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.route .arrow { color: var(--mid); font-family: var(--num); }

/* ---------- 顶栏 ---------- */
.top { display: flex; align-items: center; gap: 20px; padding: 18px 28px 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.brand img { width: 32px; height: 32px; display: block; border-radius: 9px; box-shadow: 0 2px 6px rgba(19, 37, 29, .22); }
.brand small { font: 500 11px/1 var(--text); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px; letter-spacing: 0; background: rgba(255, 255, 255, .6); }
.tabs { display: flex; gap: 2px; background: rgba(19, 37, 29, .06); border-radius: 12px; padding: 4px; }
.tab { border: 0; background: transparent; border-radius: 9px; padding: 6px 14px; color: var(--ink-soft); font-weight: 500; display: flex; align-items: center; gap: 6px; transition: background .12s, color .12s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(19, 37, 29, .12), 0 2px 6px rgba(19, 37, 29, .06); }
.badge { font: 600 12px/1 var(--num); min-width: 20px; padding: 4px 6px; border-radius: 10px; background: rgba(19, 37, 29, .09); text-align: center; }
.badge.hot { background: var(--urgent); color: #fff; }
.top .grow { flex: 1; }
.search { border: 1px solid var(--line); background: rgba(255, 255, 255, .85); border-radius: 10px; padding: 7px 12px; width: 200px; min-width: 90px; transition: border-color .12s, box-shadow .12s, background .12s; }
.search:focus { outline: none; background: #fff; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(31, 122, 77, .14); }
.pick { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 7px 10px; }
.me { display: flex; align-items: center; gap: 8px; }
.btn.bell { border-color: #9CCDB1; background: var(--moss-tint); color: var(--moss-deep); }
.bell-off { font-size: 12px; color: var(--muted); cursor: help; border-bottom: 1px dashed var(--mid); }

/* ---------- 一句话提需求，和“我手上”的急事数量 ---------- */
.strip { display: flex; align-items: center; gap: 24px; padding: 4px 28px 18px; }
.quick { position: relative; flex: 1; max-width: 900px; }
.quick::before { content: "＋"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #2B9160, var(--moss)); color: #fff; font-size: 14px; font-weight: 700; pointer-events: none; box-shadow: 0 1px 3px rgba(20, 90, 55, .4); }
.quick-input { width: 100%; border: 1px solid rgba(19, 37, 29, .10); background: #fff; border-radius: 14px; padding: 14px 76px 14px 50px; font-size: 15.5px; box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s; }
.quick-input::placeholder { color: #8A978F; }
.quick-input:hover { border-color: rgba(19, 37, 29, .18); }
.quick-input:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 4px rgba(31, 122, 77, .14), var(--shadow-1); }
.quick-key { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 600 11px/1.4 var(--text); color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 8px; background: #F7F9F6; pointer-events: none; }
.quick-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid rgba(19, 37, 29, .08); border-radius: 14px; box-shadow: var(--shadow); padding: 13px 14px; z-index: 10; animation: drop .14s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.quick-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quick-chips .grow { flex: 1; }
.quick-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #F7F9F6; border-radius: 999px; padding: 5px 13px 5px 11px; font-weight: 600; transition: border-color .12s, background .12s; }
.quick-chip .k { font-weight: 400; font-size: 12px; color: var(--muted); }
.quick-chip .face { box-shadow: none; }
.quick-chip:hover { border-color: #BFCBC2; background: #F0F4EF; }
.quick-chip.missing { border-style: dashed; border-color: #D9B36C; background: var(--amber-tint); color: #7A4705; font-weight: 500; }
.quick-chip.missing .k { color: #9A5A06; }
.quick-panel .link { border: 0; background: none; padding: 0; color: var(--moss); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.quick-hint { margin-bottom: 11px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.quick-hint b { color: var(--ink); font-weight: 600; }
.quick-hint.bad { color: var(--urgent); }
.popover.down { bottom: auto; top: 100%; margin: 6px 0 0; }
.popover .side { margin-left: auto; color: var(--muted); font-size: 12px; }
.popover input[type="date"] { width: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mid); flex: none; }
.dot.p-紧急 { background: var(--urgent); box-shadow: 0 0 0 3px rgba(213, 64, 43, .16); }
.dot.p-高 { background: var(--high); box-shadow: 0 0 0 3px rgba(224, 138, 30, .16); }
.dot.p-低 { background: var(--low); }
.load { display: flex; align-items: center; gap: 4px; margin-left: -6px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.load-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 5px 10px; color: var(--ink-soft); transition: background .12s, border-color .12s; }
.load-chip b { font: 600 18px/1 var(--num); font-variant-numeric: tabular-nums; }
.load-chip.p-紧急 b { color: var(--urgent); }
.load-chip.p-高 b { color: #9A5A06; }
.load-chip.zero b { color: var(--mid); font-weight: 500; }
.load-chip.zero .dot { box-shadow: none; opacity: .55; }
.load-chip:hover { background: rgba(19, 37, 29, .06); }
.load-chip[aria-pressed="true"] { background: var(--card); border-color: rgba(19, 37, 29, .2); box-shadow: var(--shadow-1); }

/* ---------- 看板：四列是四块浅色的地，卡片浮在上面 ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; padding: 0 28px 40px; align-items: start; }
.col { background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .95); border-radius: 18px; padding: 14px 12px 4px; min-height: 190px; box-shadow: 0 1px 2px rgba(19, 37, 29, .04); }
.col.done { background: rgba(255, 255, 255, .36); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 0 4px 12px; }
.col-head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.col-head .num { font-size: 13px; font-weight: 600; color: var(--ink-soft); background: rgba(19, 37, 29, .07); border-radius: 999px; min-width: 26px; padding: 1px 8px; text-align: center; }
.col-head .hint { margin-left: auto; color: var(--muted); font-size: 12px; }
.col.done .col-head h2, .col.done .col-head .num { color: var(--muted); }
.stage { width: 20px; height: 20px; flex: none; background: no-repeat center / contain; }
.stage.s-种子 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231F7A4D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 16.5h14'/%3E%3Cpath d='M10 13.5c-2.2 0-3.6-1.7-3.6-3.9C6.4 7 8 5.2 10 4.3c2 .9 3.6 2.7 3.6 5.3 0 2.2-1.4 3.9-3.6 3.9z' fill='%23E4F2E9'/%3E%3C/svg%3E"); }
.stage.s-嫩芽 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231F7A4D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17h14'/%3E%3Cpath d='M10 17v-7'/%3E%3Cpath d='M10 11.2c0-3-2-4.9-5.6-4.9 0 3.2 2 4.9 5.6 4.9z' fill='%239FE3BC'/%3E%3Cpath d='M10 9.2c0-2.7 1.8-4.5 5.2-4.5 0 3-1.9 4.5-5.2 4.5z' fill='%23E4F2E9'/%3E%3C/svg%3E"); }
.stage.s-花苞 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231F7A4D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17.5h14'/%3E%3Cpath d='M10 17.5V10'/%3E%3Cpath d='M10 10c-2.3 0-3.4-1.7-3.4-3.6 0-1.4.5-2.6 1.4-3.6L10 4.6l2-1.8c.9 1 1.4 2.2 1.4 3.6 0 1.9-1.1 3.6-3.4 3.6z' fill='%23FCE3B4'/%3E%3Cpath d='M10 14.6c0-1.6-1.1-2.6-3-2.6 0 1.700 1.100 2.600 3 2.600z' fill='%239FE3BC'/%3E%3C/svg%3E"); }
.stage.s-开花 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238FA398' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17.5h14'/%3E%3Cpath d='M10 17.5v-6'/%3E%3Ccircle cx='10' cy='3.900' r='1.900' fill='%23fff'/%3E%3Ccircle cx='13.100' cy='6.200' r='1.900' fill='%23fff'/%3E%3Ccircle cx='11.900' cy='9.800' r='1.900' fill='%23fff'/%3E%3Ccircle cx='8.100' cy='9.800' r='1.900' fill='%23fff'/%3E%3Ccircle cx='6.900' cy='6.200' r='1.900' fill='%23fff'/%3E%3Ccircle cx='10' cy='7.200' r='1.500' fill='%23F3CC7A' stroke='none'/%3E%3C/svg%3E"); }
.empty { color: var(--muted); font-size: 13px; text-align: center; padding: 26px 8px; margin-bottom: 10px; border: 1.5px dashed rgba(19, 37, 29, .12); border-radius: 12px; }
.card { position: relative; display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid rgba(19, 37, 29, .07); border-radius: 13px; padding: 13px 14px 13px 19px; margin-bottom: 10px; box-shadow: var(--shadow-1); transition: box-shadow .16s, transform .16s, border-color .16s; }
.card::before { content: ""; position: absolute; left: 7px; top: 13px; bottom: 13px; width: 4px; border-radius: 4px; background: var(--mid); }
.card[data-p="紧急"]::before { background: var(--urgent); }
.card[data-p="高"]::before { background: var(--high); }
.card[data-p="低"]::before { background: var(--low); }
.card:hover { box-shadow: var(--shadow); border-color: rgba(19, 37, 29, .14); transform: translateY(-2px); }
.card .line1 { display: flex; align-items: baseline; gap: 8px; }
.card .id { font: 600 13px/1.4 var(--num); color: var(--muted); }
.card .title { font-size: 14.5px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .route { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.card.closed { opacity: .78; box-shadow: none; }
.card.closed .title { font-weight: 500; color: var(--ink-soft); }
.card.closed::before { background: var(--low) !important; }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; background: #F0F4EF; color: var(--ink-soft); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.chip.sys { background: var(--moss-tint); color: var(--moss-deep); }
.chip.due-late { background: var(--red-tint); color: var(--urgent); font-weight: 600; }
.chip.due-today { background: var(--amber-tint); color: #9A5A06; font-weight: 600; }
.chip.back { background: var(--amber-tint); color: #9A5A06; }
.chip.p-紧急 { background: var(--red-tint); color: var(--urgent); font-weight: 600; }
.chip.p-高 { background: var(--amber-tint); color: #9A5A06; font-weight: 600; }

/* ---------- 浮层：详情抽屉、表单 ---------- */
.veil { position: fixed; inset: 0; background: rgba(19, 37, 29, .34); display: flex; justify-content: flex-end; z-index: 20; animation: fade .15s ease-out; }
.veil.center { justify-content: center; align-items: flex-start; padding: 5vh 20px; overflow: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer { width: min(620px, 100vw); height: 100%; background: var(--card); display: flex; flex-direction: column; border-radius: 22px 0 0 22px; overflow: hidden; box-shadow: -16px 0 48px rgba(19, 37, 29, .22); animation: slide .2s ease-out; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 18px 24px 0; }
.drawer-head .id { font: 600 20px/1 var(--num); color: var(--muted); }
.state { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 11px; background: var(--ink); color: #fff; }
.state.s-待批准 { background: #B4551E; }
.state.s-待接收 { background: #9A5A06; }
.state.s-处理中 { background: #1D6F86; }
.state.s-待验收 { background: #5B4BC4; }
.state.s-已完成 { background: var(--moss); }
.state.s-已退回 { background: var(--high); }
.state.s-已撤销 { background: var(--mid); }
.drawer-body { flex: 1; overflow: auto; padding: 14px 24px 24px; }
.drawer h1 { margin: 0 0 14px; font-size: 21px; line-height: 1.45; font-weight: 700; }
.drawer .route { font-size: 15px; gap: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.facts .chip { font-size: 13px; padding: 3px 11px; }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; margin: 16px 0 0; padding: 14px 16px; background: #F7F9F6; border-radius: 12px; font-size: 14.5px; line-height: 1.75; color: var(--ink); }
.desc.none { color: var(--muted); background: transparent; padding: 0; }
.shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shot { position: relative; width: 104px; height: 78px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #F4F6F3; padding: 0; transition: box-shadow .12s, transform .12s; }
.shot:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.small { width: 76px; height: 57px; }
.shot .x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(19, 37, 29, .72); color: #fff; font-size: 12px; line-height: 20px; padding: 0; }
.shot.loading::after { content: "上传中"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .8); font-size: 12px; color: var(--muted); }
.section-title { margin: 26px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .1em; }
/* 经过：一条从上到下的线，把每一步串起来 */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 9px 0; }
.feed li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 43px; bottom: -5px; width: 1px; background: var(--line); }
.feed .headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 13px; padding-top: 5px; }
.feed .headline b { font-weight: 600; }
.feed .verb { color: var(--ink-soft); }
.feed time { color: var(--muted); font-size: 12px; margin-left: auto; font-family: var(--num); }
.feed .words { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 5px; padding: 9px 12px; background: #F4F7F3; border-radius: 4px 12px 12px 12px; line-height: 1.65; }
.feed .via { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.warn { margin-top: 12px; background: var(--amber-tint); color: #7A4705; border-radius: 10px; padding: 9px 13px; font-size: 13px; }
.composer { border-top: 1px solid var(--line); padding: 14px 24px 18px; background: #FAFBF9; }
.composer textarea { width: 100%; min-height: 62px; max-height: 200px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--card); line-height: 1.6; transition: border-color .12s, box-shadow .12s; }
.composer textarea:focus, .field input:focus, .field textarea:focus, .sheet.small textarea:focus, .login-card input:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(31, 122, 77, .14); }
.composer .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.composer .row .grow { flex: 1; }
.error { color: var(--urgent); font-size: 13px; min-height: 20px; margin-top: 6px; }
.popover { position: absolute; bottom: 100%; left: 0; margin-bottom: 6px; background: var(--card); border: 1px solid rgba(19, 37, 29, .08); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 176px; z-index: 5; }
.popover button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; padding: 7px 10px; border-radius: 8px; text-align: left; }
.popover button .face { box-shadow: none; }
.popover button:hover { background: #F0F4EF; }
.popover.right { left: auto; right: 0; }
.popover button.danger { color: var(--urgent); }
.composer .next { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--line); }
.composer .next .row { margin-top: 9px; }
.composer .hint { color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.sheet.small { width: min(440px, 100%); margin-top: 12vh; }
.sheet.small textarea { width: 100%; min-height: 96px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; line-height: 1.6; resize: vertical; }
.tip { color: var(--muted); margin: 6px 0 12px; }
.anchor { position: relative; }

.sheet { width: min(680px, 100%); background: var(--card); border-radius: 20px; box-shadow: 0 24px 64px rgba(19, 37, 29, .3); animation: fade .15s ease-out; }
.sheet-head { display: flex; align-items: center; padding: 20px 26px 4px; }
.sheet-head h1 { margin: 0; font-size: 19px; font-weight: 700; flex: 1; }
.sheet-body { padding: 8px 26px 4px; }
.sheet-foot { display: flex; align-items: center; gap: 10px; padding: 14px 26px 22px; }
.sheet-foot .grow { flex: 1; }
.field { margin-top: 16px; }
.field > label, .field > .label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input[type="text"], .field input[type="date"], .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--card); transition: border-color .12s, box-shadow .12s; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 13px 5px 6px; font-weight: 500; transition: border-color .12s, background .12s; }
.choice .face { box-shadow: none; }
.choice.text { padding: 5px 15px; }
.choice:hover { border-color: #BFCBC2; }
.choice[aria-pressed="true"] { border-color: var(--moss); background: var(--moss-tint); color: var(--moss-deep); box-shadow: inset 0 0 0 1px var(--moss); }
.choice.p-紧急[aria-pressed="true"] { border-color: var(--urgent); background: var(--red-tint); color: var(--urgent); box-shadow: inset 0 0 0 1px var(--urgent); }
.choice.p-高[aria-pressed="true"] { border-color: var(--high); background: var(--amber-tint); color: #9A5A06; box-shadow: inset 0 0 0 1px var(--high); }
.two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
.dateline { display: flex; flex-wrap: nowrap; gap: 0; align-items: center; }
.dateline input { width: 136px !important; margin-right: 4px; flex: none; }
.dateline .btn { padding: 6px 6px; white-space: nowrap; }
.drop { border: 1.5px dashed #C3CFC6; border-radius: 12px; padding: 13px; background: #FAFBF9; color: var(--muted); font-size: 13px; }
.drop.over { border-color: var(--moss); background: var(--moss-tint); color: var(--moss-deep); }
.drop .link { border: 0; background: none; padding: 0; color: var(--moss); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.drop .shots:empty { display: none; }

/* ---------- 看大图 ---------- */
.viewer { position: fixed; inset: 0; background: rgba(10, 18, 14, .9); z-index: 40; display: grid; place-items: center; padding: 30px; cursor: zoom-out; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 10px 50px rgba(0, 0, 0, .5); }

/* ---------- 登录 ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.login-card { width: 390px; background: rgba(255, 255, 255, .9); border: 1px solid #fff; border-radius: 22px; box-shadow: 0 2px 4px rgba(19, 37, 29, .05), 0 24px 60px rgba(19, 37, 29, .13); padding: 38px 36px 30px; }
.login-card .brand { font-size: 23px; margin-bottom: 6px; }
.login-card .brand img { width: 42px; height: 42px; border-radius: 12px; }
.login-card p { color: var(--muted); margin: 8px 0 22px; }
.login-card input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px; margin-bottom: 12px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.login-card .btn { width: 100%; margin-top: 4px; }

/* ---------- 提示条 ---------- */
#toasts { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.toast { background: var(--ink); color: #fff; border: 0; border-left: 4px solid var(--sprout); border-radius: 12px; padding: 12px 16px 12px 14px; max-width: 400px; text-align: left; line-height: 1.6; box-shadow: 0 12px 34px rgba(19, 37, 29, .34); animation: slide .2s ease-out; }
.toast b { color: var(--sprout); font-weight: 600; }
.toast.plain { background: #2E4037; border-left-color: #6E8F7D; }

@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, minmax(240px, 1fr)); } .search { width: 140px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
