:root {
  --ink: #18312a;
  --muted: #75827e;
  --line: #e5e9e6;
  --paper: #ffffff;
  --canvas: #f5f7f5;
  --green: #173b30;
  --green-2: #285a48;
  --mint: #dff3e8;
  --lime: #dff04e;
  --orange: #f4a340;
  --red: #df5a59;
  --blue: #4778ed;
  --shadow: 0 18px 60px rgba(27, 54, 45, .12);
}

* { box-sizing: border-box; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(246, 162, 35, .13), transparent 28%),
    radial-gradient(circle at 82% 82%, rgba(21, 94, 74, .18), transparent 32%),
    #f3f7f5;
}

.login-card {
  width: min(420px, 100%);
  padding: 38px 36px 32px;
  border: 1px solid rgba(21, 75, 61, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(20, 58, 47, .15);
  text-align: center;
}

.login-logo { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; margin-bottom: 18px; }
.login-card h1 { margin: 8px 0; color: #173b30; font-size: 26px; }
.login-card p { margin: 0 0 16px; color: #71847d; }
.login-card > small { display: block; margin-top: 16px; color: #9aa8a3; }
.ding-login-container { min-height: 0; display: flex; justify-content: center; overflow: hidden; }
.login-status { margin-top: 10px; color: #526b63; font-size: 14px; }
.login-status.error { color: #c2413b; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 20; display: flex; flex-direction: column; padding: 28px 18px 18px; color: #fff; background: var(--green); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; overflow: hidden; border-radius: 11px; background: #fff; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: .02em; }
.brand small { margin-top: 3px; color: rgba(255,255,255,.55); font-size: 10px; letter-spacing: .14em; }
.nav-list { display: grid; gap: 8px; margin-top: 44px; }
.nav-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.62); cursor: pointer; text-align: left; transition: .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 var(--lime); }
.nav-icon { width: 24px; font-size: 20px; color: var(--lime); text-align: center; }
.sidebar-note { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.065); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 12px; }
.sidebar-note small { margin-top: 3px; color: rgba(255,255,255,.5); font-size: 10px; }
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(244,163,64,.1); }
.sidebar-footer { position: relative; margin-top: 12px; }
.user-chip { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 13px; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.user-chip:hover { background: rgba(255,255,255,.07); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e9f5ee; color: var(--green); font-size: 13px; font-weight: 700; }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { font-size: 12px; }.user-chip small { color: rgba(255,255,255,.48); font-size: 10px; margin-top: 2px; }
.chevron { color: rgba(255,255,255,.5); }
.user-switcher { position: absolute; left: 0; bottom: 58px; width: 212px; overflow: hidden; border-radius: 14px; padding: 8px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.switch-user { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; text-align: left; }
.switch-user:hover { background: var(--canvas); }.switch-user small { display: block; color: var(--muted); }

.main { grid-column: 2; min-width: 0; }
.topbar { height: 112px; padding: 26px clamp(24px, 4vw, 56px) 20px; display: flex; align-items: center; justify-content: space-between; background: rgba(245,247,245,.92); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 12; }
.eyebrow { color: #85938e; font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.topbar h1 { margin: 7px 0 0; font-size: 26px; line-height: 1; letter-spacing: -.03em; }
.topbar-copy { margin-right: auto; }
.back-button { height: 36px; margin-right: 14px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.back-button:hover { border-color: #a9bdb4; background: #f3f8f5; }
.top-actions { display: flex; gap: 12px; align-items: center; }
.primary-button, .ghost-button, .secondary-button { min-height: 42px; border-radius: 12px; padding: 0 18px; font-weight: 600; cursor: pointer; transition: .16s; }
.primary-button { border: 0; background: var(--green); color: #fff; box-shadow: 0 7px 18px rgba(23,59,48,.17); }
.primary-button:hover { transform: translateY(-1px); background: var(--green-2); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.ghost-button { border: 1px solid var(--line); background: #fff; }
.secondary-button { border: 1px solid #cfd8d3; background: #f7faf8; color: var(--green); }
.icon-button { position: relative; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; font-size: 20px; }
.notification-dot { position: absolute; right: 9px; top: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--red); }
.mobile-menu { display: none; }
.content { padding: 8px clamp(24px, 4vw, 56px) 64px; }

.welcome-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 30px 32px; border-radius: 22px; color: #fff; background: linear-gradient(125deg, #173b30 0%, #245843 100%); box-shadow: var(--shadow); }
.welcome-card::after { content: ""; position: absolute; width: 230px; height: 230px; right: -45px; top: -120px; border: 44px solid rgba(223,240,78,.11); border-radius: 50%; }
.welcome-card h2 { margin: 8px 0 7px; font-size: 26px; }.welcome-card p { margin: 0; color: rgba(255,255,255,.65); }
.motto { align-self: center; max-width: 220px; text-align: right; color: var(--lime); font-size: 13px; line-height: 1.8; z-index: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.stat-card { padding: 19px 20px; border: 1px solid #eaeeeb; border-radius: 16px; background: var(--paper); }
.stat-card .stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 10px; font-size: 28px; letter-spacing: -.04em; }.stat-card small { color: var(--muted); }
.stat-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--green); }
.stat-card.warning .stat-icon { background: #fff0dd; color: #bc6d14; }.stat-card.danger .stat-icon { background: #fde6e6; color: var(--red); }

.section { margin-top: 28px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.section-header h2 { margin: 0; font-size: 17px; }.section-header p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.text-button { border: 0; background: transparent; color: var(--green-2); font-weight: 600; cursor: pointer; }
.filter-panel { padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.72); box-shadow: 0 7px 24px rgba(31,63,52,.035); }
.filter-primary, .filter-secondary { display: grid; gap: 10px; align-items: end; }
.filter-primary { grid-template-columns: minmax(250px, 2fr) repeat(4, minmax(118px, 1fr)); }
.filter-secondary { grid-template-columns: repeat(5, minmax(130px, 1fr)); margin-top: 11px; padding-top: 11px; border-top: 1px solid #edf1ef; }
.filter-control, .search-box { position: relative; display: grid; gap: 6px; min-width: 0; }
.filter-control > span, .search-box > span { color: #74827d; font-size: 10px; font-weight: 700; }
.search-box input { width: 100%; height: 42px; padding: 0 15px 0 38px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #fff; }
.search-box::before { content: "⌕"; position: absolute; left: 14px; bottom: 8px; color: var(--muted); font-size: 18px; }
.search-box input:focus, .filter-select:focus { border-color: #67917f; box-shadow: 0 0 0 3px rgba(40,90,72,.08); }
.filter-select { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 30px 0 12px; outline: none; background: #fff; color: var(--ink); }
.filter-result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 12px 10px 15px; border-radius: 12px; background: #edf4f0; color: #52645d; font-size: 11px; }
.filter-result-bar button { height: 32px; padding: 0 11px; border: 1px solid #bed2c8; border-radius: 9px; background: #fff; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }

.list-view-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }.list-view-bar > span { color: var(--muted); font-size: 10px; }.list-view-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #eef3f0; }.list-view-toggle button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #66766f; font-size: 10px; font-weight: 700; cursor: pointer; }.list-view-toggle button.active { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(25,58,47,.1); }
.table-view-host { min-width: 0; }.item-table-scroll { width: 100%; overflow-x: auto; border: 1px solid #cfdad5; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(25,58,47,.04); }.item-table { width: 100%; min-width: 1840px; border-collapse: separate; border-spacing: 0; table-layout: fixed; color: #33453f; font-size: 10px; }.item-table th { position: sticky; top: 0; z-index: 1; height: 44px; padding: 9px 10px; border-right: 1px solid rgba(255,255,255,.18); background: #143f33; color: #fff; font-size: 10px; text-align: left; white-space: nowrap; }.item-table th:first-child { border-radius: 13px 0 0; }.item-table th:last-child { border-radius: 0 13px 0 0; }.item-table td { height: 58px; padding: 10px; overflow: hidden; border-right: 1px solid #e0e7e3; border-bottom: 1px solid #dbe4df; background: #fff; line-height: 1.5; text-overflow: ellipsis; vertical-align: middle; }.item-table tbody tr:nth-child(even) td { background: #f7faf8; }.item-table tbody tr { cursor: pointer; }.item-table tbody tr:hover td { background: #eef7f1; }.item-table tbody tr:last-child td { border-bottom: 0; }.item-table th:nth-child(1), .item-table td:nth-child(1) { width: 86px; }.item-table th:nth-child(2), .item-table td:nth-child(2) { width: 82px; }.item-table th:nth-child(3), .item-table td:nth-child(3) { width: 72px; }.item-table th:nth-child(4), .item-table td:nth-child(4) { width: 86px; }.item-table th:nth-child(5), .item-table td:nth-child(5) { width: 135px; }.item-table th:nth-child(6), .item-table td:nth-child(6) { width: 210px; }.item-table th:nth-child(7), .item-table td:nth-child(7) { width: 270px; }.item-table th:nth-child(8), .item-table td:nth-child(8) { width: 220px; }.item-table th:nth-child(9), .item-table td:nth-child(9) { width: 86px; }.item-table th:nth-child(10), .item-table td:nth-child(10) { width: 92px; }.item-table th:nth-child(11), .item-table td:nth-child(11) { width: 140px; }.item-table th:nth-child(12), .item-table td:nth-child(12) { width: 160px; }.item-table th:nth-child(13), .item-table td:nth-child(13) { width: 145px; }.item-table th:nth-child(14), .item-table td:nth-child(14) { width: 155px; }.title-cell strong { display: block; max-height: 34px; overflow: hidden; font-size: 11px; }.title-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }.summary-cell, .resolution-cell { display: table-cell; max-height: 58px; }.priority-text { font-weight: 800; }.priority-text.紧急, .priority-text.高, .overdue-text { color: var(--red); }.table-statuses { display: flex; flex-wrap: wrap; gap: 4px; }.table-status { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; background: #edf1ff; color: #4e68b6; font-size: 9px; font-weight: 700; white-space: nowrap; }.table-status.已解决, .table-status.已归档 { background: var(--mint); color: #277158; }.table-status.待解决 { background: #ffe8e7; color: #c2413b; }.table-status.待归档 { background: #fff0db; color: #a96519; }.table-status.已逾期 { background: #d94747; color: #fff; }

.summary-cell, .resolution-cell { white-space: normal; }
.item-table .cell-clamp { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }

.item-list { display: grid; gap: 10px; }
.item-card { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 17px 18px 17px 0; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); cursor: pointer; transition: .16s ease; }
.item-card:hover { transform: translateY(-1px); border-color: #cfd9d4; box-shadow: 0 8px 28px rgba(31,63,52,.07); }
.priority-line { align-self: stretch; border-radius: 0 6px 6px 0; background: #96a39f; }.priority-line.紧急 { background: var(--red); }.priority-line.高 { background: var(--orange); }.priority-line.中 { background: var(--blue); }.priority-line.低 { background: #8ba39a; }
.item-main { min-width: 0; }.item-topline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: #eef3f0; color: #587067; font-size: 10px; font-weight: 700; }
.status-badge { background: #edf1ff; color: #4e68b6; border: 0; }.status-badge.已解决, .status-badge.已归档 { background: var(--mint); color: #277158; }.status-badge.待解决 { background: #ffe8e7; color: #c2413b; }.status-badge.待归档 { background: #fff0db; color: #a96519; }.status-badge.已逾期 { background: #d94747; color: #fff; }.workflow-status:disabled { opacity: 1; cursor: default; }
.item-side { min-width: 132px; text-align: right; }.item-side small { display: block; color: var(--muted); font-size: 10px; }.item-side strong { font-size: 12px; }
.item-summary { display: -webkit-box; margin: 8px 0 9px; overflow: hidden; color: #556660; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.keyword-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.keyword-tag { padding: 3px 8px; border: 1px solid #cfe0d7; border-radius: 999px; background: #f1f7f3; color: #35604f; font-size: 10px; font-weight: 700; cursor: pointer; transition: .15s; }
.keyword-tag:hover { border-color: #6f9887; background: #e5f1ea; }
.tag-more { display: inline-grid; place-items: center; min-width: 24px; height: 22px; color: var(--muted); font-size: 10px; }
.gap-badge { background: #fff4df; color: #a66b1f; }
.resolution-badge { background: #fde8e8; color: var(--red); }
.needs-resolution-text { color: var(--red) !important; }
.shared-item-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shared-item-list .item-card { grid-template-columns: 5px minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: start; min-height: 220px; padding: 20px 20px 17px 0; border-radius: 18px; }
.shared-item-list .priority-line { grid-row: 1 / span 2; }
.shared-item-list .item-title { display: -webkit-box; overflow: hidden; white-space: normal; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.shared-item-list .item-summary { min-height: 59px; -webkit-line-clamp: 3; }
.shared-item-list .item-side { grid-column: 2; display: flex; align-items: end; justify-content: space-between; min-width: 0; padding-top: 11px; border-top: 1px solid #edf1ef; text-align: left; }
.shared-item-list .avatar-stack { justify-content: flex-end; margin-top: 0; }
.source-title { margin-top: 12px; color: var(--muted); font-size: 10px; }
.avatar-stack { display: flex; justify-content: flex-end; margin-top: 7px; }.mini-avatar { width: 25px; height: 25px; display: grid; place-items: center; margin-left: -6px; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: 9px; font-weight: 700; }
.empty-state { padding: 58px 24px; border: 1px dashed #ccd6d1; border-radius: 18px; text-align: center; color: var(--muted); background: rgba(255,255,255,.45); }.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); }

.knowledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.knowledge-search { display: flex; align-items: center; gap: 10px; height: 48px; margin-bottom: 15px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }.knowledge-search span { color: var(--muted); }.knowledge-search input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 12px; }
.knowledge-folders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }.knowledge-folder { display: grid; grid-template-columns: 38px minmax(0,1fr); grid-template-rows: auto auto; gap: 3px 11px; align-items: center; min-height: 82px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }.knowledge-folder:hover, .knowledge-folder.active { border-color: #6e9583; background: #eff7f2; box-shadow: 0 8px 20px rgba(31,63,52,.07); }.knowledge-folder .folder-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #e8f3ec; color: var(--green); font-size: 17px; }.knowledge-folder strong { align-self: end; font-size: 12px; }.knowledge-folder small { align-self: start; color: var(--muted); font-size: 9px; }
.knowledge-result-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 11px; }.knowledge-result-title span { color: var(--muted); font-size: 10px; }.knowledge-all-filter { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--green); font-size: 10px; font-weight: 700; cursor: pointer; }.knowledge-all-filter.active { border-color: var(--green); background: var(--green); color: #fff; }.knowledge-file-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }.knowledge-file-card { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; }.knowledge-file-card h3 { margin: 0; font-size: 11px; overflow-wrap: anywhere; }.knowledge-file-card p { margin: 5px 0 8px; color: var(--muted); font-size: 10px; }.knowledge-file-card footer { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; }.knowledge-file-card a { display: inline-block; margin-top: 8px; color: var(--green); font-size: 10px; font-weight: 700; }
.knowledge-card { display: flex; flex-direction: column; min-height: 190px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; cursor: pointer; transition: .16s; }.knowledge-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31,63,52,.08); }
.doc-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--mint); }.knowledge-card h3 { margin: 18px 0 6px; font-size: 15px; }.knowledge-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }.knowledge-card footer { display: flex; justify-content: space-between; margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 10px; }

.overlay, .drawer-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(13,30,24,.55); backdrop-filter: blur(6px); }
.modal { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }.modal-header h2 { margin: 4px 0 0; font-size: 20px; }.draft-status { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.close-button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--canvas); cursor: pointer; font-size: 22px; }
.form-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px 26px; }
.field { display: grid; gap: 7px; min-width: 0; }.field-wide { grid-column: 1 / -1; }.field > span, .field legend { color: #43534e; font-size: 12px; font-weight: 600; }.field b { color: var(--red); }.field small { color: var(--muted); font-weight: 400; }
.form-guide { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #f1f7f3; color: #43534e; font-size: 11px; }.form-guide strong { color: var(--green); }.form-guide small { color: var(--muted); }
.resolution-field { padding: 13px; border: 1px solid #efd0d0; border-radius: 12px; background: #fff9f9; }
.summary-required-field { padding: 13px; border: 1px solid #cfe0d7; border-radius: 12px; background: #f5faf7; }
.material-field { margin: 0; padding: 15px; border: 1px solid #d9e3de; border-radius: 12px; background: #fbfdfc; }
.material-field legend { padding: 0 6px; }.material-field.readonly { opacity: .82; }
.material-option-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.material-option { position: relative; }.material-option input { position: absolute; opacity: 0; pointer-events: none; }
.material-option > b { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px 0 31px; border: 1px solid #d7e1dc; border-radius: 10px; background: #fff; color: #53645d; font-size: 11px; cursor: pointer; }
.material-option > span { position: absolute; z-index: 1; left: 10px; top: 8px; display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid #bac9c2; border-radius: 5px; color: transparent; font-size: 10px; pointer-events: none; }
.material-option input:checked ~ span { border-color: var(--green); background: var(--green); color: #fff; }.material-option input:checked ~ b { border-color: #7ea08f; background: #edf7f1; color: var(--green); }.material-option input:disabled ~ b { cursor: default; }
.material-upload-list { display: grid; gap: 10px; margin-top: 13px; padding-top: 13px; border-top: 1px dashed #d7e1dc; }
.material-upload-row { display: grid; grid-template-columns: minmax(140px, .8fr) 1.2fr; gap: 10px 14px; align-items: center; padding: 11px 12px; border: 1px solid #e0e7e3; border-radius: 10px; background: #fff; }
.material-upload-row > span { display: grid; gap: 3px; }.material-upload-row b { color: #40544b; font-size: 11px; }.material-upload-row small { color: var(--muted); font-size: 9px; }.material-upload-row input { padding: 8px; font-size: 10px; }.material-upload-row a { grid-column: 2; color: var(--green); font-size: 10px; overflow-wrap: anywhere; }
.material-detail-list { display: grid; gap: 9px; }.material-detail-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; }.material-detail-row strong { font-size: 11px; }.material-detail-row span { display: grid; gap: 5px; font-size: 10px; }.material-detail-row a { color: var(--green); overflow-wrap: anywhere; }.material-detail-row.missing { border-color: #efcaca; background: #fff8f8; color: var(--red); }.material-detail-row.complete { background: #f5faf7; }
.feedback-section { background: #f7faf8; }.feedback-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }.feedback-heading > span { color: var(--green); font-size: 14px; font-weight: 800; }.feedback-heading small { color: var(--muted); font-size: 9px; }
.feedback-block { display: grid; gap: 12px; padding: 15px; margin-top: 11px; border: 1px solid #dbe5e0; border-radius: 13px; background: #fff; }.feedback-block h4 { display: flex; align-items: center; gap: 8px; margin: 0; color: #354b42; font-size: 12px; }.feedback-block h4 i { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; background: var(--green); color: #fff; font-size: 10px; font-style: normal; }
.feedback-uploader { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: 9px; background: #f1f6f3; font-size: 10px; }.feedback-uploader span { color: var(--muted); }.feedback-uploader strong { color: var(--green); }
.feedback-material-row { display: grid; grid-template-columns: .8fr 1fr 1.2fr; gap: 9px 12px; align-items: end; padding: 12px; border: 1px solid #dfe7e3; border-radius: 10px; }.feedback-material-type { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed #e2e8e5; }.feedback-material-row b { font-size: 11px; }.feedback-material-row small { color: var(--muted); font-size: 9px; }.feedback-material-row.missing { border-color: #efcece; background: #fffafa; }.feedback-file-input input { padding: 8px; font-size: 9px; }.feedback-file-list { grid-column: 1 / -1; display: grid; gap: 6px; }.feedback-file-record { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 9px; align-items: center; padding: 8px 9px; border: 1px solid #e1e8e4; border-radius: 8px; background: #fff; }.feedback-file-record a { color: var(--green); font-size: 10px; overflow-wrap: anywhere; }.feedback-file-record small { white-space: nowrap; }.feedback-file-record button { border: 0; background: transparent; color: var(--red); font-size: 9px; cursor: pointer; }.feedback-empty { color: var(--muted); font-size: 10px; }.feedback-actions { display: flex; justify-content: flex-end; margin-top: 12px; }.feedback-actions button { min-height: 40px; padding: 0 14px; border-radius: 10px; }
.feedback-read-grid { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }.feedback-read-grid > div { display: grid; gap: 4px; }.feedback-read-grid small { color: var(--muted); font-size: 9px; }.feedback-read-grid strong { font-size: 11px; line-height: 1.6; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dce2de; border-radius: 11px; padding: 11px 12px; outline: none; background: #fbfcfb; color: var(--ink); transition: .15s; }.field input:focus, .field select:focus, .field textarea:focus { border-color: #67917f; box-shadow: 0 0 0 3px rgba(40,90,72,.08); background: #fff; }.field textarea { resize: vertical; }
.people-field { margin: 0; padding: 14px; border: 1px solid #dce2de; border-radius: 12px; }.people-field legend { padding: 0 6px; }.people-field.informed { border-color: #c7d8cf; background: #f7fbf8; }
.people-picker { display: flex; flex-wrap: wrap; gap: 8px; }.person-option input { position: absolute; opacity: 0; }.person-option span { display: flex; gap: 7px; align-items: center; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #5c6965; font-size: 11px; cursor: pointer; }.person-option input:checked + span { border-color: #5a8975; background: var(--mint); color: var(--green); box-shadow: inset 0 0 0 1px #5a8975; }.person-dot { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 9px; }
.multi-select-field { padding: 12px 14px 14px; }
.multi-picker { position: relative; }
.multi-picker-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid #dce2de; border-radius: 11px; background: #fff; color: #52645d; cursor: pointer; text-align: left; }
.multi-picker-trigger:hover { border-color: #9eb6aa; }.multi-picker-trigger b { color: #779086; font-size: 15px; }
.multi-picker-menu { position: absolute; z-index: 8; left: 0; right: 0; top: calc(100% + 7px); max-height: 310px; overflow: auto; padding: 10px; border: 1px solid #d4ded9; border-radius: 13px; background: #fff; box-shadow: 0 16px 40px rgba(24,49,42,.16); }
.people-search { position: sticky; z-index: 2; top: -10px; width: 100%; height: 40px; margin-bottom: 8px; padding: 0 12px; border: 1px solid #dce2de; border-radius: 9px; outline: none; background: #fff; }
.people-search:focus { border-color: #67917f; box-shadow: 0 0 0 3px rgba(40,90,72,.08); }
.multi-picker-menu .people-picker { display: grid; gap: 8px; }
.people-group { display: grid; gap: 5px; }.people-group > strong { padding: 5px 5px 2px; color: #788780; font-size: 10px; }
.multi-picker-menu .person-option span { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; width: 100%; min-height: 39px; padding: 6px 9px 6px 6px; border-radius: 9px; }
.multi-picker-menu .person-option span b { overflow: hidden; color: #3f514a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.multi-picker-menu .person-option span small { color: var(--muted); font-size: 9px; }
.multi-picker-menu .person-option input:checked + span::after { content: "✓"; margin-left: 4px; color: var(--green); font-weight: 800; }
.people-sync-error, .people-empty { padding: 14px 10px; border-radius: 9px; background: #fff5f3; color: #b5524e; font-size: 11px; line-height: 1.6; }
.people-loading { padding: 14px 10px; border-radius: 9px; background: #f1f7f3; color: #557067; font-size: 11px; line-height: 1.6; }
.people-sync-warning { padding: 10px 11px; border-radius: 9px; background: #fff8e8; color: #956514; font-size: 10px; line-height: 1.6; }
.group-dot { background: #385f50; }
.team-chip { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; background: #eaf5ef; color: var(--green); font-size: 11px; font-weight: 700; }
.modal-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); }

.drawer-overlay { place-items: stretch end; padding: 0; }.detail-drawer { width: min(540px, 100%); height: 100%; overflow: auto; background: #fff; box-shadow: -20px 0 60px rgba(13,30,24,.18); animation: slideIn .22s ease; }
@keyframes slideIn { from { transform: translateX(30px); opacity: .5; } }
.drawer-head { padding: 24px 26px; border-bottom: 1px solid var(--line); }.drawer-head-row { display: flex; justify-content: space-between; gap: 20px; }.drawer-head h2 { margin: 10px 0 7px; font-size: 21px; }.drawer-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.drawer-head-actions { display: flex; align-items: center; gap: 8px; }
.drawer-head-actions .secondary-button { height: 36px; padding: 0 13px; border-radius: 10px; cursor: pointer; }
.danger-button { height: 36px; padding: 0 12px; border: 1px solid #e9bcbc; border-radius: 10px; background: #fff5f5; color: var(--red); font-size: 10px; font-weight: 700; cursor: pointer; }.danger-button:hover { border-color: var(--red); background: #fdeaea; }
.drawer-section { padding: 20px 26px; border-bottom: 1px solid var(--line); }.drawer-section h3 { margin: 0 0 14px; font-size: 13px; }.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.detail-cell small, .detail-cell strong { display: block; }.detail-cell small { color: var(--muted); font-size: 10px; }.detail-cell strong { margin-top: 4px; font-size: 12px; }
.people-row { display: flex; flex-wrap: wrap; gap: 8px; }.person-chip { display: flex; align-items: center; gap: 7px; padding: 5px 9px 5px 5px; border-radius: 999px; background: var(--canvas); font-size: 11px; }.person-chip.ack { background: var(--mint); }
.outcome-box { padding: 14px; border-radius: 12px; background: #f4f8f5; color: #465950; font-size: 12px; line-height: 1.7; }.file-chip { display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; margin-top: 7px; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; overflow-wrap: anywhere; }
.discussion { display: grid; gap: 10px; }.comment { padding: 11px 12px; border-radius: 11px; background: var(--canvas); font-size: 11px; line-height: 1.6; }.comment footer { margin-top: 5px; color: var(--muted); font-size: 9px; }.comment-form { display: flex; gap: 8px; margin-top: 12px; }.comment-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }.comment-form button { border: 0; border-radius: 10px; padding: 0 14px; background: var(--green); color: #fff; cursor: pointer; }
.legacy-grid { display: grid; gap: 10px; }.legacy-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid #edf0ee; font-size: 11px; line-height: 1.65; }.legacy-row:last-child { border-bottom: 0; }.legacy-row small { color: var(--muted); }.legacy-row div { overflow-wrap: anywhere; }
.status-actions { display: flex; flex-wrap: wrap; gap: 8px; }.status-button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 11px; cursor: pointer; }.status-button.active { border-color: var(--green); background: var(--green); color: #fff; }
.status-button:disabled { cursor: default; opacity: .9; }.status-button.pending.active { border-color: #d7902f; background: #fff0db; color: #a96519; }.status-button.overdue.active { border-color: #d94747; background: #d94747; color: #fff; }.status-help { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.drawer-edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drawer-edit-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.drawer-edit-actions button { min-height: 40px; padding: 0 15px; border-radius: 10px; cursor: pointer; }
.gap-section { background: #fffaf0; }
.gap-list { display: grid; gap: 9px; margin-bottom: 13px; }
.gap-list > div { display: grid; gap: 3px; padding: 10px 11px; border: 1px solid #f0dfbd; border-radius: 10px; background: #fff; }
.gap-list strong { color: #9a641b; font-size: 11px; }.gap-list span { color: #766a58; font-size: 10px; line-height: 1.55; }
.gap-section .secondary-button { min-height: 36px; padding: 0 12px; border-radius: 9px; cursor: pointer; }
.resolution-section { background: #fff7f7; }.resolution-section h3 { color: var(--red); }.resolution-section p { margin: 0; color: #7f3434; font-size: 12px; line-height: 1.75; }
.admin-section { max-width: 1180px; }
.admin-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--mint); color: var(--green); font-size: 10px; font-weight: 700; }
.admin-guide { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; padding: 13px 15px; border: 1px solid #d7e5dd; border-radius: 13px; background: #f2f8f4; color: #5a6d65; font-size: 11px; }
.admin-guide strong { flex: 0 0 auto; color: var(--green); }
.admin-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-field-card { display: grid; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.admin-field-card > span { font-size: 14px; font-weight: 700; }
.admin-field-card > small { min-height: 31px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.admin-field-card textarea { width: 100%; min-height: 150px; resize: vertical; padding: 12px; border: 1px solid #dce2de; border-radius: 11px; outline: none; background: #fbfcfb; color: var(--ink); font-size: 12px; line-height: 1.7; }
.admin-field-card textarea:focus { border-color: #67917f; box-shadow: 0 0 0 3px rgba(40,90,72,.08); background: #fff; }
.admin-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; margin-top: 16px; padding: 14px 0; background: linear-gradient(transparent, var(--canvas) 32%); }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 11px 17px; border-radius: 11px; background: #132c24; color: #fff; box-shadow: var(--shadow); font-size: 12px; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 210px 1fr; }.sidebar { width: 210px; }.stat-grid { grid-template-columns: 1fr 1fr; }.knowledge-grid { grid-template-columns: 1fr 1fr; }.shared-item-list { grid-template-columns: 1fr; }.filter-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }.filter-primary .search-box { grid-column: 1 / -1; }.filter-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .app-shell { display: block; }.sidebar { transform: translateX(-100%); transition: .2s; width: 248px; box-shadow: var(--shadow); }.sidebar.open { transform: translateX(0); }.main { min-height: 100vh; }.topbar { height: 92px; padding: 20px 18px; }.topbar h1 { font-size: 21px; }.mobile-menu { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-right: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }.topbar-copy { margin-right: auto; }.top-actions .primary-button { display: none; }.content { padding: 6px 16px 90px; }.welcome-card { grid-template-columns: 1fr; padding: 24px; }.motto { display: none; }.stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.stat-card { padding: 15px; }.stat-card strong { font-size: 23px; }.item-card { grid-template-columns: 4px minmax(0,1fr); }.item-side { display: none; }.knowledge-grid { grid-template-columns: 1fr; }.floating-add { display: grid; place-items: center; position: fixed; z-index: 30; right: 18px; bottom: 22px; width: 56px; height: 56px; border: 0; border-radius: 18px; background: var(--lime); color: var(--green); box-shadow: 0 12px 30px rgba(23,59,48,.25); font-size: 28px; }.form-body { grid-template-columns: 1fr; padding: 20px; }.drawer-edit-form { grid-template-columns: 1fr; }.field-wide, .drawer-edit-actions { grid-column: auto; }.modal { max-height: 94vh; }.overlay { padding: 10px; align-items: end; }.modal-footer { padding: 14px 20px; }.detail-grid { grid-template-columns: 1fr 1fr; }.filter-panel { padding: 13px; }.filter-primary, .filter-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }.filter-primary .search-box { grid-column: 1 / -1; }.filter-result-bar { align-items: flex-start; }.filter-result-bar span { line-height: 1.6; }.admin-field-grid { grid-template-columns: 1fr; }.admin-guide { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) { .list-view-bar { align-items: flex-start; flex-direction: column; }.list-view-toggle { width: 100%; }.list-view-toggle button { flex: 1; }.item-table { min-width: 1640px; } }
@media (max-width: 720px) { .material-upload-row, .material-detail-row, .feedback-material-row, .feedback-read-grid { grid-template-columns: 1fr; }.material-upload-row a { grid-column: 1; }.feedback-file-record { grid-template-columns: 1fr auto; }.feedback-file-record small { grid-column: 1; } }
@media (max-width: 980px) { .knowledge-folders { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .knowledge-folders, .knowledge-file-grid { grid-template-columns: 1fr; } }
@media (min-width: 721px) { .floating-add { display: none; } }
@media (max-width: 720px) { .shared-item-list .item-card { min-height: 0; }.shared-item-list .item-side { display: none; } }
