@media (min-width: 600px) {
  body { padding: 0; }
  .device { width: min(100vw, var(--app-width), 50.6430868167dvh); height: calc(min(100vw, var(--app-width), 50.6430868167dvh) * 1.9746031746); min-height: 0; border: 0; border-radius: 0; }
  .device::before { display: none; }
}
@media (max-width: 390px) {
  .hero-header { flex-basis: 277px; min-height: 277px; padding-left: 14px; padding-right: 14px; }
  .topbar { gap: 4px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-wordmark span { font-size: 15px; }
  .state-wordmark { width: 87px; height: 53px; }
  .seal-mark { width: 37px; height: 37px; }
  .identity-summary { grid-template-columns: minmax(0,1fr) 94px; gap: 8px; padding-top: 11px; }
  .portrait-frame { width: 94px; height: 108px; }
  .identity-copy .arabic-name { font-size: 19px; }
  .identity-copy .english-name { font-size: 15px; }
  .field-label { font-size: 14px; }
  .identity-copy > strong { font-size: 16px; }
  .tab-content { padding-left: 17px; padding-right: 17px; }
  .details-grid { column-gap: 16px; row-gap: 22px; }
  .data-field strong { font-size: 15px; }
  .data-field > span { font-size: 12px; }
  .bottom-item { font-size: 10px; }
}
@media (max-width: 350px) {
  .identity-summary { grid-template-columns: minmax(0,1fr) 80px; }
  .portrait-frame { width: 80px; height: 96px; }
  .top-brand { gap: 3px; }
  .brand-wordmark span { font-size: 13px; }
  .brand-wordmark small { font-size: 7px; }
  .state-wordmark { width: 77px; height: 48px; }
  .seal-mark { width: 32px; height: 32px; }
  .identity-copy .arabic-name { font-size: 17px; }
  .identity-copy .english-name { font-size: 13px; }
  .card-actions { grid-template-columns: 1fr 1fr 1fr; }
  .card-actions .outline-button { font-size: 9px; }
}
