/* Consulta Studio 0.3 — Design Studio + Messaging. No external dependencies. */
.template-selector{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:23px}
.template-pill{background:#fff;border:1px solid #e1eae5;border-radius:12px;display:flex;flex-direction:column;gap:8px;padding:16px 14px;min-height:85px;transition:border-color .2s,transform .2s,box-shadow .2s}
.template-pill small{font-size:9px;letter-spacing:1.3px;color:#9eaaa5;font-weight:750}.template-pill strong{font-size:12px;color:#40594f;font-weight:720;line-height:1.4}.template-pill:hover{transform:translateY(-2px);border-color:#8abca7}.template-pill.active{background:#edf6f0;border-color:#5c9b82;box-shadow:inset 0 0 0 1px #6da58e}.template-pill.active small,.template-pill.active strong{color:#245b44}
.editor-layout{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(350px,.96fr);gap:20px;align-items:start}.editor-form-card{padding:27px 29px}.editor-form-card form{gap:14px}.editor-section-heading{display:flex;align-items:center;gap:13px;margin:18px 0 5px;padding-top:18px;border-top:1px solid #e5ece7}.editor-section-heading:first-of-type{padding-top:0;border:0;margin-top:0}.editor-section-heading>span{width:35px;height:35px;border-radius:10px;background:#eaf3ed;color:#3b7c61;display:grid;place-items:center;font-size:11px;font-weight:850;flex:0 0 35px}.editor-section-heading h2{font-size:16px;letter-spacing:-.3px;margin:0 0 4px;color:#273f34}.editor-section-heading p{font-size:11px;line-height:1.5;margin:0;color:#91a098}.editor-form-card .vertical-form>label{display:flex;flex-direction:column;gap:7px}.editor-form-card input[type='color']{height:49px;padding:5px;width:100%;cursor:pointer}.editor-helper{display:flex;flex-direction:column;justify-content:center;gap:5px}.editor-helper strong{font-size:11px}.editor-helper small{font-size:11px;color:#8d9a93;line-height:1.5}.upload-zone{display:grid;grid-template-columns:91px minmax(0,1fr);align-items:center;gap:13px;background:#f9fbf9;border:1px solid #e8eee9;padding:12px;border-radius:11px}.upload-zone>.image-thumbnail{grid-row:span 2;width:91px;height:81px;background:#e7eeea;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#547d69}.upload-zone .image-thumbnail img{width:100%;height:100%;object-fit:cover}.upload-zone>.image-thumbnail img[hidden]{display:none}.upload-zone .image-thumbnail.logo-thumbnail img{object-fit:contain;background:white}.upload-zone>label:not(.checkline){display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:700;min-width:0}.upload-zone input[type=file]{max-width:100%;font-size:10px}.upload-zone .checkline{grid-column:2;line-height:1.2;color:#7f8c84;font-size:10px}.editor-notice{padding:11px 15px;background:#fff7e6;border:1px solid #ebddc6;border-radius:9px;font-size:11px;line-height:1.6;color:#80683d;margin:0}.service-editor{border:1px solid #e5ece7;border-radius:10px;background:#fff}.service-editor summary{cursor:pointer;display:flex;align-items:center;gap:11px;padding:13px 15px;list-style:none;font-size:12px}.service-editor summary::-webkit-details-marker{display:none}.service-editor summary span{background:#f2f6f3;color:#55816b;font-weight:800;padding:7px;border-radius:7px}.service-editor summary strong{flex:1}.service-editor summary:after{content:'+';color:#618d77;font-size:19px}.service-editor[open] summary:after{content:'−'}.service-editor-fields{display:flex;flex-direction:column;gap:13px;padding:15px;border-top:1px solid #edf1ed;background:#fbfcfb}.service-editor-fields label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:670}.editor-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding-top:14px}.editor-actions span{font-size:11px;color:#82938a}
.editor-right{position:sticky;top:25px;display:flex;flex-direction:column;gap:15px}.editor-preview-panel{padding:19px}.preview-panel-heading{display:flex;justify-content:space-between;align-items:start;padding:0 3px 16px}.preview-panel-heading strong,.preview-panel-heading small{display:block}.preview-panel-heading strong{font-size:13px;color:#355147}.preview-panel-heading small{font-size:11px;margin-top:4px;color:#9aaba1}.preview-panel-heading>span{font-size:9px;color:#497761;font-weight:850;letter-spacing:1.4px;padding:7px 10px;border:1px solid #dae8dd;border-radius:20px}.mini-browser{border:1px solid #e0e7e5;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 8px 22px #20402c08}.mini-browser-top{height:29px;background:#f0f3f2;display:flex;gap:5px;align-items:center;padding:0 12px}.mini-browser-top span{height:7px;width:7px;border-radius:50%;background:#cbd4d0}.mini-browser-top em{font-style:normal;margin-left:auto;font-size:9px;color:#a4afa9}.mini-site{--mini-accent:#087bb5}.mini-nav{height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 16px}.mini-nav strong{font-size:11px;color:#263b45}.mini-nav i{font-size:8px;font-style:normal;color:#819096}.mini-hero{min-height:274px;display:grid;grid-template-columns:56% 44%;margin:0 11px;background:color-mix(in srgb,var(--mini-accent) 10%,white);overflow:hidden;border-radius:8px}.mini-hero>div{padding:23px 10px 18px 18px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}.mini-hero small{font-size:9px;text-transform:uppercase;color:var(--mini-accent);font-weight:800;letter-spacing:.5px}.mini-hero h2{font-family:'Segoe UI',Arial,sans-serif;font-size:clamp(17px,2vw,27px);line-height:1.14;letter-spacing:-.7px;font-weight:800;color:#173444;margin:13px 0}.mini-hero p{font-size:10px;line-height:1.6;color:#617781;max-height:84px;overflow:hidden;margin:0 0 13px}.mini-hero b{font-weight:720;font-size:9px;background:var(--mini-accent);color:white;border-radius:5px;padding:10px 13px}.mini-hero img{width:100%;height:100%;min-height:274px;object-fit:cover}.mini-services{text-align:center;padding:22px 17px 25px}.mini-services>small{font-size:8px;color:var(--mini-accent);font-weight:800;letter-spacing:1px}.mini-services>strong{display:block;font-size:16px;line-height:1.25;color:#173444;margin:8px auto;max-width:290px}.mini-services>p{font-size:10px;color:#6f8386;max-width:340px;margin:8px auto 15px;line-height:1.5}.mini-service-list{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.mini-service-list span{display:grid;place-items:center;min-height:45px;padding:7px;font-size:9px;color:#526872;border:1px solid #e9edef;border-radius:5px;background:#fff}.editor-preview-note{font-size:11px;line-height:1.6;color:#9baba2;margin:15px 4px 0}.editor-tip{display:flex;gap:12px;align-items:flex-start;background:#edf5f1;border-radius:12px;padding:18px;color:#467b61}.editor-tip strong{font-size:12px}.editor-tip p{font-size:11px;line-height:1.6;margin:5px 0 0;color:#778e80}
/* Messages */
.message-heading-icon{color:#2c8566;background:#e6f3ea;width:48px;height:48px;display:grid;place-items:center;border-radius:12px}.message-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.8fr);gap:20px;align-items:start}.message-compose,.message-history{padding:26px}.message-compose>.vertical-form,.message-compose>form{margin-top:25px;max-width:700px}.message-patient{display:flex;align-items:center;gap:13px;margin-top:22px;padding:14px;border:1px solid #e6ede8;border-radius:10px;background:#fbfcfb}.message-patient-avatar{color:#36775f;background:#e5f3eb;display:grid;place-items:center;width:38px;height:38px;border-radius:50%}.message-patient>div{flex:1}.message-patient strong,.message-patient small{display:block}.message-patient strong{font-size:13px}.message-patient small{color:#92a098;font-size:11px;margin-top:4px}.message-patient>a{font-size:11px;font-weight:700;color:#488b6d}.message-bubble{background:#ecf7f0;color:#426751;border-radius:14px;padding:18px 20px;margin:20px 0;border:1px solid #dcefe1}.message-bubble>small{font-size:10px;letter-spacing:1.1px;color:#5b8d72;font-weight:800}.message-bubble p{font-size:14px;line-height:1.75;color:#284f3a}.message-bubble span{font-size:10px;color:#729783}.send-options{display:grid;grid-template-columns:1fr 1fr;gap:15px}.send-options>div{padding:18px;background:#fcfdfc;border:1px solid #e5ece7;border-radius:12px}.send-options h3{font-size:13px;margin:0 0 8px;color:#2f4d3a}.send-options p{font-size:11px;color:#84948b;line-height:1.6;margin:0 0 15px;min-height:88px}.send-options .btn{font-size:11px;width:100%;white-space:normal}.send-options button:disabled{cursor:not-allowed;opacity:.55}.message-record-form{margin-top:9px}.message-log{margin-top:19px}.message-log article{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #edf1ed}.message-log strong,.message-log small{display:block}.message-log strong{font-size:11px}.message-log small{font-size:10px;color:#a6b1aa;margin-top:5px}.message-log span{background:#edf5ef;color:#518068;padding:6px 8px;border-radius:15px;font-size:9px;white-space:nowrap}.message-security-tip{display:flex;gap:10px;align-items:start;background:#f8f6ef;border-radius:10px;padding:14px;color:#92764b;margin-top:22px}.message-security-tip p{font-size:11px;line-height:1.65;margin:0}.message-empty{font-size:12px;color:#9daaa4;border-radius:9px;padding:28px;text-align:center;background:#f8faf8;margin-top:18px}
.site-custom-logo{width:auto;height:51px;max-width:130px;object-fit:contain;margin-right:3px}
@media(max-width:1250px){.template-selector{grid-template-columns:repeat(3,1fr)}.editor-layout{grid-template-columns:1fr}.editor-right{position:static}}
@media(max-width:960px){.message-layout{grid-template-columns:1fr}}
@media(max-width:700px){.template-selector{grid-template-columns:repeat(2,1fr)}.editor-form-card,.message-compose,.message-history{padding:19px}.mini-hero{min-height:230px}.mini-hero img{min-height:230px}.mini-hero h2{font-size:19px}.mini-hero p{font-size:9px}.send-options{grid-template-columns:1fr}.send-options p{min-height:auto}.editor-preview-panel{padding:12px}.upload-zone{grid-template-columns:70px 1fr}.upload-zone>.image-thumbnail{width:70px;height:70px}.message-patient{flex-wrap:wrap}}
.patient-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
@media(max-width:700px){.patient-header-actions{width:100%}}
