/* Philip easter egg: liquid cobalt. This file owns the complete Philip palette.
 * Clinical score, warning, error and answer-state colors are intentionally excluded.
 */
:root[data-base-theme="philip"]{
 color-scheme:dark;background:#064ec9;
 --ink:#f7fbff;--muted:#cbdcff;--line:rgba(190,222,255,.34);
 --bg:#064ec9;--paper:rgba(8,43,116,.34);--accent:#78c9ff;--accent-on:#031b48;
 --accent-bg:rgba(118,200,255,.17);--accent-border:#96d8ff;
 --shadow:0 24px 64px rgba(0,18,73,.28);
 --service-subtle:rgba(8,48,130,.32);--service-soft:rgba(7,40,111,.35);--service-control:rgba(4,31,99,.40);
 --service-unit:rgba(38,100,194,.27);--service-border:rgba(161,208,255,.48);--service-soft-text:#dbe9ff;--service-focus:#b7e4ff;
 --glass-surface:
  linear-gradient(118deg,rgba(255,255,255,.24),rgba(143,204,255,.09) 22%,rgba(19,72,167,.07) 52%,rgba(0,24,91,.26)),
  rgba(8,47,126,.34);
 --glass-raised:
  linear-gradient(135deg,rgba(255,255,255,.28),rgba(133,202,255,.11) 26%,rgba(0,34,112,.20) 72%),
  rgba(13,57,140,.39);
 --glass-controls:rgba(3,31,99,.42);
 --glass-edge:rgba(189,224,255,.55);
 --pm-primary:linear-gradient(130deg,#a9e1ff,#4ca7ff 42%,#1765e5);
 --pm-tint:rgba(151,211,255,.18);--pm-text:#eef8ff;--pm-border:#9bd8ff;
}
:root[data-base-theme="philip"] body{
 background:
  radial-gradient(ellipse 34% 24% at 11% 4%,rgba(220,245,255,.72),transparent 66%),
  radial-gradient(ellipse 39% 26% at 83% 3%,rgba(87,194,255,.74),transparent 72%),
  radial-gradient(ellipse 34% 42% at 4% 75%,rgba(70,165,255,.62),transparent 70%),
  radial-gradient(ellipse 46% 34% at 64% 100%,rgba(102,184,255,.45),transparent 76%),
  linear-gradient(142deg,#0a66e8 0%,#064fc8 36%,#063ca4 70%,#032a82 100%)!important;
 background-color:#064ec9!important;background-attachment:fixed!important;color:var(--ink);
}
:root[data-base-theme="philip"] .shell{
 position:relative;isolation:isolate;margin:14px;min-height:calc(100vh - 28px);overflow:clip;
 border:1px solid rgba(205,234,255,.70);border-radius:28px;
 background:linear-gradient(145deg,rgba(7,61,156,.26),rgba(2,28,92,.38));
 box-shadow:inset 0 1px 0 #fff9,inset 1px 0 0 #dff3ff5c,inset 0 -1px 0 #00113eaa,0 26px 80px #00133f66,0 0 42px #79d4ff45;
}
:root[data-base-theme="philip"] .shell::before{
 content:"";position:absolute;inset:-16%;z-index:0;pointer-events:none;
 background:
  radial-gradient(ellipse 18% 35% at 17% 10%,rgba(255,255,255,.32),transparent 70%),
  radial-gradient(ellipse 27% 22% at 72% 8%,rgba(100,211,255,.36),transparent 74%),
  linear-gradient(110deg,transparent 22%,rgba(155,222,255,.12) 37%,transparent 52%);
 filter:blur(18px);opacity:.85;
}
:root[data-base-theme="philip"] :is(
 .header,.sidebar,.section,.field,.toolbox,.profile-dialog,.profile-dialog-head,.clinical-tool-dialog,.tool-modal-head,.v08-dialog,.v08-dialog-head,
 .v081-tool-search,.v081-search-results,.v10-optional-gcs,.action-dock,.dialog-head,
 .learning-flow,.gcs-learn-hero,.gcs-learn-mode-card,.gcs-learn-sheet,.gcs-learn-summary,.gcs-learn-exam-report,.gcs-learn-check,.gcs-learn-exam,.gcs-learn-soon,
 .learn12-hero,.learn12-course-card,.learn12-mode,.learn12-lesson,.learn12-summary,.learn12-report,.learn12-patient,.learn12-feedback,.learn12-rule-example,
 .sim-panel,.sim-finish,.sim-references,.wound12-mode,.wound13-home-hero,.wound13-gallery-card,.wound13-case-media,.wound13-case-panel
 ){
 color:var(--ink)!important;background:var(--glass-surface)!important;border-color:var(--glass-edge)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.62),inset 1px 0 0 rgba(214,239,255,.17),inset 0 -1px 0 rgba(0,12,53,.54),0 18px 45px rgba(0,20,77,.18)!important;
 -webkit-backdrop-filter:blur(28px) saturate(165%);backdrop-filter:blur(28px) saturate(165%);
}
:root[data-base-theme="philip"] :is(.section,.toolbox,.profile-dialog,.clinical-tool-dialog,.v08-dialog){border-radius:20px}
:root[data-base-theme="philip"] .header{
 border-radius:27px 27px 0 0;background:var(--glass-raised)!important;border-bottom-color:rgba(196,229,255,.50)!important;
 box-shadow:inset 0 1px 0 #fff,0 10px 38px rgba(0,19,76,.22)!important;
}
:root[data-base-theme="philip"] .sidebar{
 margin:12px;border:1px solid var(--glass-edge)!important;border-radius:22px;
 background:linear-gradient(160deg,rgba(114,180,255,.19),rgba(3,34,103,.38))!important;
}
:root[data-base-theme="philip"] .main{padding-top:32px}
:root[data-base-theme="philip"] :is(.brand,.header-right,.header-note,.nav){color:#edf7ff!important}
:root[data-base-theme="philip"] .brand-small{color:#d8ebff;background:rgba(4,35,100,.36);border:1px solid rgba(175,219,255,.35)}
:root[data-base-theme="philip"] .logo{
 background:linear-gradient(145deg,rgba(222,246,255,.92),rgba(94,194,255,.70) 42%,rgba(31,105,225,.74))!important;
 color:#062b73!important;border:1px solid #d9f3ff;box-shadow:inset 0 1px 0 #fff,0 0 24px #62caff9c!important;
}
:root[data-base-theme="philip"] .nav{border:1px solid transparent}
:root[data-base-theme="philip"] :is(.nav.active,.nav:hover,.nav:focus-visible,.v099-category-button[aria-pressed="true"],.base-theme-option:has(input:checked),.service-theme-option:has(input:checked),.appearance-options label:has(input:checked)){
 background:linear-gradient(120deg,rgba(156,218,255,.31),rgba(60,137,255,.17))!important;color:#fff!important;
 border-color:rgba(177,225,255,.55)!important;box-shadow:inset 0 1px 0 #fff7,0 0 24px #4ecbff45!important;
}
:root[data-base-theme="philip"] :is(.logo,.btn-primary,.tool-launch,.hc-launch,.gcs-learn-primary,.learn12-primary,.wound13-tab.active){
 background:linear-gradient(132deg,#d7f3ff,#72c8ff 42%,#286fe8)!important;color:#031d49!important;
 border:1px solid #bde8ff!important;box-shadow:inset 0 1px 0 #fff,0 8px 24px #1579ef5c!important;
}
:root[data-base-theme="philip"] :is(.btn-secondary,.btn-inline,.theme-switch,.mobile-toggle,.tool-workflow-button,.tool-favorite-shortcut,.tool-card-favorite,.tool-card-copy,.tool-dialog-switch,.v10-now-button){
 background:linear-gradient(145deg,rgba(152,210,255,.20),rgba(3,37,109,.33))!important;
 border-color:rgba(177,220,255,.48)!important;color:#f5faff!important;box-shadow:inset 0 1px 0 #ffffff61!important;
}
:root[data-base-theme="philip"] :is(.control-wrap,.meta-line input,.v081-search-field,.profile-field input,.profile-field select,.isbar-inputs input,.isbar-inputs textarea,.hc-field input,.hc-field select,.tool-field select,.v08-body-field input,.v08-body-field select,.gcs-learn-select,.wound13-select){
 background:var(--glass-controls)!important;color:#f7fbff!important;border-color:rgba(173,217,255,.50)!important;
 box-shadow:inset 0 2px 5px #00154c66,inset 0 1px 0 #ffffff30;
}
:root[data-base-theme="philip"] .field .control-wrap :is(input,select){background:transparent!important;color:#f7fbff!important}
:root[data-base-theme="philip"] :is(input,textarea)::placeholder{color:#c5d9f7;opacity:1}
:root[data-base-theme="philip"] select option{background:#073a9a;color:#fff}
:root[data-base-theme="philip"] :is(.field .unit,.sidebar-bottom,.v099-category-heading,.v081-tool-result,.tool-favorites,.meta-line,.tool-dialog-switches,.base-theme-option,.service-theme-option,.appearance-options label,.season-theme-controls){
 background:rgba(2,31,96,.29)!important;color:var(--ink)!important;border-color:var(--line)!important;
}
:root[data-base-theme="philip"] :is(.profile-dialog-head h2,.profile-dialog-section h3,.section-header h2,.field label,.meta-line label,.toolbox h3,.header .profile-trigger,.intro .eyebrow,.intro .chip){color:var(--ink)!important}
:root[data-base-theme="philip"] .meta-line>label{color:#f7fbff!important}
:root[data-base-theme="philip"] :is(.section-header p,.toolbox p,.field .hint,.meta-line small,.sidebar-bottom p,.profile-body p,.profile-body label,.profile-status,.profile-dialog-section>p,.profile-dialog-head p,.service-theme-intro,.personalization-note,.v099-category-heading p,.tool-favorites-empty,.footer,.footer a){color:var(--muted)!important}
:root[data-base-theme="philip"] :is(a,button,input,select,textarea):focus-visible{outline:3px solid #bde9ff!important;outline-offset:3px}
:root[data-base-theme="philip"] .profile-dialog{max-width:100vw;box-sizing:border-box;border-radius:22px 0 0 22px}
:root[data-base-theme="philip"] .profile-dialog-scroll{background:transparent;box-shadow:none}
:root[data-base-theme="philip"] .personal-mode-info{background:var(--accent-bg);color:var(--ink)!important}
:root[data-base-theme="philip"] .personal-mode-popup[data-mode="philip"]{
 background:linear-gradient(145deg,rgba(132,202,255,.40),rgba(4,37,112,.72));color:#fff;border:1px solid #c7e9ffb3;
 -webkit-backdrop-filter:blur(30px) saturate(160%);backdrop-filter:blur(30px) saturate(160%);
 box-shadow:inset 0 1px 0 #fff9,0 24px 80px #00113f9c;
}
:root[data-base-theme="philip"] .personal-mode-popup :is(h2,p){color:#f5faff}
:root[data-base-theme="philip"] .personal-mode-popup button{background:#d7efff;color:#052969}
:root[data-base-theme="philip"] dialog::backdrop{background:rgba(0,14,57,.48);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
:root[data-base-theme="philip"] :is(.sim-action,.sim-number,.sim-textarea,.sim-reset,.gcs-learn-option,.gcs-learn-secondary,.gcs-learn-card-button){background:var(--glass-controls);border-color:var(--line);color:var(--ink)}
:root[data-base-theme="philip"] :is(.sim-vital,.sim-latest,.sim-report-summary,.sim-time,.gcs-learn-tags span,.gcs-learn-pill,.learn12-explanation){background:var(--accent-bg);color:var(--ink);border-color:var(--line)}
:root[data-base-theme="philip"] .learn12-score-grid:not(.learn12-news-chart){background:var(--paper);color:var(--ink)}
:root[data-base-theme="philip"] .learn12-score-grid:not(.learn12-news-chart) .learn12-score-option{background:var(--glass-controls);color:var(--ink)}
:root[data-base-theme="philip"] .learn12-score-grid:not(.learn12-news-chart) .learn12-score-option.is-selected{background:var(--accent-bg);border-color:var(--accent-border)}
@media(min-width:771px){
 :root[data-base-theme="philip"] .shell{grid-template-columns:228px minmax(0,1fr)}
 :root[data-base-theme="philip"] .sidebar{margin-right:0}
}
@media(max-width:770px){
 :root[data-base-theme="philip"] body{background-attachment:scroll!important}
 :root[data-base-theme="philip"] .shell{margin:0;min-height:100vh;border:0;border-radius:0;background:rgba(2,32,102,.20);box-shadow:none}
 :root[data-base-theme="philip"] .header{border-radius:0;background:rgba(7,49,132,.78)!important}
 :root[data-base-theme="philip"] .sidebar{margin:0;border-radius:0 20px 20px 0;background:linear-gradient(160deg,rgba(32,99,190,.91),rgba(3,35,105,.95))!important}
 :root[data-base-theme="philip"] :is(.field,.toolbox,.section){
  background:linear-gradient(145deg,rgba(64,132,224,.30),rgba(2,34,101,.53))!important;
  -webkit-backdrop-filter:blur(15px) saturate(145%);backdrop-filter:blur(15px) saturate(145%);
  box-shadow:inset 0 1px 0 #ffffff54,0 10px 25px #00194b29!important;
 }
 :root[data-base-theme="philip"] .main{padding-top:20px}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 :root[data-base-theme="philip"]{--glass-surface:#0b3c97;--glass-raised:#124ba9;--paper:#0b3c97}
}
@media(prefers-reduced-transparency:reduce){
 :root[data-base-theme="philip"]{--glass-surface:#0b3c97;--glass-raised:#124ba9;--paper:#0b3c97}
 :root[data-base-theme="philip"] :is(.section,.field,.toolbox,.header,.sidebar,.profile-dialog,.clinical-tool-dialog,.v08-dialog){-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(prefers-reduced-motion:reduce){:root[data-base-theme="philip"] .shell::before{filter:none}}

/* v4 card hierarchy: transparent cobalt variants stay owned by the Philip theme. */
:root[data-base-theme="philip"]{
 --ui-card-action:linear-gradient(145deg,rgba(163,218,255,.18),rgba(2,34,108,.30));
 --ui-card-result:linear-gradient(145deg,rgba(194,232,255,.23),rgba(7,49,137,.34));
 --ui-card-info:linear-gradient(145deg,rgba(115,192,255,.13),rgba(2,28,93,.27));
 --ui-field-rest:rgba(5,39,112,.29);--ui-field-done:rgba(8,81,122,.35);
 --ui-action:#91d7ff;--ui-success:#5ee3bf;--ui-attention:#ffd36b;--ui-elevated:#ffad63;--ui-danger:#ff8da6;--ui-learning:#c5b6ff;
}
:root[data-base-theme="philip"] :is(.surface-action,.surface-result,.surface-info){
 border-color:rgba(193,228,255,.58)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.72),inset 1px 0 0 rgba(220,241,255,.20),inset 0 -1px 0 rgba(0,16,68,.60),0 20px 52px rgba(0,22,83,.23)!important;
 -webkit-backdrop-filter:blur(30px) saturate(175%);backdrop-filter:blur(30px) saturate(175%);
}
:root[data-base-theme="philip"] .surface-action{background:var(--ui-card-action)!important}
:root[data-base-theme="philip"] .surface-result{background:var(--ui-card-result)!important}
:root[data-base-theme="philip"] .surface-info{background:var(--ui-card-info)!important}
:root[data-base-theme="philip"] :is(.surface-action,.surface-result,.surface-info)>.section-header{
 background:linear-gradient(105deg,rgba(192,229,255,.11),transparent 70%);border-color:rgba(187,224,255,.28)
}
:root[data-base-theme="philip"] .field{background:var(--ui-field-rest)!important;border-color:rgba(184,223,255,.36)!important}
:root[data-base-theme="philip"] .field.is-complete{background:var(--ui-field-done)!important;border-color:rgba(94,227,191,.68)!important}
:root[data-base-theme="philip"] .score.neutral{background:linear-gradient(145deg,rgba(116,193,255,.18),rgba(0,28,95,.31))!important}
:root[data-base-theme="philip"] :is(.next-step-card,.info-panel){background:rgba(2,31,96,.28)!important;border-color:rgba(179,220,255,.32)!important}
@media(max-width:770px){
 :root[data-base-theme="philip"] .mobile-primary-nav{background:linear-gradient(145deg,rgba(111,189,255,.24),rgba(2,28,93,.54));border-color:rgba(199,231,255,.62);box-shadow:inset 0 1px 0 #fff9,0 16px 42px rgba(0,18,73,.42)}
}
