/*
CHISAN Voice Home v1
A single, flexible voice-first surface. Inherits local-only artwork and existing
Charcoal/Milk design tokens. No remote fonts, services or data.
*/
:root[data-theme="dark"]{
  --vh-sky:#101722;--vh-bottom:#0a1018;
  --vh-line:rgba(240,218,179,.2);--vh-glow:rgba(223,187,129,.16);
  --vh-soft:#b6c1ce;
}
:root[data-theme="light"]{
  --vh-sky:#fbfaf7;--vh-bottom:#f1f4f8;
  --vh-line:rgba(115,84,46,.18);--vh-glow:rgba(176,131,63,.13);
  --vh-soft:#556274;
}
#page-overview:not([hidden])>.executive-hero,
#page-overview:not([hidden])>.ai-capability-section,
#page-overview:not([hidden])>.ai-council-section,
#page-overview:not([hidden])>.ai-system-details{display:none!important}
#page-overview:not([hidden]){display:block!important;min-width:0}
.shell[data-voice-home="true"]{
  display:block!important;min-height:100svh!important;
  background:var(--vh-bottom)!important;
}
.shell[data-voice-home="true"] .content{
  background:var(--vh-bottom)!important;min-height:100svh!important;
}
.shell[data-voice-home="true"] .topbar,
.shell[data-voice-home="true"] #presence-rail,
.shell[data-voice-home="true"] .notice,
.shell[data-voice-home="true"] .js-health,
.shell[data-voice-home="true"] footer{display:none!important}
.shell[data-voice-home="true"] .page-width{
  margin:0!important;padding:0!important;max-width:none!important;
  min-height:100svh!important;
}
/* Existing full navigation is available only when requested. */
.shell[data-voice-home="true"] .sidebar{
  position:fixed!important;top:0!important;left:0!important;bottom:0!important;
  width:min(315px,calc(100vw - 54px))!important;height:100dvh!important;
  transform:translateX(-108%);opacity:0;visibility:hidden;pointer-events:none;
  z-index:1002!important;overflow-y:auto!important;display:flex!important;
  box-shadow:0 30px 70px rgba(0,0,0,.34)!important;
  transition:transform .23s ease,opacity .2s,visibility .2s!important;
}
.shell[data-voice-home="true"][data-nav-open="true"] .sidebar{
  transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto;
}
.shell[data-voice-home="true"] .sidebar #main-nav{
  display:grid!important;position:static!important;grid-template-columns:1fr!important;
  gap:4px!important;overflow:visible!important;max-height:none!important;
  padding:6px 0 18px!important;background:transparent!important;
  border:none!important;box-shadow:none!important;
}
.shell[data-voice-home="true"] .sidebar .nav-item{min-height:46px!important}
.shell[data-voice-home="true"] .sidebar .nav-section-label{display:block!important}
.shell[data-voice-home="true"] .sidebar .brand{padding:3px 8px 21px!important}
.shell[data-voice-home="true"] .sidebar .mobile-nav-toggle{
  display:inline-flex!important;margin-left:auto!important;min-height:42px!important;
}
.shell[data-voice-home="true"] .sidebar .sidebar-locked{display:grid!important}
.shell[data-voice-home="true"] .sidebar .owner-tile{display:flex!important}
#voice-menu-scrim[hidden]{display:none!important}
#voice-menu-scrim{
  position:fixed;inset:0;z-index:1001;background:rgba(1,7,15,.56);
  border:0;border-radius:0;cursor:pointer;backdrop-filter:blur(7px);
}
.voice-home{
  position:relative;isolation:isolate;min-height:100svh;min-width:0;
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;
  background:
    radial-gradient(ellipse 42% 40% at 50% 40%,var(--vh-glow),transparent 74%),
    radial-gradient(ellipse 57% 65% at 45% 2%,rgba(89,119,151,.105),transparent 78%),
    linear-gradient(155deg,var(--vh-sky),var(--vh-bottom) 79%);
}
.voice-home::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  width:min(78vw,820px);aspect-ratio:1;left:50%;top:31%;
  transform:translate(-50%,-50%);border:1px solid var(--vh-line);
  border-radius:50%;opacity:.4;
}
.voice-home::after{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  width:min(61vw,630px);aspect-ratio:1;left:50%;top:31%;
  transform:translate(-50%,-50%);border:1px solid var(--vh-line);
  border-radius:50%;opacity:.44;
}
.voice-top{
  display:flex;justify-content:space-between;align-items:center;
  width:100%;gap:12px;padding:24px clamp(22px,4vw,66px);z-index:2;
}
.voice-brand{display:flex;align-items:center;gap:11px;min-width:0}
.voice-brand img{width:40px;height:40px;object-fit:contain;flex-shrink:0}
.voice-brand-name{display:grid;gap:0}
.voice-brand-name strong{font-size:.97rem;letter-spacing:.23em;font-weight:700;color:var(--ink)}
.voice-brand-name small{font-size:.67rem;letter-spacing:.025em;color:var(--vh-soft)}
.voice-top-actions{display:flex;align-items:center;gap:13px}
.voice-preview-mark{display:inline-flex;align-items:center;gap:6px;
  font-size:.72rem;font-weight:610;color:var(--vh-soft)}
.voice-preview-mark::before{content:"";width:6px;height:6px;border-radius:50%;
  background:var(--warning)}
.voice-explore-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;
  padding:10px 14px;color:var(--ink);background:transparent;
  border:1px solid var(--vh-line);border-radius:999px;
  font-size:.79rem;font-weight:640}
.voice-explore-toggle:hover{background:var(--accent-soft)}
.voice-explore-toggle svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.75;fill:none}
.voice-main{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;min-width:0;width:100%;gap:0;
  padding:8px 24px 18px;z-index:1;
}
.voice-avatar-zone{position:relative;width:clamp(220px,26vw,330px);
  height:clamp(224px,28vw,350px);display:grid;place-items:center;
  margin:0 auto 6px;isolation:isolate}
.voice-avatar-halo{position:absolute;inset:3% -1% 0;border-radius:50%;
  background:radial-gradient(ellipse at 50% 50%,var(--vh-glow) 0%,transparent 69%);
  border:1px solid var(--vh-line);box-shadow:0 0 80px -15px var(--vh-glow)}
.voice-avatar-halo::before{content:"";position:absolute;inset:11%;border:1px solid var(--vh-line);
  border-radius:50%;opacity:.58}
.voice-avatar-figure{width:100%;height:100%;position:relative;z-index:2;overflow:hidden;
  border-radius:49% 49% 43% 43%;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 80%,transparent 99%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 80%,transparent 99%);
  transform-origin:50% 75%;
  animation:vh-breathe 6.6s ease-in-out infinite}
.voice-avatar-figure img{position:absolute;width:100%;height:100%;
  object-fit:cover;object-position:center top;inset:0;
  filter:saturate(.96) contrast(1.02)}
.voice-home[data-audio="active"] .voice-avatar-halo{
  box-shadow:0 0 calc(34px + 55px * var(--voice-level,0)) var(--vh-glow);
  border-color:var(--accent)}
.voice-home[data-audio="active"] .voice-avatar-figure{animation:vh-breathe 3.2s ease-in-out infinite}
@keyframes vh-breathe{0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-4px) scale(1.013)}}
.voice-greeting{margin:0 0 6px!important;color:var(--accent);font-size:.7rem;
  font-weight:710;letter-spacing:.14em;text-transform:uppercase}
.voice-home h1{font-size:clamp(2.25rem,4vw,3.7rem)!important;line-height:1.1!important;
  font-weight:700!important;letter-spacing:-.059em!important;margin:0!important;color:var(--ink)!important}
.voice-subline{max-width:460px;color:var(--vh-soft);font-size:.96rem!important;
  line-height:1.55!important;margin:10px auto 19px!important}
.voice-interaction{display:flex;flex-direction:column;align-items:center;gap:8px;
  width:min(100%,500px)}
.voice-mic{
  position:relative;display:grid;place-items:center;flex:0 0 auto;
  width:86px;height:86px;min-width:86px;min-height:86px;
  border:1px solid var(--accent);border-radius:50%;
  background:var(--accent);color:var(--accent-dark);
  box-shadow:0 0 0 9px var(--accent-soft),0 14px 38px rgba(0,0,0,.15);
  cursor:pointer;transition:transform .18s,box-shadow .18s!important}
.voice-mic svg{width:32px;height:32px;stroke:currentColor;stroke-width:1.7;fill:none;
  stroke-linecap:round;stroke-linejoin:round}
.voice-mic:hover{transform:scale(1.055);box-shadow:0 0 0 12px var(--accent-soft)}
.voice-mic[aria-pressed="true"]{background:var(--surface);color:var(--accent)}
.voice-mic[aria-busy="true"]{opacity:.67}
.voice-mic-label{font-size:.86rem;font-weight:680;color:var(--ink);margin:8px 0 0!important}
.voice-status{font-size:.74rem!important;color:var(--vh-soft)!important;
  line-height:1.55!important;margin:0!important;max-width:400px;min-height:22px}
.voice-wave{height:18px;display:flex;align-items:center;justify-content:center;
  gap:5px;margin:4px 0;opacity:.44}
.voice-wave span{display:block;width:3px;height:6px;border-radius:10px;
  background:var(--accent);transform-origin:50% 50%;
  transform:scaleY(calc(1 + 2 * var(--voice-level,0)))}
.voice-wave span:nth-child(2){height:10px}
.voice-wave span:nth-child(3){height:15px}
.voice-wave span:nth-child(4){height:8px}
.voice-wave span:nth-child(5){height:5px}
.voice-home[data-audio="active"] .voice-wave{opacity:1}
.voice-text-toggle{border:0;background:transparent;color:var(--vh-soft);
  min-height:44px;padding:8px 12px;font-size:.78rem;
  font-weight:650;text-decoration:underline;text-underline-offset:5px;cursor:pointer}
.voice-text-toggle:hover{color:var(--ink)}
.voice-text-panel{width:min(100%,460px);padding:13px;border:1px solid var(--vh-line);
  background:var(--surface);border-radius:15px;text-align:left;margin:1px auto 0}
.voice-text-panel[hidden]{display:none!important}
.voice-text-panel label{display:block;color:var(--ink);font-size:.76rem;font-weight:670;margin-bottom:7px}
.voice-text-panel textarea{display:block;width:100%;min-height:70px;resize:vertical;
  background:var(--surface2);color:var(--ink);border:1px solid var(--border);
  border-radius:9px;padding:10px;font:inherit;font-size:.85rem;line-height:1.5}
.voice-text-panel .voice-text-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}
.voice-text-panel button{min-height:43px;padding:8px 13px;border-radius:9px;
  border:1px solid var(--accent);background:var(--accent);
  color:var(--accent-dark);font-size:.76rem;font-weight:690}
.voice-text-info{color:var(--vh-soft);font-size:.71rem;line-height:1.5;margin:7px 0 0!important}
.voice-stage-return{margin-top:4px;min-height:40px;padding:6px 13px;border-radius:999px;
  background:var(--surface2);color:var(--ink);border:1px solid var(--vh-line);
  font-size:.74rem;cursor:pointer}
.voice-foot{display:flex;justify-content:center;align-items:center;
  gap:9px;flex-wrap:wrap;text-align:center;padding:15px 20px 20px;
  font-size:.72rem;color:var(--vh-soft)}
.voice-foot-dot{width:3px;height:3px;border-radius:50%;background:var(--vh-soft);opacity:.7}
.voice-menu-scrim{z-index:1001}
@media(max-width:1000px){
  .voice-avatar-zone{width:290px;height:315px}
  .voice-top{padding:17px 24px}
}
@media(max-width:680px){
  .voice-home{min-height:100svh}
  .voice-top{padding:14px 16px}
  .voice-brand img{width:34px;height:34px}
  .voice-brand-name strong{font-size:.85rem}
  .voice-brand-name small{font-size:.63rem}
  .voice-preview-mark{display:none}
  .voice-explore-toggle{padding:10px 13px;min-height:44px}
  .voice-main{padding:0 18px 3px;justify-content:center}
  .voice-avatar-zone{width:clamp(194px,53vw,248px);height:clamp(210px,55vw,260px);margin:0 auto 3px}
  .voice-home h1{font-size:clamp(2.15rem,9vw,2.9rem)!important}
  .voice-subline{font-size:.83rem!important;margin:8px 0 14px!important;max-width:320px}
  .voice-greeting{font-size:.66rem}
  .voice-mic{width:80px;height:80px;min-width:80px;min-height:80px}
  .voice-mic svg{width:29px;height:29px}
  .voice-mic-label{margin-top:7px!important;font-size:.82rem}
  .voice-status{font-size:.71rem!important;max-width:300px}
  .voice-wave{margin:3px 0}
  .voice-foot{padding:9px 12px 15px;font-size:.65rem;gap:6px}
  .voice-foot-dot{width:2px;height:2px}
}
@media(max-height:680px){
  .voice-top{padding-top:11px;padding-bottom:7px}
  .voice-main{padding-top:0;padding-bottom:1px}
  .voice-avatar-zone{width:210px;height:212px}
  .voice-home h1{font-size:2.25rem!important}
  .voice-subline{margin:4px 0 9px!important}
  .voice-mic{width:70px;height:70px;min-width:70px;min-height:70px}
  .voice-mic-label{margin-top:4px!important}
  .voice-foot{padding:5px 12px 8px}
}
@media(prefers-reduced-motion:reduce){
  .voice-avatar-figure{animation:none!important}
  .voice-mic{transition:none!important}
  .voice-mic:hover{transform:none!important}
  .shell[data-voice-home="true"] .sidebar{transition:none!important}
}

/* 2026-11-13 visual quality pass: a dedicated close affordance must never
   squeeze or crop the CHISAN wordmark on narrow viewports. */
.brand .brand-wordmark{
  background:none!important;background-image:none!important;
  display:block!important;position:static!important;
  width:auto!important;max-width:100%!important;height:auto!important;
  color:var(--ink)!important;font-size:1.08rem!important;
  line-height:1.25!important;font-weight:720!important;
  letter-spacing:.145em!important;white-space:nowrap!important;
  overflow:visible!important;
}
.voice-drawer-close{display:none!important}
.shell[data-voice-home="true"] .sidebar{
  overflow-x:hidden!important;scrollbar-gutter:auto!important;
}
.shell[data-voice-home="true"] .sidebar .brand{
  display:grid!important;grid-template-columns:40px minmax(0,1fr) 44px!important;
  align-items:center!important;gap:10px!important;min-width:0!important;
  width:100%!important;max-width:100%!important;
  padding:8px 2px 22px!important;margin:0!important;
}
.shell[data-voice-home="true"] .sidebar .brand-face{
  width:40px!important;height:40px!important;min-width:40px!important;
  flex-basis:40px!important;object-fit:contain!important;
}
.shell[data-voice-home="true"] .sidebar .brand-text{
  display:grid!important;min-width:0!important;max-width:100%!important;
  gap:2px!important;overflow:visible!important;
}
.shell[data-voice-home="true"] .sidebar .brand small{
  font-size:.65rem!important;line-height:1.3!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.shell[data-voice-home="true"] .sidebar .mobile-nav-toggle{display:none!important}
.shell[data-voice-home="true"] .sidebar .voice-drawer-close{
  display:grid!important;place-items:center!important;
  position:static!important;min-width:44px!important;max-width:44px!important;
  width:44px!important;height:44px!important;min-height:44px!important;
  margin:0!important;padding:0!important;flex:none!important;
  background:var(--surface2)!important;color:var(--ink)!important;
  border:1px solid var(--border)!important;border-radius:13px!important;
  cursor:pointer!important;
}
.shell[data-voice-home="true"] .sidebar .voice-drawer-close svg{
  width:18px!important;height:18px!important;fill:none!important;
  stroke:currentColor!important;stroke-width:1.75!important;
  stroke-linecap:round!important;stroke-linejoin:round!important;
}
.shell[data-voice-home="true"] .sidebar .voice-drawer-close:hover{
  border-color:var(--accent)!important;background:var(--accent-soft)!important;
}
.voice-avatar-figure img{
  image-rendering:auto!important;
  object-position:50% 8%!important;
  backface-visibility:hidden;
}
.voice-avatar-zone:has(img:not([src])) .voice-avatar-halo{opacity:.4}
@media(max-width:380px){
  .shell[data-voice-home="true"] .sidebar .brand{gap:8px!important;
    grid-template-columns:37px minmax(0,1fr) 44px!important}
  .shell[data-voice-home="true"] .sidebar .brand-face{
    width:37px!important;height:37px!important;min-width:37px!important;
    flex-basis:37px!important}
  .shell[data-voice-home="true"] .sidebar .brand-wordmark{
    font-size:.96rem!important;letter-spacing:.12em!important}
}
