:root{font-family:Arial,Helvetica,sans-serif;color:#172a3e;background:#f5f7fa}*{box-sizing:border-box}body{margin:0}a{color:#1d6c91;text-decoration:none}a:hover{text-decoration:underline}.app{display:flex;min-height:100vh}aside{width:252px;flex:none;background:#112a42;color:white;padding:28px 20px;display:flex;flex-direction:column;gap:18px}aside .brand{font-weight:800;font-size:23px}aside small{font-size:11px;letter-spacing:1.4px;color:#9cb5c9}nav{display:grid;gap:6px;margin-top:22px}nav a{color:#cbd9e6;padding:12px 14px;border-radius:10px}nav a:hover,nav a.active{background:#25445f;text-decoration:none;color:#fff}aside form{margin-top:auto}main.content{flex:1;min-width:0;padding:34px 46px;max-width:1500px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;gap:12px}h1{font-size:32px;margin:8px 0}h2{font-size:20px;margin:0 0 20px}h3{margin-top:30px}.eyebrow{font-size:11px;letter-spacing:1.5px;color:#698399;font-weight:700}.status{background:#e8f2f6;color:#356b7f;padding:9px 14px;border-radius:20px;font-size:12px}.grid{display:grid;gap:20px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.panel,.metric{background:white;border:1px solid #e1e8ee;border-radius:15px;padding:26px;box-shadow:0 4px 18px #18344b08;margin-bottom:22px}.metric{display:flex;flex-direction:column;gap:14px}.metric span{color:#637b8d}.metric strong{font-size:42px;color:#18354e}.metric a{font-size:13px}.notice{background:#eef5f8;border-left:3px solid #4489a4;padding:14px;border-radius:5px;line-height:1.6}p{line-height:1.6}label{display:block;font-size:13px;font-weight:650;margin:16px 0 7px}input,textarea{display:block;width:100%;padding:12px 13px;margin-top:7px;border:1px solid #cedbe5;border-radius:9px;font:inherit;font-weight:400;background:white;color:#172a3e}textarea{resize:vertical}button{border:0;background:#1e6687;color:#fff;border-radius:9px;padding:12px 18px;font:inherit;font-weight:650;cursor:pointer}button:hover{background:#174f69}button.ghost{background:#29475f}.listrow{display:flex;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid #edf1f4}.listrow span{color:#698399}.visit{border-bottom:1px solid #e8edf2;padding:15px 0}.visit p{margin:9px 0}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:15px;text-align:left;border-bottom:1px solid #e8edf2;vertical-align:top}th{font-size:12px;color:#58738a;background:#f5f8fa}.studyitem{padding:18px;border:1px solid #e8edf2;border-radius:10px;display:grid;gap:8px}.studyitem span{font-size:12px;color:#738a9a}footer{padding:24px 0;color:#8b9eac;font-size:12px}.error{background:#fff0ef;color:#a83e3e;padding:12px;border-radius:9px;margin:12px 0}.login{max-width:430px;margin:12vh auto;background:#fff;border:1px solid #e1e8ee;border-radius:16px;padding:38px;box-shadow:0 12px 35px #17334b10}.login .brand{font-size:25px;color:#15364f;font-weight:800}.login button{width:100%;margin-top:15px}@media(max-width:900px){.grid.two,.grid.three{grid-template-columns:1fr}main.content{padding:24px}aside{width:200px}}@media(max-width:650px){.app{display:block}aside{width:auto;padding:18px}nav{display:flex;overflow:auto;margin-top:5px}nav a{white-space:nowrap}aside form{margin-top:0}main.content{padding:20px}header{align-items:flex-start;flex-direction:column}h1{font-size:27px}.login{margin:6vh 15px}}
.diagnostic-steps h4{font-size:14px;color:#1b536f;border-bottom:1px solid #e2ebf0;padding-bottom:10px;margin:28px 0 10px}.quick-picks{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 16px}.quick-picks button{font-size:12px;font-weight:550;background:#eaf2f6;color:#245873;padding:8px 11px;border:1px solid #d6e6ed;border-radius:18px}.quick-picks button:hover{background:#d8e9f1}.diagnostic-steps textarea{line-height:1.5}

.herb-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:18px 0 30px}.herb-filters label{flex:1 1 220px;margin:0}.herb-filters button{margin-bottom:0}.herb-filters>a{padding:12px 0}.herb-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:14px;margin:14px 0 30px}.herb-card{padding:20px;border:1px solid #dde8ef;border-radius:13px;background:#fff;box-shadow:0 3px 12px #15354d08}.herb-title h3{margin:0 0 4px;color:#163d57}.herb-title>span{font-size:13px;color:#657f90}.herb-ids{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.herb-ids span{font-size:12px;padding:7px 9px;border-radius:7px;background:#edf4f7;color:#31556b}.herb-card p{margin:10px 0}.herb-card small{display:block;margin-top:12px;color:#6b7f8b;line-height:1.5}.herb-patterns{display:flex;flex-wrap:wrap;gap:6px}.herb-patterns span{font-size:12px;background:#eaf3ed;color:#28624a;border-radius:15px;padding:5px 9px}

.mobile-bar{display:contents}.mobile-menu-toggle{display:none}select{display:block;width:100%;padding:12px;margin-top:7px;border:1px solid #cedbe5;border-radius:9px;background:white;color:#172a3e;font:inherit}
@media(max-width:650px){
aside{position:sticky;top:0;z-index:20;padding:0;box-shadow:0 4px 15px #122b4230}
.mobile-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;gap:12px}
aside .brand{font-size:20px}
.mobile-menu-toggle{display:block;min-height:44px;background:#29475f;padding:9px 14px}
aside small{display:none}
aside nav{display:none;margin:0;padding:8px 12px 12px;max-height:65vh;overflow-y:auto;overflow-x:hidden;flex-direction:column}
aside nav.is-open{display:flex}
aside nav a{display:flex;align-items:center;min-height:44px;white-space:normal}
aside form{display:none;padding:0 12px 14px}
aside.menu-open form{display:block}
aside form button{width:100%}
main.content{padding:18px 14px 28px}
header{margin-bottom:18px}
h1{font-size:26px}
.panel,.metric{padding:16px 14px;margin-bottom:14px}
.grid{gap:12px}
.herb-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.herb-filters label{width:100%;min-width:0}
.herb-filters button{width:100%;min-height:46px}
.herb-filters>a{text-align:center}
.herb-cards{grid-template-columns:minmax(0,1fr)}
.herb-card{padding:15px}
.product-table{overflow:visible}
.product-table table,.product-table tbody,.product-table tr,.product-table td{display:block;width:100%}
.product-table thead{display:none}
.product-table tr{border:1px solid #dce7ee;border-radius:12px;padding:10px 14px;margin-bottom:12px}
.product-table td{display:flex;justify-content:space-between;gap:12px;text-align:right;padding:8px 0;overflow-wrap:anywhere;font-size:13px}
.product-table td::before{content:attr(data-label);flex:0 0 38%;text-align:left;color:#607b8e;font-weight:650}
.tablewrap:not(.product-table){overflow-x:auto}
.tablewrap:not(.product-table) table{min-width:520px}
input,select,textarea{font-size:16px}
.quick-picks button{min-height:40px}
}

/* One alphabetical catalogue, with products beside their recipe and use. */
.catalogue-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px;margin:22px 0 0}
.catalogue-pagination a{color:#1d6c91;background:#edf4f7;min-height:44px;padding:12px 16px}
.catalogue-pagination a:hover{color:#163d57;background:#dcebf2}
.catalogue-pagination span{font-size:13px;color:#607b8e}
.catalogue-count{font-size:13px;color:#607b8e;margin:0 0 18px}
.catalogue-table table{table-layout:fixed}
.catalogue-table th:nth-child(1){width:22%}
.catalogue-table th:nth-child(2){width:31%}
.catalogue-table th:nth-child(3){width:18%}
.catalogue-table th:nth-child(4){width:29%}
.herb-usage-table th:nth-child(1){width:18%}.herb-usage-table th:nth-child(2){width:32%}.herb-usage-table th:nth-child(3){width:24%}.herb-usage-table th:nth-child(4){width:26%}
.usage-detail{margin:10px 0}.usage-detail summary{cursor:pointer;color:#245873;font-weight:650;padding:5px 0}.usage-detail p{font-size:13px;color:#536c7e}.usage-symptoms{margin-top:0!important}
.catalogue-table td{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.catalogue-table td p{margin:7px 0}
.formula-name{display:block;font-size:16px;color:#163d57}
.catalogue-muted{display:block;color:#617889;font-size:12px;line-height:1.6}
.catalogue-source{font-size:12px}
.catalogue-product+.catalogue-product{border-top:1px solid #e8edf2;padding-top:10px;margin-top:10px}
.catalogue-product>a{display:block;font-size:12px;margin-top:4px}
@media(min-width:651px){aside .mobile-menu-toggle{display:none}}
@media(max-width:1050px) and (min-width:651px){.catalogue-table table{min-width:850px}}
@media(max-width:650px){
 .catalogue-table table{table-layout:auto}
 .catalogue-table td{display:block;text-align:left;padding:10px 0;font-size:14px}
 .catalogue-table td::before{display:block;margin-bottom:5px;font-size:11px;text-transform:uppercase;letter-spacing:.5px}
 .catalogue-table td:first-child::before{display:none}
 .catalogue-table .formula-name{font-size:18px}
 .catalogue-table tr{padding:12px 16px;margin-bottom:16px}
}

.client-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.8fr);gap:20px;align-items:start}
.client-heading h2{margin-bottom:10px}.client-heading h2 small{color:#698399;font-weight:500}
.client-profile{border-top:1px solid #e0e9ef;padding-top:16px;margin-top:16px}
.client-profile summary,.visit-picker summary,.visit>summary{cursor:pointer;font-weight:650;line-height:1.6;min-height:32px}
.visit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.visit-fields>label{min-width:0}
.visit-picker{border:1px solid #dae6ed;border-radius:10px;padding:12px;margin:15px 0}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:280px;overflow:auto;padding:8px 2px;margin-top:8px}
label.choice{display:flex;align-items:flex-start;gap:9px;margin:0;padding:10px;border:1px solid #e1e9ee;border-radius:8px;font-size:13px;font-weight:500;line-height:1.45;cursor:pointer}
.choice input[type=checkbox]{width:auto;min-width:18px;height:18px;flex:none;margin:1px 0 0;padding:0}
.choice small{display:block;color:#698399;font-size:11px;margin-top:4px}
.choice[hidden]{display:none}
.product-entry{border:1px solid #cfdee7;border-radius:11px;padding:14px;margin:18px 0;min-width:0}
.product-entry legend{font-weight:700;font-size:13px;padding:0 6px;overflow-wrap:anywhere;max-width:100%}
button.secondary,.button-link{display:inline-block;background:#edf4f7;color:#245873;border:1px solid #d6e4ec;border-radius:9px;padding:10px 14px;font-weight:600;font-size:13px;line-height:1.5}
button.secondary:hover,.button-link:hover{background:#dcebf3;text-decoration:none}
button:disabled{opacity:.65;cursor:wait}
.saved-message{background:#eaf5ee;color:#24583b;padding:12px;border-radius:8px}
.comparison-panel p,.comparison-panel li{font-size:13px;overflow-wrap:anywhere}
.comparison-panel h3{margin-top:22px}.comparison-panel h4,.visit h4{margin:18px 0 8px;font-size:14px;color:#245873}
.saved-product{padding:12px;margin:10px 0;background:#f5f8fa;border-radius:8px;overflow-wrap:anywhere}
.saved-product>b{display:block;font-size:12px;margin-top:5px}.saved-product p{margin:6px 0}
.visit[open]{padding-bottom:22px}.visit summary{padding:4px 0}
@media(max-width:1100px){.client-workspace{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.visit-fields,.choice-grid{grid-template-columns:minmax(0,1fr)}.client-workspace{gap:0}.product-entry{padding:12px}.button-link{width:100%;text-align:center}.client-profile summary{min-height:44px}.food-choices{max-height:240px}}



/* Nutrition catalogue: visual groups and traditional thermal nature */
.nutrition-table table{border-collapse:separate;border-spacing:0;width:100%}
.nutrition-table thead th{background:#e6eef3;color:#24465b;font-weight:750;border-bottom:2px solid #c5d7e2}
.nutrition-table tbody tr.nutrition-food-row:nth-of-type(even) td{background:#f5f9fb}
.nutrition-table tbody tr.nutrition-food-row:hover td{background:#edf5f8}
.nutrition-table tbody tr.nutrition-category-row th{background:#dcebe8!important;color:#174c47!important;text-align:left;font-size:14px;letter-spacing:.02em;padding:13px 16px;border-top:12px solid #fff;border-bottom:2px solid #a5c9c1}
.nutrition-table tbody td{border-bottom:1px solid #dfe9ee;vertical-align:top}
.nutrition-table tbody td:first-child{border-left:4px solid #b4d4ce}
.thermal-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 11px;font-size:12px;font-weight:750;white-space:normal;text-align:center}
.thermal-hot{background:#f9d3d3;color:#9a2020;border:1px solid #e9a5a5}
.thermal-warm{background:#ffdfcb;color:#984113;border:1px solid #efb38e}
.thermal-neutral{background:#e6e9e9;color:#4a5b60;border:1px solid #cbd2d5}
.thermal-cool{background:#dbeefa;color:#225e91;border:1px solid #afd4ec}
.thermal-cold{background:#c9e1f7;color:#16467d;border:1px solid #8dbce8}
@media(max-width:650px){.nutrition-table .nutrition-category-row{display:table-row!important}.nutrition-table .nutrition-category-row th{display:table-cell!important;padding:12px!important}.nutrition-table .nutrition-food-row td:first-child{border-left:4px solid #b4d4ce}}


/* Atlas visual refresh: desktop glass navigation and accessible focus */
:root{--atlas-accent:#217b84;--atlas-ink:#172f42}
body{background:radial-gradient(ellipse at 85% 0%,#dcefed 0%,transparent 42%),linear-gradient(160deg,#f4f8fa,#edf3f7 70%);background-attachment:fixed}
aside{background:linear-gradient(160deg,#112f45 0%,#173d50 55%,#102a3d 100%);box-shadow:8px 0 30px #15394a0d}
aside .brand{color:#f4fbfc;text-decoration:none;letter-spacing:-.5px}
aside .brand:hover{color:#fff;text-decoration:none}
aside nav a{transition:background .18s ease,color .18s ease,transform .18s ease;border:1px solid transparent}
aside nav a:hover{background:#ffffff16;transform:translateX(2px)}
aside nav a.active{background:#d4f0e822;border-color:#b3e5d240;box-shadow:inset 3px 0 0 #91dfcc}
.panel,.metric,.herb-card{background:#ffffffdc;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-color:#ffffffd9;box-shadow:0 9px 30px #163e5310,0 1px 3px #163e5308}
.panel,.metric{border-radius:18px}
.studyitem{background:#ffffffb0;border:1px solid #d8e7e9;border-radius:14px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
a.studyitem:hover{transform:translateY(-2px);box-shadow:0 10px 22px #1b526014;border-color:#8dc9bf;text-decoration:none}
button{transition:background .18s ease,box-shadow .18s ease}
button:hover{box-shadow:0 4px 14px #1e668728}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #28a2a8;outline-offset:3px}
header .status{border:1px solid #c6e4e4;background:#e8f5f3;color:#246b70}
@media(min-width:901px){aside{position:sticky;top:0;height:100vh;overflow-y:auto}main.content{width:100%}}
@media(max-width:650px){body{background-attachment:scroll}aside{background:#123247}aside nav a:hover{transform:none}.panel,.metric{backdrop-filter:none;-webkit-backdrop-filter:none}header .status{align-self:flex-start}}
@media(prefers-reduced-motion:reduce){aside nav a,.studyitem,button{transition:none!important}aside nav a:hover,a.studyitem:hover{transform:none}}

/* Client list: separate destructive action from card navigation */
.client-list-entry{display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf1f4}
.client-list-entry .listrow{flex:1;min-width:0;border-bottom:0}
.client-list-entry form{margin:0;flex:none}
.client-delete-button{padding:8px 12px;font-size:12px;background:#fff3f2;color:#a43333;border:1px solid #efc9c6}
.client-delete-button:hover{background:#fbe2df;color:#872424}
@media(max-width:650px){.client-list-entry{align-items:flex-start;gap:6px}.client-list-entry .listrow{flex-direction:column;gap:3px}.client-delete-button{margin-top:12px}}

/* Client health summary in the right-hand workspace column */
.client-side-column{display:flex;flex-direction:column;gap:18px;min-width:0}
.client-health-card{border:1px solid #cfe4df;background:linear-gradient(145deg,#fff,#f6fbfa)}
.client-health-card h2{margin-bottom:6px}
.client-health-card h3{font-size:14px;color:#1b6870;border-bottom:1px solid #dbeae8;padding-bottom:7px;margin:20px 0 9px}
.client-health-card p{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:900px){.client-side-column{gap:16px}}

/* Distinct diagnostic sections for client visit */
.diagnostic-section{padding:18px;border-radius:16px;margin:14px 0 18px;border:1px solid transparent}
.diagnostic-section h4{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:16px}
.diagnostic-number{display:inline-grid;place-items:center;width:30px;height:30px;flex:none;border-radius:10px;color:#fff;font-weight:700}
.diagnostic-anamnesis{background:#f0f6fc;border-color:#d5e4f5}
.diagnostic-anamnesis .diagnostic-number{background:#477db4}
.diagnostic-tongue{background:#fff2f2;border-color:#f3d7d7}
.diagnostic-tongue .diagnostic-number{background:#b65b67}
.diagnostic-pulse{background:#f2f0fc;border-color:#dfd9f3}
.diagnostic-pulse .diagnostic-number{background:#7660b0}
.diagnostic-section textarea,.diagnostic-section input{background:#fff}
.diagnostic-tongue .quick-picks{display:flex;flex-wrap:wrap;gap:6px}
@media(max-width:650px){.diagnostic-section{padding:13px;margin:12px 0}}

/* Selected herbal products: clear, reversible selection */
.selected-products-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:18px 0 10px}
.selected-products-heading strong{color:#206b4c}
.product-entry.is-selected{background:linear-gradient(145deg,#f1fbf4,#e8f7ee);border:2px solid #6ab78b;box-shadow:0 5px 16px #176f3920}
.product-entry.is-selected legend{color:#205c40;line-height:1.7}
.product-selected-badge{display:inline-block;border-radius:20px;background:#238052;color:white;padding:2px 9px;font-size:11px;margin-right:5px}
.product-entry [data-remove-product]{background:#fff5f4;color:#a13b3b;border:1px solid #eac9c6}
.product-entry [data-remove-product]:hover{background:#fbe4e1}
#product-picker.product-already-added{border-color:#4caa75;background:#eaf8ef}
@media(max-width:650px){.selected-products-heading{display:block}.selected-products-heading .catalogue-muted{display:block;margin-top:4px}}

/* Clear confirmation for herb entries and selected nutrition */
.product-entry-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:12px}
.product-confirm-button{background:#238052;color:#fff;border:1px solid #238052;border-radius:9px;padding:10px 14px;font-weight:700}
.product-confirm-button:hover{background:#176b42}
.product-confirm-status{font-size:12px;color:#516f60;flex-basis:100%}
.product-entry.product-confirmed{background:#dff5e8;border-color:#238052;box-shadow:0 0 0 2px #23805230}
.nutrition-visit-section{background:#f4f8ed;border:1px solid #d8e5c3;border-radius:16px;padding:18px;margin:20px 0}
.nutrition-visit-section h4{color:#547c2b;margin-top:0}
.nutrition-visit-section .choice{transition:background .15s,border-color .15s}
.nutrition-visit-section .choice:has(input:checked){background:#d7ebc1;border-color:#75a044;box-shadow:inset 0 0 0 1px #75a044}
.nutrition-visit-section .choice:has(input:checked) span{color:#2d571d;font-weight:700}
.visit-save-actions{margin-top:22px;padding:16px;border-radius:14px;background:#e9f4f3;border:1px solid #c5dfdb}
.visit-save-actions button{width:100%;font-weight:750}
.visit-save-actions p{margin:8px 0 0;font-size:12px}
@media(max-width:650px){.nutrition-visit-section{padding:12px}.product-entry-actions button{flex:1}}

/* Client herbal formula selection */
.client-formula-picker{background:#effaf3;border:1px solid #c4e3ce;border-radius:16px;padding:18px;margin:18px 0}
.client-formula-picker h4{color:#226e49;margin:0 0 8px}
.client-formula-choices{max-height:320px;overflow:auto;padding:4px}
.client-formula-choices .choice:has(input:checked){background:#d3eedb;border-color:#459b69;box-shadow:inset 0 0 0 1px #459b69}
.client-formula-choices .choice:has(input:checked) span{color:#195b36;font-weight:750}
.client-formula-choices .choice[hidden]{display:none}
@media(max-width:650px){.client-formula-picker{padding:12px}.client-formula-choices{max-height:270px}}

/* Atlas 2026: cohesive, accessible dashboard design */
:root{--atlas-blue:#1465a5;--atlas-blue-dark:#104b83;--atlas-border:#e3eaf2;--atlas-ink:#17263b;--atlas-muted:#697c91;--atlas-surface:#fff;--atlas-bg:#f5f7fb}
body{background:var(--atlas-bg);color:var(--atlas-ink)}
.atlas-modern aside{width:238px;background:linear-gradient(180deg,#176ba9 0%,#145e99 60%,#104d80 100%);padding:25px 13px;box-shadow:4px 0 20px #15395b0d}
.atlas-modern aside .brand{display:flex;align-items:center;gap:8px;font-size:21px;padding:0 10px;color:#fff}
.atlas-modern aside small{padding:0 11px;color:#c0d8ea}
.atlas-modern aside nav{display:flex;flex-direction:column;gap:5px;margin-top:16px}
.atlas-modern aside nav a{border-radius:10px;padding:12px 14px;color:#d9eafb;font-size:13px;font-weight:650;transition:background .15s}
.atlas-modern aside nav a:hover,.atlas-modern aside nav a.active{background:#2f86ef;color:#fff;text-decoration:none;box-shadow:0 3px 10px #0b41742a}
.atlas-modern aside .ghost{width:100%;background:#ffffff1a;border:1px solid #ffffff36}
.atlas-modern main.content{max-width:none;width:100%;padding:30px clamp(18px,3vw,48px)}
.atlas-modern main.content>header{margin-bottom:25px;padding-bottom:18px;border-bottom:1px solid #e7edf4}
.atlas-modern h1{font-size:clamp(24px,2.4vw,31px);letter-spacing:-.7px;color:#14283f;margin:5px 0}
.atlas-modern .eyebrow{color:#6e8499;font-size:10px}
.atlas-modern .status{background:#e8f3fd;color:#17619a;font-weight:700}
.atlas-modern .panel,.atlas-modern .metric{border:1px solid var(--atlas-border);border-radius:15px;box-shadow:0 3px 12px #1a395c08;background:#fff}
.atlas-modern .panel{padding:clamp(16px,2vw,26px)}
.atlas-modern .panel h2{color:#1a2d43;font-size:18px;letter-spacing:-.3px}
.atlas-modern .metric{padding:20px;gap:8px}
.atlas-modern .metric span:not(.metric-icon){font-size:13px;color:#6a7d91}
.atlas-modern .metric strong{font-size:35px;color:#162b42;line-height:1.1}
.atlas-modern .metric a{margin-top:6px;font-weight:700}
.atlas-modern .grid{gap:16px}
.atlas-modern input,.atlas-modern select,.atlas-modern textarea{border-color:#d9e3ee;box-shadow:0 1px 2px #19375006}
.atlas-modern input:focus,.atlas-modern select:focus,.atlas-modern textarea:focus{outline:2px solid #73b6ef;outline-offset:1px}
.atlas-modern button:not(.quick-picks button):not(.secondary):not(.product-confirm-button):not(.client-delete-button){background:#176ba9}
.atlas-modern button:hover{filter:brightness(.96)}
.atlas-modern .listrow{padding:15px;border:1px solid #e7edf4;border-radius:10px;margin-bottom:9px;align-items:center;background:#fff}
.atlas-modern .listrow:hover{background:#f2f8fd;text-decoration:none;border-color:#c5dced}
.atlas-modern .client-workspace{gap:18px}
.atlas-modern .client-health-card{border-color:#c7e3da;background:linear-gradient(150deg,#fff,#f3faf7)}
.atlas-modern .diagnostic-section{border-radius:14px}
.atlas-modern .visit-picker{border-radius:11px}
.atlas-modern .product-entry{border-radius:12px}
.atlas-modern .herb-filters{background:#f7faff;border:1px solid #e0eaf4;border-radius:13px;padding:15px;margin:15px 0 22px}
.atlas-modern .tablewrap{border:1px solid #e4ebf3;border-radius:12px}
.atlas-modern th{background:#f0f5fa;color:#41617d}
.atlas-modern td{line-height:1.55}
.atlas-modern tbody tr:hover{background:#f8fbff}
.atlas-modern .studyitem{background:#fff;border-color:#e3ebf3;border-radius:13px}
.atlas-modern .studyitem:hover{background:#f3f8fe;border-color:#bdd8ed;text-decoration:none}
.dashboard-hero{background:linear-gradient(115deg,#166caa 0%,#0f568f 80%);border-radius:17px;padding:30px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#fff;margin-bottom:18px;box-shadow:0 10px 25px #115b9c22;position:relative;overflow:hidden}
.dashboard-hero:after{content:"";position:absolute;width:250px;height:250px;right:-110px;top:-140px;border-radius:50%;background:#ffffff0c;pointer-events:none}
.dashboard-hero h2{color:#fff!important;font-size:clamp(23px,3vw,30px)!important;margin:7px 0!important}
.dashboard-hero p{margin:0;color:#dcefff}
.dashboard-overline{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#b8def6}
.dashboard-hero-action{white-space:nowrap;color:#fff;border:1px solid #ffffff55;border-radius:10px;padding:12px 16px;background:#ffffff1b;font-size:13px;font-weight:700;position:relative;z-index:1}
.dashboard-hero-action:hover{color:#fff;background:#ffffff33;text-decoration:none}
.metric-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;font-size:21px;font-weight:700;margin-bottom:7px}
.metric-blue{color:#1469a7;background:#e8f4fd}.metric-green{color:#159b74;background:#e5f8f0}.metric-orange{color:#da8b18;background:#fff3e0}
.dashboard-quick{margin-top:20px}
.dashboard-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dashboard-quick-grid a{display:flex;flex-direction:column;gap:7px;min-height:120px;padding:16px;border:1px solid #e0eaf3;border-radius:12px;background:#f8fbfe}
.dashboard-quick-grid a:hover{background:#eaf4fc;text-decoration:none}
.dashboard-quick-grid a span{font-size:23px}.dashboard-quick-grid a strong{color:#173550;font-size:13px}.dashboard-quick-grid a small{color:#72869a;font-size:11px}
@media(max-width:1100px){.dashboard-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.atlas-modern aside{width:205px}.atlas-modern main.content{padding:24px}}
@media(max-width:650px){.atlas-modern aside{width:100%;padding:0;position:sticky;top:0;z-index:30}.atlas-modern aside .brand{padding:0}.atlas-modern aside nav{display:none;margin:0;padding:10px;max-height:65vh;overflow-y:auto}.atlas-modern aside nav.open,.atlas-modern aside nav.is-open{display:flex}.atlas-modern aside nav a{min-height:43px}.atlas-modern aside form{padding:0 12px 12px}.atlas-modern main.content{padding:17px}.dashboard-hero{padding:22px;display:block}.dashboard-hero-action{display:inline-block;margin-top:17px}.dashboard-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-modern .panel{padding:15px}.atlas-modern .metric{padding:16px}}

/* Compact and information-dense herbal catalogue */
@media(min-width:651px){
.atlas-modern .herb-usage-table th:nth-child(1){width:18%}
.atlas-modern .herb-usage-table th:nth-child(2){width:29%}
.atlas-modern .herb-usage-table th:nth-child(3){width:31%}
.atlas-modern .herb-usage-table th:nth-child(4){width:22%}
.atlas-modern .catalogue-table td{padding:13px 14px;font-size:12px;line-height:1.45}
.atlas-modern .catalogue-table th{padding:12px 14px;font-size:11px}
.atlas-modern .catalogue-table td p{margin:4px 0}
.atlas-modern .catalogue-table .formula-name{font-size:14px}
.atlas-modern .catalogue-table .catalogue-muted{font-size:11px;line-height:1.45}
.atlas-modern .catalogue-table .usage-detail{margin:5px 0}
.atlas-modern .catalogue-table .usage-detail summary{padding:2px 0;font-size:11px}
.atlas-modern .catalogue-table .catalogue-source{font-size:11px}
.atlas-modern .catalogue-table .catalogue-product+.catalogue-product{padding-top:6px;margin-top:6px}
.atlas-modern .catalogue-table .catalogue-product>a{margin-top:2px;font-size:11px}
}
.atlas-modern .catalogue-clinical-clue{background:#f0f5fb;border-left:3px solid #77a7cf;border-radius:4px;padding:6px 8px;margin:7px 0!important;color:#315470}

/* Atlas clinical workspace — unified design language inspired by modern care dashboards */
.atlas-modern{--care-blue:#2168b9;--care-ink:#21364f;--care-line:#e1eaf4;--care-muted:#71849a;--care-radius:17px;color:var(--care-ink)}
.atlas-modern main.content{background:radial-gradient(circle at 95% 0%,#e5f1ff 0,transparent 30%),#f5f8fd}
.atlas-modern header{border-bottom:1px solid #e3ebf5;padding-bottom:20px;margin-bottom:24px}
.atlas-modern header h1{letter-spacing:-.035em;color:#193a61}
.atlas-modern .panel,.atlas-modern .metric{border:1px solid var(--care-line);border-radius:var(--care-radius);box-shadow:0 7px 24px rgba(30,65,108,.045)}
.atlas-modern .panel h2{color:#1b416b;letter-spacing:-.025em}
.atlas-modern .panel h2:first-child{padding-bottom:13px;border-bottom:1px solid #eaf0f7}
.atlas-modern .panel h3{color:#2a5a8c}
.atlas-modern .eyebrow{color:#5b85af}
.atlas-modern label{color:#375471;font-weight:650}
.atlas-modern input:not([type=checkbox]):not([type=radio]),.atlas-modern select,.atlas-modern textarea{background:#fbfdff;border:1px solid #d8e4f0;border-radius:11px;transition:border-color .15s,box-shadow .15s}
.atlas-modern input:not([type=checkbox]):not([type=radio]):focus,.atlas-modern select:focus,.atlas-modern textarea:focus{border-color:#4d98db;box-shadow:0 0 0 3px rgba(48,135,217,.12);outline:0}
.atlas-modern button,.atlas-modern .button{border-radius:11px;transition:transform .12s,box-shadow .12s}
.atlas-modern button:hover,.atlas-modern .button:hover{transform:translateY(-1px)}
.atlas-modern button:focus-visible,.atlas-modern a:focus-visible{outline:3px solid #80b9ff;outline-offset:3px}
.atlas-modern .tablewrap{border:1px solid #e2ebf5;border-radius:13px;overflow-x:auto;background:#fff}
.atlas-modern table{width:100%}
.atlas-modern table thead th{background:#eff5fc;color:#406489;font-size:12px;letter-spacing:.025em;border-bottom:1px solid #dbe7f4}
.atlas-modern table tbody tr:hover td{background:#f6faff}
.atlas-modern table tbody td{border-bottom-color:#eaf0f7}
.atlas-modern .notice{background:#eff6ff;border:1px solid #d8e9fb;border-left:4px solid #448fe1;border-radius:11px;color:#375c83}
.atlas-modern .status{background:#e6f2ff;color:#2365a3;border:1px solid #cde4ff}
.atlas-modern .choice{border-radius:11px}
.atlas-modern .choice:has(input:checked){background:#e8f7f1;border-color:#a3dcc5}
.atlas-modern .catalogue-pagination a{border-radius:10px}
.atlas-modern .dashboard-hero{background:linear-gradient(110deg,#1956a3,#2588ce);box-shadow:0 13px 32px rgba(27,99,174,.17)}
/* Distinct, accessible thermic nature labels */
.atlas-modern .nutrition-table .thermal-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:10px;border:1px solid transparent;font-size:12px;font-weight:800;line-height:1.2;box-shadow:0 2px 7px #1d39551a;white-space:nowrap}
.atlas-modern .nutrition-table .thermal-pill:before{display:inline-block;font-size:14px;line-height:1}
.atlas-modern .nutrition-table .thermal-hot{background:#d92e51;color:#fff;border-color:#bc2544}
.atlas-modern .nutrition-table .thermal-hot:before{content:"♨"}
.atlas-modern .nutrition-table .thermal-warm{background:#e47b16;color:#fff;border-color:#c96b12}
.atlas-modern .nutrition-table .thermal-warm:before{content:"☀"}
.atlas-modern .nutrition-table .thermal-neutral{background:#098f7d;color:#fff;border-color:#087c6d}
.atlas-modern .nutrition-table .thermal-neutral:before{content:"●"}
.atlas-modern .nutrition-table .thermal-cool{background:#197fbe;color:#fff;border-color:#166ba0}
.atlas-modern .nutrition-table .thermal-cool:before{content:"❄"}
.atlas-modern .nutrition-table .thermal-cold{background:#6047b9;color:#fff;border-color:#4c3899}
.atlas-modern .nutrition-table .thermal-cold:before{content:"❄"}
@media(max-width:650px){.atlas-modern header{padding-bottom:13px;margin-bottom:17px}.atlas-modern .nutrition-table .thermal-pill{white-space:normal;padding:7px 11px}.atlas-modern .panel h2:first-child{padding-bottom:10px}}

/* Atlas v1.3.1 — unified clinical visit steps 1–4 */
.atlas-modern #visit-form .diagnostic-steps{display:grid;gap:15px;margin-top:20px}
.atlas-modern #visit-form .diagnostic-section{--step-color:#2e7fbe;--step-soft:#f0f7ff;--step-border:#cfe2f6;background:#fff;border:1px solid #dce7f3;border-radius:17px;padding:0 20px 20px;margin:0;box-shadow:0 5px 20px rgba(27,73,120,.05);overflow:hidden}
.atlas-modern #visit-form .diagnostic-section>h4{display:flex;align-items:center;gap:12px;margin:0 -20px 18px;padding:15px 20px;background:linear-gradient(100deg,var(--step-soft),#fff);border-bottom:1px solid var(--step-border);color:#213c59;font-size:16px;font-weight:800}
.atlas-modern #visit-form .diagnostic-section .diagnostic-number{width:34px;height:34px;border-radius:11px;background:var(--step-color);color:#fff;box-shadow:0 3px 8px rgba(33,65,100,.12)}
.atlas-modern #visit-form .diagnostic-anamnesis{--step-color:#247fca;--step-soft:#edf6ff;--step-border:#cfe4f8}
.atlas-modern #visit-form .diagnostic-tongue{--step-color:#d45c77;--step-soft:#fff0f4;--step-border:#f5d8e0}
.atlas-modern #visit-form .diagnostic-pulse{--step-color:#7a61c7;--step-soft:#f5f0ff;--step-border:#e1d8f7}
.atlas-modern #visit-form .diagnostic-nutrition{--step-color:#16987d;--step-soft:#eaf9f3;--step-border:#c9eadc}
.atlas-modern #visit-form .diagnostic-section label{display:block;margin-bottom:13px}
.atlas-modern #visit-form .diagnostic-section textarea{background:#fbfdff}
.atlas-modern #visit-form .diagnostic-section .quick-picks{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.atlas-modern #visit-form .diagnostic-section .quick-picks button{background:#fff;color:var(--step-color);border:1px solid var(--step-border);border-radius:9px;padding:7px 10px;font-size:12px;font-weight:650;box-shadow:none}
.atlas-modern #visit-form .diagnostic-section .quick-picks button:hover{background:var(--step-soft);transform:none}
.atlas-modern #visit-form .diagnostic-nutrition .client-formula-picker{background:#f7fbff;border:1px solid #dce9f6;border-radius:13px}
.atlas-modern #visit-form .diagnostic-nutrition .client-formula-picker h4{color:#285d8c}
.atlas-modern #visit-form .diagnostic-nutrition .choice:has(input:checked){background:#e6f7ef;border-color:#65bb98}
@media(max-width:650px){.atlas-modern #visit-form .diagnostic-section{padding:0 13px 14px}.atlas-modern #visit-form .diagnostic-section>h4{margin:0 -13px 14px;padding:12px 13px;font-size:14px}.atlas-modern #visit-form .diagnostic-section .diagnostic-number{width:30px;height:30px}}

/* Atlas v1.3.2 — colorful Zendenta-inspired clinical cards, not monochrome blue */
.atlas-modern .dashboard-quick-grid>a:nth-child(4n+1),.atlas-modern .dashboard-quick-grid>.dashboard-quick-item:nth-child(4n+1){background:linear-gradient(135deg,#1674c8,#0e579e)!important;color:#fff!important;border-color:transparent!important}
.atlas-modern .dashboard-quick-grid>a:nth-child(4n+2),.atlas-modern .dashboard-quick-grid>.dashboard-quick-item:nth-child(4n+2){background:linear-gradient(135deg,#12bb92,#008e83)!important;color:#fff!important;border-color:transparent!important}
.atlas-modern .dashboard-quick-grid>a:nth-child(4n+3),.atlas-modern .dashboard-quick-grid>.dashboard-quick-item:nth-child(4n+3){background:linear-gradient(135deg,#ffa319,#f36a10)!important;color:#fff!important;border-color:transparent!important}
.atlas-modern .dashboard-quick-grid>a:nth-child(4n+4),.atlas-modern .dashboard-quick-grid>.dashboard-quick-item:nth-child(4n+4){background:linear-gradient(135deg,#9750ef,#6b2bc8)!important;color:#fff!important;border-color:transparent!important}
.atlas-modern .dashboard-quick-grid>a,.atlas-modern .dashboard-quick-grid>.dashboard-quick-item{box-shadow:0 8px 18px rgba(34,70,116,.12);transition:transform .15s,box-shadow .15s}
.atlas-modern .dashboard-quick-grid>a:hover,.atlas-modern .dashboard-quick-grid>.dashboard-quick-item:hover{transform:translateY(-3px);box-shadow:0 13px 24px rgba(34,70,116,.18)}
.atlas-modern .dashboard-quick-grid>a *,.atlas-modern .dashboard-quick-grid>.dashboard-quick-item *{color:inherit!important}
.atlas-modern .dashboard-metrics .metric:nth-child(4n+1){border-top:4px solid #2382d5;background:linear-gradient(160deg,#f0f7ff,#fff 65%)}
.atlas-modern .dashboard-metrics .metric:nth-child(4n+2){border-top:4px solid #0db68d;background:linear-gradient(160deg,#edfff8,#fff 65%)}
.atlas-modern .dashboard-metrics .metric:nth-child(4n+3){border-top:4px solid #ff961d;background:linear-gradient(160deg,#fff7e9,#fff 65%)}
.atlas-modern .dashboard-metrics .metric:nth-child(4n+4){border-top:4px solid #8e50db;background:linear-gradient(160deg,#f8f0ff,#fff 65%)}
.atlas-modern #visit-form .diagnostic-anamnesis{border-left:5px solid #247fca}
.atlas-modern #visit-form .diagnostic-tongue{border-left:5px solid #e75a7a}
.atlas-modern #visit-form .diagnostic-pulse{border-left:5px solid #8959d4}
.atlas-modern #visit-form .diagnostic-nutrition{border-left:5px solid #0baa8a}
.atlas-modern #visit-form .diagnostic-section>h4{background:var(--step-soft)!important}
.atlas-modern #visit-form .diagnostic-anamnesis>h4{background:#e8f4ff!important}
.atlas-modern #visit-form .diagnostic-tongue>h4{background:#fff0f4!important}
.atlas-modern #visit-form .diagnostic-pulse>h4{background:#f2edff!important}
.atlas-modern #visit-form .diagnostic-nutrition>h4{background:#e7faf2!important}
@media(prefers-reduced-motion:reduce){.atlas-modern .dashboard-quick-grid>a{transition:none}}

/* Atlas v1.3.3: full-color section surfaces instead of tinted header strips */
.atlas-modern #visit-form .diagnostic-steps{gap:22px}
.atlas-modern #visit-form .diagnostic-section{--section-bg:#edf6ff;--section-border:#b9dcf7;--section-accent:#176bb1;background:var(--section-bg)!important;border:1px solid var(--section-border)!important;border-left:0!important;border-radius:20px;box-shadow:0 12px 25px rgba(39,71,105,.09);padding:0 22px 22px}
.atlas-modern #visit-form .diagnostic-anamnesis{--section-bg:#e6f3ff;--section-border:#b4d9fa;--section-accent:#156cbd}
.atlas-modern #visit-form .diagnostic-tongue{--section-bg:#fff0f3;--section-border:#f2b9c8;--section-accent:#c12f61}
.atlas-modern #visit-form .diagnostic-pulse{--section-bg:#f1eaff;--section-border:#d5c1fa;--section-accent:#6c3cba}
.atlas-modern #visit-form .diagnostic-nutrition{--section-bg:#e4f8ee;--section-border:#a8dfc5;--section-accent:#087e61}
.atlas-modern #visit-form .diagnostic-section>h4,.atlas-modern #visit-form .diagnostic-anamnesis>h4,.atlas-modern #visit-form .diagnostic-tongue>h4,.atlas-modern #visit-form .diagnostic-pulse>h4,.atlas-modern #visit-form .diagnostic-nutrition>h4{margin:0 -22px 20px;padding:19px 22px;background:var(--section-accent)!important;color:#fff!important;border:0;border-radius:19px 19px 0 0;font-size:18px;letter-spacing:-.01em}
.atlas-modern #visit-form .diagnostic-section .diagnostic-number{background:rgba(255,255,255,.2)!important;border:1px solid rgba(255,255,255,.5);box-shadow:none;color:#fff;width:37px;height:37px;border-radius:11px}
.atlas-modern #visit-form .diagnostic-section>label{color:#263e57}
.atlas-modern #visit-form .diagnostic-section textarea,.atlas-modern #visit-form .diagnostic-section input:not([type=checkbox]):not([type=radio]),.atlas-modern #visit-form .diagnostic-section select{background:#fff;border-color:var(--section-border)}
.atlas-modern #visit-form .diagnostic-section .quick-picks button{background:#fff!important;border:1px solid var(--section-border)!important;color:var(--section-accent)!important;padding:9px 12px;border-radius:10px;font-weight:700}
.atlas-modern #visit-form .diagnostic-section .quick-picks button:hover{background:var(--section-accent)!important;color:#fff!important}
.atlas-modern #visit-form .diagnostic-section details,.atlas-modern #visit-form .diagnostic-section .client-formula-picker{background:rgba(255,255,255,.8);border:1px solid var(--section-border);border-radius:13px}
.atlas-modern #visit-form .diagnostic-section .client-formula-picker h4{color:var(--section-accent)}
@media(max-width:650px){.atlas-modern #visit-form .diagnostic-section{padding:0 14px 16px}.atlas-modern #visit-form .diagnostic-section>h4,.atlas-modern #visit-form .diagnostic-anamnesis>h4,.atlas-modern #visit-form .diagnostic-tongue>h4,.atlas-modern #visit-form .diagnostic-pulse>h4,.atlas-modern #visit-form .diagnostic-nutrition>h4{margin:0 -14px 16px;padding:14px;font-size:16px;border-radius:19px 19px 0 0}}

/* Atlas 1.4 — new CRM-style clinical workspace, structural navigation and restrained color */
.atlas-modern .clinical-workspace{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.atlas-modern .clinical-workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#fff;padding:23px 26px;border:1px solid #e0e9f4;border-radius:19px;box-shadow:0 7px 22px #2049750b;margin-bottom:17px}
.atlas-modern .clinical-workspace-heading h2{font-size:25px;margin:4px 0 5px;padding:0!important;border:0!important;letter-spacing:-.035em}
.atlas-modern .clinical-workspace-heading p{margin:0;color:#74859a;font-size:13px}
.atlas-modern .clinical-workspace-status{background:#fff7e8;border:1px solid #ffe2a7;border-radius:100px;color:#976114;font-size:12px;font-weight:750;padding:9px 13px}
.atlas-modern .clinical-workspace>form{display:block}
.atlas-modern .clinical-step-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:19px 0 23px}
.atlas-modern .clinical-step-nav a{display:flex;align-items:center;gap:12px;min-width:0;padding:17px 13px;background:#fff;border:1px solid #e2eaf3;border-radius:16px;color:#273f58;box-shadow:0 6px 18px #214c790b;transition:transform .15s,box-shadow .15s,border-color .15s;text-decoration:none}
.atlas-modern .clinical-step-nav a:hover{transform:translateY(-3px);border-color:#b5d1ef;box-shadow:0 12px 24px #214c791a}
.atlas-modern .clinical-step-nav a strong{display:block;font-size:13px}
.atlas-modern .clinical-step-nav a small{display:block;margin-top:4px;font-size:10px;color:#8090a3;line-height:1.3}
.atlas-modern .clinical-step-nav .step-nav-icon{display:grid;place-items:center;flex:none;width:41px;height:41px;border-radius:13px;color:#fff;font-size:20px;font-weight:800;background:#2578c9}
.atlas-modern .clinical-step-nav a:nth-child(2) .step-nav-icon{background:#e46b8d}
.atlas-modern .clinical-step-nav a:nth-child(3) .step-nav-icon{background:#805bd4}
.atlas-modern .clinical-step-nav a:nth-child(4) .step-nav-icon{background:#11a887}
.atlas-modern #visit-form .diagnostic-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;align-items:start}
.atlas-modern #visit-form .diagnostic-anamnesis{grid-column:1/-1}
.atlas-modern #visit-form .diagnostic-section{background:#fff!important;border:1px solid #e0e9f4!important;border-radius:18px!important;padding:21px!important;box-shadow:0 8px 22px #2248750b!important;overflow:visible;scroll-margin-top:20px}
.atlas-modern #visit-form .diagnostic-section>h4,.atlas-modern #visit-form .diagnostic-anamnesis>h4,.atlas-modern #visit-form .diagnostic-tongue>h4,.atlas-modern #visit-form .diagnostic-pulse>h4,.atlas-modern #visit-form .diagnostic-nutrition>h4{background:transparent!important;color:#253f59!important;margin:0 0 19px!important;padding:0 0 15px!important;border-radius:0!important;border-bottom:1px solid #e9eff6!important;font-size:17px}
.atlas-modern #visit-form .diagnostic-section .diagnostic-number{width:41px;height:41px;background:#eaf4ff!important;color:#2679c2!important;border:0!important;border-radius:12px;box-shadow:none}
.atlas-modern #visit-form .diagnostic-tongue .diagnostic-number{background:#ffedf2!important;color:#c13d69!important}
.atlas-modern #visit-form .diagnostic-pulse .diagnostic-number{background:#f1eaff!important;color:#714bbd!important}
.atlas-modern #visit-form .diagnostic-nutrition .diagnostic-number{background:#e5f8f0!important;color:#088f70!important}
.atlas-modern #visit-form .diagnostic-section .quick-picks button{background:#f5f8fc!important;color:#49647f!important;border:1px solid #e1e9f2!important;font-size:11px!important;padding:8px 10px!important}
.atlas-modern #visit-form .diagnostic-section .quick-picks button:hover{background:#eaf2fb!important;color:#1d65a2!important}
.atlas-modern #visit-form .diagnostic-nutrition{margin:18px 0!important}
.atlas-modern #visit-form .diagnostic-section details,.atlas-modern #visit-form .diagnostic-section .client-formula-picker{background:#f8fbff;border-color:#e0e9f3}
@media(max-width:1150px){.atlas-modern .clinical-step-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.atlas-modern #visit-form .diagnostic-steps{grid-template-columns:1fr}.atlas-modern .clinical-workspace-heading{padding:19px}}
@media(max-width:650px){.atlas-modern .clinical-step-nav{gap:9px}.atlas-modern .clinical-step-nav a{padding:12px 9px;gap:8px}.atlas-modern .clinical-step-nav .step-nav-icon{width:33px;height:33px;font-size:16px}.atlas-modern .clinical-step-nav a strong{font-size:12px}.atlas-modern .clinical-step-nav a small{font-size:9px}.atlas-modern #visit-form .diagnostic-section{padding:16px!important}}

/* 1.4.1 — solid colored navigation tiles, white text throughout */
.atlas-modern .clinical-step-nav a,
.atlas-modern .clinical-step-nav a:nth-child(1){background:#2578c9!important;border-color:#2578c9!important;color:#fff!important}
.atlas-modern .clinical-step-nav a:nth-child(2){background:#d94372!important;border-color:#d94372!important;color:#fff!important}
.atlas-modern .clinical-step-nav a:nth-child(3){background:#7250c7!important;border-color:#7250c7!important;color:#fff!important}
.atlas-modern .clinical-step-nav a:nth-child(4){background:#0c9d7b!important;border-color:#0c9d7b!important;color:#fff!important}
.atlas-modern .clinical-step-nav a strong,
.atlas-modern .clinical-step-nav a small,
.atlas-modern .clinical-step-nav a span{color:#fff!important}
.atlas-modern .clinical-step-nav .step-nav-icon,
.atlas-modern .clinical-step-nav a:nth-child(n) .step-nav-icon{background:rgba(255,255,255,.20)!important;color:#fff!important;border:1px solid rgba(255,255,255,.3)}
.atlas-modern .clinical-step-nav a:hover{filter:brightness(1.08);box-shadow:0 13px 26px #1a39633b}

/* Atlas 1.4.2: FIX visit form broken columns — force vertical flow for all direct children */
.atlas-modern #visit-form .diagnostic-steps{display:block!important;grid-template-columns:none!important;columns:auto!important}
.atlas-modern #visit-form .diagnostic-steps> :not(script):not(style){display:block;float:none!important;clear:both;width:100%!important;max-width:100%!important;grid-column:1/-1!important;box-sizing:border-box;margin-left:0!important;margin-right:0!important}
.atlas-modern #visit-form .diagnostic-steps>section,.atlas-modern #visit-form .diagnostic-steps>.panel{margin-bottom:18px!important}
.atlas-modern #visit-form .diagnostic-steps>h4{margin:24px 0 12px!important;padding:18px 20px;background:#fff;border-radius:14px;border:1px solid #e0e9f4}
.atlas-modern #visit-form .diagnostic-steps>label{margin:12px 0!important}
.atlas-modern #visit-form .diagnostic-steps>.catalogue-muted{margin:10px 0!important}
.atlas-modern #visit-form .diagnostic-steps>#diagnostic-pattern-matches{padding:20px!important;background:#fff!important;border:1px solid #e0e9f4!important;border-radius:16px!important}

/* Atlas 1.4.3 — understated visit status, no heavy bold */
.atlas-modern .clinical-workspace-status{font-family:Arial,Helvetica,sans-serif!important;font-weight:400!important;font-size:12px!important;letter-spacing:0!important;background:#f4f7fa!important;border:1px solid #e3e9ef!important;color:#697b8c!important;padding:8px 12px!important;box-shadow:none!important}

/* Atlas 1.5.0 — compact, usage-first herbal formula catalogue */
.atlas-modern .herb-usage-table{overflow-x:auto}
.atlas-modern .herb-usage-table table{table-layout:fixed;min-width:840px;border-collapse:separate;border-spacing:0 8px}
.atlas-modern .herb-usage-table th:nth-child(1){width:19%}
.atlas-modern .herb-usage-table th:nth-child(2){width:29%}
.atlas-modern .herb-usage-table th:nth-child(3){width:29%}
.atlas-modern .herb-usage-table th:nth-child(4){width:23%}
.atlas-modern .herb-usage-table .herb-catalog-row td{vertical-align:top;background:#fff!important;padding:15px 13px!important;border-top:1px solid #e4eaf2;border-bottom:1px solid #e4eaf2;line-height:1.45;font-size:12px}
.atlas-modern .herb-usage-table .herb-catalog-row td:first-child{border-left:1px solid #e4eaf2;border-radius:13px 0 0 13px}
.atlas-modern .herb-usage-table .herb-catalog-row td:last-child{border-right:1px solid #e4eaf2;border-radius:0 13px 13px 0}
.atlas-modern .herb-usage-table .formula-name{font-size:13px!important;line-height:1.35!important;font-weight:650!important;letter-spacing:0!important;color:#25445e!important;overflow-wrap:anywhere}
.atlas-modern .herb-usage-table .herb-usage-primary{background:#f3faf7!important}
.atlas-modern .herb-usage-table .herb-usage-primary .usage-symptoms{font-size:13px!important;line-height:1.55;color:#214b40;font-weight:500}
.atlas-modern .herb-usage-table .herb-catalog-row p{margin:6px 0!important}
.atlas-modern .herb-usage-table .herb-catalog-row .catalogue-muted{font-size:11px;color:#75879a}
.atlas-modern .herb-usage-table .herb-catalog-row .catalogue-product{padding:9px 0!important;border-bottom:1px solid #eef2f6}
.atlas-modern .herb-add-client{display:flex;flex-direction:column;gap:7px;margin-top:13px;padding-top:12px;border-top:1px solid #e7edf4}
.atlas-modern .herb-add-client label{font-size:11px;font-weight:500;color:#456278}
.atlas-modern .herb-add-client select{width:100%;margin-top:5px;padding:9px 8px;font-size:12px;background:#fff;border:1px solid #dbe5ef;border-radius:9px}
.atlas-modern .herb-add-client button{font-size:12px!important;font-weight:550!important;padding:10px!important;background:#e5f5ed!important;color:#127755!important;border:1px solid #b8e2ce!important;border-radius:9px}
.atlas-modern .herb-add-client small{font-size:10px;color:#77889a;line-height:1.35}
@media(max-width:850px){.atlas-modern .herb-usage-table table{min-width:0;table-layout:auto}.atlas-modern .herb-usage-table .herb-catalog-row td{padding:13px!important}}

/* 1.5.1: scripts must never be rendered as visible form content */
.atlas-modern #visit-form script,.atlas-modern #visit-form style{display:none!important}

/* Atlas 1.5.6: accessible in-page formula catalogue */
.atlas-modern .formula-dialog-open{margin:10px 0!important;padding:12px 16px!important;border-radius:10px!important;font-weight:600!important}
.atlas-modern .formula-catalog-dialog{position:fixed!important;inset:0!important;margin:auto!important;width:min(760px,calc(100vw - 32px))!important;max-width:760px!important;max-height:min(82vh,850px)!important;overflow:auto!important;padding:22px!important;border:1px solid #dce6ef!important;border-radius:18px!important;background:#fff!important;color:#253e51!important;box-shadow:0 24px 90px rgba(12,34,54,.28)!important;box-sizing:border-box!important}
.atlas-modern .formula-catalog-dialog:not([open]){display:none!important}
.atlas-modern .formula-catalog-dialog::backdrop{background:rgba(17,38,57,.55);backdrop-filter:blur(3px)}
.atlas-modern .formula-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.atlas-modern .formula-dialog-heading h3{font-size:18px!important;margin:0!important}
.atlas-modern .formula-catalog-dialog .client-formula-choices{max-height:48vh;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:7px}
.atlas-modern .formula-catalog-dialog .choice{font-size:12px!important}
.atlas-modern #formula-selected-summary{margin:0 0 10px!important}

/* Atlas 1.5.7: compact nutrition picker */
.atlas-modern .food-dialog-open{margin:10px 0!important;padding:12px 16px!important;border-radius:10px!important;font-weight:600!important}
.atlas-modern .food-catalog-dialog{position:fixed!important;inset:0!important;margin:auto!important;width:min(760px,calc(100vw - 32px))!important;max-width:760px!important;max-height:min(82vh,850px)!important;overflow:auto!important;padding:22px!important;border:1px solid #dce6ef!important;border-radius:18px!important;background:#fff!important;color:#253e51!important;box-shadow:0 24px 90px rgba(12,34,54,.28)!important;box-sizing:border-box!important}
.atlas-modern .food-catalog-dialog:not([open]){display:none!important}
.atlas-modern .food-catalog-dialog::backdrop{background:rgba(17,38,57,.55);backdrop-filter:blur(3px)}
.atlas-modern .food-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.atlas-modern .food-dialog-heading h3{font-size:18px!important;margin:0!important}
.atlas-modern .food-catalog-dialog .food-choices{max-height:48vh;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:7px}
.atlas-modern .food-catalog-dialog .choice{font-size:12px!important}
.atlas-modern #food-selected-summary{margin:0 0 10px!important;overflow-wrap:anywhere}

/* Atlas 1.5.8 — complete searchable formula picker */
.atlas-modern .formula-catalog-dialog .client-formula-choices{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))!important;gap:8px!important}
.atlas-modern .formula-catalog-dialog .formula-catalog-choice{display:flex!important;align-items:flex-start!important;gap:9px!important;padding:10px!important;min-height:0!important;border:1px solid #e3eaf0!important;border-radius:10px!important;background:#fff!important}
.atlas-modern .formula-catalog-dialog .formula-catalog-choice>span{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important;line-height:1.4!important}
.atlas-modern .formula-catalog-dialog .formula-catalog-choice strong{font-size:12px!important;font-weight:600!important}
.atlas-modern .formula-catalog-dialog .formula-catalog-choice small{font-size:11px!important;color:#667d8f!important;font-weight:400!important}
.atlas-modern .formula-catalog-dialog .formula-catalog-choice:has(input:checked){border-color:#79caa6!important;background:#eef9f3!important}

/* Atlas 1.5.10 — unified typography across every screen, modal and form */
:root,html,body,button,input,select,textarea,option,dialog,table,th,td{font-family:Arial,Helvetica,sans-serif!important}



/* Atlas 1.6.0: rebuilt herbal catalogue, intentionally independent of legacy table styles */
.atlas-modern .formula-directory{display:grid;gap:12px;margin:16px 0 24px}
.atlas-modern .formula-item{background:#fff;border:1px solid #dce6f0;border-radius:10px;overflow:hidden;box-shadow:0 3px 12px rgba(24,55,85,.045)}
.atlas-modern .formula-item-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px;margin:0;background:#169dcc;color:#fff;border:0}
.atlas-modern .formula-item-title{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;min-width:0}
.atlas-modern .formula-item-title h3{font-size:16px!important;line-height:1.35!important;font-weight:700!important;margin:0!important;color:#fff!important}
.atlas-modern .formula-item-title span{font-size:12px;color:#e4f5fd}
.atlas-modern .formula-item-meta{display:flex;align-items:center;gap:12px;flex:none;font-size:11px;color:#ecfaff}
.atlas-modern .formula-status{border-radius:20px;padding:4px 9px;font-weight:650}
.atlas-modern .formula-status-ready{background:rgba(255,255,255,.23);color:#fff}
.atlas-modern .formula-status-pending{background:#fff0d8;color:#84591d}
.atlas-modern .formula-item-body{padding:15px 18px 12px}
.atlas-modern .formula-item-overview{display:grid;grid-template-columns:1fr 1.35fr 1.15fr;gap:18px}
.atlas-modern .formula-item-field{min-width:0}
.atlas-modern .formula-item-field h4,.atlas-modern .formula-item-products h4{font-size:11px!important;font-weight:750!important;text-transform:uppercase;letter-spacing:.045em;color:#27749b;margin:0 0 6px!important;padding:0!important;border:0!important}
.atlas-modern .formula-item-field p{font-size:13px!important;line-height:1.5!important;color:#2b4256;margin:0!important}
.atlas-modern .formula-item-details{margin-top:12px;border-top:1px solid #e8eef5}
.atlas-modern .formula-item-details>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:12px 0 2px;font-size:12px;font-weight:700;color:#196d98}
.atlas-modern .formula-item-details>summary::-webkit-details-marker{display:none}
.atlas-modern .formula-item-details[open]>summary{padding-bottom:14px}
.atlas-modern .formula-item-detail-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:18px;padding:13px;background:#f4f8fc;border-radius:8px}
.atlas-modern .formula-item-detail-grid a{font-size:12px}
.atlas-modern .formula-item-products{margin-top:16px}
.atlas-modern .formula-item-product{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e8eef5;padding:8px 0;font-size:12px}
.atlas-modern .formula-item-product small{display:block;margin-top:3px;color:#6d8192;font-size:11px}
.atlas-modern .formula-item-product a{white-space:nowrap}
.atlas-modern .formula-client-picker{margin-top:14px}
.atlas-modern .formula-client-picker>summary{cursor:pointer;color:#176b97;font-size:12px;font-weight:700}
.atlas-modern .formula-client-picker form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:10px}
.atlas-modern .formula-client-picker label{margin:0;flex:1 1 220px}
.atlas-modern .formula-client-picker button{padding:10px 14px}
.atlas-modern .formula-client-picker small{width:100%;color:#667d8d}
@media(max-width:950px){.atlas-modern .formula-item-overview{grid-template-columns:1fr 1fr}.atlas-modern .formula-item-detail-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.atlas-modern .formula-item-header{align-items:flex-start;flex-direction:column;gap:8px}.atlas-modern .formula-item-meta{flex-wrap:wrap}.atlas-modern .formula-item-overview,.atlas-modern .formula-item-detail-grid{grid-template-columns:1fr}.atlas-modern .formula-item-body{padding:14px}.atlas-modern .formula-item-overview{gap:13px}}

/* Atlas 1.6.1 — alternating blue headers and subtle hover */
.atlas-modern .formula-directory .formula-item:nth-child(odd) .formula-item-header{background:#147fae}
.atlas-modern .formula-directory .formula-item:nth-child(even) .formula-item-header{background:#51b4d8}
.atlas-modern .formula-directory .formula-item:nth-child(even) .formula-item-title span,
.atlas-modern .formula-directory .formula-item:nth-child(even) .formula-item-meta{color:#f2fbff}
.atlas-modern .formula-directory .formula-item{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
@media(hover:hover) and (pointer:fine){
.atlas-modern .formula-directory .formula-item:hover{transform:translateY(-2px);border-color:#70bbda;box-shadow:0 9px 24px rgba(20,89,133,.15)}
.atlas-modern .formula-directory .formula-item:hover .formula-item-header{filter:brightness(1.06)}
}
.atlas-modern .formula-directory .formula-item:focus-within{border-color:#168fbe;box-shadow:0 0 0 2px rgba(22,143,190,.16)}
@media(prefers-reduced-motion:reduce){.atlas-modern .formula-directory .formula-item{transition:none}.atlas-modern .formula-directory .formula-item:hover{transform:none}}

/* Atlas 1.6.2 — align headings in the colored bar with their values below */
.atlas-modern .formula-directory .formula-item-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:9px 18px!important;align-items:center!important}
.atlas-modern .formula-directory .formula-column-headings{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.35fr 1.15fr;gap:18px;padding-top:10px;border-top:1px solid rgba(255,255,255,.3)}
.atlas-modern .formula-directory .formula-column-headings span{font-size:11px;font-weight:750;letter-spacing:.035em;text-transform:uppercase;color:#fff}
.atlas-modern .formula-directory .formula-item-body{padding-top:12px!important}
@media(max-width:950px){.atlas-modern .formula-directory .formula-column-headings{grid-template-columns:1fr 1fr}.atlas-modern .formula-directory .formula-column-headings span:nth-child(3){display:none}.atlas-modern .formula-directory .formula-item-overview .formula-item-field:nth-child(3)::before{content:"Obraz TČM";display:block;margin-bottom:5px;color:#27749b;font-size:11px;font-weight:750}}
@media(max-width:620px){.atlas-modern .formula-directory .formula-item-header{grid-template-columns:1fr!important}.atlas-modern .formula-directory .formula-column-headings{display:none}.atlas-modern .formula-directory .formula-item-overview .formula-item-field::before{display:block;margin-bottom:5px;color:#27749b;font-size:11px;font-weight:750}.atlas-modern .formula-directory .formula-item-overview .formula-item-field:nth-child(1)::before{content:"Tradiční použití"}.atlas-modern .formula-directory .formula-item-overview .formula-item-field:nth-child(2)::before{content:"Obtíže"}.atlas-modern .formula-directory .formula-item-overview .formula-item-field:nth-child(3)::before{content:"Obraz TČM"}}

/* Atlas 1.6.4 — mushroom cards mirror the herbal catalogue in neutral greys */
.atlas-modern .mushroom-directory .mushroom-item{border-color:#d6d9dd;box-shadow:0 3px 12px rgba(35,40,47,.055)}
.atlas-modern .mushroom-directory .mushroom-item:nth-child(odd) .formula-item-header{background:#525c68}
.atlas-modern .mushroom-directory .mushroom-item:nth-child(even) .formula-item-header{background:#818b96}
.atlas-modern .mushroom-directory .formula-item-title span,
.atlas-modern .mushroom-directory .formula-item-meta{color:#f0f2f4}
.atlas-modern .mushroom-directory .formula-item-field h4,
.atlas-modern .mushroom-directory .formula-item-products h4,
.atlas-modern .mushroom-directory .formula-item-details>summary,
.atlas-modern .mushroom-directory .formula-client-picker>summary{color:#4d5864}
.atlas-modern .mushroom-directory .formula-item-field p{color:#333b43}
.atlas-modern .mushroom-directory .formula-item-details{border-top-color:#e0e2e5}
.atlas-modern .mushroom-directory .formula-item-detail-grid{background:#f2f3f5}
.atlas-modern .mushroom-directory .formula-item-product{border-bottom-color:#e0e2e5}
.atlas-modern .mushroom-directory .formula-item-product small{color:#68717a}
.atlas-modern .mushroom-directory .formula-item-detail-grid a,
.atlas-modern .mushroom-directory .formula-item-product a{color:#46535e}
.atlas-modern .mushroom-directory .mushroom-item:focus-within{border-color:#727e89;box-shadow:0 0 0 2px rgba(90,100,110,.16)}
@media(hover:hover) and (pointer:fine){
.atlas-modern .mushroom-directory .mushroom-item:hover{border-color:#8a939c;box-shadow:0 9px 24px rgba(45,52,59,.15)}
}
@media(max-width:950px){
.atlas-modern .mushroom-directory .formula-item-overview .formula-item-field:nth-child(3)::before{content:"Druh / složení";color:#555f69}
}
@media(max-width:620px){
.atlas-modern .mushroom-directory .formula-item-overview .formula-item-field::before{color:#555f69}
.atlas-modern .mushroom-directory .formula-item-overview .formula-item-field:nth-child(1)::before{content:"Použití"}
.atlas-modern .mushroom-directory .formula-item-overview .formula-item-field:nth-child(2)::before{content:"Popis"}
.atlas-modern .mushroom-directory .formula-item-overview .formula-item-field:nth-child(3)::before{content:"Druh / složení"}
}

/* Atlas 1.6.5 — food catalogue: same cards, thermal classification colors */
.atlas-modern .food-directory .food-item{border-color:#dfe4e8}
.atlas-modern .food-directory .food-item.thermal-hot{--food-accent:#b7423b;--food-accent-light:#c95c50;--food-tint:#fff3f0}
.atlas-modern .food-directory .food-item.thermal-warm{--food-accent:#c77924;--food-accent-light:#df9a48;--food-tint:#fff7e9}
.atlas-modern .food-directory .food-item.thermal-neutral{--food-accent:#73806a;--food-accent-light:#95a18a;--food-tint:#f4f7f1}
.atlas-modern .food-directory .food-item.thermal-cool{--food-accent:#318fa6;--food-accent-light:#64afbf;--food-tint:#edf8fb}
.atlas-modern .food-directory .food-item.thermal-cold{--food-accent:#416ba9;--food-accent-light:#7195c8;--food-tint:#eff4fc}
.atlas-modern .food-directory .food-item:nth-child(odd) .formula-item-header{background:var(--food-accent)}
.atlas-modern .food-directory .food-item:nth-child(even) .formula-item-header{background:var(--food-accent-light)}
.atlas-modern .food-directory .food-item .formula-item-title span,
.atlas-modern .food-directory .food-item .formula-item-meta{color:#fff}
.atlas-modern .food-directory .food-thermal-label{display:inline-block;border:1px solid rgba(255,255,255,.55);border-radius:999px;padding:4px 10px;background:rgba(255,255,255,.15);font-weight:700}
.atlas-modern .food-directory .food-item .formula-item-details>summary,
.atlas-modern .food-directory .food-item .formula-item-field h4{color:var(--food-accent)}
.atlas-modern .food-directory .food-item .formula-item-detail-grid{background:var(--food-tint)}
.atlas-modern .food-directory .food-item .formula-item-detail-grid a{color:var(--food-accent)}
.atlas-modern .food-directory .food-item:focus-within{border-color:var(--food-accent);box-shadow:0 0 0 2px rgba(80,100,120,.15)}
@media(hover:hover) and (pointer:fine){.atlas-modern .food-directory .food-item:hover{border-color:var(--food-accent);box-shadow:0 9px 24px rgba(40,55,70,.13)}}
@media(max-width:950px){.atlas-modern .food-directory .formula-item-overview .formula-item-field:nth-child(3)::before{content:"Element / dráhy";color:var(--food-accent)}}
@media(max-width:620px){
.atlas-modern .food-directory .formula-item-overview .formula-item-field::before{color:var(--food-accent)}
.atlas-modern .food-directory .formula-item-overview .formula-item-field:nth-child(1)::before{content:"Termika"}
.atlas-modern .food-directory .formula-item-overview .formula-item-field:nth-child(2)::before{content:"Chuť"}
.atlas-modern .food-directory .formula-item-overview .formula-item-field:nth-child(3)::before{content:"Element / dráhy"}
}

/* Atlas 1.6.8 — distinct muted colour for every acupuncture meridian */
.atlas-modern .point-directory .point-item{--point-accent:#436f72;--point-tint:#edf4f3}
.atlas-modern .point-directory .point-channel-lu{--point-accent:#597f9c;--point-tint:#edf3f8}
.atlas-modern .point-directory .point-channel-li{--point-accent:#a8783f;--point-tint:#faf2e7}
.atlas-modern .point-directory .point-channel-st{--point-accent:#b16e39;--point-tint:#fcf0e6}
.atlas-modern .point-directory .point-channel-sp{--point-accent:#8d8144;--point-tint:#f8f5e8}
.atlas-modern .point-directory .point-channel-ht{--point-accent:#aa5660;--point-tint:#faeef0}
.atlas-modern .point-directory .point-channel-si{--point-accent:#a26b78;--point-tint:#f9eff2}
.atlas-modern .point-directory .point-channel-bl{--point-accent:#4c7baf;--point-tint:#eaf1f9}
.atlas-modern .point-directory .point-channel-ki{--point-accent:#5a659b;--point-tint:#eff0f8}
.atlas-modern .point-directory .point-channel-pc{--point-accent:#9c5b84;--point-tint:#f7eef5}
.atlas-modern .point-directory .point-channel-sj{--point-accent:#8b6aa5;--point-tint:#f4eff8}
.atlas-modern .point-directory .point-channel-gb{--point-accent:#4e8a75;--point-tint:#eaf6f0}
.atlas-modern .point-directory .point-channel-lr{--point-accent:#527c4b;--point-tint:#eef6eb}
.atlas-modern .point-directory .point-channel-cv{--point-accent:#64877e;--point-tint:#edf5f2}
.atlas-modern .point-directory .point-channel-gv{--point-accent:#61747f;--point-tint:#eef2f4}
.atlas-modern .point-directory .point-item .formula-item-header,
.atlas-modern .point-directory .point-item:nth-child(odd) .formula-item-header,
.atlas-modern .point-directory .point-item:nth-child(even) .formula-item-header{background:var(--point-accent)}
.atlas-modern .point-directory .point-item .formula-item-meta{color:#fff}
.atlas-modern .point-directory .point-item .formula-item-field p{color:#30484a}
.atlas-modern .point-directory .point-item .formula-item-body{background:var(--point-tint)}
.atlas-modern .point-directory .point-item:focus-within{border-color:var(--point-accent)}
@media(hover:hover) and (pointer:fine){.atlas-modern .point-directory .point-item:hover{border-color:var(--point-accent)}}
@media(max-width:950px){.atlas-modern .point-directory .formula-item-overview .formula-item-field:nth-child(3)::before{content:"Označení";color:var(--point-accent)}}
@media(max-width:620px){
.atlas-modern .point-directory .formula-item-overview .formula-item-field::before{color:var(--point-accent)}
.atlas-modern .point-directory .formula-item-overview .formula-item-field:nth-child(1)::before{content:"Dráha"}
.atlas-modern .point-directory .formula-item-overview .formula-item-field:nth-child(2)::before{content:"Tradiční použití"}
.atlas-modern .point-directory .formula-item-overview .formula-item-field:nth-child(3)::before{content:"Označení"}
}

/* Atlas 1.7.0 — client clinical summary */
.atlas-modern .client-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}
.atlas-modern .client-section-heading h2{margin:3px 0 0}
.atlas-modern .client-section-tag{border-radius:999px;background:rgba(65,116,108,.1);color:#35665e;padding:6px 11px;font-size:.78rem;font-weight:700;white-space:nowrap}
.atlas-modern .health-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:15px}
.atlas-modern .health-summary-block{min-width:0;padding:18px;border-radius:15px;background:rgba(104,137,134,.075);border:1px solid rgba(104,137,134,.16)}
.atlas-modern .health-summary-label{font-size:.73rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#547f78}
.atlas-modern .health-summary-block h3{margin:13px 0 7px;font-size:1rem}
.atlas-modern .health-summary-block p{margin:0 0 10px;overflow-wrap:anywhere}
.atlas-modern .comparison-detail{margin-top:17px;border-top:1px solid rgba(104,137,134,.18);padding-top:13px}
.atlas-modern .comparison-detail>summary{cursor:pointer;font-weight:700}
.atlas-modern .client-visit-history .visit{border:1px solid rgba(104,137,134,.18);border-radius:12px;margin:10px 0;overflow:hidden}
.atlas-modern .client-visit-history .visit>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;font-weight:750}
.atlas-modern .client-visit-history .visit>summary small{font-weight:500;color:#647875}
.atlas-modern .client-visit-history .visit[open]>summary{background:rgba(104,137,134,.08)}
@media(max-width:1050px){.atlas-modern .health-summary-grid{grid-template-columns:1fr}}
@media(max-width:620px){.atlas-modern .client-section-heading{align-items:flex-start}.atlas-modern .client-section-tag{font-size:.68rem}.atlas-modern .health-summary-block{padding:14px}.atlas-modern .client-visit-history .visit>summary{align-items:flex-start;flex-direction:column;gap:4px}}

/* Atlas 1.7.2 — unified herbal treatment section */
.atlas-modern .client-herbal-section{background:#fff;border:1px solid rgba(91,132,126,.18);border-radius:15px;padding:20px;margin:14px 0 18px;display:flex;flex-direction:column;gap:12px}
.atlas-modern .client-herbal-heading h4{margin:0 0 5px;font-size:1.06rem}
.atlas-modern .client-herbal-heading p{margin:0}
.atlas-modern .client-herbal-section .client-formula-picker{margin:0;padding:13px 15px;border-radius:12px}
.atlas-modern .client-herbal-section .client-formula-picker>p.catalogue-muted:first-of-type{display:none}
.atlas-modern .client-herbal-section>label{margin:0}
@media(max-width:620px){.atlas-modern .client-herbal-section{padding:13px;gap:10px}.atlas-modern .client-herbal-section .client-formula-picker{padding:12px}}

/* Atlas 1.7.4 — consistent diagnostic section visual language */
.atlas-modern .client-herbal-section.diagnostic-section,
.atlas-modern .client-acupuncture-section.diagnostic-section{background:#fff;border:1px solid rgba(87,137,129,.15);border-radius:16px;padding:18px 16px;box-shadow:0 6px 24px rgba(34,67,78,.035);margin:14px 0;display:block}
.atlas-modern .client-herbal-heading h4,
.atlas-modern .client-acupuncture-section>h4,
.atlas-modern .client-followup-heading{display:flex;align-items:center;gap:10px;font-weight:750;font-size:1rem;margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid rgba(88,138,130,.13)}
.atlas-modern .client-herbal-heading .catalogue-muted,
.atlas-modern .client-acupuncture-section>.catalogue-muted{margin:0 0 12px}
.atlas-modern .client-herbal-section .client-formula-picker{border:1px solid rgba(76,150,119,.2);background:linear-gradient(130deg,rgba(226,247,236,.68),rgba(246,251,249,.9));margin-bottom:14px}
.atlas-modern .client-acupuncture-section .visit-picker{border:1px solid rgba(79,132,147,.19);background:rgba(239,247,249,.58);border-radius:12px;overflow:hidden}
.atlas-modern .client-acupuncture-section .visit-picker>summary{padding:12px 14px;cursor:pointer;font-weight:700;color:#315c70}
.atlas-modern .client-acupuncture-section .visit-picker[open]>summary{border-bottom:1px solid rgba(79,132,147,.15)}
.atlas-modern .client-acupuncture-section .visit-picker .choice-grid{padding:12px}
.atlas-modern .client-followup-heading{margin-top:16px}
@media(max-width:620px){.atlas-modern .client-herbal-section.diagnostic-section,.atlas-modern .client-acupuncture-section.diagnostic-section{padding:14px 12px}}

/* Atlas 1.7.6 — acupuncture selection uses the same meridian colour language as the catalogue */
.atlas-modern .acupuncture-meridian-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.atlas-modern .acupuncture-meridian{--meridian-color:#527b82;--meridian-bg:#edf5f5;border:1px solid color-mix(in srgb,var(--meridian-color) 25%,white);border-radius:13px;overflow:hidden;background:#fff;align-self:start}
.atlas-modern .acupuncture-meridian-lu{--meridian-color:#597f9c;--meridian-bg:#edf3f8}
.atlas-modern .acupuncture-meridian-li{--meridian-color:#a8783f;--meridian-bg:#faf2e7}
.atlas-modern .acupuncture-meridian-st{--meridian-color:#b16e39;--meridian-bg:#fcf0e6}
.atlas-modern .acupuncture-meridian-sp{--meridian-color:#8d8144;--meridian-bg:#f8f5e8}
.atlas-modern .acupuncture-meridian-ht{--meridian-color:#aa5660;--meridian-bg:#faeef0}
.atlas-modern .acupuncture-meridian-si{--meridian-color:#a26b78;--meridian-bg:#f9eff2}
.atlas-modern .acupuncture-meridian-bl{--meridian-color:#4c7baf;--meridian-bg:#eaf1f9}
.atlas-modern .acupuncture-meridian-ki{--meridian-color:#5a659b;--meridian-bg:#eff0f8}
.atlas-modern .acupuncture-meridian-pc{--meridian-color:#9c5b84;--meridian-bg:#f7eef5}
.atlas-modern .acupuncture-meridian-sj{--meridian-color:#8b6aa5;--meridian-bg:#f4eff8}
.atlas-modern .acupuncture-meridian-gb{--meridian-color:#4e8a75;--meridian-bg:#eaf6f0}
.atlas-modern .acupuncture-meridian-lr{--meridian-color:#527c4b;--meridian-bg:#eef6eb}
.atlas-modern .acupuncture-meridian-cv{--meridian-color:#64877e;--meridian-bg:#edf5f2}
.atlas-modern .acupuncture-meridian-gv{--meridian-color:#61747f;--meridian-bg:#eef2f4}
.atlas-modern .acupuncture-meridian>summary{display:flex;align-items:center;gap:11px;cursor:pointer;padding:12px 14px;background:var(--meridian-bg);list-style:none}
.atlas-modern .acupuncture-meridian>summary::-webkit-details-marker{display:none}
.atlas-modern .meridian-code{background:var(--meridian-color);color:white;font-weight:800;border-radius:9px;padding:8px;min-width:42px;text-align:center}
.atlas-modern .meridian-name{font-weight:750;flex:1;min-width:0;color:#263e45}
.atlas-modern .meridian-name small{display:block;font-size:.72rem;font-weight:500;color:#647579;margin-top:3px}
.atlas-modern .meridian-chevron{color:var(--meridian-color);font-size:1.3rem}
.atlas-modern .acupuncture-meridian[open] .meridian-chevron{transform:rotate(180deg)}
.atlas-modern .acupuncture-point-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px}
.atlas-modern .acupuncture-point-card{display:flex;align-items:center;gap:8px;padding:10px;border-radius:9px;border:1px solid #e1e9e9;background:#fff;cursor:pointer;font-size:.82rem}
.atlas-modern .acupuncture-point-card:has(input:checked){background:var(--meridian-bg);border-color:var(--meridian-color);box-shadow:inset 3px 0 var(--meridian-color)}
.atlas-modern .acupuncture-point-card input{accent-color:var(--meridian-color);flex:none}
.atlas-modern .acupuncture-point-card strong{color:var(--meridian-color)}
.atlas-modern #acupuncture-selected-count{font-weight:700;margin:0 0 12px}
@media(max-width:900px){.atlas-modern .acupuncture-meridian-grid{grid-template-columns:1fr}}
@media(max-width:520px){.atlas-modern .acupuncture-point-grid{grid-template-columns:1fr}}

/* Custom acupuncture points, same visual system and regular typography */
.atlas-modern .acupuncture-custom-panel{margin-top:16px;padding:14px;border:1px solid #d8e5e6;border-radius:12px;background:#f5f9fa}
.atlas-modern .acupuncture-custom-panel>label{display:block;margin-bottom:10px;font-weight:400!important}
.atlas-modern .acupuncture-custom-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(150px,2fr) auto;gap:9px;margin-bottom:9px;align-items:center}
.atlas-modern .acupuncture-custom-row input{min-width:0}
.atlas-modern .acupuncture-custom-row button{white-space:nowrap}
@media(max-width:620px){.atlas-modern .acupuncture-custom-row{grid-template-columns:1fr 1fr}.atlas-modern .acupuncture-custom-row button{grid-column:1/-1}}


/* Atlas typography — one modern, readable system font and a restrained hierarchy */
:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.atlas-modern,
.atlas-modern button,
.atlas-modern input,
.atlas-modern textarea,
.atlas-modern select{font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important}
.atlas-modern{font-weight:400}
.atlas-modern h1,.atlas-modern h2,.atlas-modern h3,
.atlas-modern h4,.atlas-modern h5,.atlas-modern h6,
.atlas-modern .client-herbal-heading h4,
.atlas-modern .client-acupuncture-section>h4,
.atlas-modern .client-followup-heading{font-weight:650!important}
.atlas-modern p,.atlas-modern li,.atlas-modern label,
.atlas-modern input,.atlas-modern textarea,.atlas-modern select,
.atlas-modern small,.atlas-modern .catalogue-muted{font-weight:400!important}
.atlas-modern button,.atlas-modern .button-link{font-weight:500!important}
.atlas-modern strong,.atlas-modern b,
.atlas-modern .meridian-code,.atlas-modern .meridian-name,
.atlas-modern .acupuncture-point-card strong,
.atlas-modern .health-summary-label{font-weight:600!important}
.atlas-modern .visit-save-actions>button[type="submit"]{font-weight:500!important;font-style:normal!important;letter-spacing:normal!important;text-transform:none!important}

/* Preserve existing sidebar and mobile menu typography and spacing. */
.atlas-modern aside nav a{font-weight:400!important;white-space:normal;overflow-wrap:normal}
.atlas-modern aside .brand{font-weight:600!important}

/* Typography audit: only semantic headings receive a bold weight.
   This overrides legacy scattered 600–800 weights without changing layout. */
.atlas-modern :is(p,span,small,label,li,td,th,dt,dd,legend,a,summary,button,input,textarea,select,strong,b,em),
.atlas-modern .formula-directory .formula-column-headings span,
.atlas-modern .nutrition-table thead th,
.atlas-modern .product-table td::before,
.atlas-modern .formula-status,
.atlas-modern .thermal-pill,
.atlas-modern .meridian-code,
.atlas-modern .meridian-name,
.atlas-modern .diagnostic-number,
.atlas-modern .health-summary-label,
.atlas-modern .acupuncture-point-card strong,
.atlas-modern .clinical-step-nav .step-nav-icon,
.atlas-modern .formula-directory .formula-item-field::before{font-weight:400!important}
.atlas-modern :is(h1,h2,h3,h4,h5,h6),
.atlas-modern .formula-item-title h3,
.atlas-modern .client-herbal-heading h4,
.atlas-modern .client-acupuncture-section>h4,
.atlas-modern #visit-form .diagnostic-section>h4{font-weight:650!important}
.atlas-modern :is(button,.button-link){font-weight:500!important}
.atlas-modern aside .brand{font-weight:600!important}

/* Study reference cards — readable terms, regular body text */
.atlas-modern .study-topic-terms{margin:14px 0 0}
.atlas-modern .study-topic-terms>div{padding:9px 0;border-top:1px solid #e3ebef}
.atlas-modern .study-topic-terms dt{font-weight:500;font-size:.9rem;color:#244e62;margin-bottom:3px}
.atlas-modern .study-topic-terms dd{margin:0;font-weight:400;font-size:.9rem;line-height:1.55;color:#405564}
.atlas-modern #study-topics .studyitem h3{font-weight:650!important}
.atlas-modern #study-topics .studyitem p{margin:0 0 8px}
.atlas-modern #study-topics .studyitem>a{display:inline-block;margin-top:12px;font-weight:400!important}

/* Login scenery and accessible glass card; isolated from the application. */
body.atlas-login{min-height:100vh;min-height:100svh;display:grid;align-items:center;padding:48px max(6vw,24px);background:#e5eae1 url('../login.php?asset=landscape-v1') center/cover no-repeat;color:#263f3a}
.atlas-login .login{width:min(100%,440px);max-width:none;margin:0 5vw 0 auto;padding:44px 40px;border:1px solid rgba(255,255,255,.85);border-radius:24px;background:rgba(255,255,255,.89);box-shadow:0 22px 70px #203d3424;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.atlas-login .brand{display:flex;align-items:center;gap:12px;font-size:27px;font-weight:600;color:#2d5248}
.atlas-login .monad{width:38px;height:38px;flex:none}
.atlas-login h1{margin:34px 0 8px;font-size:30px;font-weight:600;letter-spacing:-.5px}
.atlas-login .login-intro{margin:0 0 26px;font-size:14px;color:#586c63;line-height:1.7}
.atlas-login label{margin:20px 0 0;font-size:14px;font-weight:500}
.atlas-login input{min-height:48px;margin-top:9px;background:#ffffffd9;border:1px solid #c4d1c8;border-radius:10px;color:#263f3a;font:inherit}
.atlas-login input:focus-visible{outline:3px solid #7a9f8e77;outline-offset:2px;border-color:#527c69}
.atlas-login button{min-height:49px;margin-top:28px;background:#376753;font-size:15px;font-weight:500;border-radius:10px}
.atlas-login button:hover{background:#294f40}
.atlas-login button:focus-visible{outline:3px solid #789b87;outline-offset:3px}
.atlas-login .login-note{margin:22px 0 0;text-align:center;color:#61736a;font-size:12px}
.atlas-login .error{border:1px solid #efc6c1;font-size:14px}
@media(max-width:650px){body.atlas-login{padding:28px 20px;background-position:38% center}.atlas-login .login{margin:0 auto;padding:32px 26px;background:rgba(255,255,255,.94)}.atlas-login h1{margin-top:28px}.atlas-login .brand{font-size:25px}}
@media(prefers-reduced-transparency:reduce){.atlas-login .login{background:#fff;backdrop-filter:none}}

/* Keep filtered results hidden despite the legacy display override. */
.atlas-modern .formula-catalog-dialog .formula-catalog-choice[hidden],
.atlas-modern .food-catalog-dialog .choice[hidden]{display:none!important}
.atlas-modern .formula-dialog-actions{position:sticky;bottom:-22px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px -22px -22px;padding:16px 22px;background:#fff;border-top:1px solid #dce6ef;box-shadow:0 -6px 18px #17334b0a}
.atlas-modern .formula-dialog-actions p{margin:0;font-size:12px}
.atlas-modern .formula-dialog-actions button{flex:none;min-height:44px}
@media(max-width:600px){.atlas-modern .formula-dialog-actions{align-items:stretch;flex-direction:column;gap:8px}.atlas-modern .formula-dialog-actions button{width:100%}}

/* Atlas internal chat: scoped so client forms and the existing sidebar retain their layout. */
#atlas-chat-badge,.atlas-chat-unread{display:inline-block;min-width:22px;padding:2px 7px;border-radius:999px;background:#dc5962;color:#fff;font-size:12px;text-align:center;margin-left:7px}
#atlas-chat-badge[hidden]{display:none}
#atlas-chat{display:grid;grid-template-columns:250px minmax(0,1fr);gap:0;padding:0;overflow:hidden;min-height:650px}
#atlas-chat .atlas-chat-list{padding:20px;border-right:1px solid #dfe8ed;background:#f5f9fb;min-width:0}
#atlas-chat .atlas-chat-list h2{margin:0 0 14px;font-size:19px}
#atlas-chat .atlas-chat-list label{margin:0 0 18px}
#atlas-chat .atlas-chat-thread{display:block;position:relative;width:100%;text-align:left;padding:13px 12px;margin:7px 0;border:1px solid #dce6ed;background:#fff;color:#254b60;border-radius:11px}
#atlas-chat .atlas-chat-thread.is-active{border-color:#4189ba;background:#eaf3fb;box-shadow:inset 3px 0 #4189ba}
#atlas-chat .atlas-chat-thread strong{display:block;padding-right:20px;overflow-wrap:anywhere}
#atlas-chat .atlas-chat-thread small{display:block;margin-top:5px;color:#617a8a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#atlas-chat .atlas-chat-unread{position:absolute;right:9px;top:10px}
#atlas-chat .atlas-chat-pane{display:flex;flex-direction:column;min-width:0;padding:22px;gap:12px}
#atlas-chat .atlas-chat-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#atlas-chat .atlas-chat-heading h2{margin:0 0 5px;font-size:21px;overflow-wrap:anywhere}
#atlas-chat .atlas-chat-heading p{margin:0;font-size:12px;color:#607a8b}
#atlas-chat-messages{height:420px;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:12px 6px;scrollbar-gutter:stable}
#atlas-chat .atlas-chat-message{align-self:flex-start;max-width:88%;min-width:150px;border:1px solid #dfe7ed;border-radius:14px;padding:12px 14px;background:#f4f7fa;overflow-wrap:anywhere}
#atlas-chat .atlas-chat-message.is-own{align-self:flex-end;background:#eaf5ef;border-color:#c4dfd0}
#atlas-chat .atlas-chat-message-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;color:#567080}
#atlas-chat .atlas-chat-message-meta time{font-size:11px}
#atlas-chat .atlas-chat-message p{white-space:pre-wrap;margin:8px 0 0;line-height:1.6}
#atlas-chat .is-deleted{font-style:italic;color:#7a8c96}
#atlas-chat .atlas-chat-message-actions{display:flex;gap:10px;margin-top:8px}
#atlas-chat .atlas-chat-message-actions button{border:0;background:transparent;color:#4e7385;padding:2px 0;min-height:28px;font-size:11px}
#atlas-chat [data-chat-editor] textarea{min-width:190px}
#atlas-chat [data-chat-editor] button{font-size:12px;margin:8px 8px 0 0;padding:8px 10px}
#atlas-chat-form{border-top:1px solid #e0e8ee;padding-top:12px}
#atlas-chat-form label{margin:0}
#atlas-chat-text{resize:vertical;min-height:85px;max-height:240px}
#atlas-chat .atlas-chat-compose-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}
#atlas-chat .atlas-chat-compose-actions small{font-size:11px;color:#657f8f}
#atlas-chat .atlas-chat-compose-actions>div{display:flex;align-items:center;gap:10px}
#atlas-chat-status{min-height:20px;font-size:13px;margin:0}
#atlas-chat-emojis{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
#atlas-chat-emojis[hidden]{display:none}
#atlas-chat-emojis button{background:#edf3f7;padding:7px 10px;font-size:20px}
#atlas-chat button:focus-visible,#atlas-chat-messages:focus-visible{outline:3px solid #8cb9d8;outline-offset:2px}
@media(max-width:1000px){#atlas-chat{grid-template-columns:210px minmax(0,1fr)}#atlas-chat .atlas-chat-pane{padding:16px}#atlas-chat .atlas-chat-list{padding:14px}}
@media(max-width:700px){#atlas-chat{grid-template-columns:minmax(0,1fr)}#atlas-chat .atlas-chat-list{border-right:0;border-bottom:1px solid #dfe8ed}#atlas-chat-threads{display:flex;overflow-x:auto;gap:8px;padding-bottom:5px}#atlas-chat .atlas-chat-thread{flex:0 0 180px;margin:0}#atlas-chat .atlas-chat-list label{margin-bottom:12px}#atlas-chat-messages{height:380px}#atlas-chat .atlas-chat-message{max-width:94%}#atlas-chat .atlas-chat-compose-actions{align-items:flex-start}#atlas-chat .atlas-chat-compose-actions small{display:block;max-width:170px}#atlas-chat .atlas-chat-pane{padding:14px}}

#atlas-chat [hidden]{display:none!important}

/* Keep the composer visible on ordinary desktop screens. */
#atlas-chat{height:calc(100svh - 200px);min-height:460px;max-height:900px}
#atlas-chat .atlas-chat-list{overflow:auto}
#atlas-chat .atlas-chat-pane{min-height:0}
#atlas-chat-messages{height:auto;min-height:100px;flex:1}
#atlas-chat-form{flex:none}
@media(max-width:700px){#atlas-chat{height:auto;min-height:0;max-height:none}#atlas-chat .atlas-chat-pane{height:calc(100svh - 220px);min-height:430px}#atlas-chat-messages{height:auto;min-height:100px}}

/* Formula dosage stays in the visit form; the modal only edits the draft. */
.atlas-modern .formula-selected-cards{display:grid;gap:9px;margin:12px 0}
.atlas-modern .formula-selected-card{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid #cce1d5;border-radius:11px;background:#f1f9f4}
.atlas-modern .formula-selected-card>div{flex:1;min-width:0}
.atlas-modern .formula-selected-card strong,.atlas-modern .formula-selected-card small{display:block;overflow-wrap:anywhere}
.atlas-modern .formula-selected-card small{margin-top:5px;white-space:pre-wrap;color:#567469;font-size:12px}
.atlas-modern .formula-selected-card>button{flex:none}
.atlas-modern .formula-dose-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.atlas-modern .formula-dose-heading h4{margin:0!important;padding:0!important;border:0!important;font-size:17px!important;overflow-wrap:anywhere}
.atlas-modern .formula-dose-row{padding:16px;margin:14px 0;border:1px solid #cce0d6;border-radius:12px;background:#f5faf7}
.atlas-modern .formula-dose-remove{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;min-width:36px;height:36px;padding:0!important;border:1px solid #e4c9c7!important;background:#fff4f3!important;color:#9c3732!important;border-radius:9px;font-size:24px!important;line-height:1}
.atlas-modern .formula-dose-remove:hover{background:#fce4e1!important}
.atlas-modern .formula-dose-dialog textarea{font-size:16px;min-height:90px;resize:vertical}
.atlas-modern #formula-dose-open[hidden]{display:none!important}
@media(max-width:600px){.atlas-modern .formula-selected-card{flex-wrap:wrap}.atlas-modern .formula-selected-card>div{flex-basis:calc(100% - 48px)}.atlas-modern .formula-selected-card .formula-dose-remove{order:-1}.atlas-modern .formula-selected-card>button.secondary{margin-left:46px}}

/* Food picker and meal plans share the catalogue thermal palette. */
.atlas-modern .food-tone-hot{--food-accent:#b7423b;--food-tint:#fff3f0}
.atlas-modern .food-tone-warm{--food-accent:#c77924;--food-tint:#fff7e9}
.atlas-modern .food-tone-neutral{--food-accent:#73806a;--food-tint:#f4f7f1}
.atlas-modern .food-tone-cool{--food-accent:#318fa6;--food-tint:#edf8fb}
.atlas-modern .food-tone-cold{--food-accent:#416ba9;--food-tint:#eff4fc}
.atlas-modern .food-choice,.atlas-modern .food-plan-row,.atlas-modern .food-selected-card{border:1px solid var(--food-accent)!important;border-left:5px solid var(--food-accent)!important;background:var(--food-tint)!important;border-radius:12px}
.atlas-modern .food-choice{display:flex!important;gap:10px;align-items:flex-start;padding:12px!important}
.atlas-modern .food-choice[hidden],.atlas-modern #food-plan-open[hidden]{display:none!important}
.atlas-modern .food-choice>span{display:grid;gap:7px;min-width:0}
.atlas-modern .food-choice strong{overflow-wrap:anywhere}
.atlas-modern .food-choice:has(input:checked){box-shadow:inset 0 0 0 2px var(--food-accent)}
.atlas-modern .food-nature-pill{display:inline-block;width:fit-content;padding:4px 9px;background:var(--food-accent,#73806a);color:#fff!important;border-radius:999px;font-size:12px;line-height:1.4}
.atlas-modern .food-thermal-legend{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}
.atlas-modern .food-plan-row{padding:16px;margin:14px 0}
.atlas-modern .food-plan-row>.food-nature-pill{margin-top:10px}
.atlas-modern .food-selected-card{display:flex;align-items:center;gap:10px;padding:13px}
.atlas-modern .food-selected-card>div{flex:1;min-width:0}
.atlas-modern .food-selected-card strong,.atlas-modern .food-selected-card small{display:block;overflow-wrap:anywhere}
.atlas-modern .food-selected-card small{white-space:pre-wrap;margin-top:7px;color:#536d70;font-size:12px}
.atlas-modern .food-selected-card .food-nature-pill{margin-top:6px}
.atlas-modern .food-taste-options{display:flex;flex-wrap:wrap;gap:12px}
.atlas-modern .food-taste-options .choice{margin:0}
@media(max-width:600px){.atlas-modern .food-selected-card{flex-wrap:wrap}.atlas-modern .food-selected-card>div{flex-basis:calc(100% - 48px)}.atlas-modern .food-plan-row{padding:12px}}


/* Private practitioner appointment calendar. */
.calendar-toolbar,.calendar-date-jump,.calendar-actions,.calendar-appointment-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.calendar-toolbar h2{margin:0}.calendar-date-jump{margin:20px 0;align-items:flex-end}.calendar-date-jump label{margin:0}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.calendar-weekday{text-align:center;padding:8px}.calendar-day{display:flex;flex-direction:column;gap:5px;min-height:105px;border:1px solid #d8e5ef;border-radius:12px;padding:10px;text-decoration:none;color:#21475e;background:#f8fbfe;overflow:hidden}.calendar-day:hover{background:#eaf4ff}.calendar-day.is-selected{border:2px solid #237bc5;background:#eaf4ff}.calendar-day.is-today strong{color:#1769aa;text-decoration:underline}.calendar-count{font-size:12px;color:#587389}.calendar-mini{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#d9ecff;border-radius:5px;padding:3px}.calendar-detail{margin-top:22px;scroll-margin-top:20px}.calendar-appointment{padding:16px;margin:12px 0;border:1px solid #d8e5ef;border-left:4px solid #2786cd;border-radius:10px}.calendar-appointment small{display:block}.calendar-appointment-heading{justify-content:space-between;margin-bottom:10px}.calendar-appointment-heading span{font-size:12px}.calendar-status-cancelled{border-left-color:#a8b3bd;background:#f4f5f7}.calendar-status-completed{border-left-color:#39a67e}.calendar-actions{margin-top:12px}.calendar-actions form{display:flex;gap:8px;flex-wrap:wrap}.calendar-actions button,.calendar-actions .button{font-size:13px;padding:8px 12px}#appointment-form{scroll-margin-top:20px}
@media(max-width:700px){.calendar-panel{padding:12px}.calendar-grid{gap:3px}.calendar-day{min-height:70px;padding:5px;border-radius:7px}.calendar-mini{display:none}.calendar-count{font-size:10px}.calendar-toolbar{gap:8px}.calendar-toolbar h2{font-size:20px}.calendar-detail{grid-template-columns:1fr}}

.study-navigation{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.study-navigation a{padding:9px 13px;background:#edf5fc;border:1px solid #d7e8f5;border-radius:9px;color:#246292;text-decoration:none}.study-navigation a:hover,.study-navigation a:focus-visible{background:#dceeff}.study-module,#study-start,#study-topics,#tongue-study,#pulse-study{scroll-margin-top:20px}.study-lesson-card{padding:20px;border:1px solid #dfebf4;border-radius:14px;background:#f9fcff}.study-lesson-card h3{margin-top:0}.study-lesson-card li{margin:9px 0}.study-comparison .grid{margin-top:18px}.study-quiz-question{padding:20px;margin:20px 0;border:1px solid #dce7ef;border-radius:12px;min-width:0}.study-quiz-question legend{font-weight:700;padding:0 8px}.study-quiz-option{display:flex;gap:10px;align-items:flex-start;padding:10px;border:1px solid #dfe9f1;border-radius:8px;margin:9px 0;background:#fff}.study-quiz-option input{width:auto;flex:0 0 auto;margin-top:4px}.study-quiz-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.study-answer-correct{border-color:#55a78a;background:#f1faf5}.study-answer-review{border-color:#d2ad5b;background:#fffbf1}.study-quiz-feedback[hidden]{display:none!important}.study-quiz-solution{margin-top:12px}.study-quiz-solution summary{cursor:pointer;color:#246292}.study-module details details{padding:14px;background:#f4f8fc;border-radius:9px;margin-top:12px}
@media(max-width:600px){.study-navigation{gap:6px}.study-navigation a{font-size:13px;padding:8px 10px}.study-lesson-card,.study-quiz-question{padding:14px}.study-quiz-actions{align-items:stretch;flex-direction:column}}

/* Five-step client record with an independent, persistent history rail. */
.client-context-add{padding:4px 8px!important;margin:0 9px 0 5px;font-size:10px!important}.client-care-row{margin:12px 0;padding:12px;border:1px solid #e0eaf2;border-radius:9px;background:#fff}.client-care-row>strong{font-size:12px}.client-care-row p{font-size:12px;margin:8px 0 0}.client-care-row .client-catalog-links{margin:10px 0 0}.client-care-row button{font-size:11px;padding:7px 10px}
.atlas-modern .client-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px 24px}.client-heading h2{margin:0!important;border:0!important;padding:0!important}.client-heading h2 small{display:block;font-size:13px;font-weight:500;margin-top:5px}.client-heading-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.client-heading .saved-message{width:100%}
.atlas-modern .client-workspace{grid-template-columns:minmax(0,1fr) minmax(300px,340px);gap:20px;align-items:start}.atlas-modern .client-record-rail{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto;min-width:0;display:block;padding:0 3px 12px;scrollbar-width:thin;overscroll-behavior:contain;background:transparent;color:inherit;border:0;border-radius:0}.client-record-rail>.panel{margin:0 0 16px!important;padding:18px!important}.client-record-rail h2{font-size:18px!important}.client-record-rail h3{font-size:14px!important}.client-record-rail .health-summary-grid{display:block!important}.client-record-rail .health-summary-block{margin:10px 0;padding:12px!important;border-radius:10px}.client-record-rail .health-summary-block h3{margin-top:4px}.client-record-rail .client-section-heading{gap:8px;flex-wrap:wrap}.client-record-rail .client-section-tag{font-size:10px;padding:5px 8px}.client-record-rail .visit-fields{grid-template-columns:1fr}.client-record-rail .client-profile summary{padding:12px 0}.client-record-rail textarea{font-size:13px}.client-record-rail .client-visit-history .visit>summary{padding:12px;display:flex;flex-wrap:wrap;gap:4px}.client-record-rail .visit{font-size:13px}.client-record-rail .visit>p,.client-record-rail .visit>h4,.client-record-rail .visit>ul,.client-record-rail .visit>div{margin-left:12px;margin-right:12px}.client-record-rail .comparison-panel{box-shadow:none!important;padding:0!important;margin:14px 0 0!important}.client-record-rail .comparison-panel .tablewrap{font-size:12px}.client-record-rail .client-danger-zone{box-shadow:none!important}.client-record-rail .client-delete-button{font-size:12px}
.client-profile-summary{font-size:13px;border-bottom:1px solid #e6edf4;padding:10px 0}.client-profile-summary strong{display:block;color:#496681;font-size:11px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}.client-profile-summary p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.client-profile-summary.is-important{border-left:3px solid #d69b50;padding-left:9px;background:#fffcf6}.client-rail-links{display:flex;gap:10px;font-size:12px;margin:12px 0;flex-wrap:wrap}.client-record-rail>details>summary{cursor:pointer;font-weight:650}
.atlas-modern .clinical-workspace-heading{padding:20px!important;display:block}.atlas-modern .clinical-workspace-heading h2{font-size:21px}.client-visit-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;background:#fff;border:1px solid #dfe8f0;border-radius:14px;padding:14px 18px}.client-visit-toolbar label{margin:0;max-width:230px}.client-visit-toolbar p{margin:3px 0;font-size:12px;color:#8d6b29}.client-draft-label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#66829b}
.client-visit-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:14px 0;background:#eaf0f6;padding:5px;border-radius:13px}.client-visit-tabs a{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 9px;color:#526c83;text-decoration:none;border-radius:9px;min-width:0}.client-visit-tabs a>span{font-size:11px;font-weight:700;color:#8a9bac}.client-visit-tabs strong{font-size:12px}.client-visit-tabs small{font-size:10px;line-height:1.35}.client-visit-tabs a[aria-selected=true]{background:#fff;color:#176bb1;box-shadow:0 2px 8px #24435b10}.client-visit-tabs a[aria-selected=true]>span{color:#176bb1}.client-visit-tabs a:focus-visible{outline:2px solid #267bc2;outline-offset:1px}
.atlas-modern #visit-form .diagnostic-steps{display:block}.atlas-modern #visit-form [data-visit-panel][hidden]{display:none!important}.atlas-modern #visit-form [data-visit-panel]{margin:0!important;padding:20px!important;border:1px solid #dfe8f0!important;box-shadow:none!important;background:#fff!important;border-radius:15px!important}.atlas-modern #visit-form [data-visit-panel]>h4{font-size:18px;margin:0 0 16px!important}.client-catalog-links{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.client-catalog-links a{background:#f0f6fc;color:#276b9f;padding:7px 10px;border-radius:7px;text-decoration:none;font-size:12px}.client-pane-intro{font-size:13px;color:#6d8295;margin:0 0 18px}.atlas-modern #visit-form .client-supplementary-section{padding:16px!important;background:#f8fbfe!important;border:1px solid #e1eaf2!important;box-shadow:none!important;margin:18px 0!important}.atlas-modern #visit-form .client-supplementary-section h4{font-size:15px!important}.client-therapy-details{margin-top:18px!important;padding:14px!important}.client-therapy-details>summary{font-weight:700;cursor:pointer}.client-therapy-details .client-herbal-section{margin-bottom:0!important}.client-followup{margin-top:18px;border-top:1px solid #e5edf4;padding-top:16px}.client-followup>summary{font-weight:650;cursor:pointer}.client-followup-content{padding-top:15px}.client-footer-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.client-footer-actions .client-save-button{margin-left:auto}.atlas-modern .visit-save-actions{position:sticky;bottom:10px;z-index:4;background:#fff;border:1px solid #dce7ef;border-radius:13px;padding:13px;box-shadow:0 4px 20px #21436512;margin-top:16px}.visit-save-actions>p{font-size:11px;margin:8px 0 0}.client-step-caption{font-size:12px;color:#668099}
.client-questionnaire-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:20px 0 12px}.client-questionnaire-header h3{font-size:15px;margin:0 0 5px}.client-questionnaire-header p{margin:0;font-size:12px}.client-progress-count{flex:none;font-size:11px;background:#edf5fc;border-radius:20px;padding:7px 9px;color:#31709d}.anamnesis-question-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;align-items:start}.atlas-modern #visit-form details.anamnesis-question{padding:0!important;margin:0;border:1px solid #dde8f1;background:#fff;border-radius:10px;overflow:hidden}.anamnesis-question>summary{display:flex;gap:9px;align-items:center;cursor:pointer;padding:12px;list-style:none;min-width:0}.anamnesis-question>summary::-webkit-details-marker{display:none}.anamnesis-question>summary>span:nth-child(2){min-width:0;flex:1}.anamnesis-question strong{font-size:12px;display:block}.anamnesis-question small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px;color:#8a9bae;margin-top:4px;max-width:100%}.anamnesis-question-number{display:grid;place-items:center;flex:none;border-radius:8px;background:#edf4fa;color:#54809e;font-size:11px;width:26px;height:29px}.anamnesis-question-mark{color:#7692a6}.anamnesis-question[open] .anamnesis-question-mark{transform:rotate(45deg)}.anamnesis-question.has-answer .anamnesis-question-number{color:#258162;background:#e6f5ee}.anamnesis-answer{padding:0 12px 12px}.anamnesis-answer label{font-size:11px!important;line-height:1.5;margin-bottom:7px!important;font-weight:500}.anamnesis-answer textarea{font-size:13px;min-height:86px}.client-extra-anamnesis{margin:12px 0!important}.questionnaire-source{font-size:10px!important}.client-point-filter{margin:0 0 14px}.client-point-filter label{font-size:13px}.client-point-filter [hidden],.acupuncture-point-card[hidden]{display:none!important}.client-pattern-choice[hidden]{display:none!important}.client-pattern-choices{max-height:320px;overflow:auto}.client-anamnesis-reuse{font-size:12px;padding:7px 10px}.client-record-rail .client-visit-history summary small{font-size:10px}
.atlas-modern #visit-form .visit-save-actions button{width:auto}.atlas-modern #visit-form [data-visit-previous][hidden],.atlas-modern #visit-form [data-visit-next][hidden]{display:none!important}.client-footer-actions{flex-wrap:nowrap}.client-footer-actions button{font-size:12px;padding:10px 12px}.client-footer-actions .client-step-caption{white-space:nowrap}.atlas-modern .visit-save-actions{padding:11px}.visit-save-actions>p{line-height:1.35}
@media(max-width:1100px){.atlas-modern .client-workspace{grid-template-columns:minmax(0,1fr) minmax(280px,310px);gap:14px}.client-visit-tabs small{display:none}.client-visit-tabs a{padding:10px 6px}.anamnesis-question-grid{grid-template-columns:1fr}}
@media(max-width:900px){.atlas-modern .client-workspace{grid-template-columns:1fr}.atlas-modern .client-record-rail{position:static;max-height:none;overflow:visible}.client-visit-tabs{position:sticky;top:0;z-index:5}.client-heading h2{font-size:20px}.anamnesis-question-grid{grid-template-columns:1fr 1fr}.client-footer-actions .client-save-button{margin-left:0}.atlas-modern .visit-save-actions{bottom:5px}}
@media(max-width:600px){.client-visit-tabs{gap:2px;padding:3px}.client-visit-tabs a{padding:9px 4px;align-items:center}.client-visit-tabs strong{font-size:10px}.client-visit-tabs a>span{font-size:10px}.anamnesis-question-grid{grid-template-columns:1fr}.client-visit-toolbar{padding:12px;align-items:flex-end}.client-visit-toolbar label{max-width:170px}.client-questionnaire-header{align-items:flex-start}.client-footer-actions{gap:7px;flex-wrap:wrap}.client-footer-actions button{font-size:12px;padding:10px}.atlas-modern #visit-form .client-footer-actions .client-save-button{width:100%}.client-catalog-links a{font-size:11px}.atlas-modern #visit-form [data-visit-panel]{padding:14px!important}.client-visit-tabs strong{overflow-wrap:anywhere}}


.energy-intro{display:flex;justify-content:space-between;align-items:start;gap:1.5rem}.energy-intro>div{max-width:750px}.energy-intro>a{white-space:nowrap}.energy-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1fr) auto auto;align-items:end;gap:1rem}.energy-filters label{margin:0}.energy-filters a{padding:.8rem 0}.energy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:1rem}.energy-product{display:flex;flex-direction:column;margin:0!important;gap:.6rem}.energy-product h3{margin:.25rem 0;font-size:1.1rem}.energy-category{font-size:.75rem;color:#306755;background:#edf6f0;align-self:start;padding:.35rem .6rem;border-radius:8px}.energy-product p{margin:0}.energy-pack{font-weight:600}.energy-actions{display:grid;gap:.8rem;margin-top:auto;padding-top:1rem}.energy-actions>a{font-size:.85rem}.energy-client-dialog{border:0;border-radius:18px;padding:1.5rem;max-width:540px;width:calc(100% - 32px);color:#24445a}.energy-client-dialog::backdrop{background:rgb(15 38 52 / 50%);backdrop-filter:blur(3px)}.energy-dialog-actions{display:flex;justify-content:end;gap:.7rem;flex-wrap:wrap}.energy-dialog-actions button{white-space:normal}.product-kind-filter{margin-top:.8rem}@media(max-width:800px){.energy-intro{display:block}.energy-filters{grid-template-columns:1fr}.energy-grid{grid-template-columns:1fr}}

/* Keep visit navigation and save together at every workspace width. */
.atlas-modern #visit-form .client-footer-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.atlas-modern #visit-form .client-footer-actions .client-step-caption{margin-right:auto;font-size:13px;white-space:nowrap}
.atlas-modern #visit-form .client-footer-actions button{flex:0 0 auto;margin:0;min-height:42px;padding:10px 16px;font-size:13px;line-height:1.35;white-space:nowrap}
.atlas-modern #visit-form .client-footer-actions .client-save-button{margin-left:0;width:auto}
.atlas-modern #visit-form .visit-save-actions>p{margin-top:10px}
@media(max-width:600px){
 .atlas-modern #visit-form .client-footer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .atlas-modern #visit-form .client-footer-actions .client-step-caption{grid-column:1/-1;margin:0 0 2px}
 .atlas-modern #visit-form .client-footer-actions [data-visit-previous]{grid-column:1}
 .atlas-modern #visit-form .client-footer-actions [data-visit-next]{grid-column:2}
 .atlas-modern #visit-form .client-footer-actions .client-save-button{grid-column:1/-1;width:100%}
 .atlas-modern #visit-form .client-footer-actions button{min-width:0;padding:10px 8px;font-size:12px}
}

/* Weekly overview reuses the private appointment calendar. */
.atlas-modern .home-week{padding:22px}.home-week-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.home-week-heading h2{margin:6px 0 0!important;padding:0!important;border:0!important;font-size:22px}.home-week-heading>a{font-size:13px}.home-week-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 16px}.atlas-modern .home-week-navigation a{font-size:12px;white-space:nowrap;color:#25628f!important}.atlas-modern .home-week-navigation .button{background:#edf4fa!important;border:1px solid #dce7f0}.home-week-navigation .button{padding:9px 12px}.home-week-scroll{overflow-x:auto;padding-bottom:5px}.home-week-grid{display:grid;grid-template-columns:repeat(7,minmax(112px,1fr));gap:8px;min-width:840px}.home-week-day{display:flex;flex-direction:column;border:1px solid #e0e9f0;border-radius:12px;background:#f9fbfe;min-width:0;overflow:hidden}.home-week-day.is-today{border-color:#5b9ac9;background:#f0f7ff}.home-week-day>header{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:4px;margin:0!important;padding:12px!important;border-bottom:1px solid #e2ebf3}.home-week-day>header>span{font-size:12px;color:#637e93}.home-week-day>header>strong{font-size:18px}.home-week-day>header>small{font-size:10px;color:#14669f}.home-week-bookings{padding:8px;min-height:92px;flex:1}.home-week-booking{display:flex;flex-direction:column;gap:5px;padding:10px 8px;border-radius:8px;margin-bottom:7px;background:#e4f0fa;color:#20567f;text-decoration:none;font-size:12px;overflow-wrap:anywhere}.home-week-booking strong{font-size:11px;white-space:nowrap}.home-week-booking.is-completed{background:#e7f3ec;color:#35644a}.home-week-empty{color:#91a1ae;font-size:11px;text-align:center;margin:18px 0}.home-week-add{text-align:center;border-top:1px solid #e0e9f0;padding:12px 5px;font-size:12px;text-decoration:none}.home-week-scroll:focus-visible{outline:2px solid #287abb;outline-offset:3px}.home-week-booking:hover,.home-week-add:hover{background:#d4e9f8}@media(max-width:600px){.atlas-modern .home-week{padding:14px}.home-week-heading h2{font-size:18px}.home-week-navigation{gap:8px}.home-week-navigation a{font-size:10px}.home-week-navigation .button{padding:8px}.home-week-grid{min-width:840px}}

/* Private, dated reminders are independent of visit records. */
.client-reminders h2{margin:8px 0}.reminder-create>summary,.reminder-history>summary{cursor:pointer;font-weight:650;font-size:13px;padding:10px 0}.reminder-create form{padding-top:8px}.reminder-card{padding:13px;border:1px solid #dbe7ee;border-left:3px solid #5e9fc0;border-radius:10px;margin:12px 0;background:#f8fbfe;overflow-wrap:anywhere}.reminder-card.is-overdue{background:#fff5f3;border-left-color:#cb6250}.reminder-card.is-due{background:#fff9e9;border-left-color:#c8942a}.reminder-card-heading{display:flex;align-items:start;justify-content:space-between;gap:8px}.reminder-card-heading strong{font-size:13px}.reminder-card-heading span{font-size:10px;white-space:nowrap}.reminder-date{font-weight:650;margin:8px 0!important;font-size:13px}.reminder-card p{font-size:12px;line-height:1.5}.reminder-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}.reminder-actions form{margin:0}.atlas-modern .reminder-actions button{width:auto;padding:7px 9px;font-size:11px;margin:0}.reminder-actions>a{font-size:11px}.home-reminder-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px;margin-top:14px}.home-reminder-grid .reminder-card{margin:0}.home-reminders .home-week-heading{margin-bottom:12px}

.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.account-grid>.panel{margin:0!important}.account-identity{display:flex;gap:16px;align-items:center;margin:16px 0 24px}.account-avatar{width:88px;height:88px;border-radius:50%;object-fit:cover;flex:none}.account-avatar-empty{display:grid;place-items:center;background:#e9f3fa;color:#2c6f9e;font-size:42px}.account-checkbox{display:flex;align-items:center;gap:8px}.account-checkbox input{width:auto}.account-grid .account-external{display:inline-block;background:#edf4fa;color:#25628f!important;padding:12px 16px;border-radius:9px;text-decoration:none}.account-grid button{margin-top:12px}@media(max-width:850px){.account-grid{grid-template-columns:1fr}}

/* Primary navigation, nutrition subitem and account actions at the bottom. */
.atlas-modern aside #atlas-navigation{flex:1;min-height:0;gap:0}.atlas-primary-links,.atlas-account-links{display:flex;flex-direction:column;gap:5px}.atlas-account-links{margin-top:auto;padding-top:20px}.atlas-modern aside .atlas-account-links form{margin:8px 0 0;padding:0}.atlas-modern aside #atlas-navigation a{display:flex;align-items:center;gap:8px}.atlas-modern aside #atlas-navigation .atlas-nav-sub{font-size:11px!important;padding:7px 12px 9px 27px;opacity:.9}.atlas-modern .menu-count{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 6px;border-radius:12px;background:#e79a32;color:#fff;font-size:11px;font-weight:700;line-height:1;flex:none;margin-left:auto}.atlas-modern .menu-count[hidden]{display:none!important}.mobile-menu-toggle{display:flex;align-items:center;gap:8px}.mobile-menu-toggle .menu-count{margin-left:0}@media(min-width:651px){.atlas-modern aside #atlas-navigation{max-height:none}}@media(max-width:650px){.atlas-account-links{margin-top:12px;padding-top:12px;border-top:1px solid #ffffff24}.atlas-modern aside.menu-open .atlas-account-links form{display:block}.atlas-modern aside #atlas-navigation{flex:initial;max-height:75vh}.atlas-primary-links,.atlas-account-links{flex:none}.mobile-menu-toggle{display:flex}}

@media(min-width:651px){.atlas-modern aside{height:100dvh;overflow:hidden}.atlas-modern aside #atlas-navigation{overflow:hidden}.atlas-primary-links{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin}.atlas-account-links{flex:none}}

.workday-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.workday-heading h2{font-size:24px;margin:6px 0}.atlas-modern .workday-primary{background:#226fa8;color:white!important;border-radius:10px;padding:12px 16px}.workday-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.workday-toolbar nav{display:flex;gap:14px;flex-wrap:wrap;margin:0}.workday-toolbar nav a{color:#2a678f;padding:8px 10px;background:#eef5fa;font-size:12px}.workday-toolbar form{display:flex;align-items:end;gap:10px}.workday-toolbar form label{margin:0;font-size:12px}.workday-toolbar button{margin:0}.workday-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.workday-metrics>div{padding:16px;background:#fff;border:1px solid #e0eaf2;border-radius:12px}.workday-metrics strong{display:block;font-size:26px;color:#286b9b}.workday-metrics span{font-size:12px;color:#6c8395}.workday-metrics .has-pending{background:#fff5ee;border-color:#f0cfb9}.workday-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.workday-columns>.panel{margin:0!important}.workday-columns h2{font-size:19px}.workday-appointment{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid #e4edf3}.workday-time{display:flex;flex-direction:column;gap:4px;flex:none;color:#286c9e}.workday-time strong{font-size:21px}.workday-time span{font-size:12px}.workday-client{min-width:0}.workday-client>a{font-weight:650}.workday-client small{display:block;color:#7e91a1;margin:7px 0}.workday-client p{font-size:12px}.workday-appointment.is-completed .workday-time{color:#63937b}.workday-appointment-actions{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;margin-top:12px}.workday-empty{padding:20px 0;color:#8a9eac;font-size:13px}.workday-add-task{padding:12px;border:1px solid #dce8ef;border-radius:10px;margin:16px 0}.workday-add-task summary{cursor:pointer;font-weight:650;font-size:13px}.workday-add-task form{padding-top:14px}.workday-previous{margin-top:24px;padding-top:16px;border-top:1px solid #e2eaf0}.workday-previous h3{font-size:15px}@media(max-width:850px){.workday-columns{grid-template-columns:1fr}.workday-metrics{grid-template-columns:1fr 1fr}}@media(max-width:600px){.workday-heading h2{font-size:20px}.workday-toolbar nav{gap:6px}.workday-toolbar nav a{font-size:11px}.workday-toolbar form{width:100%}.workday-toolbar form label{flex:1}.workday-metrics>div{padding:12px}}

.atlas-primary-links{overflow-x:hidden}

.client-demographics{margin-bottom:18px!important}.client-demographics h2{font-size:20px;margin:7px 0 18px!important}.client-basics-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.client-basics-fields label{margin:0}.client-basics-help{font-size:12px;margin:10px 0 14px}.client-demographics-summary{background:#edf5fa;color:#24638b;border-radius:8px;padding:10px;font-size:14px;font-weight:650}.client-record-rail .client-basics-fields{grid-template-columns:1fr}.client-save-actions{position:static;display:flex;gap:16px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin:22px 0 0;padding:18px 0;border-top:1px solid #dde7ef}.client-save-actions>p{font-size:12px;margin:0}.client-save-actions button{width:auto!important}.client-visit-tabs a{border:1px solid transparent}.client-visit-tabs a:nth-child(1){background:#edf5ff;color:#285e97}.client-visit-tabs a:nth-child(2){background:#fceff1;color:#9c4e60}.client-visit-tabs a:nth-child(3){background:#f2edfa;color:#7554a1}.client-visit-tabs a:nth-child(4){background:#edf7ef;color:#3e7952}.client-visit-tabs a:nth-child(5){background:#fff4e6;color:#956726}.client-visit-tabs a[aria-selected=true]{border-color:currentColor;box-shadow:inset 0 -3px 0 currentColor}.client-visit-tabs a>span{color:inherit!important}@media(max-width:700px){.client-basics-fields{grid-template-columns:1fr}.client-save-actions{justify-content:flex-start}}

.atlas-modern .client-heading{position:sticky;top:8px;z-index:12;box-shadow:0 3px 16px #20405a14}.atlas-modern #client-save-all{background:#2073aa;color:#fff;font-size:16px;font-weight:700;min-height:46px;padding:12px 28px;order:10}.client-heading-links #client-save-all-status{font-size:11px;color:#6a8397;order:11}.client-unified-profile .client-basics-fields{margin-top:0}.client-reminder-enable{display:flex;align-items:center;gap:8px;font-size:12px!important}.client-reminder-enable input{width:auto!important;margin:0}.client-reminder-state{width:100%;font-size:12px}.client-reminder-state select{margin-top:5px}.client-unified-reminder{padding-top:10px}.atlas-modern .client-heading .saved-message{margin:0}.client-heading .client-heading-links{margin-left:auto}@media(max-width:650px){.atlas-modern .client-heading{top:64px;padding:12px!important}.atlas-modern #client-save-all{padding:10px 22px}.client-heading-links #client-save-all-status{display:none}}

.client-pattern-conclusion{margin:18px 0;padding:18px;background:#f0f7fd;border:1px solid #c9dfee;border-radius:12px;scroll-margin-top:180px}.client-conclusion-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.client-conclusion-heading h3{font-size:17px;margin:0;color:#245f8a}.client-conclusion-heading>span{font-size:10px}.client-conclusion-patterns{display:grid;gap:8px;margin-bottom:16px}.client-conclusion-pattern{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:white;border:1px solid #d5e5f0;border-left:3px solid #3784b8;padding:11px 12px;border-radius:8px}.client-conclusion-pattern strong{font-size:13px}.client-conclusion-pattern small{color:#718b9e;font-size:11px}.client-conclusion-patterns p{font-size:12px;margin:0}.client-pattern-conclusion>p{font-size:11px;margin-bottom:0}.client-pattern-conclusion label{font-weight:650}.client-pattern-conclusion textarea{background:#fff!important}

.client-visit-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}.client-visit-tabs a:nth-child(6){background:#eaf6f5;color:#397c79}.herb-plan-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.herb-followup{padding:18px;margin-top:20px;border:1px solid #dce8ef;border-radius:12px;background:#f3f8fc}.herb-followup h3{font-size:16px;margin:0 0 14px}.herb-followup>p{font-size:12px}.herb-followup-check{display:flex;align-items:center;gap:8px;font-size:12px!important}.herb-followup-check input{width:auto;margin:0}.herb-followup>a{font-size:12px}@media(max-width:600px){.herb-plan-fields{grid-template-columns:1fr}.client-visit-tabs strong{font-size:9px}}
.client-herb-rail{align-self:start;background:#fff;border:1px solid #dce8e2;border-radius:14px;padding:16px;min-width:0}.client-herb-rail h2{font-size:18px!important;margin:0 0 14px}.client-herb-rail small{color:#5b776a;font-size:11px}.client-herb-rail>p{font-size:11px}.herb-bubble{position:relative;border:1px solid #a9d7b8;background:#edf8ef;border-radius:16px;padding:14px 30px 14px 12px;margin:10px 0;color:#24583b;overflow-wrap:anywhere}.herb-bubble strong{display:block;font-size:13px}.herb-bubble p{font-size:12px;margin:6px 0;white-space:pre-wrap}.herb-bubble button.secondary{font-size:11px;padding:5px 9px}.herb-bubble-remove{position:absolute;right:6px;top:6px;padding:3px 6px;background:transparent;color:#24583b;font-size:20px;border:0}.client-herb-rail a{font-size:12px}@media(min-width:1450px){.atlas-modern .client-workspace{grid-template-columns:230px minmax(0,1fr) 310px}.client-herb-rail{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}}@media(min-width:901px) and (max-width:1449px){.client-herb-rail{grid-column:1}.clinical-workspace{grid-column:1;grid-row:2}.atlas-modern .client-record-rail{grid-column:2;grid-row:1 / span 2}}
.atlas-modern .client-herb-rail{position:static;inset:auto;width:auto;height:auto;max-height:none;overflow:visible;display:block;background:#fff;color:#24583b;padding:16px;border:1px solid #dce8e2;border-radius:14px;z-index:auto;box-shadow:none}.atlas-modern .client-herb-rail h2{color:#24583b}.atlas-modern .client-herb-rail a{color:#23694a}.atlas-modern .client-herb-rail .catalogue-muted{color:#567565}@media(min-width:1450px){.atlas-modern .client-herb-rail{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}}
.atlas-modern .client-herb-rail small{display:block;color:#526e5e!important;letter-spacing:0;font-size:11px}.atlas-modern .client-herb-rail .herb-bubble-remove{background:transparent!important;color:#24583b!important;box-shadow:none!important}
.atlas-modern .client-workspace{grid-template-columns:220px minmax(0,1fr);gap:18px}.atlas-modern .clinical-workspace{grid-column:2;grid-row:1;min-width:0}.atlas-modern .client-herb-rail{grid-column:1;grid-row:1}.binder-extra-record{grid-column:1 / -1;border:1px solid #dbe5ed;border-radius:12px;background:#fff;padding:16px}.binder-extra-record>summary{cursor:pointer;color:#356680;font-size:13px}.atlas-modern .binder-extra-record .client-record-rail{position:static;max-height:none;overflow:visible;margin-top:15px;display:grid;grid-template-columns:1fr 1fr;gap:15px}.binder-extra-record .client-health-card{display:none}.atlas-modern .client-visit-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;background:transparent;padding:0;margin:18px 0 0;border:0;border-radius:0;position:static}.atlas-modern .client-visit-tabs a{border:1px solid #dbe5ed;border-bottom:4px solid var(--tab-color);border-radius:15px 15px 0 0;min-height:80px;padding:13px 9px;display:flex;flex-direction:column;gap:4px;align-items:flex-start;background:var(--tab-bg);color:#355063;box-shadow:0 -3px 9px #18344b05;transform:translateY(5px)}.atlas-modern .client-visit-tabs a:nth-child(1){--tab-color:#3382aa;--tab-bg:#eaf4fa}.atlas-modern .client-visit-tabs a:nth-child(2){--tab-color:#b36847;--tab-bg:#fbefe9}.atlas-modern .client-visit-tabs a:nth-child(3){--tab-color:#8566aa;--tab-bg:#f2edf8}.atlas-modern .client-visit-tabs a:nth-child(4){--tab-color:#42926c;--tab-bg:#eaf6ee}.atlas-modern .client-visit-tabs a:nth-child(5){--tab-color:#b28a2f;--tab-bg:#fcf6e6}.atlas-modern .client-visit-tabs a[aria-selected=true]{transform:none;background:#fff;border-top:5px solid var(--tab-color);border-bottom-color:#fff;position:relative;z-index:2;box-shadow:0 -4px 10px #18344b0b}.atlas-modern .client-visit-tabs a span{font-size:10px;color:var(--tab-color);background:transparent;padding:0}.atlas-modern .client-visit-tabs a strong{font-size:13px}.atlas-modern .client-visit-tabs a small{font-size:10px;display:block}.atlas-modern #visit-form .diagnostic-steps{margin-top:0;gap:0;border:1px solid #dbe5ed;background:#fff;border-radius:0 0 16px 16px;padding:20px;box-shadow:0 8px 22px #18344b08}.atlas-modern #visit-form .diagnostic-section{box-shadow:none;border:0;margin:0;padding:14px 0}.atlas-modern #visit-form [data-visit-panel][hidden]{display:none!important}.binder-sheet-heading h2{font-size:24px!important;margin:6px 0}.binder-sheet-heading p,.binder-edit-heading p{font-size:12px;color:#6b7e8d}.binder-saved-state{background:#f5f8fa;border:1px solid #e0e8ef;border-radius:12px;padding:18px;margin:20px 0}.binder-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.binder-summary-grid article{background:#fff;border:1px solid #e3eaf0;border-radius:10px;padding:14px}.binder-summary-grid h3{margin:0 0 10px;font-size:14px}.binder-summary-grid p{font-size:13px;margin:6px 0;white-space:pre-wrap}.binder-pattern{display:inline-block;background:#e9effa;border-radius:8px;padding:5px 8px;margin:4px;font-size:12px}.binder-change{display:inline-block;background:#edf1f5;padding:6px 10px;border-radius:10px;font-size:13px}.binder-change.better{background:#e4f5e9;color:#28683f}.binder-change.worse{background:#fce9e5;color:#a24936}.binder-edit-heading{border-top:1px solid #dce5ed;padding-top:10px}.binder-edit-heading h3{font-size:17px;margin:12px 0}.binder-summary .client-pattern-conclusion{margin-top:12px}.binder-summary .client-followup-content{padding:0}.binder-summary .herb-followup{margin-top:16px}.client-visit-toolbar{margin-bottom:0}@media(max-width:1100px){.atlas-modern .client-workspace{grid-template-columns:1fr}.atlas-modern .client-herb-rail{grid-column:1;grid-row:2;position:static;max-height:none}.atlas-modern .clinical-workspace{grid-column:1;grid-row:1}.binder-extra-record{grid-row:3}.atlas-modern .client-visit-tabs a{min-height:65px}.atlas-modern .client-visit-tabs a small{display:none}}@media(max-width:600px){.atlas-modern #visit-form .diagnostic-steps{padding:12px}.binder-summary-grid{grid-template-columns:1fr}.atlas-modern .client-visit-tabs{gap:2px}.atlas-modern .client-visit-tabs a{padding:9px 5px;min-height:60px}.atlas-modern .client-visit-tabs a strong{font-size:11px}.atlas-modern .binder-extra-record .client-record-rail{display:block}.binder-saved-state{padding:12px}}
.client-demographics>summary{cursor:pointer;font-size:13px;color:#47677e}.client-demographics>section{margin-top:18px}.binder-treatment-details{border:1px solid #dce7e1;border-radius:12px;margin:8px 0;padding:14px;background:#fff}.binder-treatment-details>summary{font-size:16px;font-weight:600;color:#37664e;cursor:pointer}.binder-treatment-details[open]>summary{margin-bottom:18px}
.binder-summary .diagnostic-number,.binder-treatment-details .diagnostic-number{display:none}.atlas-modern .client-visit-tabs{scroll-margin-top:100px}.binder-summary-grid article p:empty::after{content:"Zatím nezaznamenáno."}
.atlas-modern .client-workspace{display:block;max-width:1180px;margin:0 auto}.atlas-modern .clinical-workspace{width:100%}.atlas-modern .client-heading{max-width:1180px;margin:0 auto 16px!important;box-shadow:none!important;border:0;background:transparent!important;padding:15px 0!important}.atlas-modern .client-heading h2{font-size:29px!important;letter-spacing:-.6px}.atlas-modern .client-heading h2 small{font-size:12px;font-weight:400}.atlas-modern .client-heading-links{gap:13px}.client-heading-links a{font-size:11px}.atlas-modern .client-demographics{max-width:1180px;margin:0 auto 15px!important;padding:10px 14px!important;background:transparent!important;box-shadow:none!important;border-color:#e0e7eb}.atlas-modern .client-visit-toolbar{background:transparent;border:0;border-radius:0;padding:0 0 8px;justify-content:flex-end}.client-visit-toolbar>div{display:none}.client-visit-toolbar label{font-size:10px;display:flex;align-items:center;gap:8px;max-width:none;color:#83969e}.client-visit-toolbar input{margin:0;padding:6px 9px;font-size:11px;width:140px;background:transparent;border-color:#e1e8ec}.atlas-modern .client-visit-tabs{display:flex!important;gap:5px;padding:0;margin:10px 0 0;align-items:flex-end;overflow-x:auto}.atlas-modern .client-visit-tabs a,.atlas-modern .client-visit-tabs a[aria-selected=true]{min-height:0;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;background:#eaf0f2;box-shadow:none;transform:none;padding:17px 27px 14px;color:#6b838d;position:relative;flex:0 0 auto}.atlas-modern .client-visit-tabs a:before{content:"";position:absolute;left:18px;right:18px;top:0;height:3px;background:var(--tab-color);border-radius:3px}.atlas-modern .client-visit-tabs a[aria-selected=true]{border-color:#dce5e9;background:#fff;color:#315568;padding-top:21px;z-index:2;margin-bottom:-1px}.atlas-modern .client-visit-tabs a span,.atlas-modern .client-visit-tabs a small{display:none!important}.atlas-modern .client-visit-tabs a strong{font-size:12px;font-weight:400!important}.atlas-modern .client-visit-tabs a[aria-selected=true] strong{font-weight:600!important}.atlas-modern #visit-form .diagnostic-steps{padding:28px 34px;border:1px solid #dce5e9;border-radius:0 11px 11px 11px;box-shadow:0 6px 25px #29434d05;background:#fff}.atlas-modern #visit-form .clean-summary{padding:0;border:0;box-shadow:none}.clean-sheet-meta{display:flex;align-items:center;justify-content:space-between;color:#8c9da4;font-size:11px;margin-bottom:24px}.clean-sheet-meta button,.clean-section-heading button{border:0;background:transparent;color:#6d929f;font-size:11px;padding:0}.clean-diagnosis{border-bottom:1px solid #e7edef;padding-bottom:24px}.clean-diagnosis h2{font-size:24px!important;line-height:1.4;font-weight:500!important;letter-spacing:-.4px;margin:8px 0 12px!important}.clean-diagnosis .eyebrow{font-size:10px;color:#8b9fa6}.clean-diagnosis p,.clean-plan>p{font-size:13px;color:#748a94;line-height:1.75;margin:7px 0;overflow-wrap:anywhere}.clean-diagnosis .binder-pattern{background:#f0f4f8;border-radius:4px;font-size:11px;margin:0 5px 8px 0;padding:4px 8px;color:#6f86a1}.clean-plan{padding:23px 0;border-bottom:1px solid #e7edef}.clean-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.clean-section-heading h3,.clean-outcomes h3{font-size:15px;font-weight:600!important;margin:0}.atlas-modern .client-herb-rail{width:100%;padding:0!important;position:static!important;max-height:none!important;border:0!important;box-shadow:none!important;border-radius:0;background:transparent!important;overflow:visible;display:block!important;margin-top:17px}.client-herb-rail>h2,.client-herb-rail>p{display:none}.client-herb-rail #herb-saved-cards,.client-herb-rail #herb-live-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.atlas-modern .client-herb-rail small{grid-column:1/-1;color:#91a298!important;font-size:10px!important}.client-herb-rail #herb-saved-cards>small{display:none}.client-herb-rail #herb-saved-cards>a{font-size:11px;grid-column:1/-1;color:#789c87!important}.client-herb-rail #herb-live-cards:not(:empty){margin-bottom:15px}.atlas-modern .herb-bubble{margin:0;background:#eef6f0;border:1px solid #dceadf;border-radius:9px;padding:15px 32px 15px 17px}.herb-bubble strong{font-size:13px;color:#54785e}.herb-bubble p{font-size:11px;color:#7b9584;margin:6px 0;line-height:1.6}.clean-outcomes{display:grid;grid-template-columns:1fr 1fr;gap:35px;padding:24px 0;border-bottom:1px solid #e7edef}.clean-outcomes h3{margin-bottom:15px}.clean-outcomes p{font-size:12px;color:#85979e;line-height:1.7}.clean-outcomes b{font-weight:500;color:#527582}.clean-outcomes .binder-change{border-radius:20px;padding:6px 11px;font-size:11px}.clean-current-visit{margin-top:20px;padding-top:4px;scroll-margin-top:110px}.clean-current-visit>summary{font-size:12px;color:#688995;cursor:pointer}.clean-current-visit[open]>summary{margin-bottom:18px}.clean-current-visit .client-pattern-conclusion{background:#f8fafb;border-color:#e2e9ee}.binder-extra-record{margin-top:18px;background:transparent;border-color:#e2e8eb}.binder-extra-record>summary{font-size:12px;color:#82969e}.atlas-modern .binder-treatment-details{border-color:#e3eaed;box-shadow:none}.atlas-modern .client-visit-tabs{scroll-margin-top:100px}@media(max-width:900px){.atlas-modern #visit-form .diagnostic-steps{padding:22px}.atlas-modern .client-visit-tabs a,.atlas-modern .client-visit-tabs a[aria-selected=true]{padding:15px 20px}.atlas-modern .client-heading{display:block}.client-heading-links{margin-top:12px;justify-content:flex-start!important}}@media(max-width:600px){.atlas-modern #visit-form .diagnostic-steps{padding:18px 15px}.atlas-modern .client-visit-tabs{gap:3px}.atlas-modern .client-visit-tabs a,.atlas-modern .client-visit-tabs a[aria-selected=true]{padding:14px 10px}.atlas-modern .client-visit-tabs a strong{font-size:10px}.clean-outcomes,.client-herb-rail #herb-live-cards,.client-herb-rail #herb-saved-cards{grid-template-columns:1fr}.clean-outcomes{gap:16px}.clean-diagnosis h2{font-size:21px!important}.clean-sheet-meta{gap:10px;flex-wrap:wrap}.atlas-modern .client-heading h2{font-size:25px!important}}
.atlas-modern main.content:has(#visit-form)>header{display:none}.atlas-modern main.content:has(#visit-form){background:#f2f4f5}.atlas-modern #visit-form .diagnostic-steps>.clean-summary{padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}.atlas-modern .clean-sheet-meta button,.atlas-modern .clean-section-heading button{background:transparent!important;border:0!important;box-shadow:none!important;color:#688d9c!important;font-size:11px!important;font-weight:400!important;padding:0!important}.atlas-modern .client-visit-tabs{overflow-y:hidden;scrollbar-width:none}.atlas-modern .client-visit-tabs::-webkit-scrollbar{display:none}.atlas-modern .clean-summary .clean-diagnosis{border-bottom:1px solid #e7edef!important;background:transparent!important;padding:0 0 24px!important;border-radius:0!important;box-shadow:none!important}.atlas-modern .clean-summary .clean-plan{background:transparent!important;padding:23px 0!important;border:0!important;border-bottom:1px solid #e7edef!important;border-radius:0!important;box-shadow:none!important}
.atlas-modern main.content:has(#visit-form){max-width:none!important;padding:20px 28px!important}.atlas-modern main.content:has(#visit-form) .client-workspace,.atlas-modern main.content:has(#visit-form) .client-heading,.atlas-modern main.content:has(#visit-form) .client-demographics{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important}.atlas-modern .client-heading{padding:8px 0!important;margin-bottom:10px!important}.atlas-modern .client-demographics{margin-bottom:8px!important;padding:8px 12px!important}.atlas-modern .client-visit-toolbar{padding-bottom:3px}.atlas-modern .client-visit-tabs{margin-top:5px}.atlas-modern #visit-form .diagnostic-steps{padding:20px 24px}.clean-sheet-meta{margin-bottom:14px}.atlas-modern .clean-summary .clean-diagnosis{padding-bottom:15px!important}.atlas-modern .clean-summary .clean-plan{padding:16px 0!important}.clean-outcomes{padding:16px 0;gap:24px}.clean-diagnosis p,.clean-plan>p{font-size:14px;color:#617b87}.clean-outcomes p{font-size:13px}.clean-diagnosis h2{font-size:25px!important;margin:5px 0 8px!important}.clean-section-heading{margin-bottom:8px}.client-herb-rail #herb-saved-cards,.client-herb-rail #herb-live-cards{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.atlas-modern .herb-bubble{padding:12px 32px 12px 15px}.herb-bubble strong{font-size:14px}.herb-bubble p{font-size:13px}.clean-current-visit{margin-top:14px}.binder-extra-record{margin-top:12px}@media(max-width:650px){.atlas-modern main.content:has(#visit-form){padding:15px!important}.atlas-modern #visit-form .diagnostic-steps{padding:15px}.client-herb-rail #herb-saved-cards,.client-herb-rail #herb-live-cards{grid-template-columns:1fr}}
.client-herb-rail #herb-saved-cards:has(>.herb-bubble:only-of-type),.client-herb-rail #herb-live-cards:has(>.herb-bubble:only-of-type){grid-template-columns:1fr}
.clean-care-summary{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:16px 0;border-bottom:1px solid #e7edef}.clean-care-summary p,.clean-care-summary li{font-size:13px;line-height:1.65;color:#647e89}.clean-care-summary .clean-section-heading a{font-size:11px;color:#688d9c}.clean-food-list{padding-left:18px;margin:10px 0}.clean-food-list li{margin-bottom:7px}.clean-food-list span{display:block;font-size:12px;color:#83959c}.clean-point-list{display:flex;gap:8px;flex-wrap:wrap}.clean-point-list>span{background:#edf3f8;border-radius:6px;padding:7px 10px;font-size:12px;color:#53748d}.clean-point-list strong{margin-right:5px}@media(max-width:650px){.clean-care-summary{grid-template-columns:1fr;gap:16px}}
/* Mobile controls and tablet layout share one breakpoint. */
.mobile-client-actions{display:contents}.mobile-client-actions>summary,.mobile-chat-back{display:none}
@media(max-width:900px){
 .atlas-modern{display:block}.atlas-modern>aside{position:sticky;top:0;z-index:30;width:100%;height:auto;overflow:visible;padding:0}
 .atlas-modern>aside .mobile-bar{display:flex;padding:10px 15px;min-height:64px}.atlas-modern>aside .brand{padding:0;font-size:20px}.atlas-modern>aside small{display:none}
 .atlas-modern>aside .mobile-menu-toggle{display:flex;min-height:44px}.atlas-modern>aside #atlas-navigation{display:none;max-height:calc(100dvh - 70px);overflow:auto;padding:8px 15px;flex:initial}
 .atlas-modern>aside #atlas-navigation.is-open{display:flex}.atlas-primary-links{overflow:visible;flex:none}.atlas-account-links{margin-top:10px;padding-top:10px;flex:none;border-top:1px solid #ffffff24}
 .atlas-modern>aside .atlas-account-links form{display:block;padding:0;margin:6px 0}.atlas-modern>aside #atlas-navigation a{min-height:44px;font-size:14px!important}
 .atlas-modern main.content{margin:0;max-width:none;padding:16px!important}
 .atlas-modern .client-heading{position:sticky;top:64px;z-index:12;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:8px 0!important;background:#f2f4f5!important}
 .atlas-modern .client-heading h2{font-size:21px!important;line-height:1.2;overflow-wrap:anywhere}.atlas-modern .client-heading h2 small{font-size:11px;margin-top:4px}
 .client-heading-links{display:contents!important}.atlas-modern #client-save-all{order:0;min-height:44px;padding:10px 14px;font-size:14px}.client-heading-links #client-save-all-status{display:none}
 .mobile-client-actions{display:block;position:relative}.mobile-client-actions>summary{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid #d4e0e7;background:white;border-radius:8px;font-size:24px;cursor:pointer;list-style:none}.mobile-client-actions>summary::-webkit-details-marker{display:none}
 .mobile-client-actions[open]{position:absolute;right:0;top:8px;background:white;border:1px solid #dce5eb;border-radius:9px;padding:0 6px 6px;min-width:210px;z-index:15;box-shadow:0 5px 20px #243a4a20}.mobile-client-actions[open]>summary{margin-left:auto;width:44px;border:0}.mobile-client-actions>a{display:flex;align-items:center;min-height:44px;padding:9px 12px;font-size:14px!important}
 .client-heading>.saved-message{grid-column:1/-1;margin:0;padding:8px 10px;font-size:12px}.atlas-modern .client-demographics>summary{padding:10px 0;font-size:14px}
 .atlas-modern .client-visit-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;overflow:visible;margin:8px 0}.atlas-modern .client-visit-tabs a,.atlas-modern .client-visit-tabs a[aria-selected=true]{padding:13px 5px!important;min-height:44px;border:1px solid #dce5e9;border-radius:7px;margin:0;align-items:center;justify-content:center}.atlas-modern .client-visit-tabs a strong{font-size:12px!important}.atlas-modern .client-visit-tabs a:before{left:12px;right:12px}
 .atlas-modern input:not([type=checkbox]):not([type=radio]),.atlas-modern select,.atlas-modern textarea{font-size:16px!important;min-height:44px}.atlas-modern button,.atlas-modern .button,.atlas-modern .button-link{min-height:44px}
 .clean-sheet-meta button,.clean-section-heading button,.clean-section-heading a,.client-herb-rail #herb-saved-cards>a,.clean-current-visit>summary,.binder-extra-record>summary,.reminder-create>summary,.reminder-card a,.workday-grid a{display:inline-flex;align-items:center;min-height:44px;padding:10px 6px!important;font-size:13px!important}
 .clean-section-heading{gap:8px;flex-wrap:wrap}.clean-sheet-meta{gap:8px;flex-wrap:wrap}.clean-current-visit>summary,.binder-extra-record>summary{display:list-item;padding:12px 4px!important}.herb-bubble-remove,.formula-dose-remove{min-width:44px;min-height:44px}
 .clean-outcomes,.clean-care-summary{grid-template-columns:1fr!important;gap:14px}.visit-fields,.client-unified-profile .client-basics-fields{grid-template-columns:1fr!important}
 #atlas-chat{display:block;height:auto;min-height:0;max-height:none}#atlas-chat .atlas-chat-list{display:none}
 #atlas-chat .atlas-chat-pane{height:var(--mobile-chat-height,calc(100dvh - 240px));min-height:240px;padding:12px;gap:8px;overflow:hidden}
 #atlas-chat.chat-browsing .atlas-chat-list{display:block;max-height:calc(100dvh - 240px);overflow:auto}#atlas-chat.chat-browsing .atlas-chat-pane{display:none}
 #atlas-chat .atlas-chat-heading{display:grid;grid-template-columns:1fr auto;gap:6px}.mobile-chat-back{display:block;grid-column:1/-1;justify-self:start;font-size:13px;padding:8px 12px}
 #atlas-chat .atlas-chat-heading h2{font-size:17px}#atlas-chat .atlas-chat-heading p{font-size:11px;margin:0}#atlas-chat-messages{min-height:50px;overflow:auto;padding:6px}
 #atlas-chat-form{padding:0;margin:0}#atlas-chat-form label{font-size:12px;margin:0}#atlas-chat-text{min-height:48px!important;height:60px;max-height:100px;resize:vertical;margin-top:4px}
 #atlas-chat .atlas-chat-compose-actions small{display:none}#atlas-chat-threads{display:block}#atlas-chat .atlas-chat-thread{width:100%;min-height:50px;margin-bottom:7px}
 html.atlas-modal-open{overflow:hidden}.atlas-modern dialog.formula-catalog-dialog,.atlas-modern dialog.food-catalog-dialog,.atlas-modern dialog.formula-dose-dialog{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;inset:0;border:0!important;border-radius:0!important;padding:16px!important;overflow:auto}
 .atlas-modern .formula-catalog-choices,.atlas-modern .food-catalog-choices,#formula-choices,#food-choices{max-height:none!important;overflow:visible!important;grid-template-columns:1fr!important}
 .atlas-modern .formula-dialog-actions{position:sticky;bottom:-16px;margin:12px -16px -16px;padding:12px 16px;display:flex;flex-direction:column;align-items:stretch}.atlas-modern .formula-dialog-actions button{width:100%;min-height:48px}
 .atlas-modern .formula-dialog-heading,.atlas-modern .food-dialog-heading{position:sticky;top:-16px;background:#fff;z-index:2;padding:10px 0}
}
.mobile-calendar-month{display:contents}.mobile-calendar-month>summary{display:none}@media(max-width:900px){.mobile-calendar-month{display:block;margin:12px 0}.mobile-calendar-month>summary{display:list-item;min-height:44px;padding:12px;background:#edf3f8;border:1px solid #dae6ed;border-radius:8px;font-size:14px;cursor:pointer}.mobile-calendar-month[open]>.calendar-grid{margin-top:12px}.herb-followup-check,.client-reminder-enable{min-height:44px;padding:8px 0}.atlas-modern dialog.food-catalog-dialog #food-choices{overflow:visible!important;max-height:none!important}.atlas-modern dialog.formula-catalog-dialog .formula-catalog-choices{overflow:visible!important;max-height:none!important}}
@media(max-width:900px){.calendar-toolbar a,.workday-toolbar nav a,.home-week-nav a,.home-week-heading>a,.home-reminders .reminder-card a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;font-size:13px}.calendar-toolbar{gap:6px;flex-wrap:wrap}.calendar-toolbar h2{margin:0!important;font-size:18px!important}.atlas-modern main.content>header{margin-bottom:14px}.atlas-modern main.content>header h1{font-size:26px}.atlas-modern .panel.calendar-panel{padding:15px}.atlas-modern .herb-bubble button.secondary{min-height:44px}.atlas-modern .formula-catalog-dialog input[type=checkbox],.atlas-modern .food-catalog-dialog input[type=checkbox]{min-width:22px;min-height:22px}}
.face-study-layout{display:grid;grid-template-columns:minmax(280px,1fr) minmax(240px,.8fr);gap:28px;align-items:start}.face-study-layout figure{margin:0}.face-study-layout img{display:block;width:100%;max-width:620px;height:auto;border:1px solid #e2ebe7;border-radius:14px;background:#fff}.face-study-layout figcaption{font-size:11px;color:#84968b;margin-top:9px}.face-study-legend h3{margin-top:0}.face-study-legend li{margin:10px 0;font-size:14px;line-height:1.6}.face-study-legend .catalogue-muted{font-size:12px;line-height:1.7}@media(max-width:750px){.face-study-layout{grid-template-columns:1fr;gap:20px}.face-study-layout img{max-width:500px;margin:auto}}
.face-study-drawing{position:relative;width:100%;max-width:620px}.face-study-label{position:absolute;transform:translate(-50%,-50%);font-family:Arial,sans-serif;font-size:clamp(15px,2.4vw,26px);font-weight:600;color:#2d6149;line-height:1;white-space:nowrap;text-shadow:0 1px 2px #fff}.face-study-legend dl{margin:16px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.face-study-legend dl>div{padding:12px;background:#f0f6f2;border-radius:8px}.face-study-legend dt{font-weight:700;color:#38664e;font-size:15px}.face-study-legend dd{margin:5px 0 0;color:#687e71;font-size:13px}@media(max-width:750px){.face-study-drawing{margin:auto}.face-study-label{font-size:clamp(14px,4vw,22px)}}@media print{#face-study{break-inside:avoid}.face-study-layout{grid-template-columns:1fr 1fr}}
.face-study-pos-0{left:50%;top:21%}.face-study-pos-1{left:21%;top:26%}.face-study-pos-2{left:79%;top:26%}.face-study-pos-3{left:28%;top:43%}.face-study-pos-4{left:72%;top:43%}.face-study-pos-5{left:28%;top:51%}.face-study-pos-6{left:72%;top:51%}.face-study-pos-7{left:28%;top:58%}.face-study-pos-8{left:72%;top:58%}.face-study-pos-9{left:29%;top:65%}.face-study-pos-10{left:71%;top:65%}.face-study-pos-11{left:50%;top:54.5%}.face-study-pos-12{left:50%;top:61%}.face-study-pos-13{left:50%;top:72%}.face-study-pos-14{left:50%;top:81.5%}
#face-study{scroll-margin-top:84px}
#fatigue-study{scroll-margin-top:84px}.fatigue-flow{max-width:1000px;margin:24px auto}.fatigue-start{max-width:370px;margin:auto;background:#eaf2fa;border:2px solid #779dbd;border-radius:12px;text-align:center;padding:18px}.fatigue-start strong{display:block;font-size:22px;color:#315c7e}.fatigue-start span{display:block;margin-top:6px;font-size:14px;color:#718a9f}.fatigue-question{border:1px solid #c9d8e3;border-radius:9px;background:#f8fafc;padding:14px;text-align:center;font-size:16px;color:#3e617b}.fatigue-main-question{max-width:370px;margin:auto}.fatigue-arrow{text-align:center;font-size:25px;color:#9bb0bf;padding:6px}.fatigue-arrow span{font-size:12px;vertical-align:middle}.fatigue-branches{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-top:24px;align-items:start}.fatigue-lane{border:1px solid #e0e8ed;border-top:3px solid #8fabbc;border-radius:10px;padding:20px}.fatigue-lane h3{font-size:14px;margin:0 0 16px;text-align:center;color:#6d8593}.fatigue-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px;text-align:center}.fatigue-time-grid>div>span{font-size:12px;color:#738b7c}.fatigue-result{padding:15px 12px;border-radius:9px;text-align:center;font-weight:600;font-size:17px}.fatigue-green{background:#edf6ef;border:1px solid #bddbc5;color:#466f51}.fatigue-red{background:#fbefed;border:1px solid #e5c3bd;color:#9d5a50}.fatigue-subbranch{border-top:1px dashed #d6e1e8;padding-top:17px;margin-top:24px}.fatigue-subbranch>span{display:block;margin-bottom:12px;font-size:12px;color:#7d929e;text-align:center}.fatigue-uncertain{border:1px solid #e2d9eb;border-radius:10px;padding:16px;margin-top:22px;background:#faf7fc}.fatigue-uncertain>summary{cursor:pointer;min-height:44px;color:#7d698f;font-size:14px}.fatigue-uncertain p{font-size:13px}.fatigue-purple{max-width:430px;margin:auto;padding:14px;border:1px solid #d3c6df;border-radius:8px;background:#f2edf7;text-align:center;color:#7b628f}.fatigue-purple small{display:block;margin-top:6px;font-size:12px}.fatigue-uncertain .catalogue-muted{font-size:12px}@media(max-width:750px){.fatigue-branches{grid-template-columns:1fr;gap:18px}.fatigue-lane{padding:16px}.fatigue-question{font-size:16px}.fatigue-time-grid{grid-template-columns:1fr}.fatigue-result{font-size:16px}}@media print{.fatigue-uncertain{break-inside:avoid}.fatigue-lane{break-inside:avoid}}
.face-study-notes{border-top:1px solid #e1e9e5;padding-top:22px;margin-top:24px}.face-study-notes>h3{font-size:18px;margin:0 0 12px}.face-side-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.face-side-grid article{padding:18px;border:1px solid #d6e2e9;border-radius:12px;background:#eff5fa}.face-side-grid article:nth-child(2){background:#faf4e9;border-color:#e8dcc5}.face-side-tag{font-size:11px;color:#8193a0}.face-side-grid h4{font-size:15px;margin:9px 0}.face-side-grid strong{display:block;font-size:23px;font-weight:500;color:#547899}.face-side-grid article:nth-child(2) strong{color:#ad8a52}.face-side-grid p{font-size:13px;line-height:1.6;color:#788d98;margin-bottom:0}.face-additional-notes{padding:14px;border:1px solid #e1e9e5;border-radius:9px}.face-additional-notes>summary{min-height:44px;cursor:pointer;font-size:14px;color:#567565}.face-additional-notes dt{font-weight:600;font-size:13px;margin-top:14px}.face-additional-notes dd{margin:5px 0;font-size:13px;color:#7c9085}.face-study-notes .catalogue-muted{font-size:12px;line-height:1.65}@media(max-width:650px){.face-side-grid{grid-template-columns:1fr}}


.organ-clock-layout{display:grid;grid-template-columns:minmax(250px,420px) minmax(0,1fr);gap:28px;align-items:center}
.organ-clock-figure{margin:0;min-width:0}.organ-clock-figure svg{display:block;width:100%;height:auto;font-family:inherit;font-weight:400}.organ-clock-figure figcaption{font-size:.85rem;text-align:center;color:#586b79}
.organ-clock-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.organ-clock-card{border:1px solid #dce5eb;border-left:4px solid var(--organ-tone);border-radius:12px;padding:12px 14px;background:#f8fafc;min-width:0}.organ-clock-card h3{font-size:1rem;margin:5px 0;font-weight:400}.organ-clock-card span{color:var(--organ-tone)}.organ-clock-card small{display:block;color:#586b79}.organ-clock-tips{margin-top:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.organ-clock-tips h3{font-weight:400;font-size:1rem}.organ-clock-tips p{font-size:.92rem}
@media(max-width:900px){.organ-clock-layout{grid-template-columns:1fr}.organ-clock-figure{max-width:420px;width:100%;justify-self:center}}
@media(max-width:480px){.organ-clock-cards,.organ-clock-tips{grid-template-columns:1fr}}

.organ-clock-layout{grid-template-columns:minmax(220px,320px) minmax(0,1fr);align-items:start}.organ-clock-figure{width:100%;max-width:320px;justify-self:center}.organ-clock-figure svg{max-width:320px;width:100%;height:auto}.organ-clock-card[data-organ-element="Kov"]{--organ-tone:#64748b}.organ-clock-card[data-organ-element="Země"]{--organ-tone:#a67c25}.organ-clock-card[data-organ-element="Oheň"]{--organ-tone:#c35c62}.organ-clock-card[data-organ-element="Voda"]{--organ-tone:#3e79ac}.organ-clock-card[data-organ-element="Dřevo"]{--organ-tone:#408773}@media(max-width:900px){.organ-clock-layout{grid-template-columns:1fr}.organ-clock-figure{max-width:280px}.organ-clock-figure svg{max-width:280px}}
/* Energy Pentagram: colors follow the product packaging. */
[data-energy-color="green"]{--energy-accent:#3b8159;--energy-tint:#eef7ef;--energy-line:#b7d7bd}
[data-energy-color="pink"]{--energy-accent:#a84076;--energy-tint:#fbedf4;--energy-line:#e7b8ce}
[data-energy-color="yellow"]{--energy-accent:#806009;--energy-tint:#fff9df;--energy-line:#ead375}
[data-energy-color="red"]{--energy-accent:#bc174b;--energy-tint:#fff0f3;--energy-line:#eeadc0}
[data-energy-color="blue"]{--energy-accent:#087f9f;--energy-tint:#eaf8fc;--energy-line:#9ed8e6}
.energy-package-legend{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
.energy-package-legend span{display:inline-flex;align-items:center;gap:.45rem;padding:.4rem .7rem;border:1px solid var(--energy-line);border-radius:999px;background:var(--energy-tint);color:var(--energy-accent);font-size:.8rem;font-weight:600}
.energy-package-legend span::before{content:"";width:.65rem;height:.65rem;flex:none;border-radius:50%;background:var(--energy-accent)}
.energy-product[data-energy-color]:not([data-energy-color=""]){border:1px solid var(--energy-line);border-top:5px solid var(--energy-accent);background:linear-gradient(135deg,var(--energy-tint),#fff 85%)}
.energy-product[data-energy-color]:not([data-energy-color=""]) h3{color:var(--energy-accent)}
.energy-product[data-energy-color]:not([data-energy-color=""]) .energy-category{align-self:flex-start;color:var(--energy-accent);background:var(--energy-tint);border:1px solid var(--energy-line)}

/* Daily TCM course */
.daily-course-heading{display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.daily-course-heading h2{margin:.4rem 0}
.daily-course-progress{display:grid;gap:.65rem;min-width:210px}
.daily-course-progress progress{width:100%;height:.6rem;accent-color:#378877}
.daily-course-layout{display:grid;grid-template-columns:minmax(210px,280px) minmax(0,1fr);gap:1.5rem;margin-top:1.5rem;align-items:start}
.daily-course-list{min-width:0;border:1px solid #dae6ed;border-radius:12px;background:#f7fafc}
.daily-course-list summary{cursor:pointer;padding:1rem;font-weight:600;color:#28536b}
.daily-course-list ol{list-style:none;margin:0;padding:.3rem;max-height:680px;overflow:auto}
.daily-course-list a{display:flex;align-items:start;gap:.65rem;padding:.7rem;border-radius:8px;text-decoration:none;line-height:1.45;color:#38536b;font-size:.9rem;overflow-wrap:anywhere}
.daily-course-list a:hover{background:#edf4f8}
.daily-course-list a[aria-current="page"]{background:#e4f3ee;color:#1b6351;box-shadow:inset 3px 0 #378877}
.daily-course-list small{display:block;color:#397c68}
.daily-lesson-number{display:grid;place-items:center;flex:0 0 1.7rem;height:1.7rem;background:white;border:1px solid #d9e5e9;border-radius:50%;font-size:.8rem}
.daily-lesson-content{min-width:0;max-width:900px;line-height:1.8}
.daily-lesson-content header h3{font-size:1.6rem;line-height:1.3;margin:.4rem 0 1rem}
.daily-lesson-content h3,.daily-lesson-content h4,.daily-lesson-content h5{margin-top:1.6rem;color:#254c64}
.daily-lesson-content p{margin:.7rem 0}
.daily-lesson-rhythm{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:1.2rem}
.daily-lesson-rhythm span{font-size:.75rem;border-radius:999px;padding:.25rem .65rem;background:#edf4f8;color:#45667d}
.daily-lesson-table{max-width:100%;overflow:auto;margin:1rem 0}
.daily-lesson-table table{width:100%;border-collapse:collapse;font-size:.9rem}
.daily-lesson-table th,.daily-lesson-table td{text-align:left;padding:.65rem;border:1px solid #dce6ed;vertical-align:top}
.daily-lesson-table th{background:#eef5f8}
.daily-lesson-quiz{padding:1rem;border:1px solid #d9e8e2;background:#f5fbf7;border-radius:12px;margin:1.5rem 0}
.daily-lesson-quiz details{padding:.5rem .75rem;border-radius:8px;background:white;margin-bottom:.6rem}
.daily-lesson-quiz summary{cursor:pointer;color:#26725c}
.daily-lesson-footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;border-top:1px solid #e0e9ee;padding-top:1.2rem;margin-top:1.5rem}
.daily-lesson-footer form{margin:0}
.daily-lesson-footer nav{display:flex;gap:1rem;flex-wrap:wrap}
.daily-lesson-sources{margin-top:1.5rem;border-top:1px solid #e0e9ee;padding-top:1rem;font-size:.85rem}
.daily-lesson-sources summary{cursor:pointer}
@media(max-width:900px){.daily-course-layout{grid-template-columns:1fr}.daily-course-list ol{max-height:330px}.daily-course-heading{align-items:stretch;flex-direction:column}.daily-course-progress{min-width:0}.daily-lesson-content header h3{font-size:1.3rem}}
@media(max-width:480px){.daily-lesson-footer,.daily-lesson-footer form,.daily-lesson-footer button{width:100%}.daily-lesson-table{font-size:.8rem}.daily-lesson-quiz{padding:.75rem}}

.daily-lesson-content>header{display:block;position:static;padding:0;border:0;background:none;text-align:left}
.daily-course-progress>a{display:inline-block;background:#237caf;color:white;border-radius:8px;padding:.65rem .9rem;text-align:center;text-decoration:none;font-weight:600}

.daily-lesson-quiz fieldset{min-width:0;margin:1rem 0;padding:1rem;border:1px solid #cfded8;border-radius:10px;background:white}
.daily-lesson-quiz legend{font-weight:700;padding:0 .3rem;color:#254c64}
.daily-quiz-option{display:flex!important;align-items:flex-start;gap:.65rem;padding:.65rem;border:1px solid #dce5eb;border-radius:8px;margin:.5rem 0;cursor:pointer}
.daily-quiz-option input{width:1rem!important;height:1rem;flex:none;margin:.35rem 0 0;accent-color:#237caf}
.daily-quiz-option:has(input:checked){background:#edf6fc;border-color:#4993be}
.daily-quiz-reason{display:block;margin-top:1rem;font-size:.85rem}
.daily-quiz-reason textarea{width:100%;box-sizing:border-box}
.daily-lesson-quiz [data-result="correct"]{border-color:#358568}
.daily-lesson-quiz [data-result="incorrect"]{border-color:#b64b4b}
.daily-lesson-quiz [data-result="correct"] [data-quiz-feedback]{color:#21654c;font-weight:600}
.daily-lesson-quiz [data-result="incorrect"] [data-quiz-feedback]{color:#933232;font-weight:600}
.daily-quiz-controls{display:flex;gap:.7rem;flex-wrap:wrap}
[data-quiz-result]{font-weight:700}

/* Wan/Pian catalogue */
.wan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}
.wan-card{display:flex;flex-direction:column;margin:0!important;min-width:0;border-top:4px solid #418877}
.wan-card>header{display:flex;justify-content:space-between;align-items:center;position:static;padding:0;border:0;background:none;margin-bottom:.8rem}
.wan-code{font-weight:700;background:#e7f3ee;color:#246650;padding:.3rem .65rem;border-radius:7px}
.wan-card h2{font-size:1.15rem;line-height:1.5;margin:0 0 .35rem}
.wan-card h2 small{font-size:.9rem;color:#527382}
.wan-card h3{font-size:1.05rem;color:#25765f;margin:.2rem 0 1rem}
.wan-card p{line-height:1.65}
.wan-focus{border-top:1px solid #e2ece7;margin-top:.6rem;padding-top:.8rem}
.wan-focus h4{font-size:.9rem;margin:.2rem 0 .7rem}
.wan-focus ul{padding-left:1.2rem;margin:0 0 1rem;line-height:1.7}
.wan-focus li{margin:.4rem 0}
.wan-card-actions{margin-top:auto;display:grid;gap:1rem}
.wan-card-actions summary{cursor:pointer;font-weight:600;color:#1f6da2}
.wan-card-actions form{margin-top:1rem;padding:1rem;background:#f3f8fb;border-radius:8px}
.wan-filters{display:flex;align-items:end;flex-wrap:wrap;gap:1rem}
.wan-filters label:first-of-type{flex:1 1 260px}
.wan-filters label{flex:0 1 160px}
.wan-intro h2{margin:.4rem 0}
@media(max-width:780px){.wan-grid{grid-template-columns:1fr}.wan-filters label{flex:1 1 100%}.wan-filters button{width:100%}.wan-card h2{overflow-wrap:anywhere}}

.wan-grid.wan-grid-single{grid-template-columns:minmax(0,1fr)}
.wan-focus{max-width:85ch}

.pragon-card .formula-item-details{margin:0 0 1rem;border-top:1px solid #e2ece7;padding-top:.8rem}
.pragon-card .formula-item-details>summary{font-size:.85rem;cursor:pointer;line-height:1.6}
.pragon-card .formula-item-detail-grid{grid-template-columns:minmax(0,1fr);gap:.8rem;margin-top:1rem}
.pragon-card .formula-item-product{flex-wrap:wrap}
.pragon-card .wan-code{max-width:80%;overflow-wrap:anywhere;font-size:.8rem}


/* Nutrition matrix: one readable typeface and regular weight throughout. */
.atlas-modern .food-workspace,.atlas-modern .food-workspace *{font-family:Arial,Helvetica,sans-serif!important;font-weight:400!important}
.food-chart{margin:24px 0 28px;padding:24px 0;border-block:1px solid #dce7ec;color:#294651}
.food-chart h2{font-size:24px;margin:0 0 10px}.food-chart p{max-width:90ch;font-size:14px;line-height:1.65}
.food-source-notice{background:#f0f5f6;border-left:3px solid #78949b;padding:12px 16px;border-radius:6px}
.food-matrix-scroll{max-width:100%;overflow-x:auto;padding:4px 2px 10px}.food-matrix{table-layout:fixed;min-width:620px;border-collapse:separate;border-spacing:5px;margin:0}
.food-matrix caption{text-align:left;font-size:13px;color:#526c78;padding:10px 0}.food-matrix th,.food-matrix td{padding:0;border:0;vertical-align:middle;text-align:center}
.food-matrix th{background:transparent;padding:12px 4px;color:#37515e;font-size:14px}.food-matrix th:first-child{width:90px;text-align:left}
.food-matrix td{border-radius:8px;background:#f1f5f7}.food-matrix td.food-matrix-hot{background:#f9e8e1}.food-matrix td.food-matrix-warm{background:#faf1df}.food-matrix td.food-matrix-neutral{background:#f2f3e8}.food-matrix td.food-matrix-cool{background:#e9f3ec}.food-matrix td.food-matrix-cold{background:#e5f1f6}
.food-matrix a{display:flex;min-height:80px;align-items:center;justify-content:center;flex-direction:column;padding:10px 4px;border:2px solid transparent;border-radius:8px;color:#294651;text-decoration:none}.food-matrix a span{font-size:23px}.food-matrix a small{font-size:12px;margin-top:4px}.food-matrix a:hover,.food-matrix a[aria-current=true]{border-color:#416f80;background:#ffffff55}.food-workspace a:focus-visible,.food-workspace summary:focus-visible,.food-matrix-scroll:focus-visible{outline:3px solid #1c657c;outline-offset:3px}
.food-chart-legend{color:#58717c}.food-chart summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:14px}.food-provenance{padding:9px 12px;background:#f2f6f8;border-radius:6px;margin:8px 0}.food-provenance p{font-size:13px!important;margin:4px 0!important;line-height:1.5}.food-provenance .food-review-note{color:#80551e}.food-workspace .herb-filters{align-items:end;flex-wrap:wrap}.food-workspace .herb-filters label{min-width:160px}.food-workspace .formula-client-picker button,.food-workspace summary{min-height:44px}
@media(max-width:650px){.atlas-modern .food-workspace{padding:16px!important}.food-chart{padding-top:18px}.food-chart h2{font-size:21px}.food-workspace .herb-filters{display:grid;grid-template-columns:1fr}.food-workspace .herb-filters label{min-width:0}.food-matrix th:first-child{position:sticky;left:0;background:#fff;z-index:1}.food-matrix{min-width:590px}.food-matrix a{min-height:74px}.food-provenance{overflow-wrap:anywhere}}

.atlas-modern main.content .food-workspace,.atlas-modern main.content .food-workspace *,.atlas-modern #visit-nutrition *,.atlas-modern #food-dialog *,.atlas-modern #food-plan-dialog *{font-family:Arial,Helvetica,sans-serif!important;font-weight:400!important}
.atlas-modern .food-workspace .formula-item-header{background:#f3f7f8!important;color:#294651!important;border-bottom:1px solid #dce7ec}.atlas-modern .food-workspace .formula-item-header *{color:#294651!important}.atlas-modern .food-workspace .food-thermal-label{background:#fff!important;border:1px solid #bacfd7!important;color:#375766!important}.atlas-modern .food-workspace .formula-item{border:1px solid #dce7ec!important;border-left:3px solid #95b4be!important;box-shadow:none!important}


/* Energy: browse by product type, then scan compact rows. */
.atlas-modern main.content .energy-workspace,.atlas-modern main.content .energy-workspace *{font-family:Arial,Helvetica,sans-serif!important;font-weight:400!important;letter-spacing:normal!important}
.energy-workspace{width:100%;max-width:none;margin:0;color:#294652}.energy-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 24px}.energy-heading h2{font-size:28px!important;margin:5px 0 7px!important;color:#284b5c}.energy-heading p{margin:0;color:#6c828d;font-size:14px}.energy-heading .energy-kicker{font-size:11px;letter-spacing:1px!important;text-transform:uppercase}.energy-heading>a{font-size:13px;white-space:nowrap;color:#557889}
.atlas-modern .energy-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 22px;padding:0;background:transparent}.atlas-modern .energy-types>a{display:block;padding:18px 20px;background:#fff!important;border:1px solid #dce5e9;border-radius:10px;color:#3e5b68!important;text-decoration:none;box-shadow:none;min-height:88px}.atlas-modern .energy-types>a:hover{border-color:#88a8b5;background:#f7fafb!important}.atlas-modern .energy-types>a[aria-current=page]{background:#eaf2f5!important;border-color:#7da1af;box-shadow:inset 3px 0 #568697}.energy-type-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:16px}.energy-type-top small{font-size:12px;border-radius:20px;background:#f0f4f6;padding:3px 8px;color:#627c89}.energy-type-description{display:block;font-size:12px;color:#7a909b;margin-top:8px}
.energy-searchbar{display:grid;grid-template-columns:minmax(190px,1.2fr) minmax(190px,1fr) auto auto;align-items:end;gap:12px;background:#fff;border:1px solid #e0e8ec;border-radius:10px;padding:16px 18px;margin:0 0 26px}.energy-searchbar label{margin:0;font-size:12px;color:#687e89}.energy-searchbar input,.energy-searchbar select{min-height:44px;margin-top:7px;background:#fbfcfd!important;border:1px solid #dce5e9;border-radius:7px;padding:10px 12px;font-size:14px;color:#345563}.energy-searchbar button{min-height:44px;background:#47798b!important;border-radius:7px;font-size:13px;padding:10px 18px}.energy-searchbar>a{display:flex;align-items:center;min-height:44px;font-size:12px;color:#6b8592;white-space:nowrap}
.energy-results-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 4px}.energy-results-heading h3{font-size:20px!important;margin:0!important;color:#345563}.energy-results-heading h3 span{font-size:13px;color:#7c929d;margin-left:8px}.energy-results-heading>a{min-height:44px;display:flex;align-items:center;font-size:12px;color:#5e7e8d}.energy-result-status{font-size:12px;color:#80929a;margin:0 0 16px}
.energy-series{border:1px solid #e0e7eb;border-radius:10px;background:#fff;overflow:hidden;margin-bottom:18px}.energy-series h4{display:flex;gap:10px;align-items:center;background:#f6f9fa;border-bottom:1px solid #e5ecef;margin:0;padding:13px 18px;font-size:13px;color:#5c7885}.energy-series h4 span{color:#95a6ae;font-size:12px}.energy-product-list{display:grid;grid-template-columns:1fr 1fr}.energy-product-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 90px auto;align-items:center;gap:14px;padding:16px 18px;min-height:84px;border-bottom:1px solid #edf1f3}.energy-product-row:nth-child(odd){border-right:1px solid #edf1f3}.energy-product-row:hover{background:#f8fbfc}.energy-product-name{min-width:0}.energy-product-name h5{margin:0 0 5px!important;font-size:14px!important;line-height:1.4;color:#325968;overflow-wrap:anywhere}.energy-product-name small{font-size:11px;color:#91a1a9}.energy-row-pack{font-size:12px;color:#69818d}.energy-row-actions{display:flex;align-items:center;gap:12px}.energy-row-actions>a{font-size:12px;color:#6d8997;white-space:nowrap;min-height:44px;display:flex;align-items:center}.energy-row-actions button{background:#eff5f7!important;color:#3c6e80!important;border:1px solid #dce8ec;border-radius:7px;font-size:12px!important;white-space:nowrap;padding:10px 12px;min-height:44px;box-shadow:none!important}.energy-row-actions button:hover{background:#e4eff3!important;border-color:#a7c2ce}.energy-product-row[data-energy-color]:not([data-energy-color=""]):before{content:"";position:absolute;left:0;top:23px;width:3px;height:34px;border-radius:0 3px 3px 0;background:var(--energy-accent)}
.energy-source-info{font-size:12px;color:#7e929c;margin-top:22px}.energy-source-info summary{min-height:44px;cursor:pointer;padding:12px 0}.energy-source-info p{max-width:90ch}.energy-no-clients{font-size:13px;color:#728a96}.energy-empty{padding:28px;text-align:center;border:1px dashed #ccdae1;border-radius:10px;color:#6e8793}.energy-workspace a:focus-visible,.energy-workspace button:focus-visible,.energy-workspace summary:focus-visible{outline:3px solid #4c8ca4;outline-offset:3px}
@media(min-width:1650px){.atlas-modern .energy-types{grid-template-columns:repeat(6,minmax(0,1fr))}.atlas-modern .energy-types>a{padding:18px 14px}.energy-type-top{font-size:14px}}
@media(max-width:1100px){.energy-product-list{grid-template-columns:1fr}.energy-product-row:nth-child(odd){border-right:0}.energy-searchbar{grid-template-columns:1fr 1fr}.energy-searchbar>a{justify-content:center}.energy-heading{align-items:start}}
@media(max-width:650px){.energy-heading{display:block;margin-bottom:18px}.energy-heading h2{font-size:24px!important}.energy-heading>a{display:inline-flex;align-items:center;min-height:44px}.atlas-modern .energy-types{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}.atlas-modern .energy-types>a{padding:13px 12px;min-height:96px}.energy-type-top{font-size:13px;align-items:start}.energy-type-top small{font-size:11px;padding:2px 6px}.energy-type-description{font-size:11px;line-height:1.5;margin-top:7px}.energy-searchbar{padding:14px;gap:10px;margin-bottom:18px}.energy-searchbar label{grid-column:1/-1}.energy-searchbar input,.energy-searchbar select{width:100%;min-width:0}.energy-results-heading h3{font-size:17px!important}.energy-results-heading>a{font-size:11px}.energy-series h4{padding:12px 14px;font-size:12px}.energy-product-row{grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;padding:13px 14px;min-height:94px}.energy-product-name h5{font-size:14px!important}.energy-row-pack{grid-column:1;grid-row:2}.energy-row-actions{grid-column:2;grid-row:1/3;gap:4px;flex-direction:column}.energy-row-actions>a{min-height:28px;font-size:11px}.energy-row-actions button{padding:8px 10px;min-height:40px}.energy-product-row[data-energy-color]:not([data-energy-color=""]):before{top:18px;height:30px}.energy-workspace .energy-client-dialog{max-width:calc(100vw - 24px);padding:20px}.energy-dialog-actions{display:grid}.energy-dialog-actions button{width:100%;min-height:44px}}


.atlas-modern .treatment-catalog-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0 24px;padding:0;background:transparent}.atlas-modern .treatment-catalog-links a{display:flex;flex-direction:column;gap:8px;min-height:120px;padding:18px;background:#f7fafb!important;color:#3e6373!important;border:1px solid #dce7ec;border-radius:9px;text-decoration:none;font-weight:400!important}.treatment-catalog-links a>span:first-child{font-size:18px}.treatment-catalog-links small{font-size:12px;color:#8398a3}.treatment-catalog-links a>span:last-child{font-size:12px;margin-top:auto;color:#598799}.treatment-catalog-links a:hover{border-color:#80a7b7!important}.treatment-manual-picker{margin:14px 0}.treatment-manual-picker>summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:13px;color:#7e949f}
.treatment-catalog-dialog{width:min(1440px,96vw);max-width:96vw;height:92dvh;max-height:92dvh;border:1px solid #dbe6eb;border-radius:12px;padding:22px;background:#f7fafd;color:#345563;overflow:auto}.treatment-catalog-dialog,.treatment-catalog-dialog *{font-family:Arial,Helvetica,sans-serif!important;font-weight:400!important}.treatment-catalog-dialog::backdrop{background:#203e5580}.treatment-catalog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;position:sticky;top:-22px;background:#f7fafd;z-index:4;padding:14px 0;border-bottom:1px solid #dce7ec}.treatment-catalog-heading h2{font-size:20px;margin:0}.treatment-catalog-heading button{font-size:13px;min-height:44px;background:#47798b}.treatment-catalog-dialog [data-treatment-content]{padding-top:16px;min-height:200px}.treatment-catalog-dialog [data-treatment-content]>header{display:none}.treatment-catalog-dialog #treatment-catalog-status{font-size:13px;color:#708d9b}.treatment-catalog-dialog .energy-client-dialog{display:none}.treatment-catalog-dialog .treatment-catalog-add{background:#eaf3f6;color:#3d7184;border:1px solid #c7dce5;border-radius:7px;padding:10px 14px;min-height:44px;font-size:13px}.treatment-catalog-dialog .formula-item-product{flex-wrap:wrap;gap:12px}.treatment-catalog-dialog .wan-card-actions>.treatment-catalog-add{width:100%}.treatment-catalog-dialog a:focus-visible,.treatment-catalog-dialog button:focus-visible,.treatment-catalog-links a:focus-visible{outline:3px solid #528aa1;outline-offset:3px}
@media(max-width:900px){.atlas-modern .treatment-catalog-links{grid-template-columns:1fr 1fr}.treatment-catalog-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;inset:0;border:0;border-radius:0;padding:16px}.treatment-catalog-heading{top:-16px}.treatment-catalog-heading h2{font-size:17px}.treatment-catalog-heading button{padding:10px;font-size:12px}.treatment-catalog-dialog .energy-product-list{grid-template-columns:1fr}.treatment-catalog-dialog .energy-types{grid-template-columns:1fr 1fr}}
@media(max-width:450px){.atlas-modern .treatment-catalog-links a{padding:14px;min-height:120px}.treatment-catalog-links a>span:first-child{font-size:16px}.treatment-catalog-links small{line-height:1.5}.treatment-catalog-dialog .energy-searchbar{grid-template-columns:1fr}.treatment-catalog-dialog .energy-product-row{grid-template-columns:1fr auto}.treatment-catalog-dialog .energy-row-actions{grid-column:2;grid-row:1/3;flex-direction:column}}

/* Internal form controls remain available to the catalogue picker only. */
#formula-dialog-open[hidden],.treatment-manual-picker[hidden],#formula-selected-summary[hidden],#formula-selected-cards:empty{display:none!important}
.atlas-modern #client-formula-picker{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-height:0!important}

/* Atlas shared visual language (Energy) */
/* Shared Atlas visual language, based on the Energy catalogue. */
:root{--atlas-ink:#345563;--atlas-muted:#728996;--atlas-line:#dfe8ed;--atlas-surface:#fff;--atlas-canvas:#f5f8fa;--atlas-soft:#f0f5f7;--atlas-accent:#47798b;--atlas-radius:10px}

html body{background:var(--atlas-canvas);color:var(--atlas-ink)}
html body #atlas-app.app.atlas-modern.atlas-unified,html body #atlas-app.app.atlas-modern.atlas-unified *,.atlas-login .login,.atlas-login .login *{font-family:Arial,Helvetica,sans-serif!important;font-weight:400!important;letter-spacing:normal}
#atlas-app.atlas-unified{background:var(--atlas-canvas)!important}
#atlas-app.atlas-unified>main.content{width:100%;max-width:none!important;min-width:0;flex:1;padding:28px 34px!important;background:var(--atlas-canvas)!important}
#atlas-app.atlas-unified>main.content>header{padding:0 0 20px;margin:0 0 24px!important;border-bottom:1px solid var(--atlas-line);background:transparent!important;box-shadow:none!important}
#atlas-app.atlas-unified h1{font-size:28px!important;line-height:1.25;color:var(--atlas-ink)!important;margin:6px 0!important}
#atlas-app.atlas-unified h2{font-size:21px;line-height:1.35;color:var(--atlas-ink)}
#atlas-app.atlas-unified h3{font-size:17px;line-height:1.4;color:var(--atlas-ink)}
#atlas-app.atlas-unified h4{font-size:14px;line-height:1.45;color:var(--atlas-ink)}
#atlas-app.atlas-unified .eyebrow{font-size:11px!important;color:var(--atlas-muted)!important;letter-spacing:.7px!important}
#atlas-app.atlas-unified p{line-height:1.65}#atlas-app.atlas-unified a{color:var(--atlas-muted)}
#atlas-app.atlas-unified .catalogue-muted,#atlas-app.atlas-unified .catalogue-count{color:var(--atlas-muted)!important;font-size:12px;line-height:1.6}
#atlas-app.atlas-unified .panel,#atlas-app.atlas-unified .metric{background:var(--atlas-surface)!important;border:1px solid var(--atlas-line)!important;border-radius:var(--atlas-radius)!important;box-shadow:none!important;padding:22px}
#atlas-app.atlas-unified .panel .panel{box-shadow:none!important}
#atlas-app.atlas-unified .grid{gap:18px}
/* The left navigation keeps its layout and mobile controls. */
#atlas-app.atlas-unified>aside{background:var(--theme-nav)!important;background-image:none!important;box-shadow:none!important;border-right:1px solid var(--theme-nav)!important}
#atlas-app.atlas-unified>aside a,#atlas-app.atlas-unified>aside small{color:var(--theme-nav-text)!important}
#atlas-app.atlas-unified>aside .brand{color:var(--theme-nav-text)!important;font-size:22px!important}
#atlas-app.atlas-unified>aside #atlas-navigation a{border-radius:7px!important;font-size:13px!important;min-height:40px}
#atlas-app.atlas-unified>aside #atlas-navigation a.active{background:var(--atlas-accent)!important;color:var(--theme-nav-text)!important;box-shadow:inset 3px 0 var(--theme-nav-text)!important}
#atlas-app.atlas-unified>aside #atlas-navigation a:hover{background:var(--theme-nav-hover)!important}
#atlas-app.atlas-unified>aside button{background:var(--theme-nav-hover)!important;border:1px solid var(--theme-nav-hover)!important;box-shadow:none!important}
/* One control language across catalogues, records and scheduling. */
#atlas-app.atlas-unified label{font-size:13px;color:var(--atlas-muted)}
#atlas-app.atlas-unified input:not([type=checkbox]):not([type=radio]):not([type=hidden]),#atlas-app.atlas-unified select,#atlas-app.atlas-unified textarea{border:1px solid var(--atlas-line)!important;border-radius:7px!important;background:var(--atlas-surface)!important;box-shadow:none!important;color:var(--atlas-ink)!important;font-size:14px;min-height:44px;padding:10px 12px}
#atlas-app.atlas-unified textarea{line-height:1.6}
#atlas-app.atlas-unified input[type=checkbox],#atlas-app.atlas-unified input[type=radio]{accent-color:var(--atlas-accent);flex:none}
#atlas-app.atlas-unified input:focus,#atlas-app.atlas-unified select:focus,#atlas-app.atlas-unified textarea:focus{outline:2px solid var(--atlas-muted)!important;outline-offset:1px;border-color:var(--atlas-muted)!important}
#atlas-app.atlas-unified button,#atlas-app.atlas-unified .button,#atlas-app.atlas-unified .button-link{border-radius:7px!important;box-shadow:none!important;font-size:13px;line-height:1.4}
#atlas-app.atlas-unified main.content button[type=submit]:not(.secondary),#atlas-app.atlas-unified #client-save-all,#atlas-app.atlas-unified .button-link{background:var(--atlas-accent)!important;color:var(--theme-on-accent)!important}
#atlas-app.atlas-unified button.secondary,#atlas-app.atlas-unified .button.secondary{background:var(--atlas-soft)!important;color:var(--atlas-ink)!important;border:1px solid var(--atlas-line)!important}
#atlas-app.atlas-unified button:disabled{opacity:.55;cursor:not-allowed}
#atlas-app.atlas-unified .formula-dose-remove,#atlas-app.atlas-unified .herb-bubble-remove{background:transparent!important;color:var(--atlas-muted)!important}
#atlas-app.atlas-unified .quick-picks button{background:var(--atlas-soft)!important;color:var(--atlas-muted)!important;border:1px solid var(--atlas-line)!important}
#atlas-app.atlas-unified a:focus-visible,#atlas-app.atlas-unified button:focus-visible,#atlas-app.atlas-unified summary:focus-visible{outline:3px solid var(--atlas-muted)!important;outline-offset:3px}
#atlas-app.atlas-unified .herb-filters,#atlas-app.atlas-unified .energy-filters{padding:16px 18px!important;border:1px solid var(--atlas-line)!important;border-radius:10px!important;background:var(--atlas-surface)!important;box-shadow:none!important;gap:12px!important;align-items:end}
#atlas-app.atlas-unified .herb-filters label{font-size:12px!important;color:var(--atlas-muted)!important}
#atlas-app.atlas-unified .herb-filters button{min-height:44px;padding:10px 18px!important}
#atlas-app.atlas-unified .herb-filters>a{display:inline-flex;min-height:44px;align-items:center;font-size:12px}
/* Reusable category tiles and compact catalogue sections. */
#atlas-app.atlas-unified .atlas-catalog-shell{padding:0!important;border:0!important;background:transparent!important}
#atlas-app.atlas-unified .atlas-catalog-intro{margin:0 0 20px}
#atlas-app.atlas-unified .atlas-catalog-intro h2{font-size:24px!important;margin:0 0 7px}
#atlas-app.atlas-unified .atlas-catalog-intro p{font-size:13px;color:var(--atlas-muted);margin:0}
#atlas-app.atlas-unified .atlas-type-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:9px;margin:0 0 22px;padding:0;background:transparent}
#atlas-app.atlas-unified .atlas-type-nav a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;background:var(--atlas-surface)!important;border:1px solid var(--atlas-line);border-radius:9px;padding:14px 16px;color:var(--atlas-ink)!important;text-decoration:none;font-size:13px}
#atlas-app.atlas-unified .atlas-type-nav a small{font-size:11px;border-radius:15px;padding:3px 7px;background:var(--atlas-soft);color:var(--atlas-muted);white-space:nowrap}
#atlas-app.atlas-unified .atlas-type-nav a[aria-current=page]{background:var(--atlas-soft)!important;border-color:var(--atlas-muted);box-shadow:inset 3px 0 var(--atlas-muted)}
#atlas-app.atlas-unified .atlas-type-nav a:hover{border-color:var(--atlas-muted)}
#atlas-app.atlas-unified .atlas-list-section{background:var(--atlas-surface);border:1px solid var(--atlas-line);border-radius:10px;overflow:hidden;margin:0 0 18px}
#atlas-app.atlas-unified .atlas-list-section>h3{display:flex;justify-content:space-between;align-items:center;margin:0!important;padding:13px 18px;background:var(--atlas-soft);border-bottom:1px solid var(--atlas-line);font-size:13px!important;color:var(--atlas-muted)}
#atlas-app.atlas-unified .atlas-list-section>h3 small{font-size:12px;color:var(--atlas-muted)}
#atlas-app.atlas-unified .atlas-point-row{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:start;gap:22px;padding:16px 18px;min-height:70px;border-bottom:1px solid var(--atlas-soft)}
#atlas-app.atlas-unified .atlas-point-row:last-child{border-bottom:0}
#atlas-app.atlas-unified .atlas-point-row:hover{background:var(--atlas-soft)}
#atlas-app.atlas-unified .atlas-point-row h4{margin:0;font-size:14px!important;display:flex;align-items:center;gap:12px}
#atlas-app.atlas-unified .atlas-point-code{min-width:44px;padding:5px 7px;border:1px solid var(--atlas-line);border-radius:6px;background:var(--atlas-soft);text-align:center;color:var(--atlas-muted);font-size:12px}
#atlas-app.atlas-unified .atlas-point-row p{margin:2px 0 0;font-size:14px;color:var(--atlas-muted);line-height:1.6}
#atlas-app.atlas-unified .atlas-pattern-list{display:grid;gap:10px}
#atlas-app.atlas-unified .atlas-pattern{border:1px solid var(--atlas-line);border-radius:10px;background:var(--atlas-surface);overflow:hidden}
#atlas-app.atlas-unified .atlas-pattern>summary{display:grid;grid-template-columns:minmax(200px,1fr) minmax(180px,1.4fr) auto;gap:20px;align-items:center;cursor:pointer;list-style:none;padding:18px;min-height:82px}
#atlas-app.atlas-unified .atlas-pattern>summary::-webkit-details-marker{display:none}
#atlas-app.atlas-unified .atlas-pattern[open]>summary{background:var(--atlas-soft);border-bottom:1px solid var(--atlas-line)}
#atlas-app.atlas-unified .atlas-pattern-title{display:flex;flex-direction:column;gap:5px;font-size:15px;color:var(--atlas-ink)}
#atlas-app.atlas-unified .atlas-pattern-title small{font-size:11px;color:var(--atlas-muted)}
#atlas-app.atlas-unified .atlas-pattern-preview{font-size:13px;color:var(--atlas-muted);line-height:1.6}
#atlas-app.atlas-unified .atlas-pattern-toggle{font-size:12px;color:var(--atlas-muted);white-space:nowrap}
#atlas-app.atlas-unified .atlas-pattern-detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:20px}
#atlas-app.atlas-unified .atlas-pattern-detail h4{margin:0 0 8px;font-size:12px!important;color:var(--atlas-muted)}
#atlas-app.atlas-unified .atlas-pattern-detail p{font-size:13px;margin:0;color:var(--atlas-ink)}
#atlas-app.atlas-unified .atlas-pattern-detail .atlas-pattern-wide{grid-column:1/-1;border-top:1px solid var(--atlas-soft);padding-top:14px}
#atlas-app.atlas-unified .atlas-formula-links{display:flex;gap:9px;flex-wrap:wrap;margin:10px 0}
#atlas-app.atlas-unified .atlas-formula-links a{background:var(--atlas-soft);border:1px solid var(--atlas-line);border-radius:7px;padding:8px 10px;font-size:12px}
/* Calm card headers; colour is a marker rather than a filled panel. */
#atlas-app.atlas-unified .formula-directory .formula-item{background:var(--atlas-surface)!important;border:1px solid var(--atlas-line)!important;border-radius:10px!important;box-shadow:none!important;overflow:hidden}
#atlas-app.atlas-unified .formula-directory .formula-item .formula-item-header{background:var(--atlas-soft)!important;background-image:none!important;color:var(--atlas-ink)!important;padding:13px 18px!important;border-bottom:1px solid var(--atlas-line)!important;filter:none!important}
#atlas-app.atlas-unified .formula-directory .formula-item .formula-item-header *{color:var(--atlas-ink)!important;text-shadow:none!important}
#atlas-app.atlas-unified .formula-item-title h3{font-size:16px!important;line-height:1.4;margin:0!important}
#atlas-app.atlas-unified .formula-item-title>span,#atlas-app.atlas-unified .formula-item-meta{font-size:12px!important;color:var(--atlas-muted)!important}
#atlas-app.atlas-unified .formula-directory .formula-column-headings{display:none!important}
#atlas-app.atlas-unified .formula-item-body{background:var(--atlas-surface)!important;padding:14px 18px!important}
#atlas-app.atlas-unified .formula-item-overview{gap:18px!important;background:var(--atlas-surface)!important}
#atlas-app.atlas-unified .formula-item-overview .formula-item-field{background:transparent!important;border:0!important;padding:0!important}
#atlas-app.atlas-unified .formula-item-overview .formula-item-field p{font-size:13px!important;color:var(--atlas-muted)!important;line-height:1.65}
#atlas-app.atlas-unified .formula-item-overview .formula-item-field:before{display:block!important;font-size:11px!important;color:var(--atlas-muted)!important;margin-bottom:5px}
#atlas-app.atlas-unified .mushroom-directory .formula-item-overview .formula-item-field:nth-child(1):before{content:'Použití'}
#atlas-app.atlas-unified .mushroom-directory .formula-item-overview .formula-item-field:nth-child(2):before{content:'Popis'}
#atlas-app.atlas-unified .mushroom-directory .formula-item-overview .formula-item-field:nth-child(3):before{content:'Druh / složení'}
#atlas-app.atlas-unified .food-directory .formula-item-overview .formula-item-field:nth-child(1):before{content:'Termika'}
#atlas-app.atlas-unified .food-directory .formula-item-overview .formula-item-field:nth-child(2):before{content:'Chuť'}
#atlas-app.atlas-unified .food-directory .formula-item-overview .formula-item-field:nth-child(3):before{content:'Prvek / dráhy'}
#atlas-app.atlas-unified .formula-item-details{border-top:1px solid var(--atlas-soft)!important;margin-top:12px}
#atlas-app.atlas-unified .formula-item-details>summary,#atlas-app.atlas-unified .formula-client-picker>summary{font-size:12px!important;min-height:44px;padding:12px 0;color:var(--atlas-muted)!important;cursor:pointer}
#atlas-app.atlas-unified .food-directory .food-item{border-left:3px solid var(--atlas-muted)!important}
#atlas-app.atlas-unified .food-thermal-label{background:var(--atlas-surface)!important;border:1px solid var(--atlas-line)!important;color:var(--atlas-muted)!important;border-radius:6px!important}
#atlas-app.atlas-unified .food-source-pill{display:inline-block;font-size:11px;color:var(--atlas-muted);margin-top:8px}
#atlas-app.atlas-unified .wan-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
#atlas-app.atlas-unified .wan-grid-single{grid-template-columns:1fr!important}
#atlas-app.atlas-unified .wan-card{padding:20px!important;background:var(--atlas-surface)!important;border:1px solid var(--atlas-line)!important;border-radius:10px!important;box-shadow:none!important;border-top:1px solid var(--atlas-line)!important}
#atlas-app.atlas-unified .wan-card>header{background:transparent!important;border-bottom:1px solid var(--atlas-soft);padding:0 0 10px!important;margin:0 0 14px!important}
#atlas-app.atlas-unified .wan-card h2{font-size:19px!important;margin:10px 0 7px!important;color:var(--atlas-ink)!important}
#atlas-app.atlas-unified .wan-card h3{font-size:14px!important;color:var(--atlas-muted)!important;margin:0 0 9px!important}
#atlas-app.atlas-unified .wan-card p,#atlas-app.atlas-unified .wan-card li{font-size:13px;color:var(--atlas-muted)}
#atlas-app.atlas-unified .wan-code{background:var(--atlas-soft)!important;color:var(--atlas-muted)!important;border:1px solid var(--atlas-line)!important;border-radius:6px!important;font-size:12px!important;padding:5px 8px!important}
#atlas-app.atlas-unified .wan-focus{background:var(--atlas-soft)!important;border:1px solid var(--atlas-soft)!important;border-radius:7px;padding:12px 14px}
#atlas-app.atlas-unified .atlas-card-details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--atlas-muted);font-size:12px}
#atlas-app.atlas-unified .wan-card-actions{gap:12px!important;border-top:1px solid var(--atlas-soft)!important;padding-top:12px!important;margin-top:12px!important}
#atlas-app.atlas-unified .wan-card-actions summary{font-size:12px;min-height:44px;cursor:pointer;padding:12px 0;color:var(--atlas-muted)}
/* Shared records, home, calendar, study and account surfaces. */
#atlas-app.atlas-unified .client-workspace,#atlas-app.atlas-unified .client-heading,#atlas-app.atlas-unified .client-demographics{width:100%;max-width:none!important}
#atlas-app.atlas-unified .client-heading h2{font-size:26px!important}
#atlas-app.atlas-unified .client-heading-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px!important}
#atlas-app.atlas-unified #client-save-all{min-height:44px;font-size:14px!important;padding:10px 24px!important}
#atlas-app.atlas-unified .client-visit-tabs a,#atlas-app.atlas-unified .client-visit-tabs a[aria-selected=true]{background:var(--atlas-soft)!important;border-color:var(--atlas-line)!important;color:var(--atlas-muted)!important;border-radius:8px 8px 0 0!important;padding:15px 22px!important;box-shadow:none!important}
#atlas-app.atlas-unified .client-visit-tabs a[aria-selected=true]{background:var(--atlas-surface)!important;color:var(--atlas-ink)!important;border-bottom-color:var(--atlas-surface)!important}
#atlas-app.atlas-unified .client-visit-tabs a:before{background:var(--atlas-muted)!important;height:2px!important}
#atlas-app.atlas-unified .client-visit-tabs a[aria-selected=true]:before{background:var(--atlas-muted)!important}
#atlas-app.atlas-unified #visit-form .diagnostic-steps{border:1px solid var(--atlas-line)!important;border-radius:0 10px 10px 10px!important;box-shadow:none!important;padding:24px!important}
#atlas-app.atlas-unified .client-herbal-section,#atlas-app.atlas-unified .binder-treatment-details,#atlas-app.atlas-unified .client-followup-content{background:var(--atlas-surface)!important;border-color:var(--atlas-line)!important;box-shadow:none!important}
#atlas-app.atlas-unified .binder-treatment-details>summary{color:var(--atlas-muted)!important;font-size:14px;min-height:44px;padding:12px 0}
#atlas-app.atlas-unified .herb-bubble,#atlas-app.atlas-unified .product-entry,#atlas-app.atlas-unified .formula-selected-card,#atlas-app.atlas-unified .food-selected-card{background:var(--atlas-soft)!important;color:var(--atlas-ink)!important;border:1px solid var(--atlas-line)!important;border-radius:9px!important;box-shadow:none!important}
#atlas-app.atlas-unified .herb-bubble p{color:var(--atlas-muted)!important}
#atlas-app.atlas-unified .client-care-row,#atlas-app.atlas-unified .diagnostic-match{background:var(--atlas-soft)!important;border-color:var(--atlas-line)!important;border-radius:8px!important}
#atlas-app.atlas-unified .listrow{padding:16px 0;border-bottom:1px solid var(--atlas-soft);color:var(--atlas-ink)}
#atlas-app.atlas-unified .listrow:hover{background:var(--atlas-soft)}
#atlas-app.atlas-unified .metric strong,#atlas-app.atlas-unified .workday-metrics strong{font-size:28px!important;color:var(--atlas-accent)!important}
#atlas-app.atlas-unified .workday-metrics>div,#atlas-app.atlas-unified .home-week-day{background:var(--atlas-surface)!important;border:1px solid var(--atlas-line)!important;border-radius:9px!important;box-shadow:none!important}
#atlas-app.atlas-unified .home-week-day.is-today{border-color:var(--atlas-muted)!important;background:var(--atlas-soft)!important}
#atlas-app.atlas-unified .home-week-booking,#atlas-app.atlas-unified .calendar-appointment{background:var(--atlas-soft)!important;color:var(--atlas-ink)!important;border-radius:7px!important;box-shadow:none!important}
#atlas-app.atlas-unified .calendar-day{background:var(--atlas-surface)!important;border-color:var(--atlas-line)!important;border-radius:8px!important}
#atlas-app.atlas-unified .calendar-day.is-today{border-color:var(--atlas-muted)!important;background:var(--atlas-soft)!important}
#atlas-app.atlas-unified .calendar-day.is-outside{background:var(--atlas-soft)!important;color:var(--atlas-muted)!important}
#atlas-app.atlas-unified .workday-appointment{border-bottom:1px solid var(--atlas-soft)}
#atlas-app.atlas-unified .workday-toolbar nav a,#atlas-app.atlas-unified .calendar-toolbar a{background:var(--atlas-soft)!important;color:var(--atlas-muted)!important;border:1px solid var(--atlas-line);border-radius:7px}
#atlas-app.atlas-unified table th{background:var(--atlas-soft)!important;color:var(--atlas-muted)!important;font-size:12px!important;border-bottom:1px solid var(--atlas-line)!important}
#atlas-app.atlas-unified table td{font-size:13px;color:var(--atlas-muted);border-bottom:1px solid var(--atlas-soft)!important}
#atlas-app.atlas-unified .daily-course-list{background:var(--atlas-soft)!important;border-color:var(--atlas-line)!important}
#atlas-app.atlas-unified .daily-course-list a{border-color:var(--atlas-line)!important;color:var(--atlas-muted)!important;background:var(--atlas-surface)!important;border-radius:7px!important}
#atlas-app.atlas-unified .daily-course-list a.active{background:var(--atlas-soft)!important;border-color:var(--atlas-muted)!important;color:var(--atlas-ink)!important}
#atlas-app.atlas-unified .daily-lesson-number{background:var(--atlas-soft)!important;color:var(--atlas-muted)!important;border-radius:7px!important}
#atlas-app.atlas-unified .daily-course-progress,#atlas-app.atlas-unified .daily-lesson-rhythm,#atlas-app.atlas-unified .daily-lesson-quiz{background:var(--atlas-soft)!important;border-color:var(--atlas-line)!important;color:var(--atlas-muted)!important;border-radius:9px!important}
#atlas-app.atlas-unified .studyitem{background:var(--atlas-surface)!important;border-color:var(--atlas-line)!important;border-radius:9px!important}
#atlas-app.atlas-unified .account-avatar-empty{background:var(--atlas-soft)!important;color:var(--atlas-muted)!important}
#atlas-app.atlas-unified #atlas-chat{border-radius:10px!important;box-shadow:none!important}
#atlas-app.atlas-unified .atlas-chat-list,#atlas-app.atlas-unified .atlas-chat-heading{background:var(--atlas-soft)!important;border-color:var(--atlas-line)!important}
#atlas-app.atlas-unified .atlas-chat-compose-actions{gap:10px}
/* Preserve distinct error, success, overdue and cancellation states. */
#atlas-app.atlas-unified .error{background:#fff1ed!important;color:#985746!important;border:1px solid #edd7cf!important;border-radius:8px}
#atlas-app.atlas-unified .saved-message{background:#eef7f1!important;color:#54836c!important;border:1px solid #d3e7db!important;border-radius:8px}
#atlas-app.atlas-unified .notice{background:var(--atlas-soft)!important;border-color:var(--atlas-muted)!important;color:var(--atlas-muted)!important;border-radius:7px}
#atlas-app.atlas-unified .is-overdue,#atlas-app.atlas-unified .has-pending{border-color:#dfc4a7!important}
#atlas-app.atlas-unified .is-cancelled{opacity:.65}
.atlas-login .login{background:#fff!important;color:#345563!important;border:1px solid #dce7ed!important;border-radius:12px!important;box-shadow:0 12px 42px #28455715!important}
.atlas-login .login h1{font-size:25px!important;color:#345563!important}.atlas-login .login input{border:1px solid #d7e4eb!important;border-radius:7px!important;background:#fbfcfd!important;min-height:44px}.atlas-login .login button{background:#47798b!important;border-radius:7px!important;min-height:44px}.atlas-login .login .brand{color:#4b778b!important}
/* Mobile: lists stack; only matrices and calendars scroll within their region. */
@media(max-width:1100px){#atlas-app.atlas-unified .atlas-pattern>summary{grid-template-columns:minmax(180px,1fr) minmax(160px,1fr);gap:12px}#atlas-app.atlas-unified .atlas-pattern-toggle{grid-column:1/-1}#atlas-app.atlas-unified .atlas-type-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){#atlas-app.atlas-unified>main.content{padding:22px!important}#atlas-app.atlas-unified .atlas-point-row{grid-template-columns:180px minmax(0,1fr);gap:14px}#atlas-app.atlas-unified .atlas-pattern-detail{grid-template-columns:1fr 1fr}#atlas-app.atlas-unified .herb-filters{display:grid!important;grid-template-columns:1fr 1fr!important}#atlas-app.atlas-unified .herb-filters label{min-width:0!important}#atlas-app.atlas-unified .wan-grid{grid-template-columns:1fr!important}}
@media(max-width:650px){#atlas-app.atlas-unified>main.content{padding:16px!important}#atlas-app.atlas-unified>main.content>header{margin-bottom:18px!important;padding-bottom:14px}#atlas-app.atlas-unified h1{font-size:25px!important}#atlas-app.atlas-unified .panel{padding:16px}#atlas-app.atlas-unified .atlas-type-nav{grid-template-columns:1fr 1fr;gap:8px}#atlas-app.atlas-unified .atlas-type-nav a{padding:12px;min-height:60px;font-size:12px}#atlas-app.atlas-unified .atlas-point-row{grid-template-columns:1fr;gap:8px;padding:14px}#atlas-app.atlas-unified .atlas-point-row p{font-size:13px;margin:0}#atlas-app.atlas-unified .atlas-pattern>summary{grid-template-columns:1fr;gap:9px;padding:15px}#atlas-app.atlas-unified .atlas-pattern-toggle{grid-column:auto}#atlas-app.atlas-unified .atlas-pattern-detail{grid-template-columns:1fr;gap:16px;padding:16px}#atlas-app.atlas-unified .atlas-pattern-wide{grid-column:auto}#atlas-app.atlas-unified .herb-filters{grid-template-columns:1fr!important;padding:14px!important}#atlas-app.atlas-unified .herb-filters button{width:100%}#atlas-app.atlas-unified .formula-directory .formula-item .formula-item-header{padding:12px 14px!important}#atlas-app.atlas-unified .formula-item-body{padding:12px 14px!important}#atlas-app.atlas-unified .client-visit-tabs a,#atlas-app.atlas-unified .client-visit-tabs a[aria-selected=true]{padding:12px 7px!important;min-height:44px}#atlas-app.atlas-unified #visit-form .diagnostic-steps{padding:16px!important}#atlas-app.atlas-unified .client-heading h2{font-size:21px!important}#atlas-app.atlas-unified .client-heading-links{gap:6px!important}.atlas-login .login{padding:24px!important}}
@media(prefers-reduced-motion:reduce){#atlas-app.atlas-unified *{scroll-behavior:auto!important;transition:none!important}}
/* Long channel names must not push mobile categories outside their grid. */
#atlas-app.atlas-unified .atlas-type-nav a{min-width:0;white-space:normal!important}
#atlas-app.atlas-unified .atlas-type-nav a>span{min-width:0;overflow-wrap:anywhere}
#atlas-app.atlas-unified .atlas-type-nav a small{flex:none;color:var(--atlas-muted)!important}
#atlas-app.atlas-unified .atlas-catalog-intro h2{border:0!important;padding:0!important}
#atlas-app.atlas-unified main.content :is(small,.catalogue-muted,.catalogue-count,.eyebrow,.atlas-pattern-preview,.atlas-pattern-toggle){color:var(--atlas-muted)!important}
@media(max-width:650px){#atlas-app.atlas-unified .atlas-type-nav{display:grid!important;grid-auto-flow:column;grid-template-columns:none!important;grid-auto-columns:minmax(155px,190px);overflow-x:auto;max-width:100%;padding-bottom:7px;gap:8px}#atlas-app.atlas-unified .atlas-type-nav a{min-height:64px;align-items:center;white-space:normal!important}#atlas-app.atlas-unified .atlas-type-nav a small{font-size:12px}}
/* Wany, Maciocia and Pragon share the same compact catalogue row. */
#atlas-app.atlas-unified .wan-grid:has(>.atlas-catalog-record){grid-template-columns:1fr!important;gap:9px!important}
#atlas-app.atlas-unified .atlas-catalog-record{background:var(--atlas-surface);border:1px solid var(--atlas-line);border-radius:9px;overflow:hidden}
#atlas-app.atlas-unified .atlas-catalog-record>summary{display:grid;grid-template-columns:90px minmax(220px,1fr) minmax(200px,1.3fr) auto;gap:18px;align-items:center;padding:16px 18px;min-height:80px;cursor:pointer;list-style:none}
#atlas-app.atlas-unified .atlas-catalog-record>summary::-webkit-details-marker{display:none}
#atlas-app.atlas-unified .atlas-catalog-record[open]>summary{background:var(--atlas-soft);border-bottom:1px solid var(--atlas-line)}
#atlas-app.atlas-unified .atlas-record-code{color:var(--atlas-muted);background:var(--atlas-soft);border:1px solid var(--atlas-line);border-radius:6px;padding:6px 8px;font-size:12px;text-align:center;overflow-wrap:anywhere}
#atlas-app.atlas-unified .atlas-record-name{display:flex;flex-direction:column;gap:5px;font-size:14px;color:var(--atlas-ink);min-width:0;overflow-wrap:anywhere}
#atlas-app.atlas-unified .atlas-record-name small{font-size:12px;color:var(--atlas-muted)}
#atlas-app.atlas-unified .atlas-record-description{font-size:13px;color:var(--atlas-muted);line-height:1.6}
#atlas-app.atlas-unified .atlas-record-toggle{font-size:12px;color:var(--atlas-muted);white-space:nowrap}
#atlas-app.atlas-unified .atlas-record-body{padding:18px 20px;font-size:13px;color:var(--atlas-muted)}
#atlas-app.atlas-unified .atlas-record-body>p{margin:0 0 12px}
#atlas-app.atlas-unified .atlas-record-body .wan-card-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}
#atlas-app.atlas-unified .atlas-record-body .wan-focus{margin:8px 0 14px}
@media(max-width:1100px){#atlas-app.atlas-unified .atlas-catalog-record>summary{grid-template-columns:70px minmax(150px,1fr) auto;gap:12px}#atlas-app.atlas-unified .atlas-record-description{grid-column:2/4;grid-row:2}}
@media(max-width:650px){#atlas-app.atlas-unified .atlas-catalog-record>summary{grid-template-columns:64px minmax(0,1fr);gap:9px 12px;padding:14px}#atlas-app.atlas-unified .atlas-record-description{grid-column:1/-1;grid-row:auto}#atlas-app.atlas-unified .atlas-record-toggle{grid-column:1/-1}#atlas-app.atlas-unified .atlas-record-body{padding:15px}}

html[data-atlas-theme="classic"]{--theme-nav:#07366d;--theme-nav-text:#ffffff;--atlas-accent:#0072cc;--theme-on-accent:#ffffff;--atlas-canvas:#f1f7ff;--atlas-surface:#ffffff;--atlas-soft:#e5f1ff;--atlas-line:#bbd6ef;--atlas-border:#bbd6ef;--atlas-ink:#123d65;--atlas-muted:#486982;--theme-nav-hover:color-mix(in srgb,#07366d,#0078dc 25%);color-scheme:light}
html[data-atlas-theme="teal"]{--theme-nav:#064957;--theme-nav-text:#ffffff;--atlas-accent:#007583;--theme-on-accent:#ffffff;--atlas-canvas:#effbfd;--atlas-surface:#ffffff;--atlas-soft:#dff4f6;--atlas-line:#b7dfe5;--atlas-border:#b7dfe5;--atlas-ink:#124653;--atlas-muted:#426a74;--theme-nav-hover:color-mix(in srgb,#064957,#008b9d 25%);color-scheme:light}
html[data-atlas-theme="light"]{--theme-nav:#d9edff;--theme-nav-text:#103c65;--atlas-accent:#006fc4;--theme-on-accent:#ffffff;--atlas-canvas:#f4faff;--atlas-surface:#ffffff;--atlas-soft:#e9f4ff;--atlas-line:#c5dff4;--atlas-border:#c5dff4;--atlas-ink:#123e68;--atlas-muted:#476b88;--theme-nav-hover:color-mix(in srgb,#d9edff,#0088ed 25%);color-scheme:light}
html[data-atlas-theme="dark"]{--theme-nav:#002a34;--theme-nav-text:#d3ffff;--atlas-accent:#65e3de;--theme-on-accent:#002b34;--atlas-canvas:#00212a;--atlas-surface:#07333e;--atlas-soft:#0c414d;--atlas-line:#245968;--atlas-border:#245968;--atlas-ink:#d9ffff;--atlas-muted:#9bc6cf;--theme-nav-hover:color-mix(in srgb,#002a34,#65e3de 25%);color-scheme:dark}
html[data-atlas-theme="ocean"]{--theme-nav:#042c56;--theme-nav-text:#ffffff;--atlas-accent:#00769e;--theme-on-accent:#ffffff;--atlas-canvas:#effaff;--atlas-surface:#ffffff;--atlas-soft:#def4ff;--atlas-line:#b8dce9;--atlas-border:#b8dce9;--atlas-ink:#123c58;--atlas-muted:#436d83;--theme-nav-hover:color-mix(in srgb,#042c56,#0099d5 25%);color-scheme:light}
html[data-atlas-theme="turquoise"]{--theme-nav:#007b89;--theme-nav-text:#ffffff;--atlas-accent:#007983;--theme-on-accent:#ffffff;--atlas-canvas:#eefcfc;--atlas-surface:#ffffff;--atlas-soft:#dbf7f6;--atlas-line:#abe1e4;--atlas-border:#abe1e4;--atlas-ink:#064854;--atlas-muted:#376b74;--theme-nav-hover:color-mix(in srgb,#007b89,#00a6b4 25%);color-scheme:light}
html[data-atlas-theme="ice"]{--theme-nav:#c7ddef;--theme-nav-text:#153c5a;--atlas-accent:#326d9b;--theme-on-accent:#ffffff;--atlas-canvas:#f5f9fe;--atlas-surface:#ffffff;--atlas-soft:#e8f1fa;--atlas-line:#caddeb;--atlas-border:#caddeb;--atlas-ink:#294d6b;--atlas-muted:#4e6e88;--theme-nav-hover:color-mix(in srgb,#c7ddef,#438bc3 25%);color-scheme:light}
html[data-atlas-theme="indigo"]{--theme-nav:#242b79;--theme-nav-text:#ffffff;--atlas-accent:#6159da;--theme-on-accent:#ffffff;--atlas-canvas:#f5f4ff;--atlas-surface:#ffffff;--atlas-soft:#eeecff;--atlas-line:#d3d0ef;--atlas-border:#d3d0ef;--atlas-ink:#30316d;--atlas-muted:#65658b;--theme-nav-hover:color-mix(in srgb,#242b79,#6159da 25%);color-scheme:light}
/* Eight direct theme controls, always reachable without opening a menu. */
#atlas-app.atlas-unified .atlas-theme-switcher{position:fixed;right:16px;top:10px;z-index:45;display:flex;gap:5px;padding:6px;background:var(--atlas-surface);border:1px solid var(--atlas-line);border-radius:9px;box-shadow:0 2px 12px #0002}
#atlas-app.atlas-unified .atlas-theme-swatch{width:25px;height:25px;min-height:25px;padding:0;border:2px solid transparent;border-radius:5px;box-shadow:inset 0 0 0 1px #ffffff60!important}
#atlas-app.atlas-unified .atlas-theme-swatch[aria-pressed=true]{outline:2px solid var(--atlas-ink);outline-offset:1px}
#atlas-app.atlas-unified .atlas-theme-swatch[aria-pressed=true]:after{content:'✓';font-size:15px;font-weight:bold;color:white;text-shadow:0 1px 3px #000}
#atlas-app.atlas-unified>main.content>header{padding-top:42px!important}
#atlas-app.atlas-unified :is(.study-lesson-card,.visit-picker,.atlas-chat-messages,.atlas-chat-conversation,.atlas-chat-message,.diagnostic-question,.client-binder-summary,.client-summary-card){background:var(--atlas-surface)!important;color:var(--atlas-ink)!important;border-color:var(--atlas-line)!important}
#atlas-app.atlas-unified :is(.atlas-chat-message.is-own,.atlas-chat-contact,.diagnostic-question summary,.client-demographics,.client-care-summary){background:var(--atlas-soft)!important;color:var(--atlas-ink)!important;border-color:var(--atlas-line)!important}
#atlas-app.atlas-unified main.content{color:var(--atlas-ink)}
#atlas-app.atlas-unified main.content :is(h1,h2,h3,h4,dt,label){color:var(--atlas-ink)!important}
#atlas-app.atlas-unified main.content a{color:var(--atlas-accent)}
#atlas-app.atlas-unified>aside #atlas-navigation a.active{color:var(--theme-on-accent)!important}
#atlas-app#atlas-app.atlas-unified button.atlas-theme-swatch.theme-swatch-classic{background:#0078dc!important}
#atlas-app#atlas-app.atlas-unified button.atlas-theme-swatch.theme-swatch-teal{background:#008b9d!important}
#atlas-app#atlas-app.atlas-unified button.atlas-theme-swatch.theme-swatch-light{background:#0088ed!important}
#atlas-app#atlas-app.atlas-unified button.atlas-theme-swatch.theme-swatch-dark{background:#65e3de!important}
#atlas-app#atlas-app.atlas-unified button.atlas-theme-swatch.theme-swatch-ocean{background:#0099d5!important}
#atlas-app#atlas-app.atlas-unified button.atlas-theme-swatch.theme-swatch-turquoise{background:#00a6b4!important}
#atlas-app#atlas-app.atlas-unified button.atlas-theme-swatch.theme-swatch-ice{background:#438bc3!important}
#atlas-app#atlas-app.atlas-unified button.atlas-theme-swatch.theme-swatch-indigo{background:#6159da!important}
@media(max-width:650px){
#atlas-app.atlas-unified .atlas-theme-switcher{top:7px;right:8px;gap:4px;padding:5px}
#atlas-app.atlas-unified .atlas-theme-swatch{width:24px;height:28px;min-height:28px}
#atlas-app.atlas-unified>aside .mobile-bar{padding-top:53px}
#atlas-app.atlas-unified>main.content>header{padding-top:0!important}
}

/* Keep welcome text and its action readable in every selected palette. */
#atlas-app.atlas-unified main.content .dashboard-hero{background:var(--theme-nav)!important;border:1px solid var(--atlas-line);color:var(--theme-nav-text)!important}
#atlas-app.atlas-unified main.content .dashboard-hero :is(h2,p,.dashboard-overline){color:var(--theme-nav-text)!important}
#atlas-app.atlas-unified main.content .dashboard-hero a.dashboard-hero-action{background:var(--atlas-surface)!important;color:var(--atlas-ink)!important;border:1px solid var(--atlas-line)!important;font-weight:700!important}
#atlas-app.atlas-unified main.content .dashboard-hero a.dashboard-hero-action:hover{background:var(--atlas-soft)!important;color:var(--atlas-ink)!important;text-decoration:underline}

/* Quick access uses palette surfaces so labels keep their contrast. */
#atlas-app.atlas-unified main.content .dashboard-quick-grid>a{background:var(--atlas-soft)!important;color:var(--atlas-ink)!important;border:1px solid var(--atlas-line)!important;border-left:4px solid var(--atlas-accent)!important;box-shadow:none!important}
#atlas-app.atlas-unified main.content .dashboard-quick-grid>a :is(span,strong,small){color:var(--atlas-ink)!important;opacity:1!important}
#atlas-app.atlas-unified main.content .dashboard-quick-grid>a small{font-size:13px!important;line-height:1.5}
#atlas-app.atlas-unified main.content .dashboard-quick-grid>a:hover{background:var(--atlas-surface)!important;border-color:var(--atlas-accent)!important}

/* Appearance belongs to the overview, never above another page's controls. */
#atlas-app.atlas-unified .atlas-appearance{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:14px 18px;margin:0 0 20px;background:var(--atlas-surface);border:1px solid var(--atlas-line);border-radius:10px}
#atlas-app.atlas-unified .atlas-appearance h2{font-size:16px;margin:0}
#atlas-app.atlas-unified .atlas-theme-switcher{position:static;inset:auto;z-index:auto;flex-wrap:wrap;box-shadow:none;border:0;padding:4px;gap:9px}
#atlas-app.atlas-unified .atlas-theme-swatch{width:30px;height:30px;min-height:30px}
#atlas-app.atlas-unified>main.content>header{padding-top:0!important}
#atlas-app.atlas-unified>aside .mobile-bar{padding-top:12px}
/* Let client actions occupy real space and wrap instead of squeezing into borders. */
#atlas-app.atlas-unified .client-heading{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:18px 20px!important;position:static!important;background:var(--atlas-surface)!important}
#atlas-app.atlas-unified .client-heading>div{min-width:0}
#atlas-app.atlas-unified .client-heading h2{margin:0!important;line-height:1.4}
#atlas-app.atlas-unified .client-heading h2 small{display:block;margin-top:6px;line-height:1.5}
#atlas-app.atlas-unified .client-heading-links{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px 16px!important;margin:0!important;min-width:0}
#atlas-app.atlas-unified .client-heading-links a{display:inline-flex;align-items:center;min-height:38px;line-height:1.5;font-size:13px;white-space:normal;padding:6px 2px}
#atlas-app.atlas-unified .client-heading-links #client-save-all-status{font-size:12px;line-height:1.5;white-space:normal}
#atlas-app.atlas-unified .client-heading>.saved-message{flex-basis:100%}
#atlas-app.atlas-unified :is(.clean-sheet-meta,.clean-section-heading) :is(a,button){display:inline-flex;align-items:center;min-height:38px;padding:8px 12px!important;font-size:13px!important;line-height:1.5;white-space:normal;border-radius:7px}
@media(max-width:650px){#atlas-app.atlas-unified .client-heading{padding:14px!important;gap:12px}#atlas-app.atlas-unified .client-heading-links{width:100%;gap:8px 12px!important}#atlas-app.atlas-unified .atlas-appearance{padding:12px}#atlas-app.atlas-unified .atlas-theme-switcher{gap:8px}}

/* Print previews have their own light A4 layout, independent of the application palette. */
.print-profile-logo{display:block;max-width:220px;max-height:90px;object-fit:contain;margin:12px 0}
#atlas-app.atlas-unified .client-print-picker{padding:16px 20px!important}
.client-print-picker>summary{cursor:pointer;font-size:15px;min-height:32px;line-height:1.6}
.client-print-picker form{max-width:700px}
body.atlas-print-page{background:#edf0f3!important;color:#182e3c!important;font:15px/1.55 Arial,Helvetica,sans-serif}
.atlas-print-page .print-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 24px;margin:0;background:#fff;border-bottom:1px solid #cbd5dd;position:sticky;top:0;z-index:2}
.print-toolbar p{margin:0;flex:1;font-size:13px;min-width:200px}
.print-toolbar button{background:#174e6a;color:#fff;min-height:44px}
.print-document{width:210mm;max-width:100%;margin:24px auto;padding:18mm 17mm;background:#fff;color:#182e3c;box-shadow:0 4px 24px #122c4420;overflow-wrap:anywhere}
.print-letterhead{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:2px solid #294b60;padding-bottom:16px;margin-bottom:22px;font-size:12px}
.print-letterhead>div:last-child{text-align:right}
.print-letterhead strong{font-size:18px}
.print-logo{max-width:58mm;max-height:25mm;object-fit:contain;display:block}
.print-document h1{font-size:25px;line-height:1.3;margin:18px 0}
.print-document h2{font-size:18px;margin:24px 0 12px;line-height:1.4}
.print-document h3{font-size:14px;margin:12px 0 4px;line-height:1.5}
.print-document p{margin:4px 0 12px;line-height:1.6}
.print-client{padding:12px 0;border-bottom:1px solid #cbd5dd}
.print-client p{margin:4px 0;font-size:13px}
.print-item{padding:12px 0;border-bottom:1px solid #d6dde2}
.print-field p{white-space:normal}
.print-private{border:2px solid #333;padding:8px;font-weight:bold}
.print-next{margin-top:24px;padding:14px 0;border-top:2px solid #294b60;border-bottom:1px solid #294b60}
.print-next h2{margin:0;font-size:16px}
.print-signature{font-size:11px;padding-top:20px;color:#334d5d}
.print-client-message{margin-top:20px}
.print-client-message textarea{color:#182e3c;background:#fff;font-size:14px}
#print-message-output{white-space:pre-wrap;margin:12px 0}
.print-visit{margin-top:24px;border-top:2px solid #294b60}
@media(max-width:650px){.print-document{padding:20px;margin:12px 0}.print-letterhead{align-items:flex-start}.print-logo{max-width:110px}.print-toolbar{position:static!important}}
@page{size:A4;margin:17mm 16mm 22mm}
@media print{
 html:has(body.atlas-print-page),body.atlas-print-page{background:#fff!important;color:#000!important;font-size:10.5pt}
 .atlas-print-page .print-toolbar,.print-client-message label,.print-client-message textarea{display:none!important}
 .atlas-print-page .print-document{width:auto;max-width:none;margin:0;padding:0;box-shadow:none;color:#000}
 .print-document :is(h1,h2,h3){break-after:avoid;page-break-after:avoid}
 .print-letterhead,.print-next{break-inside:avoid;page-break-inside:avoid}
 .print-document p{orphans:3;widows:3}
 .print-document .print-signature{position:fixed;bottom:-16mm;left:0;right:0;padding:4mm 0 0;border-top:1px solid #bbb;background:#fff;color:#000;font-size:9pt}
 .print-document a{color:#000;text-decoration:none}
 .print-client-message:has(#print-message-output[hidden]){display:none}
 .print-document textarea{display:none!important}
}

.atlas-print-page .print-toolbar a{color:#174e6a!important;font-size:14px;padding:10px;border-radius:7px}.print-document>h2:first-of-type{display:none}

/* Reports are visible choices, separated from the clinical record. */
#atlas-app.atlas-unified .client-print-picker{background:color-mix(in srgb,var(--atlas-accent) 8%,var(--atlas-surface))!important;border:1px solid color-mix(in srgb,var(--atlas-accent) 40%,var(--atlas-line))!important;border-left:5px solid var(--atlas-accent)!important;padding:20px!important}
#atlas-app.atlas-unified .client-print-picker form{max-width:none}
#atlas-app.atlas-unified .print-picker-heading{display:flex;align-items:center;gap:12px}
#atlas-app.atlas-unified .print-picker-heading>span{font-size:30px;color:var(--atlas-accent)}
#atlas-app.atlas-unified .print-picker-heading h2{margin:0!important;font-size:20px!important}
#atlas-app.atlas-unified .print-picker-heading p{margin:4px 0 0;color:var(--atlas-ink)}
#atlas-app.atlas-unified .client-print-picker select{max-width:420px}
#atlas-app.atlas-unified .print-picker-hint{font-size:13px;line-height:1.6;color:var(--atlas-muted);margin:12px 0}
#atlas-app.atlas-unified .print-report-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
#atlas-app#atlas-app.atlas-unified button.print-report-option{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:9px;padding:16px!important;min-height:160px;white-space:normal;background:var(--atlas-surface)!important;color:var(--atlas-ink)!important;border:1px solid var(--atlas-line)!important;border-top:4px solid var(--report-marker)!important;border-radius:10px!important}
#atlas-app#atlas-app.atlas-unified button.print-report-option:hover{background:var(--atlas-soft)!important;border-color:var(--report-marker)!important}
#atlas-app#atlas-app.atlas-unified .print-report-option strong{font-size:15px;font-weight:700!important;line-height:1.4;color:var(--atlas-ink)}
#atlas-app#atlas-app.atlas-unified .print-report-option span{font-size:13px;font-weight:400;line-height:1.6;color:var(--atlas-ink)}
#atlas-app#atlas-app.atlas-unified .print-report-option em{font-style:normal;font-size:12px;line-height:1.5;margin-top:auto;color:var(--atlas-accent)}
.print-report-nutrition{--report-marker:#3f9a65}.print-report-herbs{--report-marker:#b28a35}.print-report-conclusion{--report-marker:#528ed0}.print-report-internal{--report-marker:#9571c1}
@media(max-width:1150px){#atlas-app.atlas-unified .print-report-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){#atlas-app.atlas-unified .print-report-options{grid-template-columns:1fr}#atlas-app#atlas-app.atlas-unified button.print-report-option{min-height:130px}#atlas-app.atlas-unified .client-print-picker{padding:14px!important}}

/* Palette-aware controls: a list item or a quiet action is not a primary submit button. */
#atlas-app.atlas-unified main.content button:not(.atlas-theme-swatch){min-height:40px;padding:9px 13px;line-height:1.5}
#atlas-app.atlas-unified main.content button:not([type=submit]):not(#client-save-all):not(.atlas-theme-swatch):not(.print-report-option){background:var(--atlas-soft)!important;color:var(--atlas-ink)!important;border:1px solid var(--atlas-line)!important}
#atlas-app.atlas-unified main.content button:not(.atlas-theme-swatch):not(.print-report-option) :is(strong,span,small){color:inherit!important}
#atlas-app.atlas-unified main.content button[type=submit]:not(.print-report-option) :is(strong,span,small){color:var(--theme-on-accent)!important}
#atlas-app.atlas-unified main.content button:disabled{opacity:.65}
#atlas-app.atlas-unified>aside button{color:var(--theme-nav-text)!important}
#atlas-app.atlas-unified :is(input,textarea)::placeholder{color:var(--atlas-muted)!important;opacity:1}
#atlas-app.atlas-unified main.content :is(label,legend,dt){color:var(--atlas-ink)!important}
#atlas-app.atlas-unified main.content :is(.button,.button-link){display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 13px;line-height:1.5}
#atlas-app.atlas-unified main.content .button:not(.secondary){background:var(--atlas-accent)!important;color:var(--theme-on-accent)!important}
#atlas-app.atlas-unified main.content :is(.button,.button-link) :is(small,span,strong){color:inherit!important}
/* Chat: readable thread previews, selected state, metadata and quiet edit actions. */
#atlas-app.atlas-unified #atlas-chat{padding:0!important;background:var(--atlas-surface)!important;color:var(--atlas-ink)!important}
#atlas-app.atlas-unified #atlas-chat .atlas-chat-pane{background:var(--atlas-surface);color:var(--atlas-ink)}
#atlas-app.atlas-unified #atlas-chat .atlas-chat-heading{padding:12px;border-radius:8px}
#atlas-app#atlas-app.atlas-unified #atlas-chat button.atlas-chat-thread{background:var(--atlas-surface)!important;color:var(--atlas-ink)!important;border:1px solid var(--atlas-line)!important;padding:13px!important;min-height:68px;line-height:1.5}
#atlas-app#atlas-app.atlas-unified #atlas-chat button.atlas-chat-thread.is-active{background:var(--atlas-soft)!important;border-color:var(--atlas-accent)!important;box-shadow:inset 3px 0 var(--atlas-accent)!important}
#atlas-app#atlas-app.atlas-unified #atlas-chat .atlas-chat-thread strong{color:var(--atlas-ink)!important;font-size:14px}
#atlas-app#atlas-app.atlas-unified #atlas-chat .atlas-chat-thread small{color:var(--atlas-muted)!important;font-size:12px;opacity:1}
#atlas-app.atlas-unified #atlas-chat :is(.atlas-chat-message-meta,.atlas-chat-message-meta time,.atlas-chat-heading p,.atlas-chat-compose-actions small,.is-deleted){color:var(--atlas-muted)!important}
#atlas-app.atlas-unified #atlas-chat .atlas-chat-message{background:var(--atlas-surface)!important;color:var(--atlas-ink)!important;border:1px solid var(--atlas-line)!important}
#atlas-app.atlas-unified #atlas-chat .atlas-chat-message.is-own{background:var(--atlas-soft)!important;color:var(--atlas-ink)!important}
#atlas-app#atlas-app.atlas-unified #atlas-chat .atlas-chat-message-actions button{min-height:36px;padding:7px 11px!important;font-size:12px;background:var(--atlas-surface)!important;color:var(--atlas-ink)!important;border:1px solid var(--atlas-line)!important}
#atlas-app.atlas-unified #atlas-chat .atlas-chat-unread{background:#b32635!important;color:#fff!important}
/* Remaining legacy components now share the same surface and text tokens. */
#atlas-app.atlas-unified :is(dialog,.formula-dialog-heading,.food-dialog-heading,.formula-dialog-actions,.energy-searchbar,.energy-series,.energy-types>a,.daily-lesson-quiz fieldset,.study-quiz-question,.study-lesson-card,.daily-lesson-quiz details,.reminder-card,.account-identity){background:var(--atlas-surface)!important;color:var(--atlas-ink)!important;border-color:var(--atlas-line)!important}
#atlas-app.atlas-unified :is(.energy-workspace,.food-workspace,.energy-type-description,.energy-row-pack,.energy-product-name h5,.energy-heading h2,.energy-results-heading h3,.energy-product-row,.energy-series h4,.daily-lesson-quiz legend,.study-quiz-question legend,.daily-quiz-option,.study-quiz-option){color:var(--atlas-ink)!important}
#atlas-app.atlas-unified :is(.energy-series h4,.energy-types>a[aria-current=page],.daily-quiz-option:has(input:checked),.study-quiz-option:has(input:checked),.food-provenance){background:var(--atlas-soft)!important;border-color:var(--atlas-accent)!important}
#atlas-app.atlas-unified :is(.energy-type-description,.energy-product-name small,.energy-row-pack,.energy-result-status,.energy-source-info,.energy-no-clients,.food-chart-legend,.calendar-day small,.home-week-day small,.workday-appointment small){color:var(--atlas-muted)!important}
#atlas-app.atlas-unified .energy-types>a{color:var(--atlas-ink)!important}
#atlas-app.atlas-unified :is(.energy-product-row:hover,.energy-types>a:hover){background:var(--atlas-soft)!important}
#atlas-app.atlas-unified :is(.reminder-card.is-overdue,.reminder-card.is-due){background:var(--atlas-soft)!important;color:var(--atlas-ink)!important}
#atlas-app.atlas-unified .reminder-card.is-overdue{border-left:4px solid #ce5b45!important}
#atlas-app.atlas-unified .reminder-card.is-due{border-left:4px solid #b38a25!important}
#atlas-app.atlas-unified :is(.food-matrix-warm,.food-matrix-hot,.food-matrix-neutral,.food-matrix-cool,.food-matrix-cold) a{color:#183e51!important}
#atlas-app.atlas-unified .daily-lesson-quiz [data-result=correct] [data-quiz-feedback]{color:var(--atlas-ink)!important;border-left:3px solid #358568;padding-left:10px}
#atlas-app.atlas-unified .daily-lesson-quiz [data-result=incorrect] [data-quiz-feedback]{color:var(--atlas-ink)!important;border-left:3px solid #b64b4b;padding-left:10px}

#atlas-app.atlas-unified .client-roster-row{align-items:center;gap:16px;padding:16px!important;min-height:76px;margin:8px 0;background:var(--atlas-surface)!important;border:1px solid var(--atlas-line)!important;border-radius:9px;color:var(--atlas-ink)!important}
#atlas-app.atlas-unified .client-roster-row:hover{background:var(--atlas-soft)!important;border-color:var(--atlas-accent)!important;text-decoration:none}
#atlas-app.atlas-unified .client-roster-row>div{min-width:0;overflow-wrap:anywhere}
#atlas-app.atlas-unified .client-roster-row strong{display:block;font-size:16px;line-height:1.5;font-weight:700!important;color:var(--atlas-ink)}
#atlas-app.atlas-unified .client-roster-row small{display:block;margin-top:4px;font-size:13px;color:var(--atlas-muted)!important;line-height:1.5}
#atlas-app.atlas-unified .client-roster-open{font-size:13px;color:var(--atlas-accent)!important;flex-shrink:0}
@media(max-width:550px){#atlas-app.atlas-unified .client-roster-row{flex-wrap:wrap;gap:8px}#atlas-app.atlas-unified .client-roster-open{margin-left:auto}}

/* A report tile is a light/neutral surface even though it submits the preview form. */
#atlas-app#atlas-app.atlas-unified #client-print-picker button.print-report-option :is(strong,span){color:var(--atlas-ink)!important;opacity:1!important}

/* Client food selection: names and traditional categories, source details kept separate. */
#atlas-app.atlas-unified dialog#food-dialog{width:min(960px,calc(100vw - 32px))!important;max-width:960px!important;max-height:90dvh!important;border-radius:12px!important;padding:22px!important}
#atlas-app.atlas-unified #food-dialog .food-picker-filters{display:grid;grid-template-columns:1.5fr 1fr;align-items:end;gap:16px}
#atlas-app.atlas-unified #food-dialog .food-picker-filters label{margin:0;font-size:14px}
#atlas-app.atlas-unified #food-dialog .food-dialog-heading h3{font-size:22px!important}
#atlas-app.atlas-unified #food-dialog #food-choices{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px;max-height:43dvh!important;overflow:auto!important;padding:4px}
#atlas-app.atlas-unified #food-dialog .food-choice{min-height:86px;margin:0!important;padding:14px!important;background:var(--atlas-surface)!important;color:var(--atlas-ink)!important;border:1px solid var(--atlas-line)!important;border-left:4px solid var(--food-accent)!important;align-items:center;gap:12px}
#atlas-app.atlas-unified #food-dialog .food-choice>span{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;width:100%}
#atlas-app.atlas-unified #food-dialog .food-choice strong{font-size:15px;font-weight:700!important;line-height:1.5;color:var(--atlas-ink)!important}
#atlas-app.atlas-unified #food-dialog .food-choice input{width:21px;height:21px;min-width:21px;margin:0}
#atlas-app.atlas-unified #food-dialog .food-choice .food-element{grid-column:1/-1;font-size:12px;color:var(--atlas-muted)!important}
#atlas-app.atlas-unified #food-dialog .food-choice:has(input:checked){background:var(--atlas-soft)!important;outline:2px solid var(--atlas-accent);outline-offset:-2px;box-shadow:none}
#atlas-app#atlas-app.atlas-unified .food-nature-pill{background:var(--food-tint,#f4f7f1)!important;color:#183e51!important;border:1px solid var(--food-accent,#73806a)!important;font-size:12px!important;line-height:1.5;padding:4px 9px;white-space:normal;opacity:1}
#atlas-app.atlas-unified .food-picker-about{font-size:12px;line-height:1.6;color:var(--atlas-muted);margin:12px 0}
#atlas-app.atlas-unified .food-picker-about summary{cursor:pointer;padding:5px 0}
#atlas-app.atlas-unified #food-dialog .formula-dialog-actions{gap:16px;align-items:center;padding-top:14px}
#atlas-app.atlas-unified #food-dialog #food-dialog-apply{min-height:44px;font-size:14px}
@media(max-width:650px){#atlas-app.atlas-unified dialog#food-dialog{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:16px!important}#atlas-app.atlas-unified #food-dialog .food-picker-filters{grid-template-columns:1fr;gap:12px}#atlas-app.atlas-unified #food-dialog #food-choices{grid-template-columns:1fr!important;max-height:none!important;overflow:visible!important}#atlas-app.atlas-unified #food-dialog .food-choice>span{grid-template-columns:minmax(0,1fr) auto}#atlas-app.atlas-unified #food-dialog .formula-dialog-actions{position:sticky;bottom:-16px;background:var(--atlas-surface);padding:12px 16px}}

/* Presence labels keep both text and a colour marker, in every palette. */
#atlas-app.atlas-unified #atlas-chat .atlas-presence{display:flex;align-items:center;gap:7px;margin-top:7px;font-size:12px;line-height:1.5;color:var(--atlas-muted)!important;white-space:normal}
#atlas-app.atlas-unified #atlas-chat .atlas-presence-dot{width:9px;height:9px;border-radius:50%;background:var(--atlas-muted);flex:none}
#atlas-app.atlas-unified #atlas-chat .atlas-presence.is-online{color:var(--atlas-ink)!important}
#atlas-app.atlas-unified #atlas-chat .atlas-presence.is-online .atlas-presence-dot{background:#279951;box-shadow:0 0 0 2px color-mix(in srgb,#279951 18%,var(--atlas-surface))}
#atlas-app.atlas-unified #atlas-chat .atlas-presence-count{margin:0 0 18px;padding:8px 10px;border:1px solid var(--atlas-line);border-radius:7px;background:var(--atlas-surface);color:var(--atlas-ink);font-size:13px}
#atlas-app#atlas-app.atlas-unified #atlas-chat button.atlas-chat-thread .atlas-presence{color:var(--atlas-muted)!important}
#atlas-app#atlas-app.atlas-unified #atlas-chat button.atlas-chat-thread .atlas-presence.is-online{color:var(--atlas-ink)!important}

#atlas-app.atlas-unified .atlas-install-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 24px;align-items:center;border-left:4px solid var(--atlas-accent)!important}
#atlas-app.atlas-unified .atlas-install-card[hidden]{display:none!important}
#atlas-app.atlas-unified .atlas-install-card h2{margin:0 0 8px}
#atlas-app.atlas-unified .atlas-install-card p{margin:6px 0;font-size:14px;color:var(--atlas-ink)}
#atlas-app.atlas-unified .atlas-install-card .catalogue-muted{font-size:12px}
#atlas-app#atlas-app.atlas-unified .atlas-install-card #atlas-install-button{background:var(--atlas-accent)!important;color:var(--theme-on-accent)!important;min-height:44px;padding:12px 18px}
#atlas-app.atlas-unified #atlas-install-help{grid-column:1/-1;color:var(--atlas-ink);font-size:13px;line-height:1.7}
#atlas-app.atlas-unified #atlas-install-help summary{cursor:pointer;min-height:32px}
#atlas-app.atlas-unified #atlas-install-status{max-width:290px;font-size:12px}
@media(max-width:650px){#atlas-app.atlas-unified .atlas-install-card{grid-template-columns:1fr}#atlas-app.atlas-unified #atlas-install-button{width:100%}}
@media(display-mode:standalone){body{overscroll-behavior-y:none}#atlas-app.atlas-unified .atlas-install-card{display:none!important}}

/* Installation is a distinct callout, with fixed high-contrast colours across palettes. */
#atlas-app#atlas-app.atlas-unified .atlas-install-card{background:#f0e8ff!important;border:1px solid #b69bdc!important;border-left:6px solid #7541b3!important;box-shadow:0 4px 16px #57308012!important}
#atlas-app#atlas-app.atlas-unified .atlas-install-card :is(h2,p,summary,li,strong,.catalogue-muted){color:#39205a!important}
#atlas-app#atlas-app.atlas-unified .atlas-install-card h2{font-weight:700!important}
#atlas-app#atlas-app.atlas-unified .atlas-install-card #atlas-install-button{background:#6732a5!important;color:#fff!important;border:1px solid #6732a5!important;font-weight:700!important}
#atlas-app#atlas-app.atlas-unified .atlas-install-card #atlas-install-button:hover{background:#512380!important}
#atlas-app#atlas-app.atlas-unified .atlas-install-card #atlas-install-button:focus-visible{outline:3px solid #39205a!important;outline-offset:3px}

/* Daily course: compact syllabus, clear reading and practice areas. */
#atlas-app.atlas-unified #daily-lessons{width:100%;max-width:none;margin:24px 0;background:transparent!important;border:0!important;padding:0!important}
#atlas-app.atlas-unified #daily-lessons .daily-course-heading{padding:24px 28px;background:var(--atlas-soft);border:1px solid var(--atlas-line);border-radius:14px;gap:24px}
#atlas-app.atlas-unified #daily-lessons .daily-course-heading h2{font-size:26px!important;font-weight:700!important;margin:5px 0 8px}
#atlas-app.atlas-unified #daily-lessons .daily-course-heading p{font-size:14px;margin:0;color:var(--atlas-muted);max-width:620px}
#atlas-app.atlas-unified #daily-lessons .daily-course-progress{background:transparent!important;border:0!important;min-width:230px;padding:0!important;gap:10px}
#atlas-app.atlas-unified #daily-lessons .daily-course-progress strong{color:var(--atlas-ink);font-size:14px}
#atlas-app.atlas-unified #daily-lessons progress{height:8px;border:0;border-radius:10px;overflow:hidden;accent-color:var(--atlas-accent)}
#atlas-app.atlas-unified #daily-lessons progress::-webkit-progress-bar{background:var(--atlas-line)}
#atlas-app.atlas-unified #daily-lessons progress::-webkit-progress-value{background:var(--atlas-accent)}
#atlas-app.atlas-unified #daily-lessons .daily-course-layout{grid-template-columns:250px minmax(0,1fr);gap:22px;margin-top:22px}
#atlas-app.atlas-unified #daily-lessons .daily-course-list{position:sticky;top:20px;background:var(--atlas-surface)!important;border:1px solid var(--atlas-line)!important;border-radius:12px;overflow:hidden;margin:0}
#atlas-app.atlas-unified #daily-lessons .daily-course-list summary{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:16px;font-size:14px;color:var(--atlas-ink);background:var(--atlas-soft);cursor:pointer}
#atlas-app.atlas-unified #daily-lessons .daily-course-list summary span{font-size:12px;color:var(--atlas-muted)}
#atlas-app.atlas-unified #daily-lessons .daily-course-list ol{max-height:65vh;min-height:0;padding:8px;scrollbar-width:thin}
#atlas-app.atlas-unified #daily-lessons .daily-course-list li{margin:0 0 4px}
#atlas-app.atlas-unified #daily-lessons .daily-course-list a{display:flex!important;gap:10px;align-items:center;min-height:48px;padding:10px!important;border:1px solid transparent!important;background:transparent!important;color:var(--atlas-ink)!important;font-size:13px;line-height:1.45}
#atlas-app.atlas-unified #daily-lessons .daily-course-list a[aria-current=page]{background:var(--atlas-soft)!important;border-color:var(--atlas-line)!important;box-shadow:inset 3px 0 var(--atlas-accent)}
#atlas-app.atlas-unified #daily-lessons .daily-course-list a:hover{background:var(--atlas-soft)!important;text-decoration:none}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-number{width:28px;height:28px;flex:0 0 28px;border-radius:8px!important;background:var(--atlas-soft)!important;color:var(--atlas-ink)!important;border:1px solid var(--atlas-line)}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-content{max-width:none;width:100%;min-width:0;container-type:inline-size}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-content>header{padding:22px 24px;background:var(--atlas-surface);border:1px solid var(--atlas-line);border-radius:12px;margin:0 0 14px}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-content>header h3{font-size:25px!important;font-weight:700!important;line-height:1.35;margin:8px 0 0!important;color:var(--atlas-ink)}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-rhythm{background:transparent!important;border:0!important;padding:0!important;gap:8px;margin:0 0 18px}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-rhythm span{background:var(--atlas-soft);color:var(--atlas-muted);border:1px solid var(--atlas-line);font-size:12px;padding:6px 10px}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-body{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
#atlas-app.atlas-unified #daily-lessons :is(.daily-lesson-reading,.daily-lesson-practice){min-width:0;padding:24px;background:var(--atlas-surface);border:1px solid var(--atlas-line);border-radius:12px;color:var(--atlas-ink)}
#atlas-app.atlas-unified #daily-lessons .daily-section-label{font-size:12px;font-weight:700!important;color:var(--atlas-accent);letter-spacing:.5px;padding-bottom:14px;border-bottom:1px solid var(--atlas-line);margin-bottom:18px}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-reading{font-size:15px;line-height:1.85}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-reading :is(h2,h3,h4,h5){font-size:18px!important;line-height:1.5;font-weight:700!important;margin:24px 0 10px!important}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-reading p{color:var(--atlas-ink);margin:10px 0 18px}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-reading strong{font-weight:700!important}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-quiz{background:transparent!important;border:0!important;padding:0!important;margin:0}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-quiz h4{font-size:19px!important;font-weight:700!important;margin:0 0 8px}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-quiz>p{font-size:13px;color:var(--atlas-muted)}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-quiz fieldset{padding:16px;margin:18px 0;background:var(--atlas-surface)!important;border:1px solid var(--atlas-line)!important;border-radius:10px}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-quiz legend{font-size:14px!important;line-height:1.6;font-weight:700!important;padding:0 6px;color:var(--atlas-ink)!important;max-width:100%}
#atlas-app.atlas-unified #daily-lessons .daily-quiz-option{padding:11px!important;line-height:1.6;margin:8px 0;background:var(--atlas-surface);border-color:var(--atlas-line);font-size:13px!important;color:var(--atlas-ink)!important}
#atlas-app.atlas-unified #daily-lessons .daily-quiz-option:has(input:checked){background:var(--atlas-soft)!important;border-color:var(--atlas-accent)}
#atlas-app.atlas-unified #daily-lessons .daily-quiz-reason{font-size:12px!important;margin-top:16px}
#atlas-app.atlas-unified #daily-lessons .daily-quiz-reason textarea{font-size:13px;min-height:70px}
#atlas-app.atlas-unified #daily-lessons .daily-quiz-controls{display:flex;flex-wrap:wrap;gap:10px}
#atlas-app.atlas-unified #daily-lessons .daily-atlas-link{display:inline-flex;align-items:center;min-height:44px;font-size:13px;margin:12px 0}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-footer{padding:16px 20px;margin-top:0;background:var(--atlas-surface);border:1px solid var(--atlas-line);border-radius:10px}
#atlas-app.atlas-unified #daily-lessons .daily-lesson-sources{color:var(--atlas-muted);border-color:var(--atlas-line);font-size:13px}
@container(min-width:1000px){#atlas-app.atlas-unified #daily-lessons .daily-lesson-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:1000px){#atlas-app.atlas-unified #daily-lessons .daily-course-layout{grid-template-columns:1fr}#atlas-app.atlas-unified #daily-lessons .daily-course-list{position:static}#atlas-app.atlas-unified #daily-lessons .daily-course-list ol{max-height:300px}}
@media(max-width:650px){#atlas-app.atlas-unified #daily-lessons .daily-course-heading{padding:18px;flex-direction:column;align-items:stretch}#atlas-app.atlas-unified #daily-lessons .daily-course-progress{min-width:0}#atlas-app.atlas-unified #daily-lessons .daily-course-layout{gap:14px;margin-top:14px}#atlas-app.atlas-unified #daily-lessons :is(.daily-lesson-reading,.daily-lesson-practice){padding:16px}#atlas-app.atlas-unified #daily-lessons .daily-lesson-content>header{padding:18px}#atlas-app.atlas-unified #daily-lessons .daily-lesson-content>header h3{font-size:22px!important}#atlas-app.atlas-unified #daily-lessons .daily-lesson-rhythm{display:none}}

/* Catalogue actions live inside a dialog rather than main.content. */
#atlas-app#atlas-app.atlas-unified .treatment-catalog-dialog button.treatment-catalog-add{background:var(--atlas-accent)!important;color:var(--theme-on-accent)!important;border:1px solid var(--atlas-accent)!important;min-height:44px;padding:11px 16px!important;line-height:1.5;font-size:14px!important;font-weight:700!important;white-space:normal}
#atlas-app#atlas-app.atlas-unified .treatment-catalog-dialog button.treatment-catalog-add :is(span,strong,small){color:inherit!important}
#atlas-app#atlas-app.atlas-unified .treatment-catalog-dialog button.treatment-catalog-add:hover{filter:brightness(.93)}
#atlas-app#atlas-app.atlas-unified .treatment-catalog-dialog [data-treatment-close]{background:var(--atlas-soft)!important;color:var(--atlas-ink)!important;border:1px solid var(--atlas-line)!important;min-height:44px;padding:10px 16px!important}

/* One SVG icon family for the overview, instead of platform-dependent emoji. */
#atlas-app.atlas-unified .atlas-dashboard-icon{display:block;width:26px;height:26px;flex:none;overflow:visible}
#atlas-app.atlas-unified :is(.metric-icon,.atlas-dashboard-symbol){display:grid;place-items:center;width:48px;height:48px;min-width:48px;border-radius:12px;background:var(--atlas-soft)!important;color:var(--atlas-accent)!important;border:1px solid var(--atlas-line);font-size:initial!important}
#atlas-app.atlas-unified .dashboard-metrics .metric-icon{margin-bottom:2px}
#atlas-app.atlas-unified .dashboard-quick-grid>a{display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto auto;gap:4px 14px;align-content:center;min-height:112px}
#atlas-app.atlas-unified .dashboard-quick-grid>a .atlas-dashboard-symbol{grid-column:1;grid-row:1/3}
#atlas-app.atlas-unified .dashboard-quick-grid>a strong{grid-column:2;grid-row:1;font-size:15px;font-weight:700!important;align-self:end}
#atlas-app.atlas-unified .dashboard-quick-grid>a small{grid-column:2;grid-row:2;line-height:1.5;align-self:start}
#atlas-app.atlas-unified .studyitem .atlas-dashboard-symbol{margin-bottom:6px}
@media(max-width:550px){#atlas-app.atlas-unified .dashboard-quick-grid{grid-template-columns:1fr}#atlas-app.atlas-unified .dashboard-quick-grid>a{min-height:94px}}

#atlas-app#atlas-app.atlas-unified .dashboard-quick-grid a .atlas-dashboard-symbol{color:var(--atlas-accent)!important}


/* Print report cards: softly illuminated colored top edge and responsive hover */
#atlas-app#atlas-app.atlas-unified button.print-report-option{
 --report-marker:#278bba;
 position:relative;
 overflow:hidden;
 isolation:isolate;
 background:linear-gradient(180deg,color-mix(in srgb,var(--report-marker) 12%,white) 0%,var(--atlas-surface) 56%)!important;
 border-top:4px solid var(--report-marker)!important;
 box-shadow:0 5px 18px color-mix(in srgb,var(--report-marker) 12%,transparent),inset 0 1px 0 rgba(255,255,255,.75)!important;
 transition:transform .22s ease,box-shadow .22s ease,background .22s ease,border-color .22s ease;
}
#atlas-app#atlas-app.atlas-unified button.print-report-option:hover,
#atlas-app#atlas-app.atlas-unified button.print-report-option:focus-visible{
 transform:translateY(-4px);
 background:linear-gradient(180deg,color-mix(in srgb,var(--report-marker) 20%,white),var(--atlas-surface) 68%)!important;
 border-color:var(--report-marker)!important;
 box-shadow:0 13px 30px color-mix(in srgb,var(--report-marker) 25%,transparent),0 3px 8px rgba(17,42,75,.08)!important;
}
#atlas-app#atlas-app.atlas-unified button.print-report-option:focus-visible{outline:2px solid var(--report-marker);outline-offset:3px}
#atlas-app#atlas-app.atlas-unified button.print-report-option[name="print"][value="questionnaire"]{--report-marker:#278bba}
@media(prefers-reduced-motion:reduce){#atlas-app#atlas-app.atlas-unified button.print-report-option{transition:none!important}#atlas-app#atlas-app.atlas-unified button.print-report-option:hover{transform:none}}


/* Approved Atlas landscape design, v1.9. Artwork is raster; controls stay live HTML. */
#atlas-app#atlas-app.atlas-unified>aside{background:linear-gradient(145deg,var(--atlas-surface),var(--atlas-soft))!important;color:var(--atlas-ink)!important;border-right:1px solid var(--atlas-line);box-shadow:none!important}
#atlas-app#atlas-app.atlas-unified>aside .brand,#atlas-app#atlas-app.atlas-unified>aside small{color:var(--atlas-ink)!important}
#atlas-app#atlas-app.atlas-unified>aside .brand{font-weight:400!important}
#atlas-app#atlas-app.atlas-unified>aside #atlas-navigation a{color:var(--atlas-ink)!important;gap:12px;padding:10px 12px;font-weight:400!important}
#atlas-app#atlas-app.atlas-unified>aside #atlas-navigation a.active{background:var(--atlas-accent)!important;color:var(--theme-on-accent)!important}
#atlas-app#atlas-app.atlas-unified>aside #atlas-navigation a:hover:not(.active){background:var(--atlas-soft)!important}
#atlas-app#atlas-app.atlas-unified>aside .ghost{background:var(--atlas-soft)!important;color:var(--atlas-ink)!important;border:1px solid var(--atlas-line)!important;font-weight:400!important}
#atlas-app#atlas-app.atlas-unified>aside #atlas-navigation .atlas-nav-sub{padding-left:46px;font-size:12px!important}
/* Keep the active Recipes submenu readable against the blue selection background. */
#atlas-app#atlas-app.atlas-unified>aside #atlas-navigation a.atlas-nav-sub.active{color:#fff!important;opacity:1!important}
#atlas-app .atlas-dashboard-icon{flex:none;display:block;width:22px;height:22px;overflow:visible}
#atlas-app .atlas-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content{padding:0 24px 24px!important;background:var(--atlas-canvas)!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:70px;padding:12px 0;margin:0}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-search{display:flex;align-items:center;flex:1;max-width:650px;min-width:0;border:1px solid var(--atlas-line);border-radius:24px;background:var(--atlas-surface);overflow:hidden;margin:0}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-search input{min-width:90px;flex:1;border:0!important;background:transparent!important;box-shadow:none!important;margin:0;padding:10px 18px;font-size:13px!important;height:42px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-search select{max-width:150px;width:auto;flex:none;border:0!important;border-left:1px solid var(--atlas-line)!important;border-radius:0;background:transparent!important;margin:0;padding:7px 8px;font-size:12px!important;min-height:32px}
#atlas-app#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-search button{display:grid;place-items:center;flex:none;background:transparent!important;border:0!important;color:var(--atlas-ink)!important;min-height:40px;width:44px;padding:8px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-search:focus-within{outline:2px solid var(--atlas-accent);outline-offset:2px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-appearance{margin:0;padding:0;background:none;border:0;flex:none}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-theme-switcher{gap:5px;padding:0;flex-wrap:nowrap}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-theme-swatch{width:23px;height:25px;min-height:25px;border-radius:5px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-toolbar-account{display:flex;align-items:center;gap:9px;white-space:nowrap;color:var(--atlas-ink);font-size:13px}
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header{position:relative;display:flex;align-items:center;min-height:215px;padding:30px 7%!important;margin:0 -24px!important;border:0!important;border-radius:0!important;background:linear-gradient(90deg,#f3f9fd22,transparent 65%),url("../index.php?asset=atlas-mountains-v19") center 53%/cover no-repeat!important;box-shadow:none!important;overflow:hidden}
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header:after{display:none!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header>div{position:relative;max-width:68%;padding:12px 20px;border-radius:12px;background:linear-gradient(90deg,#f6fbfed9,#f6fbfe66);color:#123d55}
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header h1{font:400 clamp(32px,3vw,46px)/1.15 Georgia,serif!important;color:#123d55!important;margin:5px 0 8px!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header .eyebrow{color:#426880!important;letter-spacing:.25em;font-weight:400!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-header-description{font-size:15px;line-height:1.5;margin:0;color:#123d55}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card{position:relative;display:grid;grid-template-columns:90px minmax(220px,1fr) minmax(210px,310px) auto;align-items:center;gap:8px 20px;min-height:170px;margin-top:0!important;margin-bottom:14px!important;padding:16px 22px!important;overflow:hidden;border:1px solid var(--atlas-line)!important;border-radius:12px!important;background:linear-gradient(110deg,var(--atlas-surface),var(--atlas-soft))!important;box-shadow:0 4px 16px #284a6810!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card:before{display:none!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-device-art{grid-column:1;grid-row:1/3;display:grid;place-items:center;align-self:center;width:85px;height:80px;color:#234e67}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-device-art svg{width:74px;height:74px;stroke-width:1.2}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card>div:nth-child(2){grid-column:2;grid-row:1;min-width:0}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card h2{font:400 26px/1.2 Georgia,serif!important;margin:0 0 8px!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card p{font-size:13px;line-height:1.55;margin:5px 0!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card p.catalogue-muted{font-size:12px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-devices{grid-column:3;grid-row:1/3;display:block;width:100%;height:145px;object-fit:contain;align-self:center}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-actions{grid-column:4;grid-row:1/3;align-self:center;max-width:210px}
#atlas-app#atlas-app#atlas-app.atlas-unified[data-page="home"] #atlas-install-button{background:#6943a4!important;color:white!important;border:1px solid #6943a4!important;font-weight:400!important;padding:14px 20px;min-height:50px;border-radius:9px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card>details{grid-column:2;grid-row:2;min-width:0;margin:0;font-size:12px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card>details[open]{grid-column:2/5}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card:has(details[open]) .atlas-install-devices,#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card:has(details[open]) .atlas-install-actions{grid-row:1}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card summary{color:var(--atlas-accent);cursor:pointer;min-height:30px;padding:5px 0}
#atlas-app#atlas-app.atlas-unified[data-page="home"] main.content .dashboard-hero{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:18px;min-height:130px;padding:20px 24px 20px clamp(165px,17vw,245px)!important;border:1px solid var(--atlas-line)!important;border-radius:12px!important;background:#e9f5fb url("../index.php?asset=atlas-tea-v19") left center/auto 100% no-repeat!important;box-shadow:none!important;color:#173e55!important;margin-bottom:14px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .dashboard-hero>div{flex:1;min-width:235px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] main.content .dashboard-hero :is(h2,p,.dashboard-overline){color:#173e55!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .dashboard-hero h2{font:400 27px/1.15 Georgia,serif!important;margin:5px 0!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .dashboard-hero p{font-size:13px;margin:5px 0;line-height:1.5}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .dashboard-overline{font-size:10px;letter-spacing:.14em;font-weight:400!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links{display:flex;justify-content:center;gap:18px;align-items:center;margin:0;flex:none}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:70px;font-size:11px;text-align:center;text-decoration:none;color:#173e55!important;padding:0}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a span{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#c7e7ff;color:#166da5;transition:transform .18s ease}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a:nth-child(2) span{background:#ccebd9;color:#226f5b}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a:nth-child(3) span{background:#ffe0d1;color:#c15d41}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a:nth-child(4) span{background:#e4d8f7;color:#7352a4}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a:hover span{transform:translateY(-3px)}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a:focus-visible{outline:2px solid #367bb4;outline-offset:4px;border-radius:6px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] main.content .dashboard-hero-action{font-size:12px;font-weight:400!important;padding:12px 15px;border-radius:8px;white-space:nowrap;margin:0}
#atlas-app#atlas-app.atlas-unified[data-page="home"] :is(.home-week,.home-reminders){padding:18px!important;margin-bottom:14px!important;border-radius:12px;box-shadow:none!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week h2{font-size:18px;font-weight:400!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-day strong{font-weight:400!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-reminder-heading{display:flex;align-items:center;gap:16px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-reminder-heading>svg{box-sizing:content-box;width:25px;height:25px;padding:12px;background:var(--atlas-soft);color:var(--atlas-accent);border-radius:50%}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-reminders h2{font:400 23px/1.3 Georgia,serif!important;margin:4px 0}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-reminders>.catalogue-muted{margin:0 0 0 65px;font-size:13px}
@media(min-width:1500px){#atlas-app#atlas-app.atlas-unified>aside{width:238px!important}#atlas-app#atlas-app.atlas-unified>aside #atlas-navigation a{padding:9px 12px}}
@media(max-width:1300px){#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-toolbar{flex-wrap:wrap;gap:10px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-search{max-width:none}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card{grid-template-columns:65px minmax(200px,1fr) 200px;gap:8px 16px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-device-art{width:60px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-device-art svg{width:52px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-actions{grid-column:2;grid-row:3;max-width:none}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-devices{grid-column:3;grid-row:1/4}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card>details[open]{grid-column:2/4;grid-row:4}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card:has(details[open]) .atlas-install-devices{grid-row:1/4}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card:has(details[open]) .atlas-install-actions{grid-row:3}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links{gap:15px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .dashboard-hero>div{flex-basis:100%}}
@media(max-width:900px){#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content{padding:0 16px 16px!important}#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header{margin:0 -16px!important;min-height:210px;padding:25px 6%!important}#atlas-app#atlas-app.atlas-unified>aside .mobile-bar{padding-top:10px!important}#atlas-app#atlas-app.atlas-unified>aside .mobile-menu-toggle{background:var(--atlas-soft)!important;color:var(--atlas-ink)!important}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-toolbar{min-height:68px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-toolbar-account{display:none}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-search select{max-width:120px}}
@media(max-width:650px){#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-search{flex-basis:100%;order:2}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-appearance{margin-left:auto}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-toolbar{padding:10px 0;gap:8px}#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header{min-height:185px;background-position:54% 50%!important;padding:20px!important}#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header>div{max-width:80%;padding:10px 12px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-header-description{font-size:12px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card{grid-template-columns:minmax(0,1fr) 115px;padding:18px!important;gap:10px 12px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-device-art{display:none}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card>div:nth-child(2){grid-column:1;grid-row:1}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card h2{font-size:23px!important}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-devices{grid-column:2;grid-row:1;height:115px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-actions{grid-column:1/3;grid-row:3;width:100%}#atlas-app#atlas-app.atlas-unified[data-page="home"] #atlas-install-button{width:100%}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card>details,#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card>details[open]{grid-column:1/3;grid-row:2}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card:has(details[open]) .atlas-install-devices{grid-row:1}#atlas-app#atlas-app.atlas-unified[data-page="home"] main.content .dashboard-hero{padding:125px 18px 20px!important;background-size:auto 240px!important;background-position:left top!important;gap:16px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .dashboard-hero>div{min-width:0;flex-basis:100%;background:#e9f5fbe8;border-radius:8px;padding:10px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links{width:100%;justify-content:space-between;gap:6px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a{min-width:0;flex:1;font-size:10px;line-height:1.4}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a span{width:43px;height:43px}#atlas-app#atlas-app.atlas-unified[data-page="home"] main.content .dashboard-hero-action{width:100%;text-align:center}#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-heading{align-items:flex-start;gap:10px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-reminders>.catalogue-muted{margin-left:0}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-reminder-heading{gap:10px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-reminders h2{font-size:20px!important}}
@media(prefers-reduced-motion:reduce){#atlas-app .atlas-home-feature-links a span{transition:none!important}}

#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card :is(h2,p,summary,li,strong,.catalogue-muted){color:var(--atlas-ink)!important;font-weight:400!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card h2,#atlas-app#atlas-app.atlas-unified[data-page="home"] .dashboard-hero h2{font-family:Georgia,serif!important;font-weight:400!important}
#atlas-app#atlas-app.atlas-unified>aside .brand-monad{font-size:42px;line-height:1;display:inline-block;vertical-align:middle}
@media(min-width:901px){#atlas-app#atlas-app.atlas-unified>aside #atlas-navigation{margin-top:8px}#atlas-app#atlas-app.atlas-unified>aside #atlas-navigation a{min-height:36px;padding:7px 10px;font-size:13px!important}#atlas-app#atlas-app.atlas-unified>aside .atlas-primary-links{gap:2px}#atlas-app#atlas-app.atlas-unified>aside .brand{font-family:Georgia,serif!important;font-size:23px}#atlas-app#atlas-app.atlas-unified>aside small{font-size:9px!important;letter-spacing:.05em}}
@media(max-width:900px){#atlas-app#atlas-app.atlas-unified>aside .brand-monad{font-size:30px}}

#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-heading h2{margin:4px 0 0!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-navigation{margin:10px 0!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-day>header{padding:8px 10px!important;gap:3px;min-height:55px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-day>header strong{font-size:16px;line-height:1.2}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-bookings{min-height:54px;padding:5px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-empty{margin:12px 0}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-add{padding:8px 5px}
@media(min-width:1301px){#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header{min-height:190px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card{min-height:160px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-devices{height:135px}#atlas-app#atlas-app.atlas-unified[data-page="home"] main.content .dashboard-hero{min-height:115px}}

/* Keep the monad complete at every viewport; reserve a separate area for tea artwork. */
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header{background-image:linear-gradient(90deg,transparent 65%,#e7f1f7 85%),url("../index.php?asset=atlas-mountains-v19")!important;background-position:center,left 53%!important;background-size:cover,calc(100% + 420px) auto!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header:after{content:"";display:block!important;position:absolute;right:0;top:0;bottom:0;width:360px;font-size:0;opacity:1;background:url("../index.php?asset=atlas-mountains-v19") right center/auto 190% no-repeat;mask-image:linear-gradient(90deg,transparent,#000 24%);pointer-events:none}
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header>div{z-index:1}
#atlas-app#atlas-app.atlas-unified[data-page="home"] main.content .dashboard-hero{--tea-width:clamp(160px,16vw,220px);padding-left:calc(var(--tea-width) + 26px)!important;background:linear-gradient(110deg,#edf7fc,#e6f3fa)!important;isolation:isolate;overflow:hidden}
#atlas-app#atlas-app.atlas-unified[data-page="home"] main.content .dashboard-hero:before{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--tea-width);background:url("../index.php?asset=atlas-tea-v19") left center/auto 100% no-repeat;mask-image:linear-gradient(90deg,#000 65%,transparent);pointer-events:none;z-index:-1}
@media(max-width:900px){#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header:after{width:310px;background-size:auto 175%}}
@media(max-width:650px){#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header:after{width:150px;right:8px;background-size:auto 140%;background-position:calc(100% + 55px) center;mask-image:linear-gradient(90deg,transparent,#000 20%)}#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header>div{max-width:calc(100% - 140px);background:linear-gradient(90deg,#f6fbfdeb,#f6fbfdad)}#atlas-app#atlas-app.atlas-unified[data-page="home"] main.content .dashboard-hero{padding:125px 18px 20px!important}#atlas-app#atlas-app.atlas-unified[data-page="home"] main.content .dashboard-hero:before{bottom:auto;width:100%;height:115px;background-size:auto 115px;mask-image:linear-gradient(90deg,#000,transparent 90%)}#atlas-app#atlas-app.atlas-unified[data-page="home"] .dashboard-hero>div{background:none;padding:0}}

@media(max-width:650px){#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header{align-items:flex-start!important;justify-content:center!important}}

/* Overview artwork belongs to the page canvas, without a banner or title card. */
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content{position:relative;isolation:isolate}
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content:before{content:"";position:absolute;top:0;left:0;right:0;height:370px;z-index:-1;pointer-events:none;background:linear-gradient(90deg,transparent 65%,#e7f1f7 85%),url("../index.php?asset=atlas-mountains-v19");background-position:center,left 48%;background-size:cover,calc(100% + 420px) auto;background-repeat:no-repeat;mask-image:linear-gradient(#000 0%,#000 65%,transparent 100%)}
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content:after{content:"";position:absolute;top:70px;right:0;width:360px;height:190px;z-index:-1;pointer-events:none;background:url("../index.php?asset=atlas-mountains-v19") right center/auto 190% no-repeat;mask-image:linear-gradient(90deg,transparent,#000 24%)}
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible}
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header:after{display:none!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header>div{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-toolbar{background:none!important}
@media(max-width:900px){#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content:after{width:310px;height:210px;background-size:auto 175%}}
@media(max-width:650px){#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content:before{height:330px;background-position:center,left 48%}#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content:after{top:100px;right:8px;width:150px;height:185px;background-size:auto 140%;background-position:calc(100% + 55px) center;mask-image:linear-gradient(90deg,transparent,#000 20%)}}

#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content:after{mask-image:linear-gradient(90deg,transparent,#000 24%),linear-gradient(180deg,transparent,#000 9%,#000 91%,transparent);mask-composite:intersect}
@media(max-width:650px){#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content:after{mask-image:linear-gradient(90deg,transparent,#000 20%),linear-gradient(180deg,transparent,#000 9%,#000 91%,transparent);mask-composite:intersect}}

/* Theme swatches sit beside the account, directly on the page background. */
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-toolbar{gap:16px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-toolbar .atlas-appearance{margin-left:auto!important;background:transparent!important;border:0!important;box-shadow:none!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-theme-switcher{background:transparent!important;border:0!important;box-shadow:none!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-toolbar-account{background:transparent!important;border:0!important;box-shadow:none!important}
@media(max-width:900px){#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-toolbar-account{display:flex}}
@media(max-width:650px){#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-toolbar-account{font-size:0;gap:0;min-width:30px;min-height:30px;justify-content:center}}

/* Place the overview title on the light sky beyond the bamboo. */
@media(min-width:651px){#atlas-app#atlas-app.atlas-unified[data-page="home"]>main.content>header{padding-left:clamp(160px,15%,360px)!important}}

/* 1.9.1: clean navigation, without a side border or inset selection stripe. */
#atlas-app#atlas-app.atlas-unified>aside{border:0!important;box-shadow:none!important}
#atlas-app#atlas-app.atlas-unified>aside #atlas-navigation a,
#atlas-app#atlas-app.atlas-unified>aside #atlas-navigation a:is(.active,:hover,:focus-visible){border:0!important;box-shadow:none!important;text-shadow:none!important}

/* 1.9.2: feature shortcuts have their own transparent interaction states. */
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a,
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a:is(:hover,:focus-visible,:active){background:transparent!important;border:0!important;box-shadow:none!important;color:#173e55!important;text-decoration:none!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a{--feature-bg:#d6eaff;--feature-hover:#b9dbf6;--feature-ink:#1e6797}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a:nth-child(2){--feature-bg:#d8eee3;--feature-hover:#b8ddc8;--feature-ink:#28664d}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a:nth-child(3){--feature-bg:#fae4d7;--feature-hover:#f5cfb8;--feature-ink:#995434}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a:nth-child(4){--feature-bg:#e9dff6;--feature-hover:#d7c4ee;--feature-ink:#68458e}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a span{background:var(--feature-bg)!important;color:var(--feature-ink)!important;transition:background .18s ease,transform .18s ease}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a:is(:hover,:focus-visible) span{background:var(--feature-hover)!important;transform:translateY(-3px)}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a:focus-visible{outline:2px solid #367bb4;outline-offset:5px;border-radius:7px}
@media(prefers-reduced-motion:reduce){#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-home-feature-links a span{transition:none!important;transform:none!important}}

/* 1.9.3: center the element column alongside the matrix values. */
#atlas-app#atlas-app.atlas-unified .food-matrix th:first-child{text-align:center!important;vertical-align:middle!important}

/* 1.9.4: a few botanical accents, separate from all interactive controls. */
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card{isolation:isolate}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card:before,
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card:after{content:"";display:block!important;position:absolute;bottom:-8px;width:112px;height:128px;background:url("../index.php?asset=atlas-bamboo-v194") center/contain no-repeat;pointer-events:none;z-index:-1;opacity:.48}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card:before{left:-10px;transform:rotate(-13deg)}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card:after{right:-12px;transform:scaleX(-1) rotate(-8deg);opacity:.38}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-reminders{position:relative;isolation:isolate;overflow:hidden}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-reminders:after{content:"";position:absolute;right:-10px;bottom:-22px;width:132px;height:145px;background:url("../index.php?asset=atlas-bamboo-v194") center/contain no-repeat;transform:scaleX(-1) rotate(8deg);opacity:.14;pointer-events:none;z-index:-1}
@media(max-width:650px){#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card:before{display:none!important}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-install-card:after{width:95px;height:110px;opacity:.24}#atlas-app#atlas-app.atlas-unified[data-page="home"] .home-reminders:after{width:95px;height:110px;opacity:.10}}

/* 1.9.5: compact live statistics and photographic navigation cards. */
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-stat-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:14px 22px!important;margin-bottom:14px!important;box-shadow:none!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-stat-strip>a{display:flex;align-items:center;justify-content:center;gap:18px;min-height:44px;color:var(--atlas-ink)!important;text-decoration:none;padding:0 18px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-stat-strip>a+a{border-left:1px solid var(--atlas-line)}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-stat-strip strong{font-size:27px;font-weight:400!important;line-height:1.2;color:var(--atlas-accent)!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-stat-strip>a>span:last-child{font-size:13px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] :is(.atlas-stat-icon,.atlas-card-symbol){display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--atlas-line);border-radius:50%;background:var(--atlas-soft);color:var(--atlas-accent)}
#atlas-app#atlas-app.atlas-unified[data-page="home"] :is(.atlas-image-shortcuts,.atlas-image-study){padding:18px!important;margin-bottom:14px!important;box-shadow:none!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] :is(.atlas-image-shortcuts,.atlas-image-study)>h2{font:400 25px/1.25 Georgia,serif!important;margin:0 0 14px!important;padding:0!important;border:0!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-image-study>h2{margin-bottom:5px!important}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-image-study>p{font-size:13px;color:var(--atlas-muted);margin:0 0 15px;line-height:1.5}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-image-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] :is(.atlas-image-card,.atlas-study-image-card){display:block;min-width:0;overflow:hidden;border:1px solid var(--atlas-line);border-radius:9px;background:var(--atlas-surface)!important;color:var(--atlas-ink)!important;text-decoration:none;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-card-photo{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;border-bottom:1px solid var(--atlas-line)}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-image-card-label{display:grid;grid-template-columns:44px minmax(0,1fr) 16px;align-items:center;gap:12px;padding:13px;min-height:82px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] :is(.atlas-image-card,.atlas-study-image-card) strong{display:block;font-size:15px;font-weight:400!important;color:var(--atlas-ink)!important;line-height:1.4}
#atlas-app#atlas-app.atlas-unified[data-page="home"] :is(.atlas-image-card,.atlas-study-image-card) small{display:block;font-size:12px;color:var(--atlas-muted)!important;line-height:1.5;margin-top:3px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-card-arrow{color:var(--atlas-accent);font-size:18px;line-height:1}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-study-image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-study-image-card{display:grid;grid-template-columns:42% minmax(0,1fr) 16px;align-items:center;gap:14px;min-height:118px;padding-right:12px}
#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-study-image-card>img{display:block;width:100%;height:100%;min-height:118px;max-height:160px;object-fit:cover}
#atlas-app#atlas-app.atlas-unified[data-page="home"] :is(.atlas-image-card,.atlas-study-image-card):hover{transform:translateY(-3px);border-color:var(--atlas-accent);box-shadow:0 7px 18px #254d6514;text-decoration:none}
#atlas-app#atlas-app.atlas-unified[data-page="home"] :is(.atlas-stat-strip>a,.atlas-image-card,.atlas-study-image-card):focus-visible{outline:2px solid var(--atlas-accent);outline-offset:4px}
@media(max-width:1400px){#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-image-card-label{grid-template-columns:34px minmax(0,1fr) 12px;gap:8px;padding:11px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-card-symbol{width:34px;height:34px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-study-image-card{grid-template-columns:36% minmax(0,1fr) 12px;gap:10px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-study-image-card strong{font-size:14px}}
@media(max-width:1100px){#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-stat-strip>a{gap:10px;padding:0 10px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-stat-icon{width:35px;height:35px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-study-image-grid{grid-template-columns:1fr}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-study-image-card{grid-template-columns:160px minmax(0,1fr) 16px;min-height:106px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-study-image-card>img{height:106px;min-height:106px;max-height:106px}}
@media(max-width:650px){#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-stat-strip{padding:12px 8px!important}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-stat-strip>a{display:grid;grid-template-columns:1fr;justify-items:center;text-align:center;gap:6px;padding:0 5px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-stat-strip strong{font-size:24px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-stat-strip>a>span:last-child{font-size:11px;line-height:1.4}#atlas-app#atlas-app.atlas-unified[data-page="home"] :is(.atlas-image-shortcuts,.atlas-image-study){padding:14px!important}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-image-grid{grid-template-columns:1fr;gap:12px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-image-card-label{grid-template-columns:40px minmax(0,1fr) 16px;gap:12px;padding:13px;min-height:74px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-card-symbol{width:40px;height:40px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-study-image-card{grid-template-columns:105px minmax(0,1fr) 12px;gap:10px;min-height:110px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-study-image-card>img{height:100%;min-height:110px;max-height:140px}#atlas-app#atlas-app.atlas-unified[data-page="home"] .atlas-study-image-card small{font-size:11px}}
@media(prefers-reduced-motion:reduce){#atlas-app#atlas-app.atlas-unified[data-page="home"] :is(.atlas-image-card,.atlas-study-image-card){transition:none;transform:none!important}}

/* Atlas 1.9.6 — subscription and payment records */
.billing-status{font-size:1.2rem;margin:20px 0 8px}.billing-form{margin-top:24px}.billing-scroll{overflow-x:auto}.billing-scroll table{min-width:600px;width:100%;border-collapse:collapse}.billing-scroll th,.billing-scroll td{text-align:left;padding:12px;border-bottom:1px solid var(--border,#dce4e4);font-weight:400}.billing-invoice{padding:24px 0;border-bottom:1px solid var(--border,#dce4e4)}.billing-invoice h3{font-weight:400}.billing-invoice details,.billing-payment{margin-top:14px}.billing-payment{padding:12px;border-left:2px solid #8ca8a3}.billing-audit{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-width:100%}body [data-page="billing"] summary{cursor:pointer;padding:12px 0}body [data-page="billing"] form{max-width:720px}body [data-page="billing"] .panel{margin-bottom:22px}

#consult-print-sheet{display:none}
#atlas-app.atlas-unified #consult-import-status{font-size:13px;line-height:1.6;color:var(--atlas-ink);padding:10px 12px;background:var(--atlas-soft);border-radius:7px}
#atlas-app.atlas-unified #consult-audience{font-size:14px;color:var(--atlas-ink)}
@media print{
 body.printing-consultation>#atlas-app,body.printing-consultation>#atlas-chat-config{display:none!important}
 body.printing-consultation{background:#fff!important;color:#172a3e!important}
 body.printing-consultation>#consult-print-sheet{display:block!important;padding:10mm;font:11pt/1.6 Arial,Helvetica,sans-serif;color:#172a3e}
 #consult-print-sheet pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}
 #consult-print-sheet h1{font-size:20pt}
}


/* Compact client navigation, independent of the colour theme. */
#atlas-app.atlas-unified .client-visit-tabs{
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
 gap:8px!important;width:100%;margin:14px 0 18px!important;padding:7px!important;
 background:#eaf0f5!important;border:0!important;border-radius:18px!important;overflow:visible!important;align-items:stretch!important;
}
#atlas-app.atlas-unified .client-visit-tabs a{--section-accent:#3886c5}
#atlas-app.atlas-unified .client-visit-tabs a:nth-child(2){--section-accent:#cf8b55}
#atlas-app.atlas-unified .client-visit-tabs a:nth-child(3){--section-accent:#9270bf}
#atlas-app.atlas-unified .client-visit-tabs a:nth-child(4){--section-accent:#3e9b7c}
#atlas-app.atlas-unified .client-visit-tabs a:nth-child(5){--section-accent:#be9b3f}
#atlas-app.atlas-unified .client-visit-tabs a,
#atlas-app.atlas-unified .client-visit-tabs a[aria-selected=true]{
 position:relative;display:flex!important;flex-direction:column;justify-content:center;align-items:flex-start!important;
 min-width:0;min-height:82px;padding:17px 16px 17px 33px!important;margin:0!important;
 background:transparent!important;color:#31475b!important;border:0!important;border-radius:12px!important;
 box-shadow:none!important;transform:none!important;text-decoration:none;transition:background .15s ease,box-shadow .15s ease;
}
#atlas-app.atlas-unified .client-visit-tabs a::before{
 display:block!important;content:"";position:absolute;left:17px!important;right:auto!important;top:23px!important;
 width:6px!important;height:6px!important;border-radius:50%!important;background:var(--section-accent)!important;
}
#atlas-app.atlas-unified #visit-form nav.client-visit-tabs a strong{
 color:inherit!important;font-size:15px!important;line-height:1.3;font-weight:650!important;letter-spacing:-.2px;
}
#atlas-app.atlas-unified #visit-form nav.client-visit-tabs a small{
 display:block!important;color:#667b8e!important;font-size:12px!important;line-height:1.4;margin-top:5px;opacity:1!important;
}
#atlas-app.atlas-unified .client-visit-tabs a>span{display:none!important}
#atlas-app.atlas-unified .client-visit-tabs a[aria-selected=true]{
 background:#183e60!important;color:#fff!important;box-shadow:0 5px 12px #183e6024!important;
}
#atlas-app.atlas-unified #visit-form nav.client-visit-tabs a[aria-selected=true] small{color:#d7e5f1!important}
#atlas-app.atlas-unified .client-visit-tabs a[aria-selected=true]::before{background:#89c8ff!important}
#atlas-app.atlas-unified .client-visit-tabs a:not([aria-selected=true]):hover{background:#ffffffb3!important}
#atlas-app.atlas-unified .client-visit-tabs a:focus-visible{outline:3px solid #268ac4;outline-offset:3px}
#atlas-app.atlas-unified #visit-form .diagnostic-steps{border-radius:16px!important}
@media(max-width:1100px){
 #atlas-app.atlas-unified .client-visit-tabs{gap:4px!important}
 #atlas-app.atlas-unified .client-visit-tabs a,#atlas-app.atlas-unified .client-visit-tabs a[aria-selected=true]{padding:15px 10px 15px 25px!important}
 #atlas-app.atlas-unified .client-visit-tabs a::before{left:12px!important;top:21px!important}
 #atlas-app.atlas-unified #visit-form nav.client-visit-tabs a strong{font-size:13px!important}
 #atlas-app.atlas-unified #visit-form nav.client-visit-tabs a small{font-size:11px!important}
}
@media(max-width:650px){
 #atlas-app.atlas-unified .client-visit-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;border-radius:15px!important;padding:6px!important}
 #atlas-app.atlas-unified .client-visit-tabs a,#atlas-app.atlas-unified .client-visit-tabs a[aria-selected=true]{min-height:68px;padding:12px 10px 12px 25px!important}
 #atlas-app.atlas-unified .client-visit-tabs a:last-child{grid-column:1/-1}
 #atlas-app.atlas-unified .client-visit-tabs a::before{top:19px!important}
 #atlas-app.atlas-unified #visit-form nav.client-visit-tabs a strong{font-size:14px!important}
}

/* User profile menu in the upper right corner */
#atlas-app .content{position:relative}
#atlas-app .atlas-profile-menu{position:absolute;top:16px;right:22px;z-index:110}
#atlas-app .atlas-profile-menu>summary{list-style:none;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;border:2px solid var(--atlas-border,#c8d9e4);background:var(--atlas-soft,#eef6fa);cursor:pointer;overflow:hidden}
#atlas-app .atlas-profile-menu>summary::-webkit-details-marker{display:none}
#atlas-app .atlas-profile-menu>summary img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#atlas-app .atlas-profile-fallback{font-size:25px;line-height:1}
#atlas-app .atlas-profile-dropdown{position:absolute;top:49px;right:0;min-width:185px;padding:8px;border:1px solid #cbdce6;border-radius:12px;background:#fff;color:#17374a;box-shadow:0 10px 28px #102d4430}
#atlas-app .atlas-profile-dropdown a,#atlas-app .atlas-profile-dropdown button{display:block;box-sizing:border-box;width:100%;padding:11px 12px;border:0;border-radius:7px;background:transparent;color:inherit;font:inherit;font-size:14px;text-decoration:none;text-align:left;cursor:pointer}
#atlas-app .atlas-profile-dropdown a:hover,#atlas-app .atlas-profile-dropdown button:hover{background:#e8f3f7}
#atlas-app .atlas-profile-dropdown form{margin:0;padding:0}
@media(max-width:650px){#atlas-app .atlas-profile-menu{top:68px;right:14px}}

/* Profile button participates in toolbar layout instead of covering theme swatches. */
#atlas-app[data-page="home"] .atlas-home-toolbar .atlas-profile-menu{position:relative!important;top:auto!important;right:auto!important;flex:0 0 42px;margin-left:12px;z-index:120}
#atlas-app[data-page="home"] .atlas-home-toolbar .atlas-appearance{margin-left:auto!important}
#atlas-app .atlas-profile-menu .atlas-profile-dropdown{display:block;visibility:hidden;opacity:0;transform:translateY(-9px) scale(.97);transform-origin:top right;pointer-events:none;transition:opacity .24s ease,transform .24s ease,visibility .24s allow-discrete}
#atlas-app .atlas-profile-menu[open] .atlas-profile-dropdown{visibility:visible;opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
@starting-style{#atlas-app .atlas-profile-menu[open] .atlas-profile-dropdown{opacity:0;transform:translateY(-9px) scale(.97)}}
@media(max-width:650px){#atlas-app[data-page="home"] .atlas-home-toolbar .atlas-profile-menu{margin-left:2px;order:1}}
@media(prefers-reduced-motion:reduce){#atlas-app .atlas-profile-menu .atlas-profile-dropdown{transition:none}}

/* Keep the client heading card below the top-right profile photo. */
#atlas-app[data-page="client"] .client-heading{margin-top:58px!important}
@media(max-width:650px){#atlas-app[data-page="client"] .client-heading{margin-top:105px!important}}

/* Tongue atlas cards: stylesheet instead of blocked inline styles */
#tongue-study .tongue-atlas-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;margin:18px 0 26px!important}
#tongue-study .tongue-atlas-card{display:block!important;min-width:0;overflow:hidden;padding:16px;border:1px solid #d8e2e9;border-radius:15px;background:var(--card,#fff)}
#tongue-study .tongue-atlas-card>img{display:block!important;width:100%!important;height:170px!important;max-width:100%!important;object-fit:cover;border-radius:10px;margin:0 auto 12px}
#tongue-study .tongue-atlas-card h4{font-size:1.08rem;margin:0 0 9px}
#tongue-study .tongue-atlas-card p{font-size:.9rem;line-height:1.5;margin:7px 0}
@media(max-width:1100px){#tongue-study .tongue-atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){#tongue-study .tongue-atlas-grid{grid-template-columns:1fr!important}}

/* Tongue images: display full photos without cropping */
#tongue-study .tongue-atlas-card>img{height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important}

/* Compact tongue photo previews; click to view original */
#tongue-study .tongue-atlas-card .tongue-photo-link{display:flex!important;align-items:center;justify-content:center;height:135px!important;max-height:135px!important;overflow:hidden;border-radius:10px;background:#f7f3ef;cursor:zoom-in;margin-bottom:12px}
#tongue-study .tongue-atlas-card .tongue-photo-link>img{display:block!important;width:auto!important;height:125px!important;max-width:100%!important;max-height:125px!important;object-fit:contain!important;object-position:center!important;margin:0!important}
#tongue-study .tongue-atlas-card .tongue-photo-link:hover{outline:2px solid #7ba6c8}

/* Centered in-page tongue image viewer */
#tongue-photo-modal[hidden]{display:none!important}
#tongue-photo-modal{position:fixed!important;inset:0!important;z-index:999999!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:45px 22px!important;background:rgba(12,22,32,.82)!important;box-sizing:border-box!important}
#tongue-photo-modal>img{display:block!important;max-width:min(90vw,850px)!important;max-height:85vh!important;width:auto!important;height:auto!important;object-fit:contain!important;border-radius:12px!important;box-shadow:0 20px 65px rgba(0,0,0,.35)!important}
#tongue-photo-modal .tongue-photo-close{position:absolute;top:20px;right:25px;z-index:1;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#172b40;font-size:30px;cursor:pointer}

/* Chat message reply and mention controls */
.atlas-chat-quick-actions{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0 3px}
.atlas-chat-quick-actions button{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border:1px solid var(--line,#d9e3ec);border-radius:8px;background:transparent;color:inherit;font-size:12px;cursor:pointer}
.atlas-chat-quick-actions button:hover{background:rgba(42,122,185,.1)}

/* Modern chat user list and emoji picker */
.atlas-chat-thread-group{padding:15px 12px 7px;font-size:11px;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:#668199}
.atlas-chat-thread-modern{display:flex!important;align-items:center!important;gap:11px!important;width:100%;text-align:left}
.atlas-chat-thread-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:13px;background:#e5f2f4;color:#176a76;font-size:17px;font-weight:700}
.atlas-chat-thread-body{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.atlas-chat-thread-body>strong,.atlas-chat-thread-body>small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.atlas-chat-thread-body>small{font-size:12px;opacity:.75}
.atlas-chat-thread-presence{font-size:11px;line-height:1.2}
.atlas-chat-thread-modern.is-active .atlas-chat-thread-avatar{background:#cce8e9}
#atlas-chat-emojis:not([hidden]){display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;padding:10px;max-height:210px;overflow-y:auto;border-radius:12px}
#atlas-chat-emojis button{font-size:21px;min-height:35px;min-width:0;padding:3px;border-radius:8px}
#atlas-chat-emojis button:hover{background:rgba(45,129,161,.12)}
@media(max-width:550px){#atlas-chat-emojis:not([hidden]){grid-template-columns:repeat(6,minmax(0,1fr))}}

/* Chat redesign: spacious contact list, compact messages, calmer surfaces */
@media(min-width:1001px){#atlas-chat{grid-template-columns:315px minmax(0,1fr)}}
@media(min-width:701px) and (max-width:1000px){#atlas-chat{grid-template-columns:275px minmax(0,1fr)}}
#atlas-chat .atlas-chat-list{padding:15px 12px;background:#f7fafc}
#atlas-chat .atlas-chat-thread-group{padding:14px 11px 6px;color:#75899b}
#atlas-chat .atlas-chat-thread-modern{padding:10px 11px;margin:2px 0;border:1px solid transparent;border-radius:10px;background:transparent;box-shadow:none;min-height:62px}
#atlas-chat .atlas-chat-thread-modern:hover{background:#edf4f9;border-color:#e2ebf1}
#atlas-chat .atlas-chat-thread-modern.is-active{background:#e3f0fa;border-color:#c7deef;box-shadow:inset 3px 0 #3185c2}
#atlas-chat .atlas-chat-thread-modern .atlas-chat-thread-body>strong{padding-right:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal;font-size:13px;line-height:1.3}
#atlas-chat .atlas-chat-thread-modern .atlas-chat-thread-body>small{margin:0;font-size:11px;line-height:1.3}
#atlas-chat .atlas-chat-thread-avatar{flex-basis:36px;width:36px;height:36px;border-radius:50%;font-size:15px}
#atlas-chat .atlas-chat-thread-presence{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#atlas-chat .atlas-chat-pane{padding:15px 20px;gap:10px;background:#fff}
#atlas-chat .atlas-chat-heading{border-radius:11px;background:#f2f7fb;padding:12px 16px}
#atlas-chat-messages{gap:12px;padding:16px 10px}
#atlas-chat .atlas-chat-message{width:fit-content;max-width:min(78%,780px);min-width:0;padding:12px 15px;background:#f3f6f9;border:1px solid #e7edf2;border-radius:14px;box-shadow:0 1px 2px rgba(24,56,80,.04)}
#atlas-chat .atlas-chat-message.is-own{background:#e9f3fa;border-color:#d4e6f3}
#atlas-chat .atlas-chat-message p{font-size:13px;line-height:1.55}
#atlas-chat .atlas-chat-message-actions{gap:12px;flex-wrap:wrap}
#atlas-chat .atlas-chat-message-actions button{border-radius:6px;padding:3px 6px;min-height:24px}
#atlas-chat .atlas-chat-message-actions button:hover{background:rgba(40,111,160,.1)}
#atlas-chat .atlas-chat-quick-actions{margin-top:9px}
#atlas-chat-text{min-height:66px}
@media(max-width:700px){#atlas-chat .atlas-chat-thread-modern{flex:0 0 205px}#atlas-chat .atlas-chat-thread-group{flex:0 0 auto;align-self:center}#atlas-chat .atlas-chat-message{max-width:95%}#atlas-chat .atlas-chat-pane{padding:12px}}

/* Chat v2: coherent messenger layout, no floating oversized message cards */
@media(min-width:701px){
 #atlas-chat{display:grid;grid-template-columns:300px minmax(0,1fr);height:calc(100dvh - 165px);min-height:620px;max-height:none;overflow:hidden;border:1px solid #dce6ee;border-radius:14px;background:#fff}
 #atlas-chat .atlas-chat-list{height:100%;min-height:0;overflow-y:auto;padding:18px 12px;background:#f8fafc;border-right:1px solid #e1e9ef}
 #atlas-chat .atlas-chat-pane{display:flex;flex-direction:column;height:100%;min-height:0;min-width:0;padding:0!important;gap:0;background:#fff}
 #atlas-chat .atlas-chat-heading{flex:0 0 auto;margin:0;border-radius:0;padding:16px 22px;background:#fff;border-bottom:1px solid #e8edf2}
 #atlas-chat-messages{display:flex;flex-direction:column;flex:1 1 auto;min-height:0!important;height:auto!important;overflow-y:auto;gap:15px;padding:22px 26px!important;background:#fafcfe}
 #atlas-chat-form{flex:0 0 auto;margin:0;padding:12px 20px 16px;border-top:1px solid #e5ebf1;background:#fff}
 #atlas-chat-status{padding:3px 20px}
}
@media(min-width:701px) and (max-width:1050px){#atlas-chat{grid-template-columns:265px minmax(0,1fr)}}
#atlas-chat .atlas-chat-thread-modern{width:100%;min-height:56px;padding:9px 11px;margin:2px 0;border-radius:9px;border:0;background:transparent}
#atlas-chat .atlas-chat-thread-modern:hover{background:#eaf1f7}
#atlas-chat .atlas-chat-thread-modern.is-active{background:#e0effb;border:0;box-shadow:inset 3px 0 #3184bd}
#atlas-chat .atlas-chat-thread-group{padding:15px 12px 7px}
#atlas-chat .atlas-chat-thread-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#e2eef2}
#atlas-chat .atlas-chat-thread-body>strong{font-size:13px!important;font-weight:650;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#atlas-chat .atlas-chat-thread-body>small{font-size:11px!important;opacity:.72}
#atlas-chat .atlas-chat-message,#atlas-chat .atlas-chat-message.is-own{box-sizing:border-box;display:block;width:fit-content;min-width:0;max-width:min(76%,760px);flex:0 0 auto;align-self:flex-start;padding:12px 15px;border:1px solid #e3eaf0;border-radius:14px 14px 14px 4px;background:#fff;color:#24475a;box-shadow:0 2px 8px rgba(29,67,92,.04);overflow-wrap:anywhere}
#atlas-chat .atlas-chat-message.is-own{align-self:flex-end;border-color:#cfe3f1;border-radius:14px 14px 4px 14px;background:#e8f3fb}
#atlas-chat .atlas-chat-message p{margin:7px 0 0;line-height:1.55;white-space:pre-wrap;font-size:13px}
#atlas-chat .atlas-chat-message-meta{font-size:11px;gap:7px}
#atlas-chat .atlas-chat-message-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
#atlas-chat .atlas-chat-message-actions button{padding:3px 7px!important;border:0!important;background:transparent!important;color:#52748b!important;font-size:11px;min-height:24px}
#atlas-chat .atlas-chat-message-actions button:hover{background:rgba(33,111,162,.1)!important}
#atlas-chat-text{box-sizing:border-box;min-height:60px;max-height:160px;border-radius:10px}
#atlas-chat .atlas-chat-compose-actions{margin-top:7px}
@media(max-width:700px){
 #atlas-chat{display:flex;flex-direction:column;height:auto;max-height:none;min-height:0}
 #atlas-chat .atlas-chat-list{padding:12px}
 #atlas-chat .atlas-chat-pane{display:flex;flex-direction:column;height:calc(100dvh - 230px);min-height:470px;padding:0!important;gap:0}
 #atlas-chat .atlas-chat-heading{margin:0;padding:12px;border-radius:0;border-bottom:1px solid #e6edf3}
 #atlas-chat-messages{flex:1;min-height:0!important;height:auto!important;padding:14px!important;background:#fafcfe}
 #atlas-chat .atlas-chat-message,#atlas-chat .atlas-chat-message.is-own{max-width:92%;width:fit-content}
 #atlas-chat-form{padding:10px 12px;background:#fff}
 #atlas-chat-status{padding:0 12px}
}

/* Messenger v3 — structural design for the new PHP chat layout */
#atlas-chat.atlas-messenger{--msg-border:#e3eaf0;display:grid;grid-template-columns:305px minmax(0,1fr);height:calc(100dvh - 165px);min-height:620px;max-height:none;padding:0!important;overflow:hidden;border:1px solid var(--msg-border);border-radius:16px;background:#fff;box-shadow:0 8px 28px rgba(28,63,86,.06)}
#atlas-chat .atlas-chat-list{height:100%;min-height:0;overflow:auto;padding:0 10px 16px!important;background:#fbfcfe;border-right:1px solid var(--msg-border)}
#atlas-chat .atlas-messenger-sidebar-head{display:flex;justify-content:space-between;align-items:center;padding:22px 14px 7px}
#atlas-chat .atlas-messenger-sidebar-head h2{font-size:22px;margin:3px 0 0;color:#223f54}
#atlas-chat .atlas-messenger-eyebrow{font-size:10px;letter-spacing:.14em;color:#8298a8}
#atlas-chat .atlas-messenger-symbol{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#e9f4f4;color:#287c81;font-size:22px}
#atlas-chat #atlas-chat-online{margin:4px 14px 15px;color:#60808c;font-size:12px}
#atlas-chat .atlas-messenger-search{display:flex;align-items:center;gap:8px;margin:0 8px 10px;padding:0 11px;background:#f1f5f8;border:1px solid #e2eaf0;border-radius:10px}
#atlas-chat .atlas-messenger-search span{font-size:23px;color:#7795a5}
#atlas-chat .atlas-messenger-search input{width:100%;height:38px;min-width:0;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;font-size:13px}
#atlas-chat .atlas-chat-thread-modern{border:0!important;background:transparent;box-shadow:none;min-height:61px;padding:10px 12px!important;margin:2px 0!important}
#atlas-chat .atlas-chat-thread-modern.is-active{background:#e9f4f9!important;box-shadow:inset 3px 0 #3e96b6!important}
#atlas-chat .atlas-chat-thread-modern:hover{background:#f0f6f9}
#atlas-chat .atlas-chat-thread-group{padding:16px 12px 7px}
#atlas-chat .atlas-chat-pane{display:flex;flex-direction:column;min-height:0;height:100%;gap:0;padding:0!important;background:white}
#atlas-chat .atlas-chat-heading{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;margin:0;padding:15px 22px;background:#fff;border-bottom:1px solid var(--msg-border);border-radius:0}
#atlas-chat .atlas-messenger-heading-identity{display:flex;align-items:center;gap:12px;min-width:0}
#atlas-chat .atlas-messenger-heading-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:#e9f4f7;font-size:20px}
#atlas-chat .atlas-chat-heading h2{font-size:16px;margin:0 0 3px}
#atlas-chat .atlas-chat-heading p{font-size:11px}
#atlas-chat .atlas-messenger-refresh{padding:7px 11px;font-size:12px}
#atlas-chat .atlas-messenger-history{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden;background:#f8fafc}
#atlas-chat #atlas-chat-older{align-self:center;flex:none;margin:9px 0}
#atlas-chat-messages{display:flex;flex:1 1 auto;min-height:0!important;height:auto!important;flex-direction:column;gap:14px;padding:24px!important;overflow-y:auto;scrollbar-gutter:stable}
#atlas-chat .atlas-chat-message,#atlas-chat .atlas-chat-message.is-own{flex:0 0 auto;width:fit-content;max-width:min(76%,760px);padding:12px 15px;border-radius:14px 14px 14px 4px;border:1px solid #e3eaf0;background:#fff;box-shadow:0 2px 8px rgba(24,58,83,.04)}
#atlas-chat .atlas-chat-message.is-own{align-self:flex-end;border-radius:14px 14px 4px 14px;background:#e6f2f8;border-color:#cfe4f0}
#atlas-chat .atlas-chat-message p{font-size:13px;line-height:1.55}
#atlas-chat .atlas-messenger-composer{flex:0 0 auto;padding:13px 19px 16px!important;margin:0;border-top:1px solid var(--msg-border);background:#fff}
#atlas-chat .atlas-messenger-compose-shell{border:1px solid #d9e5ed;border-radius:12px;padding:8px 11px;background:#fff}
#atlas-chat #atlas-chat-text{display:block;box-sizing:border-box;width:100%;min-height:48px;max-height:150px;padding:5px 3px;border:0!important;background:transparent!important;box-shadow:none!important;resize:vertical;font-size:13px}
#atlas-chat .atlas-chat-compose-actions{margin-top:4px}
#atlas-chat .atlas-chat-compose-actions small{font-size:10px}
#atlas-chat #atlas-chat-send{border-radius:8px}
#atlas-chat #atlas-chat-status{margin:0;padding:0 18px}
#atlas-chat #atlas-chat-status:empty{display:none}
#atlas-chat .atlas-messenger-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1000px) and (min-width:701px){#atlas-chat.atlas-messenger{grid-template-columns:265px minmax(0,1fr)}}
@media(max-width:700px){#atlas-chat.atlas-messenger{display:flex;flex-direction:column;height:auto;min-height:0}#atlas-chat .atlas-chat-list{height:auto;max-height:235px;overflow:auto;border-right:0;border-bottom:1px solid #e3eaf0}#atlas-chat .atlas-messenger-sidebar-head{padding:12px}#atlas-chat .atlas-chat-pane{height:calc(100dvh - 255px);min-height:440px}#atlas-chat .atlas-chat-heading{padding:10px 12px}#atlas-chat-messages{padding:12px!important}#atlas-chat .atlas-chat-message,#atlas-chat .atlas-chat-message.is-own{max-width:94%}#atlas-chat .atlas-messenger-composer{padding:10px!important}#atlas-chat .atlas-messenger-refresh span{display:none}}

/* Chat v4: actual message-row component generated by app.js */
#atlas-chat-messages{align-items:stretch;gap:9px!important;padding:20px 32px!important}
#atlas-chat .atlas-chat-day{align-self:center;margin:16px 0 12px;padding:5px 13px;border-radius:20px;background:#e9eef2;color:#647a89;font-size:11px;font-weight:600;letter-spacing:.01em}
#atlas-chat .atlas-chat-message,#atlas-chat .atlas-chat-message.is-own{display:flex!important;align-items:flex-end;gap:9px;width:100%!important;max-width:none!important;min-width:0!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
#atlas-chat .atlas-chat-message.is-own{flex-direction:row-reverse}
#atlas-chat .atlas-chat-message-avatar{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#dfe9ef;color:#46697c;font-size:12px;font-weight:700}
#atlas-chat .atlas-chat-message.is-own .atlas-chat-message-avatar{background:#d3e9e9;color:#246e76}
#atlas-chat .atlas-chat-bubble{box-sizing:border-box;width:fit-content;max-width:min(70%,720px);padding:11px 14px;background:#fff;border:1px solid #e2e9ee;border-radius:13px 13px 13px 3px;box-shadow:0 1px 4px rgba(27,63,87,.04);min-width:0}
#atlas-chat .atlas-chat-message.is-own .atlas-chat-bubble{background:#e1f1ef;border-color:#cfe4e0;border-radius:13px 13px 3px 13px}
#atlas-chat .atlas-chat-bubble p{font-size:13px;line-height:1.55;margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
#atlas-chat .atlas-chat-message-meta{display:flex;gap:9px;align-items:center;font-size:11px;color:#668091}
#atlas-chat .atlas-chat-message-meta strong{color:#385a6d;font-size:11px;font-weight:650}
#atlas-chat .atlas-chat-message-actions{margin-top:7px;opacity:.45;transition:opacity .15s}
#atlas-chat .atlas-chat-message:hover .atlas-chat-message-actions,#atlas-chat .atlas-chat-message:focus-within .atlas-chat-message-actions{opacity:1}
#atlas-chat .atlas-chat-quick-actions{display:flex;gap:5px}
#atlas-chat .atlas-chat-message-actions button{font-size:11px;padding:3px 7px!important;border-radius:6px}
#atlas-chat .atlas-chat-thread-modern{border-radius:9px!important;min-height:54px!important}
#atlas-chat .atlas-chat-thread-modern .atlas-chat-thread-avatar{background:#e3eef0}
#atlas-chat .atlas-chat-list{background:#fff!important}
#atlas-chat .atlas-messenger-history{background:#f7f9fb!important}
@media(max-width:700px){#atlas-chat-messages{padding:12px!important}#atlas-chat .atlas-chat-bubble{max-width:calc(100% - 45px)}#atlas-chat .atlas-chat-message-actions{opacity:1}}

/* Definitive scope isolation: global Atlas card styling must not paint message rows. */
#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-messages article.atlas-chat-message,
#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-messages article.atlas-chat-message.is-own{
 display:flex!important;flex:0 0 auto!important;align-items:flex-end!important;align-self:stretch!important;gap:9px!important;
 width:auto!important;max-width:none!important;min-width:0!important;min-height:0!important;
 margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-messages article.atlas-chat-message.is-own{flex-direction:row-reverse!important}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-messages .atlas-chat-bubble{
 display:block!important;flex:0 1 auto!important;width:fit-content!important;max-width:min(70%,720px)!important;min-width:0!important;
 margin:0!important;padding:11px 14px!important;background:#fff!important;border:1px solid #e1e9ee!important;border-radius:14px 14px 14px 4px!important;box-shadow:0 2px 7px rgba(23,60,84,.05)!important;
}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-messages article.is-own .atlas-chat-bubble{background:#e3f2ed!important;border-color:#cce4da!important;border-radius:14px 14px 4px 14px!important}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-messages .atlas-chat-message-actions button{min-height:24px!important;padding:3px 7px!important;font-size:11px!important;background:transparent!important;border:0!important;box-shadow:none!important}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-messages .atlas-chat-message-actions button:hover{background:rgba(35,113,153,.1)!important}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-messages .atlas-chat-message-avatar{flex:0 0 30px!important}
@media(max-width:700px){#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-messages .atlas-chat-bubble{max-width:calc(100% - 43px)!important}}

/* Compact contact directory: replace stacked form-like cards */
#atlas-app.atlas-unified #atlas-chat.atlas-messenger .atlas-chat-list{padding:0 9px 15px!important;background:#fff!important}
#atlas-chat .atlas-messenger-sidebar-head{padding:17px 14px 7px}
#atlas-chat .atlas-messenger-sidebar-head h2{font-size:19px}
#atlas-chat #atlas-chat-online{margin:4px 14px 12px;padding:0!important;border:0!important;background:transparent!important;font-size:11px;color:#77909d}
#atlas-chat .atlas-messenger-search{margin:0 7px 9px;border-radius:9px;background:#f2f6f8}
#atlas-chat .atlas-chat-thread-group{display:flex;justify-content:space-between;align-items:center;padding:18px 12px 6px;font-size:10px;font-weight:750;letter-spacing:.07em;text-transform:uppercase;color:#8499a5}
#atlas-chat .atlas-chat-group-count{font-size:10px;font-weight:600;color:#9babb5;letter-spacing:0}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger button.atlas-contact-row{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:58px!important;margin:1px 0!important;padding:8px 10px!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;text-align:left!important;color:#28485b!important}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger button.atlas-contact-row:hover{background:#f1f6f9!important}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger button.atlas-contact-row.is-active{background:#e9f4f8!important;box-shadow:inset 3px 0 #3b93ad!important}
#atlas-chat .atlas-contact-row .atlas-chat-thread-avatar{position:relative;display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#e6eef2;color:#41697c;font-size:14px;font-weight:700}
#atlas-chat .atlas-contact-row.is-active .atlas-chat-thread-avatar{background:#d3e9ec}
#atlas-chat .atlas-contact-online{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#29a36a}
#atlas-chat .atlas-contact-row .atlas-chat-thread-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
#atlas-chat .atlas-contact-row .atlas-chat-thread-body>strong{display:block!important;margin:0!important;padding:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:12px!important;font-weight:650!important;line-height:1.3!important}
#atlas-chat .atlas-contact-row .atlas-chat-thread-body>small{display:block!important;margin:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:11px!important;line-height:1.3!important;color:#8195a0!important}
#atlas-chat .atlas-contact-meta{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;min-width:12px}
#atlas-chat .atlas-contact-state{font-size:10px;color:#2b956b}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger .atlas-contact-meta .atlas-chat-unread{position:static!important;display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:20px;background:#2989b5!important;color:white!important;font-size:10px;font-weight:700}
#atlas-chat .atlas-contact-empty{padding:14px;font-size:12px;color:#8195a0}

/* Emoji picker floats over the conversation; never expands or shifts the composer. */
#atlas-app.atlas-unified #atlas-chat.atlas-messenger .atlas-messenger-composer{position:relative!important;z-index:5;overflow:visible!important}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-emojis:not([hidden]){
 position:absolute!important;display:grid!important;grid-template-columns:repeat(7,38px)!important;gap:3px!important;
 width:max-content!important;max-width:min(320px,calc(100vw - 40px))!important;height:auto!important;max-height:235px!important;
 right:18px!important;bottom:calc(100% - 8px)!important;left:auto!important;top:auto!important;
 margin:0!important;padding:10px!important;overflow-y:auto!important;overflow-x:hidden!important;
 background:#fff!important;border:1px solid #d8e5ed!important;border-radius:13px!important;
 box-shadow:0 12px 35px rgba(23,57,80,.2)!important;z-index:20!important;
}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-emojis[hidden]{display:none!important}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-emojis button{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-height:38px!important;margin:0!important;padding:2px!important;border:0!important;border-radius:8px!important;background:transparent!important;font-size:23px!important;line-height:1!important}
#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-emojis button:hover{background:#edf5f8!important}
@media(max-width:700px){#atlas-app.atlas-unified #atlas-chat.atlas-messenger #atlas-chat-emojis:not([hidden]){right:8px!important;grid-template-columns:repeat(6,38px)!important;max-width:calc(100vw - 25px)!important}}

/* Live Atlas presence counter under the Chat navigation item */
.atlas-sidebar-online{display:flex;align-items:center;gap:7px;margin:8px 9px 12px;padding:8px 11px;border-radius:9px;background:#eef8f2;color:#42695a;font-size:11px;line-height:1.3}
.atlas-sidebar-online-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#2fb773;box-shadow:0 0 0 3px rgba(47,183,115,.12)}
.atlas-sidebar-online strong{margin-left:auto;font-size:14px;font-weight:750;color:#207c50;font-variant-numeric:tabular-nums}

/* Minimal presence dot, no text or count */
#atlas-sidebar-presence-dot{display:inline-block;vertical-align:middle;width:10px;height:10px;margin-left:8px;border-radius:50%;background:#d95757;box-shadow:0 0 0 3px rgba(217,87,87,.12)}
#atlas-sidebar-presence-dot.is-online{background:#28b56d;box-shadow:0 0 0 3px rgba(40,181,109,.14)}

/* Compact questionnaire: presentation only; existing form fields stay mounted. */
#visit-anamnesis .anamnesis-quick-choices{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
#visit-anamnesis .anamnesis-quick-choices button{padding:5px 9px;font-size:12px;min-height:32px}
.atlas-modern #visit-form #visit-anamnesis .anamnesis-question-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#visit-anamnesis .anamnesis-question>summary{padding:10px;min-height:68px}
#visit-anamnesis .anamnesis-question small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.45}
#visit-anamnesis .anamnesis-question.has-answer small{color:#42617b}
#visit-anamnesis .anamnesis-question>summary:focus-visible{outline:2px solid #247fca;outline-offset:-3px}
#visit-anamnesis .anamnesis-selected-patterns{margin:16px 0 10px;padding:12px;border:1px solid #d5e4f0;border-radius:10px;background:#f5f9fc}
#visit-anamnesis .anamnesis-selected-patterns h3{margin:0 0 8px;font-size:14px}
#visit-anamnesis .anamnesis-selected-patterns p{margin:0}
@media(max-width:700px){.atlas-modern #visit-form #visit-anamnesis .anamnesis-question-grid{grid-template-columns:minmax(0,1fr)}}

/* Anamnesis: edit the narrative, combine patterns and review linked herbs in place. */
#visit-anamnesis #client-conclusion-patterns[hidden]{display:none!important}
#visit-anamnesis #anamnesis-pattern-picker .client-pattern-choices{max-height:320px;overflow:auto;overscroll-behavior:contain;padding:6px}
#visit-anamnesis .anamnesis-remove-pattern{margin-left:auto;font-size:12px;padding:4px 8px}
#visit-anamnesis .anamnesis-formula-group{border:1px solid #d5e4f0;border-radius:8px;padding:12px;margin:10px 0;background:#fff}
#visit-anamnesis .anamnesis-formula-group h5{font-size:14px;margin:0 0 8px}
#visit-anamnesis .anamnesis-formula-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:7px 0;border-top:1px solid #edf2f7}
#visit-anamnesis .anamnesis-formula-row button{margin:0}
#visit-anamnesis .client-pattern-conclusion{margin:14px 0}

/* Small, sourced previews; opening an illustration never toggles a point checkbox. */
.acupuncture-point-with-preview{min-width:0;border:1px solid #d5e4f0;border-radius:9px;padding:8px;background:#fff}
.acupuncture-point-with-preview .acupuncture-point-card{border:0!important;margin:0!important;padding:5px!important;min-height:38px}
.point-illustration{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;padding:6px 0}
.point-illustration-preview{display:inline-flex;align-items:center;gap:8px;text-decoration:none}
.point-illustration-preview img{width:72px;height:72px;object-fit:contain;border:1px solid #d5e4f0;border-radius:6px;background:#fff}
.point-illustration small{color:#526b7e}
.point-illustration-preview:focus-visible{outline:3px solid #247fca;outline-offset:3px}
.atlas-point-row .point-illustration{grid-column:1/-1}
.point-illustration-dialog{width:min(920px,94vw);max-height:94vh;padding:20px;border:1px solid #c6dbe9;border-radius:14px;color:#183e56;background:#fff;overflow:auto}
.point-illustration-dialog::backdrop{background:rgba(8,25,40,.65)}
.point-illustration-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.point-illustration-heading h2{margin:0;font-size:21px}
.point-illustration-heading button{white-space:nowrap}
.point-illustration-dialog p{font-size:13px;line-height:1.5}
.point-illustration-toolbar{display:flex;align-items:center;gap:12px;margin:12px 0;font-size:13px}
.point-illustration-stage{overflow:auto;max-height:65vh;border:1px solid #d5e4f0;border-radius:8px;background:#fff;padding:12px}
.point-illustration-stage img{display:block;max-width:100%;max-height:60vh;width:auto;height:auto;margin:auto;object-fit:contain}
.point-illustration-sources{display:grid;gap:8px;margin-top:14px;font-size:13px;line-height:1.5}
@media(max-width:600px){.point-illustration-dialog{padding:12px}.point-illustration-heading{align-items:flex-start}.point-illustration-heading h2{font-size:17px}}

/* Seasonal recipe collection, scoped to nutrition pages. */
.nutrition-section-tabs,.recipe-season-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.nutrition-section-tabs a,.recipe-season-tabs a{padding:10px 15px;border:1px solid #d0e1ed;border-radius:9px;background:#fff;text-decoration:none;font-size:14px;color:#1a5877}
.nutrition-section-tabs a[aria-current],.recipe-season-tabs a[aria-current]{background:#0b527b;color:#fff;border-color:#0b527b}
.recipe-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.recipe-intro h2{margin:7px 0 12px}.recipe-intro>div{max-width:840px}.recipe-intro>a.button{white-space:nowrap;background:#0b527b;color:#fff!important;padding:11px 16px;border-radius:9px;text-decoration:none}
.recipe-entry{display:flex;gap:22px;align-items:center}.recipe-entry>img{width:180px;height:130px;object-fit:cover;border-radius:10px}
.recipe-entry h2{margin:5px 0 10px}.recipe-entry p{margin:0 0 16px}
.recipe-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end}.recipe-filters label{margin:0}.recipe-filters label:first-of-type{flex:1;min-width:210px}
.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px;align-items:start}
.recipe-card{background:#fff;border:1px solid #d1e1ec;border-radius:14px;overflow:hidden;box-shadow:0 4px 18px rgba(20,61,84,.04)}
.recipe-card figure{margin:0;position:relative;background:#eef4f4}.recipe-photo{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block}
.recipe-card figcaption{position:absolute;bottom:8px;right:8px;font-size:10px;background:rgba(255,255,255,.92);padding:4px 7px;border-radius:5px;color:#365465}
.recipe-card-body{padding:18px}.recipe-card h3{font-size:18px!important;line-height:1.4;margin:12px 0 8px;color:#17465d}
.recipe-card-pills{display:flex;flex-wrap:wrap;gap:6px}.recipe-card-pills>span{font-size:11px;border-radius:6px;padding:5px 7px;background:#eef5f7;color:#365b6b}
.recipe-card-pills .recipe-thermal-warm,.recipe-card-pills .recipe-thermal-hot{background:#fff0df;color:#8b4c13}
.recipe-card-pills .recipe-thermal-cool,.recipe-card-pills .recipe-thermal-cold{background:#e9f2fc;color:#315e91}
.recipe-card-pills .recipe-thermal-neutral{background:#eaf4e8;color:#426441}
.recipe-meta{font-size:12px;color:#627988;margin:0 0 12px}.recipe-detail{border-top:1px solid #e2ebf1;padding-top:12px}
.recipe-detail summary{cursor:pointer;font-weight:600;color:#175d83}.recipe-detail h4{margin:18px 0 9px;font-size:14px}
.recipe-detail li{margin:0 0 9px;font-size:13px;line-height:1.6}.recipe-detail ul,.recipe-detail ol{padding-left:21px}
.recipe-thermal-note{padding:12px;background:#f3f8fa;border-radius:8px;margin-top:15px;font-size:12px;line-height:1.6}
.recipe-thermal-note h4{margin-top:0}.recipe-thermal-note p{font-size:12px;margin:7px 0}.recipe-thermal-note small{color:#627988}
.recipe-edit-link{display:inline-block;margin-top:15px;font-size:13px}.recipe-editor{max-width:920px}.recipe-editor>summary{font-size:18px;font-weight:600;cursor:pointer}
.recipe-editor>p{font-size:13px;color:#526f80}.recipe-form-row{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px}.recipe-form-actions{display:flex;align-items:center;gap:18px;margin-top:20px}
#recipe-form input[type=file]{padding:10px}#recipe-photo-hint{display:block;line-height:1.6;color:#587484;margin:5px 0 14px}
@media(max-width:1100px){.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.recipe-grid{grid-template-columns:1fr}.recipe-intro,.recipe-entry{flex-direction:column}.recipe-entry>img{width:100%;height:170px}.recipe-form-row{grid-template-columns:1fr}.recipe-filters{display:grid;grid-template-columns:1fr}.recipe-filters label:first-of-type{min-width:0}.recipe-card-body{padding:16px}}

/* Mobile home: fit the complete week without sideways scrolling. */
@media (max-width:650px){
  #atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-navigation{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    align-items:stretch;
  }
  #atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-navigation a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    max-width:100%;
    min-height:48px;
    padding:8px 4px!important;
    white-space:normal!important;
    overflow-wrap:normal;
    text-align:center;
    line-height:1.25;
    font-size:11px!important;
  }
  #atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-scroll{
    max-width:100%;
    overflow-x:visible;
    padding-bottom:0;
  }
  #atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-grid{
    min-width:0!important;
    width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  #atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-day{
    min-width:0;
  }
}
@media (max-width:360px){
  #atlas-app#atlas-app.atlas-unified[data-page="home"] .home-week-grid{
    grid-template-columns:minmax(0,1fr);
  }
}

/* Mobile dashboard shortcut icons: remove the unwanted nav scrollbar. */
@media(max-width:650px){
  #atlas-app#atlas-app.atlas-unified[data-page="home"] .dashboard-hero .atlas-home-feature-links{
    overflow:visible!important;
    overflow-x:visible!important;
    width:100%;
    min-width:0;
    margin:0!important;
  }
  #atlas-app#atlas-app.atlas-unified[data-page="home"] .dashboard-hero .atlas-home-feature-links a{
    flex:1 1 0;
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
    padding:0!important;
    text-align:center;
  }
}

/* Compact mobile appointment calendar and aligned profile avatar. */
@media(max-width:650px){
  #atlas-app.atlas-unified[data-page="calendar"]>main.content>.atlas-profile-menu{
    top:14px!important;
    right:16px!important;
  }
  #atlas-app.atlas-unified[data-page="calendar"]>main.content>header{
    padding-right:60px!important;
  }
  #atlas-app.atlas-unified[data-page="calendar"] .calendar-panel{
    padding:14px!important;
  }
  #atlas-app.atlas-unified[data-page="calendar"] .calendar-toolbar{
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr) 44px auto;
    gap:6px;
    align-items:center;
  }
  #atlas-app.atlas-unified[data-page="calendar"] .calendar-toolbar h2{
    min-width:0;
    margin:0!important;
    font-size:17px!important;
    text-align:center;
    line-height:1.25;
  }
  #atlas-app.atlas-unified[data-page="calendar"] .calendar-toolbar a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    width:44px;
    min-height:44px;
    padding:0!important;
    text-align:center;
  }
  #atlas-app.atlas-unified[data-page="calendar"] .calendar-toolbar a:last-child{
    width:auto;
    padding:0 9px!important;
    font-size:13px;
  }
  #atlas-app.atlas-unified[data-page="calendar"] .calendar-date-jump{
    display:flex;
    flex-wrap:nowrap;
    align-items:flex-end;
    gap:8px;
    margin:14px 0 16px!important;
  }
  #atlas-app.atlas-unified[data-page="calendar"] .calendar-date-jump label{
    flex:1 1 auto;
    min-width:0;
    font-size:13px;
  }
  #atlas-app.atlas-unified[data-page="calendar"] .calendar-date-jump input{
    min-width:0;
    width:100%;
    margin-top:6px;
    min-height:44px;
    padding:8px;
  }
  #atlas-app.atlas-unified[data-page="calendar"] .calendar-date-jump button{
    flex:0 0 auto;
    min-height:44px;
    margin:0;
    padding:8px 12px;
    font-size:13px;
  }
  #atlas-app.atlas-unified[data-page="calendar"] .mobile-calendar-month{
    margin:0!important;
  }
  #atlas-app.atlas-unified[data-page="calendar"] .mobile-calendar-month>summary{
    padding:10px 12px;
    min-height:44px;
  }
}

/* Mobile: align the account avatar with each page heading; no overlap or empty client gap. */
@media (max-width:650px){
  /* Other sections place the portrait inside the heading zone, not on its separator. */
  #atlas-app.atlas-unified:not([data-page="home"]):not([data-page="client"]) > main.content > .atlas-profile-menu {
    top:14px!important;
    right:16px!important;
  }
  #atlas-app.atlas-unified:not([data-page="home"]):not([data-page="client"]) > main.content > header {
    padding-right:62px!important;
  }
  /* Client details use their own heading card instead of a conventional page header. */
  #atlas-app.atlas-unified[data-page="client"] > main.content > .atlas-profile-menu {
    top:32px!important;
    right:32px!important;
  }
  #atlas-app.atlas-unified[data-page="client"] .client-heading {
    margin-top:0!important;
  }
  #atlas-app.atlas-unified[data-page="client"] .client-heading > div:first-child {
    min-width:0;
    max-width:100%;
    padding-right:58px!important;
    overflow-wrap:anywhere;
  }
}

/* Keep the welcome text, panda and shortcuts compact on phones. */
@media (max-width: 650px) {
  #atlas-app#atlas-app.atlas-unified[data-page="home"][data-page] > main.content > header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 8px;
    isolation: isolate;
    min-height: 0;
    padding: 14px 16px !important;
  }
  #atlas-app#atlas-app.atlas-unified[data-page="home"][data-page] > main.content > header > div {
    grid-area: 1 / 1;
    min-width: 0;
    max-width: none !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    background: linear-gradient(90deg, #f6fbfdf5 75%, #f6fbfdbd) !important;
    z-index: 2;
  }
  #atlas-app#atlas-app.atlas-unified[data-page="home"][data-page] > main.content > header h1 {
    font-size: clamp(23px, 5vw, 30px) !important;
    overflow-wrap: anywhere;
  }
  #atlas-app#atlas-app.atlas-unified[data-page="home"][data-page] > main.content > header .atlas-header-clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  #atlas-app#atlas-app.atlas-unified[data-page="home"][data-page] > main.content > header .atlas-header-panda {
    grid-area: 1 / 2;
    position: relative;
    display: block;
    width: clamp(76px, 25vw, 110px) !important;
    max-width: 110px !important;
    z-index: 2;
  }
  #atlas-app#atlas-app.atlas-unified[data-page="home"][data-page] > main.content > header .atlas-header-panda img {
    display: block;
    width: 100% !important;
    height: auto !important;
  }
  #atlas-app#atlas-app.atlas-unified[data-page="home"][data-page] main.content .dashboard-hero {
    padding: 14px 12px !important;
  }
  #atlas-app#atlas-app.atlas-unified[data-page="home"][data-page] main.content .dashboard-hero::before {
    bottom: 0;
    height: auto;
    background-size: auto 100%;
    opacity: .18;
  }
}
