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;
}

.tribe-section-nav {
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch;
}

.tribe-section-group {
  flex-shrink: 0 !important;
}

.tribe-section-btn {
  font-size: 11px !important;
  padding: 4px 8px !important;
  white-space: nowrap !important;
}

.tribe-details {
  flex-direction: column !important;
}

.tribe-side {
  width: 100% !important;
}

.tribe-main {
  width: 100% !important;
}

.tribe-content-grid {
  grid-template-columns: 1fr !important;
}

.tribe-inhabitants-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

.tribe-media-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

.tribe-overview-grid {
  grid-template-columns: 1fr !important;
}

.tribe-mode-buttons {
  flex-wrap: wrap !important;
}

.tribe-card-hero-image {
  height: 180px !important;
}

.tribe-votation-option {
  flex-direction: column !important;
  align-items: flex-start !important;
}

.tribe-content-header {
  flex-direction: column !important;
  gap: 8px !important;
}

.tribe-content-filters {
  flex-wrap: wrap !important;
}

.tribe-media-filters {
  flex-wrap: wrap !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;
}
.inhabitant-karma-ubi .ubi-line{display:block;font-size:0.9em}
.pad-editor-container{flex-direction:column !important}
.pad-editor-area,.pad-members-list{width:100% !important;min-width:unset !important}
.chat-main-split{flex-direction:column !important}
.chat-messages-column,.chat-participants-column{width:100% !important;min-width:unset !important;flex:unset !important}
.games-grid{grid-template-columns:1fr !important}
.game-card{width:100% !important}
