:root {
  --bg: #081019;
  --panel: #0f1924;
  --panel-2: #131f2c;
  --line: rgba(255,255,255,.10);
  --text: #f5f7f9;
  --muted: #a6b1bd;
  --accent: #1c7c76;
  --accent-2: #289d92;
  --accent-soft: rgba(40,157,146,.14);
  --danger: #e76b6b;
  --warning: #e5b05d;
  --success: #60c6a9;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(27,125,119,.20), transparent 30rem),
    radial-gradient(circle at 100% 0%, rgba(30,70,110,.16), transparent 36rem),
    var(--bg);
  color: var(--text);
}

body.brand-lr {
  --accent: #213f67;
  --accent-2: #315d91;
  --accent-soft: rgba(49,93,145,.16);
}

button, input, textarea, select { font: inherit; }
a { color: inherit; }

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.hero {
  padding: 54px 4px 38px;
  max-width: 880px;
}
.hero-compact { padding-bottom: 28px; }

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  box-shadow: 0 15px 45px rgba(0,0,0,.25);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 9px;
  color: #9dcac6;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.brand-lr .eyebrow { color: #a6c4e5; }

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
h1 span { color: #aab6c2; font-weight: 500; }
.hero h1 span:first-of-type { color: var(--accent-2); }

.hero-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  min-height: 44px;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-2);
}
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary, .btn-ghost {
  background: rgba(255,255,255,.035);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover, .btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }

.panel-grid,
.account-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.account-layout {
  grid-template-columns: 280px 1fr;
}

.single-form {
  max-width: 760px;
}

.form-card, .profile-card, .result-card {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012)), var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.20);
}

.form-card { padding: 28px; scroll-margin-top: 22px; }

.card-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.card-heading h2 {
  font-size: 20px;
  margin-bottom: 5px;
}
.card-heading p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.step {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--accent-soft);
  border: 1px solid rgba(74,185,175,.25);
  color: #bce7e3;
  font-size: 12px;
  font-weight: 800;
}

.fields-2, .fields-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.field { margin-bottom: 17px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 7px;
  color: #d9e0e7;
}
.field small, .optional {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
input, textarea, select {
  width: 100%;
  color: var(--text);
  background: #0a131d;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  outline: 0;
  padding: 12px 13px;
}
input { min-height: 44px; }
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.privacy-note {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.alerts {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  gap: 8px;
}
.alert {
  padding: 12px 15px;
  border: 1px solid var(--line);
  background: #101a25;
  box-shadow: 0 8px 30px rgba(0,0,0,.28);
  font-size: 13px;
}
.alert-error { border-color: rgba(231,107,107,.5); color: #ffd2d2; }
.alert-warning { border-color: rgba(229,176,93,.5); color: #ffe1ae; }
.alert-success { border-color: rgba(96,198,169,.5); color: #c6f5e8; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0 30px;
}
.topbar h1 { font-size: 34px; margin: 0; }

.profile-card { padding: 26px; }
.profile-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--accent);
  font-size: 22px;
  font-weight: 800;
}
.profile-card h2 { margin-bottom: 8px; font-size: 18px; }
.profile-card p { color: var(--muted); margin: 4px 0; word-break: break-word; }
.status-pill {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 9px;
  background: var(--accent-soft);
  color: #bce7e3;
  font-size: 11px;
  font-weight: 700;
}

.result-card {
  max-width: 650px;
  margin: 12vh auto 0;
  padding: 42px;
  text-align: center;
}
.result-card h1 { font-size: 34px; }
.result-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}
.result-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(96,198,169,.4);
  background: rgba(96,198,169,.12);
  color: var(--success);
  font-size: 28px;
  font-weight: 800;
}
.result-error {
  border-color: rgba(231,107,107,.4);
  background: rgba(231,107,107,.12);
  color: var(--danger);
}

select { min-height: 44px; }
select:disabled { opacity: .6; }

/* Páginas da agenda (escritório) */
.stack { display: grid; gap: 22px; }
.acoes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.assunto-box {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  white-space: pre-line;
  color: var(--text) !important;
}
.reagendar { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.reagendar summary { cursor: pointer; font-weight: 700; font-size: 13px; margin-bottom: 14px; color: #d9e0e7; }
.ata-preview {
  background: #fff;
  color: #222;
  padding: 22px 26px;
  line-height: 1.55;
  max-height: 70vh;
  overflow: auto;
}
.itens { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.itens label, .check-linha { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.itens input, .check-linha input { width: auto; min-height: 0; margin-top: 3px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1120px); padding-top: 20px; }
  .hero { padding-top: 28px; }
  .panel-grid, .account-layout, .fields-2, .fields-3 { grid-template-columns: 1fr; }
  .account-layout { gap: 14px; }
  .topbar { align-items: flex-start; }
  .form-card { padding: 21px; }
  .hero-actions .btn { width: 100%; }
}
