:root{
  --bg:#f5f7fa;--panel:#fff;--text:#233246;--muted:#6f7d8d;--brand:#4f6f8f;--brand2:#8ea6bc;
  --nav:#f4f1f7;--line:#e3e8ee;--soft:#eef3f7;--soft2:#edf6f3;--warn:#fff6df;--danger:#a94c5e;
  --patient:#7b6b9e;--pet:#8b73a8;--shadow:0 10px 28px rgba(32,50,70,.07);--radius:18px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.strong{font-weight:800}
#authGate{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 10%,#e8f0ff,transparent 34%),linear-gradient(135deg,#f8fbff,#f4f7fb)}
.auth-card{width:min(960px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:0 28px 80px rgba(38,59,90,.14);overflow:hidden;display:grid;grid-template-columns:1.1fr .9fr}
.auth-hero{padding:42px;background:linear-gradient(135deg,#263b5a,#638bd4);color:#fff}.auth-hero h1{font-size:38px;margin:12px 0}.auth-hero p{font-size:17px;line-height:1.55;opacity:.88}.auth-panel{padding:34px}.brand-mark{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#9ab8ef,#557fd1);font-size:28px;box-shadow:0 10px 24px rgba(0,0,0,.16)}
.auth-tabs{display:flex;gap:8px;margin:16px 0}.auth-tabs button{flex:1;border:1px solid var(--line);background:#fff;padding:10px;border-radius:12px;font-weight:750;color:var(--text)}.auth-tabs button.active{border-color:var(--brand);color:var(--brand);background:var(--soft)}
.field{display:grid;gap:7px;margin-bottom:13px}.field label{font-size:13px;font-weight:800}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff;color:var(--text)}.field textarea{min-height:108px;resize:vertical}.password-wrap{position:relative}.password-wrap input{padding-right:46px}.password-eye{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;color:var(--muted);border-radius:9px;display:grid;place-items:center}.password-eye:hover{background:var(--soft);color:var(--brand)}.auth-link{border:0;background:transparent;color:var(--brand);padding:8px 0;font-weight:750;text-align:left}.auth-link:hover{text-decoration:underline}
.btn{border:0;background:var(--brand);color:#fff;padding:10px 14px;border-radius:12px;font-weight:800}.btn.secondary{background:#fff;color:var(--brand);border:1px solid var(--brand)}.btn.ghost{background:#fff;color:var(--text);border:1px solid var(--line)}.btn.danger{background:#fff;color:var(--danger);border:1px solid #e8c7ce}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-row{display:flex;gap:9px;flex-wrap:wrap}
.notice{padding:11px 12px;border-radius:12px;background:var(--soft);font-size:13px;line-height:1.45}.notice.warn{background:var(--warn)}.notice.error{background:#fff0f2;color:#8f3044}.notice.ok{background:#f3ede4;color:#011b32}
.demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.demo-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:13px;text-align:left}.demo-card:hover{border-color:var(--brand);box-shadow:0 8px 20px rgba(84,127,210,.12)}
.app{min-height:100vh;display:grid;grid-template-columns:270px 1fr}.sidebar{background:var(--nav);color:#403a4c;padding:22px 16px;position:sticky;top:0;height:100vh;overflow:auto;border-right:1px solid #e2dce8}.logo{display:flex;align-items:center;gap:11px;margin-bottom:18px}.logo h1{font-size:18px;margin:0}.logo small{opacity:.66}.pilot{padding:11px;border:1px solid #e3dcea;background:#fbf9fd;border-radius:13px;font-size:12px;line-height:1.4;margin-bottom:16px;color:#645b72}.nav{display:grid;gap:6px}.nav button{border:0;background:transparent;color:#4b4458;opacity:.9;border-radius:11px;padding:10px 11px;text-align:left;display:flex;gap:9px;align-items:center}.nav button.active,.nav button:hover{background:#e9e2f0;color:#5e4f72;opacity:1}.sidebar-bottom{margin-top:18px;border-top:1px solid #e1d9e8;padding-top:14px;display:grid;gap:10px}.sidebar select{width:100%;border:1px solid #e1d9e8;border-radius:11px;padding:9px;background:#fff;color:var(--text)}
.main{padding:26px}.topbar{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:20px}.topbar h2{margin:0;font-size:28px}.topbar p{margin:5px 0 0;color:var(--muted)}.top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.pill{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 10px}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--brand);font-weight:900}.status-dot{width:8px;height:8px;border-radius:50%;background:#35a56f}.status-dot.demo{background:#e8a83e}.request-pill{position:relative;display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;color:var(--text);border-radius:999px;padding:8px 11px;font-weight:800}.request-pill:hover{border-color:#c6b8d3;background:#fbf9fd}.account-menu-wrap{position:relative}.account-trigger{cursor:pointer;font:inherit;color:var(--text)}.account-trigger .chevron{font-size:11px;color:var(--muted);margin-left:2px}.account-menu{position:absolute;right:0;top:calc(100% + 8px);width:235px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 44px rgba(42,53,69,.16);padding:8px;z-index:80}.account-menu.hidden{display:none}.account-menu-head{padding:9px 10px 10px;border-bottom:1px solid var(--line);margin-bottom:5px}.account-menu-head strong{display:block}.account-menu-head span{display:block;font-size:11px;color:var(--muted);margin-top:3px;overflow:hidden;text-overflow:ellipsis}.account-menu button{width:100%;border:0;background:transparent;border-radius:10px;padding:10px 11px;text-align:left;color:var(--text);font-weight:750;cursor:pointer;display:flex;align-items:center;gap:9px}.account-menu button:hover{background:#f6f8fb}.account-menu button.danger{color:#a13f52}.event-card-actions{display:flex;gap:6px;align-items:center;margin-left:auto}.event-card-actions .btn{padding:6px 8px;font-size:11px}.event-status-cancelled{text-decoration:line-through;opacity:.62}.scope-choice{display:grid;gap:8px;margin-top:12px}.scope-choice .btn{text-align:left;justify-content:flex-start}.request-badge{position:absolute;right:-4px;top:-6px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#d84c62;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:900;box-shadow:0 0 0 3px var(--bg)}.request-list{display:grid;gap:10px}.request-card{border:1px solid var(--line);border-radius:15px;padding:14px;background:#fff}.request-card.pending{border-color:#ecd5a4;background:#fffdf7}.request-card .request-title{font-weight:900;margin-bottom:5px}.request-card .request-meta{font-size:12px;color:var(--muted);line-height:1.45}.request-card .btn-row{margin-top:11px}.request-section-title{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:900;margin:14px 0 8px}
.hero{background:linear-gradient(135deg,#334f78,#6f95d8);color:#fff;border-radius:23px;padding:24px;display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:18px}.hero.patient{background:linear-gradient(135deg,#7755bd,#c5b2eb)}.hero h3{font-size:25px;margin:0 0 8px}.hero p{margin:0;max-width:780px;opacity:.86;line-height:1.48}
.grid{display:grid;gap:16px}.cols2{grid-template-columns:1.2fr .8fr}.cols3{grid-template-columns:repeat(3,1fr)}.cols4{grid-template-columns:repeat(4,1fr)}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}.card h3{margin:0 0 13px;font-size:17px}.card h4{margin:0 0 7px}.stat{font-size:29px;font-weight:900}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.section-head h3{margin:0}
.kpi{padding:16px}.kpi .label{font-size:12px;color:var(--muted);font-weight:700}.kpi .value{font-size:28px;font-weight:900;margin-top:4px}.kpi .foot{font-size:11px;color:var(--muted);margin-top:3px}
.list{display:grid;gap:10px}.row{border:1px solid var(--line);border-radius:14px;padding:13px;background:#fff;display:flex;justify-content:space-between;gap:12px;align-items:center}.row-main{display:flex;gap:11px;align-items:center;min-width:0}.mini-avatar{width:40px;height:40px;border-radius:13px;background:var(--soft);display:grid;place-items:center;font-weight:850;color:var(--brand);flex:0 0 auto}.row-title{font-weight:850}.row-sub{font-size:12px;color:var(--muted);margin-top:2px}.badge{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;background:var(--soft);color:var(--brand)}.badge.green{background:#eee7dc;color:#011b32}.badge.purple{background:#f1ecfb;color:#7254b6}.badge.gray{background:#f1f3f6;color:#687386}.badge.warn{background:#fff3d5;color:#88631c}.badge.red{background:#fff0f2;color:#a23d51}
.timeline{display:grid;gap:12px}.update{border:1px solid var(--line);border-radius:15px;padding:14px;background:#fff}.update-head{display:flex;justify-content:space-between;gap:10px}.update-author{font-weight:900}.update p{line-height:1.5;margin:8px 0}.meta{font-size:11px;color:var(--muted)}
.network-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.network-card{width:100%;border:1px solid var(--line);border-radius:16px;padding:15px;background:#fff;display:flex;align-items:center;gap:12px;text-align:left;color:var(--text)}.network-card-body{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.network-card-body strong{font-size:15px}.network-card-body small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.network-arrow{font-size:26px;color:var(--muted);font-weight:300}.compact-update{cursor:pointer}.compact-update:hover{border-color:#c7cfda;background:#fcfcfd}@media(max-width:760px){.network-grid{grid-template-columns:1fr}}
.network-card{cursor:pointer;transition:.18s transform,.18s border-color}.network-card:hover{transform:translateY(-2px);border-color:#b7c8e6}.network-card.active{border-color:var(--brand);box-shadow:0 0 0 2px rgba(84,127,210,.12),var(--shadow)}
.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.cal-head{font-size:11px;font-weight:850;color:var(--muted);text-align:center}.day{min-height:88px;border:1px solid var(--line);border-radius:12px;padding:7px;background:#fff}.day.other{opacity:.45}.day.today{box-shadow:0 0 0 2px var(--brand) inset}.day-num{font-size:11px;font-weight:850;margin-bottom:5px}.event{font-size:10px;padding:4px 5px;border-radius:7px;background:var(--soft);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event.med{background:#eaf7f3}.event.pro{background:#f1ecfb}
.dashboard-quick{margin-bottom:16px}.quick-card .quick-count{margin-left:auto;min-width:28px;height:28px;border-radius:999px;background:var(--soft);color:var(--brand);display:inline-grid;place-items:center;font-weight:900;font-size:12px}.quick-card .quick-meta{font-size:12px;color:var(--muted);margin-top:3px}.dashboard-events{display:grid;grid-template-columns:260px 1fr;gap:18px;align-items:start}.mini-calendar-wrap{border-right:1px solid var(--line);padding-right:18px}.mini-calendar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.mini-calendar-title{font-weight:850;font-size:14px}.mini-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.mini-week{font-size:9px;font-weight:850;color:var(--muted);text-align:center;padding-bottom:3px}.mini-day{aspect-ratio:1;border-radius:8px;display:grid;place-items:center;font-size:10px;position:relative;background:#fbfcfe}.mini-day.other{opacity:.26}.mini-day.today{box-shadow:0 0 0 1.5px var(--brand) inset;font-weight:900}.mini-day.has-event{font-weight:900}.mini-day.has-event:after{content:'';width:4px;height:4px;border-radius:50%;background:var(--brand);position:absolute;bottom:3px}.mini-day.has-pet-event:after{background:var(--patient)}@media(max-width:900px){.dashboard-events{grid-template-columns:1fr}.mini-calendar-wrap{border-right:0;border-bottom:1px solid var(--line);padding-right:0;padding-bottom:16px}}
.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.module{border:1px solid var(--line);border-radius:18px;padding:17px;background:linear-gradient(145deg,#fff,#f7f9ff)}.module-icon{font-size:25px;margin-bottom:8px}.module h3{margin:0 0 6px}.module p{margin:0;color:var(--muted);font-size:13px;line-height:1.4}
.thread-layout{display:grid;grid-template-columns:320px 1fr;gap:14px}.thread-list{display:grid;gap:8px}.thread-item{border:1px solid var(--line);border-radius:12px;padding:11px;cursor:pointer}.thread-item.active{border-color:var(--brand);background:var(--soft)}.messages{height:420px;overflow:auto;border:1px solid var(--line);border-radius:14px;padding:13px;background:#fbfcfe;display:flex;flex-direction:column;gap:9px}.message{max-width:78%;padding:9px 11px;border-radius:13px;background:#fff;border:1px solid var(--line)}.message.me{align-self:flex-end;background:var(--soft);border-color:#d4e1fa}.message .time{font-size:10px;color:var(--muted);margin-top:3px}
.dropzone{border:2px dashed #cdd8e8;border-radius:15px;padding:22px;text-align:center;background:#fbfcfe}.progress{height:7px;background:#edf1f6;border-radius:999px;overflow:hidden}.progress span{display:block;height:100%;background:var(--brand)}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:10px;border-bottom:1px solid var(--line);text-align:left;font-size:13px}.table th{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
.empty{text-align:center;padding:34px;color:var(--muted)}.empty .icon{font-size:34px;margin-bottom:8px}.split-actions{display:flex;gap:7px;flex-wrap:wrap}.search{width:100%;border:1px solid var(--line);border-radius:12px;padding:10px 11px}.divider{height:1px;background:var(--line);margin:15px 0}
.overlay{display:none;position:fixed;inset:0;background:rgba(26,42,65,.5);z-index:50;padding:20px;align-items:center;justify-content:center}.overlay.active{display:flex}.modal{width:min(680px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:22px;box-shadow:0 28px 80px rgba(0,0,0,.24);padding:21px}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.modal-head h3{margin:0}.close{border:0;background:#eff3f8;width:35px;height:35px;border-radius:10px}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.check{display:flex;gap:8px;align-items:flex-start;border:1px solid var(--line);border-radius:11px;padding:9px}.check input{width:auto;margin-top:3px}
.toast-wrap{position:fixed;right:18px;bottom:18px;z-index:100;display:grid;gap:8px}.toast{background:#253750;color:#fff;padding:11px 13px;border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.2);max-width:360px;font-size:13px}.toast.error{background:#8e3044}.toast.ok{background:#236d60}
.footer-note{font-size:11px;color:var(--muted);margin-top:22px;text-align:center}.privacy-list{display:grid;gap:9px}.privacy-item{border:1px solid var(--line);border-radius:13px;padding:12px}.privacy-item strong{display:block;margin-bottom:4px}

.ui-icon{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.ui-icon.sm{width:17px;height:17px}.ui-icon.lg{width:28px;height:28px}.icon-tile{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--soft);color:var(--brand);flex:0 0 auto}.icon-tile.pet{background:#f2edf7;color:var(--pet)}.icon-tile.warm{background:#fff5e8;color:#8b6b3f}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.quick-card{border:1px solid var(--line);border-radius:16px;padding:15px;background:#fff;display:flex;gap:12px;align-items:flex-start;text-align:left;color:var(--text);transition:.16s transform,.16s border-color,.16s box-shadow}.quick-card:hover{transform:translateY(-1px);border-color:#c6d1dc;box-shadow:0 8px 20px rgba(32,50,70,.06)}.quick-card h4{margin:0 0 4px;font-size:15px}.quick-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.4}.plan-strip{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.usage{height:9px;background:#eef1f4;border-radius:999px;overflow:hidden;margin-top:8px}.usage>span{display:block;height:100%;background:var(--brand);border-radius:999px}.workplace-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.workplace-row:last-child{border-bottom:0}.pet-hero{background:linear-gradient(135deg,#7f68a0,#b39acb);color:#fff}.pet-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;background:#f2edf7;color:#765e95;font-size:11px;font-weight:800}.prevention-card{border:1px solid var(--line);border-radius:15px;padding:14px;background:#fff}.prevention-card .dates{display:flex;gap:10px;flex-wrap:wrap;margin-top:9px}.date-chip{font-size:11px;border-radius:999px;padding:4px 8px;background:#f2f4f7;color:var(--muted)}.date-chip.due{background:#fff4d8;color:#7c621f}.date-chip.ok{background:#eaf6f1;color:#2f7060}.date-chip.late{background:#fff0f2;color:#9a4052}.nav-section-label{font-size:10px;letter-spacing:.08em;text-transform:uppercase;opacity:.5;margin:16px 10px 6px}.more-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.more-card{border:1px solid var(--line);border-radius:17px;padding:16px;background:#fff;cursor:pointer}.more-card:hover{border-color:#c5d0db}.more-card h3{font-size:15px;margin:10px 0 5px}.more-card p{font-size:12px;color:var(--muted);margin:0;line-height:1.4}.toolbar-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.toolbar-row select{border:1px solid var(--line);border-radius:11px;padding:9px 10px;background:#fff;color:var(--text)}.subtle{background:#f9fafb;border:1px solid var(--line);border-radius:14px;padding:12px}.price{font-size:28px;font-weight:900}.price small{font-size:12px;color:var(--muted);font-weight:700}.plan-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.plan-card{border:1px solid var(--line);border-radius:16px;padding:15px;background:#fff}.plan-card.current{border-color:#9fb3c8;box-shadow:0 0 0 2px rgba(79,111,143,.09)}.plan-card h4{margin:0 0 5px}.role-note{font-size:12px;padding:8px 10px;border-radius:10px;background:#f4f6f8;color:var(--muted)}.brand-symbol{width:100%;height:100%;display:grid;place-items:center}.brand-symbol svg{width:28px;height:28px}.mobile-only{display:none}.mobile-network{margin:0 0 14px}.mobile-network select{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff;color:var(--text);font-weight:700}
@media(max-width:1050px){.cols4{grid-template-columns:repeat(2,1fr)}.module-grid{grid-template-columns:repeat(2,1fr)}.thread-layout{grid-template-columns:1fr}.thread-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:840px){.auth-card{grid-template-columns:1fr}.auth-hero{padding:28px}.app{grid-template-columns:1fr}.sidebar{position:sticky;bottom:0;top:auto;height:auto;z-index:30;padding:8px 10px;order:2}.logo,.pilot,.sidebar-bottom,.nav-section-label{display:none}.nav{grid-template-columns:repeat(5,1fr);gap:4px}.nav button{justify-content:center;flex-direction:column;font-size:10px;padding:7px 4px;gap:3px}.nav .label{display:block}.nav button .ui-icon{width:19px;height:19px}.main{padding:16px;padding-bottom:88px}.cols2,.cols3,.cols4,.plan-strip,.plan-cards{grid-template-columns:1fr}.topbar{flex-direction:column}.top-actions{justify-content:flex-start}.module-grid,.more-grid,.quick-grid{grid-template-columns:1fr}.calendar{gap:4px}.day{min-height:70px}.demo-grid,.check-grid{grid-template-columns:1fr}.thread-layout{grid-template-columns:1fr}.mobile-only{display:block}}


.network-actions{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 18px}.network-actions .btn{display:inline-flex;align-items:center;gap:7px}
.patient-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.patient-group{border:1px solid rgba(86,92,105,.12);border-radius:18px;padding:15px;box-shadow:0 7px 20px rgba(43,52,66,.04)}.patient-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.patient-group-title{display:flex;align-items:center;gap:10px}.patient-group-title .mini-avatar{background:rgba(255,255,255,.66)}.patient-networks{display:grid;gap:8px}.patient-network-row{width:100%;border:1px solid rgba(70,77,91,.11);border-radius:13px;background:rgba(255,255,255,.7);padding:11px 12px;display:flex;align-items:center;gap:10px;text-align:left;color:var(--text)}.patient-network-row:hover{background:#fff;transform:translateY(-1px)}.network-number{font-size:10px;font-weight:900;letter-spacing:.03em;text-transform:uppercase;background:rgba(255,255,255,.78);border:1px solid rgba(70,77,91,.10);border-radius:999px;padding:4px 7px;white-space:nowrap}.pastel-0{background:#f4eef9}.pastel-1{background:#eef6fb}.pastel-2{background:#f8f1ea}.pastel-3{background:#eef7f1}.pastel-4{background:#fbf0f3}.pastel-5{background:#f4f4ea}.pastel-6{background:#f1effa}.pastel-7{background:#edf5f5}.pastel-8{background:#faf2e8}.pastel-9{background:#f2f5ed}.plan-mini{border:1px solid rgba(255,255,255,.6);background:rgba(255,255,255,.16);color:#fff;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:850;backdrop-filter:blur(3px)}.recipient-person{border-color:#efc6ce!important;background:#fff7f8!important}.recipient-person strong{color:#a13f52}.activity-dot{width:9px;height:9px;border-radius:50%;background:#d84c62;box-shadow:0 0 0 3px rgba(216,76,98,.12);display:inline-block;flex:0 0 auto}.network-activity{display:inline-flex;align-items:center;gap:6px;color:#a13f52;font-size:10px;font-weight:900;white-space:nowrap}.family-hero{color:var(--text);border:1px solid rgba(86,92,105,.10);box-shadow:var(--shadow)}.family-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.family-card{border:1px solid rgba(86,92,105,.12);border-radius:18px;padding:16px;text-align:left;color:var(--text);cursor:pointer;box-shadow:0 7px 20px rgba(43,52,66,.04)}.family-card:hover{transform:translateY(-1px)}.family-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.family-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}@media(max-width:900px){.family-profile-grid{grid-template-columns:1fr}}.recipient-switches{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}.recipient-switches .btn{font-size:12px;padding:8px 10px}.privacy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.privacy-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}.privacy-status:last-child{border-bottom:0}@media(max-width:900px){.patient-groups,.privacy-grid{grid-template-columns:1fr}}.professional-list{display:grid;gap:12px}.professional-card{border:1px solid var(--line);border-radius:16px;padding:15px;background:#fff}.professional-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.professional-card-main{display:flex;gap:11px;align-items:center;min-width:0}.professional-latest{margin-top:12px;padding:11px 12px;border-radius:12px;background:#fafbfc;border:1px solid #edf0f3}.professional-latest strong{font-size:12px}.professional-latest p{margin:5px 0 0;line-height:1.45}.professional-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.history-section{margin-top:16px}.history-entry{border:1px solid var(--line);border-radius:14px;padding:13px;background:#fff}.history-entry+.history-entry{margin-top:9px}.choice-all{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:8px;background:#fafbfc}

/* V2.12: estados pendientes, selector de profesión y ajustes móviles */
.pending-strip{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;border:1px solid #ead7aa;background:#fffaf0;border-radius:14px;color:#6f5a25;margin-bottom:14px}
.pending-strip .ui-icon{margin-top:1px}
.pending-member{border-style:dashed;background:#fffdf8}
.badge.pending{background:#fff1cf;color:#7b5d17}
.badge.red{background:#fff0f2;color:#a13f52}
.profession-picker{position:relative}
.profession-suggestions{position:absolute;z-index:60;left:0;right:0;top:100%;margin-top:4px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 32px rgba(32,50,70,.14);max-height:220px;overflow:auto;padding:5px}
.profession-suggestions button{width:100%;border:0;background:#fff;color:var(--text);text-align:left;padding:9px 10px;border-radius:9px}
.profession-suggestions button:hover,.profession-suggestions button:focus{background:var(--soft);outline:none}
.profession-suggestions .other{border-top:1px solid var(--line);margin-top:4px;padding-top:10px;font-weight:800;color:var(--brand)}
.profession-note{font-size:11px;color:var(--muted);margin-top:5px}
.network-status-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mobile-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:840px){
  .main{min-width:0;overflow-x:hidden}
  .topbar{min-width:0}
  .top-actions{width:100%;min-width:0}
  .request-pill{max-width:100%}
  .card,.hero,.subtle,.patient-group,.family-card{min-width:0}
  .section-head{align-items:flex-start;flex-wrap:wrap}
  .toolbar-row{max-width:100%}
  .toolbar-row select,.toolbar-row input{max-width:100%;min-width:0}
  .table-wrap,.calendar{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .calendar{min-width:620px}
  .network-actions{max-width:100%}
  .network-actions .btn{max-width:100%;white-space:normal}
  .professional-card-head,.family-card-head,.patient-group-head{flex-wrap:wrap}
  .request-card{min-width:0}
  .request-title,.request-meta,.row-title,.row-sub{overflow-wrap:anywhere}
}
@media(max-width:480px){
  .main{padding:12px;padding-bottom:86px}
  .topbar h2{font-size:24px}
  .hero{padding:18px}
  .hero h3{font-size:21px}
  .request-pill span:not(.request-badge){font-size:12px}
  .pill{max-width:100%;min-width:0}
  .pill>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .btn-row .btn{flex:1 1 auto}
}


.privacy-lock{position:fixed;inset:0;z-index:10050;background:rgba(22,35,55,.96);display:none;align-items:center;justify-content:center;padding:24px;color:white}.privacy-lock.active{display:flex}.privacy-lock-card{width:min(480px,100%);background:#fff;color:var(--text);border-radius:24px;padding:26px;box-shadow:0 25px 80px rgba(0,0,0,.35);text-align:center}.privacy-lock-card .icon-tile{margin:0 auto 12px}.privacy-lock-card h2{margin:8px 0}.privacy-lock-card p{color:var(--muted);line-height:1.55}.security-note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;background:#eef5ff;border:1px solid #dce8fa;border-radius:14px;margin-top:12px}.audio-draft{border:1px dashed var(--line);border-radius:14px;padding:12px;margin-top:10px;background:var(--soft)}.audio-draft audio{width:100%;margin-top:8px}.capacity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}.capacity-box{border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--panel)}.capacity-box strong{display:block;font-size:20px;margin-bottom:3px}.plan-feature-list{margin:10px 0 0;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.6}.member-status-suspended{opacity:.82;border-style:dashed}.badge.suspended{background:#f3eefb;color:#6e4da5}.direct-link-note{font-size:12px;color:var(--muted);margin-top:8px}
.activity-pill{min-width:42px;justify-content:center}.activity-pill .label{display:inline}.activity-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:0 0 auto}.activity-icon.message{background:#e8f1ff;color:#3f6faa}.activity-icon.update{background:#f0ebfb;color:#7457b5}.activity-icon.document{background:#eaf7f1;color:#287a66}.activity-icon.calendar-icon{background:#fff2df;color:#a2691b}.activity-icon.member{background:#fdebf0;color:#a44762}.activity-icon.info{background:#edf3f7;color:#4f6c80}.activity-row{cursor:pointer}.activity-row:hover{border-color:#c4d0de;background:#fbfdff}.network-origin{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:800;color:#39475a}.network-origin-dot{width:7px;height:7px;border-radius:50%;background:currentColor}.calendar .day.clickable,.mini-day.clickable{cursor:pointer;transition:.14s transform,.14s border-color,.14s background}.calendar .day.clickable:hover{border-color:#9fb3cf;background:#f9fbfe;transform:translateY(-1px)}.mini-day.clickable:hover{background:#edf3fb}.compact-event-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.event-row-compact{padding:9px 10px;min-height:58px}.event-row-compact .activity-icon{width:32px;height:32px;border-radius:10px}.event-row-compact .row-title{font-size:13px}.event-row-compact .row-sub{font-size:11px}.calendar-help{font-size:11px;color:var(--muted);margin-top:8px}.activity-summary{display:flex;align-items:center;gap:8px}.activity-summary strong{font-size:13px}.document-row{position:relative;overflow:hidden}.document-row:before{content:'';position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--network-color,#d9e1eb)}
@media(max-width:900px){.compact-event-list{grid-template-columns:1fr}}
@media(max-width:760px){.capacity-grid{grid-template-columns:1fr}.activity-pill .label{display:none}.dashboard-events{grid-template-columns:1fr}.mini-calendar-wrap{border-right:0;padding-right:0;border-bottom:1px solid var(--line);padding-bottom:14px}}

/* V2.16: identidad visual de red, mensajería temática y recurrencias */
.network-visual{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:0 0 auto;background:var(--network-bg,#eef3f7);border:1px solid rgba(53,66,83,.08)}
.network-visual.sm{width:28px;height:28px;border-radius:9px}.network-visual svg{width:24px;height:24px;overflow:visible}.network-visual.sm svg{width:18px;height:18px}
.network-visual .shape{fill:none;stroke:#435267;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.network-visual .dot{fill:#435267;stroke:none}
.network-tag{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:850;color:#3d4a5d;background:var(--network-bg,#eef3f7)}
.thread-search{display:grid;gap:8px;margin-bottom:12px}.thread-search input{width:100%;border:1px solid var(--line);border-radius:11px;padding:9px 10px;background:#fff;color:var(--text)}
.thread-hit{font-size:11px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thread-item{position:relative}.thread-item .network-visual{position:absolute;right:8px;top:8px}
.recurrence-box{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fafbfd;margin:8px 0 13px}.recurrence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.multi-date-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.date-token{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 8px;font-size:11px}.date-token button{border:0;background:transparent;color:var(--danger);padding:0;font-weight:900}
.event-click{cursor:pointer}.event-click:hover{outline:1px solid rgba(79,111,143,.28)}
.price-daily{font-size:12px;color:var(--muted);font-weight:800;margin-top:4px}.price small.tax{display:block;margin-top:2px}
.pet-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.pet-status-note{margin-top:10px;font-size:12px;color:var(--muted)}
.less-more-note{font-size:11px;color:var(--muted);margin-top:10px}
@media(max-width:760px){.recurrence-grid{grid-template-columns:1fr}.thread-item .network-visual{display:none}}


/* DUNSIRA REDESIGN SYSTEM · 2026-09 */
:root{
  --bg:#f7f9fc;
  --panel:#ffffff;
  --text:#27344a;
  --muted:#748196;
  --brand:#6f8fbd;
  --brand-strong:#5878a8;
  --brand2:#adc1de;
  --nav:#f1f5fa;
  --line:#e5eaf1;
  --soft:#edf3fa;
  --soft2:#eef6f3;
  --warn:#fff7e8;
  --danger:#b25f6e;
  --patient:#9a8fbe;
  --pet:#c6816d;
  --family-sage:#a9bfae;
  --family-sand:#eadfcf;
  --family-peach:#efc7b7;
  --pet-warm:#c6816d;
  --pet-beige:#f4e8dc;
  --pet-petrol:#709692;
  --pet-rose:#c99a9e;
  --shadow:0 12px 34px rgba(53,72,103,.08);
  --shadow-soft:0 8px 24px rgba(53,72,103,.055);
  --radius:20px;
  --radius-sm:14px;
}

body{
  background:
    radial-gradient(circle at 94% -5%,rgba(173,193,222,.18),transparent 30%),
    radial-gradient(circle at -5% 92%,rgba(169,191,174,.13),transparent 28%),
    var(--bg);
  color:var(--text);
  letter-spacing:-.005em;
}

#authGate{
  background:
    radial-gradient(circle at 12% 12%,rgba(173,193,222,.42),transparent 31%),
    radial-gradient(circle at 90% 88%,rgba(239,199,183,.24),transparent 34%),
    linear-gradient(145deg,#fafcff,#f5f8fc);
}
.auth-card{
  border:1px solid rgba(111,143,189,.16);
  border-radius:32px;
  box-shadow:0 30px 90px rgba(58,78,111,.14);
}
.auth-hero{
  background:
    radial-gradient(circle at 78% 18%,rgba(255,255,255,.16),transparent 30%),
    linear-gradient(145deg,#5f7fae,#88a4ca);
  padding:48px;
}
.auth-hero h1{font-size:40px;letter-spacing:-.035em;font-weight:850}
.auth-hero p{opacity:.92;max-width:520px}
.auth-panel{padding:40px 38px}
.brand-mark{
  width:58px;height:58px;border-radius:20px;
  background:linear-gradient(145deg,#bed0e7,#6f8fbd);
  box-shadow:0 12px 28px rgba(75,103,143,.22);
}
.field label{color:#44536a;font-size:12px;letter-spacing:.01em}
.field input,.field select,.field textarea,.search,.toolbar-row select,.mobile-network select,.sidebar select{
  border-color:#e1e7f0;
  border-radius:14px;
  background:#fff;
  box-shadow:0 1px 0 rgba(39,52,74,.02);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.field input:focus,.field select:focus,.field textarea:focus,.search:focus,.toolbar-row select:focus,.mobile-network select:focus{
  outline:none;
  border-color:#9eb5d5;
  box-shadow:0 0 0 4px rgba(111,143,189,.11);
}
.btn{
  background:linear-gradient(135deg,var(--brand-strong),var(--brand));
  border-radius:14px;
  padding:10px 15px;
  box-shadow:0 5px 14px rgba(88,120,168,.13);
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(88,120,168,.17)}
.btn.secondary{background:#fff;color:var(--brand-strong);border-color:#b8c9df;box-shadow:none}
.btn.ghost{background:#fff;color:#4c5c73;border-color:#e0e6ee;box-shadow:none}
.btn.danger{box-shadow:none}
.auth-link{color:var(--brand-strong)}
.auth-tabs button{border-radius:14px}
.auth-tabs button.active{background:#eef4fb;border-color:#9fb6d5;color:#5878a8}

.app{grid-template-columns:276px 1fr}
.sidebar{
  background:rgba(244,247,251,.92);
  backdrop-filter:blur(14px);
  color:#3e4a5f;
  border-right:1px solid #e3e9f1;
  padding:24px 17px;
}
.logo{margin-bottom:22px}
.logo h1{font-size:19px;letter-spacing:-.02em}
.pilot{
  border-color:#e0e7f0;
  background:rgba(255,255,255,.72);
  color:#657389;
  border-radius:16px;
}
.nav{gap:5px}
.nav button{
  color:#536178;
  border-radius:14px;
  padding:11px 12px;
  font-weight:720;
  transition:background .15s ease,color .15s ease,transform .15s ease;
}
.nav button.active,.nav button:hover{
  background:#e8f0f9;
  color:#5878a8;
}
.nav button:hover{transform:translateX(2px)}
.nav-section-label{color:#8a96a7;opacity:1;font-weight:800}
.sidebar-bottom{border-color:#e0e7f0}

.main{padding:30px 32px 38px}
.topbar{margin-bottom:22px}
.topbar h2{font-size:30px;letter-spacing:-.035em;font-weight:850}
.topbar p{color:#7a8799}
.pill,.request-pill{
  border-color:#e1e7ef;
  box-shadow:0 4px 14px rgba(53,72,103,.045);
}
.avatar{
  background:linear-gradient(145deg,#eef4fb,#dfe9f5);
  color:#5878a8;
}
.account-menu{
  border-color:#e1e7ef;
  border-radius:20px;
  box-shadow:0 22px 56px rgba(53,72,103,.14);
}
.account-menu button{border-radius:12px}

.hero{
  background:
    radial-gradient(circle at 88% 20%,rgba(255,255,255,.16),transparent 26%),
    linear-gradient(135deg,#607fae,#88a4c9);
  border-radius:26px;
  padding:26px 28px;
  box-shadow:0 14px 36px rgba(86,113,153,.13);
}
.hero.patient{
  background:
    radial-gradient(circle at 86% 18%,rgba(255,255,255,.16),transparent 28%),
    linear-gradient(135deg,#8e86b1,#b7acd1);
}
.pet-hero{
  background:
    radial-gradient(circle at 88% 18%,rgba(255,255,255,.16),transparent 28%),
    linear-gradient(135deg,#b56f5d,#d6a087)!important;
}
.hero h3{font-size:27px;letter-spacing:-.025em}

.card,.request-card,.update,.row,.network-card,.quick-card,.module,.thread-item,.prevention-card,.more-card,.plan-card{
  border-color:#e5eaf1;
  box-shadow:var(--shadow-soft);
}
.card{
  border-radius:22px;
  padding:19px;
}
.card h3,.section-head h3{letter-spacing:-.015em}
.network-card,.quick-card,.more-card,.module{
  border-radius:19px;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.network-card:hover,.quick-card:hover,.more-card:hover,.module:hover{
  transform:translateY(-2px);
  border-color:#cbd7e6;
  box-shadow:0 12px 28px rgba(53,72,103,.09);
}
.network-card.active{
  border-color:#9eb5d5;
  box-shadow:0 0 0 3px rgba(111,143,189,.10),0 12px 28px rgba(53,72,103,.08);
}
.mini-avatar,.icon-tile{
  background:#edf3fa;
  color:#5e7fab;
  border-radius:14px;
}
.icon-tile.pet{
  background:var(--pet-beige);
  color:var(--pet-warm);
}
.icon-tile.warm{
  background:#fbf1e8;
  color:#a87853;
}
.pet-chip{
  background:var(--pet-beige);
  color:#9f6757;
}
.badge{background:#edf3fa;color:#5878a8}
.badge.green{background:#edf6f2;color:#568074}
.badge.purple{background:#f1eef7;color:#756a9c}
.badge.warn{background:#fff5df;color:#8a6a2b}
.badge.red{background:#fff0f2;color:#a44e60}

.module{
  background:
    linear-gradient(150deg,rgba(255,255,255,.98),rgba(247,250,253,.98));
}
.module:nth-child(2){background:linear-gradient(150deg,#fff,#f4f8f4)}
.module:nth-child(3){background:linear-gradient(150deg,#fff,#fbf4ef)}
.module:nth-child(2) .module-icon{color:#6f8d79}
.module:nth-child(3) .module-icon{color:#b8715e}

.calendar{gap:8px}
.day{
  border-color:#e3e9f1;
  border-radius:14px;
  background:rgba(255,255,255,.92);
}
.day.today{box-shadow:0 0 0 2px #8ca7cc inset}
.event{border-radius:8px;background:#edf3fa}
.event.med{background:#edf6f2}
.event.pro{background:#f1eef7}
.mini-day{background:#f8fafc;border-radius:9px}

.messages{
  background:linear-gradient(180deg,#fbfcfe,#f7f9fc);
  border-color:#e3e8ef;
  border-radius:18px;
}
.message{
  border-radius:16px 16px 16px 6px;
  border-color:#e3e8ef;
  box-shadow:0 3px 10px rgba(53,72,103,.04);
}
.message.me{
  border-radius:16px 16px 6px 16px;
  background:#edf3fa;
  border-color:#d7e2f0;
}

.notice{border-radius:14px}
.notice.ok{background:#edf6f2;color:#4e766b}
.notice.warn{background:#fff7e8}
.notice.error{background:#fff0f2;color:#985062}
.subtle{background:#fafbfd;border-color:#e5eaf1;border-radius:16px}

.overlay{background:rgba(36,49,71,.42);backdrop-filter:blur(5px)}
.modal{
  border-radius:26px;
  border:1px solid rgba(255,255,255,.5);
  box-shadow:0 30px 80px rgba(36,49,71,.22);
}
.close{background:#f0f4f8;border-radius:12px}

.toast{
  background:#33445d;
  border-radius:14px;
  box-shadow:0 14px 36px rgba(36,49,71,.18);
}

@media(max-width:840px){
  .main{padding:20px 16px 92px}
  .topbar h2{font-size:25px}
  .auth-card{border-radius:24px}
  .auth-hero{padding:30px 26px}
  .auth-panel{padding:28px 24px}
  .sidebar{
    background:rgba(248,250,253,.96);
    backdrop-filter:blur(18px);
    border-top:1px solid #e3e9f1;
  }
  .nav button{border-radius:12px}
  .card{border-radius:20px}
  .hero{border-radius:22px;padding:22px}
}


.account-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:7px;margin:2px 0 8px;background:#f5f8fb;border:1px solid var(--line);border-radius:14px}
.account-mode-switch button{justify-content:center!important;text-align:center!important;padding:9px 8px!important;border:1px solid transparent!important;background:transparent!important;color:var(--muted)!important;font-size:12px!important}
.account-mode-switch button.active{background:#fff!important;color:var(--brand-strong)!important;border-color:#dce5ef!important;box-shadow:0 3px 10px rgba(53,72,103,.06)}
.account-context-label{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:850;letter-spacing:.04em;text-transform:uppercase;padding:4px 7px;border-radius:999px;background:#edf3fa;color:#5e7fab;margin-top:5px}
.account-context-label.personal{background:#f1eef7;color:#756a9c}

.top-context-switch{display:none;align-items:center;gap:4px;padding:4px 6px;background:#f1f5fa;border:1px solid var(--line);border-radius:999px}
.top-context-switch button{border:0;background:transparent;color:var(--muted);font-weight:800;font-size:12px;padding:8px 11px;border-radius:999px}
.top-context-switch button.active{background:#fff;color:var(--brand-strong);box-shadow:0 3px 10px rgba(53,72,103,.08)}
@media(max-width:840px){.top-context-switch{order:-1;width:100%;justify-content:center}.top-context-switch button{flex:1}}

.context-banner{display:none;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-soft)}
.context-banner-copy{display:flex;align-items:center;gap:10px;min-width:0}
.context-banner-copy strong{display:block;font-size:13px}
.context-banner-copy span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.context-banner-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;background:#f2f5f9;border-radius:999px;min-width:250px}
.context-banner-switch button{border:0;background:transparent;color:var(--muted);font-weight:850;padding:9px 14px;border-radius:999px}
.context-banner-switch button.active{background:#fff;color:var(--brand-strong);box-shadow:0 3px 10px rgba(53,72,103,.08)}
@media(max-width:720px){.context-banner{align-items:stretch;flex-direction:column}.context-banner-switch{min-width:0;width:100%}}

/* =========================================================
   DUNSIRA VISUAL SYSTEM V1 · 2026-09-27
   Identidad: conexión · calma · confianza · facilidad
   Capa visual únicamente: no modifica estructura ni lógica.
   ========================================================= */
:root{
  --ds-bg:#f7f8fb;
  --ds-surface:#ffffff;
  --ds-surface-soft:#fbfcfe;
  --ds-text:#263449;
  --ds-text-soft:#66758a;
  --ds-text-faint:#8b97a7;
  --ds-blue:#7089ad;
  --ds-blue-deep:#506b94;
  --ds-blue-soft:#eaf0f8;
  --ds-lilac:#9188b4;
  --ds-lilac-soft:#f1eef8;
  --ds-sage:#91aa9d;
  --ds-sage-soft:#edf5f1;
  --ds-sand:#d9c4aa;
  --ds-sand-soft:#f7f0e7;
  --ds-peach:#dca99b;
  --ds-peach-soft:#faeeea;
  --ds-rose:#c7929c;
  --ds-petrol:#769e98;
  --ds-pet-soft:#ebf5f2;
  --ds-line:#e4e8ef;
  --ds-line-strong:#d7dde7;
  --ds-danger:#ae5f70;
  --ds-warning:#b18542;
  --ds-success:#5c8979;
  --ds-radius-xs:10px;
  --ds-radius-sm:14px;
  --ds-radius:18px;
  --ds-radius-lg:24px;
  --ds-shadow-xs:0 2px 7px rgba(48,61,83,.035);
  --ds-shadow-sm:0 8px 22px rgba(48,61,83,.055);
  --ds-shadow:0 15px 42px rgba(48,61,83,.075);

  --bg:var(--ds-bg);
  --panel:var(--ds-surface);
  --text:var(--ds-text);
  --muted:var(--ds-text-soft);
  --brand:var(--ds-blue);
  --brand-strong:var(--ds-blue-deep);
  --brand2:#b7c6da;
  --nav:#f3f5f9;
  --line:var(--ds-line);
  --soft:var(--ds-blue-soft);
  --soft2:var(--ds-sage-soft);
  --warn:#fbf3e6;
  --danger:var(--ds-danger);
  --patient:var(--ds-lilac);
  --pet:var(--ds-petrol);
  --shadow:var(--ds-shadow);
  --shadow-soft:var(--ds-shadow-sm);
  --radius:var(--ds-radius);
  --radius-sm:var(--ds-radius-sm);
  --context-accent:var(--ds-blue);
  --context-accent-deep:var(--ds-blue-deep);
  --context-soft:var(--ds-blue-soft);
  --context-wash:rgba(112,137,173,.08);
}

body[data-context="professional"]{
  --context-accent:#667da3;
  --context-accent-deep:#485f86;
  --context-soft:#e9eef6;
  --context-wash:rgba(102,125,163,.085);
}
body[data-view="family"]{
  --context-accent:#a68b70;
  --context-accent-deep:#866b53;
  --context-soft:#f6ede3;
  --context-wash:rgba(217,196,170,.17);
}
body[data-view="pets"],
body[data-subject="pet"]{
  --context-accent:#759c95;
  --context-accent-deep:#587e77;
  --context-soft:#eaf4f1;
  --context-wash:rgba(118,158,152,.13);
}

html{background:var(--ds-bg)}
body{
  font-family:"Aptos","Segoe UI Variable","Segoe UI",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:14px;
  line-height:1.45;
  color:var(--ds-text);
  background:
    radial-gradient(circle at 96% -5%,rgba(183,198,218,.19),transparent 29rem),
    radial-gradient(circle at -7% 92%,rgba(145,170,157,.105),transparent 31rem),
    var(--ds-bg);
  letter-spacing:-.006em;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,strong,.row-title{letter-spacing:-.018em}
h1,h2,h3,h4{color:#243247}
p{line-height:1.58}
.small{font-size:12px;line-height:1.45}
.muted{color:var(--ds-text-soft)}
.meta{color:var(--ds-text-faint)}
::selection{background:#dfe8f4;color:#263449}

/* Marca y acceso */
#authGate{
  background:
    radial-gradient(circle at 10% 12%,rgba(177,196,220,.48),transparent 32%),
    radial-gradient(circle at 92% 86%,rgba(220,169,155,.22),transparent 31%),
    linear-gradient(145deg,#fbfcfe,#f4f7fb);
}
.auth-card{
  border:1px solid rgba(112,137,173,.14);
  border-radius:32px;
  box-shadow:0 32px 90px rgba(52,68,94,.13);
}
.auth-hero{
  background:
    radial-gradient(circle at 83% 15%,rgba(255,255,255,.19),transparent 31%),
    linear-gradient(145deg,#536e98 0%,#8299ba 100%);
}
.auth-hero h1{font-size:41px;font-weight:780;letter-spacing:-.045em}
.auth-hero p{font-size:16px;line-height:1.62}
.auth-panel{background:rgba(255,255,255,.985)}
.brand-mark{
  background:linear-gradient(145deg,#c5d2e3,#718aae);
  border:1px solid rgba(255,255,255,.48);
  box-shadow:0 12px 26px rgba(70,91,125,.18);
}
.auth-tabs button{border-radius:13px}
.auth-tabs button.active{background:#eef3f9;border-color:#a8bad2;color:#536f98}

/* Navegación */
.app{grid-template-columns:278px 1fr}
.sidebar{
  background:rgba(245,246,249,.94);
  color:#465267;
  border-right:1px solid #e5e8ee;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.logo{gap:12px}
.logo h1{font-size:20px;font-weight:780;letter-spacing:-.035em}
.logo small{color:#8994a4;opacity:1}
.pilot{
  background:rgba(255,255,255,.76);
  border:1px solid #e4e7ed;
  color:#69758a;
  box-shadow:var(--ds-shadow-xs);
}
.nav button{
  color:#566276;
  border-radius:13px;
  font-weight:650;
  opacity:1;
}
.nav button:hover{
  background:#eceff5;
  color:#405370;
}
.nav button.active{
  background:var(--context-soft);
  color:var(--context-accent-deep);
  box-shadow:inset 3px 0 0 var(--context-accent);
}
.sidebar-bottom{border-color:#e1e5ec}
.sidebar select{border-color:#dde3eb;background:#fff;color:#425067}

/* Cabeceras y contexto */
.main{padding:31px 34px 42px}
.topbar{margin-bottom:24px}
.topbar h2{font-size:30px;font-weight:760;letter-spacing:-.043em}
.topbar p{color:#7b8798;font-size:13px}
.pill,.request-pill{
  background:rgba(255,255,255,.92);
  border:1px solid #e2e6ed;
  border-radius:999px;
  box-shadow:var(--ds-shadow-xs);
}
.avatar{
  background:linear-gradient(145deg,var(--context-soft),#fff);
  color:var(--context-accent-deep);
  border:1px solid color-mix(in srgb,var(--context-accent) 20%,#fff);
}
#contextBanner{
  border-color:color-mix(in srgb,var(--context-accent) 20%,#fff);
  background:linear-gradient(135deg,var(--context-soft),rgba(255,255,255,.78));
}

/* Superficies */
.card,.subtle,.module,.more-card,.professional-card,.history-entry,.capacity-box,.choice-all{
  background:rgba(255,255,255,.96);
  border-color:var(--ds-line);
  box-shadow:var(--ds-shadow-xs);
}
.card{
  border-radius:20px;
  box-shadow:var(--ds-shadow-sm);
}
.card:hover{border-color:#dde2ea}
.section-head h3{font-size:16px;font-weight:750}
.divider{border-color:#e7eaf0}
.empty{color:#778497}
.row{
  border-color:#e6e9ef;
  border-radius:14px;
  background:#fff;
}
.row:hover,.activity-row:hover{
  border-color:#d5dce6;
  background:#fcfdff;
}
.quick-card{
  border:1px solid #e3e7ee;
  border-radius:18px;
  background:linear-gradient(145deg,#fff,#fbfcfe);
  box-shadow:var(--ds-shadow-xs);
}
.quick-card:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--context-accent) 31%,#fff);
  box-shadow:var(--ds-shadow-sm);
}
.quick-card .quick-count{
  background:var(--context-soft);
  color:var(--context-accent-deep);
}
.icon-tile{
  background:#edf2f7;
  color:#5c7394;
  border-radius:13px;
}
.icon-tile.warm{background:var(--ds-sand-soft);color:#8a6c52}
.icon-tile.pet{background:var(--ds-pet-soft);color:#608b83}

/* Hero: una sola voz de marca, matiz por contexto */
.hero{
  border-radius:24px;
  background:
    radial-gradient(circle at 86% 0%,rgba(255,255,255,.18),transparent 30%),
    linear-gradient(135deg,var(--context-accent-deep),var(--context-accent));
  box-shadow:0 16px 36px color-mix(in srgb,var(--context-accent) 20%,transparent);
  padding:23px 25px;
}
.hero h3{font-size:24px;font-weight:760;letter-spacing:-.035em}
.hero p{opacity:.9}
.plan-mini{
  border-color:rgba(255,255,255,.5);
  background:rgba(255,255,255,.12);
  box-shadow:none;
}
body[data-view="family"] .family-hero{
  background:linear-gradient(145deg,#f7eee4,#f2e5d5)!important;
  border:1px solid #eadbc9;
  box-shadow:var(--ds-shadow-sm);
}
body[data-view="pets"] .pet-hero,
body[data-subject="pet"] .pet-hero{
  background:
    radial-gradient(circle at 85% 12%,rgba(255,255,255,.2),transparent 27%),
    linear-gradient(135deg,#5f8982,#87aaa4);
}

/* Familia y Mascotas */
.family-card{
  border-radius:20px;
  border-color:#e7ddd2;
  box-shadow:0 7px 21px rgba(88,72,58,.045);
}
.family-card:hover{border-color:#dac8b5;box-shadow:0 10px 25px rgba(88,72,58,.065)}
.pet-chip{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.45)}
.prevention-card{border-color:#dce9e5;background:#fcfefd;border-radius:16px}
.date-chip.ok{background:#eaf4f0;color:#557f73}
.date-chip.due{background:#f8eee5;color:#986b46}

/* Personas / redes */
.patient-group{
  border:1px solid rgba(71,83,103,.08);
  border-radius:21px;
  box-shadow:var(--ds-shadow-xs);
}
.patient-network-row{
  border-color:rgba(71,83,103,.1);
  border-radius:15px;
  background:rgba(255,255,255,.82);
}
.patient-network-row:hover{
  border-color:color-mix(in srgb,var(--context-accent) 30%,#fff);
  background:#fff;
  box-shadow:0 6px 16px rgba(48,61,83,.05);
}
.mini-avatar{
  background:rgba(255,255,255,.72);
  color:#53647c;
  border:1px solid rgba(71,83,103,.09);
}
.network-visual{
  color:#526780;
  border-color:rgba(62,78,102,.11);
  box-shadow:0 3px 9px rgba(47,61,82,.045);
}
.network-tag{border-color:rgba(62,78,102,.09)}
.network-number{color:#7b8798;letter-spacing:.02em}
.network-arrow{color:#9ba5b3}
.activity-dot{background:#cf7182;box-shadow:0 0 0 3px rgba(207,113,130,.11)}
.network-activity{color:#a65063}

/* Paleta pastel Dunsira por persona/red */
.pastel-0{background:#f2eef8!important}
.pastel-1{background:#edf4f9!important}
.pastel-2{background:#f7efe6!important}
.pastel-3{background:#edf5f1!important}
.pastel-4{background:#f9edef!important}
.pastel-5{background:#f4f3e9!important}
.pastel-6{background:#efedf8!important}
.pastel-7{background:#ebf4f3!important}
.pastel-8{background:#f8f0e8!important}
.pastel-9{background:#f1f4eb!important}

/* Formularios */
.field{gap:7px;margin-bottom:15px}
.field label{font-size:12px;font-weight:720;color:#49576c}
.field input,.field select,.field textarea,
.search,.toolbar-row select,.mobile-network select,.sidebar select{
  border:1px solid #dfe4eb;
  border-radius:13px;
  padding:11px 12px;
  background:#fff;
  color:#2f3e53;
  box-shadow:0 1px 0 rgba(39,52,74,.018);
}
.field input::placeholder,.field textarea::placeholder{color:#a1aab7}
.field input:focus,.field select:focus,.field textarea:focus,
.search:focus,.toolbar-row select:focus,.mobile-network select:focus{
  border-color:color-mix(in srgb,var(--context-accent) 60%,#fff);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--context-accent) 12%,transparent);
  outline:none;
}

/* Botones */
.btn{
  border-radius:13px;
  padding:10px 15px;
  font-weight:720;
  letter-spacing:-.006em;
  background:linear-gradient(135deg,var(--context-accent-deep),var(--context-accent));
  box-shadow:0 5px 14px color-mix(in srgb,var(--context-accent) 16%,transparent);
}
.btn:hover:not(:disabled){
  transform:translateY(-1px);
  filter:saturate(.96);
  box-shadow:0 8px 18px color-mix(in srgb,var(--context-accent) 20%,transparent);
}
.btn.secondary{
  background:#fff;
  color:var(--context-accent-deep);
  border:1px solid color-mix(in srgb,var(--context-accent) 38%,#fff);
  box-shadow:none;
}
.btn.ghost{
  background:rgba(255,255,255,.9);
  color:#4a586d;
  border:1px solid #dfe4eb;
  box-shadow:none;
}
.btn.danger{
  color:var(--ds-danger);
  border-color:#ead2d8;
  background:#fff;
  box-shadow:none;
}
.btn:disabled{opacity:.48}

/* Estados y avisos */
.notice{
  border:1px solid rgba(80,98,123,.065);
  border-radius:14px;
  background:#eff3f8;
}
.notice.ok{background:#edf6f2;color:#4b7668;border-color:#dcece6}
.notice.warn{background:#fbf4e8;color:#7d653b;border-color:#efe1c6}
.notice.error{background:#faedef;color:#8f4f5c;border-color:#efd9de}
.badge{border-radius:999px;font-weight:720}
.badge.green{background:#e9f4ef;color:#537c6f}
.badge.pending,.badge.warn{background:#faf0dc;color:#8c6a30}
.badge.red{background:#f9e9ed;color:#9c5363}
.badge.gray{background:#f0f2f5;color:#687587}

/* Actividad y mensajería */
.activity-icon{border-radius:12px}
.activity-icon.message{background:#eaf1f8;color:#5a7397}
.activity-icon.update{background:#f0edf7;color:#746a9a}
.activity-icon.document{background:#ebf4f0;color:#5a8175}
.activity-icon.calendar-icon{background:#f8efe3;color:#936c43}
.activity-icon.member{background:#f8eaee;color:#9c5969}
.activity-icon.info{background:#edf2f6;color:#61768c}
.thread-item{border-color:#e3e7ed;border-radius:14px}
.thread-item.active{background:var(--context-soft);border-color:color-mix(in srgb,var(--context-accent) 38%,#fff)}
.messages{background:#f9fafc;border-color:#e3e7ed;border-radius:17px}
.message{border-color:#e2e6ec;border-radius:15px}
.message.me{
  background:var(--context-soft);
  border-color:color-mix(in srgb,var(--context-accent) 20%,#fff);
}

/* Dunsira · nuevo catálogo comercial: una cuenta, tres niveles de capacidad */
.dunsira-pricing{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.dunsira-pricing-card{display:flex;flex-direction:column;gap:10px;padding:21px 17px;min-width:0;background:linear-gradient(180deg,#fff,#fffdfb)}
.dunsira-pricing-card h4{margin:0;font-size:21px;letter-spacing:-.035em;color:var(--text)}
.dunsira-pricing-card .price{font-size:31px;font-weight:800;letter-spacing:-.04em;margin:0}
.dunsira-pricing-card .price small.tax{font-size:11px;font-weight:600;letter-spacing:0;color:var(--muted);margin-top:2px}
.dunsira-pricing-daily{font-size:17px;font-weight:850;color:var(--text);margin-top:-5px;letter-spacing:-.02em}
.dunsira-pricing-daily span{display:block;font-size:10px;font-weight:500;letter-spacing:0;color:var(--muted);margin-top:3px}
.dunsira-pricing-tag{display:inline-block;align-self:flex-start;font-size:10px;line-height:1.35;letter-spacing:.05em;text-transform:uppercase;font-weight:850;color:#836451}
.dunsira-pricing-promise{display:block;font-size:13px;line-height:1.4;color:var(--text)}
.dunsira-pricing-card p{line-height:1.5;margin:0;min-height:54px}
.dunsira-pricing-card .plan-feature-list{margin-top:3px;line-height:1.55}
.dunsira-pricing-card .plan-feature-list li{margin-bottom:7px}
.dunsira-pricing-plus{border:2px solid #c7a38c;box-shadow:0 9px 24px rgba(84,60,45,.1)}
@media(max-width:1080px){.dunsira-pricing{grid-template-columns:1fr}}
/* Planes, módulos, privacidad */
.plan-card{
  border-color:#e1e5ec;
  border-radius:20px;
  box-shadow:var(--ds-shadow-xs);
}
.plan-card.current{
  border-color:color-mix(in srgb,var(--context-accent) 42%,#fff);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--context-accent) 8%,transparent),var(--ds-shadow-sm);
}
.price{color:#2e3d52}
.progress{background:#eceff4}
.progress span{background:linear-gradient(90deg,var(--context-accent-deep),var(--context-accent))}
.more-card,.module{border-radius:19px}
.more-card:hover,.module:hover{border-color:#d6dde7;box-shadow:var(--ds-shadow-sm)}
.security-note{background:#edf3f9;border-color:#dde7f1}
.privacy-lock{background:rgba(28,38,54,.88);backdrop-filter:blur(10px)}
.privacy-lock-card{border:1px solid rgba(255,255,255,.4);box-shadow:0 30px 90px rgba(14,20,31,.32)}

/* Modal */
.overlay{
  background:rgba(38,48,65,.42);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.modal{
  border:1px solid rgba(255,255,255,.65);
  border-radius:24px;
  box-shadow:0 28px 80px rgba(32,42,59,.2);
}
.modal-head{
  border-color:#e7eaf0;
  padding-bottom:14px;
}
.modal-head h3{font-size:18px;font-weight:760}
.close{
  background:#f2f4f7;
  color:#667386;
  border-radius:11px;
}
.close:hover{background:#e9edf2;color:#39485d}

/* Calendario y tablas */
.day{
  border-color:#e3e7ed;
  border-radius:13px;
  background:#fff;
}
.day.today{box-shadow:0 0 0 2px var(--context-accent) inset}
.event{background:var(--context-soft)}
.event.med{background:#eaf4f0}
.event.pro{background:#f0edf7}
.mini-day{background:#fafbfd}
.mini-day.today{box-shadow:0 0 0 1.5px var(--context-accent) inset}
.mini-day.has-event:after{background:var(--context-accent)}
.mini-day.has-pet-event:after{background:var(--ds-petrol)}
.table th{color:#68758a;background:#f7f8fa}
.table td,.table th{border-color:#e6e9ef}

/* Scrollbars discretas */
*{scrollbar-width:thin;scrollbar-color:#cfd6df transparent}
*::-webkit-scrollbar{width:9px;height:9px}
*::-webkit-scrollbar-thumb{background:#cfd6df;border:2px solid transparent;background-clip:padding-box;border-radius:999px}
*::-webkit-scrollbar-track{background:transparent}

/* Móvil: la misma identidad, menos ruido */
@media(max-width:900px){
  .main{padding:20px 18px 92px}
  .topbar h2{font-size:27px}
  .card{border-radius:18px}
  .hero{border-radius:21px}
  .patient-group,.family-card{border-radius:18px}
}
@media(max-width:760px){
  body{font-size:14px;background:var(--ds-bg)}
  .app{display:block}
  .main{padding:14px 13px 88px}
  .topbar{margin-bottom:17px}
  .topbar h2{font-size:25px}
  .topbar p{font-size:12px}
  .hero{padding:19px}
  .hero h3{font-size:22px}
  .card{padding:15px}
  .auth-card{border-radius:25px}
  .auth-panel{padding:27px 22px}
  .btn{min-height:42px}
  .field input,.field select,.field textarea{min-height:44px}
  .modal{border-radius:22px 22px 0 0}
}
@media(max-width:480px){
  .main{padding:12px 11px 86px}
  .topbar h2{font-size:23px}
  .hero{padding:17px}
  .card{padding:14px}
  .quick-card{border-radius:16px}
  .patient-network-row{border-radius:14px}
  .modal{padding:18px 16px}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* =========================================================
   DUNSIRA WARM PREMIUM · MASTER REFERENCE 2026-09-27
   Basado en la maqueta aprobada. Esta capa manda sobre V1.
   ========================================================= */
:root{
  --cream:#fffdfa;
  --canvas:#fbfaf8;
  --ink:#173d35;
  --ink-2:#294a43;
  --copy:#6e7b77;
  --terracotta:#c96f56;
  --terracotta-dark:#ad5842;
  --terracotta-soft:#fbe8e1;
  --rose:#e8aaa0;
  --rose-soft:#fbecea;
  --beige:#f6e7d9;
  --sage:#8fbd9a;
  --sage-soft:#eaf5ed;
  --green:#184d3f;
  --green-soft:#e7f0ec;
  --gold-soft:#fbf1dc;
  --hair:#eee9e4;
  --hair-2:#e5ddd6;
  --bg:var(--canvas);
  --panel:#fff;
  --text:var(--ink);
  --muted:var(--copy);
  --brand:var(--terracotta);
  --brand-strong:var(--terracotta-dark);
  --brand2:var(--rose);
  --nav:#fffdfa;
  --line:var(--hair);
  --soft:var(--terracotta-soft);
  --soft2:var(--sage-soft);
  --patient:var(--sage);
  --pet:var(--terracotta);
  --shadow:0 7px 20px rgba(77,52,38,.045);
  --shadow-soft:0 4px 13px rgba(77,52,38,.035);
  --radius:16px;
  --radius-sm:11px;
  --context-accent:var(--terracotta);
  --context-accent-deep:var(--terracotta-dark);
  --context-soft:var(--terracotta-soft);
}
body[data-context="professional"]{
  --context-accent:#6d8f79;
  --context-accent-deep:#476b58;
  --context-soft:#e8f2eb;
}
body[data-view="family"]{
  --context-accent:#d69079;
  --context-accent-deep:#b66b55;
  --context-soft:#f8e9e2;
}
body[data-view="pets"],body[data-subject="pet"]{
  --context-accent:var(--terracotta);
  --context-accent-deep:var(--terracotta-dark);
  --context-soft:var(--terracotta-soft);
}

body{
  font-family:Inter,"Plus Jakarta Sans","Aptos","Segoe UI Variable","Segoe UI",system-ui,-apple-system,sans-serif;
  font-size:13px;
  line-height:1.42;
  color:var(--ink);
  background:var(--canvas);
  letter-spacing:-.004em;
}
h1,h2,h3,h4,strong,.row-title{color:var(--ink);letter-spacing:-.025em}
p{line-height:1.48}
.small{font-size:11px}
.meta{font-size:10px}
.muted{color:#7b8783}

/* Login */
#authGate{
  background:
    radial-gradient(circle at 9% 12%,rgba(246,231,217,.92),transparent 32%),
    radial-gradient(circle at 92% 85%,rgba(143,189,154,.22),transparent 28%),
    #fffdfa;
}
.auth-card{border:1px solid #eee6df;border-radius:22px;box-shadow:0 25px 70px rgba(68,48,38,.1)}
.auth-hero{
  background:
    radial-gradient(circle at 78% 12%,rgba(255,255,255,.12),transparent 30%),
    linear-gradient(145deg,#174b3e,#2b6553);
  padding:38px;
}
.auth-hero h1{font-size:38px;color:#fff}
.auth-panel{padding:34px}
.auth-tabs button.active{background:var(--terracotta-soft);border-color:#efc7bb;color:var(--terracotta-dark)}

/* Sidebar: más parecido a la referencia */
.app{grid-template-columns:218px 1fr}
.sidebar{
  background:#fffdfa;
  border-right:1px solid #eee9e4;
  padding:17px 13px;
  color:var(--ink-2);
}
.logo{margin-bottom:16px}
.logo h1{font-size:19px;color:var(--green);font-weight:820}
.logo small{font-size:10px;color:#939a96}
.logo .brand-mark{
  width:34px!important;height:34px!important;border-radius:10px!important;
  background:var(--green-soft)!important;
  box-shadow:none!important;border:1px solid #d8e8e0!important;
  color:var(--green)!important;
}
.logo .brand-symbol svg{width:21px;height:21px}
.pilot{display:none}
.nav{gap:3px}
.nav button{
  min-height:36px;
  padding:8px 9px;
  border-radius:9px;
  color:#53635e;
  font-size:12px;
  font-weight:650;
}
.nav button .ui-icon{width:17px;height:17px}
.nav button:hover{background:#f9f3ef;color:var(--terracotta-dark);transform:none}
.nav button.active{
  background:var(--terracotta-soft);
  color:var(--terracotta-dark);
  box-shadow:none;
}
.sidebar-bottom{margin-top:14px;border-color:#efe8e1}
.sidebar-bottom .btn{min-height:36px}

/* Main / top bar compactos */
.main{padding:20px 24px 32px;max-width:none}
.topbar{margin-bottom:14px;gap:14px}
.topbar h2{font-size:24px;font-weight:800;color:#183d35;letter-spacing:-.04em}
.topbar p{font-size:12px;color:#89918e;margin-top:2px}
.top-actions{gap:7px}
.pill,.request-pill,.top-context-switch{
  min-height:34px!important;
  padding:6px 9px!important;
  border:1px solid #ece6e0!important;
  background:#fff!important;
  box-shadow:none!important;
  font-size:11px!important;
}
.request-pill .ui-icon,.pill .ui-icon{width:15px;height:15px}
.status-dot{width:7px;height:7px}
.account-menu-btn{border-radius:999px!important}
#contextBanner{
  padding:9px 12px!important;
  border-radius:11px!important;
  margin-bottom:12px!important;
  border:1px solid #eee8e2!important;
  background:#fff!important;
  box-shadow:none!important;
}
#contextBanner .icon-tile{width:30px;height:30px;border-radius:9px}

/* Hero más pequeño; nada de franjas gigantes */
.hero{
  min-height:auto;
  padding:16px 18px;
  margin-bottom:12px;
  border-radius:15px;
  align-items:center;
  color:#fff;
  background:linear-gradient(105deg,var(--context-accent-deep),var(--context-accent));
  box-shadow:none;
}
.hero h3{font-size:19px;color:#fff;margin-bottom:3px}
.hero p{font-size:12px;opacity:.92}
.hero.patient{background:linear-gradient(105deg,#b9644d,#df9b85)}
.pet-hero{background:linear-gradient(105deg,#bd674f,#dfa087)!important}
.plan-mini,.pet-chip{
  padding:5px 8px;
  font-size:10px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:var(--terracotta-dark);
  border:0;
}

/* Tarjetas compactas */
.card{
  border:1px solid #eee9e4;
  border-radius:14px;
  padding:14px;
  box-shadow:0 4px 12px rgba(81,59,46,.035);
  background:#fff;
}
.card h3{font-size:14px;margin-bottom:8px}
.card h4{font-size:13px}
.section-head{margin-bottom:9px}
.section-head h3{font-size:14px}
.grid{gap:10px}
.cols2{grid-template-columns:1.15fr .85fr}
.quick-grid{gap:8px}
.quick-card{
  border:1px solid #eee8e3;
  border-radius:11px;
  padding:10px;
  gap:9px;
  min-height:58px;
  background:#fff;
  box-shadow:none;
}
.quick-card:hover{transform:none;border-color:#e5d6cb;background:#fffaf7;box-shadow:none}
.quick-card h4{font-size:12px;margin-bottom:2px}
.quick-card .quick-meta{font-size:10px}
.quick-card .quick-count{min-width:23px;height:23px;font-size:10px;background:var(--terracotta-soft);color:var(--terracotta-dark)}
.icon-tile{width:31px;height:31px;border-radius:9px;background:var(--terracotta-soft);color:var(--terracotta)}
.icon-tile .ui-icon{width:16px;height:16px}
.icon-tile.warm{background:var(--beige);color:#9b6b50}
.icon-tile.pet{background:var(--sage-soft);color:#5c8b69}
.dashboard-quick{margin-bottom:10px}
.dashboard-news{margin-top:10px!important}

/* Dashboard con aspecto de panel de la referencia */
.dashboard-quick .quick-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.dashboard-quick>h3{font-size:12px;margin-bottom:8px}
.dashboard-events{grid-template-columns:210px 1fr;gap:12px}
.mini-calendar-wrap{padding-right:12px}
.compact-event-list{gap:6px}
.event-row-compact{padding:7px 8px;min-height:48px}
.activity-icon{width:29px;height:29px;border-radius:8px}
.activity-icon .ui-icon{width:15px;height:15px}

/* Filas / listados */
.list{gap:6px}
.row{
  border:1px solid #eee9e4;
  border-radius:10px;
  padding:9px 10px;
  gap:9px;
}
.row-main{gap:8px}
.row-title{font-size:12px}
.row-sub{font-size:10px}
.mini-avatar{width:32px;height:32px;border-radius:9px;font-size:11px}
.network-arrow{font-size:18px}
.badge{font-size:9px;padding:3px 6px}
.network-number{font-size:8px;padding:3px 5px}
.network-visual{width:30px;height:30px;border-radius:9px}
.network-visual.sm{width:24px;height:24px;border-radius:7px}

/* Redes / familia */
.patient-groups{gap:9px}
.patient-group{padding:10px;border-radius:12px;box-shadow:none}
.patient-group-head{margin-bottom:7px}
.patient-network-row{padding:8px 9px;border-radius:9px}
.family-profile-grid{gap:9px}
.family-card{padding:11px;border-radius:12px;box-shadow:none}
.family-hero{padding:14px!important;border-radius:14px!important;background:var(--beige)!important}

/* Paleta de la maqueta: terracota + rosa + beige + salvia + verde */
.pastel-0{background:#fbecea!important}
.pastel-1{background:#eaf5ed!important}
.pastel-2{background:#f6e7d9!important}
.pastel-3{background:#fcefe8!important}
.pastel-4{background:#edf3ea!important}
.pastel-5{background:#f8eee9!important}
.pastel-6{background:#f2ebe5!important}
.pastel-7{background:#e9f2ed!important}
.pastel-8{background:#fbefe7!important}
.pastel-9{background:#eff4eb!important}

/* Mascotas */
.prevention-card{
  padding:10px;
  border-radius:10px;
  border-color:#eee7e1;
  background:#fffdfa;
}
.date-chip{font-size:9px;padding:3px 6px}
.date-chip.ok{background:var(--sage-soft);color:#4c7b5d}
.date-chip.due{background:var(--gold-soft);color:#8d6b2f}
.less-more-note{font-size:9px}

/* Botones */
.btn{
  min-height:34px;
  padding:7px 11px;
  border-radius:9px;
  font-size:11px;
  font-weight:730;
  background:var(--terracotta);
  color:#fff;
  box-shadow:none;
}
.btn:hover:not(:disabled){background:var(--terracotta-dark);transform:none;box-shadow:none}
.btn.secondary{
  background:#fff4ef;
  color:var(--terracotta-dark);
  border:1px solid #efcbbb;
}
.btn.ghost{
  background:#fff;
  color:#52625d;
  border:1px solid #e7e1db;
}
.btn.danger{background:#fff;color:#a45360;border-color:#efd4d9}

/* Formularios */
.field{margin-bottom:11px}
.field label{font-size:10px;color:#50605a}
.field input,.field select,.field textarea,
.search,.toolbar-row select,.mobile-network select,.sidebar select{
  min-height:36px;
  padding:8px 9px;
  border-radius:9px;
  border:1px solid #e7e1db;
  font-size:12px;
  background:#fffdfa;
}
.field input:focus,.field select:focus,.field textarea:focus,.search:focus{
  border-color:#dfaa98;
  box-shadow:0 0 0 3px rgba(201,111,86,.1);
}

/* Mensajes, módulos y planes */
.module-grid,.more-grid{gap:9px}
.module,.more-card,.plan-card,.professional-card,.capacity-box{
  border-radius:12px;
  border-color:#eee9e4;
  padding:11px;
  box-shadow:none;
}
.more-card h3,.module h3{font-size:12px;margin:7px 0 3px}
.more-card p,.module p{font-size:10px}
.plan-cards{gap:8px}
.price{font-size:21px}
.thread-item{border-radius:9px;padding:8px}
.messages{border-radius:11px;background:#fffdfa}
.message{border-radius:10px}
.message.me{background:var(--sage-soft);border-color:#dcebdd}

/* Modales */
.overlay{background:rgba(40,48,44,.3);backdrop-filter:blur(5px)}
.modal{width:min(610px,100%);border-radius:17px;padding:17px;box-shadow:0 24px 60px rgba(48,37,31,.18)}
.modal-head{margin-bottom:11px}
.modal-head h3{font-size:15px}
.close{width:31px;height:31px;border-radius:9px;background:#f7f3f0}

/* Calendario */
.calendar{gap:4px}
.day{min-height:72px;border-radius:9px;padding:5px}
.event{border-radius:6px;font-size:8px}
.mini-day{border-radius:6px}

/* Auth mark / main mark */
.brand-mark{
  background:var(--green-soft)!important;
  color:var(--green)!important;
  border:1px solid #d8e8e0!important;
  box-shadow:none!important;
}
.auth-hero .brand-mark{background:rgba(255,255,255,.12)!important;color:#fff!important;border-color:rgba(255,255,255,.2)!important}

/* Mobile: reference-like bottom nav and dense cards */
@media(max-width:840px){
  .sidebar{
    position:fixed;left:0;right:0;bottom:0;top:auto;height:auto;
    padding:6px 7px 7px;background:rgba(255,253,250,.96);
    border-top:1px solid #eee7e1;border-right:0;
    backdrop-filter:blur(14px);
  }
  .nav{grid-template-columns:repeat(5,1fr);gap:2px}
  .nav button{min-height:47px;padding:5px 2px;font-size:9px;border-radius:9px}
  .nav button.active{background:transparent;color:var(--terracotta)}
  .main{padding:12px 10px 76px}
  .topbar{margin-bottom:10px}
  .topbar h2{font-size:20px}
  .top-actions{gap:5px}
  .top-context-switch{display:none!important}
  .request-pill{padding:5px 7px!important}
  .request-pill .label{display:none}
  .pill{max-width:180px}
  #contextBanner{padding:8px 9px!important}
  .hero{padding:12px 13px;border-radius:12px}
  .hero h3{font-size:17px}
  .dashboard-quick .quick-grid{grid-template-columns:repeat(2,1fr)}
  .dashboard-events{grid-template-columns:1fr}
  .card{padding:11px;border-radius:12px}
  .cols2,.cols3,.cols4,.plan-strip,.plan-cards{grid-template-columns:1fr}
  .modal{border-radius:16px 16px 0 0;padding:15px}
}
@media(max-width:480px){
  body{font-size:12px}
  .main{padding:10px 8px 72px}
  .topbar h2{font-size:19px}
  .card{padding:10px}
  .quick-card{padding:8px}
  .hero{padding:11px 12px}
}


/* Reference dashboard composition */
.reference-home{display:grid;gap:10px}
.reference-greeting{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:2px 2px 4px}
.reference-greeting h3{margin:0;font-size:19px;font-weight:820;color:var(--green)}
.reference-greeting p{margin:2px 0 0;font-size:11px;color:#89918e}
.reference-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.summary-tile{border:1px solid #efe9e4;border-radius:10px;padding:9px 10px;background:#fff;display:flex;align-items:center;gap:8px;min-width:0;text-align:left;color:var(--ink)}
.summary-tile .icon-tile{width:29px;height:29px}
.summary-tile strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.summary-tile span span{display:block;font-size:9px;color:#9a6b5e;margin-top:1px}
.summary-tile.rose{background:#fff8f6}.summary-tile.rose .icon-tile{background:#fbe5df;color:#c96f56}
.summary-tile.sage{background:#f8fcf9}.summary-tile.sage .icon-tile{background:#e4f1e7;color:#5f8c6a}
.summary-tile.beige{background:#fffaf4}.summary-tile.beige .icon-tile{background:#f7eadb;color:#b57d52}
.summary-tile.peach{background:#fff7f5}.summary-tile.peach .icon-tile{background:#f8e3df;color:#bb6652}
.reference-main-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);gap:10px}
.reference-section{border:1px solid #eee9e4;border-radius:12px;background:#fff;padding:11px}
.reference-section-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}
.reference-section-head h4{margin:0;font-size:12px;color:var(--green)}
.reference-link{border:0;background:transparent;color:var(--terracotta-dark);font-size:9px;font-weight:750;padding:2px 0}
.reference-networks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.reference-network{border:1px solid #eee8e3;background:#fffdfa;border-radius:10px;padding:8px;text-align:left;color:var(--ink);min-width:0}
.reference-network:hover{border-color:#e1cbbf;background:#fff8f4}
.reference-network-top{display:flex;align-items:center;gap:7px}
.reference-network .mini-avatar{width:29px;height:29px;border-radius:50%;background:#f2e2d8;color:#8a5b44}
.reference-network strong{display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reference-network small{display:block;font-size:8px;color:#8b9591;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reference-today{display:grid;gap:6px}
.reference-today-item{display:flex;gap:8px;align-items:center;border:1px solid #f0ebe6;border-radius:9px;padding:7px 8px;background:#fffdfa;text-align:left;color:var(--ink);width:100%}
.reference-time{font-size:9px;font-weight:800;color:var(--terracotta-dark);min-width:34px}
.reference-today-copy{min-width:0}.reference-today-copy strong{display:block;font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.reference-today-copy span{font-size:8px;color:#8a9490}
.reference-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.reference-action{border:1px solid #eee8e3;border-radius:10px;padding:10px 7px;background:#fff;text-align:center;color:var(--ink);font-size:9px;font-weight:700}
.reference-action .icon-tile{margin:0 auto 5px;width:29px;height:29px}
.reference-action:nth-child(1){background:#fff8f5}.reference-action:nth-child(2){background:#fff7f6}.reference-action:nth-child(3){background:#f7fbf8}.reference-action:nth-child(4){background:#fffaf4}
.reference-news{display:grid;gap:6px}
.reference-news .row{padding:7px 8px}
.reference-news .row-title{font-size:10px}.reference-news .row-sub{font-size:8px}
.reference-news .activity-icon{width:27px;height:27px}
.reference-empty{font-size:9px;color:#8a9490;padding:9px 2px}
@media(max-width:1000px){.reference-summary{grid-template-columns:repeat(2,1fr)}.reference-main-grid{grid-template-columns:1fr}.reference-networks{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.reference-greeting{align-items:flex-start;flex-direction:column;gap:5px}.reference-greeting h3{font-size:17px}.reference-summary{grid-template-columns:repeat(2,1fr)}.reference-networks{grid-template-columns:repeat(3,minmax(95px,1fr));overflow-x:auto}.reference-actions{grid-template-columns:repeat(4,minmax(74px,1fr));overflow-x:auto}.reference-action{min-width:74px}}


/* =========================================================
   DUNSIRA CONTEXT THEMES V2
   Personal=blue · Professional=lilac · Family=rose · Pets=terracotta · Archive=stone
   ========================================================= */
:root{
  --personal:#4f8fe8;--personal-deep:#2f6fca;--personal-soft:#eaf3ff;
  --professional:#8a86b8;--professional-deep:#686397;--professional-soft:#f0eef8;
  --family:#d79b92;--family-deep:#b97469;--family-soft:#f9ebe8;
  --pet-accent:#c96f56;--pet-deep:#a95742;--pet-soft:#fbe9e2;
  --archive:#a69aae;--archive-deep:#7c7087;--archive-soft:#f2eef4;
  --context-accent:var(--personal);--context-accent-deep:var(--personal-deep);--context-soft:var(--personal-soft);
}
body[data-context="personal"]{--context-accent:var(--personal);--context-accent-deep:var(--personal-deep);--context-soft:var(--personal-soft)}
body[data-context="professional"]{--context-accent:var(--professional);--context-accent-deep:var(--professional-deep);--context-soft:var(--professional-soft)}
body[data-view="family"]{--context-accent:var(--family);--context-accent-deep:var(--family-deep);--context-soft:var(--family-soft)}
body[data-view="pets"],body[data-subject="pet"]{--context-accent:var(--pet-accent);--context-accent-deep:var(--pet-deep);--context-soft:var(--pet-soft)}
body[data-view="archived"]{--context-accent:var(--archive);--context-accent-deep:var(--archive-deep);--context-soft:var(--archive-soft)}

#authGate{
  background:
    radial-gradient(circle at 8% 12%,rgba(193,219,249,.72),transparent 33%),
    radial-gradient(circle at 92% 84%,rgba(232,170,160,.17),transparent 28%),
    #fbfdff;
}
.auth-hero{
  background:
    radial-gradient(circle at 84% 13%,rgba(255,255,255,.62),transparent 30%),
    linear-gradient(145deg,#e9f4ff 0%,#d7eafb 57%,#f9fcff 100%)!important;
  color:#315b8c!important;
  border-right:1px solid #d9e7f5;
}
.auth-hero h1{color:#2f6fca!important}
.auth-hero p{color:#54708f!important}
.auth-hero .notice{background:rgba(255,255,255,.66)!important;color:#55708d!important;border:1px solid #d6e4f2!important}
.auth-hero .brand-mark{background:#fff!important;color:#4f8fe8!important;border-color:#d8e8fa!important}
.auth-hero .brand-mark svg path:nth-child(2){fill:#8fc0f4!important}
.auth-hero .brand-mark svg path:nth-child(3){fill:#efb3a7!important}
.auth-hero .brand-mark svg path:nth-child(4){fill:#b6d8f7!important}

.logo h1{color:var(--context-accent-deep)!important}
.logo .brand-mark{background:var(--context-soft)!important;color:var(--context-accent-deep)!important;border-color:color-mix(in srgb,var(--context-accent) 22%,#fff)!important}
.nav button.active{background:var(--context-soft)!important;color:var(--context-accent-deep)!important}
.btn{background:var(--context-accent)!important}
.btn:hover:not(:disabled){background:var(--context-accent-deep)!important}
.btn.secondary{background:var(--context-soft)!important;color:var(--context-accent-deep)!important;border-color:color-mix(in srgb,var(--context-accent) 32%,#fff)!important}
.reference-link{color:var(--context-accent-deep)!important}
.reference-greeting h3,.reference-section-head h4{color:var(--context-accent-deep)!important}

body[data-context="personal"][data-view="dashboard"] .summary-tile.rose{background:#eef6ff}
body[data-context="personal"][data-view="dashboard"] .summary-tile.rose .icon-tile{background:#dcecff;color:#4f8fe8}
body[data-context="personal"][data-view="dashboard"] .summary-tile.sage{background:#eef8f1}
body[data-context="personal"][data-view="dashboard"] .summary-tile.sage .icon-tile{background:#dcf0e2;color:#6a9a75}
body[data-context="personal"][data-view="dashboard"] .summary-tile.beige{background:#fff7e9}
body[data-context="personal"][data-view="dashboard"] .summary-tile.beige .icon-tile{background:#f9ebcb;color:#b17e35}
body[data-context="personal"][data-view="dashboard"] .summary-tile.peach{background:#fff0f3}
body[data-context="personal"][data-view="dashboard"] .summary-tile.peach .icon-tile{background:#fbdfe5;color:#c9677b}
body[data-context="personal"][data-view="dashboard"] .reference-action:nth-child(1){background:#edf5ff}
body[data-context="personal"][data-view="dashboard"] .reference-action:nth-child(2){background:#fff0f3}
body[data-context="personal"][data-view="dashboard"] .reference-action:nth-child(3){background:#eef8f1}
body[data-context="personal"][data-view="dashboard"] .reference-action:nth-child(4){background:#fff7e9}

body[data-context="professional"] .summary-tile.rose{background:#f2eff9}
body[data-context="professional"] .summary-tile.rose .icon-tile{background:#e6e1f3;color:#807ab2}
body[data-context="professional"] .summary-tile.sage{background:#edf6f3}
body[data-context="professional"] .summary-tile.sage .icon-tile{background:#dcebe6;color:#668b7e}
body[data-context="professional"] .summary-tile.beige{background:#eef3fb}
body[data-context="professional"] .summary-tile.beige .icon-tile{background:#dfe9f7;color:#6a84aa}
body[data-context="professional"] .summary-tile.peach{background:#f8eef4}
body[data-context="professional"] .summary-tile.peach .icon-tile{background:#eedde8;color:#a36b8d}
body[data-context="professional"] .reference-network{background:#fcfbff}

.module-identity{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:14px 16px;margin:0 0 10px;border-radius:14px;border:1px solid transparent;
}
.module-identity-copy{display:flex;align-items:center;gap:10px}
.module-identity .icon-tile{width:34px;height:34px}
.module-identity h3{margin:0 0 2px;font-size:15px}
.module-identity p{margin:0;font-size:10px;color:#69736f}
.family-module-identity{background:linear-gradient(115deg,#f9e9e6,#fff8f4);border-color:#efd8d3}
.family-module-identity h3{color:#ad6a60}.family-module-identity .icon-tile{background:#f3dcd7;color:#b87569}
.pet-module-identity{background:linear-gradient(115deg,#fbe7df,#f1f6ec);border-color:#edd8cf}
.pet-module-identity h3{color:#a95742}.pet-module-identity .icon-tile{background:#f4d9cf;color:#b85e48}
.archive-module-identity{background:linear-gradient(115deg,#f1edf4,#faf8fb);border-color:#e2dce6}
.archive-module-identity h3{color:#756a80}.archive-module-identity .icon-tile{background:#e8e1ec;color:#82758f}

body[data-view="family"] .family-card{border-color:#ecd8d4;background:linear-gradient(145deg,#fff,#fff9f7)}
body[data-view="family"] .mini-avatar{background:#f4dfda;color:#a96c62}
body[data-view="family"] .family-hero{background:linear-gradient(120deg,#f7e4df,#f9eee8)!important;border-color:#ecd5ce!important}
body[data-view="pets"] .pet-hero,body[data-subject="pet"] .pet-hero{background:linear-gradient(110deg,#c96f56,#e3a18d)!important}
body[data-view="pets"] .prevention-card,body[data-subject="pet"] .prevention-card{background:#fffaf7;border-color:#eddcd4}
body[data-view="pets"] .icon-tile.pet,body[data-subject="pet"] .icon-tile.pet{background:#e8f3e9;color:#6d9877}
body[data-view="archived"] .patient-group{background:#faf8fb!important;border-color:#e5dfe8}
body[data-view="archived"] .badge.gray{background:#ede8f0;color:#756a80}

body[data-context="personal"] #contextBanner{background:#f3f8ff!important;border-color:#dceafb!important}
body[data-context="professional"] #contextBanner{background:#f5f3fa!important;border-color:#e4dff1!important}
body[data-view="family"] #contextBanner{background:#fcf2ef!important;border-color:#efdcd7!important}
body[data-view="pets"] #contextBanner,body[data-subject="pet"] #contextBanner{background:#fff3ee!important;border-color:#f0ddd5!important}
body[data-view="archived"] #contextBanner{background:#f7f4f8!important;border-color:#e7e0ea!important}


/* Patient authorization language */
.patient-auth-mark{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:999px;border:1px solid transparent;flex:0 0 auto;font-size:13px;font-weight:800;vertical-align:middle}
.patient-auth-mark.patient-in{background:#e8f5ec;color:#2f8a52;border-color:#cfe8d6}
.patient-auth-mark.patient-out{background:#fdebec;color:#c64f5f;border-color:#f2cfd4}
.patient-auth-mark.patient-blocked{background:#f4edef;color:#a74c59;border-color:#e8d5da}
.patient-auth-mark.patient-pending{background:#fff5df;color:#aa7a2f;border-color:#efdfb9}
.patient-auth-label{display:inline-flex;align-items:center;gap:7px}
.auth-state-strip{display:flex;align-items:flex-start;gap:11px;padding:13px 14px;border-radius:12px;margin:14px 0;border:1px solid #e6e9ef;background:#f9fafc}
.auth-state-strip.blocked{background:#fff6f7;border-color:#eed8dc}.auth-state-strip.out{background:#fff7f5;border-color:#efdcd5}.auth-state-strip.pending{background:#fffaf0;border-color:#efe2c5}
.pro-only-badge{background:#f0eef8;color:#6d6596;border:1px solid #dfdaee}
.thread-item .pro-only-badge{margin-left:5px}


/* Public patient authorization */
.public-auth-gate{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 10% 10%,#eaf3ff,transparent 34%),radial-gradient(circle at 90% 88%,#f9e7e1,transparent 30%),#fbfdff}
.public-auth-shell{width:min(760px,100%);display:grid;gap:14px}
.public-auth-brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:820;color:#2f6fca}
.public-auth-brand .mark{width:40px;height:40px;border-radius:12px;background:#fff;border:1px solid #dbe8f6;display:grid;place-items:center;box-shadow:0 6px 18px rgba(47,111,202,.08)}
.public-auth-card{background:#fff;border:1px solid #e5eaf1;border-radius:22px;padding:24px;box-shadow:0 20px 56px rgba(47,66,92,.10)}
.public-auth-card h1{font-size:25px;margin:0 0 8px;color:#263449}
.public-auth-lead{color:#69768a;line-height:1.55;margin:0}
.public-auth-network{margin:18px 0;padding:14px 16px;border-radius:14px;background:#f7f9fc;border:1px solid #edf0f4}
.public-auth-network strong{display:block;color:#34465d;font-size:14px}
.public-auth-network span{display:block;color:#7b8797;font-size:12px;margin-top:3px}
.public-auth-current{display:inline-flex!important;align-items:center;gap:6px;margin-top:10px!important;padding:6px 10px;border-radius:999px;background:#eef3f9;color:#536f98!important;font-size:11px!important;font-weight:760}
.public-auth-options{display:grid;gap:10px;margin-top:18px}
.public-auth-option{width:100%;border:1px solid #e4e8ef;border-radius:14px;padding:15px 16px;background:#fff;text-align:left;color:#263449}
.public-auth-option strong{display:block;font-size:13px;margin-bottom:3px}
.public-auth-option small{display:block;color:#7b8797;line-height:1.45}
.public-auth-option:hover{border-color:#bfcce0;background:#fbfdff}
.public-auth-option.denied strong{color:#a34f5c}
.public-auth-option.without strong{color:#b1644d}
.public-auth-option.with strong{color:#3f78c9}
.public-auth-option.selected{box-shadow:0 0 0 3px rgba(79,143,232,.10)}
.public-auth-result{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:#eef8f1;color:#4f765a;border:1px solid #dcecdf}
.public-auth-error{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:#fff0f2;color:#8f3044;border:1px solid #efd7dc}
.public-auth-foot{margin-top:18px;padding-top:15px;border-top:1px solid #eceff3;color:#8994a2;font-size:11px;line-height:1.45}
@media(max-width:600px){.public-auth-gate{padding:14px}.public-auth-card{padding:18px;border-radius:18px}.public-auth-card h1{font-size:21px}.public-auth-option{padding:13px}}


/* =========================================================
   DUNSIRA MODERN POLISH V3 · larger type + visual profiles
   ========================================================= */
body{font-size:15.5px;line-height:1.5}
.main{padding:28px 32px 42px}
.topbar h2{font-size:34px;font-weight:820;letter-spacing:-.045em}
.topbar p{font-size:15px;line-height:1.45}
.nav button{font-size:14px;min-height:42px;padding:10px 11px}
.logo h1{font-size:22px}
.logo small{font-size:11px}
.pill,.request-pill,.top-context-switch{font-size:13px!important;min-height:38px!important}
#contextBanner{padding:12px 14px!important}
#contextBanner strong{font-size:14px}
#contextBanner span{font-size:12.5px}

.reference-home{gap:14px}
.reference-greeting{padding:4px 3px 7px}
.reference-greeting-person{display:flex;align-items:center;gap:14px}
.reference-greeting h3{font-size:27px;line-height:1.15}
.reference-greeting p{font-size:14px;margin-top:5px}
.reference-summary{gap:10px}
.summary-tile{padding:14px 15px;border-radius:14px;gap:11px;min-height:76px;box-shadow:0 5px 14px rgba(49,61,80,.035)}
.summary-tile .icon-tile{width:38px;height:38px;border-radius:11px}
.summary-tile strong{font-size:14px}
.summary-tile span span{font-size:12px;margin-top:3px}

.reference-main-grid{gap:14px}
.reference-section{padding:16px;border-radius:16px;box-shadow:0 6px 18px rgba(55,64,77,.04)}
.reference-section-head{margin-bottom:12px}
.reference-section-head h4{font-size:16px}
.reference-link{font-size:12px}
.reference-networks{gap:10px}
.reference-network{padding:13px;border-radius:13px;min-height:76px}
.reference-network-top{gap:10px}
.reference-network strong{font-size:14px}
.reference-network small{font-size:11.5px;margin-top:3px}
.reference-today{gap:8px}
.reference-today-item{padding:11px 12px;border-radius:12px}
.reference-time{font-size:12px;min-width:44px}
.reference-today-copy strong{font-size:13px}
.reference-today-copy span{font-size:11px}
.reference-actions{gap:10px}
.reference-action{font-size:12px;padding:13px 9px;border-radius:13px}
.reference-action .icon-tile{width:38px;height:38px;margin-bottom:8px}
.reference-news{gap:8px}
.reference-news .row{padding:11px 12px}
.reference-news .row-title{font-size:13px}
.reference-news .row-sub{font-size:11.5px}
.reference-news .activity-icon{width:34px;height:34px}
.reference-empty{font-size:12px;padding:13px 3px}

.card{padding:18px;border-radius:17px}
.section-head h3,.card h3{font-size:17px}
.row{padding:12px 13px}
.row-title{font-size:14px}
.row-sub{font-size:12.5px}
.small{font-size:12.5px}
.meta{font-size:11.5px}
.badge{font-size:11px;padding:4px 8px}
.btn{font-size:13px;min-height:39px;padding:9px 13px;border-radius:10px}
.field label{font-size:12.5px}
.field input,.field select,.field textarea,.search,.toolbar-row select,.mobile-network select,.sidebar select{font-size:14px;min-height:42px;padding:9px 11px}
.modal{font-size:14px}
.modal-head h3{font-size:19px}
.module-identity{padding:17px 18px}
.module-identity h3{font-size:18px}
.module-identity p{font-size:12.5px}

.family-profile-grid{gap:12px}
.family-card{padding:15px;border-radius:15px}
.family-card strong{font-size:15px}
.family-card .small{font-size:12px}
.patient-group{padding:14px}
.patient-network-row{padding:11px 12px}
.pet-hero h3,.family-hero h3{font-size:25px}
.pet-hero p{font-size:14px}

.profile-avatar{width:46px;height:46px;border-radius:15px;display:inline-grid;place-items:center;overflow:hidden;flex:0 0 auto;background:linear-gradient(145deg,var(--context-soft),#fff);border:1px solid color-mix(in srgb,var(--context-accent) 20%,#fff);color:var(--context-accent-deep);font-size:14px;font-weight:850;box-shadow:0 5px 14px rgba(47,60,80,.06)}
.profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.profile-avatar.card{width:48px;height:48px;border-radius:50%}
.profile-avatar.row{width:44px;height:44px;border-radius:13px}
.profile-avatar.greeting{width:58px;height:58px;border-radius:18px}
.profile-avatar.hero{width:72px;height:72px;border-radius:21px;border-color:rgba(255,255,255,.52);box-shadow:0 8px 24px rgba(48,55,65,.11)}
.profile-hero-copy{display:flex;align-items:center;gap:16px}
.hero .profile-avatar{background:rgba(255,255,255,.93);color:var(--context-accent-deep)}
.family-hero .profile-avatar{background:#fff}
.avatar.has-photo{padding:0;overflow:hidden}
.avatar.has-photo img{width:100%;height:100%;object-fit:cover;display:block}

.network-card-body strong{font-size:16px}
.network-card-body small{font-size:12.5px}
.prevention-card{padding:13px}
.date-chip{font-size:11px;padding:4px 7px}

@media(max-width:840px){
  body{font-size:14px}
  .main{padding:16px 13px 88px}
  .topbar h2{font-size:25px}
  .topbar p{font-size:12.5px}
  .reference-greeting h3{font-size:21px}
  .reference-greeting p{font-size:12px}
  .profile-avatar.greeting{width:48px;height:48px;border-radius:15px}
  .summary-tile{min-height:66px;padding:10px 11px}
  .summary-tile strong{font-size:12.5px}
  .summary-tile span span{font-size:10.5px}
  .reference-section{padding:12px}
  .reference-section-head h4{font-size:14px}
  .reference-network{padding:10px;min-height:68px}
  .reference-network strong{font-size:12px}
  .reference-network small{font-size:10px}
  .profile-avatar.card{width:42px;height:42px}
  .profile-avatar.hero{width:60px;height:60px}
  .btn{font-size:12px}
  .field input,.field select,.field textarea{font-size:13px}
  .small{font-size:11.5px}
}
@media(max-width:480px){
  .reference-greeting-person{gap:10px}
  .reference-greeting h3{font-size:20px}
  .profile-avatar.greeting{width:44px;height:44px}
  .summary-tile .icon-tile{width:32px;height:32px}
  .reference-action{font-size:10.5px}
  .profile-avatar.hero{width:56px;height:56px;border-radius:17px}
}


.profile-photo-editor{display:flex;gap:18px;align-items:flex-start}
@media(max-width:600px){.profile-photo-editor{flex-direction:column}.profile-photo-editor .profile-avatar.hero{width:72px;height:72px}}


/* =========================================================
   DUNSIRA PASTEL PETS V4 · no dark terracotta
   ========================================================= */
:root{
  --pet-accent:#8fb9aa;
  --pet-deep:#557d70;
  --pet-soft:#edf6f2;
}
body[data-view="pets"],
body[data-subject="pet"]{
  --context-accent:#8fb9aa!important;
  --context-accent-deep:#557d70!important;
  --context-soft:#edf6f2!important;
}

/* Main pet identity: light, readable, premium */
body[data-view="pets"] .pet-module-identity,
body[data-subject="pet"] .pet-module-identity{
  background:linear-gradient(115deg,#f8e8e4 0%,#f4ece8 42%,#eef6f1 100%)!important;
  border-color:#eaded9!important;
}
body[data-view="pets"] .pet-module-identity h3,
body[data-subject="pet"] .pet-module-identity h3{
  color:#5d6e69!important;
}
body[data-view="pets"] .pet-module-identity .icon-tile,
body[data-subject="pet"] .pet-module-identity .icon-tile{
  background:#e4f1eb!important;
  color:#628b7e!important;
}

/* Duna / active pet hero: absolutely no dark brown */
body[data-view="pets"] .pet-hero,
body[data-subject="pet"] .pet-hero{
  background:linear-gradient(118deg,#f5dfda 0%,#f7e9e5 45%,#eef6f1 100%)!important;
  border:1px solid #ead8d2!important;
  color:#394b47!important;
  box-shadow:0 8px 24px rgba(77,95,89,.06)!important;
}
body[data-view="pets"] .pet-hero h3,
body[data-view="pets"] .pet-hero p,
body[data-view="pets"] .pet-hero strong,
body[data-view="pets"] .pet-hero .small,
body[data-subject="pet"] .pet-hero h3,
body[data-subject="pet"] .pet-hero p,
body[data-subject="pet"] .pet-hero strong,
body[data-subject="pet"] .pet-hero .small{
  color:#425550!important;
  opacity:1!important;
}
body[data-view="pets"] .pet-chip,
body[data-subject="pet"] .pet-chip{
  background:rgba(255,255,255,.78)!important;
  color:#557d70!important;
  border-color:#d6e6df!important;
}

/* Buttons in pets: sage, readable */
body[data-view="pets"] .btn:not(.ghost),
body[data-subject="pet"] .btn:not(.ghost){
  background:#8fb9aa!important;
  color:#243a34!important;
  border-color:#82ad9e!important;
}
body[data-view="pets"] .btn:not(.ghost):hover,
body[data-subject="pet"] .btn:not(.ghost):hover{
  background:#7fa999!important;
  color:#20342f!important;
}
body[data-view="pets"] .btn.secondary,
body[data-subject="pet"] .btn.secondary{
  background:#eef6f2!important;
  color:#4e7569!important;
  border-color:#d6e6df!important;
}
body[data-view="pets"] .btn.ghost,
body[data-subject="pet"] .btn.ghost{
  background:#fff!important;
  color:#5e7770!important;
  border-color:#dce7e2!important;
}

/* Pet cards and accents */
body[data-view="pets"] .prevention-card,
body[data-subject="pet"] .prevention-card{
  background:#fffdfc!important;
  border-color:#eee3df!important;
}
body[data-view="pets"] .date-chip.due,
body[data-subject="pet"] .date-chip.due{
  background:#f7ece7!important;
  color:#806158!important;
}
body[data-view="pets"] .date-chip.ok,
body[data-subject="pet"] .date-chip.ok{
  background:#eaf4f0!important;
  color:#557f73!important;
}
body[data-view="pets"] #contextBanner,
body[data-subject="pet"] #contextBanner{
  background:linear-gradient(90deg,#fff6f2,#f2f8f5)!important;
  border-color:#eadfd9!important;
}

/* Sidebar brand/navigation while in Pets */
body[data-view="pets"] .logo h1,
body[data-subject="pet"] .logo h1{
  color:#557d70!important;
}
body[data-view="pets"] .nav button.active,
body[data-subject="pet"] .nav button.active{
  background:#edf6f2!important;
  color:#4f766a!important;
}


/* =========================================================
   DUNSIRA BUBBLE DESKTOP V5 · larger + softer geometry
   ========================================================= */
@media(min-width:841px){
  body{
    font-size:17px!important;
    line-height:1.56!important;
  }

  .app{grid-template-columns:248px 1fr!important}
  .sidebar{padding:22px 17px!important}
  .main{padding:34px 40px 52px!important}

  .logo{margin-bottom:22px!important}
  .logo h1{font-size:25px!important}
  .logo small{font-size:12.5px!important}

  .nav{gap:7px!important}
  .nav button{
    min-height:49px!important;
    padding:12px 15px!important;
    border-radius:999px!important;
    font-size:15.5px!important;
  }
  .nav button .ui-icon{width:19px!important;height:19px!important}

  .topbar{margin-bottom:21px!important}
  .topbar h2{
    font-size:40px!important;
    line-height:1.08!important;
    letter-spacing:-.048em!important;
  }
  .topbar p{font-size:17px!important;margin-top:5px!important}
  .pill,.request-pill,.top-context-switch{
    min-height:44px!important;
    padding:8px 14px!important;
    border-radius:999px!important;
    font-size:14px!important;
  }

  #contextBanner{
    border-radius:22px!important;
    padding:16px 19px!important;
    margin-bottom:18px!important;
  }
  #contextBanner strong{font-size:16px!important}
  #contextBanner span{font-size:14px!important}
  #contextBanner .icon-tile{width:39px!important;height:39px!important;border-radius:50%!important}

  .reference-home{gap:20px!important}
  .reference-greeting{padding:6px 5px 10px!important}
  .reference-greeting-person{gap:18px!important}
  .reference-greeting h3{
    font-size:34px!important;
    line-height:1.1!important;
  }
  .reference-greeting p{
    font-size:16px!important;
    margin-top:7px!important;
  }

  .profile-avatar.greeting{
    width:70px!important;
    height:70px!important;
    border-radius:50%!important;
  }

  .reference-summary{gap:14px!important}
  .summary-tile{
    min-height:96px!important;
    padding:19px 20px!important;
    border-radius:28px!important;
    gap:14px!important;
    box-shadow:0 10px 30px rgba(49,61,80,.055)!important;
  }
  .summary-tile .icon-tile{
    width:48px!important;
    height:48px!important;
    border-radius:50%!important;
  }
  .summary-tile strong{font-size:17px!important}
  .summary-tile span span{font-size:14px!important;margin-top:4px!important}

  .reference-main-grid{gap:18px!important}
  .reference-section{
    padding:22px!important;
    border-radius:30px!important;
    box-shadow:0 12px 34px rgba(55,64,77,.05)!important;
  }
  .reference-section-head{margin-bottom:16px!important}
  .reference-section-head h4{font-size:20px!important}
  .reference-link{font-size:14px!important}

  .reference-networks{gap:14px!important}
  .reference-network{
    min-height:98px!important;
    padding:17px!important;
    border-radius:24px!important;
  }
  .reference-network-top{gap:13px!important}
  .reference-network strong{font-size:16px!important}
  .reference-network small{font-size:13px!important;margin-top:4px!important}

  .profile-avatar.card{
    width:58px!important;
    height:58px!important;
    border-radius:50%!important;
  }

  .reference-today{gap:11px!important}
  .reference-today-item{
    padding:14px 16px!important;
    border-radius:22px!important;
  }
  .reference-time{font-size:14px!important;min-width:50px!important}
  .reference-today-copy strong{font-size:15px!important}
  .reference-today-copy span{font-size:13px!important}

  .reference-actions{gap:14px!important}
  .reference-action{
    padding:17px 12px!important;
    min-height:94px!important;
    border-radius:28px!important;
    font-size:14px!important;
  }
  .reference-action .icon-tile{
    width:48px!important;
    height:48px!important;
    border-radius:50%!important;
    margin-bottom:10px!important;
  }

  .reference-news{gap:10px!important}
  .reference-news .row{
    padding:14px 16px!important;
    border-radius:22px!important;
  }
  .reference-news .row-title{font-size:15px!important}
  .reference-news .row-sub{font-size:13px!important}
  .reference-news .activity-icon{
    width:42px!important;
    height:42px!important;
    border-radius:50%!important;
  }
  .reference-empty{font-size:14px!important;padding:17px 5px!important}

  .card,
  .subtle,
  .module,
  .more-card,
  .professional-card,
  .plan-card,
  .capacity-box,
  .patient-group,
  .family-card,
  .prevention-card{
    border-radius:28px!important;
  }
  .card{padding:24px!important}
  .section-head{margin-bottom:16px!important}
  .section-head h3,.card h3{font-size:21px!important}
  .card h4{font-size:17px!important}

  .row{
    padding:15px 17px!important;
    border-radius:22px!important;
  }
  .row-title{font-size:16px!important}
  .row-sub{font-size:14px!important}
  .small{font-size:14px!important}
  .meta{font-size:12.5px!important}

  .quick-card{
    min-height:78px!important;
    padding:15px 16px!important;
    border-radius:26px!important;
  }
  .quick-card h4{font-size:15px!important}
  .quick-card .quick-meta{font-size:12.5px!important}
  .quick-card .quick-count{
    min-width:31px!important;
    height:31px!important;
    border-radius:50%!important;
    font-size:12px!important;
  }

  .module-identity{
    padding:21px 24px!important;
    border-radius:30px!important;
    margin-bottom:16px!important;
  }
  .module-identity .icon-tile{
    width:46px!important;
    height:46px!important;
    border-radius:50%!important;
  }
  .module-identity h3{font-size:22px!important}
  .module-identity p{font-size:14px!important}

  .hero,
  .family-hero,
  .pet-hero{
    border-radius:32px!important;
    padding:24px 26px!important;
  }
  .hero h3,.family-hero h3,.pet-hero h3{font-size:29px!important}
  .hero p,.pet-hero p{font-size:15px!important}
  .profile-avatar.hero{
    width:86px!important;
    height:86px!important;
    border-radius:50%!important;
  }

  .family-profile-grid{gap:16px!important}
  .family-card{padding:20px!important}
  .family-card strong{font-size:17px!important}
  .family-card .small{font-size:14px!important}

  .patient-group{padding:19px!important}
  .patient-network-row{
    padding:15px 16px!important;
    border-radius:23px!important;
  }
  .network-card-body strong{font-size:18px!important}
  .network-card-body small{font-size:14px!important}
  .network-visual{
    border-radius:50%!important;
  }

  .btn{
    min-height:46px!important;
    padding:11px 18px!important;
    border-radius:999px!important;
    font-size:14.5px!important;
  }
  .btn.small,.btn.sm{min-height:38px!important;padding:8px 14px!important}

  .badge,
  .date-chip,
  .pet-chip,
  .network-number,
  .network-tag{
    border-radius:999px!important;
  }
  .badge{font-size:12px!important;padding:5px 10px!important}

  .field{margin-bottom:17px!important}
  .field label{font-size:14px!important;margin-bottom:5px!important}
  .field input,
  .field select,
  .field textarea,
  .search,
  .toolbar-row select,
  .mobile-network select,
  .sidebar select{
    min-height:49px!important;
    padding:11px 16px!important;
    border-radius:20px!important;
    font-size:15.5px!important;
  }
  .field textarea{min-height:120px!important}

  .modal{
    border-radius:32px!important;
    padding:24px!important;
    font-size:15.5px!important;
  }
  .modal-head h3{font-size:22px!important}
  .close{
    width:38px!important;
    height:38px!important;
    border-radius:50%!important;
  }

  .thread-item{
    padding:12px 14px!important;
    border-radius:22px!important;
  }
  .messages{border-radius:28px!important}
  .message{border-radius:22px!important}

  .day{border-radius:18px!important}
  .event{border-radius:999px!important}
  .mini-day{border-radius:12px!important}
}


.photo-hidden-input{display:none!important}
.photo-source-picker{display:grid;gap:8px}
.photo-source-actions{display:flex;gap:8px;flex-wrap:wrap}
.account-action-panel{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:18px;padding:16px 4px;border-top:1px solid var(--line)}
.danger-action{color:#985466!important;border-color:#ead5da!important;background:#fff8f9!important}
.account-choice-box{display:grid;gap:12px;margin-top:12px}
.account-choice-list{display:grid;gap:8px}
.account-choice-btn{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:18px;padding:11px 12px;color:var(--ink)}
.account-choice-btn small{display:block;color:var(--muted);margin-top:2px}
.account-choice-btn .avatar.mini{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--context-soft);color:var(--context-accent-deep);font-weight:850}
@media(max-width:840px){
  .photo-source-actions{display:grid;grid-template-columns:1fr 1fr}
  .photo-source-actions .btn{width:100%;min-height:44px}
  .account-action-panel{display:grid;grid-template-columns:1fr 1fr;padding:14px 0}
  .account-action-panel .btn{width:100%}
}


/* =========================================================
   DUNSIRA AVATAR CAMERA V6 · larger avatars + explicit account choice
   ========================================================= */
.greeting-photo-btn{
  position:relative;
  display:inline-grid;
  place-items:center;
  padding:0;
  border:0;
  background:transparent;
  border-radius:50%;
  cursor:pointer;
  flex:0 0 auto;
}
.greeting-photo-btn:focus-visible{outline:3px solid color-mix(in srgb,var(--context-accent) 35%,#fff);outline-offset:4px}
.greeting-photo-btn .camera-dot{
  position:absolute;
  right:-2px;
  bottom:-2px;
  width:27px;
  height:27px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px solid #e3e7e5;
  box-shadow:0 4px 12px rgba(45,58,54,.12);
  font-size:12px;
}
@media(min-width:841px){
  .profile-avatar.greeting{width:82px!important;height:82px!important}
  .profile-avatar.card{width:64px!important;height:64px!important}
  .reference-network{min-height:108px!important}
  .greeting-photo-btn .camera-dot{width:29px;height:29px;font-size:13px}
}
@media(max-width:840px){
  .profile-avatar.greeting{width:54px!important;height:54px!important;border-radius:50%!important}
  .profile-avatar.card{width:46px!important;height:46px!important}
  .greeting-photo-btn .camera-dot{width:23px;height:23px;font-size:10px}
}



/* =========================================================
   DUNSIRA HOME CARDS V7 · stronger photos + next appointments
   ========================================================= */
@media(min-width:841px){
  .reference-network{
    min-height:118px!important;
    padding:18px 17px!important;
  }
  .reference-network-top{
    gap:15px!important;
  }
  .profile-avatar.card{
    width:76px!important;
    height:76px!important;
    flex:0 0 76px!important;
    border-radius:50%!important;
    border-width:2px!important;
    box-shadow:0 8px 22px rgba(47,60,80,.08)!important;
  }
  .profile-avatar.card img{
    transform:scale(1.16);
    transform-origin:center;
  }
  .reference-network strong{
    font-size:17px!important;
    line-height:1.2!important;
  }
  .reference-network small{
    font-size:13px!important;
    line-height:1.35!important;
    margin-top:5px!important;
  }
  .reference-today{
    gap:9px!important;
  }
  .reference-today-item{
    min-height:68px!important;
    padding:11px 14px!important;
    border-radius:18px!important;
    gap:13px!important;
  }
  .reference-time{
    min-width:68px!important;
    display:grid!important;
    gap:2px!important;
    line-height:1.1!important;
  }
  .reference-time b{
    font-size:12px!important;
    color:var(--context-accent-deep)!important;
    text-transform:capitalize;
  }
  .reference-time small{
    font-size:14px!important;
    font-weight:850!important;
    color:var(--ink)!important;
  }
  .reference-today-copy strong{
    font-size:15px!important;
  }
  .reference-today-copy span{
    display:block!important;
    font-size:12.5px!important;
    margin-top:3px!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}
@media(max-width:840px){
  .profile-avatar.card{
    width:52px!important;
    height:52px!important;
    flex:0 0 52px!important;
  }
  .profile-avatar.card img{transform:scale(1.1)}
  .reference-today-item{align-items:flex-start}
  .reference-time{min-width:58px;display:grid;gap:1px}
  .reference-time b{font-size:10px;text-transform:capitalize}
  .reference-time small{font-size:12px;font-weight:850;color:var(--ink)}
}


/* DUNSIRA DOCUMENT LIBRARY V8 */
.document-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 16px;padding:5px;background:#f5f7fa;border-radius:999px;width:max-content;max-width:100%}
.document-tabs button{border:0;background:transparent;padding:9px 15px;border-radius:999px;font-weight:850;color:var(--muted);cursor:pointer}
.document-tabs button.active{background:#fff;color:var(--brand);box-shadow:0 3px 12px rgba(47,60,80,.08)}
.document-share-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.documents-home .document-row{align-items:flex-start}
@media(max-width:840px){.document-tabs{width:100%}.document-tabs button{flex:1}.documents-home .section-head{align-items:flex-start}}


/* =========================================================
   DUNSIRA ACTION BUTTONS V9 · unified soft blue
   ========================================================= */
:root{
  --action-blue-soft:#dceafb;
  --action-blue-soft-hover:#cfE2f8;
  --action-blue-line:#bfd5ef;
  --action-ink:#17232d;
}
.btn:not(.danger),
.btn.secondary:not(.danger),
.btn.ghost:not(.danger){
  background:var(--action-blue-soft)!important;
  color:var(--action-ink)!important;
  border:1px solid var(--action-blue-line)!important;
  box-shadow:none!important;
}
.btn:not(.danger):hover,
.btn.secondary:not(.danger):hover,
.btn.ghost:not(.danger):hover{
  background:var(--action-blue-soft-hover)!important;
  color:var(--action-ink)!important;
  border-color:#afcae8!important;
}
.btn:not(.danger) .ui-icon,
.btn.secondary:not(.danger) .ui-icon,
.btn.ghost:not(.danger) .ui-icon,
.btn:not(.danger) svg,
.btn.secondary:not(.danger) svg,
.btn.ghost:not(.danger) svg{
  color:var(--action-ink)!important;
  stroke:currentColor;
}
.btn:not(.danger):disabled,
.btn.secondary:not(.danger):disabled,
.btn.ghost:not(.danger):disabled{
  background:#edf3f9!important;
  color:#7b8791!important;
  border-color:#d8e2ec!important;
}


/* =========================================================
   DUNSIRA FINAL CONTRAST PASS V10
   ========================================================= */
:root{
  --copy:#566760;
  --muted:#566760;
  --action-blue-soft:#e7f1fb;
  --action-blue-soft-hover:#dceafa;
  --action-blue-line:#c5d9ee;
  --action-ink:#17232d;
}
.muted,.small.muted,.row-sub,.meta,.network-card-body small,
.professional-latest p,.thread-hit,.direct-link-note{
  color:#566760!important;
}
.badge{color:#3f5f89!important}
.badge.green{color:#396c5e!important}
.badge.purple{color:#5e5486!important}
.badge.gray{color:#53606e!important}
.badge.warn{color:#72571f!important}
.reference-network small,.reference-network-sub,.reference-greeting p{
  color:#566760!important;
}
.btn:not(.danger),
.btn.secondary:not(.danger),
.btn.ghost:not(.danger){
  background:var(--action-blue-soft)!important;
  color:var(--action-ink)!important;
  border-color:var(--action-blue-line)!important;
}


/* =========================================================
   DUNSIRA SIMPLE LOGIN V11
   ========================================================= */
#authGate{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px 18px;
  background:#f6f7f9;
}
.auth-card.auth-card-simple{
  width:min(500px,100%);
  display:block;
  overflow:visible;
  border:1px solid #e7e8eb;
  border-radius:24px;
  background:#fff;
  box-shadow:0 24px 64px rgba(32,42,56,.12);
}
.auth-panel.auth-panel-simple{
  padding:34px 38px 22px;
}
.auth-brand-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  margin-bottom:28px;
}
.auth-brand-mark{
  width:44px!important;
  height:44px!important;
  border-radius:13px!important;
  background:#f2f6fb!important;
  border:1px solid #dae5f2;
  box-shadow:none!important;
}
.auth-brand-copy{
  display:grid;
  gap:1px;
  text-align:left;
}
.auth-brand-copy strong{
  font-size:25px;
  line-height:1;
  color:#2567c7;
  letter-spacing:-.02em;
}
.auth-brand-copy span{
  font-size:11px;
  color:#748077;
}
.auth-title{
  margin:0 0 26px;
  text-align:center;
  color:#111;
  font-size:29px;
  line-height:1.2;
  letter-spacing:-.02em;
}
.auth-panel-simple .field{
  margin-bottom:18px;
}
.auth-panel-simple .field label,
.auth-label-row label{
  color:#111;
  font-size:14px;
  font-weight:650;
}
.auth-panel-simple .field input{
  min-height:50px;
  border-radius:7px;
  border:1px solid #bcd4ed;
  background:#eef5fd;
  padding:12px 14px;
  color:#111;
}
.auth-panel-simple .field input:focus{
  border-color:#8db9e8;
  box-shadow:0 0 0 3px rgba(91,149,211,.12);
  outline:none;
}
.auth-label-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:7px;
}
.auth-label-row label{margin:0}
.auth-link.compact{
  padding:0;
  font-size:13px;
  font-weight:600;
  color:#386da9;
}
.auth-primary{
  width:100%;
  min-height:54px;
  justify-content:center;
  border-radius:7px!important;
  margin-top:8px;
  font-size:16px;
  background:#dceafb!important;
  color:#17232d!important;
  border:1px solid #bfd5ef!important;
}
.auth-primary:hover{
  background:#cfe2f8!important;
}
.auth-secondary-line{
  margin-top:17px;
  text-align:center;
  font-size:13px;
  color:#66736b;
}
.auth-lead{
  margin:-12px 0 20px;
  text-align:center;
  color:#66736b;
  line-height:1.45;
  font-size:13px;
}
.auth-back{
  display:block;
  margin:16px auto 0;
}
.auth-version{
  margin-top:26px;
  text-align:right;
  font-size:10px;
  color:#7d8781;
}
.auth-panel-simple .notice{
  margin-top:14px!important;
}
@media(max-width:560px){
  #authGate{padding:18px 12px}
  .auth-panel.auth-panel-simple{padding:27px 22px 18px}
  .auth-title{font-size:25px;margin-bottom:23px}
  .auth-brand-copy span{display:none}
  .auth-label-row{align-items:flex-end}
  .auth-label-row .auth-link{font-size:12px}
}


/* DUNSIRA MI FARMACIA V12 */
.medication-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.medication-card{border:1px solid #e4e8e5;border-radius:22px;background:#fff;padding:16px}
.medication-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.medication-details{display:grid;gap:5px;margin-top:12px;font-size:13px;color:#42534c;line-height:1.45}
.cima-results{display:grid;gap:7px;margin:8px 0}
.cima-result{border:1px solid #d8e5f1;border-radius:14px;background:#f5f9fd;padding:10px 12px;text-align:left;cursor:pointer;color:#17232d}
.cima-result:hover{background:#eaf3fc}
.cima-result strong,.cima-result span{display:block}.cima-result span{font-size:12px;color:#566760;margin-top:3px}
@media(max-width:840px){.medication-grid{grid-template-columns:1fr}.medication-card-head{display:grid}}



/* =========================================================
   DUNSIRA HOME APPOINTMENTS V2.65 · contain long appointment text
   ========================================================= */
.reference-main-grid > .reference-section{
  min-width:0;
  overflow:hidden;
}
.reference-today{
  min-width:0;
  width:100%;
}
.reference-today-item{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}
.reference-time{
  flex:0 0 auto;
}
.reference-today-copy{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:100%;
  overflow:hidden;
}
.reference-today-copy strong,
.reference-today-copy span{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
}


/* =========================================================
   DUNSIRA OFFICIAL BRAND V2.66 · official intertwined D / infinity mark
   ========================================================= */
.official-brand-mark{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
  overflow:visible!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.official-logo-image{
  display:block;
  width:100%;
  height:100%;
  background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAACFCAMAAAC0RNv6AAAAwFBMVEUHLTQLHWMOVFtub28FIjgMMU0QMk2soZoMMU3kxq7KsJoFIzoHIzitqHj9/f3MrpaznYvpq6McQV1dX2P//wCql4nJsJv/AACgc3AoSWDv76MAAP+1nYrz83n/f3+hinvornMiRWGQgngVfxXbwa4A/wB/Hx9/fwBFWGR/f79///+IfXapkH/42MEAAAAAGjACITgHKkXKqpANNVMAAFTSs5nXu6QBGjEAGS8AADsBGjEAGC8AGjAAGzEAGjDbwalAsqIRAAAAQHRSTlMPEgsIYNVgFKT6ptOcDQHaXxHy/AHuYAEOUwMBnwICUwSY9QKpAQMCQgQC/Yb/APr8+/v7A/v7cC4EzxSOrU/7PNceWwAAE8JJREFUeNrtnQdj27gOgCkrthzHI8tJmja99uablOzI1lb+/796HBokRVKU7ax7xF3apLHmJ4AgAEIAWvlbC7C3wAK2YgFbsYCtWMBWLGArFrAVC9gCtmIBW7GArVjAVixgKxawFQvYAjYWx7G37f9Cg53RyKL+lICzLI7jDAsAAH2hv8m3ADjAqQRUG4YW8ucDHPl+4Pv+RSPjMf4ajzeNoB+m08mEWuuRvY2fC3Ae+EFHNoI8ExlPJ4511T4b4AJpMFZhI8TPz4Sx1eLPBZhIjxo/NzK2iD8XYKq+fo+Zfn7mEWvdraV3tVwu6bfLK8+1d/6dAQcyUfIliN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VjUaqo3B8qaWW38oY933MpUJbQpZxRriahlg4DGnTgZ0cB++vrsioflb3PsTHbjeo9lLSskemoyQDrDrn+ojVVZRKZcskViElPR3C+hTozckGaLCTzf02q9TOU2/+va4nTOsbhNfnywEcOOm+FRzz77ZsdpCingUdBS6OaZZtnOgI0XMAyPQ5r1dxnbhJt4OmMnGWgGHnpXwcy6ZQtn1mTPYK9PNTXyBMvq5vsFzTXwvlHh0bXfdqwFOothjHIXN1MO/wVSykr2JCTVhSHas89GHge2qETPvUvp2Hshsd9lgStt10//nTs8E9mZDUa0cTSe3IIMDEv/WZheBNIQ9jUudign8kUWHadEVwnRwghCipvUjf5mUk1T1JQvLcwI8vXMPeAU8z6AtBtO06GF1uVHu+6DrJI/l7o2mPrAwA9OWAs/mFgLc6ypl99+9JBfTUvbTl7+37SFvLPYHdEh0Av0j5Vp3QxtPpGLPly3SCTlNAK68PGJkuMkoyeQCGShDM5b7x6LepCq9Y5S5osP8BX5DytwaM5eyCUTMWy3yylMcwvo6csZavlK6ymMPK6wKG2VnBj78EDFlhopjdjqBAWKq8HcLBG71w1QLuTCbO5twg7Ac6vJSwUn8DkTDjlKeOY4m8uQbTBVPlfH6R4lUOF/P5mdOUQij36vSY52apis9gtg7WuwCuQgIuoPJgEplJWiu90RL2e3pBWnkLwJhY+0FgMlFFhIkvvdFosM/l+YvYzoDfEfBgGVHCOv0VE1+W72cCjDNMGLHGPgdmL4ax8jEB44H6t8lUSZixz/iVQnZ+9PkAk4mUM+2bBPcV2Fj5sICr/lhNvxVGewMu027V97MCRnidqj2WRIOrChurvZ8ZcNUfy3WcyXQ6v6hkPp+flQArbmi197MDxhQrJQWAvN0YZG49W7bytwBMFFl8PbmNO/+9AFuxgK1YwFYsYCsWsAVsxQK2YgFbsYCtWMBWLGArFrAFbMUCtmIBW7GArVjAVk4m/wMA8eJkHAfp6wAAAABJRU5ErkJggg==");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}
.auth-brand-mark.official-brand-mark{
  width:92px!important;
  height:52px!important;
}
.sidebar-brand-mark{
  width:68px!important;
  height:42px!important;
  flex:0 0 68px!important;
}
@media(max-width:560px){
  .auth-brand-mark.official-brand-mark{
    width:88px!important;
    height:46px!important;
  }
}

/* =========================================================
   DUNSIRA OFFICIAL BRAND SYSTEM V2.71
   Source: approved Dunsira navy + champagne identity.
   This final layer intentionally overrides legacy visual experiments.
   ========================================================= */
:root{
  --brand-navy:#011b32;
  --brand-navy-2:#03223a;
  --brand-champagne:#d2b49b;
  --brand-champagne-deep:#b58f72;
  --brand-champagne-soft:#f3ece4;
  --brand-cream:#fbf8f5;
  --brand-line:#e7ddd4;
  --brand:#011b32;
  --brand-strong:#011b32;
  --brand2:#d2b49b;
  --bg:#fbfaf8;
  --panel:#fff;
  --text:#173044;
  --muted:#6d777d;
  --nav:#fbf8f5;
  --line:#e7e1dc;
  --soft:#f3ece4;
  --soft2:#f7f2ed;
  --action-blue-soft:#f3ece4;
  --action-blue-soft-hover:#eadfd5;
  --action-blue-line:#d9c5b4;
  --action-ink:#011b32;
  --context-accent:#011b32;
  --context-accent-deep:#011b32;
  --context-soft:#f3ece4;
}
body[data-context="personal"],
body[data-context="professional"],
body[data-view="family"],
body[data-view="pets"],
body[data-subject="pet"],
body[data-view="archived"]{
  --context-accent:#011b32!important;
  --context-accent-deep:#011b32!important;
  --context-soft:#f3ece4!important;
  --context-wash:rgba(210,180,155,.14)!important;
}
html,body{background-color:var(--bg)!important}
body{
  background:
    radial-gradient(circle at 100% -8%,rgba(210,180,155,.17),transparent 31rem),
    radial-gradient(circle at -8% 95%,rgba(1,27,50,.035),transparent 28rem),
    var(--bg)!important;
  color:var(--text)!important;
}
.main h1,.main h2,.main h3,.main h4,
.topbar h2,.reference-greeting h3,.reference-section-head h4,
.family-module-identity h3,.pet-module-identity h3,.archive-module-identity h3{
  color:var(--brand-navy)!important;
}
.muted,.topbar p,.reference-greeting p{color:var(--muted)!important}
a:not(.btn),.auth-link,.reference-link{color:var(--brand-navy)!important}

/* Official wordmark */
.official-logo-image{
  background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAACFCAMAAAC0RNv6AAAAwFBMVEUHLTQLHWMOVFtub28FIjgMMU0QMk2soZoMMU3kxq7KsJoFIzoHIzitqHj9/f3MrpaznYvpq6McQV1dX2P//wCql4nJsJv/AACgc3AoSWDv76MAAP+1nYrz83n/f3+hinvornMiRWGQgngVfxXbwa4A/wB/Hx9/fwBFWGR/f79///+IfXapkH/42MEAAAAAGjACITgHKkXKqpANNVMAAFTSs5nXu6QBGjEAGS8AADsBGjEAGC8AGjAAGzEAGjDbwalAsqIRAAAAQHRSTlMPEgsIYNVgFKT6ptOcDQHaXxHy/AHuYAEOUwMBnwICUwSY9QKpAQMCQgQC/Yb/APr8+/v7A/v7cC4EzxSOrU/7PNceWwAAE8JJREFUeNrtnQdj27gOgCkrthzHI8tJmja99uablOzI1lb+/796HBokRVKU7ax7xF3apLHmJ4AgAEIAWvlbC7C3wAK2YgFbsYCtWMBWLGArFrAVC9gCtmIBW7GArVjAVixgKxawFQvYAjYWx7G37f9Cg53RyKL+lICzLI7jDAsAAH2hv8m3ADjAqQRUG4YW8ucDHPl+4Pv+RSPjMf4ajzeNoB+m08mEWuuRvY2fC3Ae+EFHNoI8ExlPJ4511T4b4AJpMFZhI8TPz4Sx1eLPBZhIjxo/NzK2iD8XYKq+fo+Zfn7mEWvdraV3tVwu6bfLK8+1d/6dAQcyUfIliNVDMSJKv3HdB5eyXT5+tzf/HQEHMsY6vngsdqR7u318RH96V3ez2WyFZTa7u8MqjLDf3loCHwbwpocvEqTEHTN9hb/uZqv9+fn5y76S3R5RRowfLeD3AjxkAGaUeCTsEJlm7+73l/PzfSO7WlZ36LcLi+B9vGjTiXCXMONNI6/Ku8Oa+9LFWyNeWn/r7QMdhwPmCCPrTPEqAG+3CLFV4s8F+Hns1IQfofc7xcsAFghvdzMP/rAY3hxwdxZMA9DjOiT9rJQx1WFkni/Pa74KwltMeHcJFy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d9lgStt10//nTs8E9mZDUa0cTSe3IIMDEv/WZheBNIQ9jUudign8kUWHadEVwnRwghCipvUjf5mUk1T1JQvLcwI8vXMPeAU8z6AtBtO06GF1uVHu+6DrJI/l7o2mPrAwA9OWAs/mFgLc6ypl99+9JBfTUvbTl7+37SFvLPYHdEh0Av0j5Vp3QxtPpGLPly3SCTlNAK68PGJkuMkoyeQCGShDM5b7x6LepCq9Y5S5osP8BX5DytwaM5eyCUTMWy3yylMcwvo6csZavlK6ymMPK6wKG2VnBj78EDFlhopjdjqBAWKq8HcLBG71w1QLuTCbO5twg7Ac6vJSwUn8DkTDjlKeOY4m8uQbTBVPlfH6R4lUOF/P5mdOUQij36vSY52apis9gtg7WuwCuQgIuoPJgEplJWiu90RL2e3pBWnkLwJhY+0FgMlFFhIkvvdFosM/l+YvYzoDfEfBgGVHCOv0VE1+W72cCjDNMGLHGPgdmL4ax8jEB44H6t8lUSZixz/iVQnZ+9PkAk4mUM+2bBPcV2Fj5sICr/lhNvxVGewMu027V97MCRnidqj2WRIOrChurvZ8ZcNUfy3WcyXQ6v6hkPp+flQArbmi197MDxhQrJQWAvN0YZG49W7bytwBMFFl8PbmNO/+9AFuxgK1YwFYsYCsWsAVsxQK2YgFbsYCtWMBWLGArFrAFbMUCtmIBW7GArVjAVk4m/wMA8eJkHAfp6wAAAABJRU5ErkJggg==")!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:contain!important;
}
.auth-brand-row{margin-bottom:24px!important}
.auth-brand-mark.official-brand-mark{
  width:260px!important;
  height:72px!important;
  flex:0 0 260px!important;
}
.auth-brand-copy{display:none!important}
.sidebar-brand-mark{
  width:148px!important;
  height:42px!important;
  flex:0 0 148px!important;
}
.sidebar .logo{align-items:center!important;gap:8px!important}
.sidebar .logo h1{display:none!important}
.sidebar .logo small{color:#7b7c7c!important;font-size:11px!important}

/* Login */
#authGate{
  background:
    radial-gradient(circle at 13% 12%,rgba(210,180,155,.21),transparent 32%),
    radial-gradient(circle at 90% 88%,rgba(1,27,50,.035),transparent 30%),
    #fbfaf8!important;
}
.auth-card.auth-card-simple{
  border-color:var(--brand-line)!important;
  box-shadow:0 24px 64px rgba(1,27,50,.10)!important;
}
.auth-title,.auth-panel-simple .field label,.auth-label-row label{color:var(--brand-navy)!important}
.auth-panel-simple .field input,
.auth-panel-simple .field select,
.auth-panel-simple .field textarea{
  border-color:#ded3ca!important;
  background:#fdfbf9!important;
  color:var(--brand-navy)!important;
}
.auth-panel-simple .field input:focus,
.auth-panel-simple .field select:focus,
.auth-panel-simple .field textarea:focus{
  border-color:var(--brand-champagne-deep)!important;
  box-shadow:0 0 0 3px rgba(210,180,155,.22)!important;
}
.auth-primary{
  background:var(--brand-navy)!important;
  color:#fff!important;
  border-color:var(--brand-navy)!important;
  box-shadow:0 7px 18px rgba(1,27,50,.14)!important;
}
.auth-primary:hover{background:var(--brand-navy-2)!important}
.auth-secondary-line,.auth-lead,.auth-version{color:#737777!important}

/* Navigation */
.sidebar{
  background:rgba(251,248,245,.96)!important;
  border-right-color:var(--brand-line)!important;
  color:var(--brand-navy)!important;
}
.nav button{color:#53616a!important}
.nav button.active,.nav button:hover{
  background:var(--brand-champagne-soft)!important;
  color:var(--brand-navy)!important;
}
#contextBanner{
  background:linear-gradient(100deg,#fff,var(--brand-champagne-soft))!important;
  border-color:var(--brand-line)!important;
}
#contextBanner strong,#contextBanner span{color:var(--brand-navy)!important}
.top-context-switch button.active,
.auth-tabs button.active{
  background:var(--brand-champagne-soft)!important;
  color:var(--brand-navy)!important;
  border-color:#d8c2af!important;
}

/* Buttons: brand colors only; semantic danger remains red. */
.btn:not(.secondary):not(.ghost):not(.danger),
body[data-view="pets"] .btn:not(.secondary):not(.ghost):not(.danger),
body[data-subject="pet"] .btn:not(.secondary):not(.ghost):not(.danger),
body[data-view="family"] .btn:not(.secondary):not(.ghost):not(.danger),
body[data-context="professional"] .btn:not(.secondary):not(.ghost):not(.danger){
  background:var(--brand-navy)!important;
  color:#fff!important;
  border-color:var(--brand-navy)!important;
  box-shadow:0 6px 15px rgba(1,27,50,.10)!important;
}
.btn:not(.secondary):not(.ghost):not(.danger):hover{
  background:var(--brand-navy-2)!important;
  color:#fff!important;
}
.btn.secondary,
body[data-view="pets"] .btn.secondary,
body[data-subject="pet"] .btn.secondary,
body[data-view="family"] .btn.secondary,
body[data-context="professional"] .btn.secondary{
  background:var(--brand-champagne-soft)!important;
  color:var(--brand-navy)!important;
  border-color:#d8c2af!important;
  box-shadow:none!important;
}
.btn.ghost,
body[data-view="pets"] .btn.ghost,
body[data-subject="pet"] .btn.ghost,
body[data-view="family"] .btn.ghost,
body[data-context="professional"] .btn.ghost{
  background:#fff!important;
  color:var(--brand-navy)!important;
  border-color:#ded7d1!important;
  box-shadow:none!important;
}
.btn.danger{
  background:#fff!important;
  color:#a13f52!important;
  border-color:#e7cbd1!important;
  box-shadow:none!important;
}

/* General UI accents */
.request-pill,.pill,.account-trigger{
  border-color:#e3ddd8!important;
  color:var(--brand-navy)!important;
}
.request-pill:hover,.pill:hover{background:var(--brand-champagne-soft)!important}
.mini-avatar,.icon-tile,.quick-card .quick-count{
  background:var(--brand-champagne-soft)!important;
  color:var(--brand-navy)!important;
}
.network-card.active,.thread-item.active{
  border-color:#cfb49e!important;
  box-shadow:0 0 0 2px rgba(210,180,155,.20)!important;
}
.day.today{box-shadow:0 0 0 2px var(--brand-champagne-deep) inset!important}
.mini-day.has-event:after{background:var(--brand-navy)!important}
.message.me{
  background:#f5eee8!important;
  border-color:#e6d7cb!important;
}

/* Family / pets keep gentle differentiation, never green as brand. */
.family-module-identity,.pet-module-identity,
body[data-view="family"] .family-hero,
body[data-view="pets"] .pet-hero,
body[data-subject="pet"] .pet-hero{
  background:linear-gradient(120deg,#fff,#f3ece4)!important;
  border-color:var(--brand-line)!important;
  color:var(--brand-navy)!important;
  box-shadow:0 8px 24px rgba(1,27,50,.045)!important;
}
.family-module-identity .icon-tile,.pet-module-identity .icon-tile,
body[data-view="pets"] .icon-tile.pet,
body[data-subject="pet"] .icon-tile.pet{
  background:#eadfd5!important;
  color:var(--brand-navy)!important;
}
body[data-view="family"] .mini-avatar,
body[data-view="pets"] .mini-avatar,
body[data-subject="pet"] .mini-avatar{
  background:var(--brand-champagne-soft)!important;
  color:var(--brand-navy)!important;
}
body[data-view="pets"] .pet-chip,
body[data-subject="pet"] .pet-chip{
  background:#fff!important;
  color:var(--brand-navy)!important;
  border-color:#dac8b9!important;
}
body[data-view="pets"] .logo h1,
body[data-subject="pet"] .logo h1{color:var(--brand-navy)!important}

/* Keep semantic state colors reserved for meaning. */
.badge.green,.notice.ok,.date-chip.ok{color:#2f6f59!important}
.badge.red,.notice.error{color:#9b4052!important}
.badge.warn,.notice.warn{color:#806126!important}


/* Network detail header · 2.80 */
.network-detail-card{padding-top:18px}
.network-detail-top{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}
.network-detail-identity{min-width:0}
.network-detail-identity h3{margin:14px 0 4px;font-size:22px}
.network-detail-tools{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:10px;align-items:stretch}
.network-tool{border:1px solid #eee8e3;border-radius:16px;padding:11px 14px;min-height:70px;display:flex;align-items:center;gap:10px;text-align:left;color:var(--ink);font-weight:800;background:#fff;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.network-tool:hover{transform:translateY(-1px);border-color:#e5d6cd;box-shadow:0 5px 16px rgba(40,54,65,.05)}
.network-tool .icon-tile{width:34px;height:34px;flex:0 0 auto}
.network-tool.sage{background:#f8fcf9}.network-tool.sage .icon-tile{background:#e4f1e7;color:#5f8c6a}
.network-tool.peach{background:#fff7f5}.network-tool.peach .icon-tile{background:#f8e3df;color:#bb6652}
.network-tool.beige{background:#fffaf4}.network-tool.beige .icon-tile{background:#f7eadb;color:#b57d52}
.network-professionals-head{margin-top:4px}
.network-pet-action{margin:-8px 0 16px}
@media(max-width:900px){
  .network-detail-top{flex-direction:column;gap:14px}
  .network-detail-tools{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:560px){
  .network-detail-tools{grid-template-columns:1fr}
  .network-tool{min-height:58px}
  .network-detail-identity h3{font-size:19px}
}


/* =========================================================
   DUNSIRA MOBILE COMFORT PASS · 2.91
   Final responsive layer: no sideways layout, larger tap targets,
   clear 2-column dashboard and fixed bottom navigation.
   ========================================================= */
@media(max-width:840px){
  html,body{width:100%;max-width:100%;overflow-x:hidden!important}
  body{font-size:14px!important}
  .app:not(.hidden){
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-height:100dvh!important;
  }
  .main{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:14px 12px calc(88px + env(safe-area-inset-bottom))!important;
    overflow-x:hidden!important;
  }
  #content{width:100%!important;max-width:100%!important;min-width:0!important}

  .sidebar{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    top:auto!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    z-index:1000!important;
    padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important;
    border-right:0!important;
    border-top:1px solid var(--brand-line)!important;
    background:rgba(251,248,245,.97)!important;
    backdrop-filter:blur(16px)!important;
    box-shadow:0 -8px 26px rgba(1,27,50,.07)!important;
  }
  .sidebar .logo,.sidebar .pilot,.sidebar .sidebar-bottom,.sidebar .nav-section-label{display:none!important}
  .nav{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:3px!important;
    width:100%!important;
  }
  .nav button{
    min-width:0!important;
    min-height:50px!important;
    padding:5px 2px!important;
    border-radius:12px!important;
    justify-content:center!important;
    flex-direction:column!important;
    gap:3px!important;
    font-size:10px!important;
    line-height:1.05!important;
    text-align:center!important;
  }
  .nav button .ui-icon{width:20px!important;height:20px!important}
  .nav button .label{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  .topbar{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    width:100%!important;
    margin-bottom:14px!important;
  }
  .topbar h2{font-size:28px!important;line-height:1.08!important}
  .topbar p{font-size:14px!important;margin-top:3px!important}
  .top-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
  }
  .top-actions>.request-pill,
  .top-actions>.pill{
    width:100%!important;
    max-width:none!important;
    justify-content:center!important;
    min-height:42px!important;
  }
  .top-actions>.account-menu-wrap{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
  }
  .account-trigger{
    width:100%!important;
    max-width:100%!important;
    min-height:46px!important;
    justify-content:flex-start!important;
    overflow:hidden!important;
  }
  .account-trigger>span{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .account-menu{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    top:auto!important;
    bottom:calc(78px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-height:70dvh!important;
    overflow:auto!important;
  }

  #contextBanner,.context-banner{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:12px!important;
    border-radius:18px!important;
    gap:10px!important;
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .context-banner-copy{width:100%!important;min-width:0!important}
  .top-context-switch{
    display:flex!important;
    width:100%!important;
    max-width:none!important;
    order:0!important;
  }
  .top-context-switch button{flex:1 1 0!important;min-height:42px!important}

  .reference-home{gap:14px!important;width:100%!important}
  .reference-greeting{
    width:100%!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:10px!important;
    padding:2px 0 4px!important;
  }
  .reference-greeting-person{width:100%!important;gap:12px!important;align-items:center!important}
  .reference-greeting h3{font-size:25px!important;line-height:1.12!important}
  .reference-greeting p{font-size:13px!important;line-height:1.35!important}
  .profile-avatar.greeting{width:58px!important;height:58px!important;flex:0 0 58px!important}
  .reference-greeting>.btn{width:100%!important}

  .reference-summary{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    width:100%!important;
  }
  .summary-tile{
    min-width:0!important;
    min-height:84px!important;
    padding:13px!important;
    border-radius:18px!important;
    gap:10px!important;
    align-items:center!important;
  }
  .summary-tile .icon-tile{width:40px!important;height:40px!important;flex:0 0 40px!important}
  .summary-tile strong{
    font-size:14px!important;
    white-space:normal!important;
    line-height:1.2!important;
  }
  .summary-tile span span{font-size:11px!important;line-height:1.2!important}

  .reference-main-grid{
    grid-template-columns:1fr!important;
    gap:12px!important;
    width:100%!important;
  }
  .reference-section{
    width:100%!important;
    min-width:0!important;
    padding:15px!important;
    border-radius:20px!important;
  }
  .reference-section-head{align-items:center!important;gap:8px!important}
  .reference-section-head h4{font-size:17px!important}
  .reference-link{font-size:12px!important}

  .reference-networks{
    grid-template-columns:1fr!important;
    gap:9px!important;
    width:100%!important;
    overflow:visible!important;
  }
  .reference-network{
    width:100%!important;
    min-width:0!important;
    min-height:74px!important;
    padding:12px!important;
    border-radius:17px!important;
  }
  .reference-network strong{font-size:14px!important;white-space:normal!important}
  .reference-network small{font-size:11.5px!important;white-space:normal!important}
  .profile-avatar.card{width:46px!important;height:46px!important;flex:0 0 46px!important}

  .reference-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    width:100%!important;
    overflow:visible!important;
  }
  .reference-action{
    min-width:0!important;
    min-height:88px!important;
    padding:12px 8px!important;
    border-radius:18px!important;
    font-size:12px!important;
  }
  .reference-action .icon-tile{width:40px!important;height:40px!important;margin-bottom:7px!important}

  .reference-today-item{width:100%!important;min-width:0!important}
  .reference-news .row{width:100%!important;min-width:0!important}

  .grid,.cols2,.cols3,.cols4,.plan-strip,.plan-cards,
  .patient-groups,.privacy-grid,.family-profile-grid{
    grid-template-columns:1fr!important;
    width:100%!important;
    min-width:0!important;
  }
  .card,.subtle,.patient-group,.family-card,.professional-card,.plan-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .row{min-width:0!important}
  .row-main{min-width:0!important;max-width:100%!important}
  .row-main>div{min-width:0!important}
  .row-title,.row-sub{overflow-wrap:anywhere!important}
  .document-row{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .document-row>.btn-row{
    width:100%!important;
    justify-content:flex-end!important;
  }

  .toolbar-row{
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
  }
  .toolbar-row select,.toolbar-row input,.search{
    width:100%!important;
    max-width:none!important;
  }

  .calendar{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:visible!important;
    gap:3px!important;
  }
  .day{
    min-width:0!important;
    min-height:58px!important;
    padding:4px!important;
    border-radius:9px!important;
  }
  .day-num{font-size:10px!important}
  .event{font-size:8px!important;padding:3px!important}

  .overlay{
    align-items:flex-end!important;
    padding:0!important;
  }
  .modal{
    width:100%!important;
    max-width:100%!important;
    max-height:92dvh!important;
    border-radius:22px 22px 0 0!important;
    padding:16px!important;
    margin:0!important;
  }
  #docPreviewArea iframe{height:62dvh!important}

  .network-detail-top{width:100%!important}
  .network-detail-tools{
    width:100%!important;
    grid-template-columns:1fr!important;
  }
  .network-tool{width:100%!important}

  .toast-wrap{
    left:10px!important;
    right:10px!important;
    bottom:calc(82px + env(safe-area-inset-bottom))!important;
  }
  .toast{max-width:none!important;width:100%!important}
}

@media(max-width:420px){
  .main{padding-left:10px!important;padding-right:10px!important}
  .topbar h2{font-size:25px!important}
  .reference-summary{grid-template-columns:1fr 1fr!important}
  .summary-tile{padding:11px!important;gap:8px!important}
  .summary-tile .icon-tile{width:36px!important;height:36px!important;flex-basis:36px!important}
  .summary-tile strong{font-size:13px!important}
  .reference-actions{grid-template-columns:1fr 1fr!important}
  .reference-section{padding:13px!important}
  .btn-row{width:100%!important}
  .btn-row .btn{flex:1 1 auto!important}
}


/* DUNSIRA MOBILE HARDENING · 2.92 */
@media(max-width:840px){
  /* El modal debe quedar por encima de la navegación inferior y desplazarse con el dedo. */
  .overlay{
    z-index:12000!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    touch-action:pan-y!important;
  }
  .modal{
    max-height:100dvh!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    touch-action:pan-y!important;
    padding-bottom:calc(24px + env(safe-area-inset-bottom))!important;
  }
  #doUpload{
    position:sticky!important;
    bottom:0!important;
    z-index:6!important;
    width:100%!important;
    min-height:48px!important;
    margin-top:16px!important;
    box-shadow:0 -10px 20px rgba(255,253,250,.96)!important;
  }

  /* Las filas de actividad deben ocupar el ancho disponible.
     Sin flex-grow el bloque de texto podía colapsar a una columna de 1 carácter. */
  .activity-row{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    align-items:flex-start!important;
    gap:8px!important;
    overflow:hidden!important;
  }
  .activity-row .row-main{
    flex:1 1 auto!important;
    width:0!important;
    min-width:0!important;
    max-width:100%!important;
    align-items:flex-start!important;
  }
  .activity-row .row-main>div:last-child{
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .activity-row .network-visual,
  .activity-row .activity-icon{
    flex:0 0 auto!important;
  }
  .activity-row .row-title,
  .activity-row .row-sub,
  .activity-row .meta{
    width:auto!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  .activity-row>.network-arrow{
    flex:0 0 auto!important;
    align-self:center!important;
  }
}


/* DUNSIRA MOBILE ACTIVITY ROW · 2.93
   La actividad reciente usa su propia rejilla para que icono, texto y fecha
   no compitan por ancho en pantallas estrechas. */
.reference-activity-row .reference-activity-copy{
  min-width:0;
  flex:1 1 auto;
}
.reference-activity-row>.meta{
  flex:0 0 auto;
  white-space:nowrap;
}
@media(max-width:840px){
  .reference-news .reference-activity-row{
    display:grid!important;
    grid-template-columns:36px minmax(0,1fr)!important;
    grid-template-areas:
      "activity-icon activity-copy"
      "activity-date activity-date"!important;
    column-gap:10px!important;
    row-gap:4px!important;
    align-items:start!important;
    overflow:hidden!important;
  }
  .reference-news .reference-activity-row>.activity-icon{
    grid-area:activity-icon!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    max-width:36px!important;
    flex:none!important;
    border-radius:11px!important;
  }
  .reference-news .reference-activity-row>.reference-activity-copy{
    grid-area:activity-copy!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .reference-news .reference-activity-row>.meta{
    grid-area:activity-date!important;
    justify-self:end!important;
    width:auto!important;
    max-width:100%!important;
    white-space:nowrap!important;
    margin-top:1px!important;
  }
  .reference-news .reference-activity-row .row-title,
  .reference-news .reference-activity-row .row-sub{
    width:100%!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
}


/* DUNSIRA MOBILE AUTH VISIBILITY GUARD · 2.94
   Login y aplicación son estados mutuamente excluyentes.
   Evita que cualquier regla responsive con display !important
   vuelva a mostrar contenido marcado como hidden. */
.hidden,
#appShell.hidden,
#authGate.hidden,
#publicAuthorizationGate.hidden{
  display:none!important;
}
#authGate:not(.hidden) + #appShell{
  display:none!important;
}
@media(max-width:840px){
  #authGate{
    width:100%!important;
    max-width:100%!important;
    min-height:100dvh!important;
    overflow-x:hidden!important;
  }
  .auth-card.auth-card-simple{
    max-width:100%!important;
  }
}


/* DUNSIRA CALENDAR MOBILE FIX · 2.95
   Corrige el colapso del texto de las citas en tarjetas y modal.
   La regla anterior width:0 del row-main resolvía un caso concreto de Inicio,
   pero comprimía las citas a una columna de una letra. */
@media(max-width:840px){
  .activity-row:not(.reference-activity-row){
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    align-items:flex-start!important;
  }
  .activity-row:not(.reference-activity-row) .row-main{
    flex:1 1 0!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    align-items:flex-start!important;
  }
  .activity-row:not(.reference-activity-row) .row-main>div:last-child{
    flex:1 1 0!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .activity-row:not(.reference-activity-row) .row-title,
  .activity-row:not(.reference-activity-row) .row-sub,
  .activity-row:not(.reference-activity-row) .meta{
    width:auto!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }

  .event-detail-row{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:14px!important;
  }
  .event-detail-row .row-main{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:10px!important;
  }
  .event-detail-row .network-visual,
  .event-detail-row .activity-icon{
    flex:0 0 auto!important;
  }
  .event-detail-row .event-detail-copy{
    flex:1 1 0!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .event-detail-row .row-title,
  .event-detail-row .row-sub,
  .event-detail-row .small{
    width:auto!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
  .event-detail-row .network-tag{
    max-width:100%!important;
    white-space:normal!important;
  }
}


/* DUNSIRA CALENDAR CLASS COLLISION FIX · 2.96
   El icono de una cita ya no usa la clase .calendar.
   Esa clase pertenece exclusivamente a la rejilla mensual. */
.activity-icon.calendar-icon{
  display:grid;
  place-items:center;
  flex:0 0 auto;
}

/* 3.08 · atajos entre Mensajes y Documentos + mensajes marcados */
.chat-context-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.chat-context-actions .btn{white-space:nowrap}
.chat-context-actions .btn.active{background:#fff5df;border-color:#ead7af;color:#79551f}
.message{position:relative;padding-right:38px}
.message-star-btn{position:absolute;right:8px;top:8px;width:25px;height:25px;border:0;border-radius:999px;background:transparent;color:#aab1ba;font-size:15px;line-height:1;cursor:pointer;opacity:.58}
.message-star-btn:hover,.message-star-btn.active{opacity:1;color:#9b6b27;background:#fff5df}
.message.starred{box-shadow:0 0 0 1px #ead7af inset,0 3px 10px rgba(53,72,103,.04)}
@media(max-width:760px){
  .chat-context-actions{width:100%;justify-content:flex-start;margin-top:8px}
  .chat-context-actions .network-visual{margin-left:auto}
}

/* 3.09 · document folders */
.document-folder-strip{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.document-folder-chip{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:999px;padding:8px 11px;font-size:12px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.document-folder-chip:hover{border-color:#c8d0da;background:#fbfcfd}
.document-folder-chip.active{background:#f5eee8;border-color:#dfcec0;color:#3f4a57}
.document-folder-chip span{font-size:10px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#f1f3f5;color:var(--muted);display:inline-grid;place-items:center}
@media(max-width:760px){.document-folder-strip{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.document-folder-chip{flex:0 0 auto}}

.document-folder-label{font-size:12px;font-weight:800;color:var(--muted);display:inline-flex;align-items:center;padding:0 2px}

/* 3.14 · full-width documents + drag/drop */
.documents-network-layout{display:block;width:100%}
.documents-network-home{width:100%;max-width:none}
.document-privacy-inline{display:inline-flex;align-items:center;gap:6px;margin:2px 0 4px;padding:7px 10px;border-radius:10px;background:#f7f8fa;color:var(--muted);font-size:12px;line-height:1.35}
.document-row[draggable="true"]{cursor:grab}
.document-row[draggable="true"]:active{cursor:grabbing}
.document-row.document-dragging{opacity:.45;transform:scale(.995)}
.document-folder-chip.folder-drop-target{transition:border-color .15s ease,background .15s ease,transform .15s ease,box-shadow .15s ease}
.document-folder-chip.folder-drop-target.drag-over{background:#eef8f2;border-color:#8ebaa0;box-shadow:0 0 0 3px rgba(100,160,126,.14);transform:translateY(-1px)}
@media(max-width:760px){
  .document-privacy-inline{display:flex;width:100%;box-sizing:border-box}
}

/* Centro profesional y marca visible en redes autorizadas */
.workplace-row-main{display:flex;align-items:center;gap:12px;min-width:0}
.workplace-logo{width:38px;height:38px;border-radius:11px;border:1px solid var(--line,#e5e1dc);background:#fff;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto}
.workplace-logo.settings{width:44px;height:44px}
.workplace-logo img,.professional-center-logo img,.workplace-logo-preview img{width:100%;height:100%;object-fit:contain;background:#fff}
.professional-branding{display:flex;align-items:center;gap:8px;margin-top:7px;color:var(--ink-soft,#50615c)}
.professional-branding>span:last-child{display:flex;flex-direction:column;line-height:1.15}
.professional-branding small{font-size:11px;margin-top:2px;opacity:.75}
.professional-center-logo{width:30px;height:30px;border-radius:9px;border:1px solid var(--line,#e5e1dc);background:#fff;display:inline-flex;overflow:hidden;flex:0 0 auto}
.workplace-logo-preview{display:flex;align-items:center;gap:10px;margin:8px 0 10px;font-size:12px;color:var(--ink-soft,#50615c)}
.workplace-logo-preview img{width:58px;height:58px;border-radius:12px;border:1px solid var(--line,#e5e1dc);object-fit:contain}

/* Información importante + documentos */
.important-attachment-editor{margin:14px 0;padding:12px;border:1px solid var(--line,#e5e1dc);border-radius:16px;background:rgba(255,255,255,.62)}
.important-attachments{margin-top:9px;padding-top:8px;border-top:1px dashed var(--line,#e5e1dc)}
.important-attachment-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0}
.important-item-card+.important-item-card{border-top:1px solid var(--line,#e5e1dc);margin-top:8px;padding-top:8px}
.document-subfolder-strip{margin-top:7px;padding-left:14px;border-left:2px solid rgba(36,73,62,.12)}
@media(max-width:700px){.important-attachment-row{align-items:flex-start;flex-direction:column}.important-attachment-row .btn-row{width:100%}}


/* 3.46 · context switch lives only in account menu */
.context-banner-switch,
#contextPersonalBtn,
#contextProfessionalBtn{
  display:none!important;
}


/* Cierre 5 · calendario profesional con referencia personal */
.calendar-personal-toggle-wrap{display:inline-flex;align-items:center;gap:8px;padding:6px 9px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:12px;font-weight:800;color:var(--text)}
.calendar-personal-swatch{width:10px;height:10px;border-radius:50%;background:#d97878;box-shadow:0 0 0 2px #f9e2e2}
.calendar-switch{position:relative;width:38px;height:22px;border:0;border-radius:999px;background:#dfe5e1;padding:0;cursor:pointer;transition:.18s ease}
.calendar-switch span{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.18);transition:.18s ease}
.calendar-switch.active{background:#8eaa95}
.calendar-switch.active span{left:19px}
.event.personal-overlay{box-shadow:inset 0 0 0 1px rgba(181,83,83,.10)}
@media(max-width:720px){.calendar-personal-toggle-wrap{width:100%;justify-content:space-between}.calendar-switch{flex:0 0 auto}}


/* =========================================================
   DUNSIRA CORPORATE COLOR LOCK · 3.47.49
   Retira los verdes heredados de la interfaz principal.
   Color corporativo oficial: azul marino Dunsira.
   ========================================================= */
:root{
  --dunsira-corporate:#011b32;
  --dunsira-corporate-mid:#4f6f8f;
  --dunsira-corporate-soft:#edf3fa;
  --dunsira-corporate-line:#d7e2f0;

  --ds-sage:var(--dunsira-corporate-mid);
  --ds-sage-soft:var(--dunsira-corporate-soft);
  --ds-success:var(--dunsira-corporate-mid);
  --soft2:var(--dunsira-corporate-soft);
  --sage:var(--dunsira-corporate-mid);
  --sage-soft:var(--dunsira-corporate-soft);
  --green:var(--dunsira-corporate);
  --green-soft:var(--dunsira-corporate-soft);
  --pet-accent:var(--dunsira-corporate-mid);
  --pet-deep:var(--dunsira-corporate);
  --pet-soft:var(--dunsira-corporate-soft);
}

body[data-context="professional"]{
  --context-accent:var(--dunsira-corporate-mid)!important;
  --context-accent-deep:var(--dunsira-corporate)!important;
  --context-soft:var(--dunsira-corporate-soft)!important;
}

.notice.ok,
.public-auth-result{
  background:var(--dunsira-corporate-soft)!important;
  color:var(--dunsira-corporate)!important;
  border-color:var(--dunsira-corporate-line)!important;
}
.badge.green,
.activity-icon.document,
.date-chip.ok{
  background:var(--dunsira-corporate-soft)!important;
  color:var(--dunsira-corporate)!important;
}
.status-dot{background:var(--dunsira-corporate-mid)!important}
.calendar-switch.active{background:var(--dunsira-corporate-mid)!important}
.document-folder-chip.folder-drop-target.drag-over{
  background:var(--dunsira-corporate-soft)!important;
  border-color:var(--dunsira-corporate-mid)!important;
  box-shadow:0 0 0 3px rgba(79,111,143,.14)!important;
}

/* Tiles formerly styled as sage/green now use the corporate blue family. */
body[data-context="personal"][data-view="dashboard"] .summary-tile.sage,
body[data-context="professional"] .summary-tile.sage,
body[data-context="personal"][data-view="dashboard"] .reference-action:nth-child(3){
  background:var(--dunsira-corporate-soft)!important;
}
body[data-context="personal"][data-view="dashboard"] .summary-tile.sage .icon-tile,
body[data-context="professional"] .summary-tile.sage .icon-tile{
  background:#dce6f0!important;
  color:var(--dunsira-corporate)!important;
}

/* Pet views keep their own layout, but no longer introduce a green brand accent. */
body[data-view="pets"],
body[data-subject="pet"]{
  --context-accent:var(--dunsira-corporate-mid)!important;
  --context-accent-deep:var(--dunsira-corporate)!important;
  --context-soft:var(--dunsira-corporate-soft)!important;
}
body[data-view="pets"] .pet-module-identity,
body[data-subject="pet"] .pet-module-identity,
body[data-view="pets"] .pet-hero,
body[data-subject="pet"] .pet-hero{
  background:linear-gradient(118deg,#f8e8e4 0%,#f7ece8 46%,#edf3fa 100%)!important;
}
body[data-view="pets"] .pet-module-identity h3,
body[data-subject="pet"] .pet-module-identity h3,
body[data-view="pets"] .logo h1,
body[data-subject="pet"] .logo h1{
  color:var(--dunsira-corporate)!important;
}
body[data-view="pets"] .pet-module-identity .icon-tile,
body[data-subject="pet"] .pet-module-identity .icon-tile,
body[data-view="pets"] .nav button.active,
body[data-subject="pet"] .nav button.active,
body[data-view="pets"] .date-chip.ok,
body[data-subject="pet"] .date-chip.ok{
  background:var(--dunsira-corporate-soft)!important;
  color:var(--dunsira-corporate)!important;
  border-color:var(--dunsira-corporate-line)!important;
}

/* Legacy green pastel slots are remapped to official corporate pastels. */
.pastel-3,.pastel-7,.pastel-9{background:var(--dunsira-corporate-soft)!important}
.event.med{background:var(--dunsira-corporate-soft)!important}
.module:nth-child(2){background:linear-gradient(150deg,#fff,#f2f6fb)!important}
.module:nth-child(2) .module-icon{color:var(--dunsira-corporate-mid)!important}


/* Cierre 5 · CTA de primera red profesional */
.reference-empty-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border:1px solid var(--dunsira-corporate-line,#d7e2f0);
  border-radius:16px;
  background:#fbfcfe;
  color:var(--text);
}
.reference-empty-cta>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.reference-empty-cta strong{font-size:14px}
.reference-empty-cta span{font-size:12px;color:var(--muted);line-height:1.4}
.reference-empty-cta .btn{flex:0 0 auto;background:var(--dunsira-corporate,#011b32)!important}
@media(max-width:680px){
  .reference-empty-cta{align-items:stretch;flex-direction:column}
  .reference-empty-cta .btn{width:100%}
}


/* Cierre 5 · autorización pública */
.public-auth-logo{
  width:190px!important;
  height:54px!important;
  justify-content:flex-start!important;
}
.public-auth-logo .official-logo-image{
  width:190px!important;
  height:54px!important;
  background-size:contain!important;
  background-repeat:no-repeat!important;
  background-position:left center!important;
}


/* Cierre 5 · modales largos siempre tienen salida visible */
.modal-head{
  position:sticky!important;
  top:-24px;
  z-index:12;
  background:#fff;
  padding-top:24px;
}
.modal-head::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:1px;
  background:var(--line,#e7e2dc);
}
.upload-document-actions{
  position:sticky;
  bottom:-24px;
  z-index:10;
  margin-left:-24px;
  margin-right:-24px;
  padding:14px 24px 24px;
  background:linear-gradient(to bottom,rgba(255,255,255,.92),#fff 28%);
}
@media(max-width:480px){
  .modal-head{top:-18px;padding-top:18px}
  .upload-document-actions{bottom:-18px;margin-left:-16px;margin-right:-16px;padding:12px 16px 18px}
}



/* Retorno contextual: visible solo desde módulos abiertos en una red. */
.network-module-return{display:flex;align-items:center;margin:0 0 12px;min-width:0}
.network-module-return .btn{max-width:100%;overflow-wrap:anywhere;white-space:normal;text-align:left;justify-content:flex-start}
.network-module-return .btn:focus-visible{outline:2px solid #467b91;outline-offset:2px}
@media(max-width:700px){.network-module-return .btn{font-size:13px;padding:10px 12px}}
