/* V2: extensão dos componentes e da identidade visual já aprovados. */
.settings-grid,.models-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.settings-card{text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:25px;border-radius:14px;border-color:#dfe8ee;min-width:0}
.settings-icon,.model-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:#e8f3fa;color:#386583;font-size:24px}
.settings-card strong{font-size:16px;font-weight:600;color:#203e55}
.settings-card p{font-size:12px;line-height:1.7;color:#7a8e9b;margin:0;flex:1}
.settings-card>span:last-child{font-size:11px;color:#7397af}
.settings-intro{margin-bottom:22px;font-size:13px;line-height:1.7}
.workspace-breadcrumb{margin-top:20px}
.workspace-breadcrumb button{font-size:12px;border:0;background:transparent;padding:6px 0;color:#718b9e}
.workspace-breadcrumb+.page-heading{padding-top:15px}
.topbar>span:first-child{min-width:0;line-height:1.5;padding-right:15px}
.topbar .user-avatar{flex-shrink:0}
.page-heading>div:first-child{min-width:0}
.page-heading h1{overflow-wrap:anywhere}
.page-heading h1:focus{outline:none}
.section-title{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:18px}
.section-title h3{margin:0}
.section-title button{font-size:11px}
.drawer-tabs button{font-size:11px;padding:10px 5px;flex-shrink:0}
.model-card{display:flex;flex-direction:column;margin:0;min-width:0}
.model-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}
.model-card h2{display:block;font-size:18px;line-height:1.5;margin-bottom:12px;overflow-wrap:anywhere}
.model-card p{font-size:12px;margin-bottom:12px}
.model-card>small{font-size:11px}
.model-active{background:#eaf4ef;color:#43836b}
.model-inactive{background:#f0f3f5;color:#82929d}
.model-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto;padding-top:24px}
.model-actions button{font-size:11px;padding:10px 7px}
.model-intro{margin-bottom:24px;line-height:1.6;font-size:13px}
.settings-list{margin-top:24px}
.settings-list article{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid #eaf0f4;padding:17px 0;font-size:13px;line-height:1.5}
.settings-list article strong{font-weight:600}
.settings-list article>span{flex-shrink:0}
.builder-placeholder{text-align:center;padding:40px;max-width:920px;margin-left:auto;margin-right:auto}
.builder-placeholder .settings-icon{display:flex;margin:0 auto 25px;width:58px;height:58px;font-size:30px}
.builder-placeholder h2{display:block;font-family:Georgia,serif;font-weight:400;font-size:28px;margin-top:18px}
.builder-placeholder p{line-height:1.8;font-size:13px;max-width:640px;margin-left:auto;margin-right:auto}
.builder-outline{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;background:#f1f7fa;padding:20px;border:1px dashed #c7dce9;border-radius:12px;margin:25px auto;font-size:13px}
.type-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.type-tags>span{background:#eef5f9;color:#67859b;border:1px solid #dfeaf0;padding:10px 13px;border-radius:8px;font-size:12px}
.form-top{display:flex;align-items:center;justify-content:space-between;gap:30px;max-width:1000px;margin-left:auto;margin-right:auto}
.form-top h2{margin-top:12px;margin-bottom:8px}
.form-top p{font-size:12px;margin:0;line-height:1.7}
.form-top>label{display:flex;flex-direction:column;gap:9px;font-size:12px;flex:1;max-width:420px;min-width:0}
.form-top select{font-size:14px}
.form-safety,.snapshot-note{max-width:1000px;margin:0 auto 20px;padding:14px 18px;background:#edf5fa;border:1px solid #dceaf2;border-radius:10px;color:#638095;font-size:12px;line-height:1.7}
.snapshot-note{border-left:3px solid #bba36a;background:#f8f5ed;color:#8c7749}
.form-paper{max-width:1000px;margin-left:auto;margin-right:auto;padding:32px 40px}
.form-section{margin-bottom:25px}
.form-section:last-child{margin-bottom:0}
.form-section>header{margin-bottom:28px;border-bottom:1px solid #e7eef3;padding-bottom:20px}
.form-section>header h2{display:block;margin:12px 0 9px;font-size:20px}
.form-section>header p{font-size:12px;line-height:1.7;margin:0}
.form-section-title{font-size:17px;margin:28px 0 20px}
.form-information{font-size:12px;line-height:1.7;background:#f6f9fb;border-radius:8px;padding:14px 18px;color:#78909f;margin:20px 0}
.form-information p{margin:10px 0 0}
.form-field{margin-bottom:25px}
.form-field>label{font-size:13px;font-weight:600;line-height:1.6;display:block;margin-bottom:4px}
.field-type{font-size:10px;color:#97a7b2;display:block;margin-bottom:10px}
.field-help{display:block;line-height:1.6;margin-bottom:10px}
.required-marker{color:#a98c56}
.field-choices{border:1px solid #dce7ee;border-radius:10px;padding:14px 18px;min-width:0;margin:0}
.field-choices legend{font-size:13px;font-weight:600;padding:0 6px}
.field-choices label{display:flex;align-items:center;gap:10px;font-size:13px;min-height:44px}
.field-choices input{width:18px;height:18px;min-height:0;padding:0;flex-shrink:0;accent-color:#285978}
.answer-value{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:10px 0 0;padding:14px 18px;background:#f6f9fb;border:1px solid #e8eef2;border-radius:9px;font-size:13px}
.form-paper input:disabled,.form-paper select:disabled,.form-paper textarea:disabled{background:#f5f8fa;color:#8b9ea9;opacity:1}
.form-bottom{max-width:1000px;margin:0 auto 25px;padding:5px 0 15px}
.form-bottom>p{font-size:12px;line-height:1.7}
.form-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
#anamnesis-error{color:#a44545;font-size:12px}
@media(max-width:1150px){.settings-grid,.models-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-top{flex-wrap:wrap;gap:20px}.form-top>label{max-width:none;flex-basis:100%}.form-paper{padding:28px}}
@media(max-width:700px){
  .settings-grid,.models-grid{grid-template-columns:1fr;gap:16px}
  .settings-card{padding:22px}
  .model-card{padding:22px}
  .model-card h2{font-size:18px}
  .model-actions button{min-height:44px}
  .settings-list article{font-size:12px;gap:12px;flex-wrap:wrap}
  .settings-list article>strong{flex:1;min-width:120px}
  .builder-placeholder{padding:28px 20px}
  .builder-placeholder h2{font-size:24px}
  .builder-outline{gap:10px;padding:15px;font-size:12px}
  .form-top{padding:20px;gap:20px;align-items:flex-start}
  .form-top>label{width:100%;flex-basis:100%}
  .form-top select{font-size:16px}
  .form-paper{padding:22px 18px}
  .form-actions{flex-direction:column-reverse}
  .form-actions button{width:100%;min-height:44px}
  .form-safety,.snapshot-note{padding:13px 15px;font-size:11px}
  .form-field>input,.form-field>textarea,.form-field>select{font-size:16px}
  .topbar{font-size:10px}
}
