:where(a:any-link) { color: #2f6582; }
.portal-identity { color: #646464; font: 11px/1.3 Verdana, Arial, sans-serif; white-space: nowrap; }
.portal-identity time { display: block; font-weight: bold; }
.portal-identity-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 23px; }
.portal-date-anchor { position: absolute; top: 50px; left: 535px; white-space: nowrap; }
.board-banner .portal-date-anchor { left: 540px; }
.portal-date-anchor > :is(.board-today, .portal-today, .retro-date) { position: static; display: block; }
.portal-identity--align, .portal-identity--legacy { position: absolute; top: calc(100% + 8px); right: 0; }
.portal-identity--align time, .portal-identity--legacy time { display: none; }
.portal-identity--fallback { position: fixed; z-index: 5; right: 10px; top: 4px; padding: 2px 6px; background: #fffff1; }
.portal-legacy-anchor { display: inline-block; position: relative; }
:is(#portal-notify-open, #portal-mail-open) { box-sizing: border-box; position: relative; width: 23px; height: 23px; padding: 4px; color: #2f6582; background: none; border: 0; cursor: pointer; }
.people-cap :is(#portal-notify-open, #portal-mail-open) { box-sizing: border-box; position: absolute; top: 12px; right: 12px; z-index: 1; }
#portal-notify-open span { display: block; width: 15px; height: 15px; background: currentColor; mask: url("/account/bell.png") center / contain no-repeat; }
#portal-mail-open span { display: block; width: 15px; height: 15px; background: #2f6582; mask: url("/account/envelope.png") center / contain no-repeat; }
:is(#portal-notify-open, #portal-mail-open) i { position: absolute; top: 2px; right: 1px; width: 6px; height: 6px; border-radius: 50%; background: #c61e25; box-shadow: 0 0 0 1px #fffff1; }
.portal-account-panel { box-sizing: border-box; width: min(520px, calc(100vw - 24px)); max-height: min(84dvh, 700px); padding: 16px 20px; overflow: auto; color: #606060; background: #fffff1; border: 2px solid #cfcfbc; font: 12px/1.45 Verdana, Arial, sans-serif; }
.portal-account-panel::backdrop { background: #2227; }
.portal-account-panel h2 { margin: 0 0 10px; font-size: 15px; }
.portal-account-panel fieldset { border: 1px solid #cfcfbc; margin: 0 0 10px; padding: 8px; }
.portal-account-panel label { display: grid; grid-template-columns: minmax(115px, 1fr) minmax(0, 1fr); gap: 4px; align-items: center; margin-bottom: 5px; }
#portal-person-card {
  position: fixed; inset: auto; margin: 0; width: min(280px, calc(100vw - 16px));
  padding: 11px 13px; border-width: 1px; box-shadow: 0 5px 17px #302f2b33; overflow-wrap: anywhere;
}
#portal-person-card [data-person-close] { float: right; border: 0; background: none; color: #2f6582; font-size: 18px; cursor: pointer; }
#portal-person-card dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 9px; margin: 6px 0; }
#portal-person-card dd { margin: 0; }
#portal-person-card img { max-width: 100%; max-height: 114px; object-fit: contain; }
.portal-person-actions { display: grid; justify-items: start; gap: 5px; border-block-start: 1px solid #dedfd1; padding-block-start: 7px; margin-block-start: 8px; }
.portal-person-actions a:any-link { color: #2f6582; font-weight: bold; text-decoration: none; }
.portal-person-actions a:hover { text-decoration: underline; }
#portal-person-card [hidden] { display: none; }
#portal-person-card .is-error { color: #8b2525; }
.portal-account-panel :is(input,select,button) { color: inherit; font: inherit; min-width: 0; }
.portal-account-panel input[type=color] { width: 53px; }
.portal-account-panel .account-buttons button { color: #fff; }
#portal-profile-logout { margin-inline-start: auto; }
#portal-profile-photo { height: auto; max-height: 80px; object-fit: contain; object-position: left; }
#portal-profile-status, #portal-notify-status { color: #8b2525; }
#portal-notify-dialog {
  position: fixed; inset: auto; margin: 0; width: min(330px, calc(100vw - 16px));
  max-height: min(65dvh, 400px); padding: 11px 13px; border-width: 1px;
  box-shadow: 0 5px 17px #302f2b33; overflow-wrap: anywhere;
}
#portal-notify-dialog::backdrop { background: transparent; pointer-events: none; }
#portal-notify-close { float: right; border: 0; padding: 0 3px; color: #2f6582; background: none; font-size: 18px; line-height: 1; cursor: pointer; }
#portal-notify-list { margin: 0 0 8px; padding-left: 18px; }
#portal-notify-list:empty { display: none; }
#portal-notify-list li { padding: 3px 0; }
#portal-notify-list li a { font-weight: bold; }
#portal-notify-list a { color: #2f6582; }
#portal-notify-list time { margin-left: 6px; font-size: .9em; color: #676767; }
.portal-mention-list { position: fixed; z-index: 12; box-sizing: border-box; margin: 0; max-height: 140px; overflow: auto; min-width: 140px; background: #fffff1; border: 1px solid #cfcfbc; box-shadow: 0 2px 8px #0002; padding: 2px; font: 12px Verdana, Arial, sans-serif; }
.portal-mention-list button { display: block; width: 100%; text-align: left; padding: 4px; border: 0; color: #2f6582; background: none; font: inherit; }
.portal-mention-list button[aria-selected="true"], .portal-mention-list button:hover { color: #fff; background: #2f6582; }
@media (max-width: 700px) {
  .portal-date-anchor, .board-banner .portal-date-anchor { left: auto; right: 8px; }
}

.portal-color-group {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0 0 10px;
}
.portal-account-panel .portal-color-group,
.settings-form .portal-color-group {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0 0 10px;
}
.portal-color-group legend,
.settings-form .portal-color-group legend { margin: 0 0 5px; padding: 0; font-weight: bold; }
.portal-color-group [data-color-picker] { width: 72px; height: 29px; }
.portal-color-palette { display: flex; flex-wrap: wrap; gap: 2px; }
.portal-color-palette[hidden] { display: none; }
.portal-color-palette .portal-color-chip {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 25px;
  height: 27px;
  margin: 0;
  cursor: pointer;
}
.portal-color-palette .portal-color-chip input[type=radio] {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #067aff;
  cursor: pointer;
}
.portal-color-chip:has(:focus-visible) { outline: 2px solid #2f6582; outline-offset: 2px; z-index: 1; }
