:root {
  --navy: #102d3d; --navy-2: #173d50; --teal: #087f76; --teal-dark: #066a63; --mint: #e4f2ef;
  --bg: #f5f7f7; --card: #fff; --ink: #17313e; --muted: #6c7d85; --line: #dfe6e7;
  --surgery: #16897e; --cardiology: #d1604b; --anesthesia: #8069ad; --perfusion: #3c78ad; --intensive: #b4842d;
  --shadow: 0 8px 30px rgba(18, 47, 60, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: "DM Sans", sans-serif; }
body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.auth-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 15%,#1b5260 0,transparent 33%),linear-gradient(145deg,#0d2735,#102d3d 55%,#0a4644); }.auth-panel { width: min(430px,100%); padding: 34px; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 28px 80px rgba(0,0,0,.3); }.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 31px; color: var(--navy); font: 800 20px Manrope; }.auth-brand > strong span { color: var(--teal); }.auth-brand svg { width: 23px; fill: none; stroke: white; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.auth-panel .eyebrow { color: var(--teal); }.auth-panel h1 { margin: 0; font: 800 25px Manrope; letter-spacing: -.03em; }.auth-copy { margin: 8px 0 22px; color: var(--muted); font-size: 11px; line-height: 1.5; }.auth-form { display: grid; gap: 14px; }.auth-form label { display: grid; gap: 6px; font-size: 10px; font-weight: 700; }.auth-form input,.auth-form select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d2ddde; border-radius: 8px; color: var(--ink); background: white; font-size: 12px; outline: none; }.auth-form input:focus,.auth-form select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,118,.1); }.auth-form .primary-btn { width: 100%; height: 44px; margin-top: 4px; }.auth-link { width: 100%; margin-top: 16px; padding: 5px; border: 0; color: var(--teal); background: none; font-size: 10px; font-weight: 700; }.auth-message { display: none; margin-top: 15px; padding: 10px 12px; border-radius: 7px; color: #9b4939; background: #fcece8; font-size: 10px; line-height: 1.45; }.auth-message.show { display: block; }.auth-message.success { color: #236c65; background: #e7f3f1; }.privacy-note { margin: 24px 0 0; color: #91a0a4; font-size: 8px; text-align: center; }.auth-locked > .sidebar,.auth-locked > main,.auth-locked > .bottom-nav { display: none; }.auth-ready .auth-screen { display: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; padding: 26px 18px 20px; background: var(--navy); color: #dce9ec; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 26px; color: white; font: 800 19px Manrope, sans-serif; text-decoration: none; }
.brand > span:last-child span { color: #63c9bb; }.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--teal); }
.brand svg { width: 23px; fill: none; stroke: white; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.main-nav { display: grid; gap: 5px; }.nav-item { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 12px; border-radius: 8px; color: #bcd0d6; text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.1); }.nav-icon { width: 20px; font-size: 20px; text-align: center; font-weight: 400; }.nav-count { margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 10px; background: var(--teal); text-align: center; font-size: 11px; }
.sidebar-section { margin-top: 30px; padding: 0 10px; }.eyebrow { margin: 0 0 10px; color: #87999f; font-size: 10px; line-height: 1; letter-spacing: .13em; font-weight: 700; }
.area-link { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 0; color: #bcd0d6; border: 0; background: none; font-size: 13px; text-align: left; }.area-link:hover { color: white; }.area-dot { width: 8px; height: 8px; border-radius: 50%; }.surgery { background: #37c2b2; }.cardiology { background: #e57863; }.anesthesia { background: #a58bcf; }.perfusion { background: #6aa4d7; }.intensive { background: #dbad56; }
.sidebar-profile { margin-top: auto; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; padding: 15px 6px 0; border-top: 1px solid rgba(255,255,255,.1); }.avatar { display: grid; place-items: center; border-radius: 50%; font-weight: 700; }.avatar-main { width: 36px; height: 36px; color: #103c45; background: #a9d9d3; font-size: 12px; }.sidebar-profile strong,.sidebar-profile span { display: block; }.sidebar-profile strong { color: white; font-size: 12px; }.sidebar-profile span { margin-top: 2px; color: #849fa8; font-size: 9px; }.sidebar-profile button { color: #9db1b7; border: 0; background: transparent; }
main { margin-left: 244px; min-height: 100vh; }.topbar { position: sticky; top: 0; z-index: 10; height: 72px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.case-selector { display: flex; align-items: center; gap: 10px; padding: 5px 7px 5px 5px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; text-align: left; }.case-selector:hover { background: #f2f6f6; }.case-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--teal); background: var(--mint); font: 700 10px Manrope; }.case-selector small,.case-selector strong { display: block; }.case-selector small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.case-selector strong { margin-top: 2px; font-size: 13px; }.chevron { margin-left: 5px; color: var(--muted); }.top-actions { display: flex; align-items: center; gap: 9px; }.icon-btn { position: relative; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 20px; }.notification span { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: #e06752; }
.primary-btn { height: 39px; padding: 0 17px; border: 0; border-radius: 8px; color: white; background: var(--teal); font-weight: 700; font-size: 12px; box-shadow: 0 3px 8px rgba(8,127,118,.2); }.primary-btn:hover { background: var(--teal-dark); }.primary-btn span { margin-right: 5px; font-size: 16px; }.mobile-menu { display: none; border: 0; background: none; font-size: 20px; }
.content { max-width: 1360px; margin: auto; padding: 35px 40px 70px; }.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }.breadcrumb { margin: 0 0 12px; color: var(--teal); font-size: 10px; letter-spacing: .1em; font-weight: 700; }.breadcrumb span { margin: 0 5px; color: #9babad; }.welcome-row h1 { margin: 0; font: 800 28px Manrope; letter-spacing: -.035em; }.welcome-row > div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.meeting-card { min-width: 330px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 2px 8px rgba(18,47,60,.03); }.calendar { width: 42px; height: 47px; display: grid; place-content: center; border-radius: 7px; color: var(--teal); background: var(--mint); text-align: center; }.calendar strong { font: 800 18px Manrope; line-height: 1; }.calendar span { margin-top: 3px; font-size: 8px; font-weight: 700; }.meeting-card div:nth-child(2) { flex: 1; }.meeting-card small,.meeting-card strong,.meeting-card div:nth-child(2) span { display: block; }.meeting-card small { color: var(--muted); font-size: 8px; letter-spacing: .1em; }.meeting-card strong { margin-top: 3px; font-size: 12px; }.meeting-card div:nth-child(2) span { margin-top: 3px; color: var(--muted); font-size: 10px; }.meeting-card button { width: 31px; height: 31px; border: 0; border-radius: 50%; color: var(--teal); background: #edf6f5; font-size: 16px; }
.case-overview { display: grid; grid-template-columns: 1.45fr 1fr; gap: 15px; margin-top: 30px; }.patient-card,.readiness-card { border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 2px 10px rgba(18,47,60,.025); }.patient-card { padding: 20px 22px 16px; }.patient-heading { display: flex; align-items: center; gap: 13px; }.patient-avatar { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--teal); background: var(--mint); font: 800 13px Manrope; }.status-pill { padding: 3px 7px; border-radius: 4px; color: #947021; background: #fbf0d4; font-size: 8px; font-weight: 700; letter-spacing: .06em; }.patient-heading h2 { display: inline; margin: 0 0 0 7px; font: 700 16px Manrope; }.patient-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.clinical-tags { display: grid; grid-template-columns: 1.1fr 1.35fr .65fr; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }.clinical-tags span { min-width: 0; padding-right: 12px; }.clinical-tags span + span { padding-left: 16px; border-left: 1px solid var(--line); }.clinical-tags small,.clinical-tags strong { display: block; }.clinical-tags small { margin-bottom: 5px; color: var(--muted); font-size: 8px; letter-spacing: .08em; }.clinical-tags strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.clinical-tags em { margin-left: 4px; color: #a57b25; font-size: 9px; font-style: normal; font-weight: 500; }
.readiness-card { padding: 20px 22px; }.readiness-head { display: flex; align-items: flex-end; justify-content: space-between; }.readiness-head small,.readiness-head strong { display: block; }.readiness-head small { color: var(--muted); font-size: 8px; letter-spacing: .1em; }.readiness-head strong { margin-top: 4px; font-size: 13px; }.readiness-head > span { color: var(--teal); font: 800 22px Manrope; }.progress { height: 6px; margin: 14px 0 13px; overflow: hidden; border-radius: 5px; background: #e9eeee; }.progress span { display: block; width: 80%; height: 100%; border-radius: inherit; background: var(--teal); }.readiness-list { display: flex; flex-wrap: wrap; gap: 6px; }.readiness-list span { padding: 4px 7px; border-radius: 4px; font-size: 9px; }.readiness-list .done { color: #20766d; background: #ebf5f3; }.readiness-list .pending { color: #91701f; background: #fcf4e0; }
.case-dates { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }.case-dates span + span { padding-left: 13px; border-left: 1px solid var(--line); }.case-dates small,.case-dates strong { display: block; }.case-dates small { color: var(--muted); font-size: 7px; letter-spacing: .07em; }.case-dates strong { margin-top: 4px; font-size: 9px; }.case-dates .pending-text { color: #987226; }
.team-section,.contributions-section { margin-top: 38px; }.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }.section-heading .eyebrow { margin-bottom: 7px; color: var(--teal); }.section-heading h2 { margin: 0; font: 700 18px Manrope; letter-spacing: -.02em; }.text-btn { padding: 5px; border: 0; color: var(--teal); background: none; font-size: 10px; font-weight: 700; }.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 11px; }.team-card { position: relative; overflow: hidden; padding: 17px 15px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }.team-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ""; background: var(--area-color); }.surgery-card { --area-color: var(--surgery); }.cardiology-card { --area-color: var(--cardiology); }.anesthesia-card { --area-color: var(--anesthesia); }.perfusion-card { --area-color: var(--perfusion); }.intensive-card { --area-color: var(--intensive); }.member-avatar { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--area-color); background: color-mix(in srgb, var(--area-color) 14%, white); font-size: 10px; font-weight: 700; }.member-avatar span { position: absolute; right: 0; bottom: 1px; width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: #42aa6b; }.ready-badge,.pending-badge { position: absolute; top: 18px; right: 12px; padding: 3px 6px; border-radius: 4px; font-size: 7px; letter-spacing: .06em; font-weight: 700; }.ready-badge { color: #26756e; background: #e5f2f0; }.pending-badge { color: #966e20; background: #f8edd3; }.team-card h3 { margin: 11px 0 2px; font: 700 12px Manrope; }.team-card p { height: 15px; margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }.team-card footer { margin-top: 13px; padding-top: 10px; border-top: 1px solid #edf0f0; }.team-card footer strong,.team-card footer span { display: block; font-size: 8px; }.team-card footer strong { color: var(--area-color); }.team-card footer span { margin-top: 3px; color: #99a7aa; }
.member-list { min-height: 48px; margin: 5px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 9px; line-height: 1.55; }.member-list li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.patients-section { margin-top: 38px; }.section-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; border-radius: 10px; color: var(--teal); background: var(--mint); font: 700 9px DM Sans; vertical-align: 2px; }.local-notice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #e5dabd; border-radius: 8px; color: #765e29; background: #fff9ea; font-size: 9px; }.local-notice p { margin: 0; line-height: 1.45; }.patient-registry { display: grid; gap: 9px; }.patient-row { display: grid; grid-template-columns: minmax(170px,1.1fr) minmax(180px,1.35fr) repeat(3,minmax(90px,.65fr)) auto; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: white; }.patient-row.active { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(8,127,118,.08); }.patient-identity { display: flex; align-items: center; gap: 10px; }.registry-avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--teal); background: var(--mint); font-size: 9px; font-weight: 700; }.patient-row strong,.patient-row small { display: block; }.patient-row strong { overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }.patient-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }.patient-diagnosis { min-width: 0; }.registry-date span { display: block; margin-bottom: 3px; color: #91a0a4; font-size: 7px; letter-spacing: .07em; text-transform: uppercase; }.registry-date strong { font-weight: 600; }.discharge-status { justify-self: start; padding: 4px 7px; border-radius: 5px; color: #936e20; background: #fcf3dc; font-size: 8px; font-weight: 700; }.discharge-status.closed { color: #23736a; background: #e8f3f1; }.select-patient { min-width: 78px; padding: 7px 9px; border: 1px solid var(--teal); border-radius: 7px; color: var(--teal); background: white; font-size: 8px; font-weight: 700; }.patient-row.active .select-patient { color: white; background: var(--teal); }
.patient-dialog { width: min(680px,calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; overflow: auto; border: 0; border-radius: 14px; color: var(--ink); background: white; box-shadow: 0 24px 80px rgba(10,30,40,.24); }.patient-dialog::backdrop { background: rgba(10,30,40,.42); backdrop-filter: blur(3px); }.patient-dialog form { padding: 25px 27px; }.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.dialog-header .eyebrow { color: var(--teal); }.dialog-header h2 { margin: 0; font: 800 22px Manrope; }.dialog-header button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 22px; line-height: 1; }.patient-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-top: 20px; }.patient-form-grid label { display: grid; gap: 6px; font-size: 10px; font-weight: 700; }.wide-field { grid-column: 1 / -1; }.patient-form-grid input,.patient-form-grid select,.patient-form-grid textarea { width: 100%; padding: 10px 11px; border: 1px solid #d4dfe0; border-radius: 7px; color: var(--ink); background: white; font-size: 11px; outline: none; resize: vertical; }.patient-form-grid input:focus,.patient-form-grid select:focus,.patient-form-grid textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,118,.1); }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.contributions-heading h2 span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; border-radius: 10px; color: var(--teal); background: var(--mint); font: 700 9px DM Sans; vertical-align: 2px; }.filter-wrap { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }.filter-wrap select { min-width: 140px; padding: 7px 26px 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; font-size: 10px; outline-color: var(--teal); }.feed { display: grid; gap: 9px; }.contribution { display: grid; grid-template-columns: 37px 1fr auto; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: white; transition: .2s ease; }.contribution:hover { border-color: #c8d6d7; box-shadow: 0 4px 18px rgba(18,47,60,.05); }.contribution-avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; color: var(--area-color); background: color-mix(in srgb, var(--area-color) 13%, white); font-size: 10px; font-weight: 700; }.contribution-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; font-size: 9px; }.contribution-meta strong { font-size: 10px; }.area-label { color: var(--area-color); }.dot-separator { color: #b6c0c2; }.contribution h3 { display: inline; margin: 0; font-size: 12px; }.contribution p { margin: 5px 0 0; color: #53686f; font-size: 10px; line-height: 1.55; }.contribution-side { display: flex; align-items: flex-start; gap: 8px; }.type-pill { padding: 4px 7px; border-radius: 4px; color: #53686f; background: #f0f3f3; font-size: 8px; font-weight: 600; white-space: nowrap; }.priority-pill { padding: 4px 7px; border-radius: 4px; color: #a05242; background: #fcebe7; font-size: 8px; font-weight: 700; white-space: nowrap; }.comment-btn { padding: 2px 4px; border: 0; color: #819095; background: transparent; font-size: 14px; }.load-more { width: 100%; margin-top: 10px; padding: 11px; border: 1px dashed #c9d5d6; border-radius: 8px; color: var(--teal); background: transparent; font-size: 10px; font-weight: 700; }.load-more:hover { background: white; }
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(10,30,40,.38); backdrop-filter: blur(2px); }.composer { position: fixed; top: 0; right: 0; z-index: 50; width: min(470px,100%); height: 100vh; padding: 28px 30px; overflow-y: auto; background: white; box-shadow: -12px 0 40px rgba(10,30,40,.14); transform: translateX(105%); transition: transform .25s ease; }.composer.open { transform: translateX(0); }.composer-header { display: flex; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }.composer-header .eyebrow { color: var(--teal); }.composer-header h2 { margin: 0; font: 800 24px Manrope; }.composer-header button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 23px; line-height: 1; }.composer form { display: grid; gap: 18px; padding-top: 23px; }.composer label { position: relative; display: grid; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 700; }.composer input,.composer select,.composer textarea { width: 100%; padding: 11px 12px; border: 1px solid #d4dfe0; border-radius: 8px; color: var(--ink); background: white; font-size: 12px; outline: none; }.composer textarea { resize: vertical; line-height: 1.55; }.composer input:focus,.composer select:focus,.composer textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,118,.1); }.composer label > small { position: absolute; right: 9px; bottom: 8px; color: #97a5a8; font-size: 8px; font-weight: 400; }.priority-check { grid-template-columns: 18px 1fr; padding: 13px; border-radius: 8px; background: #f5f8f8; }.priority-check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--teal); }.priority-check span strong,.priority-check span small { display: block; }.priority-check span small { margin-top: 4px; color: var(--muted); font-weight: 400; }.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 7px; }.secondary-btn { height: 39px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 12px; font-weight: 700; }.toast { position: fixed; left: 50%; bottom: 25px; z-index: 60; padding: 12px 18px; border-radius: 8px; color: white; background: var(--navy); box-shadow: var(--shadow); font-size: 11px; font-weight: 700; opacity: 0; transform: translate(-50%,20px); pointer-events: none; transition: .25s ease; }.toast.show { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 1050px) { .team-grid { grid-template-columns: repeat(3,1fr); }.case-overview { grid-template-columns: 1fr; }.meeting-card { display: none; } }
@media (max-width: 900px) { .sidebar { transform: translateX(-100%); transition: transform .25s ease; }.sidebar.open { transform: translateX(0); }.sidebar.open::after { position: fixed; inset: 0 -100vw 0 100%; background: rgba(10,30,40,.35); content:""; }.mobile-menu { display: block; }.topbar { height: 64px; padding: 0 18px; }.case-selector { margin-right: auto; margin-left: 10px; }.case-selector strong { max-width: 170px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.icon-btn { display: none; }.top-actions .primary-btn { width: 38px; padding: 0; font-size: 0; }.top-actions .primary-btn span { margin: 0; font-size: 18px; } main { margin-left: 0; }.content { padding: 26px 18px 55px; }.welcome-row h1 { font-size: 24px; }.clinical-tags { grid-template-columns: 1fr; gap: 11px; }.clinical-tags span + span { padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; }.team-grid { grid-template-columns: repeat(2,1fr); }.contributions-heading { align-items: flex-start; gap: 15px; }.contribution { grid-template-columns: 37px 1fr; }.contribution-side { grid-column: 2; }.composer { padding: 23px 20px; } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; }.section-heading { align-items: flex-start; }.contributions-heading { flex-direction: column; }.filter-wrap { width: 100%; }.filter-wrap select { flex: 1; }.patient-heading h2 { display: block; margin: 5px 0 0; }.status-pill { display: inline-block; }.readiness-list { display: grid; grid-template-columns: 1fr 1fr; } }

/* Experiencia de aplicación instalable */
.install-card { position: relative; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; margin-bottom: 20px; padding: 13px 42px 13px 14px; border-radius: 12px; color: white; background: linear-gradient(125deg,var(--navy),var(--navy-2)); box-shadow: var(--shadow); }
.install-card[hidden] { display: none; }.install-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--teal); font-size: 20px; }.install-card strong,.install-card p { display: block; margin: 0; }.install-card strong { font-size: 12px; }.install-card p { margin-top: 3px; color: #bad0d6; font-size: 9px; }.install-action { padding: 8px 13px; border: 0; border-radius: 7px; color: var(--navy); background: white; font-size: 10px; font-weight: 700; }.install-close { position: absolute; top: 8px; right: 9px; border: 0; color: #a9c0c6; background: none; font-size: 17px; }.bottom-nav { display: none; }

@media (max-width: 900px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .mobile-menu { display: none; }.topbar { height: calc(62px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; }.case-selector { margin-left: 0; }.case-icon { width: 36px; height: 36px; border-radius: 10px; }.case-selector strong { max-width: 190px; }.top-actions .primary-btn { display: none; }.content { padding: 22px 16px 30px; }
  .bottom-nav { position: fixed; inset: auto 0 0 0; z-index: 30; height: calc(66px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr 66px 1fr 1fr; align-items: start; padding: 7px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -6px 24px rgba(18,47,60,.08); backdrop-filter: blur(16px); }
  .bottom-item { position: relative; display: grid; place-items: center; gap: 2px; padding: 4px 0; color: #84949a; text-decoration: none; }.bottom-item span { font-size: 20px; line-height: 20px; }.bottom-item small { font-size: 8px; font-weight: 600; }.bottom-item.active { color: var(--teal); }.bottom-item em { position: absolute; top: 0; left: calc(50% + 9px); min-width: 15px; height: 15px; padding: 0 4px; border: 2px solid white; border-radius: 8px; color: white; background: #df6652; font-size: 7px; font-style: normal; line-height: 11px; text-align: center; }
  .bottom-create { align-self: start; width: 50px; height: 50px; margin: -20px auto 0; border: 4px solid var(--bg); border-radius: 50%; color: white; background: var(--teal); box-shadow: 0 5px 14px rgba(8,127,118,.3); font-size: 26px; line-height: 1; }.toast { bottom: calc(82px + env(safe-area-inset-bottom)); }.composer { padding: calc(23px + env(safe-area-inset-top)) 20px calc(23px + env(safe-area-inset-bottom)); }
  .patient-row { grid-template-columns: 1fr 1fr; }.patient-diagnosis { grid-column: 2; grid-row: 1 / span 2; }.registry-date { padding-top: 8px; border-top: 1px solid #edf0f0; }.select-patient { justify-self: end; }
}

@media (max-width: 480px) {
  .auth-screen { align-items: end; padding: 0; }.auth-panel { max-height: calc(100vh - env(safe-area-inset-top)); padding: 27px 20px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 20px 20px 0 0; }.auth-brand { margin-bottom: 24px; }
  .install-card { grid-template-columns: 38px 1fr; }.install-icon { width: 38px; height: 38px; }.install-action { grid-column: 1 / -1; width: 100%; }.team-grid { display: flex; margin-right: -16px; padding-right: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }.team-card { min-width: 175px; scroll-snap-align: start; }.filter-wrap select { min-height: 40px; }.patient-card,.readiness-card { border-radius: 14px; }.contribution { padding: 15px 13px; }.contribution p { font-size: 11px; }.composer { width: 100%; }.form-actions { position: sticky; bottom: 0; margin: 0 -20px -23px; padding: 13px 20px calc(13px + env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--line); }.form-actions button { flex: 1; min-height: 44px; }
  .patients-section .section-heading { align-items: center; }.patients-section .section-heading .primary-btn { width: 40px; padding: 0; font-size: 0; }.patients-section .section-heading .primary-btn span { margin: 0; font-size: 18px; }.patient-row { grid-template-columns: 1fr 1fr; padding: 14px; }.patient-identity,.patient-diagnosis { grid-column: 1 / -1; }.patient-diagnosis { grid-row: auto; padding-bottom: 7px; border-bottom: 1px solid #edf0f0; }.discharge-status { align-self: end; }.select-patient { grid-column: 1 / -1; justify-self: stretch; min-height: 38px; }.patient-dialog { width: 100%; max-height: calc(100vh - env(safe-area-inset-top)); margin: env(safe-area-inset-top) 0 0; border-radius: 16px 16px 0 0; }.patient-dialog form { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }.patient-form-grid { grid-template-columns: 1fr; }.wide-field { grid-column: auto; }.dialog-actions { position: sticky; bottom: 0; margin: 20px -18px calc(-18px - env(safe-area-inset-bottom)); padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); background: white; }.dialog-actions button { flex: 1; min-height: 44px; }
  .case-dates { grid-template-columns: 1fr 1fr; gap: 10px 0; }.case-dates span:nth-child(3) { padding-left: 0; border-left: 0; }.case-dates span:nth-child(n+3) { padding-top: 9px; border-top: 1px solid #edf0f0; }
}
