:root {
      color-scheme: light;
      --bg: #f5f7f8;
      --sidebar: #eef2f4;
      --panel: #ffffff;
      --panel-2: #f7f9fb;
      --panel-3: #eef2f4;
      --text: #1c252b;
      --muted: #61717b;
      --soft: #82919a;
      --line: #d9e1e5;
      --accent: #2a9d72;
      --accent-2: #2f7dd1;
      --warn: #b7791f;
      --urgent: #b42318;
      --info: #2563eb;
      --ok: #16803c;
      --button-bg: #1f2a30;
      --button-text: #ffffff;
      --card-bg: #ffffff;
      --header-bg: rgba(248, 250, 252, .96);
      --body-text: #24292f;
      --title-text: #111827;
      --shadow: 0 1px 2px rgba(16, 24, 40, .05);
      --shadow-hover: 0 6px 16px rgba(16, 24, 40, .09);
    }
    [data-theme="dark"] {
      color-scheme: dark;
      --bg: #101214;
      --sidebar: #0d0f11;
      --panel: #181c20;
      --panel-2: #20262b;
      --panel-3: #11161a;
      --text: #e7ecef;
      --muted: #9aa7af;
      --soft: #6f7d86;
      --line: #313940;
      --accent: #62d6a4;
      --accent-2: #74b9ff;
      --warn: #f2c36b;
      --urgent: #ff8f7d;
      --info: #8cbcff;
      --ok: #72df9a;
      --button-bg: #dce7ec;
      --button-text: #11171b;
      --card-bg: #181c20;
      --header-bg: rgba(16, 18, 20, .96);
      --body-text: #d8e0e4;
      --title-text: #f2f6f8;
      --shadow: 0 1px 2px rgba(0, 0, 0, .25);
      --shadow-hover: 0 6px 16px rgba(0, 0, 0, .35);
    }
    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    html, body {
      height: 100%;
    }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    header {
      flex: 0 0 auto;
      z-index: 10;
      background: var(--header-bg);
      border-bottom: 1px solid var(--line);
      backdrop-filter: blur(10px);
    }
    .wrap { max-width: 1320px; margin: 0 auto; padding: 12px 16px; }
    .topbar, .filters, .tabs, .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
    .topbar { justify-content: space-between; }
    h1 { margin: 0; font-size: 21px; font-weight: 750; letter-spacing: 0; }
    .status { color: var(--muted); font-size: 13px; }
    input, select, button {
      height: 32px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--panel);
      color: var(--text);
      padding: 0 10px;
      font: inherit;
    }
    input[type="password"] { min-width: 260px; }
    input[type="search"] { min-width: 240px; }
    input[type="datetime-local"] { min-width: 190px; }
    button {
      cursor: pointer;
      background: var(--panel);
      box-shadow: var(--shadow);
    }
    button:hover { border-color: var(--accent); background: var(--panel-2); }
    button.primary { background: var(--button-bg); border-color: var(--button-bg); color: var(--button-text); }
    button.primary:hover { filter: brightness(.96); }
    button.active { background: var(--panel-3); border-color: var(--accent); color: var(--accent); }
    .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
    .tabs button { flex: 0 0 auto; }
    .view-toggle {
      display: inline-flex;
      gap: 2px;
      padding: 2px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel-3);
    }
    .view-toggle button {
      height: 30px;
      padding: 0 10px;
      border: 0;
      border-radius: 6px;
      box-shadow: none;
      background: transparent;
    }
    .view-toggle button.active {
      background: #fff;
      color: var(--accent);
      box-shadow: var(--shadow);
    }
    .filters {
      display: grid;
      grid-template-columns: auto 120px minmax(220px, 1fr) minmax(190px, 220px) minmax(190px, 220px) auto auto;
      align-items: center;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
    }
    body.meeting-mode .filters {
      display: none;
    }
    body.meeting-mode main.wrap {
      padding-top: 14px;
    }
    body.meeting-mode .entries-section .section-head {
      min-height: 44px;
      background: var(--panel);
    }
    body.meeting-mode .entries-section {
      border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    }
    main.wrap {
      flex: 1 1 auto;
      width: 100%;
      min-height: 0;
      padding-top: 14px;
      padding-bottom: 16px;
    }
    .grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 380px;
      grid-template-areas: "entries side";
      gap: 12px;
      align-items: stretch;
      height: 100%;
      min-height: 0;
    }
    .entries-section { grid-area: entries; min-height: 0; }
    .side-section { grid-area: side; min-height: 0; }
    .section {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 8px;
      box-shadow: var(--shadow);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }
    .section-head {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 48px;
      padding: 8px 12px;
      border-bottom: 1px solid var(--line);
      background: var(--panel-2);
    }
    .pager {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
      flex-wrap: wrap;
    }
    .pager-bottom {
      flex: 0 0 auto;
      padding: 8px 10px;
      border-top: 1px solid var(--line);
      background: var(--panel-2);
    }
    .pager-btn,
    .pager-size {
      height: 28px;
      padding: 0 8px;
      font-size: 12px;
    }
    .pager-btn:disabled {
      cursor: not-allowed;
      opacity: .42;
    }
    .pager-status {
      min-width: 56px;
      text-align: center;
      color: var(--muted);
      font-size: 12px;
    }
    .section h2 {
      margin: 0;
      font-size: 15px;
    }
    .section-subtitle {
      margin-top: 2px;
      color: var(--muted);
      font-size: 12px;
    }
    .list { display: grid; gap: 8px; padding: 10px; }
    #entries, #side {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      overscroll-behavior: contain;
      align-content: start;
    }
    .card {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 9px 11px;
      background: var(--card-bg);
    }
    .card.upsert { border-left: 4px solid var(--accent); cursor: pointer; }
    .card.urgent { border-left: 4px solid var(--urgent); background: var(--card-bg); }
    .card.warn { border-left: 4px solid var(--warn); }
    .card.overdue { border-left: 4px solid var(--urgent); background: var(--card-bg); }
    .card.done-missing-evidence { border-left: 4px solid #efb0a8; background: var(--card-bg); }
    .card.done-with-evidence { border-left: 4px solid var(--ok); background: var(--card-bg); }
    .meta { display: flex; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin: 0 0 6px; }
    .badge {
      display: inline-flex;
      align-items: center;
      height: 22px;
      padding: 0 7px;
      border-radius: 999px;
      font-size: 12px;
      background: var(--panel-2);
      color: var(--muted);
    }
    .badge.info { color: var(--info); background: #eaf1ff; }
    .badge.warn { color: var(--warn); background: #fff4db; }
    .badge.urgent { color: var(--urgent); background: #ffe8e3; }
    .badge.pin { color: #9a3412; background: #ffedd5; }
    .badge.done { color: var(--ok); background: #e8f7ed; }
    .badge.missing { color: var(--urgent); background: #ffe8e3; }
    .title { font-weight: 700; margin-bottom: 6px; word-break: break-word; color: var(--title-text); }
    .body {
      color: var(--body-text);
      font-size: 14px;
      line-height: 1.58;
      overflow-wrap: break-word;
      word-break: normal;
    }
    .body-summary {
      color: var(--muted);
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .expand-link {
      margin-top: 8px;
      font-size: 13px;
    }
    .body > :first-child { margin-top: 0 !important; }
    .body > :last-child { margin-bottom: 0 !important; }
    .body p { margin: 0 0 10px; }
    .body p:last-child { margin-bottom: 0; }
    .body h1,
    .body h2,
    .body h3,
    .body h4,
    .body h5,
    .body h6 {
      margin: 18px 0 9px;
      color: var(--title-text);
      font-weight: 700;
      line-height: 1.28;
    }
    .body h1,
    .body h2 {
      padding-bottom: 6px;
      border-bottom: 1px solid var(--line);
    }
    .body h1 { font-size: 20px; }
    .body h2 { font-size: 18px; }
    .body h3 { font-size: 16px; }
    .body h4,
    .body h5,
    .body h6 { font-size: 14px; }
    .body ul,
    .body ol { margin: 0 0 10px 22px; padding: 0; }
    .body li + li { margin-top: 4px; }
    .body li > p { margin: 6px 0; }
    .body blockquote {
      margin: 0 0 10px;
      padding: 0 12px;
      border-left: 4px solid var(--line);
      color: var(--muted);
    }
    .body pre {
      margin: 0 0 12px;
      padding: 12px;
      overflow-x: auto;
      border-radius: 6px;
      background: var(--panel-2);
      border: 1px solid var(--line);
      white-space: pre;
    }
    .body pre code {
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--body-text);
      font-size: 13px;
      line-height: 1.45;
    }
    .body code {
      padding: .16em .4em;
      border-radius: 4px;
      background: rgba(130, 145, 154, .18);
      color: var(--body-text);
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 85%;
    }
    .body table {
      display: block;
      width: max-content;
      max-width: 100%;
      margin: 0 0 12px;
      overflow-x: auto;
      border-spacing: 0;
      border-collapse: collapse;
      font-size: 13px;
    }
    .body th,
    .body td {
      padding: 6px 13px;
      border: 1px solid var(--line);
      vertical-align: top;
    }
    .body th {
      background: var(--panel-2);
      font-weight: 650;
    }
    .body tr:nth-child(2n) td { background: var(--panel-2); }
    .body a {
      color: var(--accent-2);
      text-decoration: none;
    }
    .body a:hover { text-decoration: underline; }
    .body img {
      max-width: 100%;
      border-radius: 6px;
    }
    .body hr {
      height: 1px;
      margin: 16px 0;
      border: 0;
      background: var(--line);
    }
    .empty { padding: 24px 12px; text-align: center; color: var(--muted); background: var(--panel-2); border: 1px dashed var(--line); border-radius: 8px; }
    .history {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px dashed var(--line);
      display: grid;
      gap: 8px;
    }
    .history-item { background: var(--panel-2); border-radius: 6px; padding: 8px; }
    .small { font-size: 12px; color: var(--muted); }
    .side-section .body { font-size: 13px; }
    @media (max-width: 860px) {
      body {
        overflow: auto;
        display: block;
      }
      .wrap { padding: 12px; }
      main.wrap { min-height: auto; }
      .grid { grid-template-columns: 1fr; grid-template-areas: "side" "entries"; height: auto; }
      .side-section { position: static; }
      #entries, #side { overflow: visible; }
      .filters { grid-template-columns: 1fr 1fr; }
      .filters input[type="search"] { grid-column: 1 / -1; }
      input[type="password"], input[type="search"] { min-width: 100%; width: 100%; }
      .topbar { align-items: stretch; }
    }
    @media (max-width: 520px) {
      .filters { grid-template-columns: 1fr; }
      .row { width: 100%; }
      .row input, .row button { flex: 1 1 auto; }
    }
  
    @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes slideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } }
    @keyframes toastIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-20px); } }
    .card { animation: fadeIn 0.22s ease; transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s; }
    .card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
    .card.deleting { animation: slideOut 0.3s ease forwards; }
    .btn { transition: all 0.2s; cursor: pointer; border-radius: 6px; padding: 6px 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 13px; }
    .btn:hover { background: var(--panel-2); border-color: var(--accent); }
    .btn.danger { background: var(--urgent); color: white; border-color: var(--urgent); }
    .btn.danger:hover { filter: brightness(1.2); }
    .btn.danger-soft { color: var(--urgent); border-color: color-mix(in srgb, var(--urgent) 45%, var(--line)); }
    .del-btn { opacity: 0.3; transition: all 0.2s; font-size: 14px; padding: 2px 6px; cursor: pointer; background: none; border: none; color: var(--muted); }
    .card:hover .del-btn { opacity: 0.8; }
    .del-btn:hover { opacity: 1 !important; color: var(--urgent); transform: scale(1.2); }
    #toast { position: fixed; top: 16px; right: 16px; z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
    .toast-item { animation: toastIn 0.3s ease; padding: 10px 18px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,0.12); font-size: 14px; pointer-events: auto; }
    .toast-item.out { animation: toastOut 0.3s ease forwards; }
    .toast-item.ok { border-left: 4px solid #22c55e; }
    .toast-item.fail { border-left: 4px solid var(--urgent); }
    .action-link { cursor: pointer; border: 0; box-shadow: none; height: auto; padding: 0; background: transparent; color: var(--accent); }
    .card-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; clear: both; }
    .md-table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 13px; }
    .md-table th, .md-table td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
    .md-table th { background: var(--panel-2); font-weight: 650; }
    .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 998; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.2s ease; }
    .modal-box { background: var(--panel); border-radius: 12px; padding: 24px; max-width: 400px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
    .modal-box h3 { margin: 0 0 8px 0; }
    .modal-box p { margin: 0 0 20px 0; color: var(--muted); font-size: 14px; }
    .modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
    .task-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px; }
    .task-column { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); overflow: hidden; }
    .task-column h3 { margin: 0; padding: 9px 10px; font-size: 13px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
    .task-column .list { padding: 10px; }
    .task-column .empty { padding: 18px 10px; }
    .side-group { display: grid; gap: 8px; }
    .side-group + .side-group { padding-top: 8px; border-top: 1px solid var(--line); }
    .side-group-title { margin: 0; color: var(--text); font-size: 13px; font-weight: 750; }
    .stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .stat-item { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-bg); }
    .stat-label { display: block; color: var(--muted); font-size: 12px; }
    .stat-value { display: block; margin-top: 2px; font-size: 18px; font-weight: 750; color: var(--text); }
    .stat-item.warn .stat-value { color: var(--warn); }
    .stat-item.urgent .stat-value { color: var(--urgent); }
    .evidence-line { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
    .quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .task-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 10px;
      padding-top: 8px;
      border-top: 1px dashed var(--line);
    }
    .task-actions .btn {
      height: 28px;
      padding: 0 9px;
      font-size: 12px;
    }
    .overview-hero {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
    }
    .overview-block {
      display: grid;
      gap: 8px;
    }
    .overview-title {
      font-size: 14px;
      font-weight: 750;
      color: var(--text);
    }
    .dept-latest-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .dept-latest {
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--card-bg);
      overflow: hidden;
    }
    .dept-latest h3 {
      margin: 0;
      padding: 8px 10px;
      border-bottom: 1px solid var(--line);
      background: var(--panel-2);
      font-size: 13px;
    }
    .mini-entry {
      padding: 8px 10px;
      border-bottom: 1px solid var(--line);
    }
    .mini-entry:last-child { border-bottom: 0; }
    .mini-title {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--title-text);
      font-size: 13px;
      font-weight: 650;
    }
    .dept-summary {
      display: grid;
      gap: 6px;
    }
    .dept-summary-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 6px 8px;
      align-items: center;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--card-bg);
    }
    .dept-summary-row > span:first-child {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .dept-summary-row .small { grid-column: 1 / -1; }
    .form-grid { display: grid; gap: 10px; margin: 14px 0; }
    .meeting-panel {
      display: grid;
      gap: 8px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--card-bg);
    }
    .meeting-panel h3 { margin: 0; font-size: 15px; }
    #entries.meeting-view {
      display: block;
      padding: 10px;
      background: var(--panel-2);
    }
    .meeting-room {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 100%;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel-2);
    }
    .meeting-chat-head {
      display: grid;
      gap: 5px;
      padding: 11px 12px;
      border-bottom: 1px solid var(--line);
      background: var(--panel);
    }
    .meeting-title-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      font-size: 15px;
    }
    .meeting-agenda-strip {
      display: grid;
      gap: 7px;
      padding: 9px 12px;
      border-bottom: 1px solid var(--line);
      background: color-mix(in srgb, var(--panel) 78%, var(--accent-2) 8%);
    }
    .meeting-agenda-strip-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .meeting-agenda-chips {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding-bottom: 2px;
    }
    .meeting-agenda-chip {
      flex: 0 0 auto;
      max-width: min(360px, 78vw);
      padding: 6px 9px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      color: var(--text);
      font-size: 12px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .meeting-agenda-chip.discussing { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
    .meeting-agenda-chip.resolved { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
    .meeting-agenda-chip em {
      margin-left: 6px;
      color: var(--muted);
      font-style: normal;
    }
    .meeting-message-list {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 14px 16px;
      overscroll-behavior: contain;
    }
    .meeting-msg {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      gap: 8px;
      max-width: 86%;
      align-self: flex-start;
    }
    .meeting-system-msg {
      align-self: center;
      max-width: min(640px, 92%);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      flex-wrap: wrap;
      padding: 5px 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: color-mix(in srgb, var(--panel) 72%, var(--line));
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }
    .meeting-system-msg strong {
      color: var(--text);
      font-weight: 650;
    }
    .meeting-system-msg em {
      color: var(--soft);
      font-style: normal;
    }
    .meeting-msg.own {
      grid-template-columns: minmax(0, 1fr) 34px;
      align-self: flex-end;
    }
    .meeting-msg.own .meeting-avatar { grid-column: 2; grid-row: 1; }
    .meeting-msg.own .meeting-bubble-wrap { grid-column: 1; grid-row: 1; align-items: flex-end; }
    .meeting-avatar {
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      background: var(--panel);
      border: 1px solid var(--line);
      color: var(--accent);
      font-weight: 750;
    }
    .meeting-bubble-wrap {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      min-width: 0;
      gap: 4px;
    }
    .meeting-msg-meta {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: 12px;
    }
    .meeting-msg-meta strong { color: var(--text); }
    .meeting-bubble {
      max-width: 100%;
      padding: 8px 11px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      color: var(--body-text);
      box-shadow: var(--shadow);
      overflow-wrap: anywhere;
    }
    .meeting-msg.own .meeting-bubble {
      background: color-mix(in srgb, var(--accent) 16%, var(--panel));
      border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
    }
    .meeting-bubble > :first-child { margin-top: 0 !important; }
    .meeting-bubble > :last-child { margin-bottom: 0 !important; }
    .meeting-bubble p { margin: 0 0 8px; }
    .meeting-bubble ul,
    .meeting-bubble ol { margin: 0 0 8px 20px; padding: 0; }
    .meeting-bubble pre {
      max-width: 100%;
      overflow-x: auto;
      white-space: pre;
    }
    .meeting-msg-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 20px;
      opacity: 0;
      transition: opacity .18s;
    }
    .meeting-msg:hover .meeting-msg-actions { opacity: 1; }
    .meeting-msg-tool { font-size: 12px; }
    .meeting-composer {
      flex: 0 0 auto;
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr) auto;
      gap: 8px;
      align-items: end;
      padding: 10px;
      border-top: 1px solid var(--line);
      background: var(--panel);
    }
    .meeting-composer textarea {
      min-height: 42px;
      max-height: 138px;
      resize: vertical;
    }
    .meeting-composer.disabled {
      display: block;
      flex: 0 0 auto;
      color: var(--muted);
      text-align: center;
    }
    .meeting-send-actions {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .meeting-status-row {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }
    .meeting-alert {
      padding: 8px 10px;
      border: 1px solid #f5c2bd;
      border-radius: 6px;
      background: color-mix(in srgb, var(--urgent) 12%, var(--panel));
      color: var(--urgent);
      font-size: 13px;
    }
    .meeting-control {
      display: grid;
      gap: 8px;
    }
    .check-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
    }
    .check-chip {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      padding: 6px 8px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--card-bg);
      font-size: 13px;
    }
    .check-chip input {
      width: 14px;
      height: 14px;
      padding: 0;
      flex: 0 0 auto;
    }
    .check-chip span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    textarea {
      width: 100%;
      min-height: 100px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 6px;
      font: inherit;
      resize: vertical;
    }
    @media (max-width: 980px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 980px) { .overview-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 980px) { .dept-latest-grid { grid-template-columns: 1fr; } }
    @media (max-width: 980px) { .task-board { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 640px) { .task-board { grid-template-columns: 1fr; } }
    @media (max-width: 640px) {
      .meeting-room { min-height: 72vh; }
      .meeting-message-list { padding: 12px 10px; }
      .meeting-msg { max-width: 96%; grid-template-columns: 30px minmax(0, 1fr); }
      .meeting-msg.own { grid-template-columns: minmax(0, 1fr) 30px; }
      .meeting-avatar { width: 30px; height: 30px; }
      .meeting-composer { grid-template-columns: 1fr; }
      .meeting-send-actions { justify-content: flex-end; }
    }
    #entries::-webkit-scrollbar, #side::-webkit-scrollbar { width: 9px; }
    #entries::-webkit-scrollbar-thumb, #side::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; border: 2px solid #fff; }
    #entries::-webkit-scrollbar-track, #side::-webkit-scrollbar-track { background: transparent; }
