body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #1a5f7a; /* Water-like blue to hide any gaps */
}

#game-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #1a5f7a;
}

#game-container svg {
  width: 100vw;
  height: 100vh;
  display: block;
  touch-action: manipulation; /* Disable double-tap zoom for faster touch response */
}

#ui-container {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
}

#ui-container div {
  color: #fff;
  vertical-align: middle;
}

#ui-container div img {
  height: 24px;
}

/* Map Editor Styles */
#map-editor-toolbar {
  font-family: sans-serif;
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.75);
  border-radius: 10px;
  padding: 0.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 60px;
  align-items: center;
}

#map-editor-toolbar button {
  width: 50px;
  height: 50px;
  border: 2px solid #666;
  border-radius: 8px;
  background: #333;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#map-editor-toolbar button:hover {
  transform: scale(1.05);
  border-color: #999;
  background: #444;
}

#map-editor-toolbar button:active {
  transform: scale(0.95);
}

#map-editor-toolbar button.selected {
  border-color: #4caf50;
  background: #2e7d32;
}

#map-editor-toolbar button img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  pointer-events: none;
}

/* Tool group with flyout */
.tool-group {
  position: relative;
}

.tool-group-flyout {
  display: none;
  position: absolute;
  left: calc(100% + 6px);
  top: 0;
  flex-direction: row;
  gap: 5px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  padding: 0.4rem;
  z-index: 1001;
  white-space: nowrap;
}

.tool-group-flyout.open {
  display: flex;
}

#map-editor-toolbar .export-button {
  margin-top: 10px;
}

/* Locked (paid) tool styles */
#map-editor-toolbar button.tool-locked {
  opacity: 0.5;
  position: relative;
  cursor: not-allowed;
}

#map-editor-toolbar button.tool-locked:hover {
  border-color: #f59e0b;
  background: #333;
}

.tool-lock-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

/* Editor help system */
#editor-help-system {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
}

.editor-help-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  color: #4CAF50;
  border: 2px solid #4CAF50;
  font-family: "Jersey 10", system-ui, sans-serif;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.editor-help-btn:hover {
  background: rgba(76, 175, 80, 0.2);
}

.editor-help-btn.collapsed {
  color: #666;
  border-color: #666;
}

.editor-tip-bubble {
  background: rgba(0, 0, 0, 0.85);
  color: #e0e0e0;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: "Jersey 10", system-ui, sans-serif;
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.3;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.editor-tip-bubble.hidden {
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
}

.editor-status-msg {
  position: fixed;
  bottom: 68px;
  right: 20px;
  background: rgba(0, 0, 0, 0.85);
  color: #4caf50;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: "Jersey 10", system-ui, sans-serif;
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.editor-status-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Upgrade prompt dialog */
#upgrade-prompt-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  font-family: "Jersey 10", system-ui, sans-serif;
}

.upgrade-prompt-panel {
  max-width: 340px;
}

/* Map Editor Indicator */
.map-editor-indicator {
  position: fixed;
  top: 10px;
  left: 10px;
  background: rgba(76, 175, 80, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-family: sans-serif;
  font-size: 14px;
  z-index: 1001;
  pointer-events: none;
}

.npc-chatbox-text {
  font-family: "Jersey 10", sans-serif;
  font-size: 1.25rem;
  fill: #08301e;
  text-anchor: middle;
}

@media (orientation: portrait) {
  #map-editor-toolbar {
    top: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    transform: none;
  }

  .tool-group-flyout {
    left: 0;
    top: calc(100% + 6px);
    flex-direction: row;
  }
}

/* Chatbox Styles */
.chatbox-container {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chatbox {
  background-image: url("./resources/images/chatbox.gif");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  transform-origin: center bottom;
  /* Scale based on current tile size relative to base 16px */
  transform: scale(calc(var(--tile-size) / 16));
}

.chatbox-text {
  font-family: "Jersey 10", sans-serif;
  color: #08301e;
  text-align: center;
  word-wrap: break-word;
}

/* Orientation-specific styles */
body.landscape .chatbox {
  width: 620px;
  height: 310px;
  padding: 2rem 2.5rem;
  font-size: 1.3rem;
}

body.portrait .chatbox {
  width: 384px; /* 24 tiles * 16px (base tile size) */
  height: 192px; /* 12 tiles * 16px (base tile size) */
  padding: 1rem 2rem;
}

body.portrait #map-editor-toolbar {
  top: 0;
  left: 0;
  right: 0;
  flex-direction: row;
  flex-wrap: wrap;
  transform: none;
}

body.portrait .tool-group-flyout {
  left: 0;
  top: calc(100% + 6px);
  flex-direction: row;
}

body.portrait .chatbox-text {
  font-size: 1rem;
}

/* Auth Overlay */
#auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-panel {
  background: #1a1a2e;
  border: 2px solid #444;
  border-radius: 12px;
  padding: 2rem;
  width: 340px;
  max-width: 90vw;
  text-align: center;
  font-family: "Jersey 10", sans-serif;
}

.auth-panel h2 {
  color: #4caf50;
  font-size: 2rem;
  margin: 0 0 0.25rem;
}

.auth-subtitle {
  color: #888;
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

.auth-panel input {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
  border: 2px solid #444;
  border-radius: 6px;
  background: #111;
  color: #eee;
  font-size: 1rem;
  font-family: "Jersey 10", sans-serif;
  box-sizing: border-box;
}

.auth-panel input:focus {
  outline: none;
  border-color: #4caf50;
}

.auth-btn {
  display: block;
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-family: "Jersey 10", sans-serif;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.auth-btn-primary {
  background: #4caf50;
  color: #fff;
}

.auth-btn-primary:hover {
  background: #388e3c;
}

.auth-btn-primary:disabled {
  background: #555;
  cursor: not-allowed;
}

.auth-btn-secondary {
  background: #333;
  color: #aaa;
  border: 1px solid #555;
}

.auth-btn-secondary:hover {
  background: #444;
  color: #fff;
}

.auth-btn-link {
  background: transparent;
  color: #4caf50;
  font-size: 0.9rem;
}

.auth-btn-link:hover {
  text-decoration: underline;
}

#auth-error {
  color: #f44336;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* User indicator (top-right) */
#auth-user-indicator {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  z-index: 1000;
  font-family: "Jersey 10", sans-serif;
}

.auth-user-name {
  color: #ccc;
  font-size: 0.9rem;
}

.auth-user-btn {
  background: #333;
  color: #aaa;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  font-family: "Jersey 10", sans-serif;
  cursor: pointer;
}

.auth-user-btn:hover {
  background: #444;
  color: #fff;
}

/* Header upgrade button for free users */
.auth-upgrade-btn {
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  font-family: "Jersey 10", sans-serif;
  cursor: pointer;
  animation: upgradeGlow 2s ease-in-out infinite alternate;
}

.auth-upgrade-btn:hover {
  background: #388e3c;
}

@keyframes upgradeGlow {
  from { box-shadow: 0 0 4px rgba(76, 175, 80, 0.3); }
  to { box-shadow: 0 0 10px rgba(76, 175, 80, 0.6); }
}

/* Clickable name button for paid users */
.auth-user-name-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 0.9rem;
  font-family: "Jersey 10", sans-serif;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.auth-user-name-btn:hover {
  background: #333;
  color: #fff;
}

/* Plan ending notice in header */
.auth-plan-ending {
  color: #f59e0b;
  font-size: 0.8rem;
}

/* Change Plan Dialog */
#change-plan-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  font-family: "Jersey 10", system-ui, sans-serif;
}

.change-plan-panel {
  max-width: 420px;
  width: 95vw;
}

.plan-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.plan-option {
  background: #1a1a2e;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 16px;
}

.plan-option.plan-selectable {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.plan-option.plan-selectable:hover {
  border-color: #4CAF50;
  background: #1e2240;
}

.plan-option.plan-current {
  border-color: #4CAF50;
}

.plan-option-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.plan-option-name {
  font-size: 1.15rem;
  font-weight: bold;
  color: #e0e0e0;
}

.plan-option-price {
  font-size: 1rem;
  color: #888;
}

.plan-option-features {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.plan-option-features li {
  color: #888;
  font-size: 0.85rem;
  padding: 2px 0;
}

.plan-option-features li::before {
  content: "\2022 ";
  color: #4CAF50;
}

.plan-option-badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: #4CAF50;
  color: white;
}

.plan-ending-badge {
  background: #f59e0b;
  color: #1a1a2e;
}

.plan-option-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: "Jersey 10", system-ui, sans-serif;
  font-size: 0.9rem;
}

.plan-option-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.plan-option-btn-primary {
  background: #4CAF50;
  color: white;
}

.plan-option-btn-primary:hover {
  background: #388e3c;
}

.plan-option-btn-secondary {
  background: #333;
  color: #ccc;
  border: 1px solid #555;
}

.plan-option-btn-secondary:hover {
  background: #444;
  color: #fff;
}

/* Map Browser Overlay */
#map-browser-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-browser-panel {
  background: #1a1a2e;
  border: 2px solid #444;
  border-radius: 12px;
  width: 500px;
  max-width: 95vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  font-family: "Jersey 10", sans-serif;
}

.map-browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.5rem;
}

.map-browser-header h2 {
  color: #4caf50;
  margin: 0;
  font-size: 1.5rem;
}

.map-browser-close-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
}

.map-browser-close-btn:hover {
  color: #fff;
}

.map-browser-tabs {
  display: flex;
  gap: 0;
  padding: 0 1.25rem;
  border-bottom: 1px solid #333;
}

.map-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #888;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: "Jersey 10", sans-serif;
  cursor: pointer;
}

.map-tab.active {
  color: #4caf50;
  border-bottom-color: #4caf50;
}

.map-tab:hover {
  color: #ccc;
}

.map-browser-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  min-height: 200px;
}

.map-browser-loading,
.map-browser-empty {
  color: #888;
  text-align: center;
  padding: 2rem 0;
}

.map-browser-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #333;
}

.map-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.map-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #222;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.map-card:hover {
  border-color: #555;
}

.map-card-name {
  color: #eee;
  font-size: 1.1rem;
}

.map-card-desc {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.map-card-meta {
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.map-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.map-card-play {
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  font-family: "Jersey 10", sans-serif;
  cursor: pointer;
}

.map-card-play:hover {
  background: #388e3c;
}

.map-card-delete {
  background: #333;
  color: #f44336;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  font-family: "Jersey 10", sans-serif;
  cursor: pointer;
}

.map-card-delete:hover {
  background: #f44336;
  color: #fff;
}

/* Cloud Save Dialog */
#cloud-save-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cloud-save-panel {
  background: #1a1a2e;
  border: 2px solid #444;
  border-radius: 12px;
  padding: 1.5rem;
  width: 320px;
  max-width: 90vw;
  font-family: "Jersey 10", sans-serif;
}

.cloud-save-panel h3 {
  color: #4caf50;
  margin: 0 0 1rem;
  font-size: 1.3rem;
}

.cloud-save-panel input[type="text"] {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.6rem;
  border: 2px solid #444;
  border-radius: 6px;
  background: #111;
  color: #eee;
  font-size: 1rem;
  font-family: "Jersey 10", sans-serif;
  box-sizing: border-box;
}

.cloud-save-panel input[type="text"]:focus {
  outline: none;
  border-color: #4caf50;
}

.cloud-save-public {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.cloud-save-actions {
  display: flex;
  gap: 0.5rem;
}

.cloud-save-actions .auth-btn {
  flex: 1;
}

#cloud-save-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  text-align: center;
}

.cloud-save-button {
  font-size: 24px !important;
}

/* Intro Text Dialog */
#intro-text-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-text-panel {
  width: 400px;
}

.intro-text-panel textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #444;
  border-radius: 6px;
  background: #111;
  color: #eee;
  font-size: 1rem;
  font-family: "Jersey 10", sans-serif;
  resize: vertical;
  margin-bottom: 0.75rem;
}

.intro-text-panel textarea:focus {
  outline: none;
  border-color: #4caf50;
}

/* Configure Item Dialog */
#configure-item-dialog,
#configure-npc-dialog,
#configure-portal-dialog,
#world-settings-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.configure-item-panel {
  width: 380px;
}

.configure-item-panel textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #444;
  border-radius: 6px;
  background: #111;
  color: #eee;
  font-size: 1rem;
  font-family: "Jersey 10", sans-serif;
  resize: vertical;
  margin-bottom: 0.75rem;
}

.configure-item-panel textarea:focus {
  outline: none;
  border-color: #4caf50;
}

/* World Settings Dialog */
.world-settings-panel {
  width: 380px;
}

.world-settings-label {
  color: #aaa;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}

.world-settings-hint {
  color: #666;
  font-size: 0.8rem;
  margin: 0 0 8px;
}

.world-settings-panel textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  border: 2px solid #444;
  border-radius: 6px;
  background: #111;
  color: #eee;
  font-size: 1rem;
  font-family: "Jersey 10", sans-serif;
  box-sizing: border-box;
  resize: vertical;
}

.world-settings-panel textarea:focus {
  outline: none;
  border-color: #4caf50;
}

/* Collection Message Popup */
.collection-message .chatbox {
  max-width: 400px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Title Dialog */
#page-title-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-title-panel {
  width: 350px;
}

.page-title-panel input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #444;
  border-radius: 6px;
  background: #111;
  color: #eee;
  font-size: 1rem;
  font-family: "Jersey 10", sans-serif;
  margin-bottom: 0.75rem;
}

.page-title-panel input[type="text"]:focus {
  outline: none;
  border-color: #4caf50;
}

/* Image Upload Dialog */
#image-upload-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-upload-panel {
  width: 380px;
}

.image-upload-preview {
  width: 100%;
  height: 160px;
  border: 2px dashed #444;
  border-radius: 8px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.image-upload-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-upload-preview span {
  color: #666;
  font-size: 0.95rem;
  font-family: "Jersey 10", sans-serif;
}

.image-library-section {
  margin-top: 12px;
}

.image-library-heading {
  color: #888;
  font-size: 0.85rem;
  font-family: "Jersey 10", sans-serif;
  margin-bottom: 8px;
}

.image-library-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  max-height: 160px;
  overflow-y: auto;
}

.image-library-item {
  aspect-ratio: 1;
  border: 2px solid #333;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
}

.image-library-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-library-item:hover {
  border-color: #8844aa;
}

/* Inline Text Editor */
#inline-text-editor {
  position: fixed;
  z-index: 2000;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  box-sizing: border-box;
  pointer-events: auto;
}

#inline-text-editor #text-edit-area {
  background: transparent;
  color: #fff;
  outline: none;
  padding: 4px;
  font-family: sans-serif;
  word-wrap: break-word;
  overflow-y: auto;
  box-sizing: border-box;
  width: 100%;
  cursor: text;
}

#inline-text-toolbar {
  position: fixed;
  z-index: 2001;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid #444;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px 8px;
  align-items: center;
}

#inline-text-toolbar select {
  background: #222;
  color: #eee;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 0.8rem;
  cursor: pointer;
  height: 28px;
}

.text-format-btn {
  width: 28px;
  height: 28px;
  background: #222;
  color: #eee;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0;
}

.text-format-btn:hover {
  background: #333;
  border-color: #666;
}

.inline-text-save,
.inline-text-cancel {
  height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.inline-text-save {
  background: #2a7a3a;
  color: #fff;
}

.inline-text-save:hover {
  background: #339944;
}

.inline-text-cancel {
  background: #555;
  color: #eee;
}

.inline-text-cancel:hover {
  background: #666;
}

/* Font dropdown */
.font-dropdown-wrapper {
  position: relative;
}

.font-dropdown-input {
  width: 120px;
  height: 28px;
  background: #222;
  color: #eee;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.8rem;
  box-sizing: border-box;
  outline: none;
}

.font-dropdown-input:focus {
  border-color: #2288cc;
}

.font-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 180px;
  max-height: 200px;
  overflow-y: auto;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 2002;
}

.font-dropdown-option {
  padding: 5px 8px;
  color: #eee;
  cursor: pointer;
  font-size: 0.85rem;
}

.font-dropdown-option:hover {
  background: #333;
}
