:root {
  --bg: #f5f8fb; --panel: #fff; --text: #202634; --muted: #737e8f;
  --line: #e3e9ef; --primary: #4562cf; --primary-dark: #344fb8;
  --green: #218269; --amber: #a96c16; --red: #c34450;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; font-family: "Inter", "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.55; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { min-height: 38px; border: 1px solid transparent; border-radius: 7px; background: var(--primary); color: #fff; padding: 8px 14px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; justify-content: center; transition: background .15s, border-color .15s; white-space: nowrap; }
button:hover { background: var(--primary-dark); }
button:disabled { opacity: .55; cursor: not-allowed; }
button[aria-busy=true]::after { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
svg.lucide { width: 18px; height: 18px; flex-shrink: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button.secondary { background: #fff; color: #556174; border-color: var(--line); }
button.secondary:hover { background: #f3f6fb; border-color: #c5d0e0; }
button.ghost, a.ghost { background: transparent; color: var(--primary); border-color: transparent; padding: 6px 9px; }
button.ghost:hover, a.ghost:hover { background: #edf2fd; text-decoration: none; }
button.danger-text { color: var(--red); }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; min-height: 36px; padding: 0 !important; flex-shrink: 0; }
button.small { min-height: 32px; padding: 5px 9px; font-size: 12px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; background: #fff; min-width: 0; color: var(--text); }
input { height: 40px; }
input::placeholder, textarea::placeholder { color: #99a2af; }
input:disabled { color: var(--muted); background: #f3f5f8; }
input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); flex-shrink: 0; }
input[type=file] { height: auto; font-size: 13px; }
input::file-selector-button { background: #edf2fc; border: 0; border-radius: 4px; color: var(--primary); padding: 6px 10px; margin-right: 10px; cursor: pointer; }
textarea { min-height: 96px; resize: vertical; }
:focus-visible { outline: 3px solid #b8cdf3; outline-offset: 2px; }
input:focus, textarea:focus { outline: none; border-color: #7998df; box-shadow: 0 0 0 3px #e8effc; }
label { display: grid; gap: 7px; color: #536075; font-size: 13px; min-width: 0; }
.hidden, [hidden] { display: none !important; }
.invisible { visibility: hidden; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h2 { font-size: 24px; font-weight: 650; margin: 0; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 18px; font-weight: 650; margin: 0 0 22px; }
h4 { font-size: 14px; margin: 22px 0 12px; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 30px 16px; background-color: #f1f6fa; background-image: linear-gradient(#a7bed414 1px, transparent 1px), linear-gradient(90deg, #a7bed414 1px, transparent 1px); background-size: 32px 32px; }
.login-panel { width: min(400px, 100%); background: #ffffffed; border: 1px solid #fff; border-radius: 8px; padding: 32px; display: grid; gap: 20px; box-shadow: 0 14px 48px #354f7012; }
.login h1 { margin: 0 0 4px; font-size: 24px; }
.login-mark, .brand-mark { background: #e9efff; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0; }
.login-mark svg { width: 24px; height: 24px; }
.shell { min-height: 100dvh; display: grid; grid-template-columns: 216px minmax(0, 1fr); }
aside { background: #ffffffed; border-right: 1px solid var(--line); padding: 24px 14px; position: sticky; top: 0; height: 100dvh; }
.brand { font-weight: 650; font-size: 16px; display: flex; align-items: center; gap: 10px; padding: 0 4px 34px; }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.brand-mark { width: 34px; height: 38px; }
nav { display: grid; gap: 7px; }
.nav { width: 100%; justify-content: flex-start; min-height: 44px; background: transparent; color: #687386; padding: 11px 14px; gap: 12px; }
.nav.active { background: #edf2ff; color: #425fc7; font-weight: 600; }
.nav:hover { background: #f2f5fa; color: var(--primary); }
.nav.active svg { color: #4562cf; }
.nav[data-tab=profile] { margin-top: 24px; border-top: 1px solid var(--line); border-radius: 0; }
.main { min-width: 0; background-image: linear-gradient(#b0c1d008 1px, transparent 1px), linear-gradient(90deg, #b0c1d008 1px, transparent 1px); background-size: 28px 28px; }
header { height: 72px; background: #ffffffc9; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 30px; }
.header-location { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.header-location > span:nth-child(2) { color: #c4cbd6; }
.account-menu strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.page { padding: 28px 30px 42px; max-width: 1700px; margin: auto; }
.toolbar, .section-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.toolbar { margin-bottom: 24px; }
.section-heading { margin: 22px 0 12px; }
.section-heading h3, .section-heading h4 { margin: 0; }
.count { font-size: 12px; color: #7e8aa0; background: #e8edf5; padding: 2px 8px; border-radius: 5px; }
.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; background: #ffffff80; }
.stat { padding: 17px 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat span { font-size: 13px; color: #748094; }
.stat strong { font-size: 27px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-0 strong { color: #8792a3; } .stat-1 strong { color: #4969ca; } .stat-2 strong { color: #b78636; } .stat-3 strong { color: #298b75; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters .search-field { flex: 1 1 240px; max-width: 460px; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field > svg { position: absolute; left: 12px; color: #929caf; width: 17px; }
.search-field input { padding-left: 38px; }
.filters .select-control { width: 175px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.grid .checkbox-label { align-self: end; }
.list-caption { color: var(--muted); font-size: 12px; margin: 10px 0; }
.table-scroll { width: 100%; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid #edf0f4; padding: 15px 16px; vertical-align: middle; font-size: 13px; }
th { background: #f9fbfd; color: #7b8596; font-weight: 500; white-space: nowrap; padding-top: 12px; padding-bottom: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdff; }
td { overflow-wrap: anywhere; }
td.actions { white-space: nowrap; }
td.empty-cell { height: 190px; text-align: center; color: #8793a7; }
.empty-cell svg { display: block; margin: 0 auto 12px; width: 32px; height: 32px; stroke: #b6c4d5; }
.task-description { min-width: 220px; max-width: 340px; }
.task-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left; font-weight: 600; min-height: 0; padding: 0; background: none; color: #303b52; white-space: normal; overflow-wrap: anywhere; }
.task-title:hover { background: none; color: var(--primary); }
.cell-meta { font-size: 11px; color: #8b94a3; margin-top: 5px; }
.person-name { white-space: nowrap; }
.follower-list { display: grid; gap: 5px; min-width: 160px; max-width: 240px; font-size: 12px; }
.current-person { font-weight: 500; }
.progress-meta, .completed-people { font-size: 11px; color: #819080; }
.progress-meta { color: #8a94a4; }
progress { height: 4px; width: 100%; border: 0; border-radius: 4px; overflow: hidden; appearance: none; background: #eef2f6; }
progress::-webkit-progress-bar { background: #eef2f6; }
progress::-webkit-progress-value { background: #55a597; border-radius: 4px; }
progress::-moz-progress-bar { background: #55a597; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 5px; background: #edf1f6; color: #6d788a; font-size: 11px; white-space: nowrap; }
.status-处理中 { background: #edf2ff; color: #526cc2; }
.status-已完成, .status-启用 { background: #eaf6f1; color: #298168; }
.status-待开始, .status-待分配 { background: #f0f2f6; color: #7f899a; }
.status-待版本上线 { background: #fff5e4; color: #ab7b2a; }
.status-停用 { background: #fceef0; color: #b2626c; }
.muted { color: var(--muted); font-size: 12px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
dialog { position: fixed; width: min(820px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: visible; border: 1px solid #e9eef5; border-radius: 8px; padding: 0; box-shadow: 0 20px 90px #1d315f24; }
dialog::backdrop { background: #23324b50; backdrop-filter: blur(3px); }
#modalBody { padding: 26px; max-height: calc(100dvh - 36px); overflow: auto; border-radius: 8px; }
#modalBody > h3, #modalBody form > h3 { padding-right: 35px; }
.modal-close { position: absolute; top: 17px; right: 16px; color: #8994a6; background: #f5f7fa; z-index: 2; }
.modal-close:hover { background: #eaf0f8; color: #435573; }
.stage-box { padding: 14px 0 20px; border-top: 1px solid var(--line); }
.stage-box > .section-heading { margin: 0 0 12px; }
.stage-row { display: grid; grid-template-columns: 1fr 1.2fr 1fr 32px; gap: 12px; margin-top: 12px; align-items: end; }
.stage-row > button { margin-bottom: 2px; }
#confirmModal { width: min(430px, calc(100vw - 32px)); }
.confirm-content { padding: 28px; }
.confirm-symbol { color: var(--primary); background: #edf2ff; width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 18px; }
.confirm-content h3 { margin-bottom: 10px; }
.confirm-content p { color: #7a8596; font-size: 13px; margin: 0; line-height: 1.8; }
.select-control { min-width: 0; position: relative; }
.select-trigger { width: 100%; height: 40px; min-height: 40px; justify-content: space-between; text-align: left; padding: 8px 11px; border: 1px solid var(--line); color: #536075; background: #fff; font-size: 13px; font-weight: 400; gap: 8px; }
.select-trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-trigger > svg { width: 15px; height: 15px; color: #98a2b2; }
.select-trigger:hover { background: #fff; border-color: #b9c9e5; }
.select-trigger[aria-expanded=true] { border-color: #7998df; box-shadow: 0 0 0 3px #e8effc; }
.select-menu { position: fixed; z-index: 100; border: 1px solid #dce5f0; border-radius: 8px; background: #fff; padding: 7px; box-shadow: 0 10px 35px #334f7026; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.select-menu input { height: 35px; min-height: 35px; font-size: 12px; background: #f8fafc; flex-shrink: 0; }
.select-options { overflow: auto; min-height: 0; }
.select-option { width: 100%; background: #fff; color: #617087; min-height: 36px; text-align: left; justify-content: space-between; padding: 7px 9px; font-size: 13px; white-space: normal; }
.select-option span { overflow-wrap: anywhere; }
.select-option:hover, .select-option:focus-visible { background: #f2f5fc; }
.select-option[aria-selected=true] { color: var(--primary); background: #edf2ff; }
.select-option svg { width: 15px; height: 15px; }
.select-empty { color: var(--muted); padding: 10px; font-size: 12px; text-align: center; }
#toast { position: fixed; right: 22px; top: 20px; z-index: 300; display: grid; gap: 8px; pointer-events: none; max-width: min(400px, calc(100vw - 32px)); }
.toast { background: #fff; color: #526175; border: 1px solid #dce9e2; padding: 12px 16px; border-radius: 7px; box-shadow: 0 6px 24px #233e6a1a; display: flex; align-items: flex-start; gap: 10px; overflow-wrap: anywhere; }
.toast svg { color: var(--green); margin-top: 2px; }
.toast.error { border-color: #f2d8dc; }
.toast.error svg { color: var(--red); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; border-top: 1px solid var(--line); padding-top: 32px; max-width: 1080px; }
.profile-identity { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.profile-identity h3 { margin: 0 0 3px; }
.avatar { width: 54px; height: 54px; background: #e5f3f1; color: #348e7f; display: grid; place-items: center; border-radius: 8px; font-size: 22px; flex-shrink: 0; }
.profile-fields { margin: 0; }
.profile-fields > div { display: grid; grid-template-columns: 100px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
dt { color: #8c96a6; font-size: 12px; } dd { margin: 0; overflow-wrap: anywhere; }
.password-section { padding-left: 40px; border-left: 1px solid var(--line); }
.password-section h3 { display: flex; align-items: center; gap: 10px; }
.password-section form { display: grid; gap: 18px; max-width: 400px; }
.password-section .form-actions { margin-top: 0; }
.detail-heading { display: flex; align-items: center; gap: 12px; }
.detail-text { white-space: pre-wrap; font-size: 16px; margin: 20px 0; }
.detail-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; background: #f8fafc; padding: 18px; margin-bottom: 26px; }
.detail-meta dd { margin-top: 5px; font-size: 13px; }
.timeline { list-style: none; padding: 0 0 0 22px; margin: 18px 0 28px; border-left: 2px solid #e4ebf4; }
.timeline-stage { position: relative; margin-bottom: 22px; }
.timeline-stage::before { content: ""; position: absolute; left: -28px; top: 7px; width: 10px; height: 10px; background: #9aaee0; border: 2px solid #fff; border-radius: 50%; }
.timeline-person { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid #edf1f6; padding: 12px 0; }
.timeline-person > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.timeline-person time { font-size: 11px; color: #8e98a7; }
.thumbs { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.attachment-thumb { width: 32px; height: 32px; min-height: 32px; background: #eff3f9; color: #8497b7; padding: 0; overflow: hidden; border: 1px solid var(--line); }
.attachment-thumb img { width: 100%; height: 100%; object-fit: cover; }
.attachment-list { display: flex; gap: 14px; flex-wrap: wrap; }
.attachment-list a { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.preview img, .preview video { max-width: 100%; max-height: 65dvh; display: block; margin: auto; }
.app-identity { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.app-identity img, .app-placeholder { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; }
.app-placeholder { display: grid; place-items: center; color: #8a9ed0; background: #eff3fc; }
.package-name { max-width: 230px; }
.settings-section { padding: 0 0 30px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.login-logo { width: 64px; height: 64px; }
.brand-logo { flex-shrink: 0; width: 38px; height: 38px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar-small { width: 32px; height: 32px; font-size: 14px; }
.avatar-large { width: 144px; height: 144px; font-size: 52px; border-radius: 8px; }
.avatar-button { min-height: 0; position: relative; background: none; padding: 0; border: 0; color: var(--primary); }
.avatar-button:hover { background: none; }
.avatar-button:hover .avatar { box-shadow: 0 0 0 3px #dce7f5; }
.avatar-edit-mark { position: absolute; right: -5px; bottom: -5px; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 6px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.avatar-edit-mark svg { width: 13px; height: 13px; }
.avatar-command { display: block; font-size: 12px; min-height: 26px; padding: 2px 0 !important; }
.avatar-editor { display: grid; justify-items: center; gap: 18px; padding: 8px 0; }
.avatar-editor label { width: min(100%, 380px); }
.user-identity { display: flex; align-items: center; gap: 12px; }
.input-unit { display: flex; align-items: center; position: relative; }
.input-unit input { padding-right: 62px; }
.input-unit span { position: absolute; right: 13px; color: var(--muted); pointer-events: none; }
.signature-field { padding: 12px 16px; background: #f7f9fc; border-left: 3px solid #cdd8f4; display: grid; gap: 10px; }
.template-section { min-width: 0; }
.template-section .section-heading { margin-top: 0; }
.rich-editor { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; }
.editor-toolbar { padding: 6px; border-bottom: 1px solid var(--line); background: #f8fafc; display: flex; flex-wrap: wrap; gap: 2px; }
.editor-toolbar button { width: 32px; height: 32px; min-height: 32px; color: #6c7990; }
.editor-toolbar button[aria-pressed=true] { background: #e5edff; color: var(--primary); }
#templateEditor > .muted { padding: 14px; }
.tiptap { min-height: 170px; max-height: 360px; overflow-y: auto; padding: 14px 16px; outline: none; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 14px; }
.tiptap:focus { box-shadow: inset 0 0 0 2px #d6e1f7; }
.tiptap p, .template-preview-content p { margin: 0 0 8px; }
.tiptap p:last-child, .template-preview-content p:last-child { margin-bottom: 0; }
.tiptap ul, .tiptap ol { padding-left: 24px; margin: 8px 0; }
.tiptap a, .template-preview-content a { color: var(--primary); text-decoration: underline; }
.editor-link-box { padding: 12px; display: flex; align-items: end; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.editor-link-box label { flex: 1 1 220px; }
.template-tools { margin-top: 12px; max-width: 300px; }
.template-help { margin-top: 18px; color: #788599; font-size: 12px; }
.template-help summary { cursor: pointer; color: #596d99; display: flex; align-items: center; gap: 6px; }
.template-help summary::after { content: '+'; margin-left: auto; }
.template-help[open] summary::after { content: '-'; }
.template-help td { font-size: 12px; padding: 10px; }
.template-help td:last-child { min-width: 140px; }
.template-help code { white-space: nowrap; color: #496aba; }
.template-preview { margin-top: 18px; padding: 16px; border-left: 3px solid #8bbdaf; background: #f1f8f6; }
.template-preview-content { margin-top: 12px; color: var(--text); overflow-wrap: anywhere; }
.help-page { padding: 28px 22px 60px; max-width: 980px; margin: auto; }
.help-page header { padding: 0 0 22px; height: auto; background: none; }
.help-page .brand { padding: 0; }
.help-page h1 { margin-top: 30px; font-size: 28px; }
.help-page h2 { font-size: 19px; margin: 30px 0 14px; }
.help-page pre { padding: 18px; background: #eaf1f7; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 6px; }
@media (max-width: 1200px) { .shell { grid-template-columns: 194px minmax(0, 1fr); } .page { padding: 24px 20px; } header { padding: 0 20px; } .stat { padding: 16px; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  aside { height: auto; position: static; padding: 14px 16px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 0 14px; } .brand small { display: none; }
  nav { display: flex; overflow: auto; gap: 4px; padding-bottom: 3px; }
  .nav { width: auto; min-height: 38px; padding: 7px 10px; gap: 7px; flex-shrink: 0; font-size: 12px; }
  .nav[data-tab=profile] { margin: 0; border: 0; border-radius: 7px; }
  header { height: 60px; padding: 0 16px; } .page { padding: 22px 16px 34px; }
  .profile-layout { gap: 26px; } .password-section { padding-left: 24px; }
}
@media (max-width: 540px) {
  h2 { font-size: 21px; } .toolbar { margin-bottom: 20px; }
  .header-location { gap: 8px; font-size: 11px; } .header-location > .muted { display: none; }
  .header-location > span:nth-child(2) { display: none; }
  .account-menu { gap: 6px; } .account-menu strong { max-width: 75px; }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
  .stat { padding: 12px 16px; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } .stat strong { font-size: 23px; }
  .filters { gap: 8px; } .filters .search-field { flex-basis: 100%; max-width: none; }
  .filters .select-control { width: calc(50% - 4px); }
  .filters .checkbox-label { margin-right: auto; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .stage-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .stage-row label:first-child { grid-column: 1; } .stage-row label:nth-child(2) { grid-column: 2 / 4; }
  .stage-row label:nth-child(3) { grid-column: 1 / 3; }
  #modalBody { padding: 22px 18px; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; }
  .password-section { padding: 0; border-left: 0; }
  .detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 16px; }
  .timeline { padding-left: 15px; } .timeline-stage::before { left: -21px; }
  .timeline-person > div { gap: 8px; }
  .login-panel { padding: 26px; }
  #toast { right: 16px; top: 16px; }
}
.date-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.date-filters fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.date-filters legend { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.date-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; }
.date-range input { font-size: 12px; padding: 7px; }
.date-range span { font-size: 12px; color: var(--muted); }
.date-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stage-row { grid-template-columns: repeat(3, minmax(0, 1fr)) 36px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stage-row label:nth-child(4) { grid-column: 1; }
.stage-row label:nth-child(5) { grid-column: 2 / 4; }
.stage-row > button { grid-column: 4; grid-row: 1 / 3; align-self: center; }
.stage-row .follower-completion { grid-column: 1 / -1; color: var(--green); font-size: 12px; }
.attachment-edit { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.attachment-edit a { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.assignment-dates { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.planning-filters { align-items: end; }
.planning-filters label { flex: 1 1 145px; max-width: 220px; }
.planning-filters .select-control { width: 100%; }
.gantt-legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.gantt-legend span::before { content: ''; display: inline-block; width: 12px; height: 8px; margin-right: 6px; background: #b9c7df; border-radius: 2px; }
.gantt-legend .legend-active::before { background: #4562cf; } .gantt-legend .legend-done::before { background: #218269; } .gantt-legend .legend-overdue::before { background: #c34450; }
.gantt-scroll { --employee-width: 130px; --task-width: 270px; --day-width: 36px; max-height: 68dvh; overflow: auto; border: 1px solid var(--line); background: #fff; }
.gantt-table { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.gantt-table .employee-col { width: var(--employee-width); } .gantt-table .gantt-task-col { width: var(--task-width); } .gantt-table .day-col { width: var(--day-width); }
.gantt-table th { position: sticky; top: 0; z-index: 2; }
.gantt-table .gantt-employee { position: sticky; left: 0; z-index: 3; background: #fff; padding: 12px; }
.gantt-table .gantt-task { position: sticky; left: var(--employee-width); z-index: 3; background: #fff; padding: 12px; border-right: 1px solid var(--line); }
.gantt-table th.gantt-employee, .gantt-table th.gantt-task { z-index: 4; background: #f7f9fc; }
.gantt-day { padding: 8px 2px; text-align: center; border-right: 1px solid var(--line); }
.gantt-day span { font-size: 10px; display: block; } .gantt-day strong { font-size: 12px; }
.gantt-day.weekend { background: #ecf4f1; } .gantt-day.today { background: #dce5ff; color: var(--primary); }
.gantt-track { position: relative; height: 76px; padding: 0; background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--day-width) - 1px), #eaf0f5 calc(var(--day-width) - 1px), #eaf0f5 var(--day-width)); }
.gantt-bar { position: absolute; top: 25px; height: 26px; min-height: 26px; border-radius: 4px; padding: 0 5px; justify-content: flex-start; background: #dae3f0; color: #516987; overflow: hidden; font-size: 11px; }
.gantt-bar span { overflow: hidden; text-overflow: ellipsis; } .gantt-bar.active { background: #4562cf; color: white; } .gantt-bar.done { background: #218269; color: white; } .gantt-bar.overdue { background: #c34450; color: white; }
.gantt-bar:hover { filter: brightness(.93); }
.download-report { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.error-text { color: var(--red); }
@media (max-width: 1150px) { .date-filters { grid-template-columns: 1fr; max-width: 520px; gap: 10px; } }
@media (max-width: 540px) {
  .stage-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; }
  .stage-row label:nth-child(1), .stage-row label:nth-child(3), .stage-row label:nth-child(4) { grid-column: 1; }
  .stage-row label:nth-child(2), .stage-row label:nth-child(5) { grid-column: 2 / 4; }
  .stage-row > button { grid-column: 3; grid-row: 2; }
  .gantt-scroll { --employee-width: 84px; --task-width: 150px; --day-width: 34px; }
  .gantt-table .gantt-employee, .gantt-table .gantt-task { padding: 8px; font-size: 11px; }
  .gantt-table .task-title { font-size: 12px; }
  .planning-filters label { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 0.01ms !important; } }
.nav-group-toggle { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: transparent; color: var(--muted); text-align: left; border: 0; border-radius: 6px; }
.nav-group-toggle:hover { background: #f0f4f8; color: var(--text); }
.nav-group-toggle .nav-chevron { margin-left: auto; width: 14px; transition: transform .15s; }
.nav-group-toggle[aria-expanded=false] .nav-chevron { transform: rotate(-90deg); }
.nav-children { margin: 2px 0 8px 23px; padding-left: 8px; border-left: 1px solid var(--line); }
.nav-children .nav { font-size: 12px; min-height: 36px; padding: 7px 10px; }
.nav-children .nav svg { width: 15px; }
.log-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 0; }
.app-store-name { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 600; overflow-wrap: anywhere; }
.app-store-name svg { flex-shrink: 0; width: 13px; height: 13px; color: var(--muted); }
.app-store-name:hover { text-decoration: underline; }
.developer-cell { min-width: 140px; max-width: 230px; overflow-wrap: anywhere; }
.filter-toggle { margin: -4px 0 14px; color: var(--primary); padding-left: 0; font-size: 12px; }
.date-control { display: flex; width: 100%; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.date-control:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px #e8edf9; }
.date-control input { min-width: 0; width: 100%; flex: 1; border: 0; border-radius: 0; box-shadow: none !important; padding: 9px 8px; background: transparent; font-variant-numeric: tabular-nums; }
.date-trigger { display: grid; place-items: center; flex: 0 0 30px; width: 30px; min-height: 0; border: 0; border-radius: 0; padding: 0; color: #79869b; background: transparent; }
.date-trigger:hover { color: var(--primary); background: #eef3fa; }
.date-trigger svg { width: 16px; height: 16px; }
.system-calendar { font: 13px inherit; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; width: 326px; max-width: calc(100vw - 16px); box-shadow: 0 12px 36px #253e6126; z-index: 10000; }
.system-calendar::before, .system-calendar::after { display: none; }
.system-calendar .flatpickr-months { align-items: center; padding-bottom: 8px; }
.system-calendar .flatpickr-months .flatpickr-month { height: 38px; }
.system-calendar .flatpickr-current-month { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 0 0; height: 36px; font-size: 14px; }
.system-calendar .flatpickr-current-month .cur-month { font-weight: 600; margin: 0; }
.system-calendar .flatpickr-current-month input.cur-year { height: 30px; padding: 3px 16px 3px 4px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.system-calendar .flatpickr-current-month .numInputWrapper { width: 78px; }
.system-calendar .numInputWrapper span { display: grid; place-items: center; opacity: 1; width: 16px; padding: 0; border: 0; }
.system-calendar .numInputWrapper span:after { display: none; }
.system-calendar .numInputWrapper svg { width: 11px; height: 11px; pointer-events: none; }
.system-calendar .flatpickr-months .flatpickr-prev-month, .system-calendar .flatpickr-months .flatpickr-next-month { display: grid; place-items: center; top: 10px; width: 30px; height: 30px; padding: 6px; border-radius: 4px; color: #617087; }
.system-calendar .flatpickr-months .flatpickr-prev-month { left: 10px; }
.system-calendar .flatpickr-months .flatpickr-next-month { right: 10px; }
.system-calendar .flatpickr-months svg { width: 17px; height: 17px; fill: none; stroke: currentColor; }
.system-calendar .flatpickr-months .flatpickr-prev-month:hover, .system-calendar .flatpickr-months .flatpickr-next-month:hover { background: #eef3fa; color: var(--primary); }
.system-calendar .flatpickr-weekday { color: #8792a2; font-weight: 400; font-size: 12px; }
.system-calendar .flatpickr-day { border-radius: 6px; height: 36px; line-height: 34px; margin-top: 3px; font-size: 13px; }
.system-calendar .flatpickr-day:hover { background: #edf3fa; border-color: #edf3fa; }
.system-calendar .flatpickr-day.today { border-color: #4562cf; color: #4562cf; }
.system-calendar .flatpickr-day.selected, .system-calendar .flatpickr-monthSelect-month.selected { background: #4562cf; border-color: #4562cf; color: #fff; }
.system-calendar .flatpickr-day.flatpickr-disabled { color: #c1c8d1; }
.system-calendar .flatpickr-monthSelect-month { border-radius: 6px; font-size: 13px; }
.calendar-actions { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 10px; padding: 6px 0 0; }
.calendar-actions button { min-height: 30px; padding: 5px 12px; font-size: 12px; color: var(--primary); }
.gantt-table { min-width: 0; }
.gantt-day { overflow: hidden; }
.gantt-table .gantt-employee, .gantt-table .gantt-task { overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .shell { grid-template-rows: auto minmax(0, 1fr); }
  .nav-group { display: flex; align-items: center; flex-shrink: 0; }
  .nav-group-toggle { width: auto; font-size: 12px; padding: 7px 10px; min-height: 38px; gap: 7px; }
  .nav-children { display: flex; margin: 0; padding: 0 4px; }
  .nav-children .nav { margin: 0; }
}
@media (max-width: 540px) { .gantt-scroll { --employee-width: 72px; --task-width: 132px; } }
.stage-row > .assignment-plan { grid-column: 1 / 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.assignment-plan > label { grid-column: auto !important; }
.assignment-plan .date-control { height: 40px; }
.gantt-table .gantt-month { height: 32px; padding: 5px 8px; text-align: left; border-right: 1px solid var(--line); background: #f0f4f8; font-weight: 600; }
.gantt-month span { position: sticky; left: calc(var(--employee-width) + var(--task-width) + 8px); display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.gantt-table .gantt-date-row th { top: 32px; height: 32px; padding: 5px 0; }
.gantt-table th[rowspan] { top: 0; }
.owner-cell { min-width: 110px; }
@media (max-width: 540px) {
  .stage-row > .assignment-plan { grid-column: 1 / -1; gap: 8px; }
  .assignment-plan .date-control input { font-size: 12px; padding: 8px 6px; }
}
