:root {

  --ink: #20343a;

  --muted: #607278;

  --line: #d9e3e2;

  --canvas: #f5f8fc;

  --paper: #ffffff;

  --teal: #08766e;

  --teal-dark: #0d5653;

  --teal-soft: #e5f3ef;

  --amber-soft: #fff4d8;

  --coral: #b84d3f;

  --blue: #2563a6;
  --blue-soft: #eaf3ff;
  --rose: #a83260;
  --rose-soft: #fcebf2;
  --gold: #91600b;

}



body {

  margin: 0;

  color: var(--ink);

  background: linear-gradient(180deg, #eef5fc 0, var(--canvas) 360px);

  font-family: "Trebuchet MS", "Segoe UI", sans-serif;

  line-height: 1.5;

}



.app-shell { max-width: 1440px; }

.topbar { padding: 16px 0; background: #173c3b; color: #fff; border-bottom: 4px solid #efbc52; }
.topbar > .app-shell { flex-wrap: wrap; }
.topbar form { margin: 0; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }

.brand-mark { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 8px; background: #f1bd65; color: #263d3a; font-size: 13px; font-weight: 800; }

.brand strong, .brand small { display: block; }

.brand strong { font-size: 15px; }

.brand small { color: #c4d7d2; font-size: 12px; }

.page-intro { max-width: 850px; }

.eyebrow { margin: 0; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: 0; }

.page-intro h1 { margin: 5px 0 7px; font-size: 2rem; font-weight: 750; }

.intro-copy { max-width: 700px; margin: 0; color: var(--muted); font-size: 16px; }



.quick-panel, .form-panel, .side-panel, .result-panel, .history-panel, .landing-choice {

  border: 1px solid var(--line);

  border-radius: 8px;

  background: var(--paper);

  box-shadow: 0 5px 20px rgb(32 52 58 / 4%);

}

.landing-choice { padding: 28px 0; text-align: left; border: 0; border-block: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }

.landing-choice-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

.landing-btn { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1 1 280px; max-width: 420px; padding: 20px; border-radius: 8px; font-size: 17px; font-weight: 800; line-height: 1.3; text-align: left; }
.landing-btn > i { font-size: 26px; }
.landing-btn > span { min-width: 0; }
.landing-btn-title, .landing-btn-subtitle { display: block; }
.landing-btn-subtitle { margin-top: 6px; }
.landing-btn.btn-outline-primary { --bs-btn-color: var(--blue); --bs-btn-border-color: #98b8da; --bs-btn-hover-bg: var(--blue-soft); --bs-btn-hover-color: #184777; --bs-btn-hover-border-color: var(--blue); background: #fff; }

.landing-btn-title { font-size: 18px; }

.landing-btn-subtitle { color: inherit; opacity: .85; font-size: 13px; font-weight: 500; }

.landing-btn.btn-outline-primary .landing-btn-subtitle { color: var(--muted); opacity: 1; }

.quick-panel { display: flex; gap: 16px; padding: 20px 22px; border-top: 3px solid #d39a3d; }

.quick-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 10px; background: var(--amber-soft); color: #81551b; font-size: 20px; }

.quick-panel h2, .form-heading h2, .side-heading h2, .result-heading h2 { margin: 0; font-size: 19px; font-weight: 750; }

.quick-panel p, .side-heading p { margin: 4px 0 12px; color: var(--muted); font-size: 14px; }

.form-panel { padding: 24px; }

.form-heading, .result-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }

.form-heading { margin-bottom: 20px; }

.status-badge { max-width: 230px; padding: 7px 10px; border-radius: 6px; background: #edf1f1; color: #526267; font-size: 12px; white-space: normal; text-align: center; }

.status-badge.ok { background: #e1f3e9; color: #17643d; }

.status-badge.warn { background: #fff0d2; color: #76520e; }



.step-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 4px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }

.step-nav a { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 8px; padding: 8px 5px; color: #45595e; background: #f9fbfa; font-size: 13px; font-weight: 650; text-decoration: none; }

.step-nav a + a { border-left: 1px solid var(--line); }

.step-nav a:hover, .step-nav a:focus-visible { background: var(--teal-soft); color: var(--teal-dark); }

.step-nav a span:first-child { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 50%; background: #dcebe7; color: var(--teal-dark); font-size: 12px; }

.form-step { padding: 23px 0 25px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }

.form-step-last { border-bottom: 0; padding-bottom: 6px; }

.step-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }

.step-number { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 8px; background: var(--teal-soft); color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.form-step:nth-of-type(2) .step-number { background: var(--blue-soft); color: var(--blue); }
.form-step:nth-of-type(3) .step-number { background: var(--rose-soft); color: var(--rose); }
.form-step:nth-of-type(4) .step-number { background: var(--amber-soft); color: var(--gold); }

.step-heading h3 { margin: 0; font-size: 16px; font-weight: 750; }

.step-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.form-label { margin-bottom: 7px; color: #293f43; font-size: 14px; font-weight: 700; }

.field-note { margin-left: 4px; color: #68797d; font-size: 11px; font-weight: 500; }

.form-control, .form-select { min-height: 46px; max-width: 100%; border-color: #aebfcb; border-radius: 6px; color: var(--ink); font-size: 16px; }

textarea.form-control { min-height: 76px; resize: vertical; }

.guided-field { border-left: 3px solid #74b8a6; background-color: #f1f9f5; }

.form-control:focus, .form-select:focus { border-color: var(--teal); background-color: #fff; box-shadow: 0 0 0 .2rem rgb(18 110 105 / 16%); }

.guided-field:focus { border-left-color: var(--teal); }

.form-text { color: #637579; font-size: 12px; }

.info-panel { min-height: 44px; padding: 11px 13px; border-left: 3px solid #4d9b87; border-radius: 4px; background: #edf7f2; color: #365a52; font-size: 13px; }

.wizard-step { min-height: 130px; }

.activity-picker-open { --bs-modal-width: 900px; }
.activity-selection { min-height: 20px; margin: 8px 0 18px; color: var(--teal-dark); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.activity-category { --activity-accent: #126e69; --activity-soft: #e5f3ef; min-width: 0; margin: 0 0 22px; }
.activity-category:nth-child(2) { --activity-accent: #986016; --activity-soft: #fff4d8; }
.activity-category:nth-child(3) { --activity-accent: #b04468; --activity-soft: #faeaf0; }
.activity-category:nth-child(4) { --activity-accent: #306aa0; --activity-soft: #eaf2fb; }
.activity-category:nth-child(5) { --activity-accent: #47752b; --activity-soft: #eef5e7; }
.activity-category:nth-child(6) { --activity-accent: #9b5042; --activity-soft: #faece7; }
.activity-category legend { float: none; width: auto; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.activity-choice { position: relative; min-width: 0; }
.activity-tile { display: flex; align-items: center; gap: 10px; min-height: 76px; height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.activity-tile span { min-width: 0; flex: 1; font-size: 13px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.activity-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 6px; background: var(--activity-soft); color: var(--activity-accent); font-size: 20px; }
.activity-check { width: 16px; flex: 0 0 16px; color: var(--activity-accent); visibility: hidden; }
.activity-tile:hover { border-color: var(--activity-accent); background: var(--activity-soft); }
.activity-option:checked + .activity-tile { border-color: var(--activity-accent); background: var(--activity-soft); box-shadow: inset 0 0 0 1px var(--activity-accent); }
.activity-option:checked + .activity-tile .activity-check { visibility: visible; }
.activity-option:focus-visible + .activity-tile { outline: 3px solid var(--activity-accent); outline-offset: 3px; }
.activity-category[hidden], .activity-choice[hidden] { display: none; }
@media (max-width: 575.98px) {
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .activity-tile { flex-direction: column; align-items: flex-start; gap: 7px; min-height: 116px; padding: 10px; }
  .activity-check { position: absolute; top: 12px; right: 10px; }
}

.attachment-list { display: grid; gap: 6px; margin-top: 10px; }
.material-dropzone { display: grid; gap: 3px; justify-items: center; border: 1px dashed #82a9a4; border-radius: 10px; padding: 14px 10px; color: #23645b; background: #f1f8f6; cursor: pointer; text-align: center; }
.material-upload-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-size: 22px; font-weight: 700; line-height: 1; }
.material-dropzone strong { font-size: 14px; }
.btn-material-top { border: 1px solid #d7b36a; background: #f5e3b4; color: #3d3322; font-weight: 700; }
.btn-material-top:hover, .btn-material-top:focus-visible { border-color: #f5e3b4; background: #fff1cd; color: #2d261a; }
.btn-material-top small { margin-left: 3px; font-size: 10px; font-weight: 500; }
.material-library-modal { border: 0; border-radius: 14px; overflow: hidden; }
.material-library-modal .modal-header { background: #f7f2e7; border-bottom-color: #eadfc9; }
.material-folder-select { min-width: 220px; max-width: 360px; }
.material-dropzone span { font-size: 12px; }
.material-dropzone.is-dragging { border-color: var(--primary); background: #edf4ff; color: var(--primary); }
.material-list { display: grid; gap: 10px; margin-top: 12px; max-height: 520px; overflow: auto; }
.material-folder { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: #fff; box-shadow: 0 4px 12px rgb(32 52 58 / 4%); }
.material-folder-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.material-folder-heading { padding-bottom: 3px; }
.material-folder-heading strong, .material-file strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; width: 100%; margin-top: 10px; }
.material-file { display: grid; grid-template-rows: 100px 34px; justify-items: center; gap: 7px; min-width: 0; padding: 9px 8px 8px; border: 1px solid #e2e8e6; border-radius: 10px; background: #fbfdfc; box-shadow: 0 3px 10px rgb(32 52 58 / 5%); }
.material-file-visual { position: relative; display: grid; width: 100px; height: 100px; max-width: 100px; max-height: 100px; place-items: center; overflow: hidden; border-radius: 8px; background: #e8f1f0; color: #23645b; font-size: 12px; font-weight: 800; letter-spacing: .04em; cursor: zoom-in; }
.material-file-visual img { display: block; width: 100px; height: 100px; max-width: 100px; max-height: 100px; object-fit: cover; }
.material-file-preview { position: fixed; z-index: 2000; display: none; width: 400px; height: 400px; padding: 8px; border: 1px solid #cbd3dc; border-radius: 10px; background: #fff; box-shadow: 0 14px 40px rgb(23 32 42 / 24%); pointer-events: none; }
.material-file-preview.is-visible { display: block; }
.material-file-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.material-file-visual.type-pdf { background: #fae9e7; color: #a33a31; }
.material-file-visual.type-office { background: #e8eefb; color: #31599b; }
.material-file-visual.type-archive { background: #fff1d9; color: #95621a; }
.material-file-actions { display: flex; justify-content: center; gap: 8px; }
.material-file-actions .btn { display: grid; width: 34px; height: 32px; place-items: center; padding: 3px; border-radius: 7px; font-size: 16px; line-height: 1; }
.material-file-actions .btn:hover { transform: translateY(-1px); }

.attachment-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #f7faf9; font-size: 13px; }

.attachment-item small { display: block; color: var(--muted); }

.attachment-item .btn { min-height: 32px; flex: 0 0 auto; }

.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

.form-actions p { margin: 0; color: var(--muted); font-size: 13px; }

.btn { min-height: 44px; border-radius: 6px; font-size: 14px; font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
.btn i { margin-right: 4px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.form-check-input { width: 1.2em; height: 1.2em; }
.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
h1, h2, h3, .brand, .modal-title { overflow-wrap: anywhere; letter-spacing: 0; }
.row > *, .d-flex > *, .form-heading > *, .result-heading > * { min-width: 0; }

.btn-primary { --bs-btn-bg: var(--teal); --bs-btn-border-color: var(--teal); --bs-btn-hover-bg: var(--teal-dark); --bs-btn-hover-border-color: var(--teal-dark); --bs-btn-active-bg: var(--teal-dark); --bs-btn-active-border-color: var(--teal-dark); }

.btn-outline-primary { --bs-btn-color: var(--teal-dark); --bs-btn-border-color: #83aaa1; --bs-btn-hover-bg: var(--teal-dark); --bs-btn-hover-border-color: var(--teal-dark); }

.btn-generate { min-width: 160px; }



.side-panel { position: sticky; top: 18px; padding: 20px; }

.side-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; }

.side-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 8px; background: #edf1df; color: #536132; font-size: 17px; }

.side-heading h2 { margin-top: 2px; font-size: 17px; }

.side-heading p { margin-bottom: 0; font-size: 12px; }

.planning-list { max-height: 700px; margin-top: 12px; overflow: auto; }

.item.planejamento { display: block; width: 100%; margin: 0; padding: 12px 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; }

.item.planejamento:hover, .item.planejamento:focus-visible { background: #f1f8f5; }

.item.planejamento strong, .item.planejamento small, .planning-action { display: block; }

.item.planejamento strong { font-size: 13px; }

.item.planejamento small { margin-top: 3px; color: var(--muted); font-size: 12px; }

.planning-action { margin-top: 7px; color: var(--teal); font-size: 11px; font-weight: 750; }

.hint { color: var(--muted); font-size: 13px; }



.result-panel, .history-panel { padding: 22px; }

.result-heading { margin-bottom: 16px; }

.result-panel pre, .history pre { max-height: 560px; margin: 0; padding: 18px; overflow: auto; border-radius: 7px; background: #203237; color: #f1f7f4; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.65 Consolas, monospace; }

.result-panel .alert { margin-top: 14px; }

.history { padding: 12px 0; border-top: 1px solid var(--line); }

.history summary { color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 700; }

.history summary span { float: right; margin-left: 10px; color: var(--muted); font-size: 12px; font-weight: 400; }

.history pre { margin-top: 12px; }

.hidden { display: none !important; }



@media (max-width: 767.98px) {

  .app-shell { padding-inline: 16px; }
  .topbar > .app-shell { gap: 10px !important; }
  .topbar .brand { width: 100%; }
  .topbar .justify-content-end { justify-content: flex-start !important; width: 100%; }
  .page-intro h1 { font-size: 1.65rem; }
  .landing-choice h2 { font-size: 1.3rem; }
  .landing-btn { max-width: none; }
  .form-actions > div { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .input-group { flex-wrap: wrap; }
  .input-group > .form-control { min-width: 0; }
  .material-folder-select { min-width: 0; width: 100%; max-width: none; }
  .material-folder-heading { flex-wrap: wrap; }
  .material-folder-heading > strong { width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .modal-header { align-items: flex-start; }
  .modal-header .btn-close { flex-shrink: 0; }

  .form-panel, .side-panel, .result-panel, .history-panel { padding: 17px; }

  .quick-panel { gap: 11px; padding: 16px; }

  .form-heading, .result-heading, .form-actions { align-items: flex-start; flex-direction: column; }

  .form-actions > div { width: 100%; }

  .form-actions .btn-generate { flex: 1; }

  .side-panel { position: static; }

  .step-nav a { flex-direction: column; gap: 4px; font-size: 11px; }

  .step-nav a span:first-child { width: 22px; height: 22px; flex-basis: 22px; }

  .history summary span { float: none; display: block; margin: 4px 0 0; }

}



@media (prefers-reduced-motion: no-preference) {

  .form-step { animation: arrive .35s ease-out both; }

  @keyframes arrive { from { opacity: .65; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

}