/* Isolated workspace layout; palette and background retained from current home. */
body.preview-workspace{overflow:auto;margin:0;padding:0 22px;min-height:100dvh;color:var(--amber-light);font-family:Arial,sans-serif}
.preview-header{max-width:1800px;margin:auto;display:flex;align-items:center;gap:16px;min-height:100px;padding:8px 2px}.preview-header img{width:96px;height:82px;object-fit:contain}.preview-header p{font-size:18px;color:var(--peach-gold);margin:0 0 7px}.preview-header small,.preview-note{font-size:12px;line-height:1.5;color:#d5b99a}.preview-login{margin-left:auto;white-space:nowrap}
.preview-workspace a,.preview-workspace button,.preview-workspace summary{color:var(--peach-gold);cursor:pointer}.preview-workspace a:hover,.preview-workspace button:hover,.preview-workspace summary:hover{text-shadow:0 0 12px #ffc875;filter:brightness(1.16)}.preview-workspace :focus-visible{outline:2px solid #ffda98;outline-offset:4px}.preview-workspace button{font:inherit}.preview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;max-width:1800px;margin:auto;align-items:stretch}.preview-panel{min-width:0;height:calc(100dvh - 164px);min-height:600px;border:1px solid var(--amber-light);background:rgba(0,0,0,.57);border-radius:18px;box-shadow:0 12px 35px #0007,0 0 22px #d4a57418;backdrop-filter:blur(7px);overflow:hidden;display:flex;flex-direction:column}.preview-panel-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding:18px 20px 12px}.preview-panel-heading h1{font-size:24px;margin:0;color:var(--peach-gold)}#chat-context{font-size:15.6px}.preview-traditions{margin:0 16px 12px;padding:10px 12px;border:1px solid #b8860b66;border-radius:10px;background:#0004}.preview-traditions summary{font-size:16.8px}.preview-tradition-grid{display:flex;flex-wrap:wrap;gap:6px;padding-top:10px}.preview-workspace .tradition-btn{width:auto;min-height:32px;border:1px solid #b8860b77;border-radius:7px;padding:6px 9px;font-size:14.4px;background:transparent;white-space:normal}.preview-workspace .tradition-btn.active{background:#b8860b44;box-shadow:0 0 9px #d4a57455}.preview-workspace .chat-section{display:flex;flex-direction:column;min-height:0;flex:1;margin:0;padding:0 16px 8px;background:none;border:0;box-shadow:none;border-radius:0;height:auto;width:100%;max-width:none;overflow:hidden}.preview-workspace .chat-messages{min-height:100px;flex:1;height:auto;max-height:none;padding:4px 0 12px;overflow-y:auto}.preview-workspace .message{max-width:100%;margin:8px 0;font-size:16.8px}.preview-workspace .message-content{max-width:100%;padding:14px;overflow-wrap:anywhere}.preview-workspace .message-text{font-size:16.8px;line-height:1.65}.preview-workspace .input-area{padding:10px 0 0;border-top:1px solid #b8860b66;flex-shrink:0}.preview-workspace .input-container{display:block}.preview-workspace .input-wrapper{width:100%}.preview-workspace #userInput{min-height:68px;max-height:140px;height:68px;width:100%;padding:12px;font-size:16.8px;box-sizing:border-box}.preview-workspace .buttons-row{justify-content:flex-start;margin:5px 0}.preview-workspace .chat-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:4px}.preview-workspace .new-chat-btn{width:auto;padding:8px 12px;font-size:15.6px;border-radius:8px}.preview-workspace #sendBtn{background:#b8860b44}.preview-workspace .disclaimer{font-size:13.2px;margin-top:10px!important}.preview-note{margin:0;padding:0 18px 12px}.preview-workspace .image-preview-container.active{max-height:100px}.preview-workspace .image-preview{max-height:80px}.preview-workspace .image-tooltip{display:none}.preview-workspace .loading{padding:8px}.preview-footer{max-width:1800px;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 18px;margin:14px auto;padding-bottom:8px}.preview-footer a{font-size:12px;text-decoration:none}.preview-mobile{display:none}#preview-chart-root{height:100%;min-height:0;overflow:auto}button:disabled{opacity:.5;cursor:not-allowed!important}
@media(max-width:800px){body.preview-workspace{padding:0 10px}.preview-header{min-height:85px;gap:8px}.preview-header img{width:68px;height:68px}.preview-header p{font-size:13px}.preview-header small{font-size:10px}.preview-login{font-size:12px}.preview-grid{display:block}.preview-panel{height:calc(100dvh - 160px);min-height:520px}.preview-mobile{display:flex;gap:8px;margin:0 0 10px}.preview-mobile button{flex:1;padding:10px;background:#0008;border:1px solid #b8860b88;border-radius:8px}.preview-mobile button[aria-pressed=true]{background:#b8860b44}#preview-chart{display:none}body[data-mobile-panel=chart] #preview-chart{display:flex}body[data-mobile-panel=chart] #preview-chat{display:none}.preview-panel-heading{padding:14px}.preview-workspace .chat-actions{gap:6px}.preview-workspace .new-chat-btn{padding:8px;font-size:14.4px}.preview-footer{gap:12px}.preview-tradition-grid{max-height:140px;overflow:auto}}
@media print{.preview-header,.preview-footer,.preview-mobile,#preview-chat{display:none!important}.preview-grid{display:block}.preview-panel{height:auto;overflow:visible;background:white;color:black;border:0;box-shadow:none}}

.preview-chart{padding:18px;color:var(--amber-light)}
body.preview-workspace{background-color:#100e0b}
/* Keep the original fixed artwork behind every workspace region, not over the header/footer. */
.preview-header,.preview-grid,.preview-footer,.preview-mobile{position:relative;z-index:2}
.preview-workspace .message-text,.preview-chart-body{color:var(--peach-gold)}
.preview-header small,.preview-note,.preview-chart-status{color:#e5c7a3}
.preview-footer a,.preview-login{color:var(--peach-gold)}

.preview-chart-tools details{flex-basis:100%;font-size:14.4px;line-height:1.5}.preview-chart-tools details small{display:block;padding:6px 0}.preview-editor-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14.4px}.preview-editor-toolbar details{flex:1}.preview-editor-toolbar p{padding:6px 0}
/* Requested workspace refinements — isolated to index2. */
.preview-header img{width:192px;height:164px}.preview-header{min-height:180px}.preview-header .preview-login{margin-left:auto;text-align:right}
.preview-panel{height:calc(100dvh - 244px)}
.preview-workspace .preview-traditions{border:0;background:none;margin:0;padding:12px 10px 4px;flex-shrink:0;text-align:center}
.preview-tradition-row{display:flex;justify-content:center;flex-wrap:wrap;gap:3px 16px}
.preview-workspace .tradition-btn{background:none;border:0;border-radius:0;padding:4px 0;min-height:26px;font-size:15.6px;box-shadow:none}
.preview-workspace .tradition-btn.active{background:none;box-shadow:none;text-decoration:underline;text-underline-offset:5px;color:#fff1dc;text-shadow:0 0 10px #d4a574}
.preview-chat-context{text-align:center;font-size:14.4px;padding:2px 10px 5px;color:var(--amber-light)}
.preview-workspace #userInput{border:1px solid var(--amber-light)!important;border-radius:9px;outline-offset:3px;min-height:60px;height:60px}
.preview-workspace .message-content{padding:10px}.preview-workspace .message{margin:4px 0}.preview-workspace .chat-messages{min-height:160px}
.preview-workspace .chat-actions{display:flex;position:relative;justify-content:center;align-items:center;min-height:34px;margin:4px 0 0;gap:0}
.chat-action-links{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin:0 45px}
.preview-workspace .new-chat-btn,.preview-workspace #sendBtn{border:0;background:none;box-shadow:none;padding:5px 0;font-size:15.6px;font-weight:400;color:var(--peach-gold)}
.preview-workspace #sendBtn{position:absolute;right:0;bottom:0}.preview-workspace .new-chat-btn:hover{background:none;box-shadow:none;text-shadow:0 0 12px #ffc875}
#imageTooltip{position:fixed;z-index:10010;width:min(330px,calc(100vw - 24px));padding:12px 14px;background:#17120d;color:#ffecd0;border:1px solid #d4a574;border-radius:9px;box-shadow:0 8px 24px #000a;font-size:15.6px;line-height:1.5;pointer-events:none}#imageTooltip[hidden]{display:none}
.preview-chart .preview-patient-back{background:none;border:0;box-shadow:none;padding:3px 0;color:var(--peach-gold);font-size:15.6px}.preview-chart .preview-patient-back:hover{box-shadow:none;text-shadow:0 0 12px #ffc875}
.preview-chart-heading:has(h2[hidden]):has(button[hidden]){display:none}.preview-patient-card{display:flex;align-items:center;justify-content:space-between;gap:12px}.preview-patient-meta{font-size:14.4px;color:#e5c7a3}.preview-demo-patient{border:1px solid #b8860b66;border-radius:8px;padding:14px;min-height:60px;cursor:default}.preview-demo-marker{font-size:13.2px;color:var(--amber-light);margin-left:8px}.preview-demo-label{font-size:14.4px;margin:8px 0 0;color:var(--amber-light)}
@media(max-width:800px){.preview-header img{width:136px;height:136px}.preview-header{min-height:150px}.preview-header p{font-size:13px}.preview-header .preview-login{font-size:12px}.preview-panel{height:calc(100dvh - 224px);min-height:610px}.preview-tradition-row{gap:2px 10px}.preview-workspace .tradition-btn{font-size:14.4px}.chat-action-links{gap:12px}.preview-workspace .new-chat-btn,.preview-workspace #sendBtn{font-size:14.4px}}
/* Let the document scroll rather than compressing the answer area beneath the larger brand. */
.preview-panel{height:calc(100dvh - 200px);min-height:680px}
@media(max-width:800px){.preview-panel{height:calc(100dvh - 190px);min-height:650px}}
/* The source logo has no large empty margin: double its displayed width without padding the image box. */
.preview-header img{width:192px;height:auto;aspect-ratio:800/610}.preview-header{min-height:164px}.preview-panel{height:calc(100dvh - 218px);min-height:680px}
@media(max-width:800px){.preview-header img{width:136px;height:auto;aspect-ratio:800/610}.preview-header{min-height:120px}.preview-panel{height:calc(100dvh - 180px);min-height:650px}}
/* Full-width, equal-panel workspace; preserve the doubled logo. */
body.preview-workspace{padding-left:12px;padding-right:12px;width:100%;min-width:0}
.preview-header,.preview-grid,.preview-footer{width:100%;max-width:none}
.preview-header,.preview-grid{margin-left:0;margin-right:0}.preview-grid{gap:16px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.preview-panel{width:100%;height:calc(100dvh - 230px);min-height:420px}
.preview-workspace .preview-traditions{display:flex;justify-content:center;align-content:flex-start;flex-wrap:wrap;gap:2px 16px;width:100%;padding:8px 8px 4px}
.preview-workspace .tradition-btn{flex:0 0 auto;max-width:100%;white-space:normal}
.preview-workspace .chat-messages{min-height:100px}.preview-workspace .chat-section{min-height:0}
@media(max-width:800px){body.preview-workspace{padding:0 8px}.preview-grid{display:block}.preview-panel{height:calc(100dvh - 220px);min-height:460px}.preview-workspace .preview-traditions{gap:2px 12px}.preview-header,.preview-footer{max-width:none}}
.preview-workspace .preview-traditions{column-gap:10px}.preview-tradition-item{display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;max-width:100%;min-width:0}.preview-tradition-dash{color:var(--amber-light);flex:none;user-select:none}
.preview-header,.preview-grid{margin-top:0;margin-bottom:0}
/* Center the logo itself on the background light; tagline occupies the space to its right. */
.preview-header{display:grid;grid-template-columns:minmax(0,1fr) 192px minmax(0,1fr);column-gap:16px;align-items:center;position:relative}
.preview-header>a:first-child{grid-column:2;justify-self:center}.preview-header>div{grid-column:3;min-width:0;padding-right:120px}.preview-header .preview-login{position:absolute;right:0;top:50%;transform:translateY(-50%);margin:0;text-align:right}.preview-header p{overflow-wrap:normal}
@media(max-width:800px){.preview-header{grid-template-columns:minmax(0,1fr) 136px minmax(0,1fr);column-gap:8px}.preview-header>div{padding-right:92px}}
@media(max-width:650px){.preview-header{grid-template-columns:minmax(0,1fr) 136px minmax(0,1fr);padding-top:28px;padding-bottom:8px;row-gap:6px;min-height:0}.preview-header>a:first-child{grid-column:2;grid-row:1}.preview-header>div{grid-column:1/-1;grid-row:2;padding-right:0;text-align:center}.preview-header p{margin:0;font-size:12px}.preview-header .preview-login{top:4px;transform:none;font-size:12px}.preview-panel{height:calc(100dvh - 235px);min-height:420px}}
/* Match both outer panels to the existing lighter chart surface; never fade text. */
.preview-workspace{--workspace-panel-surface:rgba(0,0,0,.57)}
.preview-workspace #preview-chat,.preview-workspace #preview-chart{background:var(--workspace-panel-surface);backdrop-filter:blur(7px)}
.preview-workspace #preview-chat .chat-section,.preview-workspace #preview-chat .chat-messages,.preview-workspace #preview-chat .input-area,.preview-workspace #preview-chart-root{background:transparent!important;backdrop-filter:none!important}
/* Conversation uses remaining panel space and scrolls only after it fills. */
.preview-workspace #chatMessages{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden}.preview-workspace #preview-chat .chat-section{flex:1 1 auto;min-height:0}.preview-workspace #chatMessages>.message{flex:none}
/* Defined answer viewport from the first welcome; individual bubbles remain natural height. */
.preview-workspace #preview-chat #chatMessages{background:rgba(255,239,212,.035)!important;border:1px solid #d4a57455;border-radius:10px;padding:10px;box-sizing:border-box;margin:5px 0 10px;backdrop-filter:none!important}

/* +20% actual panel type; inherited text scales once, not the page or header. */
.preview-workspace .preview-panel,.preview-workspace .preview-mobile{font-size:19.2px}
.preview-panel .preview-note{font-size:14.4px}
.preview-workspace .message-time,.preview-workspace .remove-image-btn{font-size:1.2rem}
.preview-workspace .image-upload-label{font-size:1.26rem}
.preview-workspace .welcome-section h2{font-size:2.4rem}
.preview-workspace .welcome-section p{font-size:1.32rem}
/* Larger actions wrap while keeping the group centered and Send at the right. */
.preview-workspace .chat-actions{display:grid;grid-template-columns:minmax(45px,1fr) minmax(0,auto) minmax(45px,1fr);gap:6px 10px}
.preview-workspace .chat-action-links{grid-column:2;margin:0;min-width:0;gap:8px 14px}
.preview-workspace #sendBtn{position:static;grid-column:3;justify-self:end;max-width:100%;white-space:normal}
.preview-workspace .input-area,.preview-workspace .input-wrapper{min-width:0}
/* Same logo size and header type; centered catchphrase now beneath the logo. */
.preview-header{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);row-gap:0;min-height:0;padding-top:8px;padding-bottom:12px}
.preview-header>a:first-child{grid-column:2;grid-row:1}
.preview-header>div{grid-column:1/-1;grid-row:2;padding-right:0;text-align:center;min-width:0}
.preview-header p{margin:0;overflow-wrap:anywhere}
.preview-header .preview-login{top:12px;transform:none}
@media(max-width:767px){.preview-workspace .welcome-section h2{font-size:1.5rem}}
@media(max-width:800px){.preview-header{padding-top:28px;padding-bottom:10px}.preview-header .preview-login{top:4px}}

/* VetSmart retains the original green artwork; subtle gold outlines match the published workspace. */
html,body.preview-workspace{background:#102417;color:#ead7b6}
.bg-fixed{position:fixed;inset:0;background:url('Images/Background-Paws.png') center 28%/cover no-repeat!important;z-index:-2}
.bg-overlay{position:fixed;inset:0;background:rgba(4,18,8,.28)!important;z-index:-1}
.preview-panel,.preview-chart-record,.preview-read-card,.preview-library-card{background-color:rgba(8,28,14,.54)}
.preview-panel{border:1px solid #D4A574}
.preview-traditions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#eec591}
.preview-species-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;column-gap:16px;row-gap:2px;width:100%;min-width:0}
.preview-workspace .preview-species-links .tradition-btn{min-height:36px;padding:6px 2px;overflow-wrap:anywhere}
.preview-workspace .preview-species-links .tradition-btn[aria-disabled=true]{opacity:.5;cursor:not-allowed}
.preview-workspace .preview-species-links .tradition-btn[aria-pressed=true][aria-disabled=true]{opacity:1}
.preview-workspace .preview-species-links .tradition-btn[aria-disabled=true]:hover{text-shadow:none;filter:none}
@media(max-width:800px){.preview-species-links{column-gap:12px}.preview-workspace .preview-species-links .tradition-btn{min-height:44px}}
#preview-species-note{flex-basis:100%;font-size:.8rem;opacity:.85}.preview-header img{object-fit:contain}

.preview-workspace .custom-modal-btn{background:rgba(8,28,14,.9);border:1px solid #D4A574;border-radius:10px;width:auto;min-width:88px;height:auto;padding:12px 18px}

/* Keep negative background layers inside the workspace stacking context, above its body paint. */
body.preview-workspace{isolation:isolate}

/* Let the existing header and equal panels keep their natural height, as in TOL.
   Legacy body flex/height rules otherwise squeeze the tagline into the panels. */
body.preview-workspace{height:auto}
.preview-header,.preview-grid,.preview-footer,.preview-mobile{flex-shrink:0}
/* Match the reference's breathing room above the answer viewport without
   replacing animal-species controls with human medical traditions. */
.preview-workspace .preview-traditions{min-height:66px;align-content:center;font-size:15.6px}
