/* In-world tablet UI — Alexandria's Design dark + gold */

body.tab-locked { overflow: hidden; }

.tab-root {
  position: fixed; inset: 0; z-index: 9500;
  display: grid; place-items: center;
}
.tab-root.hidden { display: none; }

.tab-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.tab-frame {
  position: relative;
  width: min(720px, 92vw);
  height: min(960px, 88vh);
  z-index: 1;
  display: grid; place-items: center;
}

.tab-bezel {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  border-radius: 28px;
  padding: 14px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 2px rgba(255,255,255,0.04),
    inset 0 0 0 1px rgba(255,255,255,0.02);
}

.tab-screen {
  position: relative;
  width: 100%; height: 100%;
  background: #0a0a14;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 38px 56px 1fr;
  border: 0.5px solid rgba(255,255,255,0.06);
}

.tab-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 0.5px solid var(--line, rgba(255,255,255,0.06));
  font-size: 11px;
  color: var(--text-mute, rgba(244,241,234,0.45));
}
.tab-time { font-weight: 600; color: var(--text, #f4f1ea); }
.tab-status { display: flex; gap: 12px; align-items: center; }
.tab-signal {
  width: 14px; height: 10px;
  background:
    linear-gradient(to top, var(--gold, #c4a35f) 30%, transparent 30%),
    linear-gradient(to top, var(--gold, #c4a35f) 50%, rgba(255,255,255,0.15) 50%) 4px 0/3px no-repeat,
    linear-gradient(to top, var(--gold, #c4a35f) 70%, rgba(255,255,255,0.15) 70%) 8px 0/3px no-repeat;
  background-size: 3px 100%, 3px 100%, 3px 100%;
  background-position: 0 0, 4px 0, 8px 0;
  background-repeat: no-repeat;
}

.tab-nav {
  display: flex;
  background: rgba(255,255,255,0.02);
  border-bottom: 0.5px solid var(--line, rgba(255,255,255,0.06));
  overflow-x: auto;
}
.tab-tab {
  flex: 1;
  padding: 14px 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-mute, rgba(244,241,234,0.55));
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s var(--easing, cubic-bezier(0.25, 1, 0.5, 1));
  white-space: nowrap;
}
.tab-tab:hover { color: var(--text, #f4f1ea); }
.tab-tab.is-active {
  color: var(--gold-bright, #e0bc73);
  border-bottom-color: var(--gold, #c4a35f);
}
.tab-tab.is-visited::after {
  content: ' ✓';
  color: rgba(74, 222, 128, 0.6);
}
.tab-tab.is-flashing {
  animation: tab-flash 0.6s ease-in-out 2;
}
@keyframes tab-flash {
  0%, 100% { background: transparent; }
  50% { background: rgba(196, 163, 95, 0.2); }
}

.tab-body {
  padding: 22px 24px 28px;
  overflow-y: auto;
  color: var(--text-soft, rgba(244,241,234,0.78));
}

.tab-h {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text, #f4f1ea);
  margin: 0 0 6px;
}
.tab-sub {
  font-size: 12px;
  color: var(--text-mute, rgba(244,241,234,0.5));
  margin: 0 0 18px;
  line-height: 1.5;
}
.tab-foot {
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-mute, rgba(244,241,234,0.4));
}
.tab-foot-italic { font-style: italic; }

.tab-empty {
  font-style: italic;
  color: var(--text-mute, rgba(244,241,234,0.4));
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.tab-list {
  display: flex; flex-direction: column; gap: 10px;
}
.tab-list-item {
  background: var(--surface, #1c1d35);
  border: 0.5px solid var(--line, rgba(255,255,255,0.06));
  padding: 12px 14px;
  border-radius: 6px;
}
.tab-list-item.is-done { opacity: 0.6; }
.tab-list-eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #c4a35f);
  margin-bottom: 4px;
}
.tab-list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #f4f1ea);
}
.tab-list-detail {
  font-size: 12px;
  color: var(--text-soft, rgba(244,241,234,0.7));
  margin-top: 4px;
  line-height: 1.5;
}
.tab-list-cite {
  font-size: 10px;
  color: var(--text-mute, rgba(244,241,234,0.4));
  margin-top: 6px;
  font-style: italic;
}

.tab-alerts {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 18px;
}
.tab-alert {
  background: rgba(217, 119, 87, 0.12);
  border: 0.5px solid rgba(217, 119, 87, 0.4);
  padding: 12px 14px;
  border-radius: 6px;
}
.tab-alert.info {
  background: rgba(196, 163, 95, 0.10);
  border-color: rgba(196, 163, 95, 0.4);
}
.tab-alert-eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #c4a35f);
  margin-bottom: 4px;
}
.tab-alert-body {
  font-size: 13px;
  color: var(--text, #f4f1ea);
  line-height: 1.5;
}
.tab-alert-cta {
  margin-top: 10px;
  background: var(--gold, #c4a35f);
  border: none;
  color: #1a1a1a;
  padding: 8px 14px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.tab-alert-cta:hover { background: var(--gold-bright, #e0bc73); }

.tab-mcp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.tab-mcp-tile {
  background: var(--surface, #1c1d35);
  border: 0.5px solid var(--line, rgba(255,255,255,0.06));
  padding: 12px 8px;
  border-radius: 4px;
  color: var(--text-soft, rgba(244,241,234,0.75));
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-mcp-tile:hover {
  border-color: var(--gold, #c4a35f);
  color: var(--gold-bright, #e0bc73);
}

.tab-resources {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.tab-resources li {
  background: var(--surface, #1c1d35);
  border: 0.5px solid var(--line, rgba(255,255,255,0.06));
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text, #f4f1ea);
}
.tab-res-eyebrow {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #c4a35f);
  margin-right: 8px;
}

.tab-marisol-prompts {
  display: flex; flex-direction: column; gap: 8px;
}
.tab-prompt {
  background: var(--surface, #1c1d35);
  border: 0.5px solid var(--line, rgba(255,255,255,0.06));
  padding: 12px 14px;
  border-radius: 4px;
  color: var(--text-soft, rgba(244,241,234,0.78));
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-prompt:hover {
  border-color: var(--gold, #c4a35f);
  color: var(--text, #f4f1ea);
}

.tab-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.10);
  color: var(--text-soft, rgba(244,241,234,0.7));
  width: 32px; height: 32px;
  border-radius: 16px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.tab-close:hover {
  background: rgba(255,255,255,0.10);
  color: var(--text, #f4f1ea);
}

@media (max-width: 600px) {
  .tab-frame { width: 96vw; height: 92vh; }
  .tab-bezel { padding: 8px; border-radius: 18px; }
}

/* Guided tour callout */
.tab-tour-callout {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  background: rgba(10, 10, 20, 0.96);
  backdrop-filter: blur(14px);
  border: 0.5px solid var(--gold, #c4a35f);
  border-radius: 10px;
  padding: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: 1fr auto;
  gap: 10px 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.7);
}
.tab-tour-portrait {
  grid-row: 1 / 3;
  width: 64px; height: 64px;
  border-radius: 50%;
  background-size: cover;
  background-position: center 20%;
  border: 2px solid var(--gold, #c4a35f);
}
.tab-tour-body {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.tab-tour-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #c4a35f);
  margin: 0;
}
.tab-tour-text {
  font-size: 12px;
  color: var(--text, #f4f1ea);
  line-height: 1.5;
  margin: 0;
}
.tab-tour-progress {
  height: 3px;
  background: rgba(255,255,255,0.10);
  border-radius: 2px;
  overflow: hidden;
}
.tab-tour-progress span {
  display: block; height: 100%; width: 0%;
  background: var(--gold, #c4a35f);
  transition: width 0.15s linear;
}
.tab-tour-cta {
  grid-column: 1 / -1;
  background: var(--gold, #c4a35f);
  border: none;
  color: #1a1a1a;
  padding: 10px 16px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-tour-cta:hover:not(:disabled) {
  background: var(--gold-bright, #e0bc73);
}
.tab-tour-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Disabled tabs during tour */
.tab-tab:disabled {
  cursor: not-allowed;
}
