* { box-sizing: border-box; }
.liquid-toolbar, .liquid-search-row, .liquid-panel-head, .liquid-form-actions,
.liquid-inline-form, .liquid-ledger-row, .liquid-execute { display: flex; align-items: center; gap: 10px; }
.liquid-toolbar { flex-wrap: wrap; justify-content: flex-end; }
.liquid-search-row { justify-content: space-between; margin: 14px 0; }
.liquid-search-row label { flex: 1; max-width: 360px; }
.liquid-layout { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: 14px; align-items: start; }
.liquid-list, .liquid-detail, .liquid-work-panel { border: 1px solid #d6e2e6; border-radius: 8px; background: #fff; padding: 14px; }
.liquid-list { display: grid; gap: 8px; max-height: 75vh; overflow: auto; }
.liquid-list.empty, .liquid-detail.empty { color: #68787e; }
.liquid-list-item { display: grid; gap: 6px; height: auto; padding: 12px; text-align: left; background: #f8fbfc; border: 1px solid #d6e2e6; color: #172124; }
.liquid-list-item:hover, .liquid-list-item.active { border-color: #087ea4; background: #eff8fa; }
.liquid-list-item span:first-child { display: flex; justify-content: space-between; gap: 8px; }
.liquid-list-item span:not(:first-child) { font-size: 13px; line-height: 1.45; }
.liquid-list-item em { font-style: normal; color: #087ea4; font-size: 12px; }
.liquid-work-panel { margin-bottom: 14px; }
.liquid-panel-head { justify-content: space-between; margin-bottom: 12px; }
.liquid-panel-head h3 { margin: 0; font-size: 17px; }
.liquid-panel-head p { margin-top: 5px; }
.liquid-form, .liquid-facts, .liquid-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.liquid-form h4 { grid-column: 1 / -1; margin: 0; }
.liquid-form .wide-2, .liquid-facts .wide-2 { grid-column: 1 / -1; }
.liquid-form input, .liquid-form select, .liquid-form textarea, .liquid-inline-form input, .liquid-inline-form select { width: 100%; min-width: 0; }
.liquid-form-actions { justify-content: space-between; }
.liquid-form-actions .hint { max-width: 430px; }
.liquid-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.liquid-field-title { display: block; margin-bottom: 6px; color: #46565c; font-size: 13px; }
.liquid-check { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #d6e2e6; border-radius: 6px; padding: 6px 8px; background: #f8fbfc; }
.liquid-check input { width: auto; height: auto; margin: 0; }
.liquid-check small { color: #68787e; }
.liquid-facts { gap: 8px; }
.liquid-facts > div { display: grid; gap: 4px; padding: 9px; background: #f7fafb; border-radius: 6px; min-width: 0; }
.liquid-facts span, .liquid-ledger-row small { color: #65767d; font-size: 12px; }
.liquid-facts strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.liquid-block { border-top: 1px solid #d6e2e6; padding: 14px 0; margin-top: 14px; }
.liquid-block h4 { margin: 0 0 10px; }
.liquid-block summary { cursor: pointer; font-weight: 600; }
.liquid-block form { margin-top: 12px; }
.liquid-ledger-row { justify-content: space-between; border-bottom: 1px solid #e7eef0; padding: 9px 0; font-size: 13px; }
.liquid-ledger-row span:first-child { min-width: 0; overflow-wrap: anywhere; }
.liquid-ledger-row small { display: block; line-height: 1.5; }
.liquid-execute { flex-wrap: wrap; }
.liquid-execute select { max-width: 180px; }
.liquid-inline-form { flex-wrap: wrap; }
.liquid-inline-form > input, .liquid-inline-form > select { flex: 1 1 180px; }
.liquid-settings-grid > form { border: 1px solid #e0e9ec; border-radius: 6px; padding: 12px; align-content: start; }
.liquid-settings-grid > form:last-child { grid-column: 1 / -1; }
.liquid-config-lists h4 { margin: 15px 0 8px; }
.liquid-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; margin: 0 6px 6px 0; border-radius: 20px; background: #edf5f7; font-size: 12px; }
.liquid-chip button { height: 22px; width: 22px; padding: 0; border-radius: 50%; }
.liquid-event { padding: 5px 0; color: #53656c; font-size: 12px; }
.liquid-task-link { display: block; width: 100%; height: auto; padding: 9px 12px; margin-top: 7px; text-align: left; }
@media (max-width: 760px) {
  .liquid-layout, .liquid-form, .liquid-facts, .liquid-settings-grid { grid-template-columns: 1fr; }
  .liquid-settings-grid > form:last-child { grid-column: auto; }
  .liquid-form .wide-2, .liquid-facts .wide-2 { grid-column: auto; }
  .liquid-toolbar, .liquid-form-actions, .liquid-search-row { align-items: stretch; }
  .liquid-search-row, .liquid-form-actions { flex-direction: column; }
  .liquid-toolbar button { flex: 1; }
  .liquid-list { max-height: 300px; }
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7f8;
  color: #172124;
}
.hidden { display: none !important; }
.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid #dde5e8;
  position: sticky;
  top: 0;
  z-index: 5;
}
h1, h2, p { margin: 0; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
#entryHint { margin-top: 4px; color: #5b6b72; font-size: 13px; }
button, select, input, textarea {
  height: 36px;
  border: 1px solid #b9c7cc;
  background: #ffffff;
  color: #172124;
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
}
textarea {
  height: auto;
  min-height: 72px;
  padding: 9px 10px;
  resize: vertical;
}
.daily-report-comments { margin-top: 12px; }
.daily-comments-title { color: #46565c; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.daily-comment-item { border-left: 3px solid #087ea4; background: #f5f9fa; padding: 8px 10px; margin-bottom: 7px; line-height: 1.55; font-size: 13px; }
.daily-comment-meta { color: #627279; font-size: 12px; margin-bottom: 3px; }
.daily-latest-comment { margin-top: 7px; padding: 7px 9px; border-left: 3px solid #47a66a; background: #f2faf4; color: #385447; font-size: 12px; line-height: 1.5; text-align: left; }
label {
  display: grid;
  gap: 6px;
  color: #46565c;
  font-size: 13px;
}
button {
  border-color: #087ea4;
  background: #087ea4;
  color: #ffffff;
  cursor: pointer;
}
button.secondary {
  border-color: #b9c7cc;
  background: #ffffff;
  color: #172124;
}
button:disabled { opacity: .65; cursor: progress; }
main { padding: 18px; max-width: 1200px; margin: 0 auto; }
.app-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 33, 36, .42);
}
.app-dialog {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #d6e2e6;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(23, 33, 36, .18);
}
.app-dialog h2 {
  font-size: 18px;
}
.app-dialog p {
  color: #46565c;
  line-height: 1.55;
  word-break: break-word;
}
.app-dialog-field input {
  width: 100%;
}
.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.app-dialog-actions button {
  min-width: 96px;
}
.home-panel {
  background: #ffffff;
  border: 1px solid #d6e2e6;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.home-head {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}
.home-user-select { color: #46565c; }
.home-identity {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7fafb;
  border: 1px solid #e3eaed;
  margin-bottom: 14px;
}
.identity-name {
  font-size: 18px;
  font-weight: 700;
}
.identity-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #075b73;
  background: #edf7fa;
  font-size: 12px;
}
.home-highlights {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 14px;
  overflow: hidden;
}
.home-highlights-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}
.home-highlights-head strong {
  font-size: 13px;
  white-space: nowrap;
}
.home-highlights-list {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.home-highlights-list::-webkit-scrollbar {
  display: none;
}
.home-highlights-list .hint {
  white-space: nowrap;
}
.home-highlight-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid #d7e6eb;
  border-left: 4px solid #1687a7;
  border-radius: 8px;
  background: #f3fbfd;
  cursor: pointer;
}
.home-highlight-card.praise {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  display: inline-flex;
  gap: 5px;
  padding: 5px 8px;
  border-color: #efdfb5;
  border-left-color: #d79416;
  background: #fffaf0;
}
.home-highlight-card.notice {
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
  padding: 5px 8px;
  border-color: #cfe0e5;
  border-left-color: #1687a7;
  background: #f3fbfd;
}
.home-highlight-card:focus-visible {
  outline: 2px solid #087ea4;
  outline-offset: 2px;
}
.home-highlight-label {
  min-width: 0;
  max-width: 360px;
  overflow: hidden;
  color: #075b73;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-highlight-card.praise .home-highlight-label {
  max-width: min(420px, calc(100vw - 90px));
  color: #8a5a00;
  font-size: 12px;
}
.home-highlight-card.praise .home-highlight-view {
  font-size: 18px;
}
.home-highlight-card.notice .home-highlight-label {
  max-width: min(420px, calc(100vw - 90px));
  color: #075b73;
  font-size: 12px;
}
.home-highlight-card.notice .home-highlight-view {
  font-size: 18px;
}
.home-highlight-notice {
  width: min(520px, 72vw);
  flex: 0 0 auto;
  min-height: 36px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  border-bottom: 1px solid #e3eaed;
  cursor: pointer;
}
.home-highlight-notice:focus-visible {
  outline: 2px solid #087ea4;
  outline-offset: 1px;
}
.home-highlight-notice-label {
  min-width: 38px;
  color: #075b73;
  font-size: 12px;
  font-weight: 800;
}
.home-highlight-copy {
  min-width: 0;
}
.home-highlight-content {
  display: block;
  overflow: hidden;
  color: #26383e;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-highlight-meta {
  margin-top: 3px;
  color: #75858a;
  font-size: 11px;
}
.home-highlight-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.home-highlight-view {
  color: #087ea4;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}
.home-highlight-offline {
  width: auto;
  height: 28px;
  padding: 0 8px;
  border-color: #d6a1a1;
  background: #ffffff;
  color: #9a3030;
  font-size: 12px;
}
.metric-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e3eaed;
  border-radius: 8px;
}
.metric-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}
.metric-table th,
.metric-table td {
  padding: 12px;
  border-bottom: 1px solid #edf1f2;
  white-space: nowrap;
}
.metric-table th {
  color: #5b6b72;
  font-size: 13px;
  background: #f7fafb;
}
.metric-table td {
  font-size: 22px;
  font-weight: 700;
}
.metric-table tbody tr:last-child td { border-bottom: 0; }
.home-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.sub-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  margin-bottom: 12px;
  background: #f5f7f8;
  border-bottom: 1px solid #dde5e8;
}
.sub-nav .nav-tile {
  flex: 0 0 auto;
  min-width: 116px;
  min-height: 40px;
}
.nav-tile {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cfe0e5;
  background: #f7fbfc;
  color: #173941;
  font-weight: 700;
  cursor: pointer;
}
.nav-tile:hover {
  border-color: #087ea4;
  color: #075b73;
}
.nav-tile.active {
  border-color: #087ea4;
  background: #e8f6fa;
  color: #075b73;
}
.panel {
  background: #ffffff;
  border: 1px solid #dde5e8;
  border-radius: 8px;
  padding: 16px;
}
.status-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}
.label {
  display: block;
  color: #5b6b72;
  font-size: 12px;
  margin-bottom: 6px;
}
strong { font-size: 20px; }
.grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
}
.hierarchy-panel { margin-bottom: 16px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.hint {
  color: #6a7c82;
  font-size: 13px;
}
.demo-panel { margin-bottom: 16px; }
.demo-layout, .daily-work-layout {
  display: grid;
  gap: 16px;
}
.demo-form {
  display: grid;
  gap: 14px;
}
.daily-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(180px, 240px);
  gap: 12px;
  align-items: end;
}
.demo-preview {
  display: grid;
  gap: 14px;
  align-content: start;
}
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.flow div {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #f0f6f7;
  border: 1px solid #d9e6ea;
  color: #24464f;
  font-size: 13px;
  text-align: center;
}
.demo-card {
  border: 1px solid #e3eaed;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}
.demo-list {
  display: grid;
  gap: 8px;
}
.daily-task-reports {
  display: grid;
  gap: 10px;
}
.daily-work-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f4f8f9;
  color: #38555d;
  font-size: 14px;
}
.daily-work-summary.complete {
  background: #eaf7ee;
  color: #1f7a3d;
}
.daily-work-summary strong {
  color: #172124;
  font-size: 16px;
}
.daily-work-summary.complete strong {
  color: #1f7a3d;
}
.daily-work-summary.complete span {
  color: #24663a;
}
.daily-task-list-item {
  width: 100%;
  height: auto;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #c9dbe1;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  box-shadow: 0 1px 0 rgba(23, 33, 36, .04);
}
.daily-task-list-item:hover {
  border-color: #7faebb;
  background: #fbfdfe;
}

.daily-non-task-entry {
  margin-bottom: 12px;
  border-color: #9fb8d8;
  background: #f5f9ff;
}

.daily-non-task-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 220px);
  gap: 14px;
}

@media (max-width: 720px) {
  .daily-non-task-fields {
    grid-template-columns: 1fr;
  }
}
.daily-task-list-main {
  min-width: 0;
}
.daily-task-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.daily-task-title-row .daily-task-title {
  min-width: 0;
  overflow-wrap: anywhere;
}
.daily-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.daily-status-badge.pending {
  color: #b42318;
  background: #fee4e2;
  border: 1px solid #fecdca;
}
.daily-status-badge.submitted {
  color: #067647;
  background: #dcfae6;
  border: 1px solid #abefc6;
}
.daily-task-chevron {
  color: #5d7a82;
  font-size: 22px;
  line-height: 1;
}
.daily-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 4px;
}
.daily-pagination button {
  width: auto;
  min-width: 88px;
}
.daily-task-form-view {
  display: grid;
  gap: 12px;
}
.daily-back-button {
  width: fit-content;
}
.daily-task-editor {
  gap: 14px;
}
.daily-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.daily-form-actions button {
  width: auto;
}
.daily-submitted-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  color: #067647;
  background: #ecfdf3;
  font-size: 13px;
}
.daily-task-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #c9dbe1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(23, 33, 36, .04);
}
.daily-task-head {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 12px;
  align-items: end;
}
.daily-task-title {
  font-size: 18px;
  font-weight: 800;
  color: #172124;
  line-height: 1.35;
}
.daily-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.daily-task-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf7fa;
  color: #075b73;
  font-size: 12px;
}
.daily-task-card textarea {
  min-height: 110px;
}
.daily-attachment-field {
  display: grid;
  gap: 7px;
}
.daily-attachment-field input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px dashed #b9cbd1;
  border-radius: 7px;
  background: #f8fbfc;
}
.daily-attachment-field small {
  color: #627279;
  font-size: 12px;
  line-height: 1.5;
}
.daily-attachment-list {
  display: grid;
  gap: 7px;
}
.daily-attachment-list-title {
  color: #52666d;
  font-size: 12px;
  font-weight: 700;
}
.daily-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #d5e1e5;
  border-radius: 7px;
  background: #f8fbfc;
  font-size: 13px;
}
.daily-attachment-item-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.daily-attachment-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.daily-attachment-item-size {
  flex: 0 0 auto;
  color: #6a7b81;
  font-size: 12px;
}
.daily-attachment-remove {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 0;
  background: transparent;
  color: #b42318;
  font-size: 12px;
}
.daily-existing-attachment,
.report-attachment-link {
  width: fit-content;
  color: #087ea4;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.daily-existing-attachment:hover,
.report-attachment-link:hover {
  text-decoration: underline;
}
.daily-notify-options {
  display: grid;
  gap: 8px;
}
.daily-notify-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #24464f;
  font-size: 14px;
}
.daily-notify-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0f6f87;
}
.daily-admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
#dailyAdminSection.daily-admin-complete {
  border-color: #bfe4c7;
  background: linear-gradient(180deg, #f6fff7 0%, #ffffff 100%);
}
#dailyAdminSection.daily-admin-complete .section-head h2,
#dailyAdminSection.daily-admin-complete .section-head .hint {
  color: #24663a;
}
.daily-admin-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff3de;
  color: #9a5b00;
  font-size: 12px;
  font-weight: 800;
}
.daily-admin-status-badge.is-complete {
  background: #eaf7ee;
  color: #1f7a3d;
}
.daily-groups {
  display: grid;
  gap: 10px;
}
.daily-groups.empty {
  color: #63777d;
  padding: 16px;
  text-align: center;
}
.daily-group {
  border: 1px solid #dde9ed;
  border-radius: 9px;
  padding: 9px 10px;
  background: #fbfdfe;
}
.daily-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 7px;
}
.daily-group-head strong {
  color: #184b59;
  font-size: 14px;
}
.daily-group-head span {
  color: #61767c;
  font-size: 11px;
}
.daily-group-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 5px;
}
.daily-person-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: auto;
  min-height: 42px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  color: inherit;
}
button.daily-person-chip { cursor: pointer; }
.daily-person-chip strong {
  font-size: 13px;
  line-height: 1.15;
}
.daily-person-chip span {
  font-size: 11px;
  line-height: 1.15;
  opacity: .84;
}
.daily-person-chip .daily-review-tag {
  width: fit-content;
  margin-top: 2px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(15, 111, 135, .1);
  color: #155c6d;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.daily-person-chip .daily-review-tag.is-overdue {
  background: #fee4e2;
  color: #b42318;
}
.daily-person-chip.is-missing {
  border-color: #f0b2b2;
  background: #fff0f0;
  color: #a52626;
}
.daily-person-chip.is-partial {
  border-color: #e3c66c;
  background: #fff8d8;
  color: #805900;
}
.daily-person-chip.is-complete {
  border-color: #a8dcb9;
  background: #eaf8ee;
  color: #216738;
}
button.daily-person-chip.is-missing:hover { background: #ffe4e4; }
button.daily-person-chip.is-partial:hover { background: #fff1bd; }
button.daily-person-chip.is-complete:hover { background: #dff3e5; }
.daily-report-view-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #dde5e8;
  background: #ffffff;
  padding: 16px;
}
.daily-report-view-list { display: grid; gap: 10px; }
.daily-report-view-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e3eaed;
  border-radius: 8px;
  background: #fbfdfe;
}
.daily-report-view-head { display: flex; justify-content: space-between; gap: 12px; color: #184b59; }
.daily-report-view-head span { color: #718187; font-size: 12px; white-space: nowrap; }
.daily-report-view-content { color: #26383e; line-height: 1.7; overflow-wrap: anywhere; }
.daily-report-view-attachments { color: #61767c; font-size: 12px; }
.daily-report-view-attachments a { color: #087ea4; margin-right: 8px; }
.daily-report-view-item.is-pending { border-color: #e3c66c; background: #fffaf0; }
.daily-review-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #b8d9e2;
  border-radius: 8px;
  background: #f4fafc;
}
.daily-review-panel.hidden { display: none; }
.daily-review-note {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-left: 3px solid #e9a23b;
  background: #fff8e8;
  color: #694b13;
  white-space: pre-wrap;
}
.daily-review-stats { display: grid; gap: 8px; }
.daily-review-stats.empty { color: #63777d; padding: 12px; text-align: center; }
.daily-review-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #f1f7f9;
}
.daily-review-summary span { color: #52686f; font-size: 12px; }
.daily-review-summary strong { color: #184b59; }
.daily-review-stat-row {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(200px, 1.2fr) minmax(180px, 1fr);
  gap: 8px 14px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #dde9ed;
  border-radius: 8px;
  background: #fff;
}
.daily-review-stat-row span,
.daily-review-stat-row small { color: #61767c; }
@media (max-width: 700px) {
  .daily-review-stat-row { grid-template-columns: 1fr; }
}
.demo-item {
  border: 1px solid #e3eaed;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}
.demo-item-title {
  font-weight: 700;
  margin-bottom: 5px;
}
.demo-item-meta {
  color: #6a7c82;
  font-size: 12px;
  line-height: 1.5;
}
.task-panel { margin-bottom: 16px; }
.management-filters {
  display: grid;
  grid-template-columns: 1.1fr 1.8fr .9fr auto;
  gap: 12px;
  margin-bottom: 14px;
}
.management-filter-card {
  padding: 12px;
  border: 1px solid #d9e6ea;
  border-radius: 8px;
  background: #fbfcfd;
}
.management-filter-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.management-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.management-filter-card.wide .management-filter-row {
  grid-template-columns: 150px 1fr;
}
.management-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 0;
}
.management-filter-actions button {
  min-width: 72px;
}
.management-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.management-stat {
  padding: 14px;
  border: 1px solid #d9e6ea;
  border-radius: 8px;
  background: #ffffff;
  color: #172124;
}
.management-stat span {
  display: block;
  margin-bottom: 8px;
  color: #46565c;
  font-weight: 700;
}
.management-stat strong {
  color: #172124;
  font-size: 26px;
}
.management-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #d9e6ea;
  border-radius: 8px;
  background: #fbfcfd;
}
.management-pagination label {
  grid-auto-flow: column;
  align-items: center;
}
.management-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.management-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.pill-action {
  min-width: 148px;
  height: 44px;
  padding: 0 20px;
  border: 2px solid #087ea4;
  border-radius: 12px;
  background: #e8f6fa;
  color: #075b73;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}
.pill-action.active {
  border-color: #087ea4;
  background: #dff2f7;
  color: #075b73;
  box-shadow: inset 0 0 0 1px rgba(8, 126, 164, .18);
}
.pill-action:not(.active):hover {
  background: #f5fbfd;
  color: #075b73;
}
.management-special-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 16px;
}
.management-special-actions h3 {
  margin: 0 0 4px;
  font-size: 20px;
}
.management-title-cell {
  min-width: 300px;
  max-width: 520px;
}
.management-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.management-title-line .task-link {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operation-cell {
  white-space: nowrap;
  min-width: 126px;
}
.operation-cell button + button {
  margin-left: 5px;
}
.operation-detail-button {
  min-width: 48px;
  height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}
.management-mobile-actions {
  display: none;
}
.management-table th,
.management-table td {
  padding: 8px 10px;
  white-space: nowrap;
}
.management-table th:nth-child(2),
.management-table td:nth-child(2) {
  white-space: normal;
}
.management-report-table th,
.management-report-table td {
  vertical-align: top;
}
.management-report-table .management-title-cell {
  min-width: 260px;
}
.latest-report-cell {
  min-width: 280px;
  max-width: 420px;
  white-space: normal !important;
  line-height: 1.55;
}
.compact-action {
  white-space: nowrap;
}
.management-table th:nth-child(6),
.management-table td:nth-child(6) {
  min-width: 96px;
}
.compact-button {
  min-width: 56px;
  white-space: nowrap;
}
.danger-link {
  flex: 0 0 auto;
  min-width: 44px;
  height: 28px;
  padding: 0 8px;
  border-color: #d6a3a3;
  background: #fff7f7;
  color: #b32626;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.tag-toggle {
  min-width: 58px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border-color: #cfe0e5;
  background: #ffffff;
  color: #46565c;
  font-weight: 700;
  white-space: nowrap;
}
.tag-toggle.on {
  border-color: #bfe5ce;
  background: #edf7ef;
  color: #236335;
}
.management-mobile-summary {
  display: none;
}
.member-admin-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: auto;
  margin-bottom: 16px;
}
.segment-button {
  width: auto;
  min-width: 148px;
  height: 44px;
  padding: 0 20px;
  border: 2px solid #087ea4;
  border-radius: 12px;
  background: #e8f6fa;
  color: #075b73;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}
.segment-button.active {
  border-color: #087ea4;
  background: #dff2f7;
  color: #075b73;
  box-shadow: inset 0 0 0 1px rgba(8, 126, 164, .18);
}
.segment-button:not(.active):hover {
  background: #f5fbfd;
  color: #075b73;
}
.member-admin-list {
  display: grid;
  gap: 12px;
}
.member-task-group {
  border: 1px solid #d9e6ea;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}
.member-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f7fafb;
  border-bottom: 1px solid #e7eef0;
}
.member-task-head h3 {
  margin: 0 0 3px;
  font-size: 16px;
}
.member-task-list {
  display: grid;
}
.member-task-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f2;
}
.member-task-item:last-child {
  border-bottom: 0;
}
.member-task-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.member-task-title .task-link {
  line-height: 1.45;
}
.member-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #5f7278;
  font-size: 12px;
}
.member-task-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f4f8f9;
}
.member-task-evaluation {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ead7aa;
  border-radius: 8px;
  background: #fffaf0;
  color: #6b520f;
  font-size: 13px;
  font-weight: 800;
}
.member-task-evaluation button,
.performance-pending-action button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
}
.compact-empty {
  padding: 12px 14px;
}
.delay-bad {
  color: #c62828;
  font-weight: 800;
}
.task-create-card {
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid #d6e2e6;
  border-radius: 12px;
  background: #ffffff;
}
.task-create-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.task-create-head .eyebrow {
  margin-bottom: 5px;
  color: #087ea4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.task-create-card h2 {
  margin: 0;
  font-size: 20px;
}
.task-create-hint {
  color: #6a7c82;
  font-size: 12px;
  text-align: right;
}
.task-create-group {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e0eaed;
  border-radius: 10px;
  background: #fbfdfe;
}
.task-create-group-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.task-create-step {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e7f5f8;
  color: #087ea4;
  font-size: 11px;
  font-weight: 800;
}
.task-create-group h3 {
  margin: 0;
  color: #172124;
  font-size: 14px;
}
.task-create-group-head p {
  margin-top: 3px;
  color: #718188;
  font-size: 12px;
}
.task-create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.task-create-grid > label,
.task-create-grid > button {
  min-width: 0;
}
.task-create-grid input,
.task-create-grid select {
  width: 100%;
  min-width: 0;
}
.task-create-grid .wide-2 {
  grid-column: span 2;
}
.task-create-grid button {
  min-width: 120px;
  justify-self: start;
}
.task-create-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 2px 0;
  border-top: 1px solid #e3eaed;
}
.task-create-actions p {
  color: #718188;
  font-size: 12px;
}
.task-create-actions strong {
  color: #46565c;
}
.task-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e3eaed;
  border-radius: 8px;
}
.task-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  text-align: left;
}
.task-table th,
.task-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f2;
  vertical-align: top;
  font-size: 13px;
}
.task-table th {
  color: #5b6b72;
  background: #f7fafb;
  white-space: nowrap;
}
.task-table tbody tr:last-child td { border-bottom: 0; }
.task-link {
  height: auto;
  min-height: 0;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #075b73;
  font-weight: 700;
  text-align: left;
}
.task-title-with-badge {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 4px;
  max-width: 100%;
}
.task-title-with-badge > span:last-child {
  min-width: 0;
}
.scene-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}
.scene-company {
  border: 1px solid #b9dbe6;
  background: #e8f6fa;
  color: #075b73;
}
.scene-external {
  border: 1px solid #ead08b;
  background: #fff5dc;
  color: #7a5412;
}
.scene-pilot {
  border: 1px solid #cbbdf1;
  background: #f2edff;
  color: #4d348c;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #24464f;
  background: #edf1f2;
  font-size: 12px;
  white-space: nowrap;
}
.status-active { background: #edf7fa; color: #075b73; }
.status-paused { background: #fff5dc; color: #7a5412; }
.status-handover { background: #eef2ff; color: #33458f; }
.status-pending { background: #f0f6f7; color: #24464f; }
.status-done { background: #edf7ef; color: #236335; }
.warn-dot {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff5dc;
  color: #7a5412;
  font-size: 12px;
  white-space: nowrap;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 33, 36, .38);
}
.task-detail-modal {
  width: min(1080px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid #d9e6ea;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
  padding: 18px;
  box-shadow: 0 24px 70px rgba(23, 33, 36, .22);
}
.daily-missing-modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #dde5e8;
  background: #ffffff;
  padding: 16px;
}
.people-stats-modal {
  width: min(1080px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #dde5e8;
  background: #ffffff;
  padding: 16px;
}
.home-highlight-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 16px;
  border: 1px solid #dde5e8;
  border-radius: 8px;
  background: #ffffff;
}
.home-highlight-form {
  display: grid;
  gap: 13px;
}
.home-highlight-form select,
.home-highlight-form input,
.home-highlight-form textarea {
  width: 100%;
}
.home-highlight-detail {
  color: #26383e;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.home-highlight-attachment-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid #d79416;
  border-radius: 8px;
  background: #fffaf0;
  color: #8a5a00;
  font-weight: 800;
  text-decoration: none;
}
.home-highlight-attachment-link:hover {
  background: #fff4d9;
}
.people-stats-layout {
  display: grid;
  grid-template-columns: minmax(220px, .38fr) minmax(0, 1fr);
  gap: 12px;
}
.people-stats-list,
.people-task-list {
  display: grid;
  gap: 6px;
}
.people-stat-person {
  display: grid;
  width: 100%;
  height: auto;
  min-height: 72px;
  gap: 4px;
  justify-items: start;
  padding: 8px 10px;
  border: 1px solid #d9e6ea;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-align: left;
}
.people-stat-person:hover,
.people-stat-person.active {
  border-color: #087ea4;
  background: #f5fbfd;
}
.people-stat-person strong {
  color: #172124;
  font-size: 14px;
}
.people-stat-person span {
  color: #5f7278;
  font-size: 11px;
}
.people-stat-person-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.people-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.people-task-head strong {
  font-size: 14px;
}
.people-task-item {
  display: grid;
  gap: 6px;
  height: auto;
  padding: 9px 10px;
  border: 1px solid #e3eaed;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.people-task-item:hover,
.people-task-item:focus-visible {
  border-color: #087ea4;
  background: #f5fbfd;
  outline: none;
}
.people-task-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.people-task-item-title {
  min-width: 0;
  overflow: hidden;
  color: #172124;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.people-task-item-arrow {
  margin-left: auto;
  flex: 0 0 auto;
  color: #087ea4;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.daily-missing-task-link {
  display: block;
  width: 100%;
  line-height: 1.45;
}
.task-detail-body {
  display: grid;
  gap: 16px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2px 0 4px;
}
.detail-actions .active-action {
  border-color: #087ea4;
  background: #087ea4;
  color: #ffffff;
}
.task-action-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e6ea;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbfc 0%, #ffffff 100%);
  box-shadow: 0 1px 0 rgba(23, 33, 36, .03);
}
.compact-head {
  margin-bottom: 0;
}
.compact-head h3 {
  margin: 0;
  font-size: 15px;
}
.task-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.participant-edit-list {
  display: grid;
  gap: 10px;
}
.participant-edit-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #e3eaed;
  border-radius: 8px;
  background: #ffffff;
}
.wide-field {
  grid-column: 1 / -1;
}
.conditional-field {
  transition: opacity .16s ease;
}
.action-hint {
  padding: 8px 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e3eaed;
}
.detail-info-panel,
.detail-block {
  border: 1px solid #d9e6ea;
  border-radius: 16px;
  padding: 14px;
}
.detail-info-panel {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #fafdfe 0%, #ffffff 100%);
  box-shadow: 0 1px 0 rgba(23, 33, 36, .03);
}
.task-progress-hero {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #b9dbe6;
  border-radius: 16px;
  background: linear-gradient(135deg, #f1fbfd 0%, #ffffff 72%);
}
.task-progress-hero.is-delayed { border-color: #e8b6a9; background: linear-gradient(135deg, #fff5f1 0%, #fff 72%); }
.task-progress-hero-head, .task-progress-meta, .task-latest-report { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-progress-hero-head > div { display: grid; gap: 3px; }
.task-progress-hero-head > .task-status-quick-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.task-progress-hero-head strong { color: #075b73; font-size: 38px; line-height: 1; }
.task-quick-complete {
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #087ea4;
  box-shadow: 0 2px 7px rgba(8, 126, 164, .2);
  font-size: 12px;
  white-space: nowrap;
}
.task-quick-complete:hover { background: #066c8d; }
.task-quick-complete:disabled { cursor: wait; opacity: .62; }
.task-progress-track { height: 14px; overflow: hidden; border-radius: 999px; background: #dcebed; box-shadow: inset 0 1px 2px rgba(23,33,36,.12); }
.task-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #16a0bd, #087ea4); }
.is-delayed .task-progress-track i { background: linear-gradient(90deg, #e99a75, #d46651); }
.task-progress-meta { color: #5f7278; font-size: 12px; flex-wrap: wrap; }
.task-latest-report { justify-content: flex-start; align-items: baseline; padding-top: 10px; border-top: 1px solid rgba(8,126,164,.14); color: #33464c; font-size: 13px; }
.task-latest-report span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-latest-report em { color: #819196; font-size: 11px; font-style: normal; }
.task-key-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.task-key-facts > div { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid #e3eaed; border-radius: 10px; background: #fff; }
.task-key-facts span, .task-next-action .label { color: #6a7c82; font-size: 12px; }
.task-key-facts strong { color: #172124; font-size: 15px; }
.task-next-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-left: 4px solid #087ea4; border-radius: 8px; background: #f7fafb; }
.task-next-action > div { display: grid; gap: 4px; }
.task-next-action strong { color: #075b73; font-size: 15px; }
.progress-history { display: grid; gap: 0; }
.progress-history-item { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 46px; }
.progress-history-item:not(:last-child)::before { position: absolute; top: 26px; left: 6px; width: 2px; height: 32px; background: #d9e6ea; content: ''; }
.progress-history-dot { z-index: 1; width: 12px; height: 12px; border: 3px solid #b9dbe6; border-radius: 50%; background: #fff; }
.progress-history-dot.current { border-color: #087ea4; background: #087ea4; }
.progress-history-item div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.progress-history-item div strong { color: #075b73; }
.progress-history-item div span { overflow: hidden; color: #46565c; text-overflow: ellipsis; white-space: nowrap; }
.progress-history-item em { color: #819196; font-size: 11px; font-style: normal; white-space: nowrap; }
@media (max-width: 620px) {
  .task-key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-next-action { align-items: flex-start; flex-direction: column; }
  .progress-history-item { grid-template-columns: 18px minmax(0, 1fr); }
  .progress-history-item em { grid-column: 2; }
}
.detail-info-panel h3,
.detail-block h3 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: .01em;
}
.task-chat-summary { display: grid; gap: 10px; }
.task-chat-summary p { margin: 0; overflow-wrap: anywhere; }
.task-chat-summary label { display: grid; gap: 6px; }
.task-chat-summary label:has(input[type="checkbox"]) { display: flex; align-items: center; }
.task-chat-summary input[type="checkbox"] { width: auto; height: auto; }
.task-create-grid select[multiple] { min-height: 110px; }
.detail-info-panel h3 {
  margin-bottom: 0;
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.detail-stat {
  min-width: 0;
  min-height: 92px;
  display: grid;
  align-content: start;
  padding: 12px 13px;
  border: 1px solid #e3eaed;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: 0 1px 0 rgba(23, 33, 36, .03);
}
.detail-stat.primary {
  border-color: #d4e5ea;
  background: linear-gradient(180deg, #f5fbfd 0%, #f9fdfe 100%);
}
.detail-stat.secondary strong {
  color: #34464c;
  font-size: 15px;
  font-weight: 700;
}
.detail-stat strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  color: #172124;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.detail-stat .status-badge {
  width: fit-content;
}
.detail-stat.group strong {
  display: block;
}
.detail-group-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  border: 2px solid #087ea4;
  border-radius: 12px;
  background: #e8f6fa;
  color: #075b73;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(8, 126, 164, .18);
}
.detail-progress-value {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 800;
}
.detail-progress-bar {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8eb;
  box-shadow: inset 0 1px 2px rgba(23, 33, 36, .08);
}
.detail-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f88ab 0%, #087ea4 100%);
  box-shadow: 0 0 0 1px rgba(8, 126, 164, .08);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.detail-item {
  padding: 9px 0;
  border-bottom: 1px solid #edf1f2;
}
.detail-item:last-child { border-bottom: 0; }
.detail-item.compact {
  color: #46565c;
  font-size: 13px;
}
.report-summary {
  display: grid;
  gap: 6px;
  padding: 11px 0;
}
.report-meta {
  color: #6a7c82;
  font-size: 12px;
  line-height: 1.35;
}
.report-content {
  color: #26383e;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.participant-summary {
  display: grid;
  gap: 9px;
  padding: 11px 0;
}
.participant-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.participant-ratios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.participant-ratios span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e3eaed;
  border-radius: 6px;
  background: #f7fafb;
}
.participant-ratios em {
  display: block;
  color: #6a7c82;
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}
.participant-ratios strong {
  display: block;
  margin-top: 3px;
  color: #172124;
  font-size: 15px;
  line-height: 1.3;
}
.participant-note {
  color: #5f7278;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.confirm-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}
.confirm-badge.confirmed {
  background: #edf7ef;
  color: #236335;
}
.confirm-badge.pending {
  background: #fff5dc;
  color: #7a5412;
}
.tree, .people { min-height: 280px; }
.empty { color: #6a7c82; }
.analytics-dashboard {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e3eaed;
}
.analytics-head { align-items: end; }
.analytics-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.analytics-filter label { display: grid; gap: 4px; color: #5f7278; font-size: 12px; }
.analytics-filter input { min-height: 36px; }
.analytics-cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.analytics-card { display: grid; gap: 3px; min-height: 92px; padding: 11px 10px; border: 1px solid #d9e6ea; border-radius: 10px; background: linear-gradient(180deg, #fafdfe 0%, #fff 100%); }
.analytics-card span { color: #5f7278; font-size: 12px; }
.analytics-card strong { color: #075b73; font-size: 24px; line-height: 1.15; }
.analytics-card em { color: #819196; font-size: 11px; font-style: normal; line-height: 1.3; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 14px; }
.analytics-block { min-width: 0; padding: 13px; border: 1px solid #e3eaed; border-radius: 10px; background: #fff; }
.analytics-block h3 { margin: 0 0 10px; font-size: 15px; }
.analytics-trend-scroll { overflow-x: auto; }
.analytics-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.analytics-table th, .analytics-table td { padding: 8px 9px; border-bottom: 1px solid #edf1f2; text-align: right; }
.analytics-table th:first-child, .analytics-table td:first-child { text-align: left; }
.analytics-table th { color: #5f7278; font-weight: 700; }
.analytics-rules { color: #5f7278; font-size: 13px; line-height: 1.65; }
.analytics-rules p { margin: 0 0 7px; }
@media (max-width: 900px) {
  .analytics-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .analytics-head, .analytics-filter { align-items: stretch; }
  .analytics-filter { display: grid; grid-template-columns: 1fr 1fr auto; }
  .analytics-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr; }
}
.management-tree {
  display: grid;
  gap: 12px;
}
.admin-settings-card {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #cfe0e6;
  border-radius: 10px;
  background: #f7fbfc;
}
.admin-settings-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.admin-settings-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.admin-settings-head p {
  margin: 0;
}
.admin-settings-add {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-settings-add select {
  min-width: 230px;
}
.admin-settings-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.admin-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #d9e6ea;
  border-radius: 8px;
  background: #fff;
}
.admin-setting-person {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.admin-setting-person strong,
.admin-setting-person span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-setting-person span {
  color: #5f7278;
  font-size: 12px;
}
.admin-remove-button {
  flex: 0 0 auto;
  border-color: #e9c8c8;
  background: #fff7f7;
  color: #a43a3a;
}
.people-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.people-stat-button {
  display: grid;
  align-content: center;
  gap: 2px;
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}
.people-admin-stats .management-stat span {
  margin-bottom: 2px;
  font-size: 12px;
  line-height: 1.15;
}
.people-admin-stats .management-stat strong {
  font-size: 16px;
  line-height: 1.05;
}
.people-stat-button em {
  color: #5f7278;
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
}
.people-stat-button:hover {
  border-color: #b9dbe6;
  background: #f5fbfd;
}
.admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-row .person-chip-rich {
  flex: 1 1 210px;
  max-width: 280px;
}
.role-label {
  min-width: 72px;
  color: #5b6b72;
  font-size: 13px;
}
.person-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf7fa;
  color: #075b73;
  font-size: 13px;
}
.person-chip-rich {
  display: grid;
  align-items: start;
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 92px;
  padding: 8px 9px;
  border: 1px solid #d9e6ea;
  border-radius: 8px;
  background: #ffffff;
}
.person-chip-rich:hover {
  border-color: #b9dbe6;
  background: #f9fdfe;
}
.person-chip-top,
.person-chip-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.person-chip-name {
  min-width: 0;
  overflow: hidden;
  color: #172124;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person-chip-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.person-role-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #edf7fa;
  color: #075b73;
  font-size: 11px;
  font-weight: 800;
}
.person-chip-meta {
  min-width: 0;
  overflow: hidden;
  color: #5f7278;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person-chip-foot {
  color: #33464c;
  font-size: 11px;
  font-weight: 800;
}
.person-chip-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.travel-yes {
  border: 1px solid #ead08b;
  background: #fff5dc;
  color: #7a5412;
}
.travel-no {
  border: 1px solid #bfe5ce;
  background: #edf7ef;
  color: #236335;
}
.dept-group {
  border: 1px solid #e3eaed;
  border-radius: 8px;
  overflow: hidden;
}
.dept-group-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(420px, 2fr);
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  background: #f7fafb;
  border-bottom: 1px solid #e3eaed;
}
.dept-title strong {
  font-size: 15px;
}
.dept-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.dept-summary span {
  display: grid;
  gap: 1px;
  min-height: 40px;
  align-content: center;
  padding: 4px 7px;
  border: 1px solid #e3eaed;
  border-radius: 6px;
  background: #ffffff;
  color: #5f7278;
  font-size: 12px;
}
.dept-summary strong {
  color: #172124;
  font-size: 15px;
}
.dept-role-block {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 10px;
}
.dept-role-block + .dept-role-block {
  border-top: 1px solid #edf1f2;
}
.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}
.dept-node {
  padding: 8px 10px;
  border-left: 3px solid #087ea4;
  background: #f7fafb;
  margin-bottom: 8px;
}
.dept-meta, .person-meta {
  color: #6a7c82;
  font-size: 12px;
  margin-top: 4px;
}
.person {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f2;
}
.person:last-child { border-bottom: 0; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border-radius: 8px;
  background: #172124;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.toast.show { opacity: 1; }

.performance-page {
  display: grid;
  gap: 14px;
}
.performance-head {
  margin-bottom: 0;
}
.performance-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.performance-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.performance-score-card {
  min-height: 82px;
  display: grid;
  align-content: space-between;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid #cfe0e5;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fafb 100%);
}
.performance-score-card span {
  color: #46565c;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.performance-score-card strong {
  color: #075b73;
  font-size: 24px;
  line-height: 1;
}
.performance-score-card p {
  color: #6a7c82;
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.performance-score-card.calm strong {
  color: #24464f;
}
.performance-score-card.warn {
  border-color: #ead7aa;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}
.performance-score-card.warn strong {
  color: #9a6700;
}
.performance-score-card.saturation {
  border-color: #c7dfd4;
  background: linear-gradient(180deg, #ffffff 0%, #f1faf5 100%);
}
.performance-score-card.saturation strong {
  color: #236335;
}
.department-performance-score-input {
  width: 92px;
  min-width: 92px;
}
.performance-saturation-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.performance-saturation-editor input {
  min-width: 0;
  height: 36px;
}
.performance-saturation-editor button {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
}
.performance-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.performance-page > .performance-head { order: 1; }
.performance-page > .performance-summary-grid { order: 2; }
.performance-page > .performance-layout { order: 3; }
.performance-page > .performance-detail-block { order: 4; }
.performance-page > .performance-current-task-block { order: 5; }
.performance-page > .performance-pending-block { order: 6; }
.performance-page > .performance-past-task-block { order: 7; }
.performance-page > #performanceGroupPanel { order: 8; }
.performance-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e6ea;
  border-radius: 8px;
  background: #fbfcfd;
}
.performance-block-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.performance-block h3 {
  margin: 0;
  font-size: 16px;
}
.performance-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e3eaed;
  border-radius: 8px;
  background: #ffffff;
}
.performance-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
}
.performance-table th,
.performance-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f2;
  white-space: nowrap;
}
.performance-table th {
  color: #5b6b72;
  font-size: 12px;
  background: #f7fafb;
}
.performance-table td {
  color: #172124;
  font-size: 14px;
}
.performance-table tbody tr:last-child td {
  border-bottom: 0;
}
.performance-table td strong {
  font-size: 16px;
  color: #075b73;
}

.travel-amount-link {
  border: 0;
  background: transparent;
  color: #1677ff;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.travel-performance-detail .detail-stats {
  margin-top: 8px;
}
.performance-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.performance-status.done {
  color: #17643a;
  background: #ecf8f0;
}
.performance-status.pending {
  color: #9a6700;
  background: #fff5d6;
}
.performance-year-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.performance-year-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e3eaed;
  border-radius: 8px;
  background: #ffffff;
}
.performance-year-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  color: #172124;
}
.performance-year-card span {
  color: #6a7c82;
  font-size: 12px;
}
.performance-rank-pair {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.performance-rank-pair span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf7fa;
  color: #075b73;
  font-weight: 800;
}
.performance-pending-list {
  display: grid;
  gap: 10px;
}
.performance-pending-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #ead7aa;
  border-radius: 8px;
  background: #ffffff;
}
.performance-pending-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}
.performance-pending-item span {
  color: #6a7c82;
  font-size: 12px;
  line-height: 1.45;
}
.performance-pending-item em {
  justify-self: end;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff5d6;
  color: #8a5a00;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.performance-pending-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.performance-detail-table {
  min-width: 840px;
}
.performance-group-list {
  display: grid;
  gap: 12px;
}
.performance-group-member {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e6ea;
  border-radius: 8px;
  background: #ffffff;
}
.performance-group-member-head {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 3fr);
  gap: 16px;
  align-items: center;
}
.performance-group-member-identity {
  display: grid;
  gap: 4px;
}
.performance-group-member-identity strong {
  color: #075b73;
  font-size: 18px;
}
.performance-group-member-identity span,
.performance-group-member-stats em,
.performance-group-task-title span {
  color: #6a7c82;
  font-size: 12px;
  font-style: normal;
}
.performance-group-member-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.performance-group-member-stats span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f5fafb;
}
.performance-group-member-stats strong {
  color: #172124;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.performance-group-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr)) minmax(170px, auto);
  gap: 10px;
  align-items: end;
  padding-top: 2px;
}
.performance-group-controls label {
  display: grid;
  gap: 5px;
  color: #5b6b72;
  font-size: 12px;
  font-weight: 800;
}
.performance-group-controls input,
.performance-group-task-table input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 9px;
  border: 1px solid #bfd0d6;
  border-radius: 6px;
  background: #ffffff;
  color: #172124;
}
.performance-group-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}
.performance-group-actions button {
  min-height: 36px;
  white-space: nowrap;
}
.performance-group-task-wrap {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}
.performance-group-task-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #34474e;
  font-size: 13px;
  font-weight: 800;
}
.performance-group-task-table {
  min-width: 620px;
}
.performance-group-task-table th,
.performance-group-task-table td {
  padding: 8px 10px;
}
.performance-group-task-table td:first-child {
  white-space: normal;
  min-width: 260px;
}
.performance-group-task-table input {
  display: inline-block;
  width: 84px;
  height: 32px;
  margin-right: 4px;
}
.performance-history-link-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}
.performance-history-link-wrap p {
  margin: 0;
  color: #6a7c82;
  font-size: 13px;
}
.performance-history-link {
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  main { padding: 12px; }
  .panel { padding: 12px; }
  .home-head { grid-template-columns: 1fr; align-items: stretch; }
  .home-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-highlights {
    gap: 6px;
  }
  .home-highlights-head strong {
    display: none;
  }
  .home-highlight-notice {
    width: min(320px, 72vw);
  }
  .home-highlight-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
  }
  .home-highlight-card.praise,
  .home-highlight-card.notice {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 5px 8px;
  }
  .home-highlight-label {
    grid-column: auto;
    max-width: 46vw;
  }
  .home-highlight-card.praise .home-highlight-label,
  .home-highlight-card.notice .home-highlight-label {
    max-width: calc(100vw - 100px);
  }
  .home-highlight-copy {
    grid-column: auto;
    grid-row: auto;
  }
  .home-highlight-actions {
    grid-column: auto;
    grid-row: auto;
  }
  .home-highlight-actions button {
    width: auto;
  }
  .home-highlight-view {
    display: inline;
  }
  .home-highlight-modal {
    padding: 12px;
  }
  .performance-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .performance-summary-grid,
  .performance-year-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .performance-score-card {
    min-height: 74px;
    padding: 9px;
  }
  .performance-score-card strong {
    font-size: 22px;
  }
  .performance-score-card p { font-size: 9px; }
  .performance-layout { grid-template-columns: 1fr; }
  .performance-block {
    padding: 12px;
  }
  .performance-block-head {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
  .performance-pending-item {
    grid-template-columns: 1fr;
  }
  .performance-pending-item em {
    justify-self: start;
    white-space: normal;
  }
  .performance-group-member {
    padding: 11px;
  }
  .performance-group-member-head,
  .performance-group-controls {
    grid-template-columns: 1fr;
  }
  .performance-group-member-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .performance-group-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .performance-group-actions button {
    width: 100%;
  }
  .performance-history-link-wrap {
    align-items: stretch;
    flex-direction: column;
  }
  .performance-history-link {
    width: 100%;
  }
  .status-panel, .grid, .demo-layout, .daily-work-layout, .daily-toolbar, .flow, .detail-stats, .detail-grid, .task-action-grid, .task-create-grid, .daily-admin-grid, .daily-task-head, .participant-edit-row, .member-task-evaluation { grid-template-columns: 1fr; }
  .task-create-head,
  .task-create-actions { align-items: stretch; flex-direction: column; }
  .task-create-hint { text-align: left; }
  .task-create-actions button { width: 100%; }
  .task-detail-modal {
    padding: 12px;
  }
  .detail-info-panel,
  .detail-block {
    padding: 11px;
  }
  .detail-stat {
    padding: 9px 10px;
  }
  .participant-ratios {
    grid-template-columns: 1fr;
  }
  .participant-summary-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .member-task-evaluation button,
  .performance-pending-action button {
    width: 100%;
  }
  .performance-pending-action {
    justify-content: stretch;
  }
  .management-page .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .management-page .section-head .hint { display: none; }
  .management-page .section-head button {
    width: auto;
    min-width: 64px;
  }
  .management-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
  }
  .pill-action {
    min-width: 0;
    width: 100%;
    height: 38px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 13px;
  }
  .member-admin-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    margin-bottom: 10px;
  }
  .segment-button {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 13px;
  }
  .member-task-head {
    align-items: flex-start;
    padding: 10px 12px;
  }
  .member-task-head h3 {
    font-size: 15px;
  }
  .member-task-item {
    padding: 11px 12px;
  }
  .member-task-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .member-task-title .task-link {
    white-space: normal;
    font-size: 15px;
  }
  .member-task-meta {
    gap: 6px;
  }
  .management-filters {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }
  .management-filter-actions {
    padding: 0;
  }
  .management-filter-actions button {
    flex: 1;
  }
  .management-filter-card {
    padding: 8px;
    min-width: 0;
    overflow: hidden;
  }
  .management-filter-card h3 {
    display: none;
  }
  .management-filter-row,
  .management-filter-card.wide .management-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .management-filter-row label {
    min-width: 0;
  }
  .management-filter-row input,
  .management-filter-row select,
  .management-filter-row button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
  }
  .management-filters > .management-filter-card:first-child .management-filter-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .management-filters > .management-filter-card:first-child label {
    overflow: hidden;
  }
  .management-filters > .management-filter-card:first-child input[type="date"] {
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
    height: 34px;
    padding-left: 5px;
    padding-right: 3px;
    font-size: 12px;
  }
  .management-filters > .management-filter-card:first-child input[type="date"]::-webkit-calendar-picker-indicator {
    width: 14px;
    margin-left: 0;
    padding: 0;
  }
  .management-filter-card.wide .management-filter-row label:nth-child(2) {
    grid-column: auto;
  }
  .management-filter-card.wide .management-filter-row button {
    grid-column: 1 / -1;
  }
  .management-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }
  .management-stat {
    min-height: 58px;
    padding: 8px 6px;
    text-align: center;
  }
  .management-stat span {
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.2;
  }
  .management-stat strong {
    font-size: 18px;
  }
  .management-pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }
  .management-pagination label {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .management-page-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .management-page-actions .hint {
    grid-column: 1 / -1;
    text-align: center;
    order: -1;
  }
  .task-table-wrap.management-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
  .management-table {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .management-table thead {
    display: none;
  }
  .management-table tbody {
    display: grid;
    gap: 10px;
  }
  .management-table tr {
    display: block;
    padding: 12px;
    border: 1px solid #d9e6ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(23, 33, 36, .04);
  }
  .management-table td {
    display: none;
  }
  .management-table td::before {
    display: none;
  }
  .management-table td:nth-child(1) { display: none; }
  .management-table td:nth-child(2) {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal;
  }
  .management-title-cell {
    min-width: 0;
    max-width: none;
  }
  .management-title-line {
    display: block;
    align-items: start;
    gap: 8px;
  }
  .management-title-line .task-link {
    display: block;
    overflow: visible;
    white-space: normal;
    line-height: 1.45;
    font-size: 15px;
  }
  .management-title-line .task-title-with-badge,
  .member-task-title .task-title-with-badge {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .management-mobile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 9px;
  }
  .management-mobile-actions .danger-link,
  .management-mobile-actions .operation-detail-button {
    width: auto;
    min-width: 68px;
  }
  .management-mobile-summary {
    display: grid;
    gap: 8px;
    margin-top: 8px;
  }
  .mobile-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: #5f7278;
    font-size: 12px;
    line-height: 1.35;
  }
  .mobile-meta-row > span:not(.status-badge) {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f4f8f9;
  }
  .mobile-action-row {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
  }
  .tag-toggle {
    width: auto;
    min-width: 0;
    height: 28px;
    padding: 0 9px;
    justify-self: start;
    border-radius: 6px;
    font-size: 12px;
  }
  .management-report-table td:nth-child(1) {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .management-report-table td:nth-child(2) {
    display: none;
  }
  .management-report-table td:nth-child(6) {
    display: block;
    margin-top: 8px;
    padding: 0;
    border: 0;
  }
  .management-report-table .management-title-cell {
    min-width: 0;
  }
  .management-report-table .task-link {
    display: block;
    overflow: visible;
    white-space: normal;
    line-height: 1.4;
    font-size: 15px;
  }
  .latest-report-cell {
    min-width: 0;
    max-width: none;
    line-height: 1.5;
  }
  .compact-action {
    width: auto;
    min-width: 0;
    height: 28px;
    padding: 0 8px;
    justify-self: start;
    font-size: 12px;
  }
  .management-special-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .management-special-actions h3 {
    font-size: 16px;
  }
  .task-create-grid .wide-2 { grid-column: auto; }
  .people-admin-stats {
    grid-template-columns: 1fr;
  }
  .admin-settings-head,
  .admin-settings-add {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-settings-add select {
    min-width: 0;
  }
  .admin-setting-item .admin-remove-button {
    width: auto;
  }
  .people-stats-modal {
    padding: 12px;
  }
  .people-stats-layout {
    grid-template-columns: 1fr;
  }
  .people-task-head {
    align-items: start;
    flex-direction: column;
  }
  .dept-group-head,
  .dept-role-block,
  .dept-summary {
    grid-template-columns: 1fr;
  }
  .member-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .person-chip-rich {
    width: 100%;
    min-width: 0;
  }
  .admin-row .person-chip-rich {
    max-width: none;
  }
  button, select, input, textarea { width: 100%; }
  .task-link { width: auto; }
  .section-head, .section-actions { align-items: stretch; flex-direction: column; }
  .management-page .section-head {
    align-items: start;
  }
  .management-title-line .danger-link,
  .management-table .tag-toggle,
  .management-table .compact-action {
    width: auto;
  }
  .home-highlights-head button,
  .home-highlight-actions button {
    width: auto;
  }
  .home-highlight-modal .section-head {
    align-items: center;
    flex-direction: row;
  }
  .home-highlight-modal .section-head button {
    width: auto;
    min-width: 64px;
  }
}

.operation-log-table td {
  vertical-align: top;
}

.operation-log-detail {
  max-width: 420px;
  max-height: 160px;
  overflow: auto;
  margin: 0;
  padding: 8px;
  border-radius: 6px;
  background: #f6f8fa;
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Compact responsive pass: keep the existing information architecture while
   improving scanability on desktop and touch usability on narrow screens. */
@media (min-width: 901px) {
  main { max-width: 1320px; padding: 16px 22px 28px; }
  .topbar { min-height: 62px; padding: 11px 22px; }
  .home-panel, .panel { padding: 14px; }
  .section-head { gap: 12px; margin-bottom: 10px; }
  .analytics-dashboard { margin-top: 14px; padding-top: 14px; gap: 11px; }
  .analytics-card { min-height: 82px; padding: 9px; }
  .analytics-card strong { font-size: 21px; }
  .task-progress-hero { padding: 15px; gap: 10px; }
  .task-progress-hero-head strong { font-size: 34px; }
  .task-key-facts > div { padding: 9px 10px; }
}

@media (max-width: 900px) {
  main { padding: 12px; }
  .topbar { min-height: 58px; padding: 10px 14px; }
  h1 { font-size: 19px; }
  #entryHint { font-size: 12px; }
  .home-panel, .panel { padding: 12px; border-radius: 10px; }
  .home-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
  .home-identity { margin-bottom: 10px; padding: 8px 10px; }
  .metric-table-wrap { overflow-x: auto; }
  .metric-table { min-width: 620px; }
  .analytics-dashboard { margin-top: 12px; padding-top: 12px; gap: 10px; }
  .analytics-head { gap: 8px; }
  .analytics-filter { gap: 6px; }
  .analytics-card { min-height: 80px; }
  .task-progress-hero { padding: 14px; border-radius: 12px; }
  .task-progress-hero-head { align-items: flex-start; }
  .task-progress-hero-head > .task-status-quick-actions { flex-wrap: wrap; }
  .task-progress-meta { gap: 5px 12px; }
  .task-latest-report { align-items: flex-start; flex-wrap: wrap; gap: 4px 8px; }
  .task-latest-report span { flex-basis: 100%; order: 3; white-space: normal; }
  .detail-actions { gap: 6px; }
  .detail-actions button { min-height: 36px; }
  .task-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .analytics-filter { grid-template-columns: 1fr 1fr; }
  .analytics-filter button { grid-column: 1 / -1; }
  .analytics-cards { gap: 6px; }
  .analytics-card { min-height: 76px; padding: 8px; }
  .analytics-card strong { font-size: 20px; }
  .task-progress-hero-head strong { font-size: 30px; }
  .task-progress-track { height: 12px; }
  .task-key-facts { gap: 6px; }
  .task-key-facts > div { padding: 9px; }
  .task-key-facts strong { font-size: 14px; }
  .detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Member log query and export inside daily management. */
.daily-admin-tabs { margin-bottom: 22px; }
.member-log-page { display: grid; gap: 16px; }
.member-log-page h3, .member-log-page h4, .member-log-page p { margin-top: 0; margin-bottom: 0; }
.member-log-page > div:first-child { display: grid; gap: 8px; }
.member-log-filters { display: grid; grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(135px, 1fr)); gap: 14px; align-items: end; }
.member-log-filters label, .member-log-download label { display: grid; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; }
.member-log-filters input, .member-log-filters select, .member-log-download select { width: 100%; min-width: 0; box-sizing: border-box; }
.member-log-keyword { grid-column: span 3; }
.member-log-presets, .member-log-download { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.member-log-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 18px; border-top: 1px solid var(--border, #e2e8f0); }
.member-log-download { align-items: end; }
.member-log-download select { max-width: 230px; }
.member-log-results { display: grid; gap: 14px; min-width: 0; }
.member-log-card { padding: 18px; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; background: var(--surface, #fff); min-width: 0; }
.member-log-card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.member-log-card-head span { font-size: 12px; color: var(--muted, #64748b); }
.member-log-card h4 { margin-bottom: 8px; overflow-wrap: anywhere; }
.member-log-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; margin-top: 14px; }
.member-log-attachments { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .member-log-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-log-filters label:first-child, .member-log-keyword { grid-column: 1 / -1; }
  .member-log-filters button { min-height: 42px; }
  .member-log-download { width: 100%; }
  .member-log-download label { flex: 1; }
  .member-log-card { padding: 14px; }
}

/* Personal work-log history */
.my-log-entry { display: flex; justify-content: flex-end; margin: 12px 0; }
.my-logs-view { display: grid; gap: 14px; }
.my-logs-header, .my-log-month { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.my-logs-header h3, .my-log-range h4 { margin: 0; }
.my-logs-layout { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.my-log-calendar, .my-log-range { min-width: 0; padding: 16px; border: 1px solid #d6e2e6; border-radius: 10px; background: #fff; }
.my-log-calendar { display: grid; gap: 12px; }
.my-log-month label { text-align: center; }
.my-log-month input { max-width: 165px; }
.my-log-weekdays, .my-log-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.my-log-weekdays { color: #64777d; font-size: 12px; }
.my-log-date { height: 48px; padding: 4px 1px; display: grid; align-content: center; gap: 1px; color: #26383e; border: 1px solid transparent; background: #f4f8f9; font-size: 14px; }
.my-log-date small { font-size: 10px; line-height: 12px; }
.my-log-date.has-logs { background: #e4f5f2; color: #09695f; font-weight: 700; }
.my-log-date.is-today { border-color: #087ea4; }
.my-log-date:disabled { opacity: .35; }
.my-log-range { display: grid; gap: 12px; }
.my-log-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.my-log-filters label { flex: 1 1 150px; }
.my-log-filters input { width: 100%; min-width: 0; }
#myLogDayOverlay .daily-report-view-modal { max-height: 88vh; overflow-y: auto; }
@media (max-width: 760px) { .my-logs-layout { grid-template-columns: 1fr; } .my-log-date { height: 44px; } }

/* Server status is visible only after the owner check succeeds. */
.twin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.twin-grid > div { min-width: 0; border: 1px solid #d6e2e6; border-radius: 12px; padding: 16px; background: #fff; }
.twin-grid h3 { margin: 0 0 10px; }
.twin-table { width: 100%; border-collapse: collapse; }
.twin-table th, .twin-table td { padding: 9px 6px; border-bottom: 1px solid #e6eef1; text-align: left; overflow-wrap: anywhere; }
.twin-table th { width: 42%; color: #607184; font-weight: 600; }
.twin-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0; }
.twin-actions .danger { background: #a8293a; color: white; }
.standby-banner { margin: 0; padding: 12px 20px; background: #fff3d0; color: #6d4b00; font-weight: 700; }
@media (max-width: 760px) { .twin-grid { grid-template-columns: 1fr; } .twin-actions button { width: 100%; } }
