:root {
  color-scheme: dark;
  --page: #202228;
  --page-deep: #17191e;
  --header: #292b31;
  --panel: #0c0e12;
  --panel-soft: #11151a;
  --line: rgba(255, 255, 255, .07);
  --text: #f7f7f7;
  --muted: #c0c5c7;
  --accent: #37d19e;
  --accent-deep: #087b69;
  --yellow: #f2c842;
  --danger: #f16b73;
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; background: var(--page); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 12px;
  background:
    linear-gradient(142deg, transparent 0 39%, rgba(0, 0, 0, .1) 39.1% 39.4%, transparent 39.5%),
    radial-gradient(circle at 22% 45%, rgba(22, 93, 85, .1), transparent 32rem),
    var(--page);
}

.site-header {
  position: relative;
  min-height: 67px;
  overflow: hidden;
  border-top: 1px solid var(--accent);
  background: var(--header);
}

.site-header::before,
.site-header::after {
  position: absolute;
  top: 0;
  width: min(31vw, 370px);
  height: 67px;
  content: "";
  pointer-events: none;
  background: rgba(15, 17, 22, .34);
  transform: skewX(-42deg);
}

.site-header::before { left: 36%; }
.site-header::after { left: calc(36% + min(24vw, 275px)); background: rgba(19, 21, 26, .22); }

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1180px, calc(100% - 30px));
  min-height: 66px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #eceff0;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 37px;
  height: 42px;
  color: #2dd3a0;
  font-size: 21px;
  font-weight: 900;
  place-items: center;
  clip-path: polygon(50% 0, 94% 22%, 94% 78%, 50% 100%, 6% 78%, 6% 22%);
  background: #39d0a0;
}

.brand-mark::before {
  position: absolute;
  inset: 4px;
  content: "";
  clip-path: inherit;
  background: var(--header);
}

.brand-mark span { position: relative; z-index: 1; font-size: 19px; line-height: 1; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 10px; letter-spacing: .02em; }
.brand-copy small { color: #c1c7c7; font-size: 6px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.top-navigation {
  display: flex;
  gap: 21px;
  align-items: center;
}

.top-navigation a {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #bfc2c5;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.top-navigation a > span {
  display: inline-grid;
  width: 14px;
  height: 14px;
  color: #c4c7c9;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.top-navigation .nav-premium { color: #27cafa; }
.top-navigation .nav-premium > span { color: #25c9f9; }
.top-navigation .nav-download { color: #f5d139; }
.top-navigation .nav-download > span { color: #f5d139; font-size: 16px; }
.top-navigation .nav-login { color: #d1d3d5; }
.top-navigation a:hover { color: var(--accent); }

.page-layout {
  display: grid;
  width: min(1180px, calc(100% - 30px));
  margin: 15px auto 42px;
  gap: 17px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 255px;
}

.content-column { min-width: 0; }

.section-heading {
  display: flex;
  gap: 5px;
  margin: 0 0 8px;
  color: #fcfcfc;
  font-size: 13px;
  line-height: 1.2;
  align-items: center;
}

.section-heading span { color: #e9eeee; font-size: 11px; }

.news-card {
  position: relative;
  margin-bottom: 11px;
  padding: 14px 15px 16px;
  overflow: hidden;
  border: 1px solid rgba(20, 221, 180, .08);
}

.news-card-primary {
  min-height: 330px;
  background:
    linear-gradient(104deg, rgba(10, 50, 52, .97), rgba(8, 47, 49, .92) 59%, rgba(13, 47, 47, .88)),
    #073c3e;
}

.news-card-primary::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 330px;
  height: 330px;
  content: "";
  opacity: .24;
  transform: rotate(30deg);
  border: 24px solid rgba(55, 209, 158, .17);
  clip-path: polygon(50% 0, 94% 22%, 94% 78%, 50% 100%, 6% 78%, 6% 22%);
}

.news-card-secondary {
  min-height: 192px;
  background:
    linear-gradient(104deg, rgba(9, 59, 57, .93), rgba(37, 104, 99, .76)),
    #115b57;
}

.news-card h2,
.news-card h3,
.news-card p,
.news-tags { position: relative; z-index: 1; }

.news-card h2 {
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.news-card h3 {
  margin: 14px 0 5px;
  color: #fff;
  font-size: 10px;
  line-height: 1.3;
}

.news-date {
  margin: 5px 0 6px;
  color: #f3f4e0;
  font-size: 8px;
  font-weight: 700;
}

.news-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 9px; }
.news-tags span { padding: 3px 5px; color: #051613; font-size: 7px; font-weight: 800; border-radius: 2px; background: #44d9ad; }
.news-tags span + span { background: #ffd14b; }

.news-card p {
  max-width: 94%;
  margin: 0 0 8px;
  color: #f4f6f5;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
}

.news-card strong { color: #fffad4; }
.news-card .news-footnote { margin-top: 12px; color: #68e8c0; }
.news-watermark { position: absolute; z-index: 0; top: 31px; right: 18%; color: rgba(47, 202, 158, .07); font-size: 155px; font-weight: 900; line-height: .7; }
.news-pattern { position: absolute; inset: 0; opacity: .3; background: linear-gradient(135deg, transparent 42%, rgba(255, 198, 63, .5) 42.2% 42.8%, transparent 43%), radial-gradient(circle at 88% 60%, rgba(255, 221, 115, .75) 0 2px, transparent 2.5px); background-size: auto, 16px 16px; }

.sidebar { display: grid; gap: 10px; }

.side-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .045);
  background: var(--panel);
}

.side-panel h2 {
  min-height: 30px;
  margin: 0;
  padding: 9px 10px 7px;
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  background: rgba(0, 0, 0, .18);
}

.side-panel h2 span { margin-right: 4px; color: #e9eeee; }

.login-panel { padding-bottom: 11px; }

.form-hint {
  margin: 9px 10px 7px;
  color: #ffc75c;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.35;
}

.login-form { display: grid; gap: 6px; padding: 0 10px; }
.login-form label { display: grid; gap: 3px; }
.login-form label > span { color: #e4e8e8; font-size: 8px; font-weight: 700; }

input {
  width: 100%;
  height: 27px;
  padding: 0 8px;
  color: #202529;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 9px;
  outline: none;
  border: 1px solid #d9dddd;
  border-radius: 1px;
  background: #f7f7f7;
}

input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(55, 209, 158, .25); }

.password-field { position: relative; }
.password-field input { padding-right: 31px; }

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 27px;
  color: #536064;
  cursor: pointer;
  border: 0;
  background: transparent;
}

.primary-button,
.secondary-button {
  min-height: 28px;
  margin-top: 3px;
  padding: 0 9px;
  cursor: pointer;
  color: #fff;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  border: 0;
  border-radius: 1px;
  background: #27c28d;
}

.primary-button:hover,
.secondary-button:hover { background: #39d5a0; }

.flash {
  margin: 9px 10px;
  padding: 7px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  border-left: 2px solid;
}

.flash-success { color: #c8fae8; border-color: var(--accent); background: rgba(57, 196, 155, .11); }
.flash-error { color: #ffd4d7; border-color: var(--danger); background: rgba(241, 107, 115, .11); }

.profile-card { padding-bottom: 7px; }

.profile-card .identity-heading {
  display: block;
  min-height: 27px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: transparent;
}

.identity-heading span { color: #f0f4f4; }

.data-badges {
  display: grid;
  gap: 4px;
  margin: 8px 10px 6px;
}

.data-badges > div {
  display: flex;
  min-width: 0;
  gap: 2px;
  align-items: center;
}

.data-badges dt,
.data-badges dd {
  min-width: 0;
  margin: 0;
  padding: 3px 4px;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  border-radius: 1px;
}

.data-badges dt {
  flex: 0 0 auto;
  color: #1e262a;
  background: #e4e6e6;
}

.data-badges dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.value-blue { color: #061219; background: #48cdeb; }
.value-cyan { color: #061219; background: #2ed1e5; }
.value-red { color: #fff; background: #e65c65; }
.value-gold { color: #151104; background: #f1c541; }
.value-muted { color: #d8dcdd; background: #586166; }
.value-email { max-width: 150px; }

.card-link {
  display: block;
  margin: 7px 10px 2px;
  color: #35c7ff;
  font-size: 7px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.logout-form { margin: 0; text-align: center; }

.logout-link {
  padding: 2px 5px;
  cursor: pointer;
  color: #8d979a;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 7px;
  font-weight: 700;
  border: 0;
  background: transparent;
}

.logout-link:hover { color: #f1f1f1; }

.serial-card { min-height: 86px; }

.serial-entry {
  display: grid;
  gap: 6px;
  margin: 11px 10px 8px;
  text-align: center;
  justify-items: center;
}

.serial-entry > span {
  padding: 3px 6px;
  color: #1e262a;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  background: #e4e6e6;
}

.serial-entry code {
  max-width: 100%;
  color: #e8edef;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.character-placeholder {
  position: relative;
  height: 138px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(circle at 52% 35%, rgba(70, 125, 111, .22), transparent 26%),
    linear-gradient(145deg, #0c2625, #101a1d 57%, #080a0d);
}

.character-placeholder::before,
.character-placeholder::after {
  position: absolute;
  content: "";
  opacity: .28;
}

.character-placeholder::before {
  bottom: -36px;
  left: 23%;
  width: 53%;
  height: 125px;
  border-radius: 48% 48% 8% 8%;
  background: #071112;
}

.character-placeholder::after {
  top: 22px;
  left: calc(50% - 28px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0a1516;
}

.character-placeholder span {
  position: absolute;
  z-index: 1;
  right: 11px;
  bottom: 7px;
  color: rgba(57, 209, 158, .16);
  font-size: 45px;
  font-weight: 900;
}

.empty-character,
.profile-unavailable > p {
  margin: 10px;
  color: #d2d7d8;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.45;
}

.profile-unavailable { padding-bottom: 8px; }

.profile-view {
  width: min(1180px, calc(100% - 30px));
  margin: 15px auto 42px;
}

.profile-view-heading { margin: 0 0 11px; }

.profile-view-heading h1 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.profile-view-heading p {
  margin: 3px 0 0;
  color: #aebbbe;
  font-size: 8px;
  font-weight: 700;
}

.profile-flash { margin: 0 0 10px; }

.profile-view-grid {
  display: grid;
  gap: 17px;
  align-items: start;
  grid-template-columns: 255px minmax(0, 1fr);
}

.profile-history {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.history-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .045);
  background: var(--panel);
}

.history-panel h2 {
  min-height: 30px;
  margin: 0 10px;
  padding: 9px 0 7px;
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.history-panel h2 > span { margin-right: 4px; color: #f4f6f6; }

.history-panel h2 em {
  color: var(--yellow);
  font-size: 9px;
  font-style: normal;
}

.empty-history {
  margin: 0;
  padding: 14px 10px 12px;
  color: #dde0e1;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
}

.history-table-wrap { overflow-x: auto; padding: 8px 10px 9px; }

.history-table {
  width: 100%;
  min-width: 460px;
  border-spacing: 0;
  border-collapse: collapse;
  color: #eff2f2;
  font-size: 8px;
  font-weight: 700;
}

.history-table th,
.history-table td {
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
}

.history-table th {
  color: #e8ecec;
  font-size: 7px;
  background: #24272c;
}

.history-table td {
  color: #e8eded;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.history-table tbody tr:last-child td { border-bottom: 0; }
.history-table td:nth-child(1) { color: #d6e0df; white-space: nowrap; }
.history-table td:nth-child(2) { color: #d7f0ec; white-space: nowrap; }

.status-badge {
  display: inline-block;
  padding: 3px 5px;
  color: #07120f;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  border-radius: 1px;
}

.status-active { background: #43d79e; }
.status-pending { color: #07121b; background: #45cbe9; }
.status-warning { color: #151104; background: #f1c541; }
.status-danger { color: #fff; background: #dc5b61; }
.status-neutral { color: #1b2023; background: #b6bec0; }

.serial-cell {
  max-width: 175px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.serial-request-form { margin: 0; padding: 0 10px 10px; text-align: center; }

.serial-request-button {
  min-height: 25px;
  padding: 0 9px;
  cursor: pointer;
  color: #fff;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 8px;
  font-weight: 800;
  border: 0;
  border-radius: 1px;
  background: #27c28d;
}

.serial-request-button:hover { background: #3bd5a1; }

.character-view-grid { align-items: start; }
.character-sidebar { grid-template-columns: 1fr; }

.character-portrait small {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 8px;
  padding: 3px 4px;
  color: #bed9d3;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(69, 214, 166, .15);
  background: rgba(6, 14, 15, .68);
}

.character-state-card { padding-bottom: 10px; }

.character-state-list {
  display: grid;
  gap: 12px;
  padding: 10px;
}

.character-state-row { display: grid; gap: 5px; }

.character-state-row > div:first-child {
  display: flex;
  color: #dce1e2;
  font-size: 7px;
  font-weight: 800;
  justify-content: space-between;
}

.character-state-row strong {
  padding: 2px 4px;
  color: #0a1414;
  font-size: 6px;
  line-height: 1;
  background: #d9dddd;
}

.state-meter {
  height: 5px;
  overflow: hidden;
  background: #363a43;
  border-radius: 5px;
}

.state-meter i {
  display: block;
  height: 100%;
  min-width: 1px;
  background: #879099;
}

.hunger-state-row .state-meter i { background: #f0d24f; }

.character-data-panel .history-table-wrap { padding-top: 8px; padding-bottom: 8px; }
.character-table { min-width: 360px; }
.character-table th:nth-child(1),
.character-table td:nth-child(1) { white-space: nowrap; }

.vehicle-table {
  min-width: 410px;
  border-collapse: separate;
  border-spacing: 0 7px;
}

.vehicle-table th {
  padding: 7px 9px;
  color: #81aeb7;
  font-size: 7px;
  letter-spacing: .06em;
  background: #1d232b;
}

.vehicle-table th:first-child { border-radius: 5px 0 0 5px; }
.vehicle-table th:last-child { border-radius: 0 5px 5px 0; }
.vehicle-table th:nth-child(1) { width: 15%; }
.vehicle-table th:nth-child(2) { width: 32%; }
.vehicle-table th:nth-child(4) { width: 12%; }

.vehicle-table td {
  padding: 7px 9px;
  vertical-align: middle;
  border: 0;
  background: #1b2028;
}

.vehicle-table td:first-child { color: #82c8ef; border-radius: 5px 0 0 5px; }
.vehicle-table td:last-child { text-align: right; border-radius: 0 5px 5px 0; }

.vehicle-plate {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px 5px;
  color: #1a252b;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  border-radius: 2px;
  background: #f5f7f7;
}

.vehicle-plate i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #3bcf9a;
}

.vehicle-model { color: #f1f3f3 !important; font-size: 9px; }

.vehicle-open {
  display: inline-grid;
  width: 18px;
  height: 18px;
  padding: 0;
  color: #7aaee4;
  cursor: pointer;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  border: 0;
  border-radius: 3px;
  place-items: center;
  background: #27313d;
}

.vehicle-open:hover,
.vehicle-open:focus-visible { color: #d7efff; outline: 1px solid #56bae8; background: #36495c; }

.vehicle-dialog {
  width: min(600px, calc(100vw - 24px));
  max-width: 600px;
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  color: #f6f7f7;
  border: 0;
  border-radius: 2px;
  background: #23272a;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .62);
}

.vehicle-dialog::backdrop {
  background: rgba(5, 7, 10, .78);
  backdrop-filter: blur(2px);
}

.vehicle-dialog-header {
  display: flex;
  min-height: 40px;
  padding: 0 15px;
  align-items: center;
  justify-content: space-between;
  background: #14161a;
}

.vehicle-dialog-header strong { color: #f7f7f7; font-size: 11px; }

.vehicle-dialog-close {
  width: 24px;
  height: 24px;
  padding: 0;
  cursor: pointer;
  color: #e8ebeb;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  border: 0;
  background: transparent;
}

.vehicle-dialog-close:hover,
.vehicle-dialog-close:focus-visible { color: #49d2a0; outline: 0; }

.vehicle-dialog-content {
  max-height: calc(100vh - 68px);
  padding: 18px 22px 20px;
  overflow-y: auto;
}

.vehicle-dialog-status {
  margin: 0;
  color: #c8d3d4;
  font-size: 9px;
  font-weight: 700;
}

.vehicle-dialog-status:empty { display: none; }

.vehicle-dialog-identity { margin: 0 0 19px; }

.vehicle-dialog-identity h2 {
  margin: 0;
  color: #f8faf9;
  font-size: 20px;
  line-height: 1.15;
}

.vehicle-dialog-identity h2 em { color: #8b9298; font-size: 18px; font-style: normal; }

.vehicle-dialog-identity p {
  margin: 3px 0 0;
  color: #e8eeef;
  font-size: 15px;
  font-weight: 700;
}

.vehicle-dialog-columns {
  display: grid;
  gap: 20px 36px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.vehicle-detail-section h3,
.vehicle-trunk-section h3 {
  margin: 0 0 9px;
  color: #f4f7f7;
  font-size: 13px;
  line-height: 1.2;
}

.vehicle-badge-list { display: grid; gap: 6px; }

.vehicle-badge-row {
  display: flex;
  min-width: 0;
  align-items: stretch;
}

.vehicle-badge-label,
.vehicle-badge-value {
  min-width: 0;
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.vehicle-badge-label {
  flex: 0 0 auto;
  color: #f0f2f2;
  background: #35393d;
}

.vehicle-badge-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #656a72;
}

.vehicle-badge-blue { color: #fff; background: #2fafe2; }
.vehicle-badge-positive { color: #072619; background: #41ce94; }
.vehicle-badge-muted { color: #f4f5f5; background: #626771; }

.vehicle-badge-plate {
  color: #162126;
  border-left: 9px solid #3ecb96;
  background: #f4f6f6;
}

.vehicle-trunk-section {
  margin: 20px auto 0;
  max-width: 386px;
}

.vehicle-trunk-grid {
  display: grid;
  width: 100%;
  overflow: hidden;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  border-top: 4px solid #16191c;
  border-right: 4px solid #16191c;
  border-bottom: 4px solid #16191c;
  border-left: 4px solid #16191c;
  background: #171a1e;
}

.vehicle-trunk-slot {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border-top: 1px solid #2c3034;
  border-left: 1px solid #2c3034;
  place-items: center;
}

.vehicle-trunk-slot-filled { background: #1d2226; }

.vehicle-trunk-slot img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.vehicle-trunk-slot b {
  position: absolute;
  right: 1px;
  bottom: 0;
  padding: 1px 2px;
  color: #fff;
  font-size: 6px;
  line-height: 1;
  background: rgba(0, 0, 0, .72);
}

.vehicle-trunk-unknown { color: #ffd05b; font-size: 11px; font-weight: 900; }

.pet-table { min-width: 410px; }
.pet-table th:nth-child(1) { width: 29%; }
.pet-table th:nth-child(2) { width: 23%; }
.pet-table td { vertical-align: middle; }

.pet-breed {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 4px 7px;
  overflow: hidden;
  color: #fff;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 2px;
  background: linear-gradient(90deg, #9a35cd, #c448d7);
}

.pet-breed > span { font-size: 8px; line-height: .8; }
.pet-name { color: #f3f6f6 !important; font-size: 9px; }

.pet-state-bars {
  display: grid;
  min-width: 175px;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(36px, 1fr));
}

.pet-state-bar {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, .1);
}

.pet-state-bar i {
  display: block;
  height: 100%;
  min-width: 1px;
  border-radius: inherit;
}

.pet-health { background: rgba(57, 209, 158, .18); }
.pet-health i { background: #39d19e; }
.pet-hunger { background: rgba(64, 181, 239, .18); }
.pet-hunger i { background: #40b5ef; }
.pet-love { background: rgba(240, 93, 102, .18); }
.pet-love i { background: #f05d66; }

.interior-table {
  min-width: 500px;
  border-collapse: separate;
  border-spacing: 0 7px;
}

.interior-table th {
  padding: 8px 9px;
  color: #81aeb7;
  font-size: 7px;
  letter-spacing: .06em;
  background: #1d232b;
}

.interior-table th:first-child { border-radius: 5px 0 0 5px; }
.interior-table th:last-child { border-radius: 0 5px 5px 0; }
.interior-table th:nth-child(1) { width: 13%; }
.interior-table th:nth-child(2) { width: 19%; }
.interior-table th:nth-child(4) { width: 12%; }
.interior-table th:nth-child(5) { width: 18%; }

.interior-table td {
  padding: 8px 9px;
  vertical-align: middle;
  border: 0;
  background: #1b2028;
}

.interior-table td:first-child { border-radius: 5px 0 0 5px; }
.interior-table td:last-child { border-radius: 0 5px 5px 0; }
.interior-table td:nth-child(1) { color: #85c9f0; }
.interior-table td:nth-child(4),
.interior-table td:nth-child(5) { text-align: center; }

.interior-type {
  display: inline-block;
  padding: 4px 6px;
  color: #111b1d;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  border-radius: 3px;
}

.interior-type-house,
.interior-type-building { background: #f0c94b; }
.interior-type-business { background: #48d29b; }
.interior-type-garage { background: #36c7dd; }
.interior-type-rentable { color: #fff; background: #b144d1; }
.interior-type-door { background: #ef9d48; }
.interior-type-neutral { color: #263036; background: #a2a9ad; }

.interior-name { color: #f2f5f5 !important; font-size: 9px; }

.interior-lock,
.interior-reported {
  display: inline-grid;
  width: 24px;
  height: 22px;
  color: #a9b1b8;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  border-radius: 4px;
  place-items: center;
  background: #252b34;
}

.interior-lock.is-locked { color: #e5e9e9; background: #222831; }

.interior-reported {
  color: #08281b;
  background: #39c987;
}

.interior-reported.is-expired { color: #cbd0d1; background: #4d565d; }

.character-request-wrap { padding: 0 10px 10px; text-align: center; }

.character-request-button {
  min-height: 24px;
  padding: 0 8px;
  color: #d1dfdd;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 7px;
  font-weight: 800;
  border: 0;
  border-radius: 1px;
  background: #25775d;
}

.character-request-button:disabled { cursor: not-allowed; opacity: .74; }

.inventory-panel { min-height: 148px; }

.inventory-grid {
  display: grid;
  width: 200px;
  margin: 10px auto;
  grid-template-columns: repeat(10, 20px);
  grid-auto-rows: 20px;
  border-top: 1px solid #2a2e32;
  border-left: 1px solid #2a2e32;
  background: #171a1e;
}

.inventory-slot {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid #2a2e32;
  border-bottom: 1px solid #2a2e32;
  place-items: center;
}

.inventory-slot-filled { background: #1d2226; }

.inventory-slot img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: auto;
}

.inventory-slot b {
  position: absolute;
  right: 1px;
  bottom: 0;
  padding: 1px 2px;
  color: #fff;
  font-size: 6px;
  line-height: 1;
  background: rgba(0, 0, 0, .72);
}

.inventory-unknown { color: #ffcc59; font-size: 10px; font-weight: 900; }

@media (max-width: 780px) {
  .header-inner,
  .page-layout { width: min(100% - 24px, 590px); }
  .top-navigation { gap: 11px; }
  .top-navigation a { gap: 3px; font-size: 9px; }
  .top-navigation a > span { width: 11px; height: 11px; font-size: 10px; }
  .top-navigation .nav-download > span { font-size: 13px; }
  .page-layout { grid-template-columns: minmax(0, 1fr) 180px; gap: 10px; }
  .profile-view { width: min(100% - 24px, 590px); }
  .profile-view-grid { gap: 10px; grid-template-columns: 132px minmax(0, 1fr); }
  .profile-sidebar .character-placeholder { height: 132px; }
  .profile-sidebar .data-badges { margin-right: 8px; margin-left: 8px; }
  .profile-sidebar .data-badges dt,
  .profile-sidebar .data-badges dd { padding: 3px; font-size: 6px; }
  .profile-sidebar .value-email { max-width: 68px; }
  .profile-sidebar .serial-entry { margin-right: 7px; margin-left: 7px; }
  .profile-sidebar .serial-entry code { font-size: 6px; }
  .character-sidebar .character-placeholder { height: 132px; }
  .character-sidebar .character-state-list { padding: 8px; }
  .history-table { min-width: 400px; font-size: 7px; }
  .history-table th,
  .history-table td { padding: 5px; }
  .vehicle-dialog-content { padding: 16px; }
  .vehicle-dialog-columns { gap: 16px; }
  .news-card { padding: 12px; }
  .news-card p { max-width: 100%; }
}

@media (max-width: 580px) {
  .site-header { min-height: 58px; }
  .header-inner { min-height: 57px; }
  .top-navigation a:first-child { display: none; }
  .page-layout { display: flex; flex-direction: column; margin-top: 12px; }
  .content-column,
  .sidebar { width: 100%; }
  .sidebar { grid-template-columns: 1fr; }
  .news-card-primary { min-height: auto; }
  .news-watermark { right: 4%; }
}

@media (max-width: 430px) {
  .profile-view-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-sidebar { grid-template-columns: 1fr; }
  .vehicle-dialog-columns { grid-template-columns: minmax(0, 1fr); }
  .vehicle-dialog-identity h2 { font-size: 17px; }
  .vehicle-dialog-identity h2 em { font-size: 15px; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-view-heading-with-actions {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.profile-heading-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.profile-heading-logout { margin: 0; }

.profile-heading-icon {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  color: #d9e1e2;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 3px;
  place-items: center;
  background: #16191e;
}

.profile-heading-icon:hover,
.profile-heading-icon:focus-visible {
  outline: 0;
  transform: translateY(-1px);
}

.profile-admin-icon { color: #9fe9fa; }
.profile-admin-icon:hover,
.profile-admin-icon:focus-visible { border-color: #33c7eb; background: #183039; }
.profile-logout-icon { color: #f08389; }
.profile-logout-icon:hover,
.profile-logout-icon:focus-visible { border-color: #e86b73; background: #362126; }

.request-dialog {
  width: min(600px, calc(100% - 26px));
  max-width: 600px;
  padding: 0;
  color: #f6f7f8;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 3px;
  background: #22272b;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .58);
}

.request-dialog::backdrop { background: rgba(5, 7, 10, .73); backdrop-filter: blur(2px); }

.request-dialog-header {
  display: flex;
  min-height: 42px;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  background: #17191e;
}

.request-dialog-header strong { color: #fff; font-size: 14px; }

.request-dialog-close {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  color: #eef1f2;
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
  border: 0;
  background: transparent;
  place-items: center;
}

.request-dialog-close:hover,
.request-dialog-close:focus-visible { color: #4cd4a4; outline: 0; }

.request-dialog-form {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.request-dialog-selection {
  margin: 0 0 2px;
  color: #e6ebeb;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.request-dialog-input {
  display: flex;
  min-height: 37px;
  overflow: hidden;
  align-items: center;
  border: 1px solid #e1e4e5;
  border-radius: 3px;
  background: #fff;
}

.request-dialog-input > span {
  display: grid;
  width: 38px;
  color: #697077;
  font-size: 12px;
  place-items: center;
}

.request-dialog-input input {
  width: 100%;
  min-width: 0;
  height: 35px;
  padding: 0 10px 0 0;
  color: #1a1d20;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 13px;
  border: 0;
  outline: 0;
  background: #fff;
}

.request-dialog-input input::placeholder { color: #aab0b6; }

.request-dialog-submit {
  justify-self: center;
  min-height: 39px;
  padding: 0 18px;
  cursor: pointer;
  color: #fff;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  border: 0;
  border-radius: 3px;
  background: #39c99b;
}

.request-dialog-submit:hover,
.request-dialog-submit:focus-visible { outline: 0; background: #4bd8aa; }

.admin-view {
  width: min(1180px, calc(100% - 30px));
  margin: 15px auto 42px;
}

.admin-view-heading {
  display: flex;
  gap: 12px;
  margin: 0 0 11px;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-view-heading h1 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.admin-view-heading p {
  margin: 3px 0 0;
  color: #aebbbe;
  font-size: 8px;
  font-weight: 700;
}

.admin-back-link {
  padding: 6px 8px;
  color: #62cfb0;
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(57, 209, 158, .25);
  border-radius: 3px;
  background: #152724;
}

.admin-back-link:hover { color: #fff; background: #20745e; }

.admin-layout {
  display: grid;
  gap: 14px;
  align-items: start;
  grid-template-columns: 220px minmax(0, 1fr);
}

.admin-menu {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .045);
  background: #0c0e12;
}

.admin-menu-item {
  position: relative;
  display: flex;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  color: #ced5d6;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.admin-menu-item:last-child { border-bottom: 0; }
.admin-menu-item > span { color: #74d7ea; font-size: 12px; }
.admin-menu-item em {
  min-width: 16px;
  margin-left: auto;
  padding: 2px 4px;
  color: #061416;
  font-size: 7px;
  font-style: normal;
  text-align: center;
  border-radius: 2px;
  background: #44cce9;
}
.admin-menu-item:hover { color: #fff; background: #171d23; }
.admin-menu-item.is-active { color: #fff; background: #1f3432; box-shadow: inset 3px 0 #3bd2a1; }

.admin-content { min-width: 0; }

.admin-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .045);
  background: #0c0e12;
}

.admin-panel h2 {
  min-height: 32px;
  margin: 0 10px;
  padding: 9px 0 7px;
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.admin-panel h2 > span { margin-right: 4px; }
.admin-panel h2 em { color: var(--yellow); font-size: 9px; font-style: normal; }

.admin-request-list { display: grid; gap: 9px; padding: 10px; }

.admin-request-card {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 3px;
  background: #171b20;
}

.admin-request-card-heading {
  display: grid;
  gap: 3px;
  margin: 0 0 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.admin-request-card-heading strong { color: #f3f7f7; font-size: 10px; }
.admin-request-card-heading span { color: #a7b6b8; font-size: 7px; font-weight: 700; }

.admin-request-details {
  display: grid;
  gap: 6px 12px;
  margin: 0 0 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-request-details div { min-width: 0; }
.admin-request-details dt { margin: 0 0 2px; color: #8c9b9e; font-size: 7px; font-weight: 800; }
.admin-request-details dd { margin: 0; color: #e3e9e9; font-size: 8px; font-weight: 700; overflow-wrap: anywhere; }
.admin-serial-value { color: #84d2ef !important; font-family: Consolas, monospace; font-size: 7px !important; }

.admin-review-form { display: grid; gap: 8px; }
.admin-review-form label { display: grid; gap: 4px; color: #dce2e2; font-size: 8px; font-weight: 800; }
.admin-review-form label small { color: #a2afb1; font-size: 7px; font-weight: 700; }
.admin-review-form input,
.admin-review-form textarea {
  width: 100%;
  min-height: 28px;
  padding: 6px 7px;
  resize: vertical;
  color: #edf3f3;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 8px;
  border: 1px solid #343b42;
  border-radius: 2px;
  outline: 0;
  background: #101419;
}

.admin-review-form textarea { min-height: 48px; }
.admin-review-form input:focus,
.admin-review-form textarea:focus { border-color: #39cba0; }
.admin-review-form input[readonly] { color: #9fdcf0; background: #151a20; }

.admin-review-actions { display: flex; gap: 7px; justify-content: flex-end; }
.admin-review-actions button {
  min-height: 27px;
  padding: 0 9px;
  cursor: pointer;
  color: #fff;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 8px;
  font-weight: 900;
  border: 0;
  border-radius: 2px;
}

.admin-approve-button { background: #269a70; }
.admin-approve-button:hover { background: #37c894; }
.admin-reject-button { background: #963e48; }
.admin-reject-button:hover { background: #c65662; }
.admin-review-actions button:disabled { cursor: not-allowed; opacity: .45; }

.admin-placeholder { min-height: 145px; }
.admin-placeholder p { margin: 0; padding: 16px 10px; color: #cbd4d5; font-size: 9px; font-weight: 700; }
.admin-access-denied { max-width: 620px; padding: 16px; border: 1px solid rgba(241, 107, 115, .2); background: #15171c; }
.admin-access-denied h1 { margin: 0; color: #fff; font-size: 15px; }
.admin-access-denied p { margin: 8px 0 12px; color: #d9dfe0; font-size: 9px; font-weight: 700; }

@media (max-width: 780px) {
  .admin-view { width: min(100% - 24px, 590px); }
  .admin-layout { gap: 10px; grid-template-columns: 132px minmax(0, 1fr); }
  .admin-menu-item { min-height: 32px; padding: 0 7px; font-size: 7px; }
  .admin-menu-item > span { font-size: 9px; }
  .admin-menu-item em { min-width: 13px; font-size: 6px; }
  .admin-request-list { padding: 7px; }
  .admin-request-card { padding: 7px; }
  .admin-request-details { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 430px) {
  .profile-view-heading-with-actions,
  .admin-view-heading { align-items: center; }
  .profile-heading-icon { width: 25px; height: 25px; font-size: 13px; }
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-menu-item { min-height: 41px; padding: 4px; justify-content: center; text-align: center; }
  .admin-menu-item > span { display: none; }
  .admin-menu-item em { position: absolute; margin: -23px 0 0 39px; }
  .request-dialog-form { padding: 15px; }
}
