/* Base compartilhada dos wireframes UI (iframes na documentação Starlight) */
:root {
  --primary: #2e8555;
  --on-primary: #fff;
  --surface: #fff;
  --bg: #f3f4f6;
  --outline: #79747e;
  --error: #b3261e;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: #1c1b1f;
  font-size: 14px;
  line-height: 1.4;
  padding-bottom: 24px;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 18px;
  font-weight: 500;
}

.app-bar.subtle {
  background: var(--surface);
  color: #1c1b1f;
  border-bottom: 1px solid #e0e0e0;
}

.app-bar button {
  background: none;
  border: 0;
  color: inherit;
  padding: 8px;
  border-radius: 24px;
  cursor: default;
}

.app-bar .actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
}

.wrap {
  padding: 24px 20px;
  max-width: 440px;
  margin: 0 auto;
}

.wrap-wide {
  max-width: 560px;
}

.intro {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.field {
  margin-bottom: 16px;
}

.field label,
.lbl {
  display: block;
  font-size: 12px;
  color: var(--outline);
  margin-bottom: 4px;
}

.field .value {
  padding: 12px 0 8px;
  border-bottom: 1px solid #cac4d0;
  font-size: 16px;
}

.fake-input {
  width: 100%;
  padding: 12px 0 10px;
  border: 0;
  border-bottom: 1px solid #cac4d0;
  font-size: 16px;
  background: transparent;
  color: #49454f;
}

.fake-outline {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cac4d0;
  border-radius: 14px;
  font-size: 15px;
  background: var(--surface);
}

.btn-filled {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  border: 0;
  border-radius: 24px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}

.btn-filled.sm {
  width: auto;
  padding: 10px 20px;
}

.btn-filled:disabled {
  opacity: 0.38;
}

.btn-tonal {
  padding: 12px 16px;
  border: 0;
  border-radius: 24px;
  background: rgba(46, 133, 85, 0.2);
  color: #1b4332;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
}

.btn-outlined {
  padding: 8px 16px;
  border: 1px solid #79747e;
  border-radius: 24px;
  background: transparent;
  font-size: 13px;
  cursor: default;
}

.hint {
  font-size: 11px;
  color: var(--outline);
  margin-top: 8px;
}

.err {
  color: var(--error);
  font-size: 12px;
  margin-top: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
}

.mock-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--outline);
  margin: 28px 0 12px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--surface);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.45);
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

.footer-mock {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--outline);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--surface);
}

.action-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(46, 133, 85, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  font-size: 13px;
  background: #e8f5e9;
}

.chip.sel {
  background: var(--primary);
  color: #fff;
}

.list-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  background: rgba(46, 133, 85, 0.2);
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.meta {
  font-size: 13px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid #e0e0e0;
}

.filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
}

.filter-item {
  flex: 1 1 200px;
  min-width: 160px;
}

.list-tile {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: var(--surface);
}

.list-tile .sub {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.fab-row {
  position: relative;
  min-height: 56px;
}

.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.divider {
  height: 1px;
  background: #e0e0e0;
  margin: 16px 0;
}

.center-msg {
  text-align: center;
  padding: 48px 24px;
  color: var(--outline);
}

.banner {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(46, 133, 85, 0.08);
  border-radius: 8px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.subcard-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.dim {
  opacity: 0.85;
}

.chip.outline {
  background: transparent;
}
