/* CURRENT-LIVE final closeout: contrast + strict palette only */
:root{
  --ia-final-black:#070809;
  --ia-final-panel:#101112;
  --ia-final-panel-2:#151617;
  --ia-final-white:#f7f7f5;
  --ia-final-gray:#b7b9bd;
  --ia-final-gray-2:#7f8287;
  --ia-final-line:rgba(255,255,255,.10);
  --ia-final-gold:#b79d63;
}
.r710-chat-intro,
.r710-unified-hero,
.r710-tool-card,
.r713-home-preview,
.r710-modal-card{color:var(--ia-final-white)!important}
.r710-chat-intro strong,
.r710-chat-intro h1,
.r710-chat-intro h2,
.r710-chat-intro h3,
.r710-unified-hero h1,
.r710-unified-hero h2{color:var(--ia-final-white)!important;text-shadow:none!important}
.r710-chat-intro span,
.r710-chat-intro p,
.r710-unified-hero p,
.r710-tool-card small,
.r710-tool-card span{color:#c7c8cb!important}
.r710-tool-card,
.r710-modal-card,
.r713-home-preview,
.r713-preview-shell,
.r713-preview-card{background:#0d0e0f!important;border-color:var(--ia-final-line)!important}
.r710-tool-card:hover,
.r710-tool-card:focus-visible{border-color:rgba(183,157,99,.55)!important;box-shadow:0 0 0 1px rgba(183,157,99,.15)!important}
.r710-tool-card svg,
.r713-home-preview svg{color:#d6d7d8!important;stroke:currentColor!important}
.r710-tool-card.is-active,
.r710-modal-close:focus-visible{outline-color:var(--ia-final-gold)!important}
.ia541-chat-shell:before{
  background:
    radial-gradient(circle at 12% 54%,transparent 0 18%,rgba(255,255,255,.035) 18.3% 28%,transparent 28.4%),
    radial-gradient(circle at 12% 54%,transparent 0 34%,rgba(183,157,99,.045) 34.3% 41%,transparent 41.4%)!important;
  opacity:.85!important
}
.ia541-message.assistant:first-child>div:last-child:after{
  color:var(--ia-final-gold)!important;
  opacity:.72!important
}
.ia541-composer:focus-within,
.r500-voice-editor:focus-within,
.r302-vision-question:focus-within{border-color:rgba(183,157,99,.55)!important;box-shadow:0 0 0 2px rgba(183,157,99,.08)!important}
.r500-kicker,
.r370-tool-intro small,
.r713-preview-kicker{color:var(--ia-final-gold)!important}
.r500-voice-status,
.r500-voice-privacy,
.r500-voice-meta,
.r300-alert{color:#d4d5d7!important}
.r300-semantic article,
.r300-metrics article{border-color:var(--ia-final-line)!important}
.r300-semantic article p,
.r300-metrics article span{color:#c9cacc!important}
@media(max-width:760px){
  .r710-chat-intro strong,.r710-chat-intro h1,.r710-chat-intro h2{color:#fff!important}
  .r710-chat-intro span,.r710-chat-intro p{color:#c7c8cb!important}
}


/* CURRENT_LIVE_RECOVERY_SCROLL — surgical mobile/profile/chat recovery */
html,body{max-width:100%;}
.r710-chat-shell.ia541-chat-shell{min-width:0!important;}
.r710-chat-log.ia541-chat-log{min-width:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-gutter:stable;}
.r710-tool-frame{min-width:0!important;min-height:0!important;}
.r710-workstyle,.r710-workstyle-body,.r710-work-form,.r710-work-q,.r710-work-scale{min-width:0!important;box-sizing:border-box!important;}
@media(min-width:721px){
  .r710-chat-shell.ia541-chat-shell{height:min(780px,calc(100vh - 170px))!important;min-height:560px!important;grid-template-rows:auto minmax(0,1fr) auto auto auto!important;}
  .r710-chat-log.ia541-chat-log{min-height:0!important;max-height:none!important;}
}
@media(max-width:720px){
  .ia531-profile{width:100%!important;max-width:none!important;margin:0!important;padding-left:10px!important;padding-right:10px!important;box-sizing:border-box!important;overflow-x:hidden!important;}
  .r710-workstyle{width:100%!important;max-width:none!important;margin:14px 0!important;border-radius:18px!important;}
  .r710-workstyle-head{padding:15px 12px!important;gap:10px!important;}
  .r710-workstyle-body{width:100%!important;padding:14px 10px!important;}
  .r710-work-form{width:100%!important;gap:12px!important;}
  .r710-work-q{width:100%!important;padding:13px 9px!important;}
  .r710-work-q p{font-size:.78rem!important;line-height:1.75!important;}
  .r710-work-scale{width:100%!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;}
  .r710-work-scale label{min-width:0!important;}
  .r710-work-scale span{min-width:0!important;width:100%!important;font-size:.58rem!important;line-height:1.35!important;padding:9px 1px!important;white-space:normal!important;}
  .r710-dashboard{height:calc(100dvh - 70px)!important;min-height:calc(100dvh - 70px)!important;overflow:hidden!important;}
  .r710-workspace{height:100%!important;min-height:0!important;grid-template-rows:auto auto auto minmax(0,1fr)!important;overflow:hidden!important;}
  .r710-chat-shell.ia541-chat-shell{height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important;grid-template-rows:auto minmax(0,1fr) auto auto auto!important;}
  .r710-chat-log.ia541-chat-log{min-height:0!important;max-height:none!important;overflow-y:auto!important;}
  .r710-composer.ia541-composer{position:relative!important;bottom:auto!important;z-index:4!important;}
  .r710-tool-shell{height:100dvh!important;max-height:100dvh!important;min-height:0!important;}
  .r710-tool-frame{height:100%!important;min-height:0!important;}
}


/* CURRENT-LIVE exact regression guards */
.r710-auth-preview:before{background:radial-gradient(circle,rgba(255,255,255,.065),transparent 67%)!important}
.r710-preview-copy>span,.r710-preview-mobile-head i,.r710-preview-pulse,.r710-head-state i{color:#b9bcc1!important;background:#a3a7ad!important;box-shadow:none!important}
.r710-preview-conversation b:nth-child(2){background:rgba(255,255,255,.11)!important}
.r710-dashboard{background:#090a0c!important;color:#f5f5f5!important}
.r710-dashboard .r710-chat-intro strong,.r710-dashboard .r710-chat-intro h1,.r710-dashboard .r710-chat-intro h2,.r710-dashboard .r710-chat-intro h3{color:#f7f7f5!important}
.r710-dashboard .r710-chat-intro p,.r710-dashboard .r710-chat-intro span{color:#b7b9bd!important}
.r710-dti{color:#c7c9cc!important;border-color:rgba(255,255,255,.16)!important}
.r710-work-result svg polygon[fill]:not([fill="none"]){fill:rgba(151,154,160,.14)!important;stroke:#b79d63!important}
body.r300-page-profile-php{overflow-x:hidden!important}
body.r300-page-profile-php .ia531-profile{float:none!important;position:relative!important;inset:auto!important;transform:none!important;box-sizing:border-box!important}
@media(max-width:1023px){
 body.r300-page-profile-php .ia531-profile{width:calc(100% - 20px)!important;max-width:none!important;margin:10px auto 24px!important;padding:0!important;overflow:visible!important}
 body.r300-page-profile-php .ia531-profile>*{max-width:100%!important;box-sizing:border-box!important}
 body.r300-page-profile-php .r710-workstyle{width:100%!important;max-width:100%!important;margin-inline:0!important}
 body.r300-page-profile-php .r710-workstyle-body{width:100%!important;max-width:100%!important}
 body.r300-page-profile-php .r710-work-scale{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;width:100%!important;gap:4px!important}
 body.r300-page-profile-php .r710-work-scale label,body.r300-page-profile-php .r710-work-scale span{min-width:0!important;max-width:100%!important}
}
body.r300-page-dashboard-php{overflow:hidden!important}
body.r300-page-dashboard-php .r710-dashboard{min-height:0!important;overflow:hidden!important}
body.r300-page-dashboard-php .r710-workspace{height:100%!important;min-height:0!important;grid-template-rows:auto auto auto minmax(0,1fr)!important;overflow:hidden!important}
body.r300-page-dashboard-php .r710-chat-shell.ia541-chat-shell{height:100%!important;min-height:0!important;overflow:hidden!important;grid-template-rows:auto minmax(0,1fr) auto auto auto!important}
body.r300-page-dashboard-php .r710-chat-log.ia541-chat-log{min-height:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
body.r300-page-dashboard-php .ia521-footer{display:none!important}
.hero-copy h2{font:inherit;color:inherit;margin:0}

.ia-home-secondary-title{font-size:clamp(1.75rem,4vw,3.25rem);line-height:1.2;font-weight:900;color:#111;margin:0 0 12px}
@media(prefers-color-scheme:dark){.ia-home-secondary-title{color:#f7f7f5}}


/* CURRENT-LIVE palette lock: black / white / gray + tiny gold only */
:root{--r710-cyan:#a3a7ad!important;--r710-gold:#b79d63!important}
.r710-preview-note i,.r710-preview-mobile-head i,.r710-preview-pulse,.r710-head-state i{background:#a3a7ad!important;box-shadow:none!important}
.r710-dashboard{background:#090a0c!important}
.r710-composer .ia541-send{background:#b79d63!important;color:#101112!important}
.r710-workstyle{background:#f7f7f7!important}
.r710-workstyle-head span{color:#777c83!important}
.r710-work-score i{background:#dedfe1!important}
.r710-work-score i b{background:linear-gradient(90deg,#b79d63,#92969c)!important}
.r710-work-lock{background:#f0f0f0!important;color:#70747a!important}
.r710-work-actions button[type=button]{background:#ececec!important;color:#34383d!important}
.r710-preview-conversation b:nth-child(2),.r710-preview-phone-chat b:nth-child(2){background:rgba(255,255,255,.11)!important}
.r713-preview-phone-chat b:nth-child(2){background:rgba(255,255,255,.10)!important}

/* R724 mobile natural-flow recovery: keep the fixed top bar clear and let the
   expanded R718 dashboard grow vertically instead of squeezing the chat. */
@media(max-width:1023px){
  body.r300-page-dashboard-php{overflow-x:hidden!important;overflow-y:auto!important}
  body.r300-page-dashboard-php .r710-dashboard{
    height:auto!important;
    min-height:100dvh!important;
    padding-top:calc(var(--ia521-top) + 10px)!important;
    padding-bottom:max(24px,env(safe-area-inset-bottom))!important;
    overflow:visible!important
  }
  body.r300-page-dashboard-php .r710-workspace{
    height:auto!important;
    min-height:calc(100dvh - var(--ia521-top) - 10px)!important;
    grid-template-rows:auto auto auto auto!important;
    overflow:visible!important
  }
  body.r300-page-dashboard-php .r710-chat-shell.ia541-chat-shell{
    height:auto!important;
    min-height:620px!important;
    grid-template-rows:auto minmax(300px,1fr) auto auto auto!important;
    overflow:hidden!important
  }
}
@media(max-width:720px){
  body.r300-page-dashboard-php .r710-dashboard{padding-inline:0!important}
  body.r300-page-dashboard-php .r710-workspace-head,
  body.r300-page-dashboard-php .r710-capability-dock{position:relative!important;top:auto!important}
}
