@media screen {
  .asd-save-bar[data-state="idle"]{display:none}
  .top{gap:16px;flex-wrap:wrap}.top>div:first-child{margin-right:auto}
  .clinic-profile{position:relative;flex:0 1 auto;max-width:100%;z-index:8}
  .clinic-profile summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;padding:7px 11px;border:1px solid #d8e2da;border-radius:12px;background:#fff;color:#20493d;min-height:44px;font-size:13px;font-weight:600}
  .clinic-profile summary::-webkit-details-marker{display:none}.clinic-profile summary:focus-visible{outline:2px solid #b58a2b;outline-offset:3px}
  .clinic-profile summary img{width:30px;height:30px;border-radius:8px;object-fit:contain}.clinic-profile summary>span:not(.profile-chevron){max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .profile-chevron{transition:transform .18s}.clinic-profile[open] .profile-chevron{transform:rotate(180deg)}
  .clinic-profile-panel{position:absolute;right:0;top:calc(100% + 9px);width:280px;max-width:calc(100vw - 32px);padding:17px;background:#fff;border:1px solid #d8e2da;border-radius:15px;box-shadow:0 18px 48px #17312f26;display:grid;gap:5px;animation:modalIn .18s ease}
  .clinic-profile-panel>small{color:#71807c;font-size:11px}.clinic-profile-panel>strong{color:#20493d;overflow-wrap:anywhere;margin:2px 0 12px}.clinic-profile-panel>a,.clinic-profile-exit{display:block;text-align:left;padding:11px 9px;color:#20493d;text-decoration:none;border:0;border-radius:8px;background:transparent;font:inherit;cursor:pointer}.clinic-profile-panel>a:hover,.clinic-profile-exit:hover{background:#edf3ed}.clinic-profile-plan{padding:0 9px 12px}.clinic-profile-exit{border-top:1px solid #e5e7e1;border-radius:0;color:#9a3737}
  html[data-theme=dark] .clinic-profile summary,html[data-theme=dark] .clinic-profile-panel{background:#20362e;border-color:#40564d;color:#e3ece9}html[data-theme=dark] .clinic-profile-panel>strong,html[data-theme=dark] .clinic-profile-panel>a{color:#e3ece9}html[data-theme=dark] .clinic-profile-panel>small{color:#b0c4bb}html[data-theme=dark] .clinic-profile-panel>a:hover,html[data-theme=dark] .clinic-profile-exit:hover{background:#29483c}html[data-theme=dark] .clinic-profile-exit{color:#f2b7ac}
  @media(max-width:600px){.top>div:first-child{flex:1 1 100%}.clinic-profile{order:4;margin-left:auto}.clinic-profile summary>span:not(.profile-chevron){max-width:105px}.top>.primary{order:3;min-height:44px}}
  @media(prefers-reduced-motion:reduce){.clinic-profile-panel{animation:none}.profile-chevron{transition:none}}
  .asd-save-bar a{color:#236454;text-underline-offset:3px}
  .hero .mark:after{filter:none}
  html[data-theme=dark]{color-scheme:dark;--ink:#e3ece9;--muted:#b0c4bb;--line:#40564d;--cream:#12221e;--sage:#29483c}
  html[data-theme=dark] body{background:#12221e;color:var(--ink)}
  html[data-theme=dark] .card,html[data-theme=dark] .panel,html[data-theme=dark] .modal,html[data-theme=dark] .slot,html[data-theme=dark] .agenda-list-area,html[data-theme=dark] .schedule-card,html[data-theme=dark] .patient-card,html[data-theme=dark] .invoice-card,html[data-theme=dark] .stat{background:#20362e;color:var(--ink);border-color:var(--line)}
  html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#172c24;color:var(--ink);border-color:var(--line)}
  html[data-theme=dark] .outline,html[data-theme=dark] .asd-save-bar button{background:#20362e;color:#d7e9df;border-color:#526c60}
  html[data-theme=dark] label,html[data-theme=dark] .muted,html[data-theme=dark] th,html[data-theme=dark] .slot time,html[data-theme=dark] .slot .time{color:#bbd1c7}
  html[data-theme=dark] td,html[data-theme=dark] th{border-color:var(--line)}html[data-theme=dark] th{background:#20362e}
  html[data-theme=dark] a{color:#b6e5cb}html[data-theme=dark] #recipe-preview{color:#111;background-color:white}
  html[data-theme=dark] .stat b,html[data-theme=dark] .text-btn{color:#d7e9df}
  html[data-theme=dark] .row,html[data-theme=dark] .patient,html[data-theme=dark] .calendar-mini,html[data-theme=dark] .agenda-head,html[data-theme=dark] .bottom{background:#20362e;color:var(--ink);border-color:var(--line)}
}
