/* 新規申請画面全体・共通レイアウト */
.new-request-area {
  --nr-user-col-flex: 3;
  --nr-viewer-col-flex: 8;
  --nr-user-col-width: 500px;
  --nr-user-col-min: 408px;
  --nr-user-col-max: 760px;
  --nr-resizer-width: 10px;
  --nr-thumb-col-width: 180px;
  --nr-thumb-col-min: 160px;
  --nr-thumb-col-max: 220px;
  --nr-title-width: 260px;
  --nr-title-gap: var(--ds-space-4);
  --nr-empty-shell-inline-pad: clamp(24px, 4vw, 52px);
  --nr-empty-shell-top-pad: clamp(76px, 10vh, 120px);
  --nr-empty-shell-bottom-pad: clamp(32px, 8vh, 72px);
  --nr-empty-shell-max-width: min(720px, calc(100% - (var(--nr-empty-shell-inline-pad) * 2)));
  --nr-empty-guidance-max-width: min(640px, calc(100% - (var(--nr-empty-shell-inline-pad) * 2)));
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 var(--ds-space-5);
  padding: 0;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg);
  background-color: var(--ds-color-surface-muted);
  box-shadow: var(--ds-shadow-soft);
  height: calc(100vh - 140px);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* NR_RETENTION_PICKER_UX_V2: embedded selector; legacy V1 rules elsewhere are inert compatibility history. */
.request-retention-wrapper[data-retention-contract="NR_RETENTION_PICKER_UX_V2"] {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.request-retention-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 14px;
  min-width: 0;
  align-items: stretch;
}

.request-retention-method {
  box-sizing: border-box;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7e0ea;
  border-radius: 14px;
  background: #f8fbfe;
}

.request-retention-method.is-selected-mode {
  border-color: #2470b8;
  box-shadow: inset 4px 0 0 #2470b8;
}

.request-retention-method-heading {
  margin: 0;
  color: #20364b;
  font-size: 14px;
  line-height: 1.35;
}

.request-retention-method--direct .request-retention-period-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.request-retention-method--direct .request-retention-period-button {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

.request-retention-method--direct .request-retention-period-button.is-selected::after {
  content: "✓";
  margin-left: 7px;
  font-weight: 900;
}

.request-retention-method--category .request-retention-candidate-list {
  max-height: min(34vh, 250px);
  overscroll-behavior: contain;
}

.request-retention-method--category .request-retention-shortcuts {
  min-width: 0;
}

.request-retention-candidate.is-selected {
  box-shadow: inset 4px 0 0 #2470b8;
}

.request-retention-notice[data-retention-validation] {
  position: static;
  z-index: auto;
  margin: 0;
  white-space: normal;
}

.new-request-apply-gate {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 719px) {
  .request-retention-method-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .request-retention-method--direct .request-retention-period-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 320px) {
  .request-retention-method--direct .request-retention-period-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

.new-request-area[data-layout-mode="compact"] {
  --nr-user-col-flex: 3.15;
  --nr-viewer-col-flex: 7.6;
  --nr-user-col-width: 456px;
  --nr-user-col-min: 380px;
  --nr-user-col-max: 620px;
  --nr-thumb-col-width: 164px;
  --nr-thumb-col-min: 152px;
  --nr-thumb-col-max: 188px;
  --nr-empty-shell-inline-pad: clamp(20px, 3vw, 40px);
  --nr-empty-shell-max-width: min(620px, calc(100% - (var(--nr-empty-shell-inline-pad) * 2)));
  --nr-empty-guidance-max-width: min(560px, calc(100% - (var(--nr-empty-shell-inline-pad) * 2)));
}

.new-request-area[data-layout-mode="constrained"] {
  --nr-user-col-flex: 3.05;
  --nr-viewer-col-flex: 7.2;
  --nr-user-col-width: 500px;
  --nr-user-col-min: 400px;
  --nr-user-col-max: 680px;
  --nr-thumb-col-width: 148px;
  --nr-thumb-col-min: 138px;
  --nr-thumb-col-max: 170px;
  --nr-title-width: 220px;
  --nr-title-gap: var(--ds-space-2);
  --nr-empty-shell-inline-pad: 18px;
  --nr-empty-shell-top-pad: clamp(68px, 8vh, 96px);
  --nr-empty-shell-bottom-pad: 24px;
  --nr-empty-shell-max-width: min(520px, calc(100% - (var(--nr-empty-shell-inline-pad) * 2)));
  --nr-empty-guidance-max-width: min(480px, calc(100% - (var(--nr-empty-shell-inline-pad) * 2)));
}

.new-request-area[data-request-stage="editing"] {
  border-style: solid;
  border-color: var(--ds-color-border);
  background-color: var(--ds-color-surface-muted);
}

.new-request-area[data-request-stage="empty"] {
  border-style: dashed;
  border-color: #aebdcd;
  background: var(--ds-color-surface-muted);
}

.new-request-title-row {
  display: flex;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  gap: var(--ds-space-6);
  margin: var(--ds-space-1) var(--ds-space-2);
  padding: 0;
  min-height: 44px;
}

.new-request-editing-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.new-request-empty-shell,
.new-request-empty {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
}

.new-request-empty-shell[hidden],
.new-request-editing-shell[hidden],
.new-request-empty[hidden] {
  display: none !important;
}

.new-request-area[data-request-stage="editing"] .new-request-empty-shell,
.new-request-area[data-request-stage="editing"] .new-request-empty {
  display: none;
}

.new-request-area[data-request-stage="editing"] .new-request-editing-shell {
  display: flex;
}

.new-request-area[data-request-stage="empty"] .new-request-editing-shell {
  display: none;
}

.new-request-area[data-request-stage="empty"] .template-control-group,
.new-request-area[data-request-stage="empty"] .title-section,
.new-request-area[data-request-stage="empty"] #request-apply-trigger,
.new-request-area[data-request-stage="empty"] #request-apply-popup-root,
.new-request-area[data-request-stage="empty"] .new-request-body {
  display: none !important;
}

.new-request-area[data-request-stage="empty"] .new-request-title-actions {
  margin-left: auto;
  min-width: auto;
  flex: 0 0 auto;
  gap: var(--ds-space-2);
}

.new-request-area[data-request-stage="empty"] .new-request-empty-shell {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-4);
  padding:
    var(--nr-empty-shell-top-pad)
    var(--nr-empty-shell-inline-pad)
    var(--nr-empty-shell-bottom-pad);
  pointer-events: none;
  z-index: 1;
}

.new-request-area[data-request-stage="empty"] .new-request-empty-shell > * {
  pointer-events: auto;
  width: 100%;
  max-width: var(--nr-empty-shell-max-width);
}

.new-request-area[data-request-stage="empty"] .new-request-draft-restore-inline {
  max-width: min(620px, calc(100% - (var(--nr-empty-shell-inline-pad) * 2)));
}

.new-request-area[data-request-stage="empty"] .new-request-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    var(--nr-empty-shell-top-pad)
    var(--nr-empty-shell-inline-pad)
    var(--nr-empty-shell-bottom-pad);
  pointer-events: none;
  z-index: 1;
}

.new-request-area[data-request-stage="empty"] .new-request-empty > * {
  pointer-events: auto;
  width: 100%;
  max-width: var(--nr-empty-shell-max-width);
}

.new-request-empty-stack,
.new-request-empty-content,
.new-request-area[data-request-stage="empty"] .new-request-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-4);
  text-align: center;
}

.new-request-empty-card {
  position: relative;
  width: min(720px, 100%);
  max-width: 100%;
  padding: 28px;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-soft);
}

.new-request-empty-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(0, 123, 255, 0.22);
  border-radius: calc(var(--ds-radius-lg) - 4px);
  pointer-events: none;
}

.new-request-empty-card > * {
  position: relative;
  z-index: 1;
}

.new-request-empty-title {
  margin: 0;
  color: var(--ds-color-text);
  font-size: var(--ds-font-xl);
  font-weight: 700;
  line-height: 1.35;
}

.new-request-empty-cta,
.new-request-empty-primary,
.new-request-empty-trigger,
[data-new-request-empty-cta],
[data-empty-primary-cta] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--ds-radius-md);
  font-size: var(--ds-font-lg);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.new-request-empty-trigger.ds-cta-neutral-nav,
[data-new-request-empty-cta].ds-cta-neutral-nav,
[data-empty-primary-cta].ds-cta-neutral-nav {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--ds-radius-md);
  font-size: 17px;
  gap: 8px;
}

.new-request-empty-message,
.new-request-empty-copy,
.new-request-empty-description,
.new-request-empty-subcopy,
.new-request-empty-hint,
.new-request-empty-drop-hint,
[data-empty-message] {
  width: 100%;
  max-width: var(--nr-empty-guidance-max-width);
  margin: 0;
  color: var(--ds-color-text-sub);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.7;
  letter-spacing: 0;
}

.new-request-empty-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.new-request-empty-steps li {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid #d7e0ea;
  border-radius: var(--ds-radius-md);
  background: #f8fbfe;
  color: #24384d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.new-request-empty-steps span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e7f1ff;
  color: #17466f;
  font-size: 12px;
  font-weight: 900;
}

.new-request-empty-disabled-reason {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d7e0ea;
  border-radius: var(--ds-radius-md);
  background: #f6f8fb;
  color: #4b5f74;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  text-align: left;
}

.new-request-draft-restore-inline[hidden] {
  display: none !important;
}

.new-request-draft-restore-group {
  display: grid;
  gap: var(--ds-space-4);
  padding: 18px;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-soft);
  color: var(--ds-color-text);
  text-align: left;
}

.new-request-draft-restore-heading {
  display: grid;
  gap: 4px;
}

.new-request-draft-restore-title {
  margin: 0;
  color: var(--ds-color-text);
  font-size: var(--ds-font-lg);
  font-weight: 700;
  line-height: 1.4;
}

.new-request-draft-restore-copy {
  margin: 0;
  color: var(--ds-color-text-sub);
  font-size: var(--ds-font-sm);
  line-height: 1.65;
}

.new-request-draft-restore-summary {
  display: grid;
  grid-template-columns: minmax(88px, auto) 1fr;
  gap: 8px 12px;
  margin: 0;
  font-size: var(--ds-font-sm);
  line-height: 1.5;
}

.new-request-draft-restore-summary dt {
  margin: 0;
  color: var(--ds-color-text-sub);
  font-weight: 700;
}

.new-request-draft-restore-summary dd {
  margin: 0;
  min-width: 0;
  color: var(--ds-color-text);
  overflow-wrap: anywhere;
}

.new-request-draft-restore-notice {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--ds-color-warning);
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-warning-bg);
  color: var(--ds-color-warning);
  font-size: var(--ds-font-sm);
  line-height: 1.6;
}

.new-request-draft-restore-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.new-request-draft-restore-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 128px;
  padding: 0 14px;
  border-radius: var(--ds-radius-md);
  font-size: var(--ds-font-sm);
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.new-request-draft-restore-action[data-action="restore"] {
  border: 1px solid var(--ds-cta-primary-solid-border);
  background: var(--ds-cta-primary-solid-bg);
  color: var(--ds-cta-primary-solid-fg);
}

.new-request-draft-restore-action[data-action="continue-new"] {
  border: 1px solid var(--ds-color-border);
  background: var(--ds-color-surface);
  color: var(--ds-color-text);
}

.new-request-draft-restore-action[data-action="discard"] {
  border: 1px solid var(--ds-color-error);
  background: var(--ds-color-error-bg);
  color: var(--ds-color-error);
}

@media (max-width: 640px) {
  .new-request-draft-restore-summary {
    grid-template-columns: 1fr;
  }

  .new-request-draft-restore-actions {
    justify-content: stretch;
  }

  .new-request-draft-restore-action {
    flex: 1 1 100%;
    width: 100%;
  }
}
.title-section {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--nr-title-gap);
}
.new-request-title {
  font-size: var(--ds-font-xl);
  line-height: var(--ds-line-compact);
  font-weight: bold;
  text-align: center;
}

.edit-title-input {
  all: unset;
  font-family: "BIZ UDPGothic", sans-serif;
  font-size: var(--ds-font-lg);
  line-height: var(--ds-line-normal);
  font-weight: bold;
  padding: 6px var(--ds-space-5);
  width: var(--nr-title-width);
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--ds-color-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
}

.edit-title {
  display: inline-flex;
  align-items: center;
  background-color: var(--ds-color-surface);
  padding: 6px var(--ds-space-5);
  border-radius: var(--ds-radius-md);
  border: 1px solid var(--ds-cta-neutral-border);
  color: var(--ds-color-text);
  box-shadow: var(--ds-cta-neutral-shadow);
  font-size: var(--ds-font-lg);
  line-height: var(--ds-line-normal);
  font-weight: bold;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.12s ease;
  width: var(--nr-title-width);
  justify-content: center;
}
.edit-title:hover {
  background-color: var(--ds-cta-neutral-bg-hover);
  border-color: var(--ds-color-primary);
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.12), var(--ds-cta-neutral-shadow);
}
.edit-title:focus-visible {
  outline: 2px solid rgba(0, 123, 255, 0.28);
  outline-offset: 2px;
}
.edit-title:active {
  background-color: #dbe7f5;
  transform: translateY(1px);
}
.edit-title-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--nr-title-gap);
}
.edit-title-label {
  font-size: var(--ds-font-md);
  color: var(--ds-color-text-sub);
  line-height: var(--ds-line-normal);
  white-space: nowrap;
  margin: 0;
}

#close-request-btn {
  align-items: center;
  justify-content: center;
  display: inline-flex;
  min-width: 72px;
  height: 36px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #b42318;
  border: 1px solid #f2c7cc;
  background: #fdecec;
  cursor: pointer;
  border-radius: var(--ds-radius-md);
  box-shadow: 0 6px 14px rgba(180, 35, 24, 0.12);
  margin-left: -1px;
  position: relative;
  z-index: 1;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

#close-request-btn:hover {
  background: #fadfe2;
  border-color: #e7aeb7;
  transform: translateY(-1px);
}

#close-request-btn:focus-visible {
  outline: 2px solid rgba(180, 35, 24, 0.24);
  outline-offset: 2px;
  z-index: 2;
}

.new-request-title-actions {
  --nr-header-action-gap: var(--ds-space-2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: max-content;
  flex: 0 0 auto;
}

.new-request-discard-slot {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.new-request-discard-slot:empty {
  display: none;
}

.request-apply-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 18px;
  margin-right: -1px;
  border-top-left-radius: var(--ds-radius-md);
  border-bottom-left-radius: var(--ds-radius-md);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  font-size: var(--ds-font-md);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.request-apply-trigger.ds-cta-primary-soft {
  background: var(--ds-color-primary-soft);
  border-color: rgba(0, 123, 255, 0.2);
  color: var(--ds-color-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.request-apply-trigger.ds-cta-primary-soft:hover:not(:disabled) {
  background: #deeaff;
  transform: translateY(-1px);
}

.request-apply-trigger[aria-expanded="true"] {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 0 0 3px rgba(0, 123, 255, 0.16);
}

.request-apply-trigger:hover,
.request-apply-trigger:focus-visible {
  z-index: 2;
}

.new-request-apply-popup-root {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 21050;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 14px 0 0 24px;
}

.new-request-apply-popup-root[hidden] {
  display: none !important;
}

.new-request-apply-popup {
  width: min(360px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--ds-color-border);
  border-radius: 16px;
  background: var(--ds-color-surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.new-request-apply-gate {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f9fc;
  color: #243041;
  font-size: 14px;
  line-height: 1.45;
}

.new-request-apply-gate input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.new-request-apply-submit {
  border-radius: 12px;
  height: 44px;
  min-height: 44px;
  width: 100%;
  min-width: 0;
  padding: 0 20px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ds-font-lg);
  font-weight: 700;
  line-height: 1.2;
  flex: 0 0 auto;
  cursor: pointer;
}

.new-request-apply-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.new-request-apply-status {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #f8fbfe;
  color: #24384d;
}

.new-request-apply-status ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: #566a7f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.new-request-apply-status.is-ready {
  border-color: #b8d9bc;
  background: #f0faf0;
  color: #24552d;
}

.new-request-body {
  display: flex;
  height: 100%;
  border-radius: 0 0 var(--ds-radius-lg) var(--ds-radius-lg); /* 下のみ角丸、上は角丸なし */
  flex: 1;
  overflow: hidden; /* 追加: 全体の高さを固定し、カラムだけスクロール */
}
.new-request-area .column {
  padding: 0;
  margin: 0;
  border-radius: 0;
  background-color: var(--ds-color-surface);
  overflow: hidden; /* 各カラムも高さ固定 */
  box-sizing: border-box;
  height: 100%; /* 追加: カラムの高さを親に合わせる */
}
.new-request-area .column.user-column {
  flex: 0 0 var(--nr-user-col-width);
  width: var(--nr-user-col-width);
  min-width: var(--nr-user-col-min);
  max-width: var(--nr-user-col-max-runtime, var(--nr-user-col-max));
  height: 100%;
  box-sizing: border-box;
}
.new-request-column-resizer {
  flex: 0 0 var(--nr-resizer-width);
  width: var(--nr-resizer-width);
  min-width: var(--nr-resizer-width);
  align-self: stretch;
  position: relative;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}
.new-request-column-resizer::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--ds-color-border);
}
.new-request-column-resizer::after {
  content: "";
  position: absolute;
  inset: 0;
}
.new-request-column-resizer:hover::before,
.new-request-column-resizer:focus-visible::before,
.new-request-area[data-user-column-resizing="true"] .new-request-column-resizer::before {
  background: linear-gradient(180deg, #90b9eb 0%, #5f98df 100%);
  box-shadow: 0 0 0 2px rgba(95, 152, 223, 0.14);
}
.new-request-column-resizer:focus-visible {
  outline: none;
}
.new-request-area .column.thumbnail-column {
  flex: 0 0 var(--nr-thumb-col-width);
  min-width: var(--nr-thumb-col-min);
  max-width: var(--nr-thumb-col-max);
  width: var(--nr-thumb-col-width);
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}
.new-request-area .column.viewer-column {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.new-request-area:not(.approval-modal) .viewer-inner {
  min-width: 100%;
  min-height: 100%;
  transform-origin: 0 0;
}

.new-request-area:not(.approval-modal) .doc-stage {
  box-sizing: border-box;
  min-width: 100%;
  min-height: 100%;
}

.new-request-area:not(.approval-modal) .doc-stage-message {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed #c8d4e2;
  border-radius: var(--ds-radius-md);
  background: rgba(248, 251, 254, 0.92);
  color: #44586c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

.new-request-area:not(.approval-modal) .doc-stage-message.is-error {
  border-color: #e7aeb7;
  background: #fff6f7;
  color: #8f1d15;
}

.new-request-area[data-layout-mode="constrained"] .new-request-title-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--ds-space-2);
  margin: var(--ds-space-1);
}

.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-title-actions {
  grid-column: 3;
  justify-self: end;
}

.new-request-area[data-layout-mode="constrained"] .title-section {
  position: static;
  left: auto;
  transform: none;
  justify-content: center;
  min-width: 0;
}

.new-request-area[data-layout-mode="constrained"] .edit-title-wrapper {
  width: 100%;
  justify-content: center;
  min-width: 0;
}

.new-request-area[data-layout-mode="constrained"] .edit-title,
.new-request-area[data-layout-mode="constrained"] .edit-title-input {
  max-width: 100%;
}

.new-request-area[data-layout-mode="constrained"] .new-request-title-actions {
  min-width: max-content;
  flex-basis: auto;
  gap: var(--ds-space-2);
}

.new-request-area[data-layout-mode="constrained"] .request-apply-trigger.ds-cta-primary-soft {
  min-width: 64px;
  padding: 0 14px;
  font-size: 13px;
}

.new-request-area[data-layout-mode="compact"][data-request-stage="empty"] .new-request-empty {
  gap: var(--ds-space-3);
}

.new-request-area[data-layout-mode="compact"][data-request-stage="empty"] .new-request-empty-card {
  padding: 28px 24px;
}

.new-request-area[data-layout-mode="compact"][data-request-stage="empty"] .new-request-empty-cta,
.new-request-area[data-layout-mode="compact"][data-request-stage="empty"] .new-request-empty-primary,
.new-request-area[data-layout-mode="compact"][data-request-stage="empty"] .new-request-empty-trigger,
.new-request-area[data-layout-mode="compact"][data-request-stage="empty"] [data-new-request-empty-cta],
.new-request-area[data-layout-mode="compact"][data-request-stage="empty"] [data-empty-primary-cta] {
  width: min(100%, 300px);
  min-height: 50px;
  padding: 0 24px;
}

.new-request-area[data-layout-mode="compact"][data-request-stage="empty"] .new-request-empty-trigger.ds-cta-neutral-nav,
.new-request-area[data-layout-mode="compact"][data-request-stage="empty"] [data-new-request-empty-cta].ds-cta-neutral-nav,
.new-request-area[data-layout-mode="compact"][data-request-stage="empty"] [data-empty-primary-cta].ds-cta-neutral-nav {
  min-height: 44px;
  padding: 0 20px;
}

.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .close-request-btn {
  width: 38px;
  height: 38px;
}

.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty {
  gap: var(--ds-space-3);
}

.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-card {
  padding: 24px 18px;
}

.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-card::before {
  inset: 10px;
}

.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-cta,
.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-primary,
.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-trigger,
.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] [data-new-request-empty-cta],
.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] [data-empty-primary-cta] {
  width: min(100%, 280px);
  min-height: 48px;
  padding: 0 18px;
  font-size: 16px;
  white-space: normal;
}

.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-trigger.ds-cta-neutral-nav,
.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] [data-new-request-empty-cta].ds-cta-neutral-nav,
.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] [data-empty-primary-cta].ds-cta-neutral-nav {
  min-height: 44px;
  padding: 0 10px;
  font-size: 15px;
  gap: 6px;
}

.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-title {
  font-size: 22px;
}

.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-message,
.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-copy,
.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-description,
.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-subcopy,
.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-hint,
.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-drop-hint,
.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] [data-empty-message] {
  max-width: min(100%, 320px);
  font-size: 13px;
  line-height: 1.6;
}

.new-request-area[data-layout-mode="constrained"][data-request-stage="empty"] .new-request-empty-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ビューワ内の画像・canvasのアスペクト比維持 */
.viewer-column img,
.viewer-column canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  aspect-ratio: auto;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.approval-signpos-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 右寄せ */
  gap: 4px; /* ラベルとアイコンの間隔を少し確保 */
}

.approval-signpos-btn img {
  display: block;
  width: 20px;  /* 必要に応じてサイズ調整 */
  height: 20px;
}
.anchor-popup .anchor-item {
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.anchor-popup .anchor-item.is-selected {
  background-color: #e7f1ff;
  border-color: #2b6cb0;
  box-shadow: 0 0 0 2px rgba(43,108,176,0.2);
}
.anchor-popup .anchor-item:focus-visible {
  outline: 2px solid #2b6cb0;
  outline-offset: 1px;
}

.request-retention-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  min-width: 0;
  width: min(100%, 520px);
}

.request-retention-label {
  grid-column: 1 / -1;
  font-size: var(--ds-font-md);
  color: var(--ds-color-text-sub);
  line-height: var(--ds-line-normal);
  white-space: nowrap;
}

.request-retention-confirmed {
  min-width: 0;
  display: block;
}

.request-retention-confirmed-item {
  min-width: 0;
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #d7e0ea;
  border-radius: var(--ds-radius-md);
  background: #f8fbfe;
}

.request-retention-confirmed-item--unified {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.request-retention-confirmed-label {
  color: #657789;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.request-retention-confirmed-main {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.request-retention-confirmed-item strong {
  min-width: 0;
  color: #20364b;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.request-retention-summary-period--empty {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 2px 8px;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  background: #eef3f8;
  color: #607385;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.request-retention-picker-trigger {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 86px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #b8c8d9;
  border-radius: var(--ds-radius-md);
  background: #fff;
  color: #214567;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.request-retention-search-icon {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-sizing: border-box;
}

.request-retention-search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.request-retention-picker-trigger:hover,
.request-retention-picker-trigger:focus-visible {
  outline: none;
  border-color: #5f98df;
  box-shadow: 0 0 0 3px rgba(95, 152, 223, 0.16);
}

.request-retention-picker {
  position: fixed;
  z-index: 21120;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(420px, calc(100vh - 32px));
  display: grid;
  grid-template-rows: minmax(0, auto);
  gap: 8px;
  padding: 12px;
  border: 1px solid #c8d4e2;
  border-radius: var(--ds-radius-md);
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.request-retention-picker[hidden] {
  display: none;
}

.request-retention-search-shell {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.request-retention-inline-tools {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.request-retention-period-only {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.request-retention-period-toggle {
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d7e0ea;
  border-radius: var(--ds-radius-md);
  background: #f8fbfe;
  color: #38546d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.request-retention-period-toggle::after {
  content: "開く";
  margin-left: 8px;
  color: #607385;
  font-weight: 700;
}

.request-retention-period-toggle[aria-expanded="true"]::after {
  content: "閉じる";
}

.request-retention-period-toggle:hover,
.request-retention-period-toggle:focus-visible {
  outline: none;
  border-color: #5f98df;
  box-shadow: 0 0 0 3px rgba(95, 152, 223, 0.16);
}

.request-retention-period-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #d7e0ea;
  border-radius: var(--ds-radius-md);
  background: #f8fbfe;
}

.request-retention-period-panel[hidden] {
  display: none;
}

.request-retention-period-label {
  color: #516579;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.request-retention-period-options {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.request-retention-period-button {
  box-sizing: border-box;
  min-width: 56px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid #c8d1dc;
  border-radius: var(--ds-radius-md);
  background: #fff;
  color: #2d4359;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.request-retention-period-button:hover,
.request-retention-period-button:focus-visible {
  outline: none;
  border-color: #5f98df;
  box-shadow: 0 0 0 3px rgba(95, 152, 223, 0.16);
}

.request-retention-period-button.is-selected {
  border-color: #2f79c7;
  background: #e9f4ff;
  color: #17466f;
}

.request-retention-search {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #c8d1dc;
  border-radius: var(--ds-radius-md);
  background: #fff;
  color: #263238;
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.request-retention-search:focus {
  outline: none;
  border-color: #5f98df;
  box-shadow: 0 0 0 3px rgba(95, 152, 223, 0.16);
}

.request-retention-search.is-invalid {
  border-color: #c23b32;
  box-shadow: 0 0 0 3px rgba(194, 59, 50, 0.14);
}

.request-retention-candidate-list {
  display: grid;
  gap: 6px;
  max-height: var(--request-retention-list-max-height, min(34vh, 240px));
  overflow: auto;
  padding: 2px;
}

.request-retention-candidate-list[hidden] {
  display: none;
}

.request-retention-candidate {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #d7e0ea;
  border-radius: var(--ds-radius-md);
  background: #fff;
  color: #24384d;
  text-align: left;
  cursor: pointer;
}

.request-retention-candidate:hover,
.request-retention-candidate:focus-visible,
.request-retention-candidate.is-active {
  outline: none;
  border-color: #6d9ed2;
  box-shadow: 0 0 0 3px rgba(95, 152, 223, 0.14);
}

.request-retention-candidate.is-selected {
  border-color: #2470b8;
  background: #f1f8ff;
}

.request-retention-candidate-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.request-retention-candidate-main {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.request-retention-candidate-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.request-retention-candidate-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.request-retention-candidate-subtitle {
  color: #657789;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.request-retention-empty {
  margin: 0;
  padding: 10px;
  border: 1px dashed #c8d4e2;
  border-radius: var(--ds-radius-md);
  background: #f8fbfe;
  color: #516579;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.request-retention-empty[hidden] {
  display: none;
}

.request-retention-period-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid #c8d4e2;
  border-radius: 999px;
  background: #eef4fa;
  color: #244357;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.request-retention-period-badge--permanent {
  border-color: #b7c8e9;
  background: #eef4ff;
  color: #254471;
}

.request-retention-period-badge--80y {
  border-color: #c4ccd6;
  background: #f1f4f7;
  color: #3a4b5f;
}

.request-retention-period-badge--20y {
  border-color: #b6d0ee;
  background: #eef7ff;
  color: #24517a;
}

.request-retention-period-badge--10y {
  border-color: #acd5d3;
  background: #ecfaf8;
  color: #1f5c58;
}

.request-retention-period-badge--7y {
  border-color: #b8d9bc;
  background: #f0faf0;
  color: #2f6237;
}

.request-retention-period-badge--5y {
  border-color: #dfcc9c;
  background: #fff8e8;
  color: #6a501d;
}

.request-retention-period-badge--3y {
  border-color: #e4b99d;
  background: #fff3eb;
  color: #74411f;
}

.request-retention-period-badge--1y {
  border-color: #e7b1bd;
  background: #fff0f3;
  color: #783345;
}

.request-retention-favorite-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid #cfd9e5;
  border-radius: var(--ds-radius-md);
  background: #fff;
  color: #425c75;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.request-retention-favorite-toggle.is-active {
  border-color: #b58900;
  background: #fff7d7;
  color: #7b5a00;
}

.request-retention-shortcuts {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #d7e0ea;
  border-radius: var(--ds-radius-md);
  background: #fff;
}

.request-retention-shortcut-label {
  color: #657789;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.request-retention-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.request-retention-chip-list--stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  max-height: 168px;
  overflow: auto;
}

.request-retention-chip {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #d3dee9;
  border-radius: var(--ds-radius-md);
  background: #fff;
  color: #2d4359;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  overflow-wrap: anywhere;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.request-retention-chip-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.request-retention-shortcut-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.request-retention-shortcut-star {
  flex: 0 0 auto;
  color: #b58900;
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.request-retention-chip-list--stack .request-retention-chip {
  width: 100%;
  min-height: 34px;
  text-align: left;
}

.request-retention-shortcut-empty {
  margin: 0;
  color: #657789;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.request-retention-shortcut-empty[hidden] {
  display: none;
}

.request-retention-chip:focus-visible,
.request-retention-period-toggle:focus-visible,
.request-retention-period-search-main:focus-visible,
.request-retention-favorite-toggle:focus-visible {
  outline: 2px solid #5f98df;
  outline-offset: 2px;
}

.request-retention-notice {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 21130;
  padding: 6px 10px;
  border: 1px solid rgba(194, 59, 50, 0.22);
  border-radius: 10px;
  background: rgba(124, 31, 24, 0.94);
  color: #fff7f6;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(84, 18, 13, 0.18);
}

@media (max-width: 980px) {
  .title-section {
    flex-wrap: wrap;
    justify-content: center;
  }

  .request-retention-wrapper {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .new-request-area:not(.approval-modal) {
    --nr-title-width: 100%;
    margin-inline: var(--ds-space-2);
    height: calc(100vh - 116px);
    height: calc(100dvh - 116px);
    min-height: 360px;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .new-request-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "template actions"
      "title title";
    align-items: start;
    gap: 6px 8px;
    min-height: 0;
    margin: var(--ds-space-1);
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .template-control-group {
    grid-area: template;
    min-width: 0;
    max-width: 100%;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .template-main-button {
    max-width: 100%;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .title-section {
    grid-area: title;
    width: 100%;
    justify-content: stretch;
    min-width: 0;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .edit-title-wrapper {
    width: 100%;
    justify-content: stretch;
    min-width: 0;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .edit-title,
  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .edit-title-input {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    height: auto;
    padding-inline: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .new-request-title-actions {
    grid-area: actions;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-end;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .request-apply-trigger,
  .new-request-area:not(.approval-modal)[data-request-stage="editing"] #close-request-btn {
    min-width: 60px;
    padding-inline: 12px;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .new-request-editing-shell {
    min-height: 0;
    overflow: hidden;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .new-request-body {
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .column {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto !important;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .column.user-column {
    flex: 0 0 auto;
    border-right: 0;
    border-bottom: 1px solid var(--ds-color-border);
    overflow: visible;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .new-request-side-stack,
  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .new-request-side-panel-approvers,
  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .approval-user-list-wrap,
  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .viewer-user-list-wrap {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .new-request-column-resizer {
    display: none;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .column.viewer-column {
    flex: 0 0 min(48vh, 280px);
    min-height: 180px;
    overflow: hidden;
  }

  .new-request-area:not(.approval-modal)[data-request-stage="editing"] .column.thumbnail-column {
    flex: 0 0 auto;
    max-height: 180px;
    overflow-y: auto;
  }

  .request-retention-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .request-retention-confirmed {
    grid-template-columns: minmax(0, 1fr);
  }

  .request-retention-picker-trigger {
    min-height: 40px;
  }

  .request-retention-picker {
    width: min(360px, calc(100vw - 28px));
  }

  .request-retention-candidate-list {
    max-height: min(36vh, 220px);
  }

  .request-retention-period-button {
    min-width: 52px;
    flex: 1 1 72px;
  }

}
