/* Use the installed font family directly, including its real semibold face. */
:root { font-family: "Segoe UI", system-ui, Arial, sans-serif; }
#dialog { max-height: min(92dvh, 1000px); overflow: hidden; }
#dialog-content { max-height: inherit; }
#dialog #modal-form {
  display: flex;
  flex-direction: column;
  max-height: min(92dvh - 2px, 998px);
  margin: 0;
}
#dialog #modal-form > .dialog-header,
#dialog #modal-form > .dialog-actions { flex: none; }
#dialog #modal-form > .dialog-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#dialog #modal-form > .dialog-actions { position: static; }
#dialog .dialog-header h2,
#dialog .wizard-choice strong,
#dialog .portal-structure-choice strong {
  font-weight: 600;
  text-shadow: none;
  filter: none;
}
.project-header .project-tool-navigation {
  overflow: visible;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 25;
}
.project-header .project-tool-navigation > :first-child { margin-left: 0; }
.project-tool-group { position: relative; }
.project-tool-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  min-height: 37px;
  box-sizing: border-box;
  padding: 0 8px 0 14px;
  border: 1px solid #35485a;
  border-radius: 6px;
  background: #14212e;
  color: #dfebf6;
  font-size: 12px;
  font-weight: 600;
}
.project-tool-group > summary::-webkit-details-marker { display: none; }
.project-tool-group > summary:hover,
.project-tool-group[open] > summary { background: #24384b; border-color: #638098; }
.project-tool-group > summary:focus-visible { outline: 2px solid #9fc7f0; outline-offset: 2px; }
.project-menu-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 25px;
  height: 25px;
  color: #b7cee5;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  transform: rotate(90deg);
}
.project-tool-group[open] > summary > .project-menu-chevron { transform: rotate(-90deg); }
.project-tool-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 270px;
  max-width: min(340px, calc(100vw - 32px));
  padding: 9px;
  border: 1px solid #476079;
  border-radius: 9px;
  background: #101d2b;
  box-shadow: 0 12px 32px #0008;
}
.project-tool-menu > p {
  margin: 2px 4px 9px;
  color: #a5b9cb;
  font-size: 11px;
  line-height: 1.45;
}
.project-tool-items { display: grid; gap: 5px; }
.project-header .project-tool-items button {
  display: block;
  width: 100%;
  min-height: 35px;
  padding: 8px 10px;
  text-align: left;
  font-size: 12px;
  white-space: normal;
}
.project-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 3px 0 9px;
}
.project-header .project-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.project-heading .eyebrow {
  flex: none;
  margin: 0;
  font-size: 10px;
  letter-spacing: .8px;
  white-space: nowrap;
}
.project-select-wrap { position: relative; flex: 1; min-width: 0; }
.project-header #project-select {
  appearance: none;
  width: 100%;
  min-height: 37px;
  margin: 0;
  padding: 8px 36px 8px 12px;
  border: 1px solid #476079;
  border-radius: 6px;
  background: #1a2c3c;
  color: #e1edf7;
  font: 600 12px "Segoe UI", system-ui, Arial, sans-serif;
  letter-spacing: normal;
  text-overflow: ellipsis;
  cursor: pointer;
}
.project-header #project-select:hover { background: #24384b; border-color: #638098; }
.project-header #project-select:focus-visible { outline: 2px solid #9fc7f0; outline-offset: 2px; }
.project-select-wrap > .project-menu-chevron {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%) rotate(90deg);
  pointer-events: none;
}
.project-header > .header-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
  gap: 0 6px;
  justify-self: end;
  margin: 0;
  width: auto;
  white-space: nowrap;
  font-size: 11px;
}
.project-header .shared-view-state {
  flex-basis: 100%;
  padding: 0;
  text-align: right;
}
.project-header > .header-status i {
  display: block;
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.project-tool-items #import-button,
.project-tool-items #project-reset-links { margin-top: 5px; }
.project-header .project-tool-items #project-delete { color: #ffc0b9; border-color: #734442; }
.project-header .project-tool-items #project-delete:hover { background: #42272b; }
@media (max-width: 1180px) {
  .project-header { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; }
  .project-header .project-heading { grid-column: 1; grid-row: 1; max-width: 470px; }
  .project-header > .header-status { grid-column: 2; grid-row: 1; }
  .project-header .project-tool-navigation { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 700px) {
  .project-header .project-tool-navigation { flex-wrap: wrap; }
  .project-heading .eyebrow { font-size: 9px; }
  .project-header > .header-status { font-size: 9px; }
  .project-tool-group > summary { padding-left: 10px; font-size: 11px; gap: 5px; }
  .project-tool-menu { position: fixed; top: auto; left: 10px; right: 10px; margin-top: 6px; max-width: none; }
}
