.ib-install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 24px;
  background: #fff8e6;
  border-bottom: 1px solid #e6d8a8;
  color: #1d2327;
}

.ib-install-banner[hidden] {
  display: none !important;
}

.ib-install-banner__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 640px;
}

.ib-install-banner__text span {
  font-size: 13px;
  color: #50575e;
}

.ib-install-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

html,
body.ib-app-body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #eef1f5;
  color: #1d2327;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.ib-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ib-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: #0b3b6e;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ib-app-header__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
}

.ib-app-header__logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}

.ib-app-header__subtitle {
  font-size: 12px;
  opacity: 0.85;
}

.ib-app-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ib-app-nav__link {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.ib-app-nav__link:hover,
.ib-app-nav__link:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ib-app-nav__link.is-active {
  background: rgba(255, 255, 255, 0.2);
}

.ib-app-nav__link--muted {
  opacity: 0.9;
  font-size: 13px;
}

.ib-app-header__user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ib-app-header__name {
  font-size: 13px;
  opacity: 0.9;
}

.ib-app-main {
  flex: 1;
  padding: 24px 16px 40px;
}

.ib-app-main__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ib-app-title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.ib-app-lead {
  margin: 0 0 20px;
  color: #50575e;
  max-width: 720px;
}

.ib-app-hero-actions {
  margin-bottom: 20px;
}

.ib-app-notice {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.ib-app-notice--success {
  background: #edfaef;
  border: 1px solid #68de7c;
  color: #1e4620;
}

.ib-app-panel {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.ib-app-panel h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.ib-app-panel--actions .ib-form-submit {
  margin: 16px 0 0;
}

.ib-input-wide {
  width: 100%;
  max-width: 520px;
  padding: 8px 10px;
  border: 1px solid #8c8f94;
  border-radius: 6px;
  font-size: 14px;
}

.ib-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #c3c4c7;
  background: #f6f7f7;
  color: #1d2327;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.2;
}

.ib-btn:hover,
.ib-btn:focus {
  background: #f0f0f1;
  color: #1d2327;
}

.ib-btn--primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

.ib-btn--primary:hover,
.ib-btn--primary:focus {
  background: #135e96;
  border-color: #135e96;
  color: #fff;
}

.ib-btn--secondary {
  background: #fff;
}

.ib-btn--lg {
  padding: 12px 20px;
  font-size: 15px;
}

.ib-app .button,
.ib-app .button-primary,
.ib-app .button-secondary {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #c3c4c7;
  background: #f6f7f7;
  color: #1d2327;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.2;
}

.ib-app .button-primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

.ib-app .button-secondary {
  background: #fff;
}

.ib-app .link-button {
  background: none;
  border: none;
  color: #b32d2e;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

.ib-app input[type="text"],
.ib-app input[type="email"],
.ib-app input[type="date"],
.ib-app input[type="number"],
.ib-app select,
.ib-app textarea {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #8c8f94;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.ib-app .regular-text {
  width: 100%;
}

.ib-app .large-text {
  width: 100%;
}

.ib-app .widefat {
  width: 100%;
  border-collapse: collapse;
}

.ib-app .ib-records-table th,
.ib-app .ib-records-table td {
  padding: 10px 12px;
}

.ib-app .ib-records-table a {
  color: #2271b1;
}

@media (max-width: 782px) {
  .ib-app-header {
    padding: 12px 16px;
  }

  .ib-app-nav {
    order: 3;
    width: 100%;
  }

  .ib-app-title {
    font-size: 22px;
  }
}

/* Auth screens */
.ib-app-body--auth {
  background: #eef1f5;
  min-height: 100vh;
}

.ib-auth-shell {
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.ib-auth-brand {
  text-align: center;
  color: #0b3b6e;
  margin-bottom: 24px;
}

.ib-auth-brand a {
  color: #0b3b6e;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.ib-auth-brand span {
  display: block;
  margin-top: 4px;
  color: #3c434a;
  font-size: 14px;
}

.ib-auth-main h1 {
  color: #1d2327;
  font-size: 24px;
  margin: 0 0 16px;
  text-align: center;
}

.ib-auth-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.ib-auth-card .ib-field {
  margin-bottom: 14px;
}

.ib-auth-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.ib-auth-card input[type="text"],
.ib-auth-card input[type="email"],
.ib-auth-card input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccd0d4;
  border-radius: 8px;
  box-sizing: border-box;
}

.ib-btn--block {
  width: 100%;
  text-align: center;
}

.ib-btn--google {
  display: block;
  width: 100%;
  text-align: center;
  background: #fff;
  border: 1px solid #dadce0;
  color: #3c4043;
  font-weight: 600;
}

.ib-auth-divider {
  text-align: center;
  color: #646970;
  margin: 16px 0;
}

.ib-auth-divider span {
  background: #fff;
  padding: 0 10px;
  position: relative;
}

.ib-auth-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #3c434a;
}

.ib-auth-footer a {
  color: #0b3b6e;
  font-weight: 600;
}

.ib-auth-card p {
  color: #3c434a;
}

.ib-app-notice--error {
  background: #fcf0f1;
  border-left: 4px solid #d63638;
  color: #3c434a;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 4px;
}

.ib-app-notice--warning {
  background: #fff8e5;
  border-left: 4px solid #dba617;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 4px;
}

.ib-app-notice--success {
  background: #edfaef;
  border-left: 4px solid #00a32a;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 4px;
}

.required {
  color: #d63638;
}

/* Pricing page */
.ib-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.ib-pricing-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.ib-pricing-card.is-featured {
  border-color: #0b3b6e;
  box-shadow: 0 8px 24px rgba(11, 59, 110, 0.1);
}

.ib-pricing-card.is-current {
  border-color: #00a32a;
}

.ib-pricing-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  background: #edfaef;
  color: #007017;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.ib-pricing-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ib-pricing-card__price {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #0b3b6e;
}

.ib-pricing-card__desc {
  color: #50575e;
  font-size: 14px;
  margin: 0 0 16px;
}

.ib-pricing-card__features {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.ib-pricing-card__features li {
  padding: 5px 0 5px 18px;
  position: relative;
}

.ib-pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0b3b6e;
}

.ib-pricing-card__active {
  display: block;
  text-align: center;
  color: #007017;
  font-weight: 600;
}

.ib-upgrade-form__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ib-upgrade-form__row input {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid #ccd0d4;
  border-radius: 8px;
}

.ib-usage-list {
  margin: 0;
  padding-left: 20px;
}

/* Email to client */
.ib-email-form .ib-field {
  margin-bottom: 12px;
}

.ib-email-status {
  margin-left: 10px;
  font-size: 13px;
  color: #50575e;
}

.ib-sent-log {
  margin-top: 16px;
}

.ib-sent-log h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.ib-sent-log__table {
  font-size: 13px;
}

@media (max-width: 782px) {
  .ib-pricing-grid {
    grid-template-columns: 1fr;
  }
}
