* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--soc-bg);
  color: var(--soc-text);
  font-family: var(--soc-font);
  font-size: var(--type-body-md-size, 14px);
  line-height: var(--type-body-md-line, 20px);
  font-weight: var(--type-body-md-weight, 400);
  overflow: hidden;
  overscroll-behavior: none;
}

html,
body,
.soc-app-shell {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
[contenteditable],
[contenteditable="true"],
[contenteditable="plaintext-only"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

@supports (height: 100svh) {
  html,
  body {
    min-height: 100svh;
    height: 100svh;
  }
}

body {
  background: var(--soc-bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin: 0;
}

a {
  color: var(--soc-link);
  text-decoration: none;
}

a:hover {
  color: var(--soc-link-hover);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--soc-input-border);
  border-radius: var(--soc-radius-sm);
  min-height: var(--ui-control-h-mobile, 44px);
  font-size: var(--type-body-md-size, 14px);
  line-height: var(--type-body-md-line, 20px);
  font-weight: var(--type-body-md-weight, 400);
  background: var(--soc-input-bg);
  color: var(--soc-text);
  padding: 10px 12px;
}

input::placeholder,
textarea::placeholder {
  color: var(--soc-placeholder);
  font-size: var(--type-body-md-size, 14px);
  line-height: var(--type-body-md-line, 20px);
  font-weight: var(--type-body-md-weight, 400);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--ui-focus-ring, 0 0 0 2px var(--soc-focus));
}

label {
  color: var(--soc-label);
  font-size: var(--type-label-sm-size, 12px);
  line-height: var(--type-label-sm-line, 16px);
  font-weight: var(--type-label-sm-weight, 600);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.help,
.meta {
  color: var(--soc-muted);
  font-size: var(--type-body-sm-size, 13px);
  line-height: var(--type-body-sm-line, 18px);
  font-weight: var(--type-body-sm-weight, 400);
}

.desc {
  white-space: pre-wrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--soc-table-bg);
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--soc-border);
  padding: 11px 12px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

th {
  color: var(--soc-table-head-text);
  font-size: var(--type-label-sm-size, 12px);
  line-height: var(--type-label-sm-line, 16px);
  font-weight: var(--type-label-sm-weight, 600);
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--soc-surface-2);
}

td {
  font-size: var(--type-body-sm-size, 13px);
  line-height: var(--type-body-sm-line, 18px);
  font-weight: var(--type-body-sm-weight, 400);
}

tbody tr:hover {
  background: var(--soc-table-row-hover);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--soc-scrollbar-thumb) var(--soc-scrollbar-track);
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--soc-scrollbar-thumb);
}

*::-webkit-scrollbar-track {
  background: var(--soc-scrollbar-track);
}

.ui-heavy-panel,
.ui-long-list {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.ui-contained {
  contain: content;
}

@media (min-width: 1024px) {
  input,
  select,
  textarea,
  button,
  .ds-btn {
    min-height: var(--ui-control-h-desktop, 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
