:root {
  --bg: #eef3f7;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --line: #d8e2ea;
  --line-strong: #b6c7d3;
  --text: #173042;
  --muted: #5f7485;
  --accent: #0f6f8f;
  --accent-strong: #114d77;
  --accent-soft: #d6ecf4;
  --danger: #b83b3b;
  --shadow: 0 22px 50px rgba(11, 44, 66, 0.12);
  --radius: 18px;
}

html {
  background:
    radial-gradient(circle at top left, rgba(15, 111, 143, 0.18), transparent 36%),
    linear-gradient(180deg, #f6fafc 0%, #e8eff4 100%);
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: transparent;
  max-width: 100%;
  overflow-x: clip;
}

.app-shell {
  width: min(100%, calc(100vw - 32px));
  max-width: none;
  margin: 0 auto;
  padding: 14px 0 36px;
  box-sizing: border-box;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid rgba(182, 199, 211, 0.52);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-header-main {
  flex: 1 1 520px;
  min-width: 420px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.app-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  text-decoration: none;
  padding: 0;
  line-height: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.app-brand-mark img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.app-brand-copy {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.app-brand-row {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.app-brand-title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app-welcome {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
}

.app-header-link {
  color: var(--accent-strong);
  font-size: 14px;
  white-space: nowrap;
}

.app-header-link-alert {
  color: var(--danger);
  font-weight: 700;
}

.app-mail-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.app-mail-status.is-ok {
  background: #e8f6ee;
  color: #1f4d34;
  border: 1px solid #c6e6d2;
}

.app-mail-status.is-error {
  background: #fbe7ea;
  color: #9f1d2c;
  border: 1px solid #f2c9cf;
}

.app-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
}

.app-view-switch label {
  color: var(--muted);
  font-size: 14px;
}

.app-view-switch select {
  min-width: 108px;
}

.app-kicker {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  white-space: nowrap;
}

.app-search {
  display: grid;
  grid-template-columns: minmax(0, 320px) auto;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: min(100%, 388px);
  max-width: 388px;
}

.app-search input {
  width: 100%;
  min-width: 0;
  max-width: 320px;
  box-sizing: border-box;
  height: 36px;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 10px;
}

.app-search button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 10px;
  white-space: nowrap;
}

.app-header-optional {
  flex: 0 0 auto;
}

.app-card {
  background: var(--panel);
  border: 1px solid rgba(182, 199, 211, 0.52);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-card {
  padding: 14px 16px;
  margin-bottom: 14px;
}

.app-card h2,
.app-card h3 {
  margin: 0 0 10px;
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.app-card-meta {
  color: var(--muted);
  font-size: 15px;
}

.app-grid {
  display: grid;
  gap: 14px;
}

.app-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-grid-fluid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.app-grid-projects {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.app-list,
.app-links {
  display: grid;
  gap: 10px;
}

.app-list-item,
.app-link-group {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(250, 252, 253, 0.88);
}

.meeting-summary-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(250, 252, 253, 0.88);
}

.meeting-summary-item {
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(214, 226, 234, 0.9);
  border-radius: 0;
  background: transparent;
}

.meeting-summary-item:last-child {
  border-bottom: 0;
}

.meeting-summary-item:has(.meeting-summary-delete-toggle:hover),
.meeting-summary-item:has(.meeting-summary-delete-toggle:focus),
.meeting-summary-item:has(.meeting-summary-delete-toggle:focus-visible) {
  background: #fff5f4;
}

.meeting-summary-item:has(.meeting-summary-edit-toggle:hover),
.meeting-summary-item:has(.meeting-summary-edit-toggle:focus),
.meeting-summary-item:has(.meeting-summary-edit-toggle:focus-visible) {
  background: #f3f8ff;
}

.meeting-summary-item.is-new-highlight {
  animation: meetingSummaryPulse 2.4s ease-in-out 1;
}

@keyframes meetingSummaryPulse {
  0% {
    background: rgba(104, 164, 111, 0);
  }
  16% {
    background: rgba(122, 181, 128, 0.22);
  }
  34% {
    background: rgba(122, 181, 128, 0.04);
  }
  52% {
    background: rgba(122, 181, 128, 0.18);
  }
  70% {
    background: rgba(122, 181, 128, 0.03);
  }
  88% {
    background: rgba(122, 181, 128, 0.12);
  }
  100% {
    background: rgba(104, 164, 111, 0);
  }
}

.meeting-summary-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  line-height: 1.4;
}

.meeting-summary-segment {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #244257;
}

.meeting-summary-segment-main {
  color: #3a2412;
  padding-right: 2px;
  padding: 7px 12px;
  border: 1px solid #e1b37d;
  border-radius: 10px;
  background: linear-gradient(180deg, #f9ead9 0%, #f2dcc1 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-size: 16px;
  line-height: 1.4;
}

.meeting-summary-segment-main a {
  display: inline;
  margin: 0;
  color: inherit;
}

.meeting-summary-tag {
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid #d8e4ec;
  background: #f4f8fb;
  color: #32546c;
  font-size: 13px;
  line-height: 1.35;
}

.meeting-summary-tag-kind {
  background: #eef7ff;
  border-color: #cfe3f4;
  color: #0f5f87;
}

.meeting-summary-tag-people {
  background: #f7f4ff;
  border-color: #dfd7f3;
  color: #635389;
}

.meeting-summary-tag-place {
  background: #eef7f2;
  border-color: #d4e8db;
  color: #2f6a48;
}

.meeting-summary-tag-time {
  background: #fff5e8;
  border-color: #eed6b6;
  color: #8a5615;
  font-size: 14px;
  font-weight: 700;
}

.meeting-summary-tag-meta {
  background: #f3f5f7;
  border-color: #dde3e8;
  color: #536473;
}

.meeting-summary-tag-countdown {
  background: #eaf7fb;
  border-color: #c7e5ef;
}

.meeting-summary-tag-countdown.is-started {
  background: #fdeeee;
  border-color: #f3c9c9;
}

.meeting-summary-tag-detail {
  background: #fafbfc;
  border-color: #e2e8ee;
  color: #5d6d7b;
}

.meeting-summary-countdown {
  color: #0f6f8f;
  font-weight: 700;
}

.meeting-summary-countdown.is-started,
.meeting-summary-tag-countdown.is-started .meeting-summary-countdown {
  color: #b14949;
}

.meeting-summary-segment-action {
  margin-left: auto;
}

.meeting-summary-segment-action + .meeting-summary-segment-action {
  margin-left: -2px;
}

.meeting-summary-action-pill {
  display: grid;
  place-items: center;
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1;
  justify-content: center;
}

.meeting-summary-delete-toggle {
  display: grid;
  place-items: center;
  position: relative;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(184, 59, 59, 0.12);
  color: #a02e2e;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  font-size: 0;
  text-decoration: none;
}

.meeting-summary-delete-toggle::before {
  content: "\00D7";
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 16px;
  line-height: 1;
  font-family: "Microsoft YaHei", SimHei, sans-serif;
  transform: translate(-50%, -50%);
}

.meeting-summary-delete-toggle:hover,
.meeting-summary-delete-toggle:focus {
  text-decoration: none;
  background: rgba(184, 59, 59, 0.16);
  color: #962727;
}

.meeting-summary-edit-toggle {
  display: grid;
  place-items: center;
  position: relative;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(15, 111, 143, 0.12);
  color: #0f6f8f;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  font-size: 0;
  text-decoration: none;
}

.meeting-summary-edit-toggle::before {
  content: "\270E";
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 14px;
  line-height: 1;
  font-family: "Microsoft YaHei", SimHei, sans-serif;
  transform: translate(-50%, -50%);
}

.meeting-summary-edit-toggle:hover,
.meeting-summary-edit-toggle:focus {
  text-decoration: none;
  background: rgba(15, 111, 143, 0.18);
  color: #0c607a;
}

.meeting-booking-wrap {
  padding-bottom: 56px;
  width: 100%;
  min-width: 0;
}

.meeting-booking-shell {
  display: grid;
  gap: 14px;
  width: min(100%, 920px);
  margin: 0 auto;
  min-width: 0;
}

.meeting-booking-title {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.meeting-booking-form {
  display: grid;
  gap: 14px;
}

.meeting-booking-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: visible;
  background: #fff;
}

.meeting-booking-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  border-bottom: 1px solid rgba(214, 226, 234, 0.9);
  overflow: visible;
}

.meeting-booking-row:last-child {
  border-bottom: 0;
}

.meeting-booking-row:first-child .meeting-booking-label {
  border-top-left-radius: 16px;
}

.meeting-booking-row:first-child .meeting-booking-field {
  border-top-right-radius: 16px;
}

.meeting-booking-row:last-child .meeting-booking-label {
  border-bottom-left-radius: 16px;
}

.meeting-booking-row:last-child .meeting-booking-field {
  border-bottom-right-radius: 16px;
}

.meeting-booking-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fbfd 0%, #f2f7fa 100%);
  color: #41596b;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.meeting-booking-field {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  align-content: center;
  overflow: visible;
}

.meeting-booking-field input,
.meeting-booking-field textarea,
.meeting-booking-field select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.meeting-booking-field textarea {
  min-height: 92px;
  resize: vertical;
}

.meeting-booking-field--compact {
  max-width: 260px;
}

.meeting-booking-field--duration {
  max-width: 120px;
}

.meeting-compact-select {
  width: auto !important;
  min-width: 0;
  max-width: 100%;
  justify-self: start;
}

.meeting-wheel-select {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.meeting-wheel-number {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.meeting-wheel-select.is-wheel-ready,
.meeting-wheel-select:hover,
.meeting-wheel-number.is-wheel-ready,
.meeting-wheel-number:hover {
  border-color: #0f6f8f;
  background: #eef7fb;
  box-shadow: 0 0 0 2px rgba(15, 111, 143, 0.12);
}

.meeting-time-inline input.meeting-wheel-number.is-wheel-ready,
.meeting-time-inline input.meeting-wheel-number:hover {
  border-color: #0f6f8f;
  background: #eef7fb;
  box-shadow: 0 0 0 2px rgba(15, 111, 143, 0.12);
}

.meeting-time-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meeting-date-quick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.meeting-date-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meeting-booking-field--date {
  max-width: none;
}

.meeting-date-input-row {
  width: 100%;
}

.meeting-date-input-row input[type="date"] {
  width: auto;
  min-width: 150px;
  max-width: 180px;
}

.meeting-time-inline select,
.meeting-time-inline input[type="number"] {
  width: auto;
  min-width: 78px;
}

.meeting-time-inline input[name="lasttime"] {
  min-width: 64px;
  width: 64px;
}

.meeting-time-sep {
  color: #5f7485;
  font-weight: 700;
}

.meeting-inline-note {
  color: #6a8091;
  font-size: 13px;
}

.meeting-booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.meeting-submit-button {
  min-width: 132px;
}

.meeting-submit-button:disabled {
  background: #d7dfe6;
  color: #7f8d99;
  border-color: #d7dfe6;
  cursor: not-allowed;
  filter: none;
}

.meeting-conflict-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #d8e2ea;
  background: #f8fbfd;
  color: #5f7485;
}

.meeting-conflict-status.is-ok {
  background: #edf7f0;
  border-color: #d4e8da;
  color: #2b6a42;
}

.meeting-conflict-status.is-error {
  background: #fdf0ef;
  border-color: #efd4d2;
  color: #9a3535;
}

.meeting-conflict-status.is-pending {
  background: #f8fbfd;
  border-color: #d8e2ea;
  color: #5f7485;
}

.meeting-submit-feedback {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}

.meeting-submit-feedback.is-success {
  background: #e8f6ee;
  border-color: #c6e6d2;
  color: #1f6a3d;
}

.meeting-person-picker {
  position: relative;
  display: grid;
  gap: 8px;
}

.meeting-person-picker--single {
  width: min(100%, 180px);
}

.meeting-person-picker--multi .meeting-person-input-row {
  width: min(100%, 180px);
}

.meeting-person-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.meeting-person-input-row .meeting-person-search {
  flex: 1 1 auto;
}

.meeting-person-search.is-selected {
  background: #f8fbfd;
}

.meeting-person-clear,
.meeting-person-clear-search {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #c7d7e1;
  border-radius: 8px;
  background: #f8fbfd;
  color: #173042;
  font-size: 13px;
  line-height: 1;
}

.meeting-person-selected-meta {
  color: #5f7485;
  font-size: 13px;
  line-height: 1.55;
}

.meeting-person-selected-meta.is-empty {
  color: #8ea0ae;
}

.meeting-person-results[hidden] {
  display: none;
}

.meeting-person-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 80;
  width: min(320px, calc(100vw - 72px));
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #d8e2ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(11, 44, 66, 0.16);
  display: grid;
  gap: 6px;
}

.meeting-person-result-item {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #f8fbfd;
  color: #173042;
  text-align: left;
  padding: 9px 10px;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
}

.meeting-person-result-item:hover {
  background: #eef6ff;
}

.meeting-person-result-item.is-active {
  background: #e3f2fb;
  box-shadow: inset 0 0 0 1px #9cc5db;
}

.meeting-person-result-name {
  font-weight: 700;
}

.meeting-person-result-meta,
.meeting-person-results-state {
  color: #5f7485;
  font-size: 13px;
  line-height: 1.5;
}

.meeting-person-result-meta {
  flex: 0 0 auto;
  font-size: 12px;
  white-space: nowrap;
}

.meeting-person-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.meeting-person-empty {
  color: #8ea0ae;
  font-size: 13px;
  line-height: 1.5;
}

.meeting-person-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d8e2ea;
  border-radius: 9px;
  background: #f8fbfd;
  color: #173042;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.meeting-person-chip span {
  color: #6a8091;
  font-size: 12px;
}

.meeting-person-chip.is-legacy {
  border-style: dashed;
}

.meeting-date-quick {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f8fbfd;
  color: #173042;
  font-size: 13px;
  line-height: 1;
  border: 1px solid #c7d7e1;
}

.meeting-date-quick.is-active {
  background: linear-gradient(180deg, #1b88ab 0%, #0f6f8f 100%);
  color: #fff;
  border-color: transparent;
}

.app-link-group h4:not(.default-link-title):not(.project-column-title):not(.mission-section-title) {
  margin: 0 0 8px;
  font-size: 15px;
}

.default-links-card {
  padding-top: 12px;
}

.default-link-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.default-link-column {
  padding: 0;
  overflow: hidden;
}

.default-link-public-row {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
}

.default-link-public-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 12px 12px;
}

.default-link-public-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.default-link-title {
  margin: 0;
  padding: 7px 12px;
  min-height: 38px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #d7eaf5 0%, #c7deed 100%);
  text-align: center;
  font-size: 15px !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.default-link-items,
.default-link-public-items {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1px 18px;
  padding: 5px 12px 6px;
}

.default-link-items a,
.default-link-public-items a {
  margin: 0 !important;
  white-space: nowrap;
}

.default-link-public-row {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: stretch;
}

.default-link-public-title {
  color: inherit;
}

.default-link-public-body {
  padding: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.default-link-public-items {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .default-link-public-row {
    grid-template-columns: 1fr;
  }
}

.project-column {
  padding: 0;
  overflow: hidden;
}

.project-column-title {
  margin: 0;
  padding: 7px 12px;
  min-height: 38px;
  box-sizing: border-box;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #0d4f6d;
  background: linear-gradient(180deg, #dceef7 0%, #cae2ef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-column-managed .project-column-title {
  color: #4f4212;
  background: linear-gradient(180deg, #efe5c8 0%, #e5d7ae 100%);
}

.project-column-joined .project-column-title {
  color: #274b3f;
  background: linear-gradient(180deg, #d9ebe2 0%, #c8dfd3 100%);
}

.project-column-other .project-column-title {
  color: #3f4c62;
  background: linear-gradient(180deg, #e3e9f2 0%, #d3dce9 100%);
}

.project-name-list {
  display: grid;
  gap: 2px;
  padding: 6px 12px 7px;
}

.project-name-item {
  padding: 2px 0;
  border-bottom: 1px solid rgba(182, 199, 211, 0.45);
  line-height: 1.45;
}

.project-state-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.project-state-tags--inline {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
  margin-right: 6px;
}

.project-state-tags--inline .project-state-tag {
  min-height: 18px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 400;
}

.project-state-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.project-state-tag.is-private {
  background: #fbe4e0;
  border-color: #e7b2aa;
  color: #9a3324;
}

.project-state-tag.is-invisible {
  background: #ece8ff;
  border-color: #c8bbf0;
  color: #5b499a;
}

.project-state-tag.is-shared {
  background: #e1f3ed;
  border-color: #add7c9;
  color: #236e5a;
}

.project-unread-count {
  white-space: nowrap;
  color: #666;
  font-size: 13px;
}

.project-unread-count-value {
  color: #c62828;
  font-weight: 700;
}

.project-name-item:last-child {
  border-bottom: 0;
}

.app-link-group a {
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 6px;
}

.app-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
}

.app-toolbar-compact {
  align-items: center;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14px;
}

.mission-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.mission-stack {
  display: grid;
  gap: 10px;
  align-content: start;
}

.mission-section-title {
  margin: 0;
  padding: 8px 10px;
  text-align: center;
  font-size: 15px;
}

.mission-section-title.pending {
  background: #ffe1e1;
}

.mission-section-title.own {
  background: #dcecff;
}

.mission-section-title.assigned {
  background: #dfe8ff;
}

.mission-section-title.managed {
  background: #e0f5e3;
}

.mission-panel {
  padding: 0;
  overflow: hidden;
}

.mission-panel-body {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.mission-item {
  border: 1px solid rgba(182, 199, 211, 0.85);
  border-radius: 10px;
  background: rgba(250, 252, 253, 0.92);
  padding: 8px 10px;
  box-shadow: 0 8px 18px rgba(11, 44, 66, 0.08);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.mission-item:hover {
  border-color: rgba(155, 178, 195, 0.95);
  box-shadow: 0 16px 28px rgba(11, 44, 66, 0.16);
  transform: translateY(-1px);
}

.mission-item.is-pending {
  background: #fff5ea;
}

.mission-item.is-own {
  background: #eef6ff;
}

.mission-item.is-assigned {
  background: #f4f6fb;
}

.mission-item.is-managed {
  background: #eefbf2;
}

.mission-item-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  grid-template-areas:
    "primary aside"
    "statuses statuses"
    "actions actions";
  gap: 7px 12px;
  align-items: start;
}

.mission-item-primary {
  grid-area: primary;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mission-item-title {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.35;
}

.mission-priority {
  color: #c0392b;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  flex: 0 0 auto;
}

.mission-item-title-text {
  min-width: 0;
  font-size: 17px;
  line-height: 1.35;
}

.mission-item-title-text a {
  color: var(--text);
}

.mission-item-title-text > a.mtitle,
.mission-item-title-text > a.mtitle:link,
.mission-item-title-text > a.mtitle:visited,
.mission-item-title-text > a.mtitle:hover {
  font-size: inherit !important;
  line-height: inherit;
  font-weight: inherit;
}

.mission-item-title-text a:hover {
  color: var(--accent-strong);
}

.mission-item-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.mission-item-aside {
  grid-area: aside;
  display: grid;
  gap: 6px;
  align-content: start;
}

.mission-item-side-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.mission-icon-link,
.mission-priority-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(15, 111, 143, 0.12);
  color: #0f6f8f;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  font-size: 0;
  text-decoration: none;
}

.mission-priority-toggle {
  font-size: 12px;
}

.mission-item .mission-icon-link,
.mission-item .mission-priority-toggle {
  display: inline-flex;
  margin-right: 0;
  margin-bottom: 0;
}

.mission-icon-link:hover,
.mission-priority-toggle:hover {
  text-decoration: none;
}

.mission-delete-toggle {
  background: rgba(184, 59, 59, 0.12);
  color: #a02e2e;
}

.mission-delete-toggle::before {
  content: "\00D7";
  display: block;
  font-size: 16px;
  line-height: 1;
  transform: translateY(-0.5px);
}

.mission-path,
.mission-workers,
.mission-statuses,
.mission-quick-note {
  margin-top: 0;
}

.mission-path,
.mission-workers,
.mission-quick-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.mission-workers {
  text-align: right;
  color: var(--text);
}

.mission-item-status-row {
  grid-area: statuses;
  padding-top: 6px;
  border-top: 1px solid rgba(182, 199, 211, 0.55);
}

.mission-statuses {
  font-size: 13px;
  line-height: 1.4;
}

.mission-statuses > div {
  margin-top: 2px;
}

.mission-statuses > :first-child {
  margin-top: 0;
}

.mission-actions {
  margin-top: 0;
}

.mission-item-action-row {
  grid-area: actions;
  padding-top: 6px;
  border-top: 1px solid rgba(182, 199, 211, 0.55);
}

.mission-progress-actions[hidden] {
  display: none !important;
}

.mission-item.is-pending .mission-progress-actions,
.mission-item.is-submitted .mission-progress-actions {
  display: none;
}

.mission-confirm-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.mission-confirm-form input[type="text"],
.mission-confirm-form textarea.mission-progress-input {
  min-width: 0;
  width: 100%;
  padding: 6px 8px;
}

.mission-confirm-form textarea.mission-progress-input {
  min-height: 38px;
  line-height: 1.4;
  resize: none;
  overflow-y: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
  field-sizing: content;
  max-height: 7.2em;
  scrollbar-gutter: stable;
}

.mission-confirm-form textarea.mission-progress-input.is-scrollable {
  overflow-y: scroll !important;
}

.mission-deadline-form,
.mission-progress-form {
  display: grid;
  align-items: center;
  gap: 6px;
}

.mission-progress-form {
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  width: 100%;
}

.mission-progress-form input[type="text"],
.mission-progress-form textarea.mission-progress-input {
  min-width: 0;
  width: 100%;
  padding: 6px 8px;
}

.mission-progress-form textarea.mission-progress-input {
  min-height: 38px;
  line-height: 1.4;
  resize: none;
  overflow-y: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
  field-sizing: content;
  max-height: 7.2em;
  scrollbar-gutter: stable;
}

.mission-progress-form textarea.mission-progress-input.is-scrollable {
  overflow-y: scroll !important;
}

@supports (field-sizing: content) {
  .mission-confirm-form textarea.mission-progress-input,
  .mission-progress-form textarea.mission-progress-input {
    field-sizing: content;
  }
}

.mission-progress-form button,
.mission-confirm-form button {
  width: 48px;
  min-width: 48px;
  padding: 6px 0;
  border-radius: 8px;
}

.mission-deadline-form {
  width: auto;
  flex: 0 0 auto;
}

.mission-deadline-input {
  width: 132px;
  min-width: 132px;
  padding: 5px 7px;
  font-size: 13px;
}

.mission-deadline-input.is-overdue {
  color: #8b0000;
}

.mission-remind-link {
  margin-right: 0;
}

.app-hidden-frame {
  width: 0;
  height: 0;
  border: 0;
  display: block;
}

.search-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-section {
  scroll-margin-top: 20px;
}

.search-result-row {
  display: grid;
  gap: 6px;
}

.search-summary {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.search-hit {
  color: #c0392b;
  font-weight: 700;
}

.app-footer {
  margin-top: 22px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 9px !important;
}

.app-footer,
.app-footer div,
.app-footer a {
  font-size: inherit !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.52), transparent 55%),
    linear-gradient(0deg, rgba(15, 111, 143, 0.04), rgba(15, 111, 143, 0.04));
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

img {
  max-width: 100%;
}

table {
  width: min(100%, calc(100vw - 32px));
  max-width: 100%;
  margin: 12px auto;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
}

table[align="center"] {
  margin-left: auto;
  margin-right: auto;
}

table[frame="box"],
.mygraytable,
.mysolidtable {
  border-collapse: collapse;
  border-radius: 0;
  overflow: visible;
  background: #fff;
  box-shadow: none;
}

td,
th {
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 8px 10px;
  vertical-align: top;
  background: transparent;
}

th {
  background: rgba(243, 247, 250, 0.92);
  font-weight: 700;
}

input,
select,
textarea,
button {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  box-sizing: border-box;
  font: inherit;
}

input[type="submit"],
input[type="button"],
button {
  background: linear-gradient(180deg, #1b88ab 0%, #0f6f8f 100%);
  color: #fff;
  border-color: transparent;
  cursor: pointer;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
  filter: brightness(1.03);
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  width: calc(100vw - 32px);
  margin: 18px auto;
}

font.r1,
.r1 {
  color: var(--danger) !important;
}

font.f1,
font.f2,
.f1,
.f2,
.b1 {
  color: var(--accent-strong) !important;
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .app-header {
    align-items: flex-start;
  }

  .app-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .app-header-tools {
    justify-content: flex-end;
  }

  .app-grid-two {
    grid-template-columns: 1fr;
  }

  .app-grid-fluid,
  .app-grid-projects {
    grid-template-columns: 1fr;
  }

  .mission-split {
    grid-template-columns: 1fr;
  }

  table,
  table[width] {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }

  td,
  th {
    display: table-cell !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box;
  }

  iframe {
    max-width: 100%;
  }
}

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

@media (max-width: 1360px) {
  .app-header-optional-wide {
    display: none;
  }
}

@media (max-width: 1120px) {
  .app-header-optional-mid {
    display: none;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100%, calc(100vw - 12px));
    padding: 8px 0 18px;
  }

  .app-header {
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 10px;
  }

  .app-card {
    padding: 9px 10px;
    margin-bottom: 8px;
  }

  .app-card h2,
  .app-card h3 {
    margin-bottom: 6px;
  }

  .app-card-header {
    gap: 6px;
    margin-bottom: 6px;
  }

  .app-card-meta {
    font-size: 13px;
  }

  .app-grid {
    gap: 8px;
  }

  .app-list,
  .app-links {
    gap: 6px;
  }

  .app-footer {
    font-size: 10px !important;
  }

  .app-list-item,
  .app-link-group {
    padding: 7px 8px;
    border-radius: 12px;
  }

  .app-toolbar {
    gap: 6px;
    margin-top: 6px;
  }

  .default-links-card {
    padding-top: 8px;
  }

  .default-link-grid {
    gap: 8px;
  }

  .default-link-column,
  .default-link-public-row,
  .project-column,
  .mission-panel {
    padding: 0;
    overflow: hidden;
  }

  .default-link-public-row {
    margin-top: 8px;
  }

  .default-link-title,
  .project-column-title,
  .mission-section-title {
    margin: 0;
    padding: 6px 10px;
    min-height: 34px;
    font-size: 14px !important;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .default-link-items,
  .default-link-public-items {
    gap: 1px 12px;
    padding: 4px 10px 5px;
  }

  .project-name-list {
    gap: 1px;
    padding: 4px 10px 5px;
  }

  .project-name-item {
    padding: 1px 0;
  }

  .mission-panel-body {
    gap: 6px;
    padding: 6px;
  }

  .app-brand-row {
    gap: 8px 10px;
  }

  .app-header-actions {
    gap: 6px 10px;
    flex: 0 1 auto;
    white-space: nowrap;
  }

  .default-link-grid {
    grid-template-columns: 1fr;
  }

  .mission-item-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "primary"
      "aside"
      "statuses"
      "actions";
  }

  .mission-item-side-top {
    justify-content: flex-start;
  }

  .mission-workers {
    text-align: left;
  }

  .meeting-booking-row {
    grid-template-columns: 1fr;
  }

  .meeting-booking-row:first-child .meeting-booking-label {
    border-top-right-radius: 16px;
  }

  .meeting-booking-row:first-child .meeting-booking-field {
    border-top-right-radius: 0;
  }

  .meeting-booking-row:last-child .meeting-booking-label {
    border-bottom-left-radius: 0;
  }

  .meeting-booking-row:last-child .meeting-booking-field {
    border-bottom-left-radius: 16px;
  }

  .meeting-booking-label {
    justify-content: flex-start;
    text-align: left;
    padding-bottom: 8px;
  }

  .meeting-booking-field--compact {
    max-width: none;
  }

  .meeting-person-results {
    width: min(100%, calc(100vw - 56px));
  }

  .meeting-page-stack > .app-card,
  .meeting-page-stack > .meeting-booking-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .meeting-booking-shell {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 1020px) {
  .app-header {
    display: block;
  }

  .app-header-main {
    min-width: 0;
  }

  .app-header-tools {
    width: 100%;
    margin-top: 10px;
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .app-brand-title {
    font-size: 18px;
  }

  .app-welcome {
    font-size: 14px;
  }

  .app-search {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .meeting-summary-segment-action {
    margin-left: 0;
  }

  .mission-progress-form,
  .mission-confirm-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-progress-form input[type="text"],
  .mission-progress-form textarea.mission-progress-input,
  .mission-confirm-form input[type="text"],
  .mission-confirm-form textarea.mission-progress-input {
    grid-column: 1 / -1;
  }

  .mission-progress-form button,
  .mission-confirm-form button {
    width: 100%;
    min-width: 0;
  }
}
