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:not([type="checkbox"]):not([type="radio"]),
select {
  width: 100% !important;
  max-width: 100% !important;
  font-size: 16px !important;
}

input[type="checkbox"]:not(.oasis-nav-toggle):not(.oasis-nav-side-toggle),
input[type="radio"] {
  width: auto !important;
  max-width: none !important;
  flex: none !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,
.filter-group,
.inhabitant-action,
.mode-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 6px !important;
  overflow-x: hidden !important;
  scroll-snap-type: none !important;
  grid-template-columns: none !important;
}

.mode-buttons .column,
.mode-buttons > div,
.activity-filter-col {
  display: contents !important;
}

.mode-buttons form,
.filter-group form,
.inhabitant-action form,
.activity-filter-col form {
  width: auto !important;
  flex: 0 1 auto !important;
  scroll-snap-align: none !important;
  margin: 0 !important;
}
.inhabitant-action .filter-btn {
  min-height: 0 !important;
  padding: 7px 12px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}
.profile-sensors-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
}
.profile-sensors-box > * {
  max-width: 100% !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}
.inhabitant-activity-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.activity-filter-grid .filter-btn,
.activity-filter-col .filter-btn,
.activity-sub-filter .filter-btn {
  min-height: 0 !important;
  padding: 7px 12px !important;
  font-size: 13px !important;
  white-space: nowrap !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: visible !important;
}

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

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

.inhabitant-left > a:first-of-type,
.inhabitant-left > a:first-child {
  display: inline-block !important;
  width: 150px !important;
  height: 150px !important;
  max-width: 150px !important;
  margin: 0 auto 12px !important;
}

.inhabitant-photo,
.inhabitant-photo-details {
  width: 150px !important;
  height: 150px !important;
  max-width: 150px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !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 {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  overflow-x: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}

.tribe-section-group {
  display: contents !important;
}

.tribe-section-btn {
  font-size: 12px !important;
  padding: 7px 12px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !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;
  padding-left: 8px;
}

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

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

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

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

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

.main-column [class*="-row"],
.main-column [class*="-card"],
.main-column [class*="-item"],
.main-column [class*="-entry"],
.main-column .card,
.main-column article {
  flex-wrap: wrap !important;
  min-width: 0 !important;
}
.main-column [class*="-row"] > *,
.main-column [class*="-card"] > * {
  min-width: 0 !important;
}

button:not([class]),
input[type="submit"]:not([class]),
input[type="button"]:not([class]),
.filter-btn,
a.filter-btn,
.conn-actions button,
.peers-conn-actions button {
  background-color: #FFA500 !important;
  color: #1a1a1a !important;
  border: 1px solid #FFA500 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  text-align: center !important;
  white-space: normal !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}
.filter-btn.active {
  background-color: #FFD700 !important;
  border-color: #FFD700 !important;
}

.audios-search,
.videos-search,
.images-search {
  width: 100% !important;
  max-width: 100% !important;
  margin: 8px 0 !important;
}
.filter-box {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 8px !important;
  align-items: stretch !important;
}
.filter-box__input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  font-size: 16px !important;
  box-sizing: border-box !important;
}
.filter-box__controls {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  gap: 8px !important;
  align-items: stretch !important;
}
.filter-box__controls .transfer-range {
  display: flex !important;
  flex-direction: row !important;
  flex: 1 1 100% !important;
  width: 100% !important;
  gap: 8px !important;
}
.filter-box__number {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  height: 42px !important;
  font-size: 15px !important;
  box-sizing: border-box !important;
}
.filter-box__select {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 42px !important;
  font-size: 15px !important;
}
.filter-box__button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-height: 42px !important;
  white-space: nowrap !important;
  background-color: #FFA500 !important;
  color: #1a1a1a !important;
  border: 1px solid #FFA500 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 9px 16px !important;
}
.filters .ui-toolbar--filters {
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
}

.main-column button,
.main-column input,
.main-column select,
.main-column textarea,
.main-column .btn,
.main-column .create-button,
.main-column .update-btn,
.main-column .delete-btn,
.main-column .edit-btn,
.main-column .join-btn,
.main-column .leave-btn,
.main-column .buy-btn,
.main-column .submit-button {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: anywhere !important;
}
.main-column button,
.main-column .btn,
.main-column .create-button,
.main-column .update-btn,
.main-column .delete-btn,
.main-column .submit-button {
  white-space: normal !important;
}
.main-column form {
  max-width: 100% !important;
  min-width: 0 !important;
}

.card-field {
  display: flex !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 4px !important;
}
.card-field .card-value,
.card-field .card-label {
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
.card-value .user-link,
.card-value a {
  white-space: normal !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

.market-grid,
.shop-products-grid,
.jobs-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
}
.market-card,
.market-item {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.cycle-info {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
.kpi {
  min-width: 0 !important;
  padding: 8px !important;
}
.kpi__label {
  letter-spacing: 0 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  font-size: 11px !important;
}
.kpi__value {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  font-size: 13px !important;
}

.table-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
.table-wrap table,
.table-wrap .table {
  display: table !important;
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}
.table-wrap th,
.table-wrap td {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  font-size: 10px !important;
  padding: 4px 3px !important;
  text-align: center !important;
}

.search-filters-row {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
.search-filters-table,
.search-filters-table tbody,
.search-filters-table tr,
.search-filters-table td {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
.search-filters-table td {
  padding: 4px 0 !important;
}
.search-filters-table input,
.search-filters-table select,
.search-oasis-id {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
}

.oasis-id-copy {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  font-family: monospace !important;
  font-size: 12px !important;
  text-align: center !important;
  padding: 8px !important;
  border: 1px solid #FFA500 !important;
  border-radius: 8px !important;
  background: rgba(255, 165, 0, 0.08) !important;
  color: inherit !important;
  -webkit-user-select: all !important;
  user-select: all !important;
}
.peer-key,
.user-link.peer-key {
  -webkit-user-select: all !important;
  user-select: all !important;
  word-break: break-all !important;
}

.create-button,
button.create-button,
a.create-button {
  background-color: #ffcc00 !important;
  border-color: #e6b800 !important;
  color: #000 !important;
}

.peers-list .block-info-table,
.peers-technical-block .block-info-table,
.gov-overview {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.peers-list .block-info-table tbody,
.peers-technical-block .block-info-table tbody,
.gov-overview tbody {
  display: block !important;
  width: 100% !important;
}
.gov-overview thead { display: none !important; }
.peers-list .block-info-table tr:first-child,
.peers-technical-block .block-info-table tr:first-child {
  display: none !important;
}
.peers-list .block-info-table tr,
.peers-technical-block .block-info-table tr,
.gov-overview tbody tr {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 165, 0, 0.35) !important;
  border-radius: 8px !important;
  margin: 0 0 8px 0 !important;
  padding: 6px 10px !important;
  background: rgba(255, 165, 0, 0.04) !important;
}
.peers-list .block-info-table td,
.peers-technical-block .block-info-table td,
.gov-overview tbody td {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 10px !important;
  width: 100% !important;
  border: 0 !important;
  padding: 3px 0 !important;
  font-size: 12px !important;
  text-align: right !important;
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
}
.peers-list .block-info-table td::before,
.peers-technical-block .block-info-table td::before,
.gov-overview tbody td::before {
  content: attr(data-label);
  flex: 0 0 auto !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 10px !important;
  letter-spacing: .03em;
  opacity: .7 !important;
  text-align: left !important;
  white-space: nowrap !important;
  word-break: normal !important;
}
.peers-technical-block .block-info-table td[data-label=""] { justify-content: center !important; }
.peers-technical-block .block-info-table td[data-label=""]::before { content: none !important; }
.peers-list .block-info-table td .peer-key,
.peers-technical-block .block-info-table td .peer-key { text-align: right !important; }
