:root{
  --luxury-ink:#102b43;
  --luxury-muted:#52677a;
  --luxury-ivory:#f7f4ec;
  --luxury-card:#fffefa;
  --luxury-line:#d8e0e3;
  --luxury-teal:#087d72;
  --luxury-gold:#a87321;
  --luxury-navy:#0b2944;
}

body.is-authenticated:not(.page-index):not(.is-child-mode){
  background:linear-gradient(180deg,#f7f5ef 0,#edf3f4 48%,#f8f5ee 100%);
  color:var(--luxury-ink);
}
body.is-authenticated:not(.page-index):not(.is-child-mode) main{isolation:isolate}
body.is-authenticated:not(.page-index):not(.is-child-mode) :where(.panel,.org-card,.dash-card,.dashboard-card,.study-plan-shell,.worksheet-source-list){
  border-color:rgba(117,137,147,.28);
  background:#fffefa;
  color:var(--luxury-ink);
  box-shadow:0 18px 50px rgba(23,48,67,.08),0 2px 8px rgba(23,48,67,.05);
}
body.is-authenticated:not(.page-index):not(.is-child-mode) :where(.panel,.org-card,.dash-card,.dashboard-card,.study-plan-shell) :where(h1,h2,h3,strong,b,label,legend,th){color:var(--luxury-ink)}
body.is-authenticated:not(.page-index):not(.is-child-mode) :where(.panel,.org-card,.dash-card,.dashboard-card,.study-plan-shell) :where(p,small,td,dd,.muted){color:var(--luxury-muted)}
body.is-authenticated:not(.page-index):not(.is-child-mode) :where(input,select,textarea){
  border-color:#aebdc5;
  background:#fff;
  color:#102b43;
}
body.is-authenticated:not(.page-index):not(.is-child-mode) :where(input,select,textarea)::placeholder{color:#718391;opacity:1}
body.is-authenticated:not(.page-index):not(.is-child-mode) :where(input,select,textarea):focus{
  border-color:#168e83;
  outline:3px solid rgba(22,142,131,.18);
  outline-offset:1px;
}

/* V233: keep the goal contract readable inside the authenticated ivory theme. */
body.is-authenticated:not(.page-index):not(.is-child-mode) .adaptive-goal-card{
  background:#132340;
  color:#fff;
}
body.is-authenticated:not(.page-index):not(.is-child-mode) .adaptive-goal-card>span{
  color:#c7d8ff;
}
body.is-authenticated:not(.page-index):not(.is-child-mode) .adaptive-goal-card>strong{
  color:#fff;
  -webkit-text-fill-color:#fff;
}

.future-utility-dock{gap:10px}
.luxury-command-fab{
  position:static;
  inset:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:52px;
  padding:11px 18px;
  border:1px solid #c49b55;
  border-radius:999px;
  background:#fffdf7;
  color:#153750;
  font:800 15px/1.2 inherit;
  letter-spacing:.01em;
  box-shadow:0 16px 38px rgba(13,39,57,.18),inset 0 1px #fff;
  white-space:nowrap;
  pointer-events:auto;
  cursor:pointer;
}
.luxury-command-fab svg{color:#a26e1d}
.luxury-command-fab kbd{padding:3px 6px;border:1px solid #d7c8a9;border-radius:7px;background:#f7f1e5;color:#6e552c;font:700 10px/1 inherit}
.luxury-command-fab:hover{transform:translateY(-2px);border-color:#9b6b20;box-shadow:0 20px 46px rgba(13,39,57,.23)}
.luxury-command-fab:focus-visible{outline:4px solid rgba(15,132,121,.28);outline-offset:3px}

.luxury-command-scrim{
  position:fixed;
  z-index:10030;
  inset:0;
  background:rgba(7,24,37,.66);
  backdrop-filter:blur(9px);
  pointer-events:auto;
}
.luxury-command-panel{
  position:fixed;
  z-index:10031;
  top:clamp(18px,6vh,72px);
  left:50%;
  width:min(920px,calc(100vw - 28px));
  max-height:calc(100dvh - clamp(36px,12vh,144px));
  overflow:auto;
  padding:26px;
  border:1px solid rgba(214,190,145,.76);
  border-radius:30px;
  background:#fffefa;
  color:#102b43;
  box-shadow:0 32px 100px rgba(3,18,29,.34),inset 0 1px #fff;
  opacity:0;
  transform:translate(-50%,12px) scale(.985);
  transition:opacity .18s ease,transform .24s cubic-bezier(.2,.8,.2,1);
  pointer-events:auto;
}
.luxury-command-panel.is-open{opacity:1;transform:translate(-50%,0) scale(1)}
.luxury-command-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:18px}
.luxury-command-panel>header>div{min-width:0}
.luxury-command-panel>header .eyebrow{display:block;margin-bottom:7px;color:#8d621e;font-size:11px;font-weight:900;letter-spacing:.16em}
.luxury-command-panel>header h2{margin:0;color:#102b43;font-size:clamp(25px,4vw,38px);line-height:1.18;letter-spacing:-.035em}
.luxury-command-panel>header p{margin:8px 0 0;color:#536b7b;font-size:14px;line-height:1.65}
.luxury-command-panel>header>button{display:grid;place-items:center;flex:0 0 44px;height:44px;border:1px solid #c7d0d4;border-radius:50%;background:#fff;color:#17374e;font-size:27px;cursor:pointer}
.luxury-command-search{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:9px 12px 9px 15px;border:1px solid #9fb2bb;border-radius:17px;background:#fff;box-shadow:0 8px 24px rgba(21,50,69,.07)}
.luxury-command-search>span{display:grid;color:#197d74}
.luxury-command-search input{min-width:0;width:100%;height:42px;padding:0;border:0!important;outline:0!important;background:#fff!important;color:#102b43!important;font:750 16px/1.2 inherit;box-shadow:none!important}
.luxury-command-search input::placeholder{color:#6d808c;opacity:1}
.luxury-command-search kbd{padding:5px 7px;border:1px solid #d8dedf;border-radius:8px;background:#f4f2eb;color:#667781;font-size:10px}
.luxury-command-count{margin:12px 2px 9px;color:#657984;font-size:12px;font-weight:750}
.luxury-command-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.luxury-command-grid>a{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:92px;padding:14px;border:1px solid #d6dedf;border-radius:18px;background:#fff;color:#102b43;text-decoration:none;box-shadow:0 5px 18px rgba(24,51,67,.045);transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease}
.luxury-command-grid>a:hover,.luxury-command-grid>a:focus-visible{border-color:#218d82;transform:translateY(-2px);box-shadow:0 13px 28px rgba(15,70,74,.12);outline:0}
.luxury-command-grid>a[hidden]{display:none}
.luxury-command-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid #cadbd8;border-radius:15px;background:#edf7f4;color:#087d72}
.luxury-command-grid>a>span:nth-child(2){min-width:0}
.luxury-command-grid small{display:block;margin-bottom:3px;color:#986c29;font-size:10px;font-weight:900;letter-spacing:.08em}
.luxury-command-grid strong{display:block;color:#102b43;font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.luxury-command-grid b{display:block;margin-top:4px;color:#59707e;font-size:11px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.luxury-command-grid>a>svg{color:#64808c}
.luxury-command-empty{padding:26px;border:1px dashed #aebdc2;border-radius:17px;background:#f5f7f4;color:#425e6e;text-align:center}
body.luxury-command-open{overflow:hidden}

@media(max-width:720px){
  .luxury-command-fab{min-height:48px;padding:9px 12px;font-size:12px}
  .luxury-command-fab kbd{display:none}
  .luxury-command-panel{top:10px;width:calc(100vw - 18px);max-height:calc(100dvh - 20px);padding:18px;border-radius:23px}
  .luxury-command-panel>header{gap:10px}
  .luxury-command-panel>header h2{font-size:26px}
  .luxury-command-panel>header p{font-size:12px}
  .luxury-command-grid{grid-template-columns:1fr}
  .luxury-command-grid>a{min-height:82px;padding:12px}
}
@media(max-width:390px){.luxury-command-fab span{max-width:54px;overflow:hidden;text-overflow:ellipsis}}
@media(prefers-reduced-motion:reduce){.luxury-command-panel,.luxury-command-fab,.luxury-command-grid>a{transition:none!important}.luxury-command-fab:hover,.luxury-command-grid>a:hover{transform:none}}
