body {
  background-color: #121212;
  color: #FFD700;
}

header, footer {
  background-color: #1F1F1F;
}

.sidebar-left, .sidebar-right {
  background-color: #1A1A1A;
  border: 1px solid #333;
}

.main-column {
  background-color: #1C1C1C;
}

button, input[type="submit"], input[type="button"] {
  background-color: #444;
  color: #FFD700;
  border: 1px solid #444;
}

button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background-color: #333;
  border-color: #666;
}

input, textarea, select {
  background-color: #333;
  color: #FFD700;
  border: 1px solid #555;
}

a {
  color: #FFD700;
}

a:hover {
  color: #FFDD44;
}

table {
  background-color: #222;
  color: #FFD700;
}

table th {
  background-color: #333;
}

table tr:nth-child(even) {
  background-color: #2A2A2A;
}

nav ul li a:hover {
  color: #FFDD44;
  text-decoration: underline;
}

.profile {
  background-color: #222;
  padding: 15px;
  border-radius: 8px;
}

.profile .name {
  color: #FFD700;
}

.avatar {
  border: 3px solid #FFD700;
}

article, section {
  background-color: #1C1C1C;
  color: #FFD700;
}

.article img {
  border: 3px solid #FFD700;
}

.post-preview img {
  border: 3px solid #FFD700;
}

.post-preview .image-container {
  max-width: 100%;
  overflow: hidden;
  display: block;
  margin: 0 auto;
}

div {
  background-color: #1A1A1A;
  border: 1px solid #333;
}

div .header-content {
  width: 100%;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background-color: #222;
}

.action-container {
  background-color: #1A1A1A;
  border: 1px solid #333;
  padding: 10px;
  border-radius: 8px;
  color: #FFD700;
}

footer {
  background-color: #1F1F1F;
  padding: 10px 0;
}

footer a {
  background-color: #444;
  color: #FFD700;
  text-align: center;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
}

footer a:hover {
  background-color: #333;
  color: #FFDD44;
}

.card {
  border-radius: 16px;
  padding: 0px 24px 10px 24px; 
  margin-bottom: 16px;
  color: #FFD600;
  font-family: inherit;
  box-shadow: 0 2px 20px 0 #FFD60024;
}

.card-section {
  border:none;
  padding: 10px 0 0 16px; 
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0px; 
  margin-top: 8px;
  padding-top: 0px;   
  border: none;
}

.card-label {
  color: #ffa300;
  font-weight: bold;
  letter-spacing: 1.5px;
  line-height: 1.2;
  margin-bottom: 0;
}

.card-footer {
  margin-top: 6px;  
  font-weight: 500;
  color: #ff9900;
  font-size: 1.07em;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding-top: 0;
  margin-bottom: 6;
}

.card-body {
  margin-top: 0; 
  margin-bottom: 4;
  padding: 0; 
}

.card-field {
  display: flex;
  align-items: baseline;
  padding: 0;
  margin-bottom: 0;
  border: none;
  background: none;
}

.card-tags {
  margin: 5px 0 3px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.card-tags a.tag-link {
  text-decoration: none;
  color: #181818;
  background: #FFD600;
  padding: 5px 13px 4px 13px;
  border-radius: 7px;
  font-size: .98em;
  border: none;
  font-weight: bold;
}

.card-tags a.tag-link:hover {
  background: #ffe86a;
  color: #111;
  cursor: pointer;
}

a.user-link {
  background-color: #FFA500; 
  color: #000;
  padding: 8px 16px;
  border-radius: 5px; 
  text-align: center;
  font-weight: bold;
  text-decoration: none; 
  display: inline-block;
  border: 2px solid transparent;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s; 
  font-size: 0.8em; 
}

a.user-link:hover {
  background-color: #FFD700; 
  border-color: #FFD700; 
  color: #000; 
  cursor: pointer; 
}

a.user-link:focus {
  background-color: #007B9F; 
  border-color: #007B9F; 
  color: #fff;
}

.date-link {
  background-color: #444;
  color: #FFD600;
  padding: 8px 16px;
  border-radius: 5px;
  margin-left: 8px;
}

.date-link:hover {
  background-color: #555;
  color: #FFD700;
}

.activitySpreadInhabitant2 {
  background-color: #007B9F; 
  color: #fff;  
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
}

.activityVotePost {
  background-color: #557d3b; 
  color: #fff;  
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
}
html {
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
  overflow-x: hidden !important;
}

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

body {
  font-size: 15px;
  overflow-x: hidden;
  max-width: 100vw;
}

img,
video,
canvas,
iframe,
table {
  max-width: 100% !important;
}

pre,
code {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.header {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 4px !important;
  gap: 4px !important;
  overflow: visible !important;
}

.header-content {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 2px !important;
  gap: 4px !important;
  overflow: visible !important;
}

.top-bar-left,
.top-bar-mid,
.top-bar-right {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: stretch !important;
  gap: 6px !important;
}

.top-bar-left nav ul,
.top-bar-mid nav ul,
.top-bar-right nav ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

.top-bar-left nav ul li,
.top-bar-mid nav ul li,
.top-bar-right nav ul li {
  margin: 0 !important;
}

.top-bar-left nav ul li a,
.top-bar-mid nav ul li a,
.top-bar-right nav ul li a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 8px !important;
  font-size: 0.9rem !important;
  white-space: nowrap !important;
}

.search-input,
.feed-search-input,
.activity-search-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  font-size: 16px !important;
}

.main-content {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 12px !important;
}

.sidebar-left,
.sidebar-right,
.main-column {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 10px !important;
  border-left: none !important;
  border-right: none !important;
}

.sidebar-left {
  order: 1 !important;
}

.main-column {
  order: 3 !important;
}

.sidebar-right {
  order: 2 !important;
}

.sidebar-left nav ul,
.sidebar-right nav ul {
  display: flex !important;
  flex-direction: column !important;
}

.oasis-nav-header {
  font-size: 0.85rem !important;
}

.oasis-nav-list li a {
  font-size: 0.9rem !important;
  padding: 8px 12px !important;
}

button,
input[type="submit"],
input[type="button"],
.filter-btn,
.create-button,
.edit-btn,
.delete-btn,
.join-btn,
.leave-btn,
.buy-btn {
  min-height: 44px !important;
  font-size: 16px !important;
  white-space: normal !important;
  text-align: center !important;
}

.feed-row,
.comment-body-row,
table {
  display: block !important;
  width: 100% !important;
  overflow-x: auto !important;
}

textarea,
input,
select {
  width: 100% !important;
  max-width: 100% !important;
  font-size: 16px !important;
}

.gallery {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

footer,
.footer {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 12px !important;
  overflow-x: auto !important;
}

footer div {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

h1 { font-size: 1.35em !important; }
h2 { font-size: 1.2em !important; }
h3 { font-size: 1em !important; }

.small,
.time {
  font-size: 0.8rem !important;
}

.created-at {
  display: block !important;
  width: 100% !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  line-height: 1.5 !important;
  font-size: 0.8rem !important;
}

.header-content .created-at {
  display: block !important;
  flex: 1 1 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.post-meta,
.feed-post-meta,
.feed-row .small,
.feed-row .time,
.feed-row .created-at {
  display: block !important;
  width: 100% !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  line-height: 1.4 !important;
}

.post-meta,
.feed-post-meta {
  flex-direction: column !important;
  gap: 4px !important;
}

.mode-buttons,
.mode-buttons-cols,
.mode-buttons-row,
.filter-group,
.activity-filter-grid,
.activity-sub-filter,
.filters .ui-toolbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 6px !important;
  scroll-snap-type: x proximity !important;
  -webkit-overflow-scrolling: touch !important;
  grid-template-columns: none !important;
}

.mode-buttons .column,
.mode-buttons > div,
.activity-filter-col {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
}

.mode-buttons form,
.filter-group form,
.activity-filter-col form {
  width: auto !important;
  flex: 0 0 auto !important;
  scroll-snap-align: start !important;
}

.mode-buttons .filter-btn,
.mode-buttons button,
.filter-group .filter-btn,
.filter-group button,
.activity-filter-grid .filter-btn,
.activity-filter-grid button,
.activity-sub-filter .filter-btn,
.filters .filter-btn,
.filters button {
  width: auto !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  min-width: 0 !important;
}

.inhabitant-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.inhabitant-left {
  width: 100% !important;
  text-align: center !important;
}

.inhabitant-details {
  width: 100% !important;
}

.inhabitant-photo,
.inhabitant-photo-details {
  max-width: 200px !important;
  margin: 0 auto !important;
}

.inhabitants-list,
.inhabitants-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.tribe-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.tribe-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  grid-template-columns: 1fr !important;
}

.tribes-list,
.tribes-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.tribe-card-image {
  width: 100% !important;
  max-width: 100% !important;
}

.forum-card {
  flex-direction: column !important;
}

.forum-score-col,
.forum-main-col,
.root-vote-col {
  width: 100% !important;
}

.forum-header-row {
  flex-direction: column !important;
  gap: 4px !important;
}

.forum-meta {
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.forum-thread-header {
  flex-direction: column !important;
}

.forum-comment {
  margin-left: 0 !important;
  padding-left: 8px !important;
}

.comment-body-row {
  flex-direction: column !important;
}

.comment-vote-col,
.comment-text-col {
  width: 100% !important;
}

.forum-score-box,
.forum-score-form {
  flex-direction: row !important;
  justify-content: center !important;
}

.new-message-form textarea,
.comment-textarea {
  width: 100% !important;
}

[style*="grid-template-columns: repeat(6"] {
  grid-template-columns: 1fr !important;
}

[style*="grid-template-columns: repeat(3"] {
  grid-template-columns: 1fr !important;
}

[style*="grid-template-columns:repeat(6"] {
  grid-template-columns: 1fr !important;
}

[style*="grid-template-columns:repeat(3"] {
  grid-template-columns: 1fr !important;
}

[style*="grid-template-columns: repeat(auto-fit"] {
  grid-template-columns: 1fr !important;
}

[style*="grid-template-columns:repeat(auto-fit"] {
  grid-template-columns: 1fr !important;
}

[style*="width:50%"] {
  width: 100% !important;
}

.update-banner {
  background-color: #1a1400;
  border-bottom-color: #3a2e00;
  color: #FFD700;
}

.update-banner-link {
  color: #FFD700;
}

.snh-invite-code {
  color: #FFA500 !important;
}

.stats-kpi-label {
  color: #ffa300 !important;
}

.stats-kpi-value {
  color: #FFD700 !important;
}

.carbon-bar-note,
.carbon-bar-formula {
  color: #FFD700 !important;
}

.graphos-node-label {
  fill: #ddd !important;
}

.graphos-node-label-me {
  fill: #ffa500 !important;
}

.graphos-legend {
  color: #ddd !important;
}
