:root{color-scheme:light;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background-color:#eef2ff;color:#0f172a}*,:after,:before{box-sizing:border-box}body{margin:0;background:#eef2ff;color:#0f172a}.main,body{min-height:100vh}.main{padding:3rem 1.5rem 4rem;background:radial-gradient(circle at top right,#e0f2fe 0,#eef2ff 55%,#f8fafc 100%)}.guidanceMain{padding-top:2rem}.container{width:min(1240px,100%);margin:0 auto;display:flex;flex-direction:column;gap:2.5rem}.globalNav{position:-webkit-sticky;position:sticky;top:0;width:100%;background:#fff;border-bottom:1px solid rgba(226,232,240,.9);z-index:100;box-shadow:0 8px 20px -18px rgba(15,23,42,.4)}.globalNavInner{width:min(1200px,100%);margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:72px;padding:0 1.5rem}.navBrand{gap:.65rem;text-decoration:none}.navBrand,.navBrandIcon{display:inline-flex;align-items:center}.navBrandIcon{width:40px;height:40px;border-radius:14px;background:#2563eb;color:#fff;justify-content:center;font-weight:700;box-shadow:0 12px 30px -10px rgba(37,99,235,.75)}.navBrandText{font-size:1.4rem;font-weight:700;color:#0f172a}.navBrandAccent{color:#2563eb}.navLinks{display:flex;align-items:center;gap:1rem}.navLink{text-decoration:none;font-size:.95rem;font-weight:600;color:#64748b;padding:.45rem .75rem;border-radius:999px;transition:color .2s ease,background .2s ease}.navLink:hover{color:#0f172a;background:rgba(15,23,42,.04)}.navLink.isActive{color:#1d4ed8;background:rgba(59,130,246,.12)}.navDivider{width:1px;height:24px;background:rgba(226,232,240,.9)}.navAvatar{width:38px;height:38px;border-radius:50%;background:rgba(129,140,248,.18);color:#4c1d95;display:inline-flex;align-items:center;justify-content:center;font-weight:600}.navMobileToggle{display:none;border:none;background:transparent;color:#475569;padding:.3rem}.navMobileMenu{display:none;background:#fff}.appContent{min-height:calc(100vh - 72px)}.homeMainRevamp{min-height:100vh;padding:3rem 1.5rem 4rem;background:radial-gradient(circle at top right,#e0f2fe 0,#eef2ff 55%,#f8fafc 100%);color:#0f172a}.homeContainerRevamp{width:min(1100px,100%);margin:0 auto;display:flex;flex-direction:column;gap:2rem}.homeHeroCard{display:flex;justify-content:space-between;gap:1.5rem;padding:2rem 2.5rem;border-radius:30px;background:linear-gradient(120deg,hsla(0,0%,100%,.95),rgba(226,232,240,.7));border:1px solid rgba(148,163,184,.25);box-shadow:0 30px 60px -50px rgba(15,23,42,.6);align-items:center}.homeHeroText h1{margin:.2rem 0 0;font-size:clamp(2rem,4vw,3rem);font-weight:700;letter-spacing:-.02em}.homeHeroText p{margin:.7rem 0 0;color:#475569;max-width:58ch;line-height:1.6}.homePanelRevamp{background:hsla(0,0%,100%,.92);border-radius:28px;padding:2rem;border:1px solid rgba(226,232,240,.8);box-shadow:0 40px 70px -60px rgba(15,23,42,.9)}.homePanelGrid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);grid-gap:1.8rem;gap:1.8rem}.homeUploadArea{border-right:1px solid rgba(226,232,240,.6);padding-right:1.5rem}.homeDropzone{position:relative;border-radius:28px;border:1px dashed rgba(148,163,184,.4);background:rgba(248,250,252,.8);min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;text-align:center;transition:border-color .2s ease,background .2s ease,transform .2s ease,opacity .2s ease}.homeDropzone.isDragging{border-color:rgba(37,99,235,.6);background:rgba(191,219,254,.25)}.homeDropzone.isDisabled{opacity:.6;cursor:not-allowed}.homeDropzone.isError{border-color:hsla(0,91%,71%,.6);background:hsla(0,93%,94%,.35)}.homeDropzoneIcon{width:72px;height:72px;border-radius:50%;background:rgba(191,219,254,.7);color:#1d4ed8;display:flex;align-items:center;justify-content:center;transition:transform .2s ease;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.6)}.homeDropzoneIcon svg{width:34px;height:34px}.homeDropzone:hover:not(.isDisabled) .homeDropzoneIcon{transform:scale(1.08)}.homeDropzoneText h2{margin:1rem 0 .35rem;font-size:1.3rem;font-weight:600}.homeDropzoneText{display:flex;flex-direction:column;align-items:center;text-align:center}.homeDropzoneText p{margin:0 0 1rem;color:#64748b;font-size:.95rem}.homeDropzoneText button,.homeFileMeta button{border:none;border-radius:999px;padding:.7rem 1.8rem;font-weight:600;color:#fff;background:linear-gradient(120deg,#2563eb,#7c3aed);cursor:pointer;box-shadow:0 18px 40px -25px rgba(37,99,235,.6)}.homeDropzoneText button:disabled,.homeFileMeta button:disabled{opacity:.6;cursor:not-allowed}.homeFileMeta{display:flex;flex-direction:column;gap:.5rem;max-width:420px}.homeFileMeta h3{margin:0;font-size:1.2rem;color:#0f172a;word-break:break-word}.homeFileMeta p{margin:0;color:#475569;font-size:.95rem;display:flex;align-items:center;justify-content:center;gap:.4rem}.homeFileMeta button{align-self:center;background:rgba(37,99,235,.12);color:#1d4ed8;box-shadow:none}.homeStatusPanel{display:flex;flex-direction:column;gap:1.25rem;background:rgba(248,250,252,.85);border-radius:24px;border:1px solid rgba(226,232,240,.9);padding:1.75rem}.homeStatusHeader h3{margin:0;font-size:1.1rem;font-weight:600;color:#0f172a}.homeStatusCard{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border-radius:18px;border:1px solid rgba(226,232,240,.9);background:#fff}.homeStatusCard.hasError{border-color:hsla(0,91%,71%,.4);background:hsla(0,93%,94%,.6)}.homeStatusCard p{margin:0;color:#475569;font-weight:500}.homeRetryButton{border:none;background:transparent;color:#2563eb;font-weight:600;text-align:left;padding:0;cursor:pointer}.homeErrorMessage{margin:0;font-size:.92rem;color:#b91c1c;background:hsla(0,93%,94%,.7);border:1px solid hsla(0,91%,71%,.35);padding:.85rem 1rem;border-radius:14px}.homeGuide h4{margin:0 0 .75rem;font-size:1rem;color:#0f172a}.homeGuide ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.8rem}.homeGuide li{display:flex;gap:.6rem;align-items:flex-start;color:#475569;font-size:.95rem}.homeGuide li svg{width:18px;height:18px;color:#10b981;flex-shrink:0;margin-top:.2rem}.header{justify-content:space-between;gap:1.5rem}.header,.jobTitleRow{display:flex;flex-wrap:wrap}.jobTitleRow{align-items:center;gap:.75rem}.ttlBadge{border-radius:999px;border:1px solid rgba(37,99,235,.35);background:rgba(37,99,235,.12);color:#1d4ed8;padding:.15rem .75rem;font-size:.85rem;font-weight:600}.jobHeaderMeta{display:flex;flex-direction:column;gap:.5rem}.jobStatusLine{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.jobTtl{font-size:.9rem;color:#94a3b8}.guidanceHeader h1,.homeHeader h1,.jobHeader h1{margin:.3rem 0 0;font-size:clamp(2rem,4vw,3.2rem);font-weight:700;letter-spacing:-.03em}.headerEyebrow,.summaryEyebrow{font-size:.85rem;letter-spacing:.2em;text-transform:uppercase;color:#64748b;margin:0}.subtitle{margin:.75rem 0 0;font-size:1.05rem;color:#475569;max-width:60ch;line-height:1.6}.headerActions{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.headerHint{font-size:.9rem;color:#94a3b8}.downloadLink,.ghostButton,.guidanceButton,.previewButton,.regenerateButton,.secondaryButton,.uploadButton,.zipButton{border:none;border-radius:.75rem;font-weight:600;font-size:.95rem;cursor:pointer;transition:background-color .2s ease,color .2s ease,box-shadow .2s ease;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;text-decoration:none}.ghostButton{background:transparent;color:#2563eb;padding:.65rem 1.2rem;border:1px solid rgba(37,99,235,.2)}.ghostButton:hover{background:rgba(37,99,235,.08)}.downloadLink,.secondaryButton,.zipButton{background:#1d4ed8;color:#fff;padding:.65rem 1.5rem;box-shadow:0 10px 25px -12px rgba(30,64,175,.6)}.ghostButton:disabled,.guidanceButton:disabled,.previewButton:disabled,.regenerateButton:disabled,.secondaryButton:disabled{opacity:.6;cursor:not-allowed}.uploadButton{background:linear-gradient(120deg,#2563eb,#7c3aed);color:#fff;padding:.85rem 1.8rem;box-shadow:0 20px 40px -22px rgba(79,70,229,.9)}.regenerateButton{background:rgba(37,99,235,.12);color:#1d4ed8;padding:.6rem 1.2rem;border-radius:999px;border:1px solid rgba(59,130,246,.4)}.guidanceButton{background:rgba(8,145,178,.12);color:#0f172a;padding:.55rem 1.2rem;border-radius:999px;border:1px solid rgba(14,165,233,.4)}.previewButton{background:rgba(16,185,129,.14);color:#065f46;padding:.55rem 1.15rem;border-radius:999px;border:1px solid rgba(16,185,129,.45)}.panel{background:hsla(0,0%,100%,.92);border-radius:28px;padding:2.5rem;box-shadow:0 30px 60px -45px rgba(15,23,42,.55);border:1px solid rgba(226,232,240,.8)}.jobPanel{display:flex;flex-direction:column;gap:2.5rem}.panelContent{display:grid;grid-template-columns:1fr;grid-gap:2.5rem;gap:2.5rem}.uploadColumn{display:flex;flex-direction:column;gap:1.75rem}.jobOverview{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));grid-gap:1.5rem;gap:1.5rem}.jobGrid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,2.15fr);grid-gap:2rem;gap:2rem;align-items:start}.jobSidebar{background:rgba(248,250,252,.9);border:1px solid rgba(226,232,240,.8);border-radius:20px;padding:1.25rem;gap:1.25rem}.jobSidebar,.sidebarSearch{display:flex;flex-direction:column}.sidebarSearch{gap:.4rem}.sidebarSearch label{font-size:.9rem;font-weight:600;color:#475569}.filterList{display:flex;flex-direction:column;gap:.6rem}.filterButton{width:100%;border-radius:1rem;border:1px solid rgba(148,163,184,.5);background:#fff;padding:.65rem .9rem;display:flex;align-items:center;justify-content:space-between;font-weight:600;color:#475569}.filterButton.isActive{border-color:rgba(37,99,235,.45);background:rgba(37,99,235,.08);color:#1d4ed8}.jobMain{display:flex;flex-direction:column;gap:1rem}.patientWorkspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.9fr);grid-gap:1.5rem;gap:1.5rem;align-items:start}.patientListColumn,.patientPreviewColumn{min-width:0}.patientPreviewColumn{position:-webkit-sticky;position:sticky;top:1.5rem}.patientPreviewColumn.isActive .patientPreviewPanel{border-color:rgba(37,99,235,.35);box-shadow:0 30px 65px -45px rgba(37,99,235,.6)}.patientPreviewPanel{margin-top:0;padding:1.5rem;border-radius:20px;border:1px solid rgba(226,232,240,.9);background:rgba(248,250,252,.96);box-shadow:0 25px 55px -45px rgba(15,23,42,.8)}.patientPreviewPanel.isPlaceholder{min-height:320px;display:flex;flex-direction:column;justify-content:center;gap:.4rem;color:#475569}.patientPreviewPanel.isPlaceholder h3{margin:.25rem 0 .1rem;font-size:1.3rem;color:#0f172a}.patientPreviewPanel.isPlaceholder .patientPreviewHint{margin:0}@media (max-width:1100px){.patientWorkspace{grid-template-columns:1fr}.patientPreviewColumn{position:static}}.jobMainHeader{gap:.3rem}.jobMainHeader,.uploadZone{display:flex;flex-direction:column}.uploadZone{border:2px dashed rgba(148,163,184,.6);border-radius:26px;padding:2.5rem 2rem;text-align:center;background:rgba(248,250,252,.7);gap:1rem;cursor:pointer;position:relative;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease,background .2s ease}.uploadZone.enhanced:focus-within,.uploadZone.enhanced:hover,.uploadZone.isDragging{border-color:#2563eb;background:rgba(37,99,235,.08);transform:translateY(-2px);box-shadow:0 20px 30px -25px rgba(37,99,235,.6)}.uploadZone.isUploading{pointer-events:none;opacity:.8}.uploadIcon{width:64px;height:64px;border-radius:999px;background:rgba(37,99,235,.1);color:#2563eb;display:inline-flex;align-items:center;justify-content:center;margin:0 auto}.uploadZone h2{margin:0;font-size:1.4rem}.uploadHint{margin:0;font-size:.98rem;color:#64748b}.hiddenInput{position:absolute;inset:0;opacity:0;pointer-events:none}.fileMeta{background:rgba(241,245,249,.95);border:1px solid rgba(226,232,240,.85);border-radius:22px;padding:1.1rem 1.3rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.fileMeta h3{margin:0;font-size:1rem;font-weight:600}.fileMeta span{font-size:.9rem;color:#475569}.fileMeta.stacked{flex-direction:column;align-items:flex-start;gap:.5rem}.fileMeta .fileSize{font-weight:600;color:#0f172a}.uploadActions{display:flex;gap:.8rem;flex-wrap:wrap}.jobSummary,.summaryCard{display:flex;flex-direction:column;gap:1rem}.summaryCard{background:linear-gradient(135deg,rgba(248,250,252,.95),rgba(224,231,255,.8));border-radius:22px;border:1px solid rgba(226,232,240,.8);padding:1.5rem}.summaryCard.isError{border-color:hsla(0,91%,71%,.4);background:hsla(0,93%,94%,.7)}.summaryHeader{display:flex;justify-content:space-between;align-items:center;gap:1rem}.progressCount{font-size:2rem;font-weight:700;color:#2563eb}.progressBar{height:.9rem;background:rgba(226,232,240,.8);border-radius:999px;overflow:hidden}.progressFill{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#7c3aed);border-radius:inherit;transition:width .4s ease}.summaryNote{margin:0;color:#475569;font-size:.98rem;line-height:1.5}.uploadChecklist{list-style:none;margin:0;padding-left:1rem;color:#475569;font-size:.95rem}.uploadChecklist li{margin-bottom:.35rem;position:relative}.uploadChecklist li:before{content:"•";position:absolute;left:-.9rem;color:#2563eb}.errorText,.promptError{background:hsla(0,91%,71%,.12);border:1px solid hsla(0,91%,71%,.35);color:#b91c1c;padding:.75rem 1rem;border-radius:.9rem;font-size:.92rem}.statusBadge{display:inline-flex;align-items:center;gap:.35rem;font-size:.8rem;padding:.2rem .75rem;border-radius:999px;text-transform:capitalize;background:rgba(148,163,184,.2);color:#0f172a}.badge-job,.badge-patient{text-transform:none}.status-dang-xu-ly{background:rgba(59,130,246,.15);color:#1d4ed8}.status-hoan-thanh,.status-thanh-cong{background:rgba(16,185,129,.18);color:#047857}.status-loi{background:hsla(0,91%,71%,.2);color:#b91c1c}.badgeIcon{width:.9rem;height:.9rem}.statusBadge.status-dang-xu-ly .badgeIcon{animation:spin 1s linear infinite}.resultColumn{display:flex;flex-direction:column;gap:1.5rem}.resultTitle{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1rem}.resultTitle h2{margin:0;font-size:1.4rem}.searchCard{display:flex;flex-direction:column;gap:.4rem}.searchCard.modern{min-width:220px}.patientSearchHint{margin:0;font-size:.9rem;color:#94a3b8}.patientSearchInput{padding:.65rem .85rem;border-radius:.9rem;border:1px solid rgba(148,163,184,.6);font-size:.95rem;transition:border-color .2s ease,box-shadow .2s ease}.patientSearchInput:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.15)}.filterTabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));grid-gap:.75rem;gap:.75rem}.filterTab{border-radius:1rem;border:1px solid rgba(148,163,184,.4);padding:.75rem 1rem;background:#fff;display:flex;justify-content:space-between;align-items:center;font-weight:600;color:#475569}.filterTab.isActive{border-color:rgba(37,99,235,.4);color:#1d4ed8;background:rgba(37,99,235,.08)}.filterCount{font-size:.85rem;background:hsla(0,0%,100%,.8);padding:.1rem .6rem;border-radius:999px;border:1px solid rgba(148,163,184,.4)}.emptyState{border:1px dashed rgba(148,163,184,.5);border-radius:1.2rem;padding:2rem;text-align:center;color:#94a3b8}.patientTableWrapper{background:#fff;border-radius:20px;border:1px solid rgba(226,232,240,.9);overflow:hidden;box-shadow:0 20px 45px -45px rgba(15,23,42,.8)}.patientPreviewHeader{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}.patientPreviewLabel{margin:0;text-transform:uppercase;letter-spacing:.08em;font-size:.85rem;color:#94a3b8;font-weight:600}.patientPreviewHeader h3{margin:.25rem 0 0;font-size:1.35rem;color:#0f172a}.patientPreviewHint{margin:.5rem 0 0;color:#475569;font-size:.95rem}.patientTable{width:100%;border-collapse:collapse;font-size:.95rem}.patientTable th{text-align:left;padding:1rem 1.5rem;background:rgba(248,250,252,.8);color:#475569;font-weight:600}.patientTable td{padding:1rem 1.5rem;border-top:1px solid rgba(226,232,240,.7);vertical-align:top}.patientNameBlock{display:flex;flex-direction:column;gap:.2rem}.patientSimpleName{margin:0;font-size:1rem;font-weight:600}.countdownHint,.patientNote,.patientSimpleUid{margin:0;font-size:.9rem;color:#94a3b8}.patientNote{color:#475569}.patientError{margin:.5rem 0 0}.patientActions{display:flex;gap:.5rem;flex-wrap:wrap}.promptTextarea,.recordInput{width:100%;border-radius:1rem;border:1px solid rgba(148,163,184,.5);padding:.75rem 1rem;font-family:inherit;font-size:.95rem;transition:border-color .2s ease,box-shadow .2s ease}.promptTextarea:focus,.recordInput:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.15)}.promptActions{display:flex;flex-direction:column;gap:.5rem}.promptFeedback,.promptHelper{margin:0;color:#15803d;font-size:.88rem;background:rgba(187,247,208,.35);border:1px solid rgba(74,222,128,.4);padding:.6rem .9rem;border-radius:.8rem}.promptFeedbackArea{gap:.35rem}.promptEditor,.promptFeedbackArea{display:flex;flex-direction:column}.promptEditor{gap:1.2rem;margin-top:1rem}.promptSection{display:flex;flex-direction:column;gap:.6rem}.promptSectionHeader{display:flex;justify-content:space-between;gap:1rem;align-items:baseline}.promptSectionTitle{margin:0;font-weight:600}.promptSectionHint{margin:0;font-size:.85rem;color:#94a3b8}.promptCurrentText,.promptDataBlock,.promptPreviewArea{background:#0f172a;color:#e2e8f0;border-radius:1rem;padding:1rem;font-size:.85rem;line-height:1.5;max-height:260px;overflow:auto}.promptCurrentLabel{margin:0 0 .35rem;font-size:.9rem;color:#475569}.alert{display:flex;justify-content:space-between;gap:1rem;border-radius:1rem;padding:1rem 1.25rem;align-items:center}.alert-error{background:hsla(0,93%,94%,.8);border:1px solid hsla(0,91%,71%,.5);color:#b91c1c}.zipButton{display:inline-flex}.guidanceHeader{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1.5rem}.guidanceRevamp{padding-top:2rem}.guidanceRevampContainer{gap:2rem}.guidanceHero{background:linear-gradient(120deg,hsla(0,0%,100%,.95),rgba(226,232,240,.65));border-radius:32px;padding:2rem 2.5rem;border:1px solid rgba(148,163,184,.2);box-shadow:0 30px 60px -45px rgba(15,23,42,.5)}.guidanceIdentity{display:flex;gap:1.25rem;align-items:flex-start}.guidanceBackButton{width:44px;height:44px;border-radius:14px;border:1px solid rgba(148,163,184,.4);color:#475569;display:inline-flex;justify-content:center;align-items:center;background:#fff;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.6);transition:transform .15s ease,box-shadow .2s ease}.guidanceBackButton:hover{transform:translateY(-1px);box-shadow:0 8px 20px -12px rgba(15,23,42,.4)}.guidanceMetaLine{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;margin-top:.3rem}.guidanceJobMeta{display:flex;flex-direction:column;gap:.5rem;align-items:flex-start}.guidanceJobPanel{display:flex;flex-direction:column;gap:1rem;min-width:240px}.guidanceJobBadge{display:flex;flex-direction:column;gap:.35rem}.guidanceStats{display:flex;gap:1rem;font-size:.9rem;color:#475569}.guidanceStatsCard{display:flex;gap:1.5rem;padding:1rem 1.25rem;border-radius:18px;background:rgba(15,23,42,.05);border:1px solid rgba(148,163,184,.3)}.metaLabel{margin:0;font-size:.85rem;text-transform:uppercase;letter-spacing:.15em;color:#94a3b8}.metaValue{margin:.2rem 0 0;font-size:1.4rem;font-weight:700;color:#0f172a}.guidanceLayout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);grid-gap:2rem;gap:2rem}.guidanceRevampGrid{align-items:start}.guidanceCard{background:#fff;border-radius:24px;border:1px solid rgba(226,232,240,.8);padding:1.75rem;box-shadow:0 25px 60px -50px rgba(15,23,42,.9);gap:1rem}.guidanceCard,.guidanceFlowDemo{display:flex;flex-direction:column}.guidanceFlowDemo{gap:2rem}.ruleGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));grid-gap:1.5rem;gap:1.5rem}.ruleLabel{display:block;font-weight:600;font-size:.95rem;color:#0f172a;margin-bottom:.35rem}.ruleHint{margin:.35rem 0 0;color:#94a3b8;font-size:.85rem}.ruleFooter{display:flex;flex-direction:column;gap:.35rem;margin-top:.35rem}.guidanceDataCollapsible .recordGroup{padding:0;border:none}.collapsibleList{display:flex;flex-direction:column;gap:1rem}.recordGroupCollapsible{border:1px solid rgba(226,232,240,.9);border-radius:20px;background:rgba(248,250,252,.7)}.collapsibleHeader{width:100%;border:none;background:transparent;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.9rem 1.25rem;cursor:pointer;text-align:left;color:#0f172a}.collapseIcon{width:1.1rem;height:1.1rem;color:#475569;transition:transform .2s ease}.recordCollapseBody{padding:0 1.25rem 1.25rem;display:flex;flex-direction:column;gap:1rem}.recordCollapseRow{display:flex;flex-direction:column;gap:.35rem}.recordCollapseRow label{font-size:.9rem;font-weight:600;color:#475569}.guidanceFlexRow{display:flex;gap:1.5rem;flex-wrap:wrap}.guidanceFlexRow>.guidanceCard{flex:1 1;min-width:280px}.wordToolbar{display:flex;flex-wrap:wrap;gap:.35rem;padding:.5rem .75rem;border-bottom:1px solid rgba(226,232,240,.9)}.wordToolbar,.wordToolbar button{align-items:center;background:#fff}.wordToolbar button{border:1px solid rgba(148,163,184,.6);border-radius:10px;color:#0f172a;cursor:pointer;width:38px;height:38px;display:inline-flex;justify-content:center;transition:border-color .2s ease,color .2s ease,background-color .2s ease}.wordToolbar button .toolbarIcon{width:1rem;height:1rem}.wordToolbar button:hover:not(:disabled){border-color:#2563eb;color:#2563eb}.wordToolbar button:disabled{opacity:.4;cursor:not-allowed}.wordToolbar button.active{border-color:#2563eb;background:rgba(37,99,235,.08);color:#1d4ed8}.wordToolbarDivider{width:1px;height:26px;background:rgba(148,163,184,.7);margin:0 .5rem}.wordExportButton{margin-left:auto;background:#2563eb!important;border-color:#2563eb!important;color:#fff!important;width:auto!important;height:auto!important;padding:.55rem 1.2rem!important;font-size:.95rem}.wordEditorWrapper{border-radius:24px;border:1px solid rgba(226,232,240,.9);background:#f8fafc;padding:1rem}.wordEditorPage{min-height:480px;background:#fff;border-radius:18px;border:1px solid rgba(15,23,42,.1);box-shadow:0 25px 60px -45px rgba(15,23,42,.4);padding:2rem 2.5rem;line-height:1.6;font-size:1rem;overflow:auto}.wordEditorPlaceholder{display:flex;align-items:center;justify-content:center;color:#475569;font-weight:500}.wordEditorPage:focus{outline:none;box-shadow:0 0 0 2px rgba(37,99,235,.25)}.wordEditorPage h1,.wordEditorPage h2,.wordEditorPage h3{margin:.75rem 0}.wordEditorPage ul{padding-left:1.4rem}.wordEditorPage p{margin:.35rem 0}.docxPreviewPanel{margin-top:1.5rem;border-radius:18px;border:1px dashed rgba(15,23,42,.1);background:#fff;padding:1rem 1.5rem;display:flex;flex-direction:column;gap:.75rem}.docxPreviewContent{border-radius:14px;border:1px solid rgba(226,232,240,.9);background:#f8fafc;padding:1rem;max-height:260px;overflow-y:auto}.docxPreviewLine{font-family:Times New Roman,Georgia,serif;font-size:1rem;line-height:1.6;margin:.2rem 0;color:#0f172a}.docxPreviewLine-empty{min-height:1.2rem}.guidanceChatCard{flex:1 1}.guidanceChatStandalone{margin-top:1rem}.chatLaunchButton{width:100%;border:1px dashed rgba(15,23,42,.2);border-radius:18px;padding:1.25rem;background:rgba(15,23,42,.02);font-size:1rem;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;cursor:pointer}.chatHistory{border:1px solid rgba(226,232,240,.8);border-radius:20px;padding:1rem;background:rgba(248,250,252,.8);max-height:320px;overflow-y:auto;gap:.75rem}.chatBubble,.chatHistory{display:flex;flex-direction:column}.chatBubble{border-radius:16px;padding:.85rem 1rem;gap:.35rem}.chatBubbleDoctor{align-self:flex-end;background:rgba(59,130,246,.1)}.chatBubbleAi{align-self:flex-start;background:rgba(15,23,42,.05)}.imessageCard{border-radius:28px;background:linear-gradient(180deg,#f8fbff,#eef2ff);border:1px solid rgba(15,23,42,.08);box-shadow:0 35px 65px -40px rgba(15,23,42,.6);overflow:hidden;display:flex;flex-direction:column}.imessageHeader{padding:1.5rem 1.75rem .75rem}.imessageTitle{display:inline-flex;align-items:center;gap:.4rem;font-size:1.2rem;font-weight:700;color:#0f172a}.imessageSubtitle{margin-top:.35rem;color:#475569}.imessagePrompt{margin-top:1rem;padding:.85rem 1rem;border-radius:16px;background:hsla(0,0%,100%,.65);border:1px solid rgba(226,232,240,.9);display:flex;flex-direction:column;gap:.75rem}.imessagePromptBlock{display:flex;flex-direction:column;gap:.3rem}.imessagePromptLabel{font-size:.85rem;font-weight:600;margin-bottom:.2rem;color:#0f172a}.imessagePromptContent{margin:0;white-space:pre-line;font-size:.85rem;color:#334155;line-height:1.5}.imessageBody{position:relative;padding:0;flex:1 1}.imessageScroll{padding:0 1.75rem 1.5rem;height:360px;overflow-y:auto}.imessageTimeline{display:flex;flex-direction:column;gap:1rem}.imessageRow{display:flex;width:100%;align-items:flex-end;gap:8px;margin-bottom:12px}.imessageRow-user{display:flex;justify-content:flex-start;flex-direction:row-reverse}.imessageMeta{display:flex;align-items:flex-end}.imessageAvatar{width:36px;height:36px;border:none;background:rgba(15,23,42,.06)}.imessageBubble{max-width:75%;border-radius:22px;padding:.85rem 1rem;font-size:.95rem;line-height:1.6;box-shadow:0 20px 35px -28px rgba(15,23,42,.85)}.imessageBubble-ai{background:#fff;color:#0f172a;border-bottom-left-radius:6px}.imessageBubble-user{background:linear-gradient(150deg,#0a84ff,#4facff);color:#fff;border-bottom-right-radius:6px}.imessageActions{display:inline-flex;gap:.45rem;align-items:center}.imessageActionButton{width:36px;height:36px;border:none;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#0f172a;cursor:pointer;transition:background .2s ease,color .2s ease,transform .15s ease}.imessageActionButton:hover{background:rgba(15,23,42,.08)}.imessageActionButton:focus-visible{outline:none;box-shadow:0 0 0 2px rgba(37,99,235,.35)}.imessageActionButton.is-active{color:#2563eb;background:rgba(37,99,235,.15)}.imessageFooter{padding:1.25rem 1.75rem 1.5rem;border-top:1px solid rgba(148,163,184,.35);background:#fff}.imessageComposer{display:flex;flex-direction:column;gap:.75rem}.imessageComposerRow{display:flex;gap:.65rem}.imessageInput{flex:1 1;border-radius:999px;border:1px solid rgba(148,163,184,.45);background:#f1f5f9;padding:.85rem 1.25rem;font-size:.95rem}.imessageInput:focus-visible{outline:none;box-shadow:0 0 0 2px rgba(14,165,233,.35)}.imessageSend{border-radius:50%;width:48px;height:48px;background:#0a84ff;border:none;transition:transform .15s ease,box-shadow .15s ease}.imessageSend:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 12px 24px -12px rgba(10,132,255,.8)}.imessageError{font-size:.9rem;color:#dc2626}.chatSender{font-size:.8rem;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:.08em}.chatActions{display:flex;gap:.5rem;flex-wrap:wrap}.chatActionButton{border:1px solid rgba(148,163,184,.5);background:#fff;border-radius:999px;padding:.35rem .85rem;font-size:.8rem;font-weight:600;color:#0f172a;display:inline-flex;align-items:center;gap:.35rem}.chatActionButton:disabled{opacity:.5;cursor:not-allowed}.chatComposer{display:flex;gap:.75rem;margin-top:1rem;align-items:center}.chatComposer .modernInput{flex:1 1}.guidanceActionPanel{gap:1.25rem}.guidanceDataPanel{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.promptToggleButton{margin-left:auto;border:none;background:transparent;border-radius:999px;padding:.35rem .75rem;font-size:.95rem;font-weight:600;color:#0f172a;display:inline-flex;align-items:center;gap:.4rem;cursor:pointer;transition:background .2s ease,color .2s ease}.promptToggleButton:hover{background:rgba(15,23,42,.06)}.promptToggleButton:focus-visible{outline:none;box-shadow:0 0 0 2px rgba(37,99,235,.35)}.sectionToggleTitle{border:none;background:rgba(248,250,252,.8);border-radius:16px;padding:.65rem 1rem;font-size:1.1rem;font-weight:600;color:#0f172a;display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;width:100%;justify-content:space-between}.sectionToggleTitle span{text-align:left}.guidanceDataCard{gap:1.25rem}.recordHeaderRevamp{border-bottom:1px solid rgba(226,232,240,.7);padding-bottom:1rem}.recordHeaderSummary .sectionToggleTitle{width:auto;min-width:0}.panelEyebrow{text-transform:uppercase;letter-spacing:.3em;font-size:.8rem;color:#94a3b8;margin:0}.recordHeader{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.75rem;align-items:flex-start}.recordStatusGroup{gap:.4rem;min-width:180px}.recordGroups,.recordStatusGroup{display:flex;flex-direction:column}.recordGroups{gap:1.2rem}.recordGroupHeader{display:flex;justify-content:space-between;align-items:center;gap:.75rem}.recordChip{padding:.25rem .75rem;border-radius:999px;background:rgba(59,130,246,.12);color:#1d4ed8;font-size:.85rem;font-weight:600}.recordGroupTitle{margin:0 0 .5rem}.recordTableModern{border-radius:18px;overflow:hidden;border:1px solid rgba(226,232,240,.9);box-shadow:0 16px 40px -40px rgba(15,23,42,.6)}.recordTable{width:100%;border-collapse:collapse;border:1px solid rgba(226,232,240,.7);border-radius:1.2rem;overflow:hidden}.recordTable th{width:30%;text-align:left;padding:.9rem;background:rgba(248,250,252,.8);font-weight:600;font-size:.92rem}.recordTable td{padding:.75rem}.modernInput{border-radius:14px;border:1px solid rgba(148,163,184,.35);padding:.85rem;font-size:.95rem;transition:border-color .2s ease,box-shadow .2s ease;background:rgba(248,250,252,.8)}.modernInput:focus{border-color:rgba(37,99,235,.6);box-shadow:0 0 0 3px rgba(37,99,235,.15)}.recordEmpty{margin:0;color:#94a3b8}.guidanceControlPanel{background:linear-gradient(160deg,rgba(8,145,178,.08),rgba(59,130,246,.05))}.guidancePatientHeader{display:flex;justify-content:space-between;align-items:center;gap:1rem}.guidancePatientName{margin:0;font-size:1.2rem;font-weight:600}.guidancePatientNote{display:flex;gap:.75rem;align-items:flex-start;padding:1rem;border-radius:18px;background:rgba(248,250,252,.8);border:1px solid rgba(226,232,240,.8)}.noteIcon{width:1.2rem;height:1.2rem;color:#0ea5e9}.guidanceActions{display:flex;gap:.75rem;flex-wrap:wrap}.guidanceActionRow{margin-top:.4rem}.guidanceSide{gap:1rem}.regenerateButton.enhanced{flex:1 1;font-size:.95rem;letter-spacing:-.01em}.downloadLink.compact{gap:.35rem;padding:.65rem 1rem}.actionIcon{width:1rem;height:1rem}.actionIcon.spinning{animation:spin 1s linear infinite}.guidancePromptModern{gap:1.5rem}.modernHeader{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.guidanceStatus{font-size:.8rem;font-weight:600;display:inline-flex;align-items:center;gap:.3rem;border-radius:999px;padding:.2rem .8rem}.guidanceStatusIcon{width:.85rem;height:.85rem}.guidanceStatus-saving .guidanceStatusIcon{animation:spin 1s linear infinite}.guidanceStatus-saving{background:rgba(37,99,235,.12);color:#1d4ed8}.guidanceStatus-error{background:hsla(0,91%,71%,.18);color:#b91c1c}.guidanceStatus-success{background:rgba(16,185,129,.18);color:#047857}.guidanceStatus-idle{background:rgba(148,163,184,.18);color:#475569}.guidancePreview{background:rgba(15,23,42,.9);color:#e2e8f0;border-radius:18px;padding:1rem;font-size:.85rem;line-height:1.5;border:1px solid rgba(15,23,42,.4)}.guidancePreviewWrapper{display:flex;flex-direction:column;gap:.35rem}.promptCurrent{display:flex;flex-direction:column;gap:.5rem}.countdownHint{margin-bottom:.5rem;font-size:.9rem;color:#64748b}.patientStatus{display:inline-flex;align-items:center;padding:.2rem .65rem;border-radius:999px;font-size:.85rem;font-weight:600}.patientStatus.status-dang-xu-ly{background:rgba(59,130,246,.15);color:#1d4ed8}.patientStatus.status-thanh-cong{background:rgba(16,185,129,.18);color:#047857}.patientStatus.status-loi{background:hsla(0,91%,71%,.2);color:#b91c1c}.previewList,.promptHelper{color:#475569}.previewList{margin:0;padding-left:1rem;font-size:.9rem}.guidanceLoader{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;color:#475569}.loaderIcon{width:2rem;height:2rem;animation:spin 1s linear infinite;color:#2563eb}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@media (max-width:1024px){.guidanceLayout,.jobGrid,.panelContent{grid-template-columns:1fr}.guidanceHeader,.header,.headerActions{flex-direction:column;align-items:flex-start}.patientTableWrapper{overflow-x:auto}.homePanelGrid{grid-template-columns:1fr}.homeUploadArea{border-right:none;padding-right:0}.homePanelRevamp{padding:1.5rem}.homeHeroCard{flex-direction:column;align-items:flex-start}.navLinks{display:none}.navMobileToggle{display:inline-flex}.navMobileMenu{display:flex;flex-direction:column;gap:.25rem;padding:.75rem 1.25rem 1rem;border-top:1px solid rgba(226,232,240,.9)}.navMobileLink{text-decoration:none;font-weight:600;color:#475569;padding:.65rem .5rem;border-radius:10px}.navMobileLink.isActive{color:#1d4ed8;background:rgba(59,130,246,.12)}}