:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #233249;
  background: #f5f7fb;
  font-synthesis: none;
  --blue: #165bd8;
  --ink: #152945;
  --muted: #738094;
  --line: #e5eaf1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button {
  border: 1px solid #dce3ed;
  background: white;
  color: #3e5067;
  border-radius: 7px;
  padding: 10px 15px;
  font-weight: 550;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover {
  background: #f0f5fc;
}
button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 3px 6px #165bd81a;
}
button.primary:hover {
  background: #104dbd;
}
button.quiet {
  background: transparent;
  border-color: transparent;
}
button.danger {
  color: #b42318;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: none;
  vertical-align: middle;
}
.top {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 4.5%;
  position: relative;
}
.brandrow {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brands {
  display: flex;
  align-items: center;
  gap: 24px;
}
.niblogo {
  position: relative;
  width: 244px;
  height: 62px;
  overflow: hidden;
  flex: none;
}
.niblogo img {
  position: absolute;
  width: 260px;
  height: 260px;
  max-width: none;
  left: -6px;
  top: -91px;
}
.brandrow .brands {
  gap: 12px;
}
.brandrow .niblogo {
  width: 150px;
  height: 42px;
}
.brandrow .niblogo img {
  width: 165px;
  height: 165px;
  left: -4px;
  top: -58px;
}
.citylogo {
  width: 134px;
  height: 64px;
  object-fit: contain;
  background: #18365b;
  border-radius: 5px;
  padding: 4px;
}
.brandrow .citylogo {
  width: 82px;
  height: 40px;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.branddivider {
  height: 36px;
  width: 1px;
  background: var(--line);
}
.brandrow .branddivider {
  height: 30px;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e7efff;
  color: #2860bb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.account small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
}
.account strong {
  font-size: 12px;
}
.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  height: 78px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}
.nav button {
  height: 78px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 0 2px;
  background: none;
  color: #718095;
  white-space: nowrap;
  font-size: 13px;
}
.nav button.active {
  color: var(--blue);
  border-color: var(--blue);
  font-weight: 650;
}
.nav .icon {
  width: 17px;
}
.workspace {
  max-width: 1560px;
  margin: auto;
  padding: 33px 4.5% 50px;
}
.eyebrow {
  font-size: 10px;
  color: #7b899d;
  letter-spacing: 1.7px;
  font-weight: 650;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.9px;
  font-weight: 650;
  color: var(--ink);
  margin: 0 0 9px;
}
h2 {
  font-size: 17px;
  color: var(--ink);
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0 0 8px;
  color: var(--ink);
}
p {
  line-height: 1.6;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.stat span {
  color: #768497;
  font-size: 12px;
}
.stat strong {
  display: block;
  color: var(--ink);
  font-size: 29px;
  font-weight: 600;
  margin-top: 11px;
}
.stat small {
  display: block;
  font-size: 10px;
  color: #7f8b9a;
  margin-top: 5px;
}
.stat .stat-icon {
  width: 36px;
  height: 36px;
  background: #edf3ff;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--blue);
}
.stat:nth-child(2) .stat-icon {
  background: #fff4e8;
  color: #cf8523;
}
.stat:nth-child(3) .stat-icon {
  background: #e8f7f0;
  color: #25966c;
}
.stat:nth-child(4) .stat-icon {
  background: #f1edff;
  color: #8970c9;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filters select,
.filters input {
  width: auto;
  max-width: 220px;
  background: white;
  font-size: 12px;
  padding: 10px 12px;
}
.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
}
.seg button {
  border: 0;
  background: none;
  padding: 7px 14px;
  font-size: 12px;
  color: #7b8798;
}
.seg button.selected {
  background: white;
  color: var(--blue);
  box-shadow: 0 1px 4px #10234016;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.calendar-toolbar {
  margin-bottom: 12px;
}
.calendar-panel-month {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.calendar-panel-month .panel-head {
  padding: 14px 18px;
}
.calendar-panel-month .calendar-grid-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.calendar-panel-month .weekdays {
  flex: none;
}
.calendar-panel-month .weekdays div {
  padding: 8px 4px;
}
.calendar-panel-month .month-grid {
  flex: 1;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  min-height: 0;
}
.calendar-panel-month .day {
  min-height: 0;
  overflow-y: auto;
}
.calendar-panel-month .legend {
  flex: none;
  padding: 8px 16px;
}
.month-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.month-title button {
  padding: 6px;
  border: none;
}
.month-title h2 {
  margin-right: 12px;
}
.weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weekdays div {
  padding: 13px 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 650;
  color: #8a96a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--line);
}
.day {
  min-height: 111px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px 6px;
  background: white;
}
.day:nth-child(7n) {
  border-right: 0;
}
.day.outside {
  background: #fbfcfe;
  color: #bfc7d2;
}
.day.today {
  background: #f5f9ff;
}
.daynum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  font-size: 11px;
  margin: 0 0 4px 2px;
}
.today .daynum {
  border-radius: 50%;
  background: var(--blue);
  color: white;
}
.event {
  display: block;
  text-align: left;
  font-size: 9px;
  line-height: 1.45;
  font-weight: 550;
  padding: 6px 5px;
  background: #eaf1ff;
  border: 0;
  border-left: 3px solid #427eeb;
  border-radius: 4px;
  width: 100%;
  color: #285797;
  margin: 3px 0;
  overflow: hidden;
}
.event time {
  display: block;
  font-size: 9px;
  font-weight: 650;
  margin-bottom: 2px;
}
.event.done {
  background: #eaf6f1;
  border-color: #40a685;
  color: #367967;
}
.event.cancelled {
  background: #f2f2f2;
  color: #8c939d;
  text-decoration: line-through;
}
.legend {
  display: flex;
  gap: 18px;
  padding: 13px 20px;
  font-size: 10px;
  color: #8090a3;
}
.dot {
  width: 7px;
  height: 7px;
  background: #4280ee;
  display: inline-block;
  border-radius: 50%;
  margin-right: 5px;
}
.dot.green {
  background: #40a685;
}
.side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.side .panel {
  padding: 20px;
}
.side h2 {
  font-size: 14px;
}
.side .subtitle {
  font-size: 11px;
  margin-top: 7px;
}
.next-card {
  margin-top: 19px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.date-square {
  background: #edf3ff;
  color: #2767cd;
  border-radius: 8px;
  width: 43px;
  padding: 7px;
  text-align: center;
  font-size: 9px;
  flex: none;
}
.date-square strong {
  font-size: 18px;
  display: block;
}
.event-row {
  display: flex;
  gap: 12px;
  align-items: start;
}
.event-row h3 {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.event-row p {
  font-size: 10px;
  color: #8190a2;
  margin: 3px 0;
}
.side .link {
  color: var(--blue);
  font-size: 11px;
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
}
.minutes-panel {
  overflow: auto;
}
.minute-excerpt {
  font-size: 11px;
  color: #677c97;
  line-height: 1.55;
  margin-top: 8px;
}
.agenda-tip {
  background: #edf3fd;
  border: 1px solid #dce8fd;
  border-radius: 10px;
  padding: 20px;
}
.agenda-tip h3 {
  font-size: 13px;
  color: #2a5998;
}
.agenda-tip p {
  font-size: 11px;
  color: #6380a7;
  line-height: 1.8;
  margin-bottom: 0;
}
.empty {
  padding: 36px;
  text-align: center;
  color: #8290a1;
  font-size: 13px;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  background: #fafbfd;
  color: #7d8a9b;
  font-size: 10px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  font-weight: 650;
  padding: 14px 18px;
  white-space: nowrap;
}
td {
  padding: 17px 18px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
td strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
td small {
  display: block;
  color: #8a96a6;
  font-size: 10px;
  margin-top: 4px;
}
td .help {
  margin-top: 8px;
  max-width: 420px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #edf2f8;
  color: #697e96;
  white-space: nowrap;
}
.badge.blue {
  background: #eaf1ff;
  color: #3369bb;
}
.badge.green {
  background: #e8f6ed;
  color: #2b8a60;
}
.badge.red {
  background: #fff0ee;
  color: #bd5a4d;
}
.badge.orange {
  background: #fff4e5;
  color: #b7852f;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.column {
  background: #edf1f7;
  border: 1px solid #e4e9f0;
  border-radius: 10px;
  padding: 16px;
  min-height: 360px;
}
.column-title {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.column-title b {
  background: white;
  color: #7b8b9f;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
}
.card {
  padding: 18px;
  background: white;
  border: 1px solid #e3e9f0;
  border-radius: 9px;
  margin-bottom: 12px;
  box-shadow: 0 2px 3px #23395803;
}
.card h3 {
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 8px;
}
.card p {
  font-size: 11px;
  color: #8b97a6;
}
.card .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 13px;
  font-size: 10px;
}
.progress {
  height: 4px;
  background: #edf1f6;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 9px;
}
.progress-fill {
  height: 100%;
  background: #4e88e8;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cards .card {
  margin: 0;
}
.section {
  margin-top: 26px;
}
.section > h2 {
  margin-bottom: 16px;
}
.section > p {
  font-size: 13px;
  color: #718198;
}
.timeline {
  border-left: 1px solid #dce5f1;
  margin-left: 7px;
  padding-left: 24px;
}
.timeline-item {
  position: relative;
  padding-bottom: 22px;
  font-size: 12px;
  line-height: 1.6;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -29px;
  top: 4px;
  width: 8px;
  height: 8px;
  border: 2px solid white;
  background: #6391e3;
  border-radius: 50%;
}
.timeline-item small {
  display: block;
  color: #8996a7;
  font-size: 10px;
}
.timeline-item p {
  margin: 5px 0;
  color: #61738a;
}
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.pad {
  padding: 23px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
label {
  display: block;
  color: #53647a;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 7px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 7px;
  background: white;
  color: #273d57;
  padding: 11px 12px;
  font-size: 13px;
}
textarea {
  min-height: 105px;
  resize: vertical;
  line-height: 1.6;
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--blue);
}
input[type="file"] {
  font-size: 11px;
}
.field {
  margin-bottom: 17px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.full {
  grid-column: 1/-1;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 12px;
}
.checkline label {
  margin: 0;
}
.help {
  font-size: 11px;
  color: #8693a4;
  line-height: 1.6;
  margin-top: 7px;
}
.error {
  color: #b34d40;
  background: #fff1ef;
  padding: 11px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
}
.form-error:empty {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0;
  width: min(690px, 94vw);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 30px 100px #132e4b33;
}
dialog.meeting-modal {
  width: min(980px, 96vw);
}
.participant-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
}
dialog::backdrop {
  background: #172b4770;
  backdrop-filter: blur(3px);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.modal-header button {
  padding: 5px;
  border: 0;
}
.modal-content {
  padding: 24px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-story {
  background: #102d56;
  color: white;
  padding: 8vh 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story .brands {
  flex-wrap: wrap;
}
.login-story .niblogo {
  background: transparent;
  border-radius: 0;
}
.login-story .citylogo {
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.login-story h1 {
  font-size: 44px;
  line-height: 1.2;
  color: white;
  max-width: 430px;
  font-weight: 600;
  letter-spacing: -1.5px;
}
.login-story p {
  color: #b5c8e5;
  font-size: 15px;
  max-width: 420px;
  line-height: 1.9;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form > div {
  width: 360px;
}
.login-form h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.login-form form {
  margin-top: 30px;
}
.login-form .primary {
  width: 100%;
  margin-top: 8px;
}
.footer {
  font-size: 10px;
  color: #9aa7b8;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.loading {
  padding: 100px;
  text-align: center;
  color: #71839b;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #163554;
  color: white;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 5px 30px #10203020;
  z-index: 1000;
  display: none;
}
.back {
  margin-bottom: 18px;
  padding-left: 0;
}
.inline-note {
  padding: 13px 16px;
  background: #f0f5fd;
  border-radius: 7px;
  color: #527298;
  font-size: 12px;
  line-height: 1.7;
}
.metric-chart {
  display: flex;
  align-items: end;
  gap: 22px;
  height: 145px;
  border-bottom: 1px solid var(--line);
  padding: 10px 15px 0;
}
.bar-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: end;
  gap: 6px;
  font-size: 10px;
  color: #7890ad;
}
.bar {
  background: #6b9bef;
  width: 100%;
  max-width: 65px;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}
.mobile-menu {
  display: none;
}
.doc-icon {
  color: #e37965;
  background: #fff0eb;
  padding: 9px;
  border-radius: 7px;
  display: inline-flex;
}
.scrolltext {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.8;
}
.week-view .day {
  min-height: 250px;
}
.date-label {
  font-size: 11px;
  color: #6a7b91;
  margin-bottom: 15px;
}
@media (min-width: 1600px) {
  .day {
    min-height: 140px;
  }
}
@media (max-width: 1200px) {
  .brandrow {
    height: 72px;
  }
  .brandrow .brands {
    gap: 8px;
  }
  .brandrow .niblogo {
    width: 125px;
    height: 36px;
  }
  .brandrow .niblogo img {
    width: 140px;
    height: 140px;
    left: -3px;
    top: -49px;
  }
  .brandrow .citylogo {
    width: 66px;
    height: 34px;
  }
  .brandrow .branddivider {
    height: 26px;
  }
  .account .identity {
    display: none;
  }
  .account {
    gap: 0;
  }
  .account > button {
    padding: 6px;
  }
  .nav {
    gap: 8px;
    height: 72px;
  }
  .nav button {
    gap: 4px;
    height: 72px;
    font-size: 10.5px;
  }
  .nav .icon {
    display: none;
  }
}
@media (max-width: 1100px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    gap: 10px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1020px) {
  .top {
    padding: 0 24px;
  }
  .nav {
    display: none;
    height: auto;
    left: auto;
    padding-bottom: 10px;
    position: static;
    transform: none;
    flex-wrap: wrap;
    gap: 0;
  }
  .nav.open {
    display: flex;
  }
  .nav button {
    width: 33.333%;
    height: 43px;
    justify-content: start;
  }
  .nav .icon {
    display: inline-block;
    width: 17px;
  }
  .mobile-menu {
    display: flex;
    margin-bottom: 10px;
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 720px) {
  .top {
    padding: 0 18px;
  }
  .brandrow {
    height: 78px;
    gap: 10px;
  }
  .brands {
    gap: 12px;
  }
  .niblogo {
    width: 155px;
    height: 47px;
  }
  .niblogo img {
    width: 175px;
    height: 175px;
    top: -58px;
    left: -5px;
  }
  .citylogo {
    width: 90px;
    height: 45px;
  }
  .branddivider {
    display: none;
  }
  .account .identity {
    display: none;
  }
  .account {
    gap: 0;
  }
  .account > button {
    padding: 6px;
  }
  .account .avatar {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }
  .nav {
    display: none;
    height: auto;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 0;
  }
  .nav.open {
    display: flex;
  }
  .nav button {
    width: 50%;
    height: 43px;
    justify-content: start;
  }
  .mobile-menu {
    display: flex;
    margin-bottom: 10px;
    width: 100%;
    justify-content: space-between;
  }
  .workspace {
    padding: 23px 18px;
  }
  .heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 25px;
  }
  .subtitle {
    font-size: 12px;
  }
  .heading > .primary {
    font-size: 0;
    padding: 10px;
  }
  .heading > .primary .icon {
    width: 20px;
    height: 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 14px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat span {
    font-size: 11px;
  }
  .stat small {
    font-size: 9px;
  }
  .stat .stat-icon {
    width: 29px;
    height: 29px;
  }
  .day {
    min-height: 85px;
    padding: 4px 2px;
  }
  .daynum {
    font-size: 10px;
    width: 22px;
    height: 22px;
  }
  .event {
    font-size: 8px;
    padding: 4px 2px;
    border-left-width: 2px;
  }
  .event time {
    font-size: 8px;
  }
  .panel-head {
    padding: 14px 12px;
  }
  .month-title h2 {
    font-size: 14px;
    margin-right: 3px;
  }
  .panel-head .seg button {
    padding: 6px 8px;
    font-size: 10px;
  }
  .month-title {
    gap: 2px;
  }
  .weekdays div {
    font-size: 8px;
  }
  .side {
    display: flex;
  }
  .toolbar {
    gap: 10px;
  }
  .filters {
    gap: 7px;
    width: 100%;
  }
  .filters select,
  .filters input {
    max-width: none;
    flex: 1;
    min-width: 125px;
  }
  .kanban {
    grid-template-columns: 1fr;
  }
  .column {
    min-height: 100px;
  }
  .cards,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .participant-options {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 28px 25px;
  }
  .login-story h1 {
    font-size: 30px;
    margin: 28px 0 0;
  }
  .login-story p {
    font-size: 13px;
  }
  .login-form {
    padding: 35px 25px;
  }
  .login-story .niblogo {
    width: 160px;
  }
  .login-story .citylogo {
    width: 110px;
  }
  .footer {
    gap: 15px;
    font-size: 9px;
  }
  .modal-content {
    padding: 20px;
  }
  .week-view {
    overflow: auto;
  }
  .week-view .weekdays,
  .week-view .month-grid {
    min-width: 650px;
  }
}

/* Shared filter controls across the main tabs. */
.filter-bar {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  gap: 8px;
}
.filter-select { position: relative; min-width: 105px; }
.filter-select summary {
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid #dbe3ee;
  border-radius: 7px;
  font-size: 12px;
  color: #273d57;
}
.filter-select[open] summary { border-color: var(--blue); background: #f5f9ff; }
.filter-count { background: #eaf1ff; color: var(--blue); border-radius: 4px; padding: 1px 5px; }
.filter-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: min(280px, 80vw);
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px #16355426;
}
.filter-options label { display: flex; align-items: center; gap: 9px; padding: 9px; margin: 0; cursor: pointer; overflow-wrap: anywhere; }
.filter-options label:hover { background: #f5f9ff; }
.filter-options input[type="checkbox"] { min-width: 16px; width: 16px; flex: none; }
.filter-bar .checkline { margin: 0; padding: 8px; }
.filter-date { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11px; }
.filter-bar #clear-filters { margin-left: auto; font-size: 12px; }
.filter-select summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (min-width: 1021px) {
  .workspace:has(.calendar-page) { padding-top: 16px; padding-bottom: 20px; }
  .calendar-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
  .calendar-layout .side { display: flex; min-height: 0; }
  .calendar-panel { display: flex; flex-direction: column; min-height: 300px; }
  .calendar-panel > .tablewrap, .calendar-panel > .empty { overflow: auto; flex: 1; min-height: 0; }
  .calendar-panel .panel-head, .calendar-panel .legend { flex: none; }
  .calendar-panel .calendar-grid-wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .calendar-panel .month-grid { flex: 1; min-height: 0; }
  .calendar-panel .week-view .month-grid { grid-template-rows: minmax(0, 1fr); }
  .calendar-panel .day { min-height: 0; overflow-y: auto; padding: 4px; }
  .calendar-panel .daynum { margin-bottom: 0; height: 21px; }
  .calendar-panel .event { padding-top: 3px; padding-bottom: 3px; }
}
@media (max-width: 1020px) {
  .calendar-panel-month { height: 560px; }
}
@media (max-width: 720px) {
  .filter-select { flex: 1; min-width: 110px; }
  .filter-options { width: min(240px, 70vw); }
  .filter-select:nth-child(odd) .filter-options { left: auto; right: 0; }
  .filter-date { flex: 1 1 100%; }
  .filter-bar .checkline input { min-width: auto; flex: none; }
}
