*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
}

/* ── Banner ────────────────────────────────────────────────────────────────── */

#banner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 12px;
  background: #000;
  border-bottom: 1px solid #333;
  flex-shrink: 0;
  z-index: 10;
}

#ac-logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

#banner-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  color: #fff;
}

#banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.banner-btn {
  background: transparent;
  border: 1px solid #555;
  border-radius: 4px;
  color: #ccc;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 4px 10px;
  white-space: nowrap;
}
.banner-btn:hover { border-color: #aaa; color: #fff; }

#oceanum-logo {
  height: 22px;
  width: auto;
  opacity: 0.7;
}
#oceanum-link:hover #oceanum-logo { opacity: 1; }

/* ── Viewer ────────────────────────────────────────────────────────────────── */

body {
  display: flex;
  flex-direction: column;
}

#viewer-wrap {
  flex: 1;
  overflow: hidden;
}

#eidos {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Disclaimer modal ──────────────────────────────────────────────────────── */

#disclaimer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
#disclaimer-overlay[hidden] { display: none; }

#disclaimer-dialog {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  max-width: 680px;
  width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#disclaimer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #333;
}
#disclaimer-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
#disclaimer-close {
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 8px;
}
#disclaimer-close:hover { color: #fff; }

#disclaimer-body {
  padding: 16px 20px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #ccc;
}
#disclaimer-body h3 { color: #fff; margin-top: 1.2em; }
#disclaimer-body a  { color: #6ab4ff; }
#disclaimer-body hr { border-color: #333; margin: 1em 0; }
