/* 事项状态与自定义标签补充样式 */
.status-dot{width:22px;height:22px;border:1.5px solid #a9b9c7;border-radius:50%;display:grid;place-items:center;color:#8a9aa9;margin-top:2px;font-weight:700}.status-dot.doing{border-color:#d99c18;color:#d99c18}.status-dot.done{background:#0878d1;border-color:#0878d1;color:#fff}.status-dot.archived{border-style:dashed;color:#9ca9b5}.action-main{color:#0878d1}
.header-actions{display:flex;gap:9px;flex-wrap:wrap}.category-add{display:flex;gap:9px}.category-add input{flex:1}.category-list{display:grid;gap:8px;margin-top:18px}.category-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e5ebf1;padding:10px 0}.category-row:first-child{border-top:0}.category-delete{border:0;background:transparent;color:#657384;font:inherit;cursor:pointer;padding:7px}@media(max-width:680px){.header-actions{margin-top:12px}.category-add{align-items:stretch}.category-add .primary-button{padding:0 12px}}
.brand-mark{object-fit:cover;background:#eff8ff;padding:0;border:1px solid #d7e6f2}.brand .brand-mark{width:42px;height:42px;border-radius:12px}.login-card .brand-mark{width:64px;height:64px;border-radius:18px}.idea-entry{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;background:#fff;border:1px solid #e5ebf1;border-radius:12px;padding:18px;margin-bottom:18px}.idea-row{grid-template-columns:1fr auto}.idea-row .actions{align-self:center}.danger-action{color:#b94737}@media(max-width:680px){.idea-entry{grid-template-columns:1fr}.idea-entry .primary-button{width:100%}}
.review-note{margin-top:8px!important;padding:9px 11px;border-left:3px solid #8fc6ed;background:#f3f9fd;border-radius:0 8px 8px 0;color:#415a6d!important}
.sidebar-foot span{display:inline-flex;align-items:center;gap:6px}.sidebar-foot span::before{content:"";width:7px;height:7px;border-radius:50%;background:#9aa8b5}.sidebar-foot span[data-state="synced"]::before{background:#2e9d68}.sidebar-foot span[data-state="syncing"]::before{background:#0878d1}.sidebar-foot span[data-state="pending"]::before{background:#d99c18}.sidebar-foot span[data-state="error"],.sidebar-foot span[data-state="conflict"]{color:#a44b3d}.sidebar-foot span[data-state="error"]::before,.sidebar-foot span[data-state="conflict"]::before{background:#c95e4e}
@media(min-width:1200px){.recipe-grid{grid-template-columns:repeat(4,1fr)}}
.recipe-card{padding:0;overflow:hidden}.recipe-cover{position:relative;aspect-ratio:9/16;background:#eaf4fb;overflow:hidden}.recipe-cover img{width:100%;height:100%;display:block;object-fit:cover}.recipe-cover>span{position:absolute;top:12px;right:12px;background:rgba(17,31,43,.68);color:#fff;border-radius:18px;padding:5px 9px;font-size:11px;backdrop-filter:blur(6px)}.recipe-cover-empty{display:grid;place-content:center;text-align:center;background:linear-gradient(155deg,#e7f5ff 0%,#f8fbfd 50%,#e8f0f5 100%);color:#0878d1}.recipe-cover-empty>span{position:static;background:rgba(255,255,255,.72);color:#0878d1;width:70px;height:70px;border-radius:24px;display:grid;place-items:center;margin:auto;font-size:30px;border:1px solid rgba(8,120,209,.12)}.recipe-cover-empty small{margin-top:13px;color:#657384;font-size:12px}.recipe-card-body{padding:18px 18px 4px}.recipe-card-body h3{margin-top:12px}.recipe-card-body details{margin-top:10px;color:#536373;font-size:13px}.recipe-card-body summary{color:#0878d1;cursor:pointer}.recipe-media-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px 18px 0}.recipe-media-actions .secondary-button{display:grid;place-items:center;text-align:center;padding:8px;line-height:1.3}.recipe-upload{cursor:pointer}.recipe-upload input{display:none}.recipe-card .recipe-foot{margin:0 18px;padding:12px 0 16px;border-top:1px solid #e5ebf1;gap:4px}.recipe-photo-field>span{font-size:12px;color:#657384}.recipe-photo-field img{width:min(180px,100%);aspect-ratio:9/16;object-fit:cover;border-radius:10px;border:1px solid #e5ebf1;background:#eff8ff}.recipe-photo-field input[type=file]{padding:8px;min-height:48px}.recipe-media-actions button:disabled{opacity:.65;cursor:wait}@media(max-width:680px){.recipe-media-actions{grid-template-columns:1fr}.recipe-cover{max-height:72vh}.recipe-grid{max-width:430px;margin-inline:auto}}
@media(max-width:680px){
  body{font-size:14px;background:#f7f9fc}
  .sidebar{width:min(82vw,300px);padding:18px 12px}
  .brand{padding:0 8px 18px}
  .nav-item{height:50px;border-radius:11px}
  .topbar{position:sticky;top:0;z-index:2;height:72px;padding:9px 14px;box-shadow:0 1px 12px rgba(28,64,91,.04)}
  .topbar .icon-button,.topbar .profile{width:44px;height:44px;flex:0 0 44px}
  #pageTitle{flex:1;min-width:0;padding:0 10px;text-align:left}
  .topbar p{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar h1{font-size:19px;line-height:1.25;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .page{padding:20px 14px 38px}
  .section-intro{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;justify-content:stretch;gap:13px;margin-bottom:14px}
  .section-intro>div:first-child{min-width:0}
  .section-intro p{font-size:12px}
  .section-intro h1{font-size:24px;line-height:1.32;margin-top:3px;letter-spacing:-.4px}
  .header-actions{display:grid;grid-template-columns:1fr 1.15fr;width:100%;gap:9px;margin:0}
  .header-actions .primary-button,.header-actions .secondary-button{width:100%;height:44px;min-height:44px;padding:0 10px;font-size:14px;white-space:nowrap}
  .filters{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;margin:0 -14px 16px;padding:2px 14px 8px;scrollbar-width:none}
  .filters::-webkit-scrollbar{display:none}
  .chip{flex:0 0 auto;min-height:44px;padding:0 16px;background:#fff}
  .item-list>.empty{min-height:150px;display:grid;place-items:center;background:#fff;border:1px solid #e7edf3;border-radius:14px;padding:26px 20px;box-shadow:0 8px 24px rgba(28,64,91,.045);line-height:1.8}
  .item{padding:14px;border-radius:13px;gap:10px}
  .item h3{font-size:15px;line-height:1.45}
  .item .actions{gap:2px;flex-wrap:wrap}
  .action{min-height:44px;padding:8px 9px}
  .text-button{min-height:44px}
  .date-control input{min-height:44px}
  .helper{line-height:1.7;margin-bottom:14px}
  .quick-actions{display:grid;grid-template-columns:1fr 1fr}
  .quick-actions button{width:100%;padding:0 10px}
  dialog form{padding:18px}
  .dialog-head{margin-bottom:14px}
  .field-grid{grid-template-columns:1fr;gap:12px}
  .field-grid .full{grid-column:auto}
  .dialog-actions{position:sticky;bottom:0;background:#fff;padding-top:12px;margin-top:12px}
  .dialog-actions button{flex:1}
}
@media(max-width:350px){
  .page{padding-inline:12px}
  .section-intro h1{font-size:22px}
  .header-actions{gap:7px}
  .header-actions .primary-button,.header-actions .secondary-button{font-size:13px;padding-inline:7px}
  .filters{margin-inline:-12px;padding-inline:12px}
  .quick-actions{grid-template-columns:1fr}
}
