/* GuidEZ_common.css */
/* Shared look-and-feel across all GuidEZ pages. */

:root{
  --bg:#0b1220;
  --panel:#0f1a2e;
  --panel2:#12223a;
  --text:#e8eef8;
  --muted:#9fb0c7;
  --line:#223555;
  --accent:#4aa3ff;
  --accent2:#7dd3fc;
  --good:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:14px;
  --ink:#e8eef8;
  --border:#223555;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.GuidEZ_Page{
  min-height:100%;
  display:flex;
  flex-direction:column;
}

.GuidEZ_Header{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(11,18,32,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  padding-top:0;
}

.GuidEZ_HeaderInner{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:start;
  gap:2px 12px;
  padding:1px 16px 4px;
  max-width:1220px;
  margin:0 auto;
}
html[data-guidex-device='mobile'] .GuidEZ_HeaderInner{
  width:100%;
  max-width:var(--gx-host-vw, 100vw);
  grid-template-columns:minmax(0, 1fr);
  gap:2px;
  padding:0 8px 4px;
}

.GuidEZ_Brand{
  display:flex;
  align-items:flex-start;
  gap:8px;
  min-width: 230px;
  align-self:start;
  margin-top:0;
}

.GuidEZ_Brand img{
  width:24px;
  height:24px;
  border-radius:10px;
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.95);
  padding: 1px;
}

.GuidEZ_BrandTitle{
  display:flex;
  flex-direction:column;
  line-height:1;
  justify-content:flex-start;
}
.GuidEZ_BrandTitle .GuidEZ_Name{font-weight:700; letter-spacing:.2px; color:#f3f7fd; margin:0; padding:0; line-height:1}
.GuidEZ_BrandTitle .GuidEZ_Tag{font-size:11px; color:#c7d6ea; margin:0; padding:0; line-height:1}

.GuidEZ_Header .GuidEZ_BrandTitle .GuidEZ_Name,
.GuidEZ_Header .GuidEZ_BrandTitle .GuidEZ_Tag{
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}

.GuidEZ_TopRight{
  margin-left:auto;
  display:flex;
  align-items:flex-start;
  gap:10px;
  align-self:start;
  margin-top:0;
}

html[data-guidex-device='mobile'] .GuidEZ_TopRight{
  margin-left:0;
  width:100%;
}

.GuidEZ_Chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px 8px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(18,34,58,.9), rgba(15,26,46,.9));
  border-radius:999px;
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
}

.GuidEZ_Chip strong{color:var(--text); font-weight:650}

.GuidEZ_Btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(18,34,58,.92), rgba(15,26,46,.92));
  color:var(--text);
  cursor:pointer;
  user-select:none;
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}
.GuidEZ_Btn:hover{border-color:#2f4a77}
.GuidEZ_Btn:active{transform:translateY(1px)}
.GuidEZ_Btn.GuidEZ_Primary{
  border-color: rgba(74,163,255,.55);
  background: linear-gradient(180deg, rgba(74,163,255,.22), rgba(15,26,46,.92));
}
.GuidEZ_Btn.GuidEZ_Danger{
  border-color: rgba(239,68,68,.55);
  background: linear-gradient(180deg, rgba(239,68,68,.18), rgba(15,26,46,.92));
}
.GuidEZ_Btn[disabled]{
  opacity:.45;
  cursor:not-allowed;
  filter:saturate(.6);
  transform:none;
}

.GuidEZ_Container{
  width:100%;
  max-width:1220px;
  margin:0 auto;
  padding:18px;
}
html[data-guidex-device='mobile'] .GuidEZ_Container{
  width:100%;
  max-width:var(--gx-host-vw, 100vw);
  margin:0 auto;
  padding:0;
}

.GuidEZ_Card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(18,34,58,.85), rgba(15,26,46,.85));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.GuidEZ_CardHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px 16px 12px 16px;
  border-bottom:1px solid rgba(34,53,85,.8);
}

.GuidEZ_CardHeader h1,
.GuidEZ_CardHeader h2{
  margin:0;
  font-size:18px;
  letter-spacing:.15px;
}
.GuidEZ_CardHeader p{
  margin:6px 0 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
}

.GuidEZ_CardBody{padding:16px}

.GuidEZ_Grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
@media (min-width: 980px){
  .GuidEZ_Grid.GuidEZ_Grid2{grid-template-columns: 1.35fr .65fr}
}

.GuidEZ_Row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.GuidEZ_Field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:220px;
  flex: 1;
}
.GuidEZ_Field label{
  font-size:12px;
  color:var(--muted);
}
.GuidEZ_Input, .GuidEZ_Select, .GuidEZ_Textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(7,12,22,.55);
  color:var(--text);
  outline:none;
}
.GuidEZ_Textarea{min-height:220px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size:12px; line-height:1.45}

.GuidEZ_Help{
  font-size:12px;
  color:var(--muted);
}

.GuidEZ_Table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(7,12,22,.35);
}
.GuidEZ_Table th, .GuidEZ_Table td{
  text-align:left;
  padding:12px 12px;
  border-bottom:1px solid rgba(34,53,85,.6);
  font-size:13px;
  vertical-align:top;
}
.GuidEZ_Table th{
  color:var(--muted);
  font-weight:650;
  background:rgba(18,34,58,.55);
  position:sticky;
  top:0;
}
.GuidEZ_Table tr:hover td{background:rgba(18,34,58,.25)}
.GuidEZ_Table td .GuidEZ_Mini{font-size:12px; color:var(--muted)}
.GuidEZ_Table td .GuidEZ_TagPill{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(34,53,85,.8);
  font-size:12px;
  color:var(--muted);
  margin-right:6px;
}

.GuidEZ_Split{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.GuidEZ_Split > *{flex:1}
.GuidEZ_SideCard{
  width:100%;
  max-width:340px; /* narrow institutional context by default */
}

.GuidEZ_Progress{
  width:100%;
  height:10px;
  border-radius:999px;
  background:rgba(7,12,22,.55);
  border:1px solid var(--line);
  overflow:hidden;
}
.GuidEZ_Progress > div{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, rgba(74,163,255,.85), rgba(125,211,252,.75));
  transition: width .25s ease;
}

.GuidEZ_Footer{
  margin-top:auto;
  border-top:1px solid var(--line);
  background:rgba(11,18,32,.75);
}
.GuidEZ_FooterInner{
  max-width:1220px;
  margin:0 auto;
  padding:14px 18px;
  color:var(--muted);
  font-size:12px;
  display:flex;
  gap:10px;
  justify-content:space-between;
  flex-wrap:wrap;
}
html[data-guidex-device='mobile'] .GuidEZ_FooterInner{
  width:100%;
  max-width:var(--gx-host-vw, 100vw);
  margin:0;
  padding:12px;
}

/* Toolbar */
.GuidEZ_ToolbarWrapper{
  width: 100%;
  border-top: 1px solid rgba(34,53,85,.6);
  background: rgba(7,12,22,.35);
}

.GuidEZ_Toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  padding:10px 18px;
  max-width:1220px;
  margin:0 auto;
}
html[data-guidex-device='mobile'] .GuidEZ_Toolbar{
  width:100%;
  max-width:var(--gx-host-vw, 100vw);
  margin:0;
  padding:10px 12px;
}
.GuidEZ_Toolbar .GuidEZ_Btn{box-shadow:none}

/* Status */
.GuidEZ_Status{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--muted);
}
.GuidEZ_Dot{
  width:10px; height:10px; border-radius:99px;
  background: var(--muted);
}
.GuidEZ_Dot.GuidEZ_On{background: var(--good)}
.GuidEZ_Dot.GuidEZ_Off{background: var(--bad)}

/* -- Chat Drawer Layout ------------------------------------------------- */
/* Wraps gx-shell + gx-chat-drawer in a flex row so drawer pushes content */
.gx-drawer-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: stretch;
}
.gx-drawer-layout .gx-shell {
  flex: 1 1 auto;
  min-width: 0;
}
.gx-chat-drawer {
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.25s ease;
  border-left: 1px solid var(--border, #ddd);
  background: var(--panel, #fff);
  display: flex;
  flex-direction: column;
}
.gx-chat-drawer--open {
  width: min(var(--gx-chat-drawer-width, 420px), 92vw);
}
.gx-chat-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border, #ddd);
  font-weight: 600;
  font-size: 14px;
}
.gx-chat-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--text, #222);
}
.gx-chat-drawer__log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 12px;
  font-size: 13px;
}
.gx-chat-drawer__input {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border, #ddd);
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel, #fff);
}
.gx-chat-drawer__input textarea,
.gx-chat-drawer__input input {
  flex: 1;
  resize: none;
  border: 1px solid var(--border, #ddd);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
  font-family: inherit;
}
.gx-chat-drawer__input button {
  align-self: flex-end;
  padding: 6px 12px;
  background: var(--accent, #1a56db);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

/* -- Chat Drawer Layout ------------------------------------------------- */
/* Wraps gx-shell + gx-chat-drawer in a flex row so drawer pushes content */
.gx-drawer-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: stretch;
}
.gx-drawer-layout .gx-shell {
  flex: 1 1 auto;
  min-width: 0;
}
.gx-chat-drawer {
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.25s ease;
  border-left: 1px solid var(--border, #ddd);
  background: var(--panel, #fff);
  display: flex;
  flex-direction: column;
}
.gx-chat-drawer--open {
  width: min(var(--gx-chat-drawer-width, 420px), 92vw);
}
.gx-chat-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border, #ddd);
  font-weight: 600;
  font-size: 14px;
}
.gx-chat-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--text, #222);
}
.gx-chat-drawer__log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 12px;
  font-size: 13px;
}
.gx-chat-drawer__input {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border, #ddd);
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel, #fff);
}
.gx-chat-drawer__input textarea,
.gx-chat-drawer__input input {
  flex: 1;
  resize: none;
  border: 1px solid var(--border, #ddd);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
  font-family: inherit;
}
.gx-chat-drawer__input button {
  align-self: flex-end;
  padding: 6px 12px;
  background: var(--accent, #1a56db);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

/* -- Portal Inspector (Playlist preview only, never on public deploys) ------ */
.gx-inspector-toggle {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 10000;
  padding: 6px 12px;
  background: var(--gx-accent, #0b3a68);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  gap: 5px;
}
.gx-inspector-toggle:focus-visible {
  outline: 2px solid var(--gx-accent);
  outline-offset: 2px;
}
.gx-inspector-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  z-index: 9999;
  background: var(--gx-panel, #fff);
  border-left: 2px solid var(--gx-accent, #0b3a68);
  box-shadow: -4px 0 20px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 13px;
}
.gx-inspector-panel[hidden] { display: none; }
.gx-inspector-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--gx-accent, #0b3a68);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.gx-inspector-panel__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}
.gx-inspector-panel__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gx-inspector-panel__meta {
  font-size: 11px;
  color: var(--gx-muted, #4a5f72);
  margin: 0;
}
.gx-inspector-panel__meta code {
  font-family: monospace;
  background: var(--gx-panel2, #e9eef5);
  padding: 1px 4px;
  border-radius: 3px;
}
.gx-inspector-section {
  border: 1px solid var(--gx-border, #d7dee8);
  border-radius: 6px;
  padding: 8px 10px;
}
.gx-inspector-section legend {
  font-size: 11px;
  font-weight: 700;
  color: var(--gx-muted, #4a5f72);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 4px;
}
.gx-inspector-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gx-ink, #12202e);
  margin-top: 8px;
}
.gx-inspector-label:first-of-type { margin-top: 4px; }
.gx-inspector-chk {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gx-ink, #12202e);
  margin-top: 6px;
  cursor: pointer;
}
.gx-inspector-panel__footer {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--gx-border, #d7dee8);
  flex-shrink: 0;
}

.gx-heading-reset {
  margin: 0;
}

.gx-mt-xs {
  margin-top: 8px;
}

.gx-mb-xs {
  margin-bottom: 8px;
}

.gx-session-chip-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gx-session-evidence-details {
  margin-top: 12px;
}

.gx-session-evidence-summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--gx-muted);
  font-weight: 600;
}

.gx-session-evidence-wrap {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
}

.gx-session-evidence-textarea {
  width: 100%;
  margin-bottom: 8px;
  box-sizing: border-box;
  min-height: 100px;
  resize: vertical;
}

.gx-session-evidence-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.gx-session-evidence-ai-status {
  font-size: 11px;
  color: var(--gx-muted);
  align-self: center;
}

.gx-session-evidence-dropzone {
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}

.gx-session-evidence-file-label {
  cursor: pointer;
  display: block;
}

.gx-session-evidence-camera {
  font-size: 20px;
}

.gx-session-evidence-file-copy {
  font-size: 12px;
  margin-top: 4px;
}

.gx-rc-intake-arc {
  border-top: 1px solid var(--gx-border);
  padding-top: 10px;
}

.gx-inspector-dep-id {
  font-size: 11px;
  opacity: 0.6;
}

.gx-help-contact-title {
  font-weight: 800;
}

.gx-help-meta-spacer {
  margin-top: 6px;
}

.gx-help-action-wrap {
  margin-top: 10px;
}

.gx-help-top-row {
  margin-top: 12px;
}

.gx-help-primary-action {
  flex: 1;
  min-width: 220px;
}

.gx-link-reset {
  text-decoration: none;
}

.gx-svg-italic {
  font-style: italic;
}

.gx-u-fw-700 {
  font-weight: 700;
}

.gx-u-fw-800 {
  font-weight: 800;
}

.gx-u-fw-900 {
  font-weight: 900;
}

.gx-u-fs-16 {
  font-size: 16px;
}

.gx-u-mt-6 {
  margin-top: 6px;
}

.gx-u-mt-10 {
  margin-top: 10px;
}

.gx-u-mt-12 {
  margin-top: 12px;
}

.gx-u-flex-col-220 {
  flex: 1;
  min-width: 220px;
}

.gx-btn-good {
  background: var(--gx-good);
  border-color: var(--gx-good);
}

.gx-detail-description {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.gx-detail-qr-wrap {
  margin-top: 12px;
}

.gx-detail-qr-img {
  max-width: 200px;
  border: 1px solid var(--gx-border);
  border-radius: 8px;
}

.gx-detail-pdf-wrap {
  margin-top: 8px;
}

.gx-detail-fit-list {
  margin: 10px 0 0 18px;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.gx-settings-status-panel {
  margin-top: 16px;
}

.gx-settings-status-body {
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 16px;
}

.gx-settings-status-pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 13px;
  font-family: monospace;
  max-height: 400px;
  overflow-y: auto;
}

/* ── Portrait anchor (recognition frame, canonical shared component) ────── */
/* Tone contract: recognition framing. Never deficit. Used on My Story,      */
/* My Selfie, and My Mirror. One component definition — no per-screen forks. */
.gx-portrait-anchor {
  border-left: 3px solid var(--gx-accent, #4a90d9);
  background: var(--gx-panel2, rgba(255,255,255,0.04));
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: 0 8px 8px 0;
}

.gx-portrait-anchor-primary {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gx-ink);
  font-style: italic;
}

.gx-portrait-anchor-details {
  margin-top: 8px;
}

.gx-portrait-anchor-summary {
  font-size: 12px;
  font-weight: 600;
  color: var(--gx-accent, #4a90d9);
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  list-style: none;
}

.gx-portrait-anchor-summary::-webkit-details-marker { display: none; }

.gx-portrait-anchor-secondary {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gx-meta-ink, #7a8ca0);
}
