:root{color-scheme:light;--bg-top: #f3f6fb;--bg-bottom: #e6edf7;--panel: #ffffff;--panel-strong: #ffffff;--panel-dark: #1f2937;--line: #d7e0ec;--line-strong: rgba(255, 255, 255, .14);--ink: #18324f;--muted: #5f7290;--teal: #416da4;--teal-strong: #234a80;--orange: #dfa038;--cream: #f6f9fd;--alert: #e49a2c;--danger: #a13c3c}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink)}body{min-height:100vh;background:linear-gradient(180deg,var(--bg-top) 0%,var(--bg-bottom) 100%)}button,input,select,textarea{font:inherit;max-width:100%}button{transition:transform .14s ease,box-shadow .14s ease,background .14s ease,border-color .14s ease}button:hover{transform:translateY(-1px)}.ui-icon{width:16px;height:16px;flex:0 0 16px}.button-label{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%}.button-label span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.button-label--danger{color:inherit}.page-shell{position:relative;min-height:100vh;padding:24px 24px 72px;overflow:hidden}.page-shell--workspace{display:grid;align-items:stretch}.page-noise{position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at 12% 18%,rgba(65,109,164,.09),transparent 22%),radial-gradient(circle at 84% 14%,rgba(223,160,56,.1),transparent 18%),linear-gradient(135deg,#ffffff5c,#fff0);pointer-events:none}.login-shell,.workspace-shell{position:relative;z-index:1}.login-shell{min-height:calc(100vh - 48px);display:grid;place-items:center}.login-card{width:min(420px,100%);padding:32px;border-radius:22px;background:#fffffff7;border:1px solid var(--line);box-shadow:0 18px 40px #1c324f14}.login-card__brand{display:flex;align-items:center;gap:14px;margin-bottom:24px}.login-card__brand strong,.workspace-sidebar__brand strong{display:block;font-size:1.05rem}.login-card__brand span:last-child,.workspace-sidebar__brand span:last-child,.workspace-sidebar__user span{color:var(--muted);font-size:.9rem}.login-card__mark,.workspace-sidebar__mark{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--teal),#5d7fc2);color:#fff;font-weight:700}.workspace-shell{min-height:calc(100vh - 48px);display:grid;grid-template-columns:minmax(270px,284px) minmax(0,1fr);gap:16px;min-width:0;max-width:100%;zoom:.8}.workspace-shell--collapsed{grid-template-columns:92px minmax(0,1fr)}.workspace-sidebar{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:14px;padding:16px;border-radius:22px;background:#fffffffa;border:1px solid var(--line);box-shadow:0 14px 32px #1c324f0f;min-width:0;max-width:100%;overflow:hidden}.workspace-sidebar__brand,.workspace-sidebar__user{display:flex;gap:10px;align-items:center;min-width:0;max-width:100%}.workspace-sidebar__brand{justify-content:space-between}.workspace-sidebar__brand>div{flex:1;min-width:0}.workspace-sidebar__brand strong,.workspace-sidebar__brand span,.workspace-sidebar__user strong,.workspace-sidebar__user span,.workspace-sidebar__doctor-meta strong,.workspace-sidebar__doctor-meta span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-sidebar__brand strong{font-size:.98rem}.workspace-sidebar__logo{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;background:#fff;border:1px solid var(--line);padding:7px}.workspace-sidebar__logo img{max-width:100%;max-height:100%;object-fit:contain}.workspace-sidebar__user{display:grid;gap:4px;padding:12px 14px;border-radius:16px;background:var(--cream);border:1px solid var(--line);min-width:0}.workspace-sidebar__nav,.workspace-sidebar__footer{display:grid;gap:8px;min-width:0;max-width:100%}.workspace-sidebar__section{display:grid;gap:10px;min-width:0;max-width:100%}.workspace-sidebar__section--doctor{padding:12px;border-radius:16px;background:linear-gradient(180deg,#f9fbff,#f3f7fd);border:1px solid var(--line)}.workspace-sidebar__section-title{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8090ab}.workspace-sidebar__select{width:100%;min-width:0;max-width:100%;min-height:42px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);text-overflow:ellipsis}.workspace-sidebar__doctor-meta{display:grid;gap:4px;padding:10px 12px;border-radius:14px;background:#0f695c0f;color:var(--ink);min-width:0;max-width:100%}.workspace-sidebar__doctor-meta span{color:var(--muted);font-size:.85rem}.workspace-sidebar__collapse{width:32px;height:32px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--ink)}.workspace-sidebar__subnav{display:grid;gap:8px;min-width:0;max-width:100%}.workspace-subnav-item{width:100%;min-width:0;max-width:100%;display:flex;align-items:center;justify-content:flex-start;min-height:40px;padding:0 12px;border-radius:12px;border:1px solid transparent;background:#f8fafc;color:var(--ink);text-align:left;cursor:pointer;overflow:hidden}.workspace-nav-item{width:100%;min-width:0;max-width:100%;display:flex;align-items:center;justify-content:flex-start;min-height:42px;padding:0 12px;border-radius:12px;border:1px solid transparent;background:transparent;color:var(--ink);text-align:left;cursor:pointer;overflow:hidden}.workspace-nav-item--active{background:#eef4ff;border-color:#c7d6f5;color:var(--teal-strong);box-shadow:inset 3px 0 0 var(--teal)}.workspace-shell--collapsed .workspace-sidebar{padding:18px 12px}.workspace-shell--collapsed .workspace-sidebar__brand>div,.workspace-shell--collapsed .workspace-sidebar__user,.workspace-shell--collapsed .workspace-sidebar__section,.workspace-shell--collapsed .workspace-nav-item .label-with-icon span,.workspace-shell--collapsed .workspace-subnav-item .label-with-icon span,.workspace-shell--collapsed .ghost-button--sidebar .label-with-icon span{display:none}.workspace-shell--collapsed .workspace-sidebar__nav,.workspace-shell--collapsed .workspace-sidebar__subnav,.workspace-shell--collapsed .workspace-sidebar__footer{justify-items:center}.workspace-shell--collapsed .workspace-nav-item,.workspace-shell--collapsed .workspace-subnav-item,.workspace-shell--collapsed .ghost-button--sidebar{width:52px;min-width:52px;padding:0;justify-content:center}.workspace-shell--collapsed .workspace-nav-item .label-with-icon,.workspace-shell--collapsed .workspace-subnav-item .label-with-icon,.workspace-shell--collapsed .ghost-button--sidebar .label-with-icon{justify-content:center}.workspace-main{display:grid;gap:14px;min-width:0;max-width:100%;overflow:hidden}.app-credit-footer{position:fixed;left:24px;right:24px;bottom:14px;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:#fffffff0;color:var(--muted);box-shadow:0 12px 28px #1c324f14;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:.84rem}.app-credit-footer span,.app-credit-footer small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-credit-footer span{font-weight:600;color:var(--ink)}@media print{.app-credit-footer{display:none}}.session-header__identity{display:flex;align-items:center;gap:14px}.session-avatar{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#f0a63d,#d88d2a);color:#241502;font-weight:800}.auth-form{display:grid;gap:16px}.auth-form label,.search-box{display:grid;gap:8px}.auth-form label span,.search-box span{color:var(--muted);font-size:.94rem}.auth-form input,.search-box input{height:52px;padding:0 16px;border-radius:16px;border:1px solid var(--line);background:#fff;color:var(--ink)}.inline-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.template-form{display:grid;gap:10px}.inline-form input{height:44px;padding:0 14px;border-radius:14px;border:1px solid var(--line);background:#fffffffa;color:var(--ink)}.template-form input,.template-form select,.template-form textarea{min-height:44px;padding:10px 14px;border-radius:14px;border:1px solid var(--line);background:#fffffffa;color:var(--ink)}.file-field{display:grid;gap:8px;min-height:44px;padding:12px 14px;border-radius:14px;border:1px dashed #c8d3e3;background:#f8fbff;color:var(--muted)}.file-field input[type=file]{padding:0;min-height:auto;border:0;background:transparent}.signature-preview-card{display:grid;gap:10px;padding:16px;border-radius:20px;border:1px solid rgba(255,255,255,.08);background:#ffffff0f}.signature-preview-card strong{color:var(--ink)}.signature-preview-card img{width:100%;max-width:320px;max-height:120px;object-fit:contain;background:#fffffff5;border-radius:14px;padding:10px}.template-form textarea{min-height:160px;resize:vertical}.checkbox-row{display:flex;gap:10px;align-items:center;color:var(--muted)}.checkbox-row input{width:18px;height:18px}.inline-form input::placeholder{color:#8e98ab}.inline-actions,.card-actions{display:flex;gap:8px;flex-wrap:wrap}.auth-form input::placeholder,.search-box input::placeholder{color:#8e98ab}.auth-form button,.ghost-button,.workspace-tab,.mini-action,.report-list-item{border:0;cursor:pointer}.auth-form button,.ghost-button{height:50px;border-radius:16px;padding:0 18px;font-weight:700}.auth-form button{background:linear-gradient(135deg,#f0a63d,#d88d2a);color:#241502}.auth-form button:disabled{opacity:.75;cursor:wait}.ghost-button:disabled,.mini-action:disabled,.workspace-tab:disabled{opacity:.58;cursor:not-allowed}.session-shell{margin-top:24px;display:grid;gap:16px}.session-header{display:flex;justify-content:space-between;gap:12px;padding:18px 20px;border-radius:22px;background:#fffffff2;border:1px solid var(--line);box-shadow:0 16px 40px #1f293714}.session-header p{margin:4px 0 0;color:var(--muted)}.session-header--workspace{align-items:flex-start}.session-actions{display:flex;gap:12px;align-items:flex-start}.session-stats{display:grid;grid-template-columns:repeat(2,minmax(92px,1fr));gap:10px}.stat-chip{padding:10px 12px;border-radius:16px;background:#f8fafc;border:1px solid var(--line);display:grid;gap:4px}.stat-chip span{font-size:.74rem;text-transform:uppercase;letter-spacing:.08em;color:#8691a4}.stat-chip strong{font-size:1.2rem}.ghost-button{background:#f8fafc;color:var(--ink);border:1px solid var(--line)}.ghost-button--sidebar{width:100%;min-width:0;max-width:100%;display:flex;justify-content:flex-start;overflow:hidden}.session-meta{display:flex;align-items:center;color:var(--muted);font-size:.86rem}.workspace-tabs{display:flex;gap:10px;flex-wrap:wrap}.workspace-tab{min-height:44px;padding:0 16px;border-radius:999px;background:#fff;color:var(--ink);border:1px solid var(--line);font-weight:700}.workspace-tab--active{background:linear-gradient(135deg,#f0a63d,#d88d2a);color:#271602;border-color:transparent;box-shadow:0 10px 28px #d88d2a33}.panel-heading{display:flex;gap:12px;align-items:flex-start}.panel-heading p,.section-toolbar p{display:none}.panel-heading__icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:14px;background:linear-gradient(135deg,#f0a63d38,#0f695c2e);color:var(--teal-strong);border:1px solid #dbe4f3;box-shadow:inset 0 1px #fff6}.workspace-stack,.report-detail-stack{display:grid;gap:16px}.overview-grid,.dual-grid,.triple-grid,.reports-layout{display:grid;gap:12px}.overview-grid{grid-template-columns:minmax(0,1fr) minmax(340px,.9fr)}.dual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.triple-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.assets-grid{grid-template-columns:minmax(250px,.85fr) minmax(340px,1.2fr) minmax(280px,.95fr);align-items:start}.assets-grid .info-panel{align-content:start;max-height:620px;overflow:hidden;border-radius:18px}.assets-grid .info-panel__header,.assets-grid .panel-heading{align-items:center}.assets-grid .panel-heading__icon{width:32px;height:32px;border-radius:11px}.assets-grid .section-toolbar{display:flex;justify-content:flex-end;min-height:36px}.assets-grid .info-list{max-height:500px;overflow:auto;padding-right:4px;align-content:start}.assets-grid .info-row{padding:10px 12px;border-radius:14px;box-shadow:none}.assets-grid .info-row p+p{display:none}.assets-grid .row-main{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}.assets-grid .card-actions{width:84px;display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.assets-grid .mini-action{min-height:30px;padding:0 10px;font-size:.84rem}.assets-grid .template-form{gap:8px}.assets-grid .template-form input,.assets-grid .template-form select,.assets-grid .file-field{min-height:38px;border-radius:12px;padding:8px 10px}.assets-grid .empty-card{padding:14px;border-radius:14px}.reports-layout{width:100%;grid-template-columns:320px minmax(0,calc(100% - 332px));align-items:start;min-width:0;max-width:100%;overflow:hidden}.reports-layout>*{min-width:0}.info-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:16px;border-radius:22px;background:#fffffffa;border:1px solid var(--line);box-shadow:0 12px 28px #1c324f0d;min-width:0}.info-panel--light{background:#fffffffa}.info-panel__header{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;min-width:0;max-width:100%}.info-panel__header>*{min-width:0}.info-panel__header p{display:none}.info-list,.queue-list{display:grid;gap:10px;min-width:0}.legacy-strip{gap:14px}.legacy-strip__actions{display:flex;gap:8px;flex-wrap:wrap}.legacy-strip__grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:10px;overflow-x:auto}.legacy-exam-card{display:grid;gap:6px;min-width:220px;padding:14px;border-radius:18px;background:linear-gradient(180deg,#fefefe,#f6f9fd);border:1px solid var(--line)}.legacy-exam-card p,.legacy-exam-card span{margin:0;color:var(--muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.info-list--compact{max-height:420px;overflow:auto;padding-right:2px}.doctor-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px}.doctor-card{display:grid;gap:4px;padding:14px;border-radius:18px;background:#fafcff;border:1px solid var(--line);position:relative;overflow:hidden;min-width:0}.doctor-card:after,.queue-row:after,.info-row:after,.report-list-item:after{content:"";position:absolute;inset:auto -30px -45px auto;width:110px;height:110px;border-radius:999px;background:radial-gradient(circle,rgba(255,255,255,.08),transparent 68%);pointer-events:none}.doctor-card span,.doctor-card em,.doctor-card p{color:var(--muted);font-size:.92rem;margin:0;min-width:0;overflow-wrap:anywhere}.doctor-card strong{min-width:0;overflow-wrap:anywhere}.doctor-card--primary{background:linear-gradient(135deg,#f0a63d,#d88d2a);color:#201202}.doctor-card--primary span,.doctor-card--primary em{color:#201202c7}.queue-row,.info-row,.meta-card{padding:12px 14px;border-radius:18px;background:#fafcff;border:1px solid var(--line);position:relative;overflow:hidden;box-shadow:0 8px 18px #1c324f0d;min-width:0}.queue-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}.queue-row p,.info-row p{margin:4px 0 0;color:var(--muted);min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.info-row strong{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-pill{display:inline-flex;align-items:center;min-height:30px;margin-top:10px;padding:0 10px;border-radius:999px;font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;border:1px solid transparent}.status-pill--aguardando{background:#f0a63d29;color:#ffd392;border-color:#f0a63d38}.status-pill--atendimento{background:#2e8f7f2e;color:#9ee8db;border-color:#2e8f7f42}.status-pill--concluido{background:#4778da2e;color:#b8d0ff;border-color:#4778da42}.status-pill--finalizado{background:#eef2f7;color:#5f697b;border-color:#d8e0ec}.info-row--alert{background:#e49a2c2e;border-color:#e49a2c3d}.info-row button{margin-top:10px}.row-main{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;min-width:0;max-width:100%}.row-main>div{min-width:0;max-width:100%;flex:1 1 auto}.row-main>.mini-action,.row-main>button{flex:0 0 auto}.mini-action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;max-width:100%;padding:0 13px;border-radius:999px;background:#fff;color:var(--ink);border:1px solid var(--line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-action--primary{background:linear-gradient(135deg,#f0a63d,#d88d2a);color:#241502}.mini-action--danger{background:#a13c3c42;border-color:#a13c3c66}.empty-card{padding:20px;border-radius:18px;border:1px dashed var(--line);color:var(--muted);background:#fbfcfe}.reports-sidebar{align-content:start;position:sticky;top:18px;max-height:calc(100vh - 48px);overflow:auto}.report-list-item{width:100%;max-width:100%;text-align:left;display:grid;gap:4px;padding:10px 12px;border-radius:16px;background:#f8fafc;color:var(--ink);border:1px solid var(--line);position:relative;overflow:hidden;min-width:0}.report-list-item strong,.report-list-item span,.report-list-item em{min-width:0;max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-list-item span,.report-list-item em{color:var(--muted);font-style:normal;font-size:.92rem}.report-list-item--active{background:linear-gradient(135deg,#eef4ff,#f8efe0);border-color:#ccd8ef}.report-detail{align-content:start;grid-template-columns:minmax(0,1fr);overflow:hidden;min-width:0;max-width:100%}.report-detail>*{min-width:0;max-width:100%}.report-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.report-workbench{display:grid;grid-template-columns:minmax(220px,.82fr) minmax(0,1.18fr);gap:12px}.report-action-bar{position:sticky;top:14px;z-index:5;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;border-radius:18px;border:1px solid #d5dfed;background:#fffffff0;box-shadow:0 12px 28px #1c324f14;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);min-width:0;flex-wrap:wrap}.report-action-bar .inline-actions{margin-left:auto}.report-drafts-button{position:relative}.report-drafts-button>span{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#a13c3c;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:800}.report-draft-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}.report-draft-row p{margin:4px 0 0;color:var(--muted);font-size:.88rem}.report-save-state{display:grid;gap:3px}.report-save-state span{color:var(--muted);font-size:.84rem}.report-workbench__card{display:grid;gap:10px;padding:14px;border-radius:16px;background:#f8fafc;border:1px solid var(--line)}.report-mode-strip{display:flex;gap:8px;flex-wrap:wrap}.report-mode-chip{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--muted);font-size:.9rem}.report-mode-chip--active{border-color:#c7d6f5;color:var(--teal-strong);background:#eef4ff}.report-mode-note{padding:10px 12px;border-radius:12px;border:1px solid #dbe6f6;background:#f8fbff;color:var(--muted);font-size:.92rem}.report-docx-toolbar,.report-docx-status{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.report-docx-toolbar select{min-width:220px;min-height:40px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink)}.report-docx-status span{color:var(--muted);font-size:.92rem}.meta-card{display:grid;gap:6px}.meta-card span{color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.report-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;color:var(--muted)}.report-editor,.report-form-shell{display:grid;gap:12px;min-width:0;max-width:100%}.report-form-shell--compact{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}.report-form-card{display:grid;gap:12px;padding:12px;border-radius:12px;background:#fbfdff;border:1px solid var(--line);min-width:0}.report-form-card--cover{grid-column:1 / -1}.report-form-card__header{display:flex;justify-content:space-between;gap:12px;align-items:center;min-width:0}.report-form-card__header span{color:var(--muted);font-size:.84rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;min-width:0}.report-form-grid--cover{grid-template-columns:minmax(220px,.75fr) minmax(0,1fr)}.report-form-grid input,.report-form-grid select,.report-textarea{width:100%;min-width:0;max-width:100%;min-height:44px;height:auto;padding:10px 14px;border-radius:14px;border:1px solid var(--line);background:#fff;color:var(--ink);text-overflow:ellipsis}@media(min-width:1181px)and (max-width:1380px){.reports-layout{grid-template-columns:300px minmax(0,calc(100% - 312px))}.report-form-shell--compact,.report-composer-grid,.report-workbench{grid-template-columns:1fr}}.report-linked-assets--status{padding:10px 12px;border-radius:12px;background:#f8fafc;border:1px solid var(--line)}.report-textarea{min-height:180px;resize:vertical}.report-textarea--small{min-height:82px;opacity:.72;font-size:.84rem}.report-linked-assets{display:flex;flex-wrap:wrap;gap:8px}.report-linked-assets span{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;background:#f8fafc;border:1px solid var(--line);color:var(--muted);font-size:.85rem}.report-cover-choice{display:grid;gap:4px;padding:12px 14px;border-radius:16px;border:1px dashed #cfd7e6;background:#fff}.report-cover-choice strong{color:var(--ink)}.report-cover-choice span{color:var(--muted);font-size:.86rem}.report-cover-toggle{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.report-preflight{display:grid;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}.report-preflight-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.report-preflight-item{min-width:0;display:grid;grid-template-columns:126px minmax(0,1fr);gap:8px;align-items:center;padding:10px;border:1px solid #dfe7f2;border-radius:10px;background:#f8fafc}.report-preflight-item span{color:var(--muted);font-size:.76rem;font-weight:800;text-transform:uppercase}.report-preflight-item strong{color:var(--ink);font-size:.9rem}.report-preflight-preview{width:min(360px,100%);min-height:96px;border:1px solid var(--line);border-radius:8px;background:#fff;display:grid;place-items:center;padding:6px;cursor:pointer;justify-self:start}.report-preflight-preview img{width:auto;height:auto;max-width:100%;max-height:128px;object-fit:contain;display:block}.report-assets-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-composer-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.3fr);gap:12px;align-items:start;min-width:0}.report-composer-grid--focus{grid-template-columns:minmax(0,1fr)}.report-composer-grid--focus .report-side-tools{display:none}.report-side-tools{display:grid;gap:12px;min-width:0}.report-assets-card{display:grid;gap:12px;padding:12px;border-radius:12px;background:#f8fafc;border:1px solid var(--line);min-width:0}.report-assets-header{display:flex;justify-content:space-between;gap:12px;align-items:center;color:var(--ink)}.report-assets-header span{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:0 10px;border-radius:999px;background:#f0a63d29;color:#ffd292}.report-asset-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.report-asset-grid--compact{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}.report-asset-tile,.report-attachment-row{display:grid;gap:10px;padding:12px;border-radius:18px;background:#fff;border:1px solid var(--line)}.report-asset-preview{padding:0;border:0;border-radius:14px;overflow:hidden;aspect-ratio:4 / 3;background:#ffffff0a}.report-asset-preview img{width:100%;height:100%;object-fit:cover;display:block}.report-asset-meta{display:grid;gap:4px}.report-asset-meta strong{color:var(--ink);font-size:.95rem;word-break:break-word}.report-asset-meta span{color:var(--muted);font-size:.8rem;word-break:break-word}.report-attachment-list{display:grid;gap:10px}.report-attachment-row{grid-template-columns:auto 1fr auto;align-items:center}.report-text-editor{display:grid;gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;min-width:0}.report-text-editor__header{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 12px;background:#f8fafc;border-bottom:1px solid var(--line)}.report-text-editor span{font-size:.84rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8090ab}.report-editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;min-width:0}.report-editor-toolbar select{min-height:36px;padding:0 10px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--ink)}.report-toolbar-range{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 8px;border:1px solid var(--line);border-radius:10px;background:#fff}.report-toolbar-range span{font-size:.72rem;color:var(--muted)}.report-toolbar-range input{width:110px}.report-toolbar-number{width:82px;min-height:36px;border:1px solid var(--line);border-radius:10px;padding:0 8px}.mini-action--icon{width:36px;min-width:36px;min-height:36px;padding:0;justify-content:center;border-radius:10px}.toolbar-underline{text-decoration:underline;font-weight:700}.color-swatch{width:26px;height:26px;border-radius:999px;border:2px solid #fff;box-shadow:0 0 0 1px #cbd6e6;cursor:pointer}.report-rich-editor{min-height:560px;padding:26px 30px;border-radius:0;border:0;background:#fff;color:var(--ink);overflow:auto;box-shadow:inset 0 0 0 1px #18324f08;word-break:break-word;overflow-wrap:anywhere}.report-notes{min-height:150px;resize:vertical;border:1px solid var(--line);border-radius:10px;padding:10px 12px;color:var(--ink);background:#fff;line-height:1.45}.report-rich-editor *{max-width:100%;overflow-wrap:anywhere}.report-rich-editor:focus{outline:2px solid rgba(93,127,194,.18);outline-offset:-2px}.report-rich-editor p{margin:0 0 12px}.report-advanced{display:grid;gap:8px;padding:12px 14px;border-radius:16px;border:1px dashed #cfd7e6;background:#fbfcfe}.report-advanced summary{cursor:pointer;color:var(--muted);font-size:.9rem}.report-editor__actions{padding-bottom:4px}.report-preview{min-height:420px;padding:26px;border-radius:26px;background:var(--panel-strong);color:var(--ink);box-shadow:inset 0 0 0 1px #1720250a;overflow:auto;overflow-wrap:anywhere}.report-preview-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}.report-preview-controls strong{margin-right:auto;color:var(--ink)}.report-preview-controls label{display:inline-flex;gap:8px;align-items:center;color:var(--muted);font-size:.82rem}.report-preview-controls input{width:86px;min-height:34px;border:1px solid var(--line);border-radius:9px;padding:0 8px}.report-preview__inner{transform-origin:top left;transition:transform .15s ease}.report-template-list{display:grid;gap:8px;max-height:240px;overflow:auto;padding-right:2px}.report-template-chip{display:grid;gap:3px;width:100%;text-align:left;padding:10px 12px;border-radius:12px;border:1px solid #d8e2ef;background:#fff;color:var(--ink);cursor:pointer;min-width:0}.report-template-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-template-chip:hover{border-color:#bdcdec;background:#f4f7fc}.report-template-chip em{color:var(--muted);font-size:.78rem;font-style:normal;text-transform:uppercase;letter-spacing:.08em}.report-template-chip--docx{border-color:#d8c89f;background:#fffaf0}.report-preview p,.report-preview div,.report-preview span,.report-preview h1,.report-preview h2,.report-preview h3,.report-preview table,.report-preview td{max-width:100%;overflow-wrap:anywhere}.report-preview table{display:block;overflow-x:auto}.pill-grid{position:relative;z-index:1;margin-top:22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.pill-card{padding:20px;border-radius:22px;background:#ffffffa3;border:1px solid var(--line);box-shadow:0 22px 60px #1c160c14}.section-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.section-toolbar p{margin:0;max-width:540px;color:var(--muted);font-size:.94rem}.preview-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;display:grid;place-items:center;padding:22px}.preview-modal__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#030708b8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:0}.preview-modal__card{position:relative;z-index:1;width:min(1100px,100%);max-height:calc(100vh - 44px);display:grid;gap:14px;padding:20px;border-radius:28px;background:linear-gradient(180deg,#111918fa,#090f0ffa);border:1px solid rgba(255,255,255,.08);box-shadow:0 40px 90px #0006}.preview-modal__card--form{width:min(760px,100%)}.preview-modal__header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;color:#fff}.preview-modal__subtitle{margin:8px 0 0;color:#ffffffa3;max-width:48ch}.preview-modal__eyebrow{display:block;margin-bottom:6px;color:#ffffff8f;text-transform:uppercase;letter-spacing:.12em;font-size:.72rem}.preview-modal__body{min-height:360px;max-height:calc(100vh - 180px);overflow:auto;border-radius:22px;background:#ffffff0a;border:1px solid rgba(255,255,255,.06);padding:12px}.preview-modal__body--form{min-height:0;max-height:min(72vh,720px);padding:18px}.preview-modal__image,.preview-modal__frame{width:100%;min-height:70vh;border:0;border-radius:18px;background:#fff}.preview-modal__image{min-height:auto;max-height:calc(100vh - 220px);object-fit:contain}.toast-stack{position:fixed;right:22px;bottom:22px;z-index:95;width:min(420px,calc(100vw - 28px));display:grid;gap:12px}.toast-item{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:16px;border-radius:20px;border:1px solid rgba(255,255,255,.12);box-shadow:0 24px 70px #0f0d093d;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.toast-item--success{background:linear-gradient(180deg,#0e6b5cf2,#095044f5);color:#f7fffc}.toast-item--error{background:linear-gradient(180deg,#912222f5,#691616fa);color:#fff6f6}.toast-item strong{display:block;line-height:1.35}.toast-item__eyebrow{display:block;margin-bottom:6px;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;opacity:.72}@media(max-width:1180px){.workspace-shell,.overview-grid,.reports-layout,.triple-grid,.dual-grid,.pill-grid,.legacy-strip__grid,.report-workbench,.report-composer-grid,.report-form-shell--compact{grid-template-columns:1fr}.reports-sidebar{position:static;max-height:none}.report-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-assets-panel{grid-template-columns:1fr}}@media(min-width:1181px)and (max-width:1380px){.reports-layout{grid-template-columns:minmax(260px,300px) minmax(0,1fr)}.report-form-shell--compact,.report-composer-grid,.report-workbench{grid-template-columns:1fr}.report-side-tools{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1180px){.report-side-tools{grid-template-columns:1fr}}@media(max-width:760px){.page-shell{padding:14px 14px 76px}.app-credit-footer{left:14px;right:14px;bottom:10px;min-height:40px;font-size:.78rem}.doctor-grid,.session-stats,.report-meta-grid,.inline-form,.report-form-grid,.report-form-grid--cover{grid-template-columns:1fr}.login-card,.workspace-sidebar,.session-header,.info-panel{border-radius:18px}.session-header,.session-actions,.queue-row,.row-main,.report-actions,.report-action-bar{grid-template-columns:1fr;flex-direction:column;align-items:stretch}.workspace-sidebar__nav,.workspace-sidebar__subnav{grid-template-columns:repeat(2,minmax(0,1fr))}.report-preview{padding:18px}.report-attachment-row{grid-template-columns:1fr}.report-text-editor__header{align-items:flex-start}.report-rich-editor{min-height:420px;padding:20px}.report-action-bar .inline-actions{margin-left:0}.preview-modal__header{flex-direction:column}.section-toolbar,.toast-item{flex-direction:column;align-items:stretch}.toast-stack{left:14px;right:14px;bottom:14px;width:auto}.preview-modal__image,.preview-modal__frame{min-height:52vh}}
