@charset "UTF-8";.ai-widget {
  --ai-accent: var(--accent);
  --ai-surface: #fff;
  --ai-brand: var(--accent);
  --ai-brand-strong: var(--accent-strong);
  --ai-brand-gradient: linear-gradient(135deg, #6366f1, var(--accent));
  --ai-ok: #56826c;
  --ai-soft: #fcfbfe;
  position: fixed; z-index: var(--z-ai); border-radius: 24px; background: var(--ai-surface); color: #29283f;
  box-shadow: 0 20px 70px #36305a24, 0 3px 12px #36305a0d;
  border: 1px solid #e8e5f2; overflow: hidden; font-family: inherit;
}
.ai-expanded { display: flex; flex-direction: column; }
.ai-heading {
  display: flex; align-items: center; gap: 11px; padding: 19px 19px 16px;
  background: linear-gradient(115deg, var(--accent-soft), #faf9ff 65%, #f0f7ff);
  cursor: grab; touch-action: none; user-select: none; flex-shrink: 0;
}
.ai-heading:active { cursor: grabbing; }
.ai-brand-symbol, .ai-welcome-symbol {
  display: grid; place-items: center; color: var(--ai-surface); background: var(--ai-brand-gradient);
  box-shadow: 0 4px 12px rgb(91 91 214 / 16%);
}
.ai-brand-symbol { width: 42px; height: 42px; border-radius: var(--radius-xl); font-size: 28px; }
.ai-heading strong { flex: 1; font-size: var(--text-subtitle); font-weight: 650; letter-spacing: -.3px; }
.ai-heading small { display: block; font-weight: 400; color: #9690ac; font-size: var(--text-meta); margin-top: 5px; letter-spacing: .3px; }
.ai-beta { display: inline-block; vertical-align: middle; margin-left: 5px; font-size: 9px; letter-spacing: .5px; color: var(--ai-accent); border: 1px solid var(--accent-soft); border-radius: 5px; padding: 2px 4px; }
.ai-heading button { border: 0; background: transparent; color: #9c96af; font-size: var(--text-heading); cursor: pointer; width: 28px; height: 28px; padding: 0; border-radius: var(--radius-sm); transition: background .15s; }
.ai-heading button:hover { background: #e8e2f7; color: #655580; }
.ai-launcher { border: 0; background: var(--ai-brand-gradient); color: var(--ai-surface); width: 100%; height: 52px; font-family: inherit; font-size: var(--text-body); font-weight: 600; cursor: grab; touch-action: none; display: flex; align-items: center; justify-content: center; gap: 9px; }
.ai-launcher-symbol { font-size: 25px; font-weight: 400; }
.ai-context { display: flex; align-items: center; gap: 7px; margin: 0 19px; padding: 13px 0 10px; font-size: var(--text-meta); color: #767087; flex-shrink: 0; min-width: 0; }
.ai-context > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-context-dot { height: 5px; width: 5px; border-radius: 50%; background: var(--ai-accent); flex-shrink: 0; }
.ai-context-label { margin-left: auto; flex-shrink: 0; color: #a49db4; }
.ai-disclosure { font-size: var(--text-caption); color: #9992aa; margin: 0 19px; padding-bottom: var(--space-4); border-bottom: 1px solid #f0edf5; flex-shrink: 0; }
.ai-disclosure summary { cursor: pointer; }
.ai-disclosure p { margin: 7px 0 0; line-height: 1.7; }
.ai-messages { overflow-y: auto; min-height: 40px; flex: 1; padding: 18px; font-size: var(--text-body); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ded8ed transparent; }
.ai-welcome { padding: 8px 4px 10px; }
.ai-welcome-symbol { width: 48px; height: 48px; border-radius: 17px; font-size: var(--text-display); margin-bottom: 21px; }
.ai-eyebrow { font-size: var(--text-caption); letter-spacing: 1.5px; color: #9c91b5; }
.ai-welcome h2 { font-size: 23px; font-weight: 600; letter-spacing: -.8px; margin: 8px 0 10px; color: #302c48; }
.ai-welcome > p { font-size: var(--text-body-sm); line-height: 1.9; color: #9790a6; margin: 0 0 22px; }
.ai-suggestions { display: grid; gap: 9px; }
.ai-suggestions button { display: flex; align-items: center; text-align: left; gap: var(--space-5); border: 1px solid #ede9f4; border-radius: var(--radius-lg); padding: var(--space-5); background: var(--ai-soft); color: #645580; cursor: pointer; transition: border-color .15s, background .15s; }
.ai-suggestions button:hover { border-color: var(--ai-accent); background: #f6f2ff; }
.ai-suggestions button > span:first-child { display: grid; place-items: center; height: 30px; width: 30px; border-radius: 9px; background: #f0ebfa; font-size: var(--text-heading-sm); }
.ai-suggestions button > span:nth-child(2) { flex: 1; }
.ai-suggestions strong { display: block; font-size: var(--text-body-sm); font-weight: 550; }
.ai-suggestions small { display: block; color: #a29aaf; font-size: var(--text-caption); margin-top: var(--space-1); }
.ai-suggestions button > span:last-child { color: #b4a8cd; }
.ai-message { margin-bottom: 17px; overflow-wrap: anywhere; }
.ai-message > strong { display: block; font-size: var(--text-caption); font-weight: 500; color: #aaa0ba; margin: 0 4px 7px; }
.ai-message > div { white-space: pre-wrap; line-height: 1.85; padding: 13px 15px; border-radius: 3px 15px 15px; background: #f6f4fa; }
.ai-user { margin-left: 35px; }
.ai-user > strong { text-align: right; }
.ai-user > div { background: var(--ai-brand); color: var(--ai-surface); border-radius: 15px 3px 15px 15px; }
.ai-thinking { display: flex; align-items: center; gap: var(--space-1); color: #a49ab5; padding: var(--space-1); }
.ai-thinking > span { width: 4px; height: 4px; background: #ab9ed0; border-radius: 50%; animation: ai-pulse 1.3s infinite; }
.ai-thinking > span:nth-child(2) { animation-delay: .15s; }
.ai-thinking > span:nth-child(3) { animation-delay: .3s; }
.ai-thinking small { margin-left: 7px; font-size: var(--text-meta); }
@keyframes ai-pulse { 50% { opacity: .3; transform: translateY(-2px); } }
.ai-input { display: flex; align-items: flex-end; gap: var(--space-3); padding: var(--space-4); margin: 6px 16px 0; border: 1px solid #e8e2f1; border-radius: 15px; background: var(--ai-soft); flex-shrink: 0; transition: border-color .15s, box-shadow .15s; }
.ai-input:focus-within { border-color: var(--ai-accent); box-shadow: 0 0 0 3px rgb(91 91 214 / 4%); }
.ai-input textarea { min-width: 0; flex: 1; resize: none; height: 44px; min-height: 44px; max-height: 90px; border: 0; background: transparent; box-shadow: none; outline: 0; padding: 3px 2px; font: inherit; font-size: var(--text-body-sm); line-height: 1.7; color: #4b425f; }
.ai-input textarea::placeholder { color: #b0a7bf; }
.ai-input textarea:focus { outline: none; box-shadow: none; }
.ai-send { display: grid; place-items: center; border: 0; width: 33px; height: 33px; border-radius: var(--radius-md); background: var(--ai-brand); color: white; font-size: var(--text-heading); cursor: pointer; flex-shrink: 0; }
.ai-send:disabled { background: #ede7f7; color: #c0b2d9; cursor: default; }
.ai-footer { padding: 9px 10px 13px; text-align: center; font-size: 9px; letter-spacing: .4px; color: #b3aabe; flex-shrink: 0; }
.ai-draft { padding: var(--space-6); margin: 0 17px 6px; background: #faf8ff; border: 1px solid #e7dff6; border-radius: var(--radius-xl); overflow-y: auto; max-height: 230px; flex-shrink: 0; font-size: var(--text-meta); }
.ai-draft-label { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-caption); color: #8e78b5; margin-bottom: var(--space-4); }
.ai-draft-label > span:last-child { margin-left: auto; padding: 3px 6px; border-radius: 4px; background: #eee7fa; font-size: 9px; }
.ai-draft > strong { font-size: var(--text-base); font-weight: 600; }
.ai-draft p { margin: 8px 0; overflow-wrap: anywhere; line-height: 1.7; color: #9587a5; }
.ai-draft .btn { margin: 5px 5px 0 0; font-size: var(--text-meta); min-height: 31px; padding: 6px 10px; border-radius: var(--radius-sm); }
.ai-draft .btn-primary { background: var(--ai-brand); border-color: var(--ai-brand); }
.ai-error { color: #b65d6c; background: #fff5f6; border-radius: var(--radius-sm); padding: 8px 10px; margin: 0 17px 6px; font-size: var(--text-meta); line-height: 1.6; }
.ai-success { margin: 0 17px 8px; padding: var(--space-4); border-radius: var(--radius-md); background: #f0f8f4; color: var(--ai-ok); font-size: var(--text-body-sm); }
.ai-success a { margin-left: 5px; color: var(--ai-ok); text-decoration: underline; }
.ai-team { display: flex; gap: var(--space-3); align-items: center; padding: 10px 19px 0; font-size: var(--text-meta); color: #9690a6; flex-shrink: 0; }
.ai-team select { min-width: 0; flex: 1; font-size: var(--text-meta); border: 1px solid #e9e3f3; border-radius: var(--radius-sm); padding: 5px; background: #faf8fe; color: #716284; }
.ai-widget button:focus-visible, .ai-disclosure summary:focus-visible { outline: 2px solid var(--ai-accent); outline-offset: -2px; }
.ai-settings { flex: 1; min-height: 0; overflow-y: auto; padding: 17px 19px 14px; font-size: var(--text-meta); color: #716284; }
.ai-settings-head { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-4); }
.ai-settings-head strong { font-size: var(--text-subtitle); color: #3b3353; }
.ai-settings-head span { margin-left: auto; font-size: var(--text-caption); color: #a49db4; }
.ai-settings-note { margin: 0 0 var(--space-5); padding: var(--space-4); border-radius: var(--radius-md); background: #faf8ff; color: #9690a6; font-size: var(--text-caption); line-height: 1.8; }
.ai-settings label { display: block; margin-bottom: var(--space-4); font-size: var(--text-caption); color: #8d84a1; }
.ai-settings input { display: block; width: 100%; box-sizing: border-box; margin-top: var(--space-2); padding: 8px 10px; border: 1px solid #e8e2f1; border-radius: var(--radius-sm); background: #fdfcff; color: #4b425f; font: inherit; font-size: var(--text-body-sm); }
.ai-settings input:focus { outline: 2px solid var(--ai-accent); outline-offset: -1px; }
.ai-settings-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.ai-settings-actions .btn { font-size: var(--text-meta); min-height: 31px; padding: 6px 10px; border-radius: var(--radius-sm); }
.ai-settings-actions .btn-primary { background: var(--ai-brand); border-color: var(--ai-brand); }
.ai-settings-warning { margin: 0 0 var(--space-3); padding: 8px 10px; border: 1px solid #f3dfc0; border-radius: var(--radius-sm); background: #fffaf0; color: #9b7947; font-size: var(--text-caption); line-height: 1.7; }
.ai-settings-warning p { margin: 0 0 var(--space-3); }
.ai-settings-error { margin: 0 0 var(--space-3); padding: 7px 9px; border-radius: var(--radius-sm); background: #fff5f6; color: #b65d6c; font-size: var(--text-caption); line-height: 1.7; }
.ai-settings-status { margin: var(--space-4) 0 0; color: #a49db4; font-size: var(--text-caption); }
@media (max-height: 600px) {
  .ai-heading { padding: 12px 16px; }
  .ai-draft { max-height: 30%; flex-shrink: 1; }
  .ai-messages { min-height: 25px; }
  .ai-welcome-symbol { display: none; }
  .ai-welcome { padding-top: 0; }
  .ai-welcome > p { margin-bottom: var(--space-5); }
  .ai-disclosure { max-height: 55px; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { .ai-thinking > span { animation: none; } }
.resource-space {
  --res-surface: #fff;
  --res-line: #e2e8f0;
  --res-line-soft: #eeedf5;
  --res-line-faint: #f0edf5;
  --res-accent: #4338ca;
  position: relative;
  width: 100%; min-width: 0; color: #30364b;
}
.resource-page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 4px 0 27px; }
.resource-page-head .eyebrow { font-size: var(--text-caption); color: #9294b2; letter-spacing: 2px; margin-bottom: var(--space-3); }
.resource-page-head h1 { font-size: 27px; font-weight: 650; letter-spacing: -.7px; margin: 0 0 8px; }
.resource-page-head p:not(.eyebrow) { font-size: var(--text-body); color: #9398ac; margin: 0; }
.resource-page-head .btn { gap: 7px; border-radius: var(--radius-md); }
.resource-layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); min-height: 660px; border: 1px solid #e7e9f2; background: var(--res-surface); border-radius: var(--radius-3xl); box-shadow: 0 6px 28px #44436804; overflow: hidden; }
.resource-library { min-width: 0; background: #fbfbfe; border-right: 1px solid var(--res-line-soft); display: flex; flex-direction: column; padding: 22px 12px 15px; }
.resource-library-head { display: flex; align-items: center; gap: var(--space-3); margin: 0 8px 18px; font-size: var(--text-body); }
.resource-library-head > span { color: #a09bb7; font-size: var(--text-caption); background: #efedf7; padding: 2px 6px; border-radius: 5px; }
.resource-search { display: flex; align-items: center; margin: 0 4px 18px; border: 1px solid #e8e7f0; border-radius: 9px; background: var(--res-surface); }
.resource-search input { width: 100%; min-width: 0; font-size: var(--text-meta); border: 0; box-shadow: none; background: transparent; padding: var(--space-4); }
.resource-search button { padding: 6px 9px; margin-right: 3px; background: transparent; border: 0; color: #8b80b2; font-size: var(--text-meta); cursor: pointer; flex-shrink: 0; }
.resource-list-item { display: flex; gap: var(--space-4); align-items: flex-start; padding: 14px 10px; margin-bottom: 5px; border: 1px solid transparent; border-radius: 11px; text-decoration: none; color: #666980; }
.resource-list-item:hover { background: #f2f0f8; }
.resource-list-item.selected { background: #efebfb; border-color: #e3dcf4; color: #66559b; }
.resource-file-icon { display: grid; place-items: center; width: 30px; height: 34px; background: #f1eff7; color: #9a8eb7; border-radius: 7px; flex-shrink: 0; }
.resource-file-icon .icon { width: 18px; height: 18px; }
.resource-list-item > span:last-child { min-width: 0; }
.resource-list-item strong { font-size: var(--text-body-sm); font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.resource-list-item small { display: block; font-size: var(--text-caption); color: #a5a1b5; margin-top: var(--space-2); }
.resource-library-foot { margin-top: auto; padding: 24px 10px 0; font-size: var(--text-caption); color: #b3aebf; }
.resource-main { min-width: 0; }
.resource-empty { min-height: 620px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 36px; text-align: center; background: radial-gradient(ellipse at 50% 40%, #f9f7ff, var(--res-surface) 65%); }
.resource-empty > span { display: grid; place-items: center; height: 72px; width: 62px; border: 1px solid #e6dff6; border-radius: 17px; color: #a18bcc; background: linear-gradient(130deg,#faf8ff,#ede7f7); box-shadow: 6px 7px 0 #f2eff9; margin-bottom: 30px; }
.resource-empty > span .icon { height: 33px; width: 33px; }
.resource-empty .eyebrow { font-size: 9px; color: #b1a5c4; letter-spacing: 2px; }
.resource-empty h2 { font-size: 24px; font-weight: 550; margin: 12px 0; color: #4c4563; }
.resource-empty > p:not(.eyebrow) { color: #a5a0b1; font-size: var(--text-body-sm); line-height: 2; margin: 0 0 25px; }
.resource-empty .btn { font-size: var(--text-body-sm); border-radius: 9px; }
.resource-empty small { font-size: var(--text-caption); color: #b8b0c3; margin-top: 22px; }
.resource-list-note { padding: 15px; color: #9f96ad; font-size: var(--text-body-sm); line-height: 1.9; }
.resource-pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 15px 4px; font-size: var(--text-meta); color: #9790aa; }
.resource-pagination button { border: 1px solid #e3dfee; border-radius: 6px; background: var(--res-surface); padding: 5px; cursor: pointer; font-size: var(--text-caption); }
.resource-pagination button:disabled { opacity: .4; cursor: default; }
.resource-document-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); border-bottom: 1px solid var(--res-line-faint); padding: 20px 28px; color: #aaa1b6; font-size: var(--text-caption); }
.resource-type { display: flex; align-items: center; gap: 7px; font-size: 9px; letter-spacing: 1px; }
.resource-type .icon { width: 15px; height: 15px; }
.resource-status { text-align: right; }
.resource-title-label { display: block; padding: 25px 30px 18px; font-size: var(--text-caption); color: #a79eb9; }
.resource-title-label input { display: block; border: 0; background: transparent; box-shadow: none; border-radius: 0; padding: 10px 0 0; color: #4a415d; font-size: 24px; font-weight: 600; width: 100%; }
.resource-title-label input::placeholder { color: #c6c0d2; font-weight: 400; }
.resource-editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: 12px 28px; border-block: 1px solid #f4f1f8; font-size: var(--text-caption); color: #b0a7bd; }
.resource-editor-toolbar button { padding: 6px 15px; border: 0; border-radius: 6px; background: transparent; color: #a19aaa; cursor: pointer; font-size: var(--text-meta); }
.resource-editor-toolbar button[aria-pressed="true"] { background: #efebf8; color: #8a72b6; }
.resource-content-label { display: block; }
.resource-content-label textarea { display: block; border: 0; border-radius: 0; box-shadow: none; padding: 28px 30px; width: 100%; min-height: 370px; resize: vertical; font: 12px/2 ui-monospace, SFMono-Regular, Consolas, monospace; color: #6b617f; background: var(--res-surface); tab-size: 2; }
.resource-content-label textarea::placeholder { color: #c2b9cd; }
.resource-savebar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: 18px 28px; border-top: 1px solid var(--res-line-faint); }
.resource-savebar p { color: #afa6ba; font-size: var(--text-caption); }
.resource-savebar > div { display: flex; gap: var(--space-3); flex-shrink: 0; }
.resource-savebar .btn { padding: 8px 14px; font-size: var(--text-meta); border-radius: var(--radius-sm); }
.resource-reading-head { padding: 30px 32px 22px; }
.resource-reading-head h2 { font-size: 25px; font-weight: 600; margin: 0 0 12px; overflow-wrap: anywhere; }
.resource-meta { font-size: var(--text-meta); color: #a69bb6; }
.resource-read-actions { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-8); }
.resource-read-actions .btn { font-size: var(--text-meta); }
.resource-error { margin: 16px 25px; padding: 12px 15px; border: 1px solid #f3dfc0; background: #fffaf0; border-radius: 9px; font-size: var(--text-body-sm); color: #9b7947; }
.resource-error p { margin: 4px 0 9px; }
.markdown-preview { min-height: 300px; padding: 20px 32px 38px; font-size: var(--text-base); line-height: 1.9; color: #5e576d; overflow-wrap: anywhere; }
.markdown-preview > :first-child { margin-top: 0; }
.markdown-preview h1,.markdown-preview h2,.markdown-preview h3,.markdown-preview h4,.markdown-preview h5,.markdown-preview h6 { line-height: 1.5; color: #443b55; margin: 1.4em 0 .6em; }
.markdown-preview h1 { font-size: 27px; border-bottom: 1px solid #eee9f5; padding-bottom: var(--space-5); }
.markdown-preview h2 { font-size: var(--text-heading); }.markdown-preview h3 { font-size: var(--text-title); }
.markdown-preview p { margin: .8em 0; }.markdown-preview ul,.markdown-preview ol { padding-left: 25px; }
.markdown-preview code { background: #f2eef7; color: #8970ad; padding: 2px 5px; border-radius: 4px; font-size: .87em; }
.markdown-preview pre { max-width: 100%; overflow-x: auto; padding: 18px; border-radius: var(--radius-md); background: #f6f4fa; font-size: var(--text-body-sm); line-height: 1.8; }
.markdown-preview pre code { background: transparent; color: #766386; padding: 0; white-space: pre; }
.markdown-preview blockquote { border-left: 3px solid #cebfdf; margin: 18px 0; padding: 3px 18px; background: #fbf9fd; color: #a497af; }
.markdown-preview a { color: #8b6cb3; text-decoration: underline; }
.markdown-preview hr { border: 0; border-top: 1px solid #e9e2f0; margin: 25px 0; }
.markdown-preview .md-table-scroll { overflow-x: auto; }.markdown-preview table { border-collapse: collapse; width: 100%; font-size: var(--text-body-sm); }
.markdown-preview th,.markdown-preview td { padding: 8px 12px; border: 1px solid #e7e0f0; text-align: left; min-width: 80px; }
.markdown-preview th { background: #f7f4fb; color: #8c7c9f; font-weight: 550; }
.markdown-preview input[type="checkbox"] { accent-color: #9881bf; }
@media (max-width: 1000px) { .resource-layout { grid-template-columns: 230px minmax(0,1fr); } }
@media (max-width: 700px) {
  .resource-page-head { align-items: flex-start; margin-bottom: var(--space-8); }.resource-page-head h1 { font-size: var(--text-heading); }.resource-page-head p:not(.eyebrow) { font-size: var(--text-meta); }.resource-page-head > .btn { font-size: var(--text-meta); padding: 9px; white-space: nowrap; }
  .resource-layout { grid-template-columns: minmax(0,1fr); }.resource-library { border-right: 0; border-bottom: 1px solid var(--res-line-soft); padding-top: var(--space-7); }.resource-library nav { max-height: 190px; overflow-y: auto; }.resource-library-foot { display: none; }
  .resource-empty { min-height: 420px; padding: 25px; }.resource-empty h2 { font-size: 21px; }.resource-document-bar { padding: var(--space-7); }.resource-title-label { padding: 20px 18px 16px; }.resource-title-label input { font-size: 21px; }
  .resource-editor-toolbar { padding: 10px 14px; gap: 3px; }.resource-editor-toolbar button { padding: 6px 10px; }.resource-editor-toolbar > span { font-size: 9px; }.resource-content-label textarea { padding: 20px 18px; min-height: 330px; }.resource-savebar { padding: 15px; flex-wrap: wrap; }.resource-savebar > div { margin-left: auto; }
  .resource-reading-head { padding: 24px 20px 16px; }.resource-reading-head h2 { font-size: var(--text-heading); }.markdown-preview { padding: var(--space-8); font-size: var(--text-body); }.resource-error { margin: 15px; }
}

/* RESOURCE-2：多类型资源空间 */
.resource-head-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.resource-file-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-sm); background: #eef2ff; color: var(--res-accent); font-size: var(--text-body-sm); font-weight: 700; flex: none; }
.resource-import { position: relative; display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid #cbd5e1; cursor: pointer; font-size: var(--text-body); }
.resource-import input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sheet-scroll { overflow: auto; max-height: 60vh; border: 1px solid var(--res-line); border-radius: var(--radius-md); }
.resource-sheet { border-collapse: collapse; width: 100%; min-width: 480px; }
.resource-sheet th, .resource-sheet td { border: 1px solid var(--res-line); padding: 0; }
.resource-sheet th { background: #f8fafc; font-weight: 600; }
.resource-sheet input { width: 100%; min-width: 120px; border: 0; padding: var(--space-3); background: transparent; font: inherit; }
.resource-sheet input:focus { outline: 2px solid var(--res-accent); outline-offset: -2px; }
.sheet-head { display: flex; align-items: center; }
.sheet-head button { border: 0; background: transparent; color: #94a3b8; cursor: pointer; padding: 0 6px; }
.resource-sheet tbody th { display: flex; align-items: center; gap: var(--space-1); padding: 0 6px; }
.resource-sheet tbody th button { border: 0; background: transparent; color: #cbd5e1; cursor: pointer; }
.resource-file-preview { width: 100%; max-height: 70vh; border: 1px solid var(--res-line); border-radius: var(--radius-md); object-fit: contain; }
.resource-file-note { color: #64748b; }

/* RESOURCE-3：拖拽上传 */
.resource-drop-overlay {
  position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; gap: var(--space-3); padding: 16vh var(--space-6) 0; border: 2px dashed var(--res-accent);
  border-radius: var(--radius-3xl); background: rgba(238, 242, 255, .9); text-align: center; pointer-events: none;
}
.resource-drop-overlay strong { font-size: var(--text-title); font-weight: 650; color: var(--res-accent); }
.resource-drop-overlay span { max-width: 32em; font-size: var(--text-body-sm); line-height: 1.7; color: #5b5f86; }
.resource-dropzone {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-6);
  padding: 22px 16px; border: 2px dashed #c7c9e8; border-radius: var(--radius-lg); background: #f8f9ff;
  text-align: center; transition: border-color .15s, background .15s;
}
.resource-dropzone.is-dragging { border-color: var(--res-accent); background: #eef2ff; }
.resource-dropzone-hint { margin: 0; font-size: var(--text-body-sm); color: #6b6f92; }
@media (max-width: 700px) {
  .resource-drop-overlay { padding-top: 12vh; }
  .resource-dropzone { padding: 16px 12px; }
}

.rbc-btn {
  color: inherit;
  font: inherit;
  margin: 0;
}

button.rbc-btn {
  overflow: visible;
  text-transform: none;
  -webkit-appearance: button;
     -moz-appearance: button;
          appearance: button;
  cursor: pointer;
}

button[disabled].rbc-btn {
  cursor: not-allowed;
}

button.rbc-input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.rbc-toolbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
}
.rbc-toolbar .rbc-toolbar-label {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  padding: 0 10px;
  text-align: center;
}
.rbc-toolbar button {
  color: #373a3c;
  display: inline-block;
  margin: 0;
  text-align: center;
  vertical-align: middle;
  background: none;
  background-image: none;
  border: 1px solid #ccc;
  padding: 0.375rem 1rem;
  border-radius: 4px;
  line-height: normal;
  white-space: nowrap;
}
.rbc-toolbar button:active, .rbc-toolbar button.rbc-active {
  background-image: none;
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
          box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  background-color: rgb(229.5, 229.5, 229.5);
  border-color: rgb(173.4, 173.4, 173.4);
}
.rbc-toolbar button:active:hover, .rbc-toolbar button:active:focus, .rbc-toolbar button.rbc-active:hover, .rbc-toolbar button.rbc-active:focus {
  color: #373a3c;
  background-color: rgb(211.65, 211.65, 211.65);
  border-color: rgb(140.25, 140.25, 140.25);
}
.rbc-toolbar button:focus {
  color: #373a3c;
  background-color: rgb(229.5, 229.5, 229.5);
  border-color: rgb(173.4, 173.4, 173.4);
}
.rbc-toolbar button:hover {
  color: #373a3c;
  cursor: pointer;
  background-color: rgb(229.5, 229.5, 229.5);
  border-color: rgb(173.4, 173.4, 173.4);
}

.rbc-btn-group {
  display: inline-block;
  white-space: nowrap;
}
.rbc-btn-group > button:first-child:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.rbc-btn-group > button:last-child:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.rbc-rtl .rbc-btn-group > button:first-child:not(:last-child) {
  border-radius: 4px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.rbc-rtl .rbc-btn-group > button:last-child:not(:first-child) {
  border-radius: 4px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.rbc-btn-group > button:not(:first-child):not(:last-child) {
  border-radius: 0;
}
.rbc-btn-group button + button {
  margin-left: -1px;
}
.rbc-rtl .rbc-btn-group button + button {
  margin-left: 0;
  margin-right: -1px;
}
.rbc-btn-group + .rbc-btn-group, .rbc-btn-group + button {
  margin-left: 10px;
}

@media (max-width: 767px) {
  .rbc-toolbar {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}
.rbc-event {
  border: none;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-box-shadow: none;
          box-shadow: none;
  margin: 0;
  padding: 2px 5px;
  background-color: #3174ad;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.rbc-slot-selecting .rbc-event {
  cursor: inherit;
  pointer-events: none;
}
.rbc-event.rbc-selected {
  background-color: rgb(37.7432432432, 89.3513513514, 133.2567567568);
}
.rbc-event:focus {
  outline: 5px auto #3b99fc;
}

.rbc-event-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 80%;
}

.rbc-event-overlaps {
  -webkit-box-shadow: -1px 1px 5px 0px rgba(51, 51, 51, 0.5);
          box-shadow: -1px 1px 5px 0px rgba(51, 51, 51, 0.5);
}

.rbc-event-continues-prior {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.rbc-event-continues-after {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.rbc-event-continues-earlier {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.rbc-event-continues-later {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.rbc-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}

.rbc-row-segment {
  padding: 0 1px 1px 1px;
}
.rbc-row-segment .rbc-event-content {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rbc-selected-cell {
  background-color: rgba(0, 0, 0, 0.1);
}

.rbc-show-more {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: 4;
  font-weight: bold;
  font-size: 85%;
  height: auto;
  line-height: normal;
  color: #3174ad;
}
.rbc-show-more:hover, .rbc-show-more:focus {
  color: rgb(37.7432432432, 89.3513513514, 133.2567567568);
}

.rbc-month-view {
  position: relative;
  border: 1px solid #ddd;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 0px;
          flex: 1 0 0;
  width: 100%;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  height: 100%;
}

.rbc-month-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}

.rbc-month-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 0px;
          flex: 1 0 0;
  -ms-flex-preferred-size: 0px;
      flex-basis: 0px;
  overflow: hidden;
  height: 100%;
}
.rbc-month-row + .rbc-month-row {
  border-top: 1px solid #ddd;
}

.rbc-date-cell {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  min-width: 0;
  padding-right: 5px;
  text-align: right;
}
.rbc-date-cell.rbc-now {
  font-weight: bold;
}
.rbc-date-cell > a, .rbc-date-cell > a:active, .rbc-date-cell > a:visited {
  color: inherit;
  text-decoration: none;
}

.rbc-row-bg {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 0px;
          flex: 1 0 0;
  overflow: hidden;
  right: 1px;
}

.rbc-day-bg {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 0%;
          flex: 1 0 0%;
}
.rbc-day-bg + .rbc-day-bg {
  border-left: 1px solid #ddd;
}
.rbc-rtl .rbc-day-bg + .rbc-day-bg {
  border-left-width: 0;
  border-right: 1px solid #ddd;
}

.rbc-overlay {
  position: absolute;
  z-index: 5;
  border: 1px solid #e5e5e5;
  background-color: #fff;
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  padding: 10px;
}
.rbc-overlay > * + * {
  margin-top: 1px;
}

.rbc-overlay-header {
  border-bottom: 1px solid #e5e5e5;
  margin: -10px -10px 5px -10px;
  padding: 2px 10px;
}

.rbc-agenda-view {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 0px;
          flex: 1 0 0;
  overflow: auto;
}
.rbc-agenda-view table.rbc-agenda-table {
  width: 100%;
  border: 1px solid #ddd;
  border-spacing: 0;
  border-collapse: collapse;
}
.rbc-agenda-view table.rbc-agenda-table tbody > tr > td {
  padding: 5px 10px;
  vertical-align: top;
}
.rbc-agenda-view table.rbc-agenda-table .rbc-agenda-time-cell {
  padding-left: 15px;
  padding-right: 15px;
  text-transform: lowercase;
}
.rbc-agenda-view table.rbc-agenda-table tbody > tr > td + td {
  border-left: 1px solid #ddd;
}
.rbc-rtl .rbc-agenda-view table.rbc-agenda-table tbody > tr > td + td {
  border-left-width: 0;
  border-right: 1px solid #ddd;
}
.rbc-agenda-view table.rbc-agenda-table tbody > tr + tr {
  border-top: 1px solid #ddd;
}
.rbc-agenda-view table.rbc-agenda-table thead > tr > th {
  padding: 3px 5px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.rbc-rtl .rbc-agenda-view table.rbc-agenda-table thead > tr > th {
  text-align: right;
}

.rbc-agenda-time-cell {
  text-transform: lowercase;
}
.rbc-agenda-time-cell .rbc-continues-after:after {
  content: " »";
}
.rbc-agenda-time-cell .rbc-continues-prior:before {
  content: "« ";
}

.rbc-agenda-date-cell,
.rbc-agenda-time-cell {
  white-space: nowrap;
}

.rbc-agenda-event-cell {
  width: 100%;
}

.rbc-time-column {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 100%;
}
.rbc-time-column .rbc-timeslot-group {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.rbc-timeslot-group {
  border-bottom: 1px solid #ddd;
  min-height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column nowrap;
          flex-flow: column nowrap;
}

.rbc-time-gutter,
.rbc-header-gutter {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
}

.rbc-label {
  padding: 0 5px;
}

.rbc-day-slot {
  position: relative;
}
.rbc-day-slot .rbc-events-container {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  margin-right: 10px;
  top: 0;
}
.rbc-day-slot .rbc-events-container.rbc-rtl {
  left: 10px;
  right: 0;
}
.rbc-day-slot .rbc-event, .rbc-day-slot .rbc-background-event {
  border: 1px solid rgb(37.7432432432, 89.3513513514, 133.2567567568);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-height: 100%;
  min-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column wrap;
          flex-flow: column wrap;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  overflow: hidden;
  position: absolute;
}
.rbc-day-slot .rbc-background-event {
  opacity: 0.75;
}
.rbc-day-slot .rbc-event-label {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  padding-right: 5px;
  width: auto;
}
.rbc-day-slot .rbc-event-content {
  width: 100%;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  word-wrap: break-word;
  line-height: 1;
  height: 100%;
  min-height: 1em;
}
.rbc-day-slot .rbc-time-slot {
  border-top: 1px solid rgb(246.5, 246.5, 246.5);
}

.rbc-time-view-resources .rbc-time-gutter,
.rbc-time-view-resources .rbc-time-header-gutter {
  position: sticky;
  left: 0;
  background-color: white;
  border-right: 1px solid #ddd;
  z-index: 10;
  margin-right: -1px;
}
.rbc-time-view-resources .rbc-time-header {
  overflow: hidden;
}
.rbc-time-view-resources .rbc-time-header-content {
  min-width: auto;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 0px;
          flex: 1 0 0;
  -ms-flex-preferred-size: 0px;
      flex-basis: 0px;
}
.rbc-time-view-resources .rbc-time-header-cell-single-day {
  display: none;
}
.rbc-time-view-resources .rbc-day-slot {
  min-width: 140px;
}
.rbc-time-view-resources .rbc-header,
.rbc-time-view-resources .rbc-day-bg {
  width: 140px;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  -ms-flex-preferred-size: 0px;
      flex-basis: 0px;
}

.rbc-time-header-content + .rbc-time-header-content {
  margin-left: -1px;
}

.rbc-time-slot {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 0px;
          flex: 1 0 0;
}
.rbc-time-slot.rbc-now {
  font-weight: bold;
}

.rbc-day-header {
  text-align: center;
}

.rbc-slot-selection {
  z-index: 10;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 75%;
  width: 100%;
  padding: 3px;
}

.rbc-slot-selecting {
  cursor: move;
}

.rbc-time-view {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  width: 100%;
  border: 1px solid #ddd;
  min-height: 0;
}
.rbc-time-view .rbc-time-gutter {
  white-space: nowrap;
  text-align: right;
}
.rbc-time-view .rbc-allday-cell {
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  width: 100%;
  height: 100%;
  position: relative;
}
.rbc-time-view .rbc-allday-cell + .rbc-allday-cell {
  border-left: 1px solid #ddd;
}
.rbc-time-view .rbc-allday-events {
  position: relative;
  z-index: 4;
}
.rbc-time-view .rbc-row {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  min-height: 20px;
}

.rbc-time-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}
.rbc-time-header.rbc-overflowing {
  border-right: 1px solid #ddd;
}
.rbc-rtl .rbc-time-header.rbc-overflowing {
  border-right-width: 0;
  border-left: 1px solid #ddd;
}
.rbc-time-header > .rbc-row:first-child {
  border-bottom: 1px solid #ddd;
}
.rbc-time-header > .rbc-row.rbc-row-resource {
  border-bottom: 1px solid #ddd;
}

.rbc-time-header-cell-single-day {
  display: none;
}

.rbc-time-header-content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-width: 0;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  border-left: 1px solid #ddd;
}
.rbc-rtl .rbc-time-header-content {
  border-left-width: 0;
  border-right: 1px solid #ddd;
}
.rbc-time-header-content > .rbc-row.rbc-row-resource {
  border-bottom: 1px solid #ddd;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.rbc-time-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 0%;
          flex: 1 0 0%;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  width: 100%;
  border-top: 2px solid #ddd;
  overflow-y: auto;
  position: relative;
}
.rbc-time-content > .rbc-time-gutter {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
}
.rbc-time-content > * + * > * {
  border-left: 1px solid #ddd;
}
.rbc-rtl .rbc-time-content > * + * > * {
  border-left-width: 0;
  border-right: 1px solid #ddd;
}
.rbc-time-content > .rbc-day-slot {
  width: 100%;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}

.rbc-current-time-indicator {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #74ad31;
  pointer-events: none;
}

.rbc-resource-grouping.rbc-time-header-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.rbc-resource-grouping .rbc-row .rbc-header {
  width: 141px;
}

.rbc-calendar {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

.rbc-m-b-negative-3 {
  margin-bottom: -3px;
}

.rbc-h-full {
  height: 100%;
}

.rbc-calendar *,
.rbc-calendar *:before,
.rbc-calendar *:after {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
}

.rbc-abs-full {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.rbc-ellipsis {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rbc-rtl {
  direction: rtl;
}

.rbc-off-range {
  color: #999999;
}

.rbc-off-range-bg {
  background: rgb(229.5, 229.5, 229.5);
}

.rbc-header {
  overflow: hidden;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 0%;
          flex: 1 0 0%;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 3px;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  font-size: 90%;
  min-height: 0;
  border-bottom: 1px solid #ddd;
}
.rbc-header + .rbc-header {
  border-left: 1px solid #ddd;
}
.rbc-rtl .rbc-header + .rbc-header {
  border-left-width: 0;
  border-right: 1px solid #ddd;
}
.rbc-header > a, .rbc-header > a:active, .rbc-header > a:visited {
  color: inherit;
  text-decoration: none;
}

.rbc-button-link {
  color: inherit;
  background: none;
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  -webkit-user-select: text;
     -moz-user-select: text;
      -ms-user-select: text;
          user-select: text;
}

.rbc-row-content {
  position: relative;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  z-index: 4;
}

.rbc-row-content-scrollable {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
}
.rbc-row-content-scrollable .rbc-row-content-scroll-container {
  height: 100%;
  overflow-y: scroll;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  /* Hide scrollbar for Chrome, Safari and Opera */
}
.rbc-row-content-scrollable .rbc-row-content-scroll-container::-webkit-scrollbar {
  display: none;
}

.rbc-today {
  background-color: #eaf6ff;
}

/*# sourceMappingURL=react-big-calendar.css.map *//* TeamSync app styles: base + demo parity theme, merged 2026-11-30. */

:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --surface-3: #eef2f9;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e6eaf2;
  --line-strong: #d8dfeb;
  --accent: #5b5bd6;
  --accent-strong: #4f46e5;
  --accent-soft: #eef0ff;
  --danger: #e25555;
  --danger-soft: #fff0ef;
  --warn: #d97706;
  --warn-soft: #fff5e6;
  --teal: #0f9f8f;
  --teal-soft: #e6f7f4;
  --green: #16a34a;
  --coral: #e25555;
  --sidebar: #0b1220;
  --sidebar-2: #101a2f;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 4%);
  --shadow-md: 0 10px 30px -18px rgb(15 23 42 / 28%), 0 2px 6px rgb(15 23 42 / 4%);
  --shadow-lg: 0 30px 70px -30px rgb(15 23 42 / 40%), 0 10px 24px -18px rgb(15 23 42 / 24%);
  --shadow: var(--shadow-lg);

  /* 字号：高频档位 token 化；9/9.5/10.5/11.5/12.5 等长尾仍保留原值。 */
  --text-caption: 10px;
  --text-meta: 11px;
  --text-body-sm: 12px;
  --text-body: 13px;
  --text-base: 14px;
  --text-subtitle: 16px;
  --text-title: 18px;
  --text-heading-sm: 20px;
  --text-heading: 22px;
  --text-display-sm: 26px;
  --text-display: 32px;

  /* 间距：常用 4–32 档位；奇数/非档位值保留原值。 */
  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 14px;
  --space-7: 16px;
  --space-8: 20px;
  --space-9: 24px;
  --space-10: 32px;

  /* 圆角：常用档位；--radius 保留为 18px 的主圆角。 */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-2xl: 16px;
  --radius-3xl: 18px;
  --radius-pill: 999px;

  /* 层级：AI 浮窗低于弹窗遮罩，避免弹窗打开时仍可操作助手。 */
  --z-sidebar: 40;
  --z-sidebar-mobile: 35;
  --z-modal: 50;
  --z-toast: 100;
  --z-ai: 45;

  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}



h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgb(79 70 229 / 35%);
  outline-offset: 2px;
}

.muted {
  color: var(--muted);
}

.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;
}

/* ---------- buttons ---------- */



.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}



.btn-secondary:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #c9cfda;
}

.btn-ghost:hover:not(:disabled) {
  background: #f1f3f7;
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

/* ---------- forms ---------- */

.form {
  display: grid;
  gap: var(--space-7);
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field label {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font: inherit;
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--surface);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(79 70 229 / 12%);
  outline: none;
}

.field-invalid input,
.field-invalid textarea {
  border-color: #e5a3a0;
}

.field-invalid input:focus,
.field-invalid textarea:focus {
  box-shadow: 0 0 0 3px rgb(180 35 24 / 12%);
}

.field-hint {
  margin: 0;
  font-size: var(--text-body-sm);
  color: var(--muted);
}

.field-error {
  margin: 0;
  font-size: var(--text-body-sm);
  color: var(--danger);
}



.banner-error {
  background: var(--danger-soft);
  border: 1px solid #fecdca;
  color: var(--danger);
}

/* ---------- auth ---------- */





.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0 0 24px;
  font-size: var(--text-subtitle);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}



.auth-card h1 {
  margin: 0 0 8px;
  font-size: var(--text-display-sm);
  letter-spacing: -0.02em;
}

.auth-subtitle {
  margin: 0 0 24px;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--muted);
}

.auth-footer {
  margin: 24px 0 0;
  font-size: var(--text-body);
  color: var(--muted);
  text-align: center;
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: var(--text-body);
  font-weight: 700;
}

.header-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-base);
  font-weight: 600;
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

/* ---------- team select ---------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: var(--space-9);
}

.page-head h1 {
  margin: 4px 0 6px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.page-head .muted {
  margin: 0;
  font-size: var(--text-base);
}

.eyebrow {
  margin: 0;
  font-size: var(--text-body-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.toolbar-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.panel-head {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-7);
}





.panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.team-form {
  display: grid;
  gap: var(--space-7);
  max-width: 560px;
}

.error-panel h1,
.error-panel h2 {
  margin: 0 0 8px;
}

.error-panel .panel-actions {
  justify-content: flex-start;
  margin-top: var(--space-7);
}







.team-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.team-card-top h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.team-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.6em;
  margin: 0;
  overflow: hidden;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--muted);
}

.team-meta {
  margin: 0;
  font-size: var(--text-body);
  color: var(--muted);
}

.team-card .btn {
  margin-top: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-owner {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.badge-admin {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge-member {
  background: #f1f3f7;
  color: var(--muted);
}

.invite {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 6px 8px 6px 10px;
  background: #f8f9fc;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.invite-label {
  font-size: var(--text-meta);
  font-weight: 600;
  color: var(--muted);
}

.invite-code {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-body);
  letter-spacing: 0.08em;
  color: var(--ink);
}



.empty-state h2 {
  margin: 0 0 8px;
  font-size: var(--text-heading-sm);
}

.empty-state p {
  margin: 0 0 20px;
  font-size: var(--text-base);
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---------- skeleton ---------- */

.skeleton {
  background: linear-gradient(90deg, #eef1f6 25%, #f7f8fb 37%, #eef1f6 63%);
  background-size: 400% 100%;
  border-radius: var(--radius-lg);
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.skeleton-card {
  height: 214px;
  border: 1px solid var(--line);
}

.skeleton-line {
  width: 40%;
  height: 18px;
  margin-bottom: var(--space-7);
}

.skeleton-block {
  height: 120px;
}

.workspace-skeleton {
  padding-top: var(--space-3);
}

.placeholder {
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed #cfd6e4;
  border-radius: var(--radius-3xl);
}

.placeholder h2 {
  margin: 0 0 8px;
  font-size: var(--text-heading-sm);
}

.placeholder p {
  margin: 0 0 6px;
  font-size: var(--text-base);
}

.placeholder-note {
  font-size: var(--text-body);
  color: var(--muted);
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {

  .app-main {
    padding: 24px 16px 56px;
  }

  .page-head {
    align-items: flex-start;
  }

  .page-head h1 {
    font-size: var(--text-display-sm);
  }

  .auth-card {
    padding: 28px 22px;
  }
}

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

.work-toolbar, .work-row { display:flex; align-items:center; justify-content:space-between; gap: var(--space-7); flex-wrap:wrap; }

.work-form { display:grid; gap: var(--space-7); }
.work-form label, .work-toolbar label { display:grid; gap: var(--space-3); }
.work-form input:not([type=checkbox]):not([type=color]), .work-form select, .work-form textarea, .work-toolbar select { padding: var(--space-4); border:1px solid var(--line); border-radius: var(--radius-sm); background:white; color:var(--ink); max-width:100%; width:100%; font:inherit; }
.work-form textarea { min-height:80px; }
.work-form label:has(input[type=checkbox]) { display:flex; align-items:center; }
.work-form fieldset { display:flex; flex-wrap:wrap; gap: var(--space-5); border:1px solid var(--line); border-radius: var(--radius-sm); }
.participant-tools { flex-basis:100%; display:flex; align-items:center; gap: var(--space-3); flex-wrap:wrap; }
.participant-list { flex-basis:100%; display:flex; flex-direction:column; gap: var(--space-3); }
.work-form .participant-list .participant-option { display:flex; align-items:center; gap: var(--space-4); width:100%; padding:6px 8px; border-radius: var(--radius-sm); }
.participant-option:hover { background:var(--surface-2); }
.participant-option input[type=checkbox] { width:16px; height:16px; accent-color:var(--accent); }
.participant-option .member-avatar { width:30px; height:30px; border-radius:50%; font-size: var(--text-body-sm); }


.danger-text, .overdue strong { color:var(--danger); }
.done strong { color:#16804a; text-decoration:line-through; }
.highlight { outline:2px solid var(--accent); padding: var(--space-7); border-radius: var(--radius-sm); }


.conflict-box { padding: var(--space-7); background:var(--warn-soft); border-radius: var(--radius-sm); }
.toast-stack { position:fixed; right:20px; bottom:24px; z-index: var(--z-toast); display:flex; flex-direction:column; gap: var(--space-3); max-width:min(360px, 90vw); }
.toast { display:flex; align-items:flex-start; gap: var(--space-5); padding:14px 16px; background:var(--ink); color:white; border-radius: var(--radius-lg); box-shadow:var(--shadow); }
.toast-error { background:var(--danger); }
.toast-success { background:#16804a; }
.toast-info { background:var(--ink); }
.toast-message { flex:1; overflow-wrap:anywhere; }
.toast-message a { text-decoration:underline; }
.toast button { flex:none; padding:0; border:0; background:none; color:inherit; font-size: var(--text-heading-sm); line-height:1; cursor:pointer; }
@media (max-width: 600px) {
  .toast-stack { left:12px; right:12px; bottom:12px; max-width:none; }
  .work-dialog { max-height:96vh; padding: var(--space-7); }
  .modal-backdrop { padding: var(--space-3); }
  .work-row { align-items:flex-start; }
  .view-week .rbc-calendar { min-width:760px; }
  .rbc-toolbar { flex-direction:column; gap: var(--space-4); }
  .rbc-month-view { font-size: var(--text-meta); }
}
.work-toolbar label:has(input[type=checkbox]) { display:flex; align-items:center; gap: var(--space-3); }

.extension-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap: var(--space-5); }
.suggestion-card { padding: var(--space-7); margin:12px 0; background:#eef2ff; border:1px solid #c7d2fe; border-radius: var(--radius-lg); }
.confirmation-banner { padding: var(--space-6); background:#fff7ed; border:1px solid #fed7aa; border-radius: var(--radius-md); color:#9a3412; }
.dependency-panel { padding: var(--space-7); margin:16px 0; border:1px solid var(--line); border-radius: var(--radius-lg); }
.dependency-scroll { overflow-x:auto; max-width:100%; }
.dependency-blocked, .dependency-warning { color:#9a3412; }
@media (max-width: 480px) { .extension-columns { grid-template-columns:1fr; } }

/* ---------- demo parity theme ---------- */

/* Demo parity layer: merged into the single app.css entry. */


body {margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 12% -12%, #e3e8ff 0%, transparent 62%),
    radial-gradient(720px 400px at 100% 0%, #fce7f3 0%, transparent 58%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;

  background: var(--bg);
  font-size: var(--text-base);
  line-height: 1.5;
}

.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.app-shell {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  background: var(--bg);
}

/* ---------- sidebar ---------- */

.app-sidebar {
  width: 248px;
  flex: 0 0 248px;
  height: 100vh;
  height: 100dvh;
  /* 限高并吸顶：内容超过视口时在侧栏内部滚动（移动端抽屉是全屏固定层）。 */
  max-height: 100vh;
  max-height: 100dvh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  /* 条目多时只在深色侧栏内部滚动，不能溢出到 .app-shell 的白底。 */
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(148 163 184 / 28%) transparent;
  padding: 22px 14px 16px;
  color: #cbd5e1;
  background:
    radial-gradient(420px 260px at 20% -10%, rgb(91 91 214 / 32%), transparent 70%),
    radial-gradient(300px 220px at 120% 30%, rgb(15 159 143 / 16%), transparent 70%),
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  z-index: var(--z-sidebar);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 8px 22px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 700;

  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #818cf8, #5b5bd6 55%, #0f9f8f);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  padding: 8px 7px;
  color: white;
  font-size: 0;
  box-shadow: 0 8px 20px -10px rgb(129 140 248 / 80%);
}

.brand-mark span {
  width: 4px;
  border-radius: 3px;
  background: white;
  display: block;
}

.brand-mark span:nth-child(1) { height: 8px; opacity: 0.68; }
.brand-mark span:nth-child(2) { height: 14px; opacity: 0.9; }
.brand-mark span:nth-child(3) { height: 11px; opacity: 0.78; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: white;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: #94a3b8;
  font-size: var(--text-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}

.sidebar-team {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-4);
  border: 1px solid rgb(148 163 184 / 14%);
  border-radius: var(--radius-xl);
  background: rgb(255 255 255 / 4.5%);
  color: inherit;
  text-decoration: none;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.sidebar-team:hover {
  background: rgb(255 255 255 / 7.5%);
  border-color: rgb(148 163 184 / 24%);
}

.team-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6366f1, #0f9f8f);
  color: white;
  font-weight: 700;
  font-size: var(--text-base);
  flex: 0 0 auto;
}

.team-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.team-info strong {
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-info small {
  color: #94a3b8;
  font-size: 10.5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-team .invite-code {
  color: #94a3b8;
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  margin-top: 2px;
  flex: none;
}

.sidebar-team > .icon {
  width: 15px;
  height: 15px;
  color: #94a3b8;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 22px;
}

.side-nav-section {
  margin-top: 22px;
}

.side-nav-label {
  margin: 0 0 8px 10px;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 650;
}

.side-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border-radius: var(--radius-md);
  color: #aebbd0;
  font-size: 12.5px;
  font-weight: 550;
  text-decoration: none;
  position: relative;
  transition: background 0.18s ease, color 0.18s ease;
}

.side-nav-item .icon {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.side-nav-item:hover {
  background: rgb(255 255 255 / 5.5%);
  color: #e2e8f0;
}

.side-nav-item.active {
  background: rgb(255 255 255 / 9%);
  color: white;
}

.side-nav-item.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #a5b4fc, #5b5bd6);
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-user {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 4px 4px;
  margin-top: var(--space-3);
  border-top: 1px solid rgb(148 163 184 / 12%);
  background: linear-gradient(180deg, rgb(16 26 47 / 82%), var(--sidebar-2) 42%);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.sidebar-user .avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.user-meta strong {
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta small {
  color: #64748b;
  font-size: var(--text-caption);
  margin-top: 1px;
}

.sidebar-user .icon-btn {
  color: #94a3b8;
  border-color: transparent;
  background: transparent;
}

.sidebar-user .icon-btn:hover {
  color: white;
  background: rgb(255 255 255 / 7%);
}

/* ---------- topbar / content ---------- */

.app-body {
  flex: 1;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-topbar {
  height: 72px;
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  background: rgb(255 255 255 / 82%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  z-index: 30;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-body-sm);
  color: var(--muted);
  white-space: nowrap;
}

.breadcrumb .icon {
  width: 13px;
  height: 13px;
  color: #cbd5e1;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar-actions > a:first-child {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: var(--text-body-sm);
  font-weight: 600;
  text-decoration: none;
}

.topbar-actions > a:first-child:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.topbar-user {
  display: inline-flex;
  text-decoration: none;
}

.app-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 26px 28px 44px;
}

/* 内容切换只用透明度淡入，不用 transform：transform 会让 fixed 子元素以内容区为包含块。 */
.app-content > * {
  animation: app-content-fade 0.24s ease both;
}

@keyframes app-content-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.icon-btn .icon {
  width: 17px;
  height: 17px;
}

.mobile-menu {
  display: none;
}

.sidebar-scrim {
  display: none;
}

/* ---------- shared surfaces ---------- */

.workspace {
  display: block;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-3xl);
  padding: 22px;
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.panel-head h2 {margin: 0;
  font-size: var(--text-title);

  font-size: 17px;
  letter-spacing: -0.01em;
}

.panel-head p {margin: 0;
  font-size: var(--text-body);

  color: var(--muted);
}

.btn {display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font: inherit;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.05s ease;

  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--text-body-sm);
  font-weight: 600;
  box-shadow: none;
}

.btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #5b5bd6);
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 18px -10px rgb(79 70 229 / 65%);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #6d70f5, #5b5bd6);
  border-color: transparent;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-2);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.btn-danger {
  background: var(--danger-soft);
  border-color: transparent;
  color: #dc2626;
}

.btn-sm {padding: 6px 10px;
  font-size: var(--text-body);
  border-radius: var(--radius-sm);

  min-height: 30px;
  padding: 0 9px;
  font-size: 10.5px;
}

.work-toolbar {
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.work-toolbar h2,
.work-toolbar h1 {
  margin: 0;
  font-size: var(--text-title);
  letter-spacing: -0.02em;
}

.work-row {padding:18px 0; border-bottom:1px solid var(--line);

  padding: var(--space-7);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.work-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--text-body-sm);
}

.field label,
.work-form label,
.work-toolbar label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.field input,
.field textarea,
.work-form input:not([type="checkbox"]):not([type="color"]),
.work-form select,
.work-form textarea,
.work-toolbar select {
  border-color: var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--text-body);
}

.field input:focus,
.field textarea:focus,
.work-form input:focus,
.work-form select:focus,
.work-form textarea:focus {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgb(99 102 241 / 8%);
}

.work-dialog {background:white; border-radius: var(--radius-2xl); box-shadow:var(--shadow); padding: var(--space-9); width:560px; max-width:100%; max-height:92vh; overflow:auto;

  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: var(--space-9);
}

.modal-backdrop {position:fixed; inset:0; z-index: var(--z-modal); background:#11182780; display:flex; align-items:center; justify-content:center; padding: var(--space-7);

  background: rgb(15 23 42 / 42%);
  backdrop-filter: blur(3px);
}

.banner {border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: var(--text-body);
  line-height: 1.5;

  border-radius: var(--radius-md);
  font-size: var(--text-body-sm);
}

.error-panel {
  max-width: 620px;
}

.auth-page {min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;

  background:
    radial-gradient(700px 500px at 15% 0%, rgb(99 102 241 / 24%), transparent 65%),
    radial-gradient(600px 440px at 100% 100%, rgb(15 159 143 / 18%), transparent 60%),
    #0b1220;
}

.auth-card {width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow);

  background: rgb(255 255 255 / 96%);
  border-radius: 22px;
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / 70%);
  border: 1px solid rgb(255 255 255 / 20%);
}

/* ---------- responsive shell ---------- */

@media (max-width: 980px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    flex-basis: 260px;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    align-self: auto;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 20px 0 50px -30px rgb(15 23 42 / 60%);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: var(--z-sidebar-mobile);
    padding: 0;
    border: 0;
    background: rgb(15 23 42 / 42%);
  }

  .mobile-menu {
    display: inline-flex;
  }

  .app-topbar {
    padding: 0 18px;
  }

  .app-content {
    padding: 22px 18px 40px;
  }
}

@media (max-width: 600px) {
  .app-topbar {
    height: 64px;
    flex-basis: 64px;
    padding: 0 12px;
    gap: var(--space-4);
  }

  .app-content {
    padding: 16px 12px 32px;
  }

  .breadcrumb {
    font-size: var(--text-meta);
  }

  .topbar-actions {
    gap: var(--space-2);
  }

  .topbar-actions > a:first-child {
    font-size: 0;
    padding: 7px;
  }

  .topbar-actions > a:first-child::before {
    content: "通知";
    font-size: var(--text-meta);
  }

  .panel {
    padding: var(--space-7);
    border-radius: var(--radius-2xl);
  }

  .work-row {
    padding: var(--space-5);
  }
}

/* notification bell */
.topbar-actions > a.bell-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  font-size: 0;
}

.topbar-actions > a.bell-link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.bell-link .icon {
  width: 17px;
  height: 17px;
}

.bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: #ef4444;
  color: white;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

@media (max-width: 600px) {
  .topbar-actions > a.bell-link::before {
    content: none;
  }
}

/* ---------- calendar page ---------- */



.calendar-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-7);
  padding: 21px 22px 15px;
}

.calendar-head h1,
.calendar-head h2 {
  margin: 3px 0 0;
  font-size: var(--text-heading);
  letter-spacing: -0.02em;
}

.calendar-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.calendar-head .eyebrow {
  margin: 0;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  color: var(--faint);
}

.calendar-tools {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calendar-filterbar {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding: 0 22px 14px;
  border-bottom: 1px solid var(--line);
}

.calendar-filterbar label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-meta);
  font-weight: 600;
  color: var(--muted);
}

.calendar-filterbar select {
  height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 11.5px;
}

.calendar-error,
.calendar-loading {
  margin: 12px 22px;
  font-size: var(--text-body-sm);
}

.calendar-scroll {
  overflow: auto;
  padding: 0 12px 14px;
}

.calendar-scroll .rbc-calendar {
  font-size: 11.5px;
}

.rbc-toolbar {
  padding: 12px 10px;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.rbc-toolbar button {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.rbc-toolbar button:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.rbc-toolbar button.rbc-active,
.rbc-toolbar button.rbc-active:hover {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-strong);
  box-shadow: none;
}

.rbc-toolbar-label {
  font-size: var(--text-body);
  font-weight: 650;
  color: var(--ink);
}

.rbc-month-view,
.rbc-time-view {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rbc-header {
  padding: 8px 4px;
  border-color: var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.rbc-month-row,
.rbc-day-bg,
.rbc-time-content,
.rbc-time-header-content,
.rbc-timeslot-group {
  border-color: var(--line);
}

.rbc-date-cell {
  padding: 5px 7px;
  color: var(--faint);
  font-size: 10.5px;
}

.rbc-date-cell.rbc-now {
  color: var(--accent-strong);
  font-weight: 700;
}

.rbc-off-range-bg {
  background: var(--surface-2);
}

.rbc-today {
  background: rgb(238 240 255 / 55%);
}

.rbc-event {
  border: 0;
  border-radius: 6px;
  padding: 2px 5px;
  font-size: 10.5px;
  line-height: 1.25;
  box-shadow: 0 2px 5px -3px rgb(15 23 42 / 35%);
}

.rbc-show-more {
  color: var(--accent-strong);
  font-size: var(--text-caption);
}



.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-3xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
}

.side-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.side-card-head h3 {
  margin: 0;
  font-size: var(--text-body-sm);
  font-weight: 650;
}

.side-card-head a {
  color: var(--accent-strong);
  font-size: 10.5px;
  text-decoration: none;
}

.side-count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-left: var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.today-card {
  color: white;
  border: 0;
  background:
    radial-gradient(250px 180px at 100% 0%, rgb(45 212 191 / 22%), transparent 70%),
    radial-gradient(220px 160px at 0% 100%, rgb(124 108 247 / 35%), transparent 70%),
    linear-gradient(135deg, #111a30, #1e2b4d);
  box-shadow: 0 20px 45px -30px rgb(15 23 42 / 80%);
}

.side-eyebrow {
  margin: 0;
  color: #94a3b8;
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.today-card h2 {
  margin: 8px 0 4px;
  font-size: var(--text-heading);
  letter-spacing: -0.02em;
}

.today-card p:not(.side-eyebrow) {
  margin: 0;
  color: #cbd5e1;
  font-size: var(--text-meta);
}

.today-button {
  margin-top: var(--space-6);
  background: rgb(255 255 255 / 9%);
  border-color: rgb(255 255 255 / 14%);
  color: white;
}

.today-button:hover:not(:disabled) {
  background: rgb(255 255 255 / 14%);
  border-color: rgb(255 255 255 / 20%);
}

.side-invite,
.side-task {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 6px;
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
}

.side-invite:hover,
.side-task:hover {
  background: var(--surface-2);
}

.side-invite-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--teal);
  font-size: var(--text-meta);
  font-weight: 700;
  flex: 0 0 auto;
}

.side-invite span:last-child,
.side-task span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.side-invite strong,
.side-task strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
}

.side-invite small,
.side-task small {
  color: var(--faint);
  font-size: var(--text-caption);
  margin-top: 1px;
}

.side-status {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  flex: 0 0 auto;
}

.side-status.doing {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.side-status.done {
  border-color: var(--green);
  background: var(--green);
}

.side-status.overdue {
  border-color: var(--coral);
}

.side-empty {
  margin: 4px 0;
  color: var(--faint);
  font-size: var(--text-meta);
}

.busy-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 32px;
  align-items: center;
  gap: var(--space-3);
  padding: 5px 0;
  font-size: 10.5px;
}

.busy-row > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
}

.busy-track {
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.busy-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #818cf8, #5b5bd6);
}

.busy-row small {
  color: var(--faint);
  text-align: right;
  font-size: 9.5px;
}

@media (max-width: 1180px) {
  .calendar-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .calendar-head {
    flex-direction: column;
    padding: 18px 16px 12px;
  }

  .calendar-filterbar {
    padding: 0 16px 12px;
  }

  .calendar-side {
    grid-template-columns: 1fr;
  }

  .calendar-scroll {
    padding: 0 8px 10px;
  }
}

/* ---------- members ---------- */

.page-head.compact {
  align-items: flex-start;
  margin-bottom: 18px;
}

.page-head.compact h1,
.page-head.compact h2 {
  margin: 4px 0 4px;
  font-size: var(--text-heading-sm);
  letter-spacing: -0.02em;
}

.page-head.compact .muted {
  margin: 0;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
}

.member-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-7);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-2);
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #818cf8, #5b5bd6);
  color: white;
  font-size: var(--text-base);
  font-weight: 700;
  flex: 0 0 auto;
}

.member-main {
  min-width: 0;
  flex: 1;
}

.member-name {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.member-name strong {
  font-size: 12.5px;
}

.member-main p {
  margin: 3px 0 0;
  font-size: 10.5px;
}

.member-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
  flex: 0 0 auto;
}

/* ---------- tasks / settings ---------- */

.tasks-panel .work-toolbar {
  align-items: flex-end;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.task-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
}

.task-status.doing {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.task-status.done {
  background: var(--teal-soft);
  color: #0f766e;
}

.task-status.overdue {
  background: var(--danger-soft);
  color: #dc2626;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.setting-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-2);
}

.setting-card h3 {
  margin: 0;
  font-size: var(--text-body);
}

.setting-card p {
  margin: 0;
  font-size: var(--text-meta);
}

.setting-card .btn {
  margin-top: auto;
}

.setting-list {
  display: grid;
  gap: 7px;
  width: 100%;
  margin: 0;
}

.setting-list > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  font-size: var(--text-meta);
}

.setting-list dt {
  color: var(--muted);
}

.setting-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.setting-code {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-body-sm);
  letter-spacing: 0.1em;
}

.danger-zone {
  border-color: #fecaca;
  background: #fffafa;
}

/* ---------- generic page headings / notices / team select ---------- */

.panel > h1,
.panel > h2 {
  letter-spacing: -0.02em;
}

.panel > h1 {
  margin: 0 0 12px;
  font-size: var(--text-heading-sm);
}

.team-list-section {
  margin-top: 22px;
}

.team-grid {display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--space-7);

  gap: var(--space-6);
}

.team-card {display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;

  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
}

.team-card:hover {border-color: #c7cdf7;
  box-shadow: 0 18px 40px -32px rgb(79 70 229 / 55%);
  transform: translateY(-1px);

  border-color: #c7d2fe;
  box-shadow: var(--shadow-md);
}

.empty-state {padding: 48px 24px;
  text-align: center;
  background: rgb(255 255 255 / 60%);
  border: 1px dashed #cfd6e4;
  border-radius: var(--radius-3xl);

  border-radius: var(--radius-3xl);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
}

.notice {text-align:left; width:100%; border:0; border-bottom:1px solid var(--line); background:white; cursor:pointer; font:inherit;

  width: 100%;
  text-align: left;
  cursor: pointer;
  align-items: flex-start;
  color: var(--ink);
}

.notice:hover {
  background: var(--surface-2);
}

.notice.unread {background:var(--accent-soft); padding: var(--space-7);

  border-left: 3px solid var(--accent);
  background: #fbfbff;
}

.notice p {
  margin: 4px 0 0;
  color: var(--muted);
}

.notice > span:last-child {
  color: var(--faint);
  font-size: 10.5px;
  white-space: nowrap;
}

/* 同一活动/任务的同类通知合并成一组：最近一条 + 折叠历史。 */
.notice-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  cursor: default;
}

.notice-main {
  grid-column: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.notice-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  min-width: 0;
}

.notice-title strong {
  overflow-wrap: anywhere;
}

.notice-type {
  flex: none;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 650;
}

.notice-count {
  flex: none;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: var(--text-caption);
  font-weight: 650;
}

.notice-meta {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
  color: var(--faint);
  font-size: 10.5px;
  white-space: nowrap;
}

.notice-actions {
  display: flex;
  gap: var(--space-4);
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.notice-history {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px dashed var(--line-strong);
  list-style: none;
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-meta);
  color: var(--muted);
}

.notice-history li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: baseline;
}

.notice-history li > span:nth-child(2) {
  overflow-wrap: anywhere;
  color: var(--ink-2);
}

.notice-history li.unread > span:nth-child(2) {
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 600px) {
  .notice-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .notice-meta {
    grid-column: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .member-card {
    flex-wrap: wrap;
  }

  .member-actions {
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding-left: 50px;
  }
}

/* ---------- profile ---------- */

.profile-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 24px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface-2);
  text-align: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-3xl);
  color: white;
  font-size: var(--text-heading);
  font-weight: 700;
}

/* AUTH-8：上传头像的图片形态与首字母块保持同一尺寸/圆角。 */
.avatar-image,
.member-avatar.avatar-image,
.resource-avatar.avatar-image,
.profile-avatar.avatar-image {
  object-fit: cover;
  background: var(--surface-3);
}

.profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.profile-avatar-hint {
  margin: 8px 0 0;
  font-size: 10.5px;
  text-align: center;
}

.profile-avatar-error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: var(--text-meta);
  text-align: center;
}

.profile-card strong {
  font-size: var(--text-base);
}

.profile-card p {
  margin: 0;
  font-size: var(--text-meta);
}

.profile-form {
  gap: var(--space-6);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface);
}

@media (max-width: 600px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* Private busy blocks: striped, no title text; public events are already rendered separately. */
.rbc-background-event {
  border: 0 !important;
  background: repeating-linear-gradient(
    135deg,
    rgb(100 116 139 / 18%) 0 6px,
    rgb(100 116 139 / 7%) 6px 12px
  ) !important;
  opacity: 1 !important;
  pointer-events: none;
}

.rbc-background-event .rbc-event-content,
.rbc-background-event .rbc-event-label {
  display: none;
}

/* Calendar readability: full-width calendar, 08:00–22:00, side cards below. */
.calendar-page {display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-8);
  align-items: start;
grid-template-columns: minmax(0, 1fr);
}

.calendar-side {display: flex;
  flex-direction: column;
  gap: var(--space-7);
display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
}

.calendar-scroll .rbc-time-view,
.calendar-scroll .rbc-time-content,
.calendar-scroll .rbc-time-header-content {
  border-radius: var(--radius-md);
}



.rbc-day-slot .rbc-event {
  border: 0;
  border-radius: 6px;
  padding: 3px 5px;
}

.rbc-day-slot .rbc-event-content {
  width: 100%;
  min-width: 0;
}

.rbc-event-label {
  display: none;
}

.cal-event {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  min-width: 0;
  line-height: 1.1;
}

.cal-event strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 10.5px;
  font-weight: 600;
}

.cal-event small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  opacity: 0.88;
}

.rbc-month-view .cal-event small {
  display: none;
}

@media (max-width: 1200px) {
  .calendar-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .calendar-side {
    grid-template-columns: 1fr;
  }
}

.rbc-day-slot .rbc-event-label {
  display: none;
}

/* Fill calendar cells: no right gutter, no phantom all-day row. */
.rbc-day-slot .rbc-events-container {margin-right: 0;
margin-right: 0 !important;
}

.rbc-row-segment {
  padding: 0;
}

.rbc-allday-cell .rbc-row-content > .rbc-row:empty {
  display: none;
}

/* ---------- event detail ---------- */

.event-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-7);
  margin-bottom: var(--space-5);
}



.event-detail-head > div > a {
  color: var(--accent-strong);
  font-size: var(--text-meta);
  text-decoration: none;
}

.event-edit-hint {
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: var(--text-meta);
}

/* Resource day view: one column per member, demo-style header. */
.rbc-time-view-resources .rbc-header {
  padding: 9px 10px;
  border-color: var(--line);
  background: var(--surface);
}

.rbc-time-view-resources .rbc-time-header-content {
  border-color: var(--line);
}

.resource-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
}

.resource-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: white;
  font-size: var(--text-body-sm);
  font-weight: 700;
  flex: 0 0 auto;
}

.resource-head > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.resource-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: var(--text-body-sm);
  font-weight: 650;
}

.resource-head small {
  color: var(--faint);
  font-size: 9.5px;
  margin-top: 1px;
}

/* Keep a visible gutter between member columns in resource day view. */
.rbc-time-view-resources .rbc-events-container {
  padding-right: 3px;
}

.rbc-time-view-resources .rbc-day-slot {
  border-right: 1px solid var(--line);
}

.rbc-time-view-resources .rbc-day-slot .rbc-event {
  border-right: 3px solid var(--surface) !important;
}

/* Custom calendar toolbar */
.cal-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 12px 12px;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cal-nav .icon-btn {
  width: 34px;
  height: 34px;
  font-size: var(--text-heading-sm);
  line-height: 1;
}

.cal-nav .btn {
  height: 34px;
}

.cal-toolbar-label {
  flex: 1;
  text-align: center;
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: 650;
}

.cal-views {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.cal-view {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.cal-view:hover {
  color: var(--ink);
}

.cal-view.active {
  background: white;
  color: var(--accent-strong);
  box-shadow: 0 1px 3px rgb(15 23 42 / 10%);
}

@media (max-width: 600px) {
  .cal-toolbar {
    flex-wrap: wrap;
    padding: 10px 8px;
  }

  .cal-toolbar-label {
    order: 3;
    flex-basis: 100%;
    text-align: center;
  }
}

/* Week header: weekday over date, no month label; today is identified by the top bar. */


.cal-week-head span {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 500;
}

.cal-week-head strong {
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: 700;
}

.rbc-time-view .rbc-today,
.rbc-time-header .rbc-header.rbc-today {
  background: transparent;
}

.rbc-current-time-indicator {
  display: none;
}

/* Give the two-line week header enough room for weekday + date. */
.view-week .rbc-time-header .rbc-row:first-child {
  min-height: 56px;
}



/* "Today" pin sticker in the calendar header; replaces the old tinted cell. */
.calendar-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.today-sticker {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  background: #fff7ed;
  color: #c2410c;
  font-size: var(--text-caption);
  font-weight: 700;
  line-height: 1.3;
  transform: rotate(-2deg);
  box-shadow: 0 2px 0 #ffedd5;
  white-space: nowrap;
}

/* Today is pinned inside the day cell, not tinted and not in the title. */
.rbc-month-view .rbc-today,
.rbc-month-view .rbc-row-bg .rbc-today {
  background: transparent;
}

.rbc-month-view .rbc-date-cell {
  position: relative;
}

.rbc-month-view .rbc-date-cell.rbc-now {
  padding-right: 22px;
  color: var(--faint);
  font-weight: 600;
}

.rbc-month-view .rbc-date-cell.rbc-now::after {
  content: "📌";
  position: absolute;
  top: 1px;
  right: 3px;
  padding: 1px 3px;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  background: #fff7ed;
  font-size: 9px;
  line-height: 1.2;
  transform: rotate(8deg);
  box-shadow: 0 1px 0 #ffedd5;
}

.cal-week-head {display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
position: static;
  width: auto;
}

.view-week .rbc-time-header .rbc-header {height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
position: relative;
}

.today-pin {
  position: absolute;
  top: 5px;
  right: 7px;
  padding: 1px 3px;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  background: #fff7ed;
  font-size: var(--text-caption);
  line-height: 1.2;
  transform: rotate(8deg);
  box-shadow: 0 1px 0 #ffedd5;
}

/* Remove old title sticker styles. */
.calendar-title-row,
.today-sticker {
  display: none;
}

/* Zoomable timeline: time is shared across all day columns. */
.timeline { border: 1px solid #e9edf4; border-radius: var(--radius-xl); overflow: hidden; }

.timeline-controls > div { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.timeline-controls button { width: 27px; height: 27px; border: 1px solid #e4e7ee; background: white; border-radius: 7px; color: var(--accent); cursor: pointer; }
.timeline-controls button:disabled { opacity: .35; cursor: default; }
.timeline-controls output { width: 58px; text-align: center; font-variant-numeric: tabular-nums; }
.timeline-horizontal { overflow-x: auto; }
.timeline-sheet { min-width: 0; }
.timeline-head, .timeline-allday, .timeline-row { display: grid; grid-template-columns: 76px repeat(var(--timeline-days), minmax(0,1fr)); }
.timeline-head > div { position: relative; display: grid; justify-items: center; gap: 7px; padding: 17px 0; }
.timeline-head > div > span:not(.today-pin):not(.resource-head) { font-size: var(--text-meta); color: #8a94a5; }
.timeline-head > div > strong { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; font-size: 24px; font-weight: 500; letter-spacing: -.05em; color: #344054; }


.timeline-corner { align-self: center; text-align: center; font-size: var(--text-caption); color: #98a1b1; }
.timeline-allday { border-top: 1px solid #f0f2f6; background: #fcfcfe; }
.timeline-allday > span { align-self: center; text-align: center; font-size: var(--text-caption); color: #98a1b1; }
.timeline-allday > div { padding: 6px 4px; min-height: 36px; border-left: 1px solid #f0f2f6; }
.timeline-allday button, .timeline-event { color: var(--event-text, #111827); background: color-mix(in srgb, var(--event-color) 10%, white); border: 1px solid color-mix(in srgb, var(--event-border, var(--event-color)) 35%, white); border-left: 3px solid var(--event-border, var(--event-color)); border-radius: 6px; text-align: left; font: inherit; cursor: pointer; }
.timeline-allday button { display: block; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 2px 0; padding: 4px 6px; font-size: var(--text-meta); }
.timeline-viewport { max-height: 530px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d7dce6 transparent; border-top: 1px solid #e9edf4; }
.timeline-body { position: relative; }
.timeline-row { position: absolute; left: 0; right: 0; border-bottom: 1px solid #edf0f5; }
.timeline-row > span { padding: 8px 12px 0 0; text-align: right; font-size: var(--text-caption); color: #98a1b1; font-variant-numeric: tabular-nums; }
.timeline-row > button { border: 0; border-left: 1px solid #f0f2f6; background: white; cursor: crosshair; }

.timeline-row > button:hover { background: #f1efff; }
.timeline-fold { position: absolute; z-index: 3; left: 0; width: 100%; display: flex; align-items: center; gap: var(--space-8); border: 0; border-block: 1px dashed #e0e3ef; background: #f6f7fb; color: #8790a3; cursor: pointer; font: inherit; font-size: var(--text-caption); padding: 0 14px; }
.timeline-fold > span:first-child { font-variant-numeric: tabular-nums; }
.timeline-fold > span:last-child { margin: 0 auto; letter-spacing: .03em; }
.timeline-fold:hover { background: #eeecff; color: var(--accent); }
.timeline-event-columns { position: absolute; inset: 0 0 0 76px; display: grid; grid-template-columns: repeat(var(--timeline-days),minmax(0,1fr)); pointer-events: none; }
.timeline-event-column { position: relative; min-width: 0; margin-left: var(--space-1); }
.timeline-event { position: absolute; z-index: 2; overflow: hidden; padding: 5px 7px; pointer-events: auto; }
.timeline-event small { display: block; font-size: var(--text-caption); opacity: .8; white-space: nowrap; }
.timeline-event strong { display: block; font-size: var(--text-body-sm); line-height: 1.5; overflow-wrap: anywhere; }
.timeline-event:hover { filter: brightness(.97); box-shadow: 0 3px 10px #34405414; }
.timeline-busy-block { position: absolute; inset-inline: 0; background: repeating-linear-gradient(135deg,#64748b14 0px,#64748b14 3px,transparent 3px,transparent 8px); border-left: 2px solid #94a3b8; }
.timeline-reset { display: block; width: 100%; padding: var(--space-4); border: 0; border-top: 1px solid #edf0f5; color: var(--accent); background: #fafbfe; font: inherit; font-size: var(--text-meta); cursor: pointer; }
@media (max-width: 600px) {
  .timeline-controls { flex-wrap: wrap; padding: var(--space-4); }
  .timeline-controls > span > span { display: none; }
  .view-week .timeline-sheet { min-width: 720px; }
  .view-day .timeline-sheet { min-width: max(340px, calc(var(--timeline-days) * 140px + 76px)); }
  .timeline-viewport { max-height: 460px; }
}

.timeline-head .resource-head { align-self: center; }
.timeline-controls {display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); padding: 12px 16px; background: #fafbfe; border-bottom: 1px solid #edf0f5; font-size: var(--text-meta); color: #68758a;
border-radius: 12px 12px 0 0;
}

/* Back-to-calendar is a button, not a blue text link. */
.back-to-calendar {
  margin-bottom: var(--space-6);
}

.back-to-calendar .icon {
  width: 14px;
  height: 14px;
}

.event-detail-head .back-to-calendar {
  margin-bottom: 0;
}

.event-detail-head h1,
.event-detail-head h2 {
  margin: 6px 0 0;
  margin-top: var(--space-3);
  font-size: var(--text-heading);
  letter-spacing: -0.02em;
}

/* 新手教程与首次使用提示（W5 / CAL-6 配套） */
.tutorial-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: var(--radius-md);
}
.tutorial-prompt strong { display: block; margin-bottom: var(--space-1); }
.tutorial-prompt p { margin: 0; color: #475569; font-size: var(--text-body); }
.tutorial-prompt .panel-actions { margin: 0; flex-wrap: wrap; }
.tutorial-page { display: grid; gap: 22px; }
.tutorial-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); }
.tutorial-step { position: relative; padding: 16px 16px 14px; border: 1px solid #e2e8f0; border-radius: var(--radius-md); background: #fff; }
.tutorial-step h2 { margin: 0 0 6px; font-size: 15px; }
.tutorial-step p { margin: 0; color: #475569; font-size: var(--text-body); line-height: 1.65; }
.tutorial-step-number { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-bottom: var(--space-3); border-radius: 50%; background: #eef2ff; color: #4338ca; font-size: var(--text-body-sm); font-weight: 700; }
.tutorial-colors { padding: var(--space-7); border: 1px solid #e2e8f0; border-radius: var(--radius-md); background: #f8fafc; }
.tutorial-colors h2 { margin: 0 0 12px; font-size: var(--text-subtitle); }
.tutorial-colors h3 { margin: 12px 0 8px; font-size: var(--text-body); color: #475569; }
.tutorial-color-grid { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.tutorial-swatch { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 7px; font-size: var(--text-body-sm); font-weight: 600; }

/* 关于页（项目介绍） */
.about-page { display: grid; gap: var(--space-8); }
.about-hero { padding: var(--space-8); border-radius: var(--radius-lg); background: linear-gradient(135deg, #eef2ff, #f8fafc); border: 1px solid #e0e7ff; }
.about-hero h2 { margin: 0 0 10px; font-size: var(--text-heading-sm); }
.about-hero p { margin: 0; color: #475569; font-size: var(--text-base); line-height: 1.8; }
.about-section { display: grid; gap: var(--space-5); }
.about-section > h2 { margin: 0; font-size: 17px; }
.about-section .tutorial-step h2 { font-size: 15px; }
.about-color-row { margin-top: var(--space-3); }
.about-list { margin: 0; padding-left: var(--space-8); color: #475569; font-size: var(--text-body); line-height: 1.9; }

/* 我的日程（CR-002 / CAL-9） */
.personal-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: var(--space-3); }
.personal-list li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; }
.personal-list strong { font-size: var(--text-body); }
.personal-list small { display: block; color: #64748b; font-size: var(--text-body-sm); }
.personal-swatch { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-sm); font-size: var(--text-meta); font-weight: 700; }
.checkbox-row { display: flex; align-items: center; gap: var(--space-3); }

/* 关于页版本信息 */
.about-version { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); margin: 0; }
.about-version div { padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: var(--radius-sm); background: #f8fafc; }
.about-version dt { color: #64748b; font-size: var(--text-body-sm); }
.about-version dd { margin: 4px 0 0; font-weight: 600; font-size: var(--text-body); word-break: break-all; }
.tutorial-version { margin: 0; font-size: var(--text-body-sm); }

/* 我的日程：任务行按紧急度着色（与日历任务颜色同源） */
.personal-row { border-radius: var(--radius-sm); padding: 6px 8px; }
.personal-row-urgent strong { color: #b91c1c; }
.personal-row-soon strong { color: #92400e; }

/* 个人日历（CR-013）：月/周/任务清单 */
.personal-calendar-page .calendar-filterbar { flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.personal-calendar-legend { display: flex; gap: var(--space-5); margin: 0 0 0 auto; font-size: var(--text-body-sm); color: #475569; }
.personal-calendar-legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.personal-calendar-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--legend); }
.personal-task-list { display: grid; gap: var(--space-6); margin-top: var(--space-3); }

/* ---------- CR-016：对象内讨论 / 通告 / 收件箱 ---------- */

.thread {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-7);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface);
}

.thread-compact { padding: var(--space-5); border-radius: var(--radius-lg); }

.thread-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.thread-head h3 { margin: 0; font-size: var(--text-base); }
.thread-head .muted { font-size: var(--text-meta); }
.thread-head .link-btn { margin-left: auto; }

.thread-empty { margin: 0; font-size: var(--text-body-sm); }

.thread-list {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.thread-item { display: flex; gap: var(--space-4); align-items: flex-start; }

.thread-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: var(--text-body-sm); font-weight: 700;
  flex: 0 0 auto;
}

.thread-body { min-width: 0; flex: 1; }
.thread-meta { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-meta); flex-wrap: wrap; }
.thread-meta strong { font-size: var(--text-body-sm); color: var(--ink); }
.thread-text { margin: 4px 0 0; font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }

.thread-kind {
  padding: 1px 6px; border-radius: 6px;
  background: var(--surface-3); color: var(--muted); font-weight: 650;
}
.thread-blocker .thread-kind { background: var(--warn-soft); color: var(--warn); }
.thread-unblock .thread-kind { background: var(--teal-soft); color: var(--teal); }
.thread-requirement .thread-kind { background: var(--accent-soft); color: var(--accent-strong); }

.thread-form { display: grid; gap: var(--space-3); border-top: 1px dashed var(--line-strong); padding-top: var(--space-4); }
.thread-form textarea {
  width: 100%; resize: vertical; min-height: 56px;
  padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md);
  font: inherit; font-size: 12.5px;
}
.thread-kind-select select { font-size: 11.5px; padding: 5px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.thread-mentions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.thread-actions { display: flex; justify-content: flex-end; }
.thread-error { margin: 0; color: var(--danger); font-size: 11.5px; }

.chip {
  padding: 3px 8px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface-2);
  color: var(--muted); font-size: var(--text-meta); cursor: pointer;
}
.chip-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }

.announcement-card {
  display: grid; gap: var(--space-2);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: var(--surface);
}
.announcement-card.pinned { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.announcement-card.expired { opacity: 0.6; }
.announcement-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.announcement-head h3 { margin: 0; font-size: var(--text-base); }
.announcement-body { margin: 0; font-size: 12.5px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.announcement-foot { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-meta); color: var(--muted); }
.announcement-foot .btn { margin-left: auto; }
.ack-progress { display: inline-flex; align-items: center; gap: var(--space-2); }
.ack-bar { width: 84px; height: 6px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.ack-bar > span { display: block; height: 100%; background: var(--teal); }


.inbox-item:hover { border-color: var(--accent); }
.inbox-item-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.inbox-kind { padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font-size: var(--text-caption); font-weight: 650; }
.inbox-context { font-size: var(--text-meta); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.inbox-content {
  margin: 2px 0 0; font-size: var(--text-body); font-weight: 600; color: var(--ink);
  line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .thread { padding: var(--space-5); border-radius: var(--radius-lg); }
  .thread-list { max-height: 320px; }
  .thread-mentions { max-height: 74px; overflow-y: auto; }
}

.nav-badge {
  margin-left: auto;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: var(--text-caption);
  font-weight: 700;
  text-align: center;
}

.participant-note {
  margin: 4px 0 0;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 11.5px;
}

.participant-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.rsvp-block { display: grid; gap: var(--space-3); margin: 10px 0; }
.rsvp-block label { font-size: 11.5px; color: var(--muted); }
.rsvp-block input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 12.5px; }
.event-messages { margin-top: 18px; }
.announcement-list { display: grid; gap: var(--space-5); }
.announcement-manage { display: inline-flex; gap: var(--space-4); margin-left: auto; }
.inbox-list { display: grid; gap: var(--space-4); }
.inbox-item {display: grid; gap: var(--space-1);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); text-align: left; cursor: pointer;
font: inherit;
}
.receipt-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: var(--space-3); max-height: 320px; overflow-y: auto; }
.receipt-list li { display: flex; align-items: center; gap: var(--space-4); font-size: 12.5px; }
.receipt-list li .muted { margin-left: auto; font-size: var(--text-meta); }
.receipt-list li.acked > span:nth-child(2) { color: var(--ink); font-weight: 600; }
.note-form { margin: 10px 0; padding: var(--space-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.thread-dialog { max-height: 86vh; overflow-y: auto; }
.inline-check { display: flex !important; align-items: center; gap: var(--space-3); }

.mention-field { position: relative; display: grid; }
.mention-field textarea {
  width: 100%; resize: vertical; min-height: 56px;
  padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md);
  font: inherit; font-size: 12.5px;
}
.mention-menu {
  position: absolute; z-index: 20; left: 0; bottom: calc(100% + 4px);
  min-width: 160px; max-height: 190px; overflow-y: auto;
  margin: 0; padding: var(--space-1); list-style: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: 0 12px 30px rgb(15 23 42 / 16%);
}
.mention-option {
  display: block; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px;
  background: none; color: var(--ink-2); font: inherit; font-size: var(--text-body-sm);
  text-align: left; cursor: pointer;
}
.mention-option:hover, .mention-option.active { background: var(--accent-soft); color: var(--accent-strong); }
.thread-form .mention-field textarea { min-height: 56px; }

.work-note-field { display: grid; gap: var(--space-2); }
.work-note-label { font-size: var(--text-body-sm); font-weight: 600; color: var(--ink-2); }
.work-note-field .muted { margin: 0; font-size: var(--text-meta); }

/* 合并后的通知页：待处理 / 全部动态 */
.notice-toolbar {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  margin: 4px 0 14px;
}
.notice-tabs { display: flex; gap: var(--space-2); }
.notice-tab {
  padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface-2);
  color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.notice-tab.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.notice-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 放得下时标签与右侧操作同一横排，放不下才换行。 */
.notice-toolbar-actions { margin-left: auto; padding: 0; }
.notice-toolbar-actions .btn { padding: 6px 12px; font-size: var(--text-body-sm); }
.notice-pager { justify-content: flex-end; align-items: center; gap: var(--space-3); }
.notice-pager .btn { padding: 6px 12px; font-size: var(--text-body-sm); }

/* 活动详情：顶部操作与参与者行内回应（CR-016 第四轮） */
.event-head-actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.event-scope select { font-size: 11.5px; padding: 5px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.participant-main { display: grid; gap: 2px; min-width: 0; }
.participant-name { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-body); }
.participant-name small { font-size: var(--text-meta); }
.participant-side { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; justify-content: flex-end; }
.rsvp-actions { display: flex; gap: var(--space-2); }
.rsvp-actions .btn { padding: 5px 12px; font-size: var(--text-body-sm); }
.rsvp-chip {
  padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 650;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted);
}
.rsvp-chip.accepted { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.rsvp-chip.tentative { border-color: #d97706; background: #fef3c7; color: #b45309; }
.rsvp-chip.declined { border-color: var(--danger); background: #fee2e2; color: var(--danger); }
.rsvp-chip.pending { border-style: dashed; }
.rsvp-chip.organizer { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.rsvp-remove { color: var(--danger); font-size: var(--text-subtitle); line-height: 1; padding: 2px 6px; }
.rsvp-remove:hover { background: #fee2e2; }
.rsvp-note-field { display: grid; gap: var(--space-2); margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }
.rsvp-note-field input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 12.5px;
}
.participant-row.is-me { border-color: var(--accent); }
