/* Medical devices: existing Stageshow kit, 832×520 stage and native CSS fit.
   Page-local artwork only; all content and status rows stay within the stage. */
.med-ui {--med-line:#E7E7EF;--med-muted:#71717C;--med-purple:#5B3EB8;}
.med-ui .ss-stage {font-size:12px;line-height:1.5;}
.med-ui strong,.med-ui b {font-weight:500;}
.med-ui .med-button {display:inline-flex;align-items:center;justify-content:center;gap:12px;background:#5B3EB8;color:#fff;border-radius:5px;padding:7px 12px;font-size:11px;line-height:16px;white-space:nowrap;}
.med-ui .med-label {font-size:12px;line-height:18px;font-weight:500;margin-bottom:7px;}
.med-ui .med-risk {position:absolute;inset:32px 40px;width:752px;height:456px;box-shadow:var(--ss-shadow-hero);border-radius:18px;display:block;background:#fff;}
.med-ui .med-risk__bar {height:50px;display:flex;align-items:center;gap:12px;padding:0 20px;border-bottom:1px solid var(--med-line);}
.med-ui .med-risk__bar strong {font-size:17px;}
.med-ui .med-risk__bar img {width:25px;height:26px;}
.med-ui .med-running {margin-left:auto;color:#5B3EB8;font-size:10px;}
.med-ui .med-risk__body {padding:14px 20px;}
.med-ui .med-risk__metric {position:relative;border:1px solid var(--med-line);box-shadow:0 2px 4px #20243A06;border-radius:8px;height:72px;margin-bottom:14px;padding:6px 10px;color:#71717C;font-size:10px;}
.med-ui .med-risk__metric strong {display:block;font-size:20px;line-height:23px;color:#E5484D;}
.med-ui .med-risk__metric small {font-size:8px;line-height:11px;display:block;}
.med-ui .med-risk__metric em {font-style:normal;color:#E5484D;background:#FFF0F1;padding:0 4px;margin-right:4px;}
.med-ui .med-risk__metric svg {position:absolute;right:16px;top:9px;width:110px;height:45px;}
.med-ui .med-risk__grid {display:grid;grid-template-columns:482px 214px;gap:16px;}
.med-ui .med-site {border:1px solid #DEDFE9;border-radius:9px;overflow:hidden;height:246px;}
.med-ui .med-address {font-size:8px;line-height:12px;color:#71717C;letter-spacing:normal;}
.med-ui .med-site > .med-address {height:25px;display:flex;align-items:center;justify-content:space-between;padding:0 9px;border-bottom:1px solid var(--med-line);}
.med-ui .med-address > span {color:#5B3EB8;background:#F2EFFA;padding:1px 4px;border-radius:3px;}
.med-ui .med-site__body {padding:10px;}
.med-ui .med-site__body > strong {display:block;font-size:11px;margin-bottom:8px;}
.med-ui .med-site__columns {display:grid;grid-template-columns:198px 1fr;gap:16px;}
.med-ui .med-site__columns img {display:block;width:198px;height:130px;object-fit:cover;object-position:top;border-radius:4px;}
.med-ui .med-contact {font-size:13px;margin-top:9px;}
.med-ui .med-site label {display:block;font-size:9px;line-height:13px;margin-bottom:4px;color:#55555F;}
.med-ui .med-input {border:1px solid #DEDFE9;border-radius:3px;padding:7px;font-size:8px;color:#71717C;margin-bottom:8px;}
.med-ui .med-site .med-button {font-size:8px;padding:5px 10px;line-height:12px;}
.med-ui .med-form-error {margin-top:10px;padding:9px;border:1px solid #FFC5CB;background:#FFF6F7;border-radius:4px;color:#CF3943;}
.med-ui .med-form-error strong {display:block;font-size:10px;line-height:14px;margin-bottom:3px;}
.med-ui .med-form-error span {font-size:8px;}
.med-ui .med-discovery {position:relative;border:1px solid #DEDFE9;border-radius:10px;margin-top:0;height:271px;padding:14px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;}
.med-ui .med-discovery > strong {font-size:13px;}
.med-ui .med-discovery > span {color:#71717C;font-size:10px;}
.med-ui .med-discovery b,.med-ui .med-discovery > .med-danger {color:#CF3943;font-size:11px;}
.med-ui .med-discovery__bottom {margin-top:auto;width:100%;}
.med-ui .med-discovery__bottom > div {display:flex;justify-content:space-between;background:#F7F7F9;color:#71717C;border-radius:5px;padding:7px 6px;font-size:9px;}
.med-ui .med-discovery .med-button {margin-top:14px;display:flex;justify-content:space-between;}
.med-ui .med-button i {font-style:normal;font-size:16px;}
.med-ui .med-console {position:absolute;left:32px;top:32px;width:768px;height:456px;box-shadow:var(--ss-shadow-hero);}
.med-ui .med-tree {width:174px;flex:none;}
.med-ui .med-tree__root {padding:24px 12px 12px;font-size:13px;white-space:nowrap;}
.med-ui .med-tree__root > span {font-size:11px;}
.med-ui .med-tree__children {margin-left:24px;padding-left:8px;border-left:1px solid var(--med-line);}
.med-ui .med-tree__branch {font-size:12px;display:flex;gap:8px;padding:10px 8px;margin:2px 8px 2px 0;min-height:38px;}
.med-ui .med-tree__branch > span:nth-child(2) {font-size:10px;}
.med-ui .med-tree__branch > span:last-child {margin-left:auto;}
.med-ui .med-tree__branch[data-selected] {background:#EDE9F9;color:#5B3EB8;}
.med-ui .ss-window__heading {font-size:13px;}
.med-ui .ss-window__bar {height:42px;min-height:42px;padding-inline:18px;}
.med-ui .med-console__body {background:#F4F5F8;padding:16px;height:414px;}
.med-ui .med-panel {border-radius:8px;background:#fff;padding:14px;}
.med-ui .med-panel + .med-panel {margin-top:12px;}
.med-ui .med-panel-title {font-size:13px;line-height:20px;font-weight:500;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;}
.med-ui .med-panel-title > span {font-size:10px;color:#71717C;font-weight:400;}
.med-ui .med-plan-head,.med-ui .med-plan-row {display:grid;grid-template-columns:1.8fr 1fr 1fr;gap:12px;padding:9px 10px;font-size:11px;border-bottom:1px solid #EFEFF3;}
.med-ui .med-plan-head {background:#F7F7F9;color:#71717C;padding-block:6px;border-radius:4px;}
.med-ui .med-plan-row:last-child {border:0;}
.med-ui .med-plan-row > span:last-child {color:#5B3EB8;}
.med-ui .med-log {padding:12px;}
.med-ui .med-log-row {display:grid;grid-template-columns:55px 48px 64px 1fr 52px 26px;gap:7px;align-items:center;padding:10px 0;border-bottom:1px solid #EFEFF3;font-size:9px;line-height:14px;}
.med-ui .med-log-row:last-child {border:0;}
.med-ui .med-log-head {font-size:9px;color:#71717C;padding-block:6px;background:#F7F7F9;}
.med-ui .med-log-row > span:last-child {color:#5B3EB8;}
.med-ui .med-badge {display:inline-flex;align-items:center;gap:4px;white-space:nowrap;}
.med-ui .med-badge:before {content:'';width:6px;height:6px;flex:none;border-radius:50%;background:var(--status);}
.med-ui .med-badge--critical {--status:#E5484D;color:#C63E45;}
.med-ui .med-badge--warning {--status:#E4B346;color:#98721B;}
.med-ui .med-badge--info {--status:#5396DE;color:#3F73AB;}
.med-ui .med-badge--good {color:#347C58;background:#EAF5EF;padding:2px 6px;border-radius:4px;font-size:9px;}
.med-ui .med-badge--good:before {display:none;}
.med-ui .med-menu {width:180px;flex:none;}
.med-ui .med-menu__brand {display:flex;align-items:center;gap:10px;padding:22px 16px 18px;}
.med-ui .med-menu__brand img {width:24px;height:25px;flex:none;}
.med-ui .med-menu__brand strong {font-size:13px;line-height:20px;}
.med-ui .med-menu__items {padding:0 10px;}
.med-ui .med-menu__items .ss-row {padding:10px 12px;min-height:38px;font-size:12px;margin-bottom:4px;}
.med-ui .med-menu__items .ss-row[data-selected] {color:#5B3EB8;background:#EDE9F9;}
.med-ui .med-workflow .med-console__body {padding:14px;}
.med-ui .med-workflow .med-panel {padding:12px 14px;}
.med-ui .med-workflow .med-panel-title {margin-bottom:6px;}
.med-ui .med-panel-title .med-locate {background:#EDE9F9;color:#5B3EB8;padding:3px 9px;border-radius:4px;}
.med-ui .med-metadata {display:flex;align-items:center;gap:7px;font-size:9px;line-height:16px;color:#71717C;padding:5px 0 9px;white-space:nowrap;border-bottom:1px solid #EFEFF3;}
.med-ui .med-metadata > span:not(.med-badge) {color:#D4D4DE;}
.med-ui .med-row {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;font-size:11px;line-height:16px;}
.med-ui .med-record .med-row + .med-row {border-top:1px solid #EFEFF3;}
.med-ui .med-snapshot {display:grid;grid-template-columns:1fr 148px;gap:16px;height:148px;overflow:hidden;}
.med-ui .med-snapshot img {width:148px;height:124px;object-fit:cover;object-position:top;border-radius:4px;}
.med-ui .med-snapshot .med-address {margin:10px 0 12px;}
.med-ui .med-snapshot strong {display:block;font-size:13px;line-height:20px;margin-bottom:4px;}
.med-ui .med-snapshot span {font-size:10px;color:#71717C;}
/* Lucide folder/globe/chevron paths from the retained kit dependency (ISC). */
.med-ui .med-icon {display:block;width:14px;height:14px;flex:none;}
.med-ui .med-tree__root {display:flex;align-items:center;gap:6px;font-size:12px;padding-inline:10px;}
.med-ui .med-tree__root > .med-icon:first-child {width:10px;height:10px;}
.med-ui .med-tree__branch {gap:7px;padding-inline:7px;}
.med-ui .med-tree__branch > span {font-size:11px;white-space:nowrap;}
.med-ui .med-tree__branch > .med-icon:last-child {width:10px;height:10px;margin-left:auto;}
.med-ui .med-tree__branch:not([data-selected]) > .med-icon:last-child {transform:rotate(-90deg);}
.med-ui .med-menu__items .ss-row {justify-content:flex-start;text-align:left;}
.med-ui .med-menu__items .ss-row > span {margin:0;}
.med-ui .med-snapshot {height:128px;}
.med-ui .med-snapshot img {height:104px;}
.med-ui .med-menu__items .ss-row {grid-template-columns:minmax(0,1fr);}
.med-ui .med-menu__items .ss-row__body {justify-self:stretch;}
.med-ui .med-menu__items .ss-row__title {font-size:12px;line-height:18px;}
/* Match the inspection artwork sidebar: regular weight for name and menus. */
.med-ui .med-menu__brand strong,
.med-ui .med-menu__items .ss-row__title,
.med-ui .med-menu__items .ss-text {font-weight:400;}
