/* Outside tool content: the migration notice stays visible during navigation. */
body { height: 100dvh; min-height: 0; }
header { flex-shrink: 0; }
#app { flex: 1; min-height: 0; height: auto; }

.migration-notice {
  flex-shrink: 0;
  background: #fffdf8;
  color: #293847;
  border-bottom: 1px solid #d7d2c7;
  padding: 16px 24px 12px;
  max-height: 48dvh;
  overflow-y: auto;
}
.migration-inner { width: 100%; margin: 0 auto; }
.migration-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.migration-heading h2 { color: #743510; font-size: 21px; line-height: 1.25; letter-spacing: -0.025em; }
.migration-heading > strong { color: #743510; font-size: 13px; font-variant-numeric: tabular-nums; }
.migration-notice p { margin: 5px 0 0; font-size: 14px; line-height: 1.45; }
#migration-description { color: #5b564c; }
.migration-options { display: grid; grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr); gap: 24px; margin-top: 16px; }
.migration-option-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.migration-notice h3 { font-size: 16px; line-height: 1.3; font-weight: 650; }
.migration-recommendation { background: #e2eee4; color: #285636; padding: 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 650; }
.migration-command { display: flex; align-items: center; gap: 12px; background: #edf0f2; border-radius: 5px; padding: 5px 5px 5px 12px; margin-top: 10px; }
.migration-command code { flex: 1; min-width: 0; overflow-wrap: anywhere; user-select: all; font-size: 12px; line-height: 1.5; }
.migration-notice button { height: auto; min-height: 36px; padding: 8px 12px; line-height: 1.3; font-size: 13px; font-weight: 600; border-radius: 4px; }
#migration-copy { flex-shrink: 0; background: var(--primary-color); color: #fff; }
#migration-copy:hover { background: #172737; }
.migration-notice .migration-hint { font-size: 12px; color: #5b625f; }
.migration-web { border-left: 1px solid #d7d2c7; padding-left: 24px; }
.migration-web > a { display: inline-block; margin-top: 7px; color: #265579; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.migration-web > a:hover { color: #17334b; }
.migration-web .migration-approval { margin-top: 10px; font-size: 12px; color: #5b564c; }
.migration-approval strong { color: #293847; }
.migration-transfer { display: flex; align-items: center; gap: 12px; border-top: 1px solid #e4e0d7; margin-top: 12px; padding-top: 8px; }
#migration-export { flex-shrink: 0; padding: 4px 0; min-height: 28px; background: transparent; color: #265579; text-decoration: underline; text-underline-offset: 3px; }
#migration-export:hover { color: #17334b; }
.migration-transfer p { margin: 0; font-size: 12px; color: #5b625f; }
.migration-status:empty { display: none; }
.migration-status { font-weight: 600; }
.migration-notice :focus-visible { outline: 3px solid #225b92; outline-offset: 3px; }

.app-retired #app, .app-retired header { display: none; }
.app-retired .migration-notice { flex: 1; max-height: none; padding: clamp(24px, 8vh, 96px) 24px; }
.app-retired .migration-inner { max-width: 1100px; }
.app-retired .migration-heading h2 { font-size: clamp(24px, 4vw, 36px); }
.app-retired .migration-options { margin-top: 32px; }
.app-retired .migration-transfer { margin-top: 24px; }

@media (max-width: 800px) {
  .migration-notice { padding: 14px 16px 10px; }
  .migration-heading h2 { font-size: 19px; }
  .migration-options { grid-template-columns: 1fr; gap: 16px; margin-top: 14px; }
  .migration-web { border-left: 0; border-top: 1px solid #d7d2c7; padding: 12px 0 0; }
  .migration-command { flex-wrap: wrap; padding: 10px; gap: 8px; }
  .migration-command code { flex-basis: 100%; }
  #migration-copy { width: 100%; }
  .migration-transfer { align-items: flex-start; flex-direction: column; gap: 2px; }
}
