/* Indiana · Pesquisa de Cupom Massivo — shared mobile-first styles (login, início, home) */

:root{
  --navy: #003a6e;
  --navy-dark: #002547;
  --royal: #0a2bc7;
  --sky: #00b5ff;
  --sky-soft: #e6f6ff;
  --ink: #0f2540;
  --text: #4a5b70;
  --muted: #7d8ba0;
  --border: #e3e9f1;
  --bg: #f3f6fa;
  --white: #ffffff;
  --green: #12a150;
  --green-soft: #e7f7ee;
  --orange: #e8890c;
  --orange-soft: #fff4e2;
  --red: #d93a3a;
  --red-soft: #fdecec;
  --gradient: linear-gradient(135deg, #003a6e 0%, #0a2bc7 60%, #00a3ff 100%);
  --shadow: 0 10px 30px rgba(0, 37, 71, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 37, 71, 0.22);
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*:before,
*:after{
  box-sizing: border-box;
}

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.ia{
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.ia h1,
.ia h2,
.ia h3,
.ia p{
  margin: 0;
}

.ia a{
  color: inherit;
  text-decoration: none;
}

.ia button{
  font-family: inherit;
}

.ia a,
.ia button,
.ia label,
.ia select{
  -webkit-tap-highlight-color: transparent;
}

[ng-cloak],
.ng-cloak{
  display: none !important;
}

.ia-sr{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.ia-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.ia-btn:active{
  transform: scale(0.98);
}

.ia-btn[disabled]{
  opacity: 0.65;
  cursor: default;
}

.ia-btn .fa{
  font-size: 15px;
}

.ia-btn--primary{
  color: #fff !important;
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(0, 58, 110, 0.25);
}

.ia-btn--primary:hover{
  background: var(--navy-dark);
}

.ia-btn--success{
  color: #fff !important;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(18, 161, 80, 0.22);
}

.ia-btn--ghost{
  color: var(--navy) !important;
  background: var(--white);
  border-color: var(--border);
}

.ia-btn--ghost:hover{
  border-color: #c9d5e3;
  background: #f8fafc;
}

.ia-btn--block{
  width: 100%;
}

.ia-btn--lg{
  min-height: 52px;
  font-size: 16px;
  border-radius: 14px;
}

.ia-spin{
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ia-rotate 700ms linear infinite;
}

@keyframes ia-rotate{
  to{ transform: rotate(360deg); }
}

/* =====================================================================
   LOGIN
   ===================================================================== */

body.ia-login{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(28px + var(--safe-top)) 18px calc(24px + var(--safe-bottom)) 18px;
  background: var(--gradient);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

body.ia-login:before,
body.ia-login:after{
  position: fixed;
  content: '';
  border-radius: 50%;
  pointer-events: none;
}

body.ia-login:before{
  top: -18vmax;
  right: -14vmax;
  width: 48vmax;
  height: 48vmax;
  background: radial-gradient(closest-side, rgba(0, 181, 255, 0.45), transparent);
}

body.ia-login:after{
  bottom: -20vmax;
  left: -16vmax;
  width: 52vmax;
  height: 52vmax;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.14), transparent);
}

.ia-login__wrap{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.ia-login__brand{
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.ia-login__brand img{
  display: block;
  width: 190px;
  height: auto;
}

.ia-card{
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.ia-login__card{
  padding: 30px 26px 26px 26px;
}

.ia-login__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--navy);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ia-login__title{
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}

.ia-login__subtitle{
  margin-top: 6px !important;
  font-size: 15px;
  color: var(--text);
}

.ia-form{
  margin-top: 24px;
}

.ia-field{
  margin-bottom: 16px;
}

.ia-field label{
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--ink);
}

.ia-input{
  position: relative;
  display: flex;
  align-items: center;
}

.ia-input > .fa{
  position: absolute;
  left: 15px;
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
}

.ia-input input{
  width: 100%;
  height: 52px;
  padding: 0 48px 0 44px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px; /* >= 16px avoids iOS zoom on focus */
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.ia-input input::placeholder{
  color: #a3afbf;
}

.ia-input input:focus{
  border-color: var(--sky);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 181, 255, 0.18);
}

.ia-input__toggle{
  position: absolute;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
}

.ia-input__toggle:hover{
  color: var(--navy);
}

.ia-alert{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--red-soft);
  color: #a52a2a;
  font-size: 14px;
  line-height: 1.45;
}

.ia-alert .fa{
  margin-top: 2px;
}

.ia-login__submit{
  margin-top: 8px;
}

/* Install app (PWA) */

.ia-install{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

.ia-install__btn{
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cfe9fb;
  border-radius: 16px;
  background: linear-gradient(135deg, #f1faff 0%, #e8f1ff 100%);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ia-install__btn:hover{
  border-color: var(--sky);
  box-shadow: 0 8px 20px rgba(0, 120, 200, 0.12);
}

.ia-install__icon{
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 37, 71, 0.12);
  overflow: hidden;
}

.ia-install__icon img{
  display: block;
  width: 100%;
  height: 100%;
}

.ia-install__text{
  flex: 1;
  min-width: 0;
}

.ia-install__text strong{
  display: block;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
}

.ia-install__text span{
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

.ia-install__cta{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
}

.ia-login__footer{
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.ia-login__footer img{
  display: inline-block;
  height: 22px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff;
  box-sizing: content-box;
}

/* iOS install sheet */

.ia-sheet{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 12px calc(16px + var(--safe-bottom)) 12px;
  background: rgba(0, 20, 40, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: ia-fade 200ms ease;
}

.ia-sheet[hidden]{
  display: none;
}

.ia-sheet__panel{
  width: 100%;
  max-width: 440px;
  padding: 24px 22px 18px 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: ia-up 260ms cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

.ia-sheet__head{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.ia-sheet__head img{
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 37, 71, 0.15);
}

.ia-sheet__head h2{
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

.ia-sheet__head p{
  font-size: 13px;
  color: var(--muted);
}

.ia-steps{
  margin: 0 0 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.ia-steps li{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.ia-steps li:last-child{
  border-bottom: none;
}

.ia-steps li:before{
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sky-soft);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.ia-steps .ia-ios-share{
  display: inline-flex;
  vertical-align: -4px;
  width: 22px;
  height: 22px;
  color: #007aff;
}

@keyframes ia-fade{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

@keyframes ia-up{
  from{ transform: translateY(40px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

/* =====================================================================
   APP SHELL (início + home)
   ===================================================================== */

.ia-topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-top);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.ia-topbar__inner{
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1240px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
}

.ia-topbar__logo{
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}

.ia-topbar__logo img{
  display: block;
  height: 30px;
  width: auto;
}

.ia-topbar__title{
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ia-topbar__title small{
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  vertical-align: 2px;
}

.ia-user{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ia-user__chip{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.ia-user__chip img{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.ia-user__name{
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.ia-icon-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--navy) !important;
  font-size: 17px;
  cursor: pointer;
}

.ia-icon-btn:hover{
  background: #f5f8fb;
}

.ia-main{
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px calc(40px + var(--safe-bottom)) 20px;
}

.ia-page-title{
  display: none;
  margin-bottom: 16px !important;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

/* Region picker */

.ia-region{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 20px;
  padding: 18px 20px;
}

.ia-region__label{
  display: flex;
  align-items: center;
  gap: 12px;
}

.ia-region__label .ia-badge-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sky-soft);
  color: var(--navy);
  font-size: 18px;
}

.ia-region__label strong{
  display: block;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
}

.ia-region__label span{
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

.ia-segmented{
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #eef2f7;
}

.ia-segmented button{
  min-height: 42px;
  min-width: 140px;
  padding: 8px 16px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.ia-segmented button.is-active{
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 37, 71, 0.14);
}

.ia-empty{
  padding: 48px 24px;
  text-align: center;
}

.ia-empty .fa{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: var(--sky-soft);
  color: var(--navy);
  font-size: 28px;
}

.ia-empty h2{
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.ia-empty p{
  margin-top: 6px !important;
  font-size: 14px;
  color: var(--muted);
}

/* Section cards */

.ia-section{
  margin-bottom: 20px;
  overflow: hidden;
}

.ia-section__head{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.ia-section__title{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ia-section__num{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.ia-section__title h2{
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

.ia-section__title p{
  margin-top: 2px !important;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

.ia-section__actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

/* Buttons row with the "last update" note right below, both right-aligned */
.ia-section__actions--stack{
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.ia-section__buttons{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ia-updated{
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  text-align: right;
}

.ia-updated .fa{
  margin-right: 4px;
}

/* Tables (desktop) → cards (mobile) */

.ia-table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ia-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ia-table th{
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.ia-table td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.ia-table tbody tr:last-child td{
  border-bottom: none;
}

.ia-table tbody tr:hover td{
  background: #fafcff;
}

.ia-table .is-muted{
  color: var(--muted);
}

.ia-empty-row td{
  padding: 28px 14px;
  color: var(--muted);
  white-space: normal;
}

.ia-status{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ia-status:before{
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.ia-status--ok{
  background: var(--green-soft);
  color: var(--green);
}

.ia-status--wait{
  background: var(--orange-soft);
  color: var(--orange);
}

.ia-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--navy) !important;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.ia-action:hover{
  background: var(--sky-soft);
  border-color: #bfe6fb;
}

.ia-action--danger{
  color: var(--red) !important;
}

.ia-action--danger:hover{
  background: var(--red-soft);
  border-color: #f6c7c7;
}

.ia-action__label{
  display: none;
}

.ia-status-wrap{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

/* Progress bar (driven by indiana.js through #progressBar) */

#progressBar{
  width: 100%;
  min-width: 140px;
  height: 22px;
  margin: 6px auto 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

#progressBar div{
  height: 100%;
  width: 0;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00b5ff, #0a2bc7);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  font-weight: 700;
  text-align: right;
}

/* Loading overlay */

.ia-loading{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 246, 250, 0.7);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.ia-loading__box{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.ia-loading__box .ia-spin{
  width: 30px;
  height: 30px;
  border-width: 3px;
  border-color: var(--sky-soft);
  border-top-color: var(--navy);
}

/* =====================================================================
   INÍCIO (tool picker)
   ===================================================================== */

.ia-hub{
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 20px calc(40px + var(--safe-bottom)) 20px;
}

.ia-hub__brand{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}

.ia-hub__brand img{
  display: block;
  width: 220px;
  max-width: 70%;
  height: auto;
}

.ia-hub__title{
  text-align: center;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

.ia-hub__subtitle{
  margin-top: 8px !important;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.ia-hub__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.ia-tool{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.ia-tool:hover{
  transform: translateY(-4px);
  border-color: #bfe6fb;
  box-shadow: 0 18px 40px rgba(0, 37, 71, 0.14);
}

.ia-tool__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  font-size: 24px;
}

.ia-tool h2{
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

.ia-tool p{
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.ia-tool__go{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.ia-hub__footer{
  margin-top: 34px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.ia-hub__footer img{
  display: block;
  height: 26px;
  margin: 8px auto 0 auto;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 860px){

  .ia-topbar__title{
    display: none;
  }

  .ia-user{
    margin-left: auto;
  }

  .ia-page-title{
    display: block;
  }

  /* Table rows become cards */
  .ia-table-wrap{
    overflow: visible;
    padding: 14px;
  }

  .ia-table,
  .ia-table tbody,
  .ia-table tr,
  .ia-table td{
    display: block;
    width: 100%;
  }

  .ia-table thead{
    display: none;
  }

  .ia-table tbody tr{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 8px;
    margin-bottom: 12px;
    padding: 6px 16px 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 37, 71, 0.05);
  }

  .ia-table tbody tr:last-child{
    margin-bottom: 0;
  }

  .ia-table tbody tr:hover td{
    background: transparent;
  }

  .ia-table td{
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    text-align: right;
    white-space: normal;
  }

  .ia-table td[data-label]:before{
    content: attr(data-label);
    flex-shrink: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
  }

  .ia-table td.cell-head{
    padding-top: 10px;
    border-bottom: 1px solid var(--border);
  }

  .ia-table td.cell-action{
    grid-column: auto;
    display: block;
    padding: 12px 0 0 0;
    border-bottom: none;
    text-align: center;
  }

  .ia-table td.cell-action.is-empty{
    display: none;
  }

  .ia-table td.cell-action--full{
    grid-column: 1 / -1;
  }

  .ia-table td.cell-action--full .ia-action{
    flex-direction: row;
    gap: 8px;
    min-height: 46px;
  }

  .ia-table td.cell-action--full .ia-action__label{
    font-size: 13px;
  }

  .ia-status-wrap{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 0;
    flex: 1;
  }

  .ia-table td.cell-action .ia-action{
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-height: 62px;
    padding: 8px 4px;
    font-size: 17px;
  }

  .ia-action__label{
    display: block;
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    white-space: normal;
  }

  .ia-table td:last-of-type:not(.cell-action){
    border-bottom: none;
  }

  .ia-empty-row{
    display: block !important;
  }

  .ia-empty-row td{
    display: block !important;
    text-align: center !important;
    border: none !important;
  }

  #progressBar{
    min-width: 0;
  }

  .ia-hub__grid{
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px){

  body.ia{
    font-size: 15px;
  }

  .ia-topbar__inner{
    height: 58px;
    padding: 0 14px;
    gap: 10px;
  }

  .ia-topbar__logo img{
    height: 26px;
  }

  .ia-user__chip{
    padding: 3px;
    border: none;
  }

  .ia-user__name{
    display: none;
  }

  .ia-main{
    padding: 18px 14px calc(32px + var(--safe-bottom)) 14px;
  }

  .ia-region{
    padding: 16px;
  }

  .ia-segmented{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .ia-segmented button{
    min-width: 0;
    min-height: 46px;
    padding: 8px 6px;
  }

  .ia-section__head{
    padding: 16px;
  }

  .ia-section__actions{
    width: 100%;
    margin-left: 0;
  }

  .ia-section__actions .ia-btn{
    flex: 1 1 0;
  }

  .ia-section__actions--stack{
    align-items: stretch;
  }

  .ia-section__buttons{
    width: 100%;
  }

  .ia-updated{
    text-align: left;
  }

  .ia-hub{
    padding-top: 26px;
  }

  .ia-hub__title{
    font-size: 22px;
  }

  .ia-tool{
    flex-direction: row;
    align-items: center;
    padding: 18px;
    gap: 16px;
  }

  .ia-tool__icon{
    flex-shrink: 0;
    width: 52px;
    height: 52px;
  }

  .ia-tool__body{
    flex: 1;
    min-width: 0;
  }

  .ia-tool h2{
    font-size: 17px;
  }

  .ia-tool p{
    margin-top: 2px !important;
    font-size: 13px;
  }

  .ia-tool__go{
    margin: 0;
  }

  .ia-tool__go span{
    display: none;
  }
}

@media (max-width: 380px){

  .ia-login__card{
    padding: 24px 18px 20px 18px;
  }

  .ia-login__title{
    font-size: 22px;
  }

  .ia-table tbody tr{
    gap: 0 6px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .ia-table td.cell-action .ia-action{
    padding: 8px 2px;
    font-size: 16px;
  }

  .ia-action__label{
    font-size: 11px;
    letter-spacing: -0.1px;
  }
}

/* Touch screens: no sticky hover effects */
@media (hover: none){

  .ia-tool:hover{
    transform: none;
    box-shadow: var(--shadow);
    border-color: var(--border);
  }
}

@media (prefers-reduced-motion: reduce){

  *,
  *:before,
  *:after{
    animation-duration: 1ms !important;
    transition: none !important;
  }
}
