* { box-sizing: border-box; }
:root {
  --ink: #15162f;
  --deep: #262548;
  --navy: #163adf;
  --blue: #2157f3;
  --violet: #742cc8;
  --paper: #ffffff;
  --muted: #8f94ba;
  --line: rgba(255,255,255,.16);
  --danger: #ffeff3;
  --success: #e9fff3;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(33,87,243,.16), transparent 26%),
    radial-gradient(circle at 80% 80%, rgba(116,44,200,.18), transparent 28%),
    #eef0f6;
  color: var(--paper);
}
.shell {
  width: min(960px, 96vw);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}
.phone {
  width: min(390px, 94vw);
  height: min(820px, calc(100vh - 32px));
  min-height: 680px;
  position: relative;
  padding: 16px 12px 14px;
  border-radius: 38px;
  background: linear-gradient(145deg, #fbfbff, #d6d9e6 52%, #ffffff);
  box-shadow: 0 30px 70px rgba(31,34,68,.28), inset 0 0 0 1px rgba(255,255,255,.8);
  transition: width .65s cubic-bezier(.2,.8,.2,1), height .65s cubic-bezier(.2,.8,.2,1), border-radius .65s cubic-bezier(.2,.8,.2,1), transform .65s cubic-bezier(.2,.8,.2,1);
}
.phone::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(22,24,45,.08);
  pointer-events: none;
}
.phoneSpeaker {
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: #a7abb8;
  margin: 0 auto 10px;
}
.screen {
  height: calc(100% - 15px);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  border-radius: 28px;
  padding: 18px 18px 22px;
  background:
    linear-gradient(160deg, rgba(31,74,245,.96), rgba(31,76,226,.94) 38%, rgba(101,40,184,.95)),
    var(--deep);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  scrollbar-width: thin;
  transition: border-radius .55s cubic-bezier(.2,.8,.2,1), padding .55s cubic-bezier(.2,.8,.2,1);
}
.screen {
  scrollbar-width: none;
}
.screen::-webkit-scrollbar {
  display: none;
}
.screen::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 260px;
  left: -120px;
  top: 150px;
  background: rgba(255,255,255,.16);
  transform: rotate(27deg);
  border-radius: 26px;
  pointer-events: none;
}
.appHeader,
.sectionHeader,
.pagination,
.sectionTitle {
  display: flex;
  align-items: center;
}
.view {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
}
.loginView {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0 26px;
}
.rotateLoginBtn {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 3;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.rotateLoginBtn::before {
  content: "↻";
  font-size: 22px;
  line-height: 1;
}
.brandMark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 15px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.05; letter-spacing: 0; }
h2 { font-size: 18px; line-height: 1.1; }
h3 { font-size: 16px; line-height: 1.1; }
.muted {
  color: rgba(255,255,255,.74);
  margin-top: 8px;
  line-height: 1.35;
}
.small { font-size: 12px; }
.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.tiltedCard {
  margin-top: 28px;
  padding: 28px 22px 26px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(19,19,52,.22);
  transform: skewY(8deg);
}
.tiltedCard > * { transform: skewY(-8deg); }
.glassPanel {
  margin-top: 16px;
  padding: 18px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 36px rgba(17,20,55,.12);
  backdrop-filter: blur(12px);
}
.adminPanel,
.historyPanel { padding-bottom: 16px; }
.historyPanel {
  display: flex;
  flex-direction: column;
}
.appHeader {
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0 4px;
}
.headerActions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.headerActions .iconButton {
  min-width: 86px;
}
#openLogsBtn::before {
  content: "▦";
  margin-right: 6px;
}
#openUserBtn::before {
  content: "+";
  margin-right: 6px;
}
.sectionHeader { justify-content: space-between; gap: 10px; }
.sectionHeader {
  flex-wrap: wrap;
}
.sectionTitle { gap: 9px; }
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #58f2b4;
  box-shadow: 0 0 0 6px rgba(88,242,180,.12);
}
.dot.violet {
  background: #f1b7ff;
  box-shadow: 0 0 0 6px rgba(241,183,255,.12);
}
.dot.amber {
  background: #ffd166;
  box-shadow: 0 0 0 6px rgba(255,209,102,.14);
}
.dot.cyan {
  background: #72e7ff;
  box-shadow: 0 0 0 6px rgba(114,231,255,.14);
}
label {
  display: block;
  margin: 16px 0 7px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}
.loginCard label { color: #4f5580; }
input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 13px;
  background: rgba(255,255,255,.92);
  color: #1d2140;
  font: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33,87,243,.15);
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
}
select:focus {
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232157f3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
}
select option {
  background: #fff;
  color: #1d2140;
  padding: 8px;
}
.loginCard input {
  border: 0;
  border-bottom: 1px solid #e3e6f3;
  border-radius: 0;
  padding-left: 0;
}
.passwordField {
  position: relative;
}
.passwordField input {
  padding-right: 42px;
}
.loginCard .passwordField input {
  padding-right: 36px;
}
.passwordToggle {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #4f5580;
  box-shadow: none;
  transform: translateY(-50%);
}
.passwordToggle::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  width: 16px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.passwordToggle::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.passwordToggle.showing {
  color: var(--navy);
}
.passwordToggle.showing::before {
  border-color: currentColor;
}
textarea {
  resize: vertical;
  min-height: 88px;
}
button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(12,18,65,.14);
}
#addBtn {
  margin-top: 18px;
}
button:disabled {
  opacity: .55;
  cursor: wait;
}
.roundButton {
  width: 58px;
  height: 58px;
  min-height: 58px;
  margin-top: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue), var(--violet));
  color: #fff;
  font-size: 0;
  position: relative;
}
.roundButton::after {
  content: "->";
  font-size: 22px;
  line-height: 1;
}
.iconButton {
  width: auto;
  min-width: 92px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  color: #27306b;
  box-shadow: none;
}
.iconButton.secondary {
  background: rgba(255,255,255,.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.pageSizeSelect {
  margin-top: 14px;
  min-height: 40px;
  color: #27306b;
}
.searchInput {
  margin-top: 14px;
  min-height: 42px;
}
select.searchInput {
  background: rgba(255,255,255,.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
}
select.searchInput:focus {
  background: rgba(255,255,255,.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232157f3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.adminFilters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.adminFilters .searchInput {
  margin-top: 0;
}
.exportPanel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.exportHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.exportFields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  margin-top: 10px;
}
.exportCheck {
  min-height: 34px;
  margin: 0 !important;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(255,255,255,.90);
}
.exportCheck span {
  color: #27306b;
}
.createUserForm,
.existingUsersPanel {
  min-width: 0;
}
.createUserForm label:first-child {
  margin-top: 0;
}
.createUserForm #createUserBtn {
  margin-top: 16px;
}
.existingUsersPanel {
  display: flex;
  flex-direction: column;
}
.userListHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.userList {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: none;
}
.userList::-webkit-scrollbar {
  display: none;
}
.userCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(255,255,255,.94);
  color: #1f2445;
}
.userEditCard {
  display: block;
}
.userEditHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.userCard strong,
.userCard span {
  display: block;
  overflow-wrap: anywhere;
}
.userCard strong {
  font-size: 15px;
}
.editableUserName {
  display: flex;
  align-items: center;
  gap: 6px;
}
.editNameBtn {
  position: relative;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 50%;
  background: #eaf3ff;
  color: #175cd3;
  box-shadow: none;
}
.editNameBtn::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  width: 11px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  transform: rotate(-35deg);
}
.editNameBtn::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(-35deg);
}
.editUsername {
  min-height: 34px;
  margin-bottom: 5px;
  padding: 8px 10px;
  border-color: #dfe3f0;
  background: #fff;
}
.userCard div > span {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}
.userEditCard label {
  margin: 8px 0 5px;
  color: #384066;
  font-size: 12px;
}
.userEditCard select,
.userEditCard input {
  min-height: 38px;
  padding: 9px 10px;
  border-color: #dfe3f0;
  background: #fff;
}
.inlineCheck {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px !important;
}
.inlineCheck input {
  width: 16px;
  min-height: 16px;
  flex: 0 0 auto;
}
.inlineCheck span {
  color: #384066;
  font-size: 12px;
  font-weight: 800;
}
.phoneOption {
  margin-top: 10px !important;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
}
.phoneOption span {
  color: rgba(255,255,255,.92);
}
.userEditActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.userEditActions .iconButton {
  width: 100%;
  min-width: 0;
}
.userEditActions .saveUserBtn {
  background: #dcfae6;
  color: #067647;
}
.userEditActions .deleteUserBtn {
  background: #ffe4e8;
  color: #b42318;
  box-shadow: inset 0 0 0 1px #ffc5cc;
}
.userBadges {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}
.roleBadge {
  padding: 5px 8px;
  border-radius: 999px;
  background: #ebf8f0;
  color: #087443;
  font-size: 11px;
  font-weight: 900;
}
.roleBadge.adminRole {
  background: #f1edff;
  color: #5b21b6;
}
.roleBadge.supervisaoRole {
  background: #fff7ed;
  color: #c2410c;
}
.userNomeText {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
}
.roleBadge.pendingRole {
  background: #fff7e6;
  color: #9a5b00;
}
.logList {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  min-width: 0;
}
.compactLogList {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: none;
  flex: 0 0 auto;
}
.compactLogList::-webkit-scrollbar {
  display: none;
}
.miniLogCard .logPhone {
  font-size: 16px;
}
.miniLogCard {
  padding: 11px 13px;
  min-height: 96px;
}
.miniLogCard .logMsg {
  display: block;
  overflow: visible;
}
.logCard {
  padding: 13px;
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  color: #1f2445;
  box-shadow: 0 4px 14px rgba(18,21,64,.1);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.logTop,
.logMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.logTop { flex-wrap: wrap; }
.logPhone {
  font-size: 17px;
  font-weight: 900;
  min-width: 0;
  overflow-wrap: anywhere;
}

.logProtocol {
  align-items: center;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 9px;
  color: #3730a3;
  display: flex;
  font-size: 0.76rem;
  justify-content: space-between;
  margin: 5px 0 8px;
  padding: 6px 9px;
}
.logProtocol strong {
  font-size: 0.82rem;
  letter-spacing: 0.035em;
}
.protocolModalCard {
  text-align: center;
}
.protocolModalValue {
  background: #eef2ff;
  border: 2px dashed #6366f1;
  border-radius: 14px;
  color: #3730a3;
  display: block;
  font-size: clamp(1.15rem, 5vw, 1.65rem);
  letter-spacing: 0.04em;
  margin: 18px 0;
  padding: 16px 10px;
  user-select: all;
}
.badge {
  flex: 0 0 auto;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ebf8f0;
  color: #087443;
  font-size: 11px;
  font-weight: 900;
}
.badge.error {
  background: #fff1f3;
  color: #b42318;
}
.badge.info {
  background: #eaf3ff;
  color: #175cd3;
}
.requiredMark {
  color: #f87171;
  font-weight: 900;
  margin-left: 2px;
}
#motivo {
  border-color: rgba(114,231,255,.35);
  background: rgba(255,255,255,.96);
  font-weight: 700;
  color: #163adf;
}
#motivo:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33,87,243,.18);
}
#motivo option[value=""] {
  color: #8f94ba;
  font-weight: 400;
}
.obsCounter {
  font-size: 11px;
  font-weight: 600;
  color: #8f94ba;
  float: right;
  margin-top: 2px;
}
.obsCounter.obsCounterWarn { color: #f87171; }
.obsCounter.obsCounterOk  { color: #4ade80; }
.logMotivo,
.logMotivoEmpty {
  margin-top: 6px;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
}
.logMotivo {
  background: rgba(114,231,255,.18);
  color: #1a7fa8;
  border: 1px solid rgba(114,231,255,.3);
}
.logMotivoEmpty {
  background: rgba(0,0,0,.05);
  color: #9ca3af;
  border: 1px solid rgba(0,0,0,.08);
  font-style: italic;
}
.logMeta,
.logMsg,
.logObs {
  margin-top: 0;
  color: #3d4466;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.logMeta {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 4px;
}
.logMsg,
.logObs { color: #424a75; }
.logObs {
  padding-top: 8px;
  border-top: 1px solid #eef0f7;
}
.pagination {
  display: grid;
  grid-template-columns: minmax(92px, auto) 1fr minmax(92px, auto);
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  margin-top: 14px;
}
.pagination span {
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}
.pagination button:first-child {
  justify-self: start;
}
.pagination button:last-child {
  justify-self: end;
}
.result {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: auto;
  min-width: min(480px, calc(100% - 36px));
  max-width: min(620px, calc(100% - 36px));
  z-index: 5;
  margin: 0;
  padding: 8px 34px 8px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  color: #27306b;
  line-height: 1.2;
  white-space: normal;
  box-shadow: 0 -8px 28px rgba(19,19,52,.18);
  opacity: 1;
  transform: translate(-50%, 0);
  transition: opacity .55s ease, transform .55s ease;
}
.closeResultBtn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.62);
  color: inherit;
  box-shadow: none;
  line-height: 1;
}
.result.fadeOut {
  opacity: 0;
  transform: translate(-50%, 8px);
}
.result.error { background: var(--danger); color: #9f1239; }
.result.success { background: var(--success); color: #067647; }
.modalOverlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11,14,45,.46);
  backdrop-filter: blur(8px);
}
.confirmModal {
  width: min(440px, 100%);
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  color: #1f2445;
  box-shadow: 0 24px 60px rgba(8,10,40,.28);
}
.confirmModal .sectionTitle h2 {
  color: #1f2445;
}
.confirmBlock {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #f4f6ff;
}
.confirmBlock span {
  display: block;
  margin-bottom: 7px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.confirmBlock strong {
  color: #1f2445;
  overflow-wrap: anywhere;
}
.confirmPhones {
  display: grid;
  gap: 8px;
}
.confirmPhones strong {
  display: block;
  padding: 9px 10px;
  border-radius: 11px;
  background: #eaf3ff;
  color: #175cd3;
}
.confirmActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.confirmActions .iconButton {
  width: 100%;
  background: #dcfae6;
  color: #067647;
}
.confirmActions .iconButton.secondary {
  background: #ffe4e8;
  color: #b42318;
  box-shadow: inset 0 0 0 1px #ffc5cc;
}
.hidden { display: none !important; }

@media (min-width: 900px) {
  .phone:not(.tabletMode) { transform: scale(1.02); }
}
@media (min-width: 760px) {
  .phone.loginTabletMode:not(.tabletMode) {
    width: min(760px, 94vw);
    height: min(620px, calc(100vh - 32px));
    min-height: 560px;
    transform: none;
  }
  .phone.loginTabletMode:not(.tabletMode) .screen {
    display: grid;
    place-items: center;
    border-radius: 24px;
  }
  .phone.loginTabletMode:not(.tabletMode) .rotateLoginBtn {
    top: 14px;
    right: 16px;
  }
  .phone.loginTabletMode:not(.tabletMode) .loginView {
    width: min(520px, 88%);
    min-height: 0;
    padding: 0;
    align-items: center;
    text-align: center;
  }
  .phone.loginTabletMode:not(.tabletMode) .brandMark {
    margin-left: auto;
    margin-right: auto;
  }
  .phone.loginTabletMode:not(.tabletMode) .tiltedCard {
    width: 100%;
  }
}
@media (min-width: 760px) {
  .phone.tabletMode {
    width: min(1060px, 96vw);
    height: min(780px, calc(100vh - 32px));
    min-height: 680px;
    border-radius: 34px;
    transform: none;
  }
  .phone.tabletMode .screen {
    border-radius: 24px;
    padding: 22px;
  }
  .phone.tabletMode .appView {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .phone.tabletMode .appView.logsView {
    display: block;
  }
  .phone.tabletMode .appHeader {
    grid-column: 1 / -1;
  }
  .phone.tabletMode .adminPanel {
    grid-column: 1 / -1;
    margin-top: 16px;
  }
  .phone.tabletMode .userCreatePanel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 12px 16px;
    align-items: start;
    width: min(820px, 100%);
    min-height: 560px;
    padding: 16px;
    justify-self: center;
  }
  .phone.tabletMode .userCreatePanel > .sectionHeader {
    grid-column: 1 / -1;
  }
  .phone.tabletMode .userCreatePanel .userListHeader {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .phone.tabletMode .userList {
    max-height: 410px;
  }
  .phone.tabletMode .logsView .adminPanel {
    max-height: none;
    min-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
  }
  .phone.tabletMode .logsView .adminPanel::-webkit-scrollbar { width: 4px; }
  .phone.tabletMode .logsView .adminPanel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.2);
    border-radius: 4px;
  }
  .phone.tabletMode .logsView .logList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
  .phone.tabletMode .logsView .logCard {
    padding: 10px 12px;
  }
  .phone.tabletMode .logsView .logPhone {
    font-size: 15px;
  }
  .phone.tabletMode .logsView .exportFields {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .phone.tabletMode .logList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .phone.tabletMode .compactLogList {
    grid-template-columns: 1fr;
    max-height: 380px;
  }
  .phone.tabletMode #blacklistBox {
    position: sticky;
    top: 0;
  }
  .phone.tabletMode .pagination {
    grid-template-columns: minmax(92px, auto) 1fr minmax(92px, auto);
  }
  .phone.tabletMode .pagination span {
    justify-self: center;
  }
}
.dot.green {
  background: #58f2b4;
  box-shadow: 0 0 0 6px rgba(88,242,180,.12);
}
.usersStatusHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.usersStatusList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.userStatusCard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .3s;
}
.userStatusDot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background .4s, box-shadow .4s;
}
.userStatusDot.online {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.22);
}
.userStatusDot.offline {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.18);
}
.userStatusName {
  color: var(--paper);
}
#userLogsBody.logList {
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
#userLogsBody.logList::-webkit-scrollbar {
  width: 4px;
}
#userLogsBody.logList::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.15);
  border-radius: 4px;
}
.phone.tabletMode #userLogsBody.logList {
  max-height: 420px;
}
@media (max-width: 430px) {
  .shell { padding: 0; }
  .phone {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    padding: 0;
  }
  .phoneSpeaker { display: none; }
  .screen {
    height: 100%;
    border-radius: 0;
    padding: 16px;
    overflow-y: auto;
  }
  .phone.tabletMode {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }
}
