/* Google Home + Telnyx workspace: responsive, accessible, honest readiness states. */
#workspace #rexHomeV7:not([hidden]),#workspace .rex-v7-phone{display:grid;gap:16px;color:#eafaff;min-width:0}
#workspace #rexHomeV7[hidden]{display:none!important}
#workspace #rexHomeV7{padding:20px!important;border:1px solid #376a83;background:linear-gradient(145deg,#0a273e,#09192e);border-radius:18px}
#workspace #rexHomeV7 h3,#workspace .rex-v7-phone h3{font-size:clamp(22px,3vw,30px);margin:6px 0 8px;color:#f2fbff;line-height:1.2}
#workspace .rex-v7-kicker{text-transform:uppercase;letter-spacing:.15em;font-size:10px;color:#8fddf2;font-weight:900}
#workspace .rex-v7-hero p,#workspace .rex-v7-hint{color:#add1e2;font-size:12px;line-height:1.6;margin:5px 0}
#workspace .rex-v7-phone{border:1px solid #426984;border-radius:17px;padding:18px 19px;background:linear-gradient(145deg,#10283f,#071d30);margin-top:17px!important}
#workspace .rex-v7-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
#workspace .rex-v7-fields .rex-v7-check{grid-column:1/-1}
#workspace .rex-v7-field{display:grid;gap:7px;font-size:11px;color:#a6d6e9;font-weight:800;min-width:0}
#workspace .rex-v7-field input,#workspace .rex-v7-field select,#workspace .rex-v7-field textarea{
 display:block;width:100%;max-width:100%;min-width:0;min-height:42px;
 color:#ecfaff;border:1px solid #377394;border-radius:10px;background:#07182a;
 padding:11px;font:12px/1.6 system-ui,sans-serif;box-sizing:border-box;outline-offset:3px;resize:vertical
}
#workspace .rex-v7-field textarea{min-height:92px}
#workspace .rex-v7-check{display:flex;gap:12px;align-items:flex-start;color:#c0deeb;font-size:12px;line-height:1.6}
#workspace .rex-v7-check input{width:18px;height:18px;flex:0 0 18px;accent-color:#29a9d9;margin-top:2px}
#workspace .rex-v7-controls{display:flex;gap:8px;flex-wrap:wrap}
#workspace .rex-v7-controls button,#workspace .rex-v7-phone button,#workspace #rexHomeV7>button,#workspace .rex-v7-inline-progress>button{
 border:1px solid #4d99b7;background:#154a6b;color:#edfbff;border-radius:10px;
 min-height:42px;padding:10px 16px;cursor:pointer;font-size:11px;font-weight:850;
}
#workspace .rex-v7-controls button:first-child,#workspace .rex-v7-phone>.rex-v7-controls button:first-child{background:linear-gradient(120deg,#0b8cbc,#164d98)}
#workspace .rex-v7-controls button:disabled,#workspace .rex-v7-phone button:disabled{opacity:.4;cursor:not-allowed}
#workspace .rex-v7-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#workspace .rex-v7-tile{display:grid;gap:7px;border:1px solid #355f7b;border-radius:13px;padding:15px;background:#0c2840}
#workspace .rex-v7-tile b{font-size:13px;color:#d8faff}
#workspace .rex-v7-status,#workspace .rex-v7-readiness{
 padding:10px 12px;border:1px solid #367596;border-radius:9px;font-size:11px;line-height:1.7;
 color:#a8d9f3;background:#123147;margin:6px 0;overflow-wrap:anywhere
}
#workspace .rex-v7-status[data-state=warning]{border-color:#a58655;color:#f8d39c}
#workspace .rex-v7-status[data-state=error]{border-color:#c7817c;color:#ffc5ba}
#workspace .rex-v7-status[data-state=saved]{border-color:#548a81;color:#90efcb}
#workspace .rex-v7-consent{display:grid;gap:13px;padding:16px;border:1px solid #765f52;background:#30292280;border-radius:14px}
#workspace .rex-v7-consent h4,#workspace .rex-v7-mailbox h4{margin:0;font-size:16px;color:#eafaff}
#workspace .rex-v7-mailbox{border:1px solid #345d79;border-radius:13px;padding:14px 16px}
#workspace #rexHomeCommandButtonV7{width:max-content;max-width:100%}
#workspace .rex-v7-inline-progress{display:grid;gap:8px;border:1px solid #2d698e;
 border-radius:13px;padding:10px 12px;background:#0b273b;margin:12px 0;max-width:100%;min-width:0}
#workspace .rex-v7-progress-row{display:grid;gap:8px}
#workspace .rex-v7-progress-title{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;font-size:11px}
#workspace .rex-v7-progress-title strong{color:#d5f7ff;overflow-wrap:anywhere}
#workspace .rex-v7-progress-title span{font-weight:900;color:#8ce4cd;font-size:11px}
#workspace .rex-v7-inline-progress progress{width:100%;height:9px;accent-color:#34bdc8}
#workspace .rex-v7-inline-progress .rex-v7-progress-note{color:#a8ccdd;font-size:11px;line-height:1.5;margin:0}
#workspace .rex-v7-inline-progress>button{width:max-content;max-width:100%;min-height:32px;padding:7px 13px}
@media(max-width:900px){
 #workspace #rexHomeV7:not([hidden]){width:100%!important}
 #workspace .rex-v7-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 #workspace .rex-v7-fields{grid-template-columns:1fr}
 #workspace .rex-v7-phone{padding:13px}
}
@media(max-width:580px){
 #workspace .rex-v7-tiles{grid-template-columns:1fr}
 #workspace .rex-v7-controls button{flex:1 1 145px}
 #workspace #rexHomeV7{padding:13px!important}
 #workspace .rex-v7-progress-title{display:grid;grid-template-columns:1fr}
 #workspace .rex-v7-phone{padding:12px}
}

/* Visible scroll buttons and comprehensive tool picker for mouse and keyboard users. */
#workspace>.workspace-head #rexNavV7{position:relative;display:flex;align-items:center;gap:6px;flex-wrap:nowrap;z-index:40}
#workspace>.workspace-head #rexNavV7>button{
 position:relative!important;inset:auto!important;background:#103c56!important;
 color:#e5fbff!important;border:1px solid #4b8eaa!important;border-radius:9px!important;
 min-height:38px!important;min-width:36px!important;padding:8px 11px!important;cursor:pointer!important;font-weight:900!important
}
#workspace>.workspace-head #rexNavV7>button:last-of-type{min-width:104px}
#workspace>.workspace-head #rexNavV7>button:disabled{opacity:.4!important;cursor:default!important}
#workspace>.workspace-head .rex-v7-nav-menu:not([hidden]){
 position:absolute;right:0;top:calc(100% + 5px);z-index:120;
 width:min(470px,90vw);max-height:70dvh;overflow:auto;display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:12px;
 border:1px solid #4c96b5;border-radius:14px;background:#071c30;box-shadow:0 18px 42px #000d
}
#workspace>.workspace-head .rex-v7-nav-menu[hidden]{display:none!important}
#workspace>.workspace-head .rex-v7-nav-menu button{
 background:#103c57!important;color:#effdff!important;border:1px solid #356985!important;border-radius:9px!important;
 font-size:11px!important;min-height:39px!important;text-align:left!important;padding:10px!important;cursor:pointer!important
}
#workspace>.workspace-head .rex-v7-nav-menu button:hover{background:#216180!important}
@media(max-width:700px){
 #workspace>.workspace-head #rexNavV7{flex:1 1 100%;justify-content:flex-end}
 #workspace>.workspace-head .rex-v7-nav-menu:not([hidden]){width:min(380px,88vw);right:0}
}


/* Clean All Tools dropdown: narrow, legible, above content but below tabs. */
#workspace>.workspace-head #rexNavV7{z-index:100!important}
#workspace>.workspace-head .rex-v7-nav-menu:not([hidden]){
  position:fixed!important;top:var(--rex-menu-top,210px)!important;
  left:var(--rex-menu-left,auto)!important;right:auto!important;
  width:min(310px,calc(100vw - 24px))!important;
  max-height:min(510px,calc(100dvh - var(--rex-menu-top,210px) - 14px))!important;
  overflow-y:auto!important;overscroll-behavior:contain;
  grid-template-columns:minmax(0,1fr)!important;
  gap:4px!important;padding:9px!important;
  border:1px solid #326783!important;border-radius:14px!important;
  background:#071b2e!important;box-shadow:0 18px 42px #000b!important;
}
#workspace>.workspace-head .rex-v7-nav-menu button{
 min-height:38px!important;padding:9px 13px!important;
 font-size:12px!important;font-weight:700!important;
 white-space:normal!important;overflow-wrap:anywhere;
 border-radius:8px!important;
}
#workspace>.workspace-head .rex-v7-nav-menu button:focus-visible{outline:2px solid #69d8ff;outline-offset:1px}
