:root {
  --bg: #050403;
  --panel: rgba(8, 7, 6, 0.32);
  --text: #f0ede8;
  --muted: rgba(240, 237, 232, 0.64);
  --gold: #f0c93a;
  --gold-bright: #f0c93a;
  --gold-soft: rgba(240, 201, 58, 0.32);
  --border: rgba(240, 201, 58, 0.24);
  --hub-side: 96px;
  --hub-center: 120px;
  --hub-align-offset: 12px;
  --glow-side: 0 0 14px rgba(240, 201, 58, 0.22), 0 0 28px rgba(240, 201, 58, 0.1);
  --glow-center: 0 0 22px rgba(240, 201, 58, 0.48), 0 0 44px rgba(240, 201, 58, 0.26), 0 0 64px rgba(240, 201, 58, 0.12);
  --glow-action: 0 0 12px rgba(240, 201, 58, 0.28), 0 0 24px rgba(240, 201, 58, 0.14);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", sans-serif;
}

button,
select,
input,
textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.glb-app--premium {
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.glb-bg-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.glb-bg-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.10) 30%, rgba(0, 0, 0, 0.16) 56%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.40) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.40) 100%);
}

.glb-bg {
  position: absolute;
  inset: 0;
  background: #000 center 40% / cover no-repeat;
}

.glb-bg--base {
  z-index: 0;
  transform: scale(1.02);
  filter: brightness(1.01) saturate(0.96) contrast(1.04);
}

.glb-bg--sky {
  z-index: 1;
  inset: 0;
  transform: none;
  background-size: cover;
  background-position: center 40%;
  filter: brightness(1.01) saturate(1.03);
  clip-path: inset(0 0 76% 0);
  -webkit-mask-image: none;
  mask-image: none;
  animation: glbSkyPan 12s ease-in-out infinite alternate;
  will-change: background-position;
}

.glb-bg-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 58% 34% at 50% 36%,
      rgba(255, 152, 58, 0.16) 0%,
      rgba(240, 201, 58, 0.08) 38%,
      rgba(240, 201, 58, 0.02) 58%,
      transparent 76%
    ),
    radial-gradient(
      ellipse 92% 58% at 52% 30%,
      rgba(240, 201, 58, 0.06) 0%,
      transparent 72%
    );
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 24%, #000 54%, transparent 70%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 24%, #000 54%, transparent 70%);
  animation: glbLightPulse 8s ease-in-out infinite;
}

@keyframes glbSkyPan {
  from { background-position: 46% 40%; }
  to { background-position: 54% 40%; }
}

@keyframes glbLightPulse {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 1; }
}

.glb-shell {
  position: relative;
  z-index: 1;
  width: min(100vw, 430px);
  height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding:
    calc(8px + var(--safe-top))
    calc(14px + var(--safe-right))
    calc(6px + var(--safe-bottom))
    calc(14px + var(--safe-left));
}

.glb-header {
  flex: 0 0 auto;
  min-height: 44px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
}

.glb-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.glb-back-home {
  font-size: 1.5rem;
  line-height: 1;
  padding-bottom: 2px;
}

.glb-title {
  margin: 0;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1.1;
  text-align: center;
}

.glb-title-main {
  display: block;
  max-width: 100%;
  font-family: 'DM Serif Display', Georgia, 'Hiragino Mincho ProN', serif;
  font-size: clamp(10px, 2.9vw, 12px);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, #fff6e8 0%, #f0c93a 50%, #c9960a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
}

.glb-title-flare {
  display: block;
  width: min(180px, 68%);
  height: 1px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(240, 201, 58, 0.15) 20%,
    rgba(255, 248, 228, 0.85) 50%,
    rgba(240, 201, 58, 0.15) 80%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(240, 201, 58, 0.28);
}

.glb-main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  padding-top: 4px;
}

.glb-partner-flip {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  transform-origin: center center;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

body.glb-partner-turn .glb-partner-flip {
  transform: rotate(180deg);
}

/* 180° partner view — readability over brand gold */
body.glb-partner-turn .glb-partner-flip .glb-panel-label,
body.glb-partner-turn .glb-partner-flip .glb-hub-label {
  color: #f5f0e6;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.96),
    0 2px 8px rgba(0, 0, 0, 0.88),
    0 4px 18px rgba(0, 0, 0, 0.72);
}

body.glb-partner-turn .glb-partner-flip .glb-panel-label {
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 800;
}

body.glb-partner-turn .glb-partner-flip .glb-hub-label {
  font-size: clamp(0.96rem, 4vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.glb-partner-turn .glb-partner-flip .glb-output {
  color: #fffaf2;
  font-size: clamp(2.4rem, 11.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.06;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.96),
    0 4px 14px rgba(0, 0, 0, 0.9),
    0 8px 28px rgba(0, 0, 0, 0.78);
}

body.glb-partner-turn .glb-partner-flip .glb-output.empty {
  color: rgba(245, 240, 230, 0.94);
  font-size: clamp(1.08rem, 4.2vw, 1.32rem);
  font-weight: 700;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.94),
    0 3px 12px rgba(0, 0, 0, 0.84),
    0 6px 20px rgba(0, 0, 0, 0.68);
}

body.glb-partner-turn .glb-partner-flip .glb-output.err,
body.glb-partner-turn .glb-partner-flip .glb-output--miss {
  color: #f5f0e6;
  font-size: clamp(1.45rem, 6.8vw, 2.15rem);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.96),
    0 4px 14px rgba(0, 0, 0, 0.88),
    0 8px 24px rgba(0, 0, 0, 0.74);
}

body.glb-partner-turn .glb-partner-flip .glb-output--emergency,
body.glb-partner-turn .glb-partner-flip .glb-output--travel {
  color: #fffaf2;
  font-size: clamp(2.2rem, 10.5vw, 4rem) !important;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.96),
    0 4px 14px rgba(0, 0, 0, 0.9),
    0 8px 28px rgba(0, 0, 0, 0.78);
}

.glb-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 10, 8, 0.38), rgba(4, 4, 4, 0.32));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 180, 0.04),
    0 0 12px rgba(240, 201, 58, 0.06);
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
}

.glb-panel--partner {
  min-height: 0;
}

.glb-panel-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.glb-panel-foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.glb-panel-label {
  color: var(--gold-bright);
  font-size: clamp(11px, 3.1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.glb-output {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fffaf0;
  font-size: clamp(2rem, 9.5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: hidden;
  padding: 0 clamp(10px, 4vw, 20px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.52);
}

.glb-output.empty {
  color: rgba(240, 237, 232, 0.72);
  font-size: clamp(0.95rem, 3.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: normal;
  max-width: 100%;
  padding: 0 clamp(6px, 2vw, 10px);
}

.glb-output.err,
.glb-output--miss {
  color: var(--gold-bright);
  font-size: clamp(1.25rem, 5.8vw, 1.85rem);
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.glb-output[dir="rtl"] {
  direction: rtl;
}

.glb-conversation-hub {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: center;
  width: 100%;
  gap: 20px;
  padding: 0 2px;
}

.glb-hub-col {
  flex: 0 0 var(--hub-side);
  width: var(--hub-side);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-top: var(--hub-align-offset);
}

.glb-hub-label {
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.glb-btn-base {
  position: relative;
  background: radial-gradient(circle at 50% 36%, #12100e 0%, #0a0a0a 72%);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  overflow: visible;
  -webkit-appearance: none;
  appearance: none;
}

.glb-btn-base::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(240, 201, 58, 0.42);
  box-shadow: var(--glow-side);
  pointer-events: none;
}

.glb-btn-base::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 201, 58, 0.88);
  box-shadow: inset 0 0 14px rgba(240, 201, 58, 0.16);
  pointer-events: none;
}

.glb-btn-side {
  width: 96px;
  height: 96px;
  color: var(--gold-bright);
}

.glb-hub-btn--mic .glb-hub-icon [stroke],
.glb-hub-btn--speaker .glb-hub-icon [stroke] {
  stroke: #f0c93a;
}

.glb-hub-btn--mic.glb-hub-btn--listening .glb-hub-icon [stroke],
.glb-hub-btn--speaker.glb-hub-btn--speaking .glb-hub-icon [stroke] {
  stroke: #ffe98a;
}

.glb-speak-user-btn svg path {
  fill: #f0c93a;
}

.glb-btn-center {
  width: 120px;
  height: 120px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.72);
}

.glb-btn-center::before {
  inset: -6px;
  border-color: rgba(240, 201, 58, 0.62);
  box-shadow: var(--glow-center);
}

.glb-btn-center::after {
  inset: 6px;
  box-shadow:
    inset 0 0 20px rgba(240, 201, 58, 0.22),
    0 0 10px rgba(240, 201, 58, 0.18);
}

.glb-btn-base > * {
  position: relative;
  z-index: 1;
}

.glb-btn-inner {
  display: block;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 50%;
  overflow: hidden;
}

.glb-btn-base:active {
  transform: translateY(2px);
}

.glb-btn-base:active::before {
  box-shadow: 0 0 8px rgba(240, 201, 58, 0.16);
}

.glb-btn-base:active::after {
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.85), inset 0 0 12px rgba(240, 201, 58, 0.12);
}

.glb-hub-icon {
  width: 46px;
  height: 46px;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 4px rgba(240, 201, 58, 0.35));
}

.glb-hub-btn--listening::before,
.glb-hub-btn--speaking::before {
  box-shadow:
    0 0 18px rgba(240, 201, 58, 0.34),
    0 0 32px rgba(240, 201, 58, 0.16);
}

.glb-hub-btn--mic.glb-hub-btn--listening,
.glb-hub-btn--speaker.glb-hub-btn--speaking {
  color: #ffe98a;
}

.glb-logo-btn--busy {
  cursor: wait;
}

.glb-logo-btn--busy::before {
  box-shadow:
    0 0 26px rgba(240, 201, 58, 0.55),
    0 0 48px rgba(240, 201, 58, 0.3);
}

.glb-logo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.glb-input-stage {
  min-height: 0;
  flex: 0 0 auto;
}

.glb-compose--dock {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  min-height: 0;
  padding: 14px 12px calc(12px + 8px) 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 0 10px rgba(240, 201, 58, 0.04);
}

.glb-compose-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.glb-compose-toolbar .glb-speak-user-btn,
.glb-compose-toolbar .glb-thanks-user-btn,
.glb-compose-toolbar .glb-action-btn {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
  font-size: clamp(0.68rem, 2.8vw, 0.8rem);
  line-height: 1.15;
}

.glb-compose-toolbar .glb-speak-user-btn {
  flex-direction: column;
  gap: 3px;
}

.glb-compose-main {
  position: relative;
  min-width: 0;
  min-height: 5.2em;
}

.glb-compose-input {
  width: 100%;
  min-height: 5.2em;
  max-height: 7.5em;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(1.02rem, 4.4vw, 1.2rem);
  line-height: 1.5;
  resize: none;
  overflow-y: auto;
}

.glb-compose-input::placeholder {
  color: rgba(240, 237, 232, 0.45);
}

.glb-compose-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  align-self: stretch;
  padding: 2px 0;
}

.glb-action-btn {
  min-width: 58px;
  height: 42px;
  border: 1px solid rgba(240, 201, 58, 0.55);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.38);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow:
    inset 0 0 8px rgba(240, 201, 58, 0.08),
    var(--glow-action);
  transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.glb-action-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7);
}

.glb-clear-btn {
  flex: 0 0 auto;
}

.glb-rotate-fab {
  flex: 0 0 auto;
}

.glb-rotate-fab[aria-pressed="true"] {
  background: rgba(240, 201, 58, 0.12);
  box-shadow:
    inset 0 0 10px rgba(240, 201, 58, 0.14),
    0 0 16px rgba(240, 201, 58, 0.32),
    0 0 30px rgba(240, 201, 58, 0.16);
}

.glb-rotate-fab__icon {
  flex: 0 0 auto;
  opacity: 0.95;
}

.glb-rotate-fab__label {
  line-height: 1;
}

.glb-teach-btn {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--gold-bright);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0 16px;
}

.glb-teach-btn[hidden] { display: none !important; }

.glb-teach-inline {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.glb-teach-inline[hidden] { display: none !important; }

.glb-teach-input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
  color: var(--text);
  padding: 8px 10px;
  font-size: 14px;
}

.glb-teach-save {
  min-width: 64px;
  height: 40px;
  border: 1px solid var(--gold-bright);
  border-radius: 10px;
  background: rgba(240, 201, 58, 0.12);
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 12px;
}

.glb-flow-miss {
  border-color: rgba(240, 201, 58, 0.5) !important;
  box-shadow: 0 0 14px rgba(240, 201, 58, 0.14);
}

.glb-app--free .glb-speak-user-btn,
.glb-app--free .glb-thanks-user-btn {
  display: none !important;
}

.glb-free-foot {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding: 8px 0 4px;
}

.glb-free-usage {
  text-align: center;
}

.glb-free-usage__line {
  margin: 0;
  color: rgba(245, 240, 230, 0.78);
  font-size: 12px;
}

.glb-free-usage__remain {
  margin: 2px 0 0;
  color: rgba(240, 201, 58, 0.95);
  font-size: 14px;
  font-weight: 800;
}

.glb-free-upgrade {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 241, 172, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 244, 196, 0.16) 0%, rgba(240, 201, 58, 0.12) 100%);
  color: rgba(240, 201, 58, 0.96);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.glb-legal-foot {
  flex: 0 0 auto;
  min-height: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 6px 0 2px;
}

.glb-legal-link {
  color: rgba(240, 237, 232, 0.65);
  font-size: 10px;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.glb-flow-emergency {
  border-color: #ff6b6b !important;
  box-shadow: 0 0 18px rgba(255, 107, 107, 0.3);
}

.glb-flow-travel {
  border-color: var(--gold-bright) !important;
}

.glb-output--emergency {
  color: #fff;
  font-size: clamp(1.85rem, 8.5vw, 3rem) !important;
}

.glb-output--travel {
  font-size: clamp(1.75rem, 8vw, 2.85rem) !important;
}

.glb-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: stretch;
  justify-items: end;
  background: rgba(0, 0, 0, 0.55);
}

.glb-overlay[hidden] { display: none !important; }
body.glb-modal-open { overflow: hidden; }

.glb-sheet--side {
  width: min(360px, 94vw);
  height: 100svh;
  overflow: auto;
  background: rgba(9, 8, 6, 0.94);
  border-left: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.glb-sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(14px + var(--safe-top)) 16px 14px;
  border-bottom: 1px solid rgba(240, 201, 58, 0.14);
}

.glb-sheet-head h2 {
  margin: 0;
  color: var(--gold-bright);
  font-size: 1rem;
}

.glb-back {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  font-size: 1.4rem;
  cursor: pointer;
}

.glb-settings-section { padding: 4px 0 8px; }

.glb-settings-heading {
  margin: 0;
  padding: 10px 16px 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glb-settings-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.glb-settings-item {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid rgba(240, 201, 58, 0.1);
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.glb-settings-item--static { cursor: default; }

.glb-settings-item--select {
  cursor: default;
}

.glb-settings-item--select select {
  min-width: 120px;
  max-width: 58%;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.glb-settings-value,
.glb-chevron { color: var(--muted); font-size: 13px; }

.glb-settings-note {
  margin: 0;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.glb-bug-report {
  padding: 0 16px 8px;
}

.glb-bug-report__input {
  width: 100%;
  min-height: 6.5em;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(240, 201, 58, 0.24);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
}

.glb-bug-report__input:focus {
  outline: 0;
  border-color: rgba(240, 201, 58, 0.5);
}

.glb-bug-report__note {
  padding: 8px 0 0;
}

.glb-bug-report__meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.glb-bug-report__meta summary {
  cursor: pointer;
  color: rgba(240, 201, 58, 0.82);
}

.glb-bug-report__preview {
  margin: 8px 0 0;
  padding: 10px;
  max-height: 140px;
  overflow: auto;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(245, 240, 230, 0.82);
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.glb-bug-report__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.glb-bug-report__btn {
  flex: 1 1 140px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(240, 201, 58, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(240, 201, 58, 0.92);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.glb-bug-report__btn--primary {
  border-color: rgba(255, 241, 172, 0.72);
  background: linear-gradient(180deg, rgba(255, 244, 196, 0.18) 0%, rgba(240, 201, 58, 0.14) 100%);
}

.glb-bug-report__status {
  margin: 10px 0 0;
  color: rgba(240, 201, 58, 0.92);
  font-size: 12px;
  line-height: 1.4;
}

.glb-notebook-backup {
  padding: 0 16px 8px;
}

.glb-notebook-backup__note {
  padding-top: 0;
}

.glb-notebook-backup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.glb-notebook-backup__file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.glb-notebook-backup__meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-height: 720px) {
  .glb-partner-flip { gap: 8px; }
  .glb-panel { padding: 12px; }
  .glb-compose-input { min-height: 4.6em; }
  .glb-output { font-size: clamp(1.75rem, 8vw, 2.65rem); }
  .glb-output.empty { font-size: clamp(0.88rem, 3.4vw, 1.05rem); }
  body.glb-partner-turn .glb-partner-flip .glb-output {
    font-size: clamp(2.1rem, 10vw, 3.6rem);
  }
  body.glb-partner-turn .glb-partner-flip .glb-hub-label {
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glb-partner-flip { transition: none; }
  .glb-bg--sky,
  .glb-bg-glow { animation: none; }
}
