.cat-page {
  max-width: 1450px;
}
.cat-panel {
  overflow: hidden;
}
.cat-panel-title,
.cat-panel-title > div,
.cat-tools,
.cat-ident,
.cat-choice-info,
.cat-searchline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-panel-title,
.cat-tools {
  justify-content: space-between;
}
.cat-panel-title {
  padding: 19px 21px 14px;
}
.cat-panel-title h2 {
  color: #213a30;
  font-size: 18px;
  letter-spacing: -0.025em;
}
.cat-symbol {
  background: #e4f1e8;
  color: #31705a;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.cat-symbol.shape {
  background: #e5eeed;
  color: #316a68;
}
.cat-total {
  font:
    600 11px/1.3 Consolas,
    monospace;
  color: #4f6857;
  background: #eef4ee;
  padding: 3px 7px;
  border-radius: 5px;
}
.cat-ref {
  font-size: 11px;
  color: #61746b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-tools {
  padding: 0 20px 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.cat-tools .search input[type="search"] {
  width: 167px;
}
.cat-scroll {
  overflow-x: auto;
}
.cat-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
.cat-table th,
.cat-table td {
  padding: 11px 14px;
  border-top: 1px solid #dfe7e0;
}
.cat-table th {
  background: #f3f7f2;
  color: #62746a;
  font-size: 11px;
  font-weight: 630;
}
.cat-table th:first-child,
.cat-table td:first-child {
  padding-left: 21px;
}
.cat-table th:last-child,
.cat-table td:last-child {
  text-align: right;
  padding-right: 19px;
}
.cat-table tbody tr:hover {
  background: #f7faf6;
}
.cat-ident {
  gap: 10px;
}
.cat-ident small,
.cat-task small {
  display: block;
  color: #677a6e;
  font-size: 11px;
  line-height: 1.55;
  margin-top: 3px;
}
.cat-task code,
.cat-id {
  font-size: 12px;
}
.cat-id {
  border: 0;
  background: none;
  color: #1a4835;
  padding: 3px 0;
  font-weight: 650;
  text-align: left;
}
button.cat-id:hover,
.cat-text:hover {
  text-decoration: underline;
}
.cat-rowactions {
  white-space: nowrap;
}
.cat-rowactions .btn {
  margin-right: 6px;
}
.cat-text {
  border: 0;
  background: transparent;
  color: #53685b;
  padding: 6px;
  font-size: 12px;
}
.cat-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e5f2e9;
  color: #28654d;
  border-radius: 22px;
  padding: 4px 9px;
  font-size: 11px;
  white-space: nowrap;
}
.cat-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.cat-status.sleep {
  background: #eef1ef;
  color: #617166;
}
.cat-people-table {
  min-width: 600px;
}
.cat-people-table th {
  white-space: nowrap;
}
.cat-people-table td {
  overflow-wrap: anywhere;
}
.cat-person-memo {
  max-width: 220px;
  white-space: pre-line;
}
.cat-photo-cell {
  width: 86px;
}
.cat-muted {
  color: #65796e;
}
.cat-photo-thumb {
  position: relative;
  display: block;
  width: 52px;
  height: 44px;
  padding: 0;
  border: 1px solid #d8e6dc;
  border-radius: 7px;
  background: #edf3ee;
}
.cat-photo-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}
.cat-photo-thumb span {
  position: absolute;
  right: 2px;
  bottom: 2px;
  min-width: 15px;
  padding: 1px 3px;
  border-radius: 4px;
  background: #173a2e;
  color: #fff;
  line-height: 1.2;
  font-size: 11px;
}
.cat-gallery-modal {
  width: min(760px, 100%);
}
.cat-photo-view {
  margin: 0;
  text-align: center;
}
.cat-photo-view img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: min(65vh, 620px);
  object-fit: contain;
}
.cat-photo-view figcaption {
  margin-top: 8px;
  color: #586f62;
  font-size: 12px;
}
.cat-edit-photos {
  margin-top: 14px;
}
[data-cat-edit-photos] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.cat-edit-photo {
  width: 82px;
  text-align: center;
}
.cat-edit-photo img {
  display: block;
  width: 100%;
  height: 65px;
  object-fit: cover;
  border: 1px solid #e1e9e1;
  border-radius: 7px;
}
.cat-empty {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #66786c;
}
.cat-empty b {
  color: #364c3f;
  font-size: 15px;
}
.cat-empty span {
  font-size: 12px;
}
.cat-person-modal,
.cat-scene-modal,
.cat-pick-modal {
  display: flex;
  flex-direction: column;
  max-height: min(91vh, 880px);
}
.cat-scene-modal {
  width: min(660px, 100%);
}
.cat-pick-modal {
  width: min(475px, 100%);
}
.cat-person-modal {
  width: min(592px, 100%);
}
.cat-person-modal .proto-body,
.cat-scene-modal .proto-body,
.cat-pick-modal .proto-body {
  overflow: auto;
  min-height: 0;
  padding: 14px 22px 17px;
}
.cat-person-modal .proto-dialog-head,
.cat-scene-modal .proto-dialog-head,
.cat-pick-modal .proto-dialog-head,
.cat-person-modal .proto-actions,
.cat-scene-modal .proto-actions,
.cat-pick-modal .proto-actions {
  flex: none;
}
.cat-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 15px;
}
.cat-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-field label {
  color: #365245;
  font-size: 12px;
  font-weight: 650;
}
.cat-field label em {
  color: #ac563c;
  font-style: normal;
}
.cat-field small {
  font:
    10px/1.4 Consolas,
    monospace;
  color: #6a7d70;
}
.cat-field input,
.cat-field select,
.cat-field textarea {
  width: 100%;
  border: 1px solid #cad8cd;
  background: white;
  border-radius: 6px;
  color: #243e31;
  padding: 6px 9px;
  line-height: 1.35;
  min-height: 33px;
  margin-top: 2px;
  font-family: inherit;
  font-size: 12px;
}
.cat-field [aria-invalid="true"] {
  border-color: #bd5949;
}
.cat-field.wide {
  grid-column: 1/-1;
}
.cat-field textarea {
  resize: vertical;
  min-height: 47px;
}
.cat-error {
  font-size: 11px;
  color: #9c4937;
  line-height: 1.5;
}
.cat-scene-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.cat-scene-form fieldset + fieldset {
  margin-top: 16px;
}
.cat-scene-form legend {
  width: 100%;
  margin-bottom: 9px;
  padding: 0 0 5px;
  border-bottom: 1px solid #e0e8df;
  color: #205640;
  font-size: 12px;
  font-weight: 650;
}
@media (min-width: 600px) {
  .cat-scene-form .cat-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    column-gap: 7px;
  }
  .cat-scene-form .cat-field :is(input, select, textarea, .cat-error) {
    grid-column: 1/-1;
  }
}
.cat-choice-info {
  border: 1px solid #e0e8df;
  border-radius: 8px;
  padding: 11px 13px;
  margin-bottom: 12px;
}
.cat-searchline {
  border: 1px solid #c9d9cc;
  border-radius: 7px;
  padding: 0 9px;
  gap: 3px;
  color: #607769;
  margin-bottom: 10px;
}
.cat-searchline .cat-pick-search {
  outline-offset: 0;
  padding: 7px;
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.cat-options {
  max-height: 315px;
  overflow: auto;
  display: grid;
  gap: 5px;
}
.cat-pick-notice {
  color: #627667;
  font-size: 12px;
  margin: 0 0 8px;
}
.cat-option {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e3e9e3;
  border-radius: 7px;
  background: white;
  padding: 8px 9px;
  text-align: left;
}
.cat-option:hover,
.cat-option.chosen {
  background: #eef7ed;
  border-color: #95bca2;
}
.cat-option > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.cat-option b,
.cat-option small {
  display: block;
  overflow-wrap: anywhere;
}
.cat-option b {
  font-size: 13px;
  color: #224735;
}
.cat-option small {
  font-size: 10px;
  color: #627667;
  margin-top: 3px;
}
.cat-option i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #17653f;
}
.cat-option .cat-symbol {
  height: 28px;
  width: 28px;
}
.cat-person-option > :is(.cat-photo-thumb, .cat-symbol) {
  flex: 0 0 52px;
  height: 44px;
}
.cat-person-select {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.cat-person-select > span {
  min-width: 0;
}
.cat-person-select small {
  font-size: 12px;
}
.cat-options .cat-empty {
  min-height: 100px;
}
@media (max-width: 720px) {
  .cat-table th,
  .cat-table td {
    padding: 9px 7px;
  }
  .cat-table td:first-child,
  .cat-table th:first-child {
    padding-left: 10px;
  }
  .cat-table td:last-child,
  .cat-table th:last-child {
    padding-right: 8px;
  }
  .cat-panel-title,
  .cat-tools {
    padding-left: 12px;
    padding-right: 12px;
  }
  .cat-ref {
    max-width: 125px;
  }
  .cat-person-modal .proto-body,
  .cat-scene-modal .proto-body,
  .cat-pick-modal .proto-body {
    padding: 10px 16px;
  }
  .cat-form {
    gap: 9px;
  }
  .cat-task small {
    max-width: 160px;
  }
  .cat-ident .cat-symbol {
    display: none;
  }
}
@media (max-height: 790px) {
  .cat-scene-modal .cat-field :is(input, select) {
    min-height: 29px;
    padding: 5px 8px;
  }
  .cat-scene-modal .cat-form {
    row-gap: 6px;
  }
  .cat-scene-modal .proto-dialog-head {
    padding-top: 13px;
  }
}
