* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #172b4d;
  background: #4c6a9b;
}
.top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: #1b3a6b;
  color: #fff;
}
.top-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  min-height: 52px;
}
.top-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 0 16px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.top-crumb a { color: #fff; text-decoration: none; }
.top-crumb a:hover { text-decoration: underline; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  flex: 0 1 auto;
  min-width: 0;
}
.brand-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
  padding: 3px 6px;
}
.brand small { font-weight: 400; opacity: 0.9; }
.card-logo {
  display: none;
}
.top-right { display: flex; align-items: center; gap: 12px; }
.requests {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 3px;
  padding: 6px 12px;
  background: transparent;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.requests-wrap { position: relative; }
.requests-menu { min-width: 240px; }
.requests-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  white-space: nowrap;
}
.requests-menu a[hidden] { display: none !important; }
.req-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: #deebff;
  color: #0747a6;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  flex-shrink: 0;
}
.requests-page { max-width: none; }
.req-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.req-filters select,
.req-filters input {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  background: #fff;
  color: #172b4d;
}
.req-filters input { margin-left: auto; min-width: 220px; }
.req-table { width: 100%; border-collapse: collapse; }
.req-table th {
  text-align: left;
  font-size: 0.85rem;
  color: #6b778c;
  font-weight: 600;
  padding: 8px;
  border-bottom: 2px solid #dfe1e6;
}
.req-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #ebecf0;
  vertical-align: middle;
}
.req-table a { color: #0052cc; font-weight: 600; text-decoration: none; }
.req-table a:hover { text-decoration: underline; }
.req-status { text-transform: uppercase; color: #42526e; font-size: 0.85rem; }
.req-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.req-type-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}
.req-type-icon-plain {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: #ff8b00;
}
.req-type-name { font-weight: 600; color: #172b4d; }
.req-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.wrap:has(.requests-page) { max-width: 1100px; }
.wrap:has(.request-page) { max-width: 760px; }
body:has(.request-page) { background: #f4f5f7; }
body:has(.request-page) .powered { color: #6b778c; }
.avatar-wrap { position: relative; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: #dfe1e6;
  color: #172b4d;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  flex: none;
}
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  background: #fff;
  border: 1px solid #dfe1e6;
  box-shadow: 0 4px 8px rgba(9,30,66,0.15);
  z-index: 20;
}
.menu a {
  display: block;
  padding: 10px 14px;
  color: #172b4d;
  text-decoration: none;
  white-space: nowrap;
}
.menu a[hidden] { display: none !important; }
.menu a:hover { background: #f4f5f7; }
.wrap {
  max-width: 980px;
  margin: 28px auto;
  padding: 0 16px;
}
body:has(.home-portal) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body:has(.home-portal) .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(1440px, calc(100% - 32px));
  max-width: none;
  margin: 20px auto;
}
.home-portal {
  flex: 1;
  padding: clamp(20px, 3vw, 40px);
}
.home-portal h1 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
.home-portal .lead { font-size: 1.05rem; }
.home-portal .body-row {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 40px);
  align-items: start;
}
.home-portal .rail-item {
  padding: 12px 14px;
  font-size: 1rem;
}
.home-portal .tile {
  padding: 18px 16px;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 6px;
}
.home-portal .tile:hover { border-color: #dfe1e6; }
.home-portal .tile-icon {
  width: 64px;
  height: 64px;
}
.home-portal .tile-text strong {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.35;
}
.home-portal .tile-text small { font-size: 0.95rem; }
.card {
  background: #fff;
  border-radius: 3px;
  padding: 24px 28px 32px;
}
.card.narrow { max-width: 560px; margin: 0 auto; }
.card-head {
  display: block;
  margin-bottom: 24px;
}
.eyebrow { margin: 0; color: #6b778c; font-size: 13px; }
.card h1 { margin: 4px 0 8px; font-size: 1.5rem; font-weight: 650; }
.lead { margin: 0; color: #5e6c84; }
.body-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  border-top: 1px solid #ebecf0;
  padding-top: 20px;
}
.rail { display: flex; flex-direction: column; gap: 4px; }
.rail-item {
  display: block;
  padding: 8px 10px;
  color: #0052cc;
  text-decoration: none;
  border-radius: 3px;
}
.rail-item.active {
  font-weight: 700;
  background: #deebff;
}
.rail-item.muted { color: #97a0af; cursor: default; }
.tiles { display: flex; flex-direction: column; gap: 12px; }
.tiles[hidden] { display: none; }
.tile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
}
.tile:hover { background: #f4f5f7; }
.tile-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
}
.tile-text { display: flex; flex-direction: column; gap: 4px; }
.tile-text strong { color: #172b4d; }
.tile-text small { color: #6b778c; }
.tile-split { flex-direction: column; }
.tile-hit { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit; }
.tile-note { margin-left: 54px; color: #0052cc; font-size: 0.95rem; }
.profile { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 20px 0; }
.profile dt { color: #6b778c; }
.profile dd { margin: 0; }
.profile-actions {
  margin: 8px 0 20px;
  padding: 14px 16px;
  background: #f4f5f7;
  border-radius: 3px;
}
.profile-action {
  display: inline-block;
  color: #0052cc;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.profile-action:hover { text-decoration: underline; }
.profile-hint {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #6b778c;
  line-height: 1.4;
}
body.modal-open { overflow: hidden; }
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 30, 66, 0.45);
}
.modal-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(90vh, 840px);
  overflow: auto;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(9, 30, 66, 0.25);
  display: flex;
  flex-direction: column;
}
.modal-dialog-wide {
  width: min(1120px, 100%);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #ebecf0;
  flex: 0 0 auto;
}
.modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-head h2 { margin: 0; font-size: 1.15rem; color: #172b4d; }
.modal-help {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #8993a4;
  color: #42526e;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.modal-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #5e6c84;
}
.modal-body {
  padding: 14px 18px 8px;
  overflow: auto;
  flex: 1 1 auto;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px 16px;
  border-top: 1px solid #ebecf0;
  flex: 0 0 auto;
}
.modal-status {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: #e3fcef;
  color: #006644;
  border-radius: 3px;
}
.modal-status.error { background: #ffebe6; color: #bf2600; }
.kc-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.kc-toolbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kc-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #42526e;
}
.kc-pager[hidden] { display: none !important; }
.kc-user-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.kc-user-search-face {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 228px;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  background: #fff;
  color: #172b4d;
  font: inherit;
  font-size: 0.9rem;
  padding: 6px 8px 6px 10px;
  cursor: pointer;
}
.kc-caret {
  margin-left: auto;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #6b778c;
}
.kc-user-search-clear {
  border: 0;
  background: transparent;
  color: #6b778c;
  font-size: 1.05rem;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
}
.kc-user-search-panel {
  padding: 8px;
  min-width: 240px;
}
.kc-user-search-field {
  display: flex;
  align-items: center;
  border: 1px solid #4c9aff;
  border-radius: 3px;
  background: #fff;
  padding-right: 6px;
}
.kc-user-search-field input {
  border: 0;
  outline: none;
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  padding: 6px 8px;
}
.kc-search-icon {
  width: 16px;
  height: 16px;
  color: #6b778c;
  flex: 0 0 auto;
}
.btn.kc-link {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #172b4d;
  padding: 6px 8px;
}
.btn.kc-link:hover:not(:disabled) { filter: none; color: #0052cc; }
.user-picker {
  position: relative;
  min-width: 160px;
}
.user-picker-face {
  width: 100%;
  text-align: left;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  background: #fff;
  color: #172b4d;
  font: inherit;
  padding: 7px 10px;
  cursor: pointer;
}
.user-picker.is-locked .user-picker-face {
  background: #f4f5f7;
  cursor: default;
}
.user-picker-panel {
  position: fixed;
  z-index: 80;
  min-width: 240px;
  background: #fff;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  box-shadow: 0 8px 16px rgba(9, 30, 66, 0.15);
  padding: 8px;
}
.user-picker-panel input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  font: inherit;
  padding: 7px 8px;
}
.user-picker-hint,
.user-picker-empty {
  margin: 8px 4px 2px;
  color: #6b778c;
  font-size: 0.85rem;
}
.user-picker-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}
.user-picker-list button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 6px 8px;
  cursor: pointer;
  color: #172b4d;
}
.user-picker-list button:hover {
  background: #deebff;
}
.kc-search {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}
.kc-search input {
  border: 0;
  outline: none;
  font: inherit;
  padding: 7px 10px;
  min-width: 180px;
}
.kc-info {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #deebff;
  color: #0747a6;
  border-radius: 3px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.kc-info p { margin: 0; }
.kc-info a { color: #0052cc; }
.kc-info-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0052cc;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}
.kc-table-wrap { overflow: auto; }
.kc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.kc-table th {
  text-align: left;
  font-size: 0.8rem;
  color: #6b778c;
  font-weight: 600;
  padding: 8px 8px;
  border-bottom: 2px solid #dfe1e6;
  white-space: nowrap;
}
.kc-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #ebecf0;
  vertical-align: middle;
  color: #172b4d;
}
.kc-table .empty {
  text-align: center;
  color: #172b4d;
  padding: 36px 8px 28px;
}
.kc-table .empty-title {
  margin: 0 0 6px;
  font-weight: 600;
}
.kc-table .empty-hint {
  margin: 0;
  color: #6b778c;
  font-size: 0.9rem;
}
.kc-editor-row {
  background: #e3fcef;
}
.kc-editor-row input[type="text"],
.kc-editor-row input[type="datetime-local"],
.kc-editor-row select {
  width: 100%;
  min-width: 0;
  font: inherit;
  padding: 6px 8px;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  background: #fff;
}
.kc-editor-row input[readonly] {
  background: #f4f5f7;
  color: #42526e;
}
.kc-actions {
  white-space: nowrap;
  display: flex;
  gap: 6px;
  align-items: center;
}
.kc-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #172b4d;
}
.kc-active em {
  font-style: italic;
  color: #6b778c;
  font-weight: 400;
}
.kc-active.muted { color: #97a0af; }
.kc-check {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #36b37e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.btn {
  font: inherit;
  border: 1px solid #dfe1e6;
  background: #fff;
  color: #172b4d;
  border-radius: 3px;
  padding: 7px 12px;
  cursor: pointer;
}
a.btn { display: inline-block; text-decoration: none; }
a.btn.login-jira { margin-top: 12px; }
.login-panel form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.login-panel label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #6b778c;
}
.login-panel input {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 2px solid #dfe1e6;
  border-radius: 3px;
  font: inherit;
  font-weight: 400;
  color: #172b4d;
  background: #fff;
}
.login-panel input:focus { outline: none; border-color: #4c9aff; }
.login-panel .btn.primary,
.login-panel a.btn.login-jira {
  display: block;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn.primary { background: #0052cc; border-color: #0052cc; color: #fff; }
.btn.is-busy { position: relative; color: transparent; pointer-events: none; }
.btn.is-busy:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.request-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  margin: 0;
  padding: 12px 16px;
  background: #e3fcef;
  color: #006644;
  border-radius: 3px;
  box-shadow: 0 8px 16px rgba(9, 30, 66, 0.2);
}
.btn.small { padding: 4px 8px; font-size: 0.85rem; }
.btn.icon {
  padding: 4px 8px;
  min-width: 28px;
  line-height: 1;
}
.btn.danger { color: #bf2600; border-color: #ffbdad; }
.btn:hover:not(:disabled) { filter: brightness(0.97); }
@media (max-width: 900px) {
  .kc-toolbar-right { margin-left: 0; width: 100%; }
  .kc-search { flex: 1; }
  .kc-search input { min-width: 0; width: 100%; }
}
.powered {
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  margin: 0 0 24px;
}
@media (max-width: 720px) {
  .body-row { grid-template-columns: 1fr; }
  body:has(.home-portal) .wrap { width: calc(100% - 16px); margin: 8px auto; }
  .home-portal { padding: 16px; }
  .home-portal .body-row { grid-template-columns: 1fr; }
  .home-portal .rail { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .home-portal .rail-item { padding: 8px 12px; background: #f4f5f7; }
  .home-portal .rail-item.active { background: #deebff; }
  .home-portal .tile-icon { width: 48px; height: 48px; }
  .request-grid, .emrr-grid, .request-fields { grid-template-columns: 1fr; }
  .request-rail, .request-main { grid-column: auto; grid-row: auto; }
  .emrr-wide { grid-column: auto; }
  aside { border-left: 0; padding-left: 0; }
}
.request-page { display: block; color: #172b4d; }
#requestRoot {
  background: #fff;
  color: #172b4d;
  border-radius: 3px;
  padding: 16px 20px 28px;
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.08);
}
.request-head { display: flex; gap: 12px; align-items: flex-start; }
.request-head-text { flex: 1; min-width: 0; }
.request-icon { width: 36px; height: 36px; object-fit: contain; }
.request-status {
  align-self: flex-start;
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #deebff;
  color: #0747a6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.request-actions { display: flex; gap: 16px; align-items: center; margin: 8px 0 0; }
.request-actions .btn.kc-link { padding-left: 0; padding-right: 0; }
.request-share { position: relative; }
.share-panel {
  position: absolute;
  z-index: 20;
  top: 28px;
  left: 0;
  width: 240px;
  background: #fff;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  box-shadow: 0 8px 16px rgba(9, 30, 66, 0.15);
  padding: 12px;
  color: #172b4d;
}
.share-panel input { width: 100%; box-sizing: border-box; margin: 8px 0; font: inherit; padding: 7px 8px; }
.request-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; margin-top: 16px; }
.request-rail { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.request-main { grid-column: 1; grid-row: 1; min-width: 0; }
.rail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: #172b4d;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.rail-item svg { width: 16px; height: 16px; flex: none; }
.notify-icon { color: #0052cc; }
.approval-required {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 6px;
  background: #fff0b3;
  color: #172b4d;
  font-weight: 700;
}
.approval-actions { display: flex; gap: 8px; margin: 0 0 16px; }
#declineBtn { background: #f4f5f7; border-color: #dfe1e6; }
.rail-item.is-busy { cursor: progress; }
.rail-spin {
  width: 16px;
  height: 16px;
  border: 2px solid #dfe1e6;
  border-top-color: #0052cc;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  flex: none;
  box-sizing: border-box;
}
.rail-item.share-face {
  width: auto;
  margin: 6px 0;
  padding: 6px 10px;
  background: #f4f5f7;
  border-radius: 3px;
}
.person { display: flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; }
.person-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dfe1e6;
  color: #172b4d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.person-avatar.approver { background: #0747a6; color: #fff; }
.person strong { display: block; font-weight: 600; }
.person small { display: block; color: #6b778c; font-size: 12px; }
.approval-notice { margin: 0 0 6px; color: #172b4d; }
.request-status {
  align-self: flex-start;
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #deebff;
  color: #0747a6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.request-details { border-top: 1px solid #dfe1e6; margin: 8px 0 0; padding-top: 16px; }
.request-fields { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.request-fields div { margin: 0; padding: 10px 0; border-bottom: 1px solid #ebecf0; }
.request-fields dt { color: #6b778c; font-size: 12px; }
.request-fields dd { margin: 4px 0 0; color: #172b4d; }
.emrr-form { border: 1px solid #dfe1e6; background: #fff; margin: 24px 0 0; color: #172b4d; }
.emrr-caption { background: #f4f5f7; border-bottom: 1px solid #dfe1e6; padding: 8px 12px; text-align: center; font-weight: 600; }
.emrr-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #dfe1e6; padding: 10px 12px; font-weight: 600; }
.emrr-menu { position: relative; flex: none; }
.emrr-more { border: 0; background: transparent; color: #42526e; font: inherit; font-weight: 700; letter-spacing: 1px; padding: 4px 8px; cursor: pointer; }
.emrr-drop { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 180px; background: #fff; border: 1px solid #dfe1e6; box-shadow: 0 4px 8px rgba(9, 30, 66, 0.15); }
.emrr-drop a { display: block; padding: 8px 12px; color: #172b4d; text-decoration: none; font-weight: 400; }
.emrr-drop a:hover { background: #f4f5f7; }
.emrr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 16px 12px 12px; }
.emrr-wide { grid-column: 1 / -1; }
.emrr-f { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.emrr-f span { font-size: 12px; color: #6b778c; }
.emrr-f i { color: #de350b; font-style: normal; margin-left: 2px; }
.emrr-f input, .emrr-f textarea { width: 100%; box-sizing: border-box; border: 1px solid #dfe1e6; border-radius: 3px; background: #fff; color: #172b4d; padding: 8px; font: inherit; resize: vertical; }
.activity-item { border-top: 1px solid #dfe1e6; padding: 14px 0; }
.activity-item header { display: flex; gap: 8px; align-items: center; }
.activity-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4f5f7;
  color: #172b4d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.comment-body { margin: 8px 0 0 36px; }
.comment-thumb { display: block; max-width: 180px; max-height: 160px; margin-top: 8px; border: 1px solid #dfe1e6; background: #fff; }
.request-file-link { color: #0052cc; text-decoration: none; }
.request-file-link:hover { text-decoration: underline; }
.request-files, .request-people { list-style: none; margin: 0; padding: 0; }
.request-people li { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #ebecf0; }
.attach-panel { margin: 0 0 16px; }
.attach-panel h2 { margin: 0 0 8px; font-size: 16px; }
.request-files {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 12px;
  border: 1px dashed #c1c7d0;
  border-radius: 3px;
  background: #fff;
}
.request-files li { width: 168px; }
.request-files li.empty { width: auto; color: #6b778c; }
.attach-card { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.attach-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 108px;
  border: 1px solid #dfe1e6;
  background: #f4f5f7;
  overflow: hidden;
}
.attach-preview img { max-width: 100%; max-height: 108px; object-fit: contain; }
.attach-kind { font-size: 14px; font-weight: 700; color: #0052cc; }
.attach-name { color: #0052cc; font-size: 12px; line-height: 1.3; word-break: break-word; }
.attach-meta { color: #6b778c; font-size: 11px; }
.comment-box { margin: 16px 0 8px; }
.comment-idle {
  display: flex;
  align-items: center;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  background: #fff;
  min-height: 40px;
}
.comment-box.is-open .comment-idle { display: none; }
.comment-editor { display: none; border: 1px solid #dfe1e6; border-radius: 3px; background: #fff; }
.comment-box.is-open .comment-editor { display: block; }
.comment-prompt {
  flex: 1;
  border: 0;
  background: transparent;
  color: #97a0af;
  text-align: left;
  font: inherit;
  padding: 8px 12px;
  cursor: text;
}
.comment-clip, .comment-clip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b778c;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0 10px;
}
.comment-clip svg, .comment-clip-btn svg { width: 16px; height: 16px; }
.comment-clip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.comment-tools { display: flex; gap: 2px; padding: 4px 6px; border-bottom: 1px solid #ebecf0; }
.comment-tools button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #42526e;
  cursor: pointer;
  font: inherit;
}
.comment-tools button:hover { background: #f4f5f7; }
.comment-wysiwyg { min-height: 88px; padding: 8px 12px; outline: none; }
.comment-wysiwyg:empty:before { content: attr(data-placeholder); color: #97a0af; }
.comment-actions { display: flex; gap: 8px; align-items: center; padding: 0 12px 8px; }
.comment-cancel { border-color: transparent; background: transparent; color: #42526e; }
.comment-attach { display: flex; align-items: center; gap: 8px; padding: 4px 12px 12px; color: #6b778c; font-size: 13px; }
.comment-browse { border: 0; background: none; color: #0052cc; font: inherit; padding: 0; cursor: pointer; }
.comment-attach #commentFileName:empty { display: none; }
.wiki-li { margin: 2px 0; }
.request-page h2 { font-size: 1rem; margin: 0 0 8px; color: #172b4d; }
#requestRoot h1 { margin: 4px 0 0; }
aside section { margin: 16px 0; }
aside { border-left: 0; padding-left: 0; }
