.see-sr-only,
.see-a11y-widget .see-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.see-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1200;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--see-a11y-focus-ring, #005fcc);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--see-a11y-skip-text, #ffffff);
  background: var(--see-a11y-skip-bg, #1f2933);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
  transition: transform 150ms ease;
}

.see-skip-link:focus,
.see-skip-link:focus-visible {
  outline: 0;
  transform: translateY(0);
}

:root {
  --see-a11y-text-scale: 1;
  --see-a11y-readable-font-size: 1em;
  --see-a11y-bottom-buffer: 0px;
  --see-a11y-focus-ring: #005fcc;
  --see-a11y-focus-shadow: rgba(0, 95, 204, 0.22);
  --see-a11y-panel-bg: var(--see-surface, #ffffff);
  --see-a11y-panel-text: var(--see-text, #1f2933);
  --see-a11y-panel-muted: var(--see-muted, #6b7785);
  --see-a11y-panel-border: var(--see-line, #d8e0e4);
  --see-a11y-trigger-bg: #263238;
  --see-a11y-trigger-text: #ffffff;
}

:root[data-see-a11y-text="large"] {
  --see-a11y-text-scale: 1.08;
  --see-a11y-readable-font-size: 1.0625rem;
  --see-a11y-bottom-buffer: 36px;
}

:root[data-see-a11y-text="larger"] {
  --see-a11y-text-scale: 1.16;
  --see-a11y-readable-font-size: 1.125rem;
  --see-a11y-bottom-buffer: 64px;
}

#see-app {
  font-size: var(--see-a11y-readable-font-size);
}

:root[data-see-a11y-text="large"] #see-app :where(
  a,
  button,
  input,
  label,
  li,
  p,
  select,
  summary,
  table,
  textarea,
  td,
  th
),
:root[data-see-a11y-text="larger"] #see-app :where(
  a,
  button,
  input,
  label,
  li,
  p,
  select,
  summary,
  table,
  textarea,
  td,
  th
) {
  font-size: max(1em, var(--see-a11y-readable-font-size)) !important;
}

:root[data-see-a11y-text="large"] #see-app :where(p, li, label, td, th),
:root[data-see-a11y-text="larger"] #see-app :where(p, li, label, td, th) {
  line-height: 1.45 !important;
}

:root[data-see-a11y-text="large"] #see-app .see-shell-main,
:root[data-see-a11y-text="larger"] #see-app .see-shell-main {
  padding-bottom: calc(22px + var(--see-a11y-bottom-buffer)) !important;
  scroll-padding-bottom: var(--see-a11y-bottom-buffer);
}

:root[data-see-a11y-text="large"] #see-app :where(.see-route-panel, .see-shell-view),
:root[data-see-a11y-text="larger"] #see-app :where(.see-route-panel, .see-shell-view) {
  scroll-padding-bottom: var(--see-a11y-bottom-buffer);
}

body[data-see-a11y-surface="tell-us"] {
  --see-a11y-panel-bg: var(--tu-solid-surface-bg, #ffffff);
  --see-a11y-panel-text: var(--tu-form-text, #242424);
  --see-a11y-panel-muted: var(--tu-muted, #647184);
  --see-a11y-panel-border: var(--tu-border, #d8dee8);
  --see-a11y-trigger-bg: var(--tu-button-bg, #52525b);
  --see-a11y-trigger-text: var(--tu-button-text, #ffffff);
  --see-a11y-focus-ring: var(--tu-focus, #3f65f5);
  --see-a11y-focus-shadow: color-mix(in srgb, var(--tu-focus, #3f65f5) 24%, transparent);
  --see-a11y-skip-bg: var(--tu-primary, #3f3f46);
  --see-a11y-skip-text: var(--tu-primary-text, #ffffff);
  font-size: var(--see-a11y-readable-font-size);
}

:root[data-see-a11y-text="large"] body[data-see-a11y-surface="tell-us"] :where(
  a,
  button,
  input,
  label,
  legend,
  li,
  p,
  select,
  summary,
  table,
  textarea,
  td,
  th
),
:root[data-see-a11y-text="larger"] body[data-see-a11y-surface="tell-us"] :where(
  a,
  button,
  input,
  label,
  legend,
  li,
  p,
  select,
  summary,
  table,
  textarea,
  td,
  th
) {
  font-size: max(1em, var(--see-a11y-readable-font-size)) !important;
}

:root[data-see-a11y-text="large"] body[data-see-a11y-surface="tell-us"] :where(main, section[id]),
:root[data-see-a11y-text="larger"] body[data-see-a11y-surface="tell-us"] :where(main, section[id]) {
  scroll-padding-bottom: var(--see-a11y-bottom-buffer);
}

:root[data-see-a11y-contrast="high"] body[data-see-a11y-surface="tell-us"] {
  --tu-page-bg: #ffffff;
  --tu-solid-surface-bg: #ffffff;
  --tu-surface-bg: #ffffff;
  --tu-form-bg: #ffffff;
  --tu-form-text: #071013;
  --tu-heading-text: #071013;
  --tu-contrast-text: #071013;
  --tu-muted: #24343d;
  --tu-border: #23323a;
  --tu-input-bg: #ffffff;
  --tu-input-text: #071013;
  --tu-input-border: #23323a;
  --tu-navigation-bg: #071013;
  --tu-navigation-text: #ffffff;
  --tu-header-bar: #071013;
  --tu-button-bg: #071013;
  --tu-button-text: #ffffff;
  --tu-quiet-button-bg: #ffffff;
  --tu-quiet-button-text: #071013;
  --tu-link-text: #003fb8;
  --tu-focus: #ffbf00;
  --see-a11y-focus-ring: #ffbf00;
  --see-a11y-focus-shadow: rgba(255, 191, 0, 0.36);
}

:root[data-see-a11y-focus="strong"] :where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [role="button"],
  [role="link"],
  [role="menuitem"],
  [role="tab"],
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid var(--see-a11y-focus-ring) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px var(--see-a11y-focus-shadow) !important;
}

:root[data-see-a11y-links="underline"] :where(a, [role="link"]) {
  text-decoration: underline !important;
  text-decoration-thickness: max(1px, 0.08em) !important;
  text-underline-offset: 0.2em !important;
}

:root[data-see-a11y-spacing="relaxed"] :where(
  p,
  li,
  label,
  input,
  select,
  textarea,
  button,
  td,
  th
) {
  line-height: 1.55 !important;
}

:root[data-see-a11y-spacing="relaxed"] :where(p, li, label, td, th) {
  letter-spacing: 0.01em;
  word-spacing: 0.04em;
}

:root[data-see-a11y-motion="reduce"] *,
:root[data-see-a11y-motion="reduce"] *::before,
:root[data-see-a11y-motion="reduce"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

:root[data-see-a11y-contrast="high"] {
  --see-shell: #f7fafc;
  --see-shell-2: #eef4f6;
  --see-shell-text: #071013;
  --see-shell-muted: #24343d;
  --see-shell-border: rgba(7, 16, 19, 0.42);
  --see-shell-active: rgba(0, 76, 168, 0.15);
  --see-shell-card: #ffffff;
  --see-shell-control: #ffffff;
  --see-bg: #ffffff;
  --see-surface: #ffffff;
  --see-surface-alt: #f1f5f7;
  --see-control-bg: #ffffff;
  --see-control-text: #071013;
  --see-control-border: #23323a;
  --see-line: #2f3f48;
  --see-text: #071013;
  --see-muted: #24343d;
  --see-soc: #9f4d00;
  --see-env: #006d2c;
  --see-eco: #003fb8;
  --see-review: #004cbd;
  --see-draft: #7a5a00;
  --see-approved: #006d2c;
  --see-danger: #a40019;
  --see-a11y-focus-ring: #ffbf00;
  --see-a11y-focus-shadow: rgba(255, 191, 0, 0.36);
  --see-a11y-trigger-bg: #071013;
  --see-a11y-trigger-text: #ffffff;
}

:root[data-see-theme="dark"][data-see-a11y-contrast="high"] {
  --see-shell: #000000;
  --see-shell-2: #101820;
  --see-shell-text: #ffffff;
  --see-shell-muted: #eaf2f8;
  --see-shell-border: rgba(255, 255, 255, 0.46);
  --see-shell-active: rgba(255, 191, 0, 0.2);
  --see-shell-card: #101820;
  --see-shell-control: #101820;
  --see-bg: #000000;
  --see-surface: #06090c;
  --see-surface-alt: #101820;
  --see-control-bg: #101820;
  --see-control-text: #ffffff;
  --see-control-border: #ffffff;
  --see-line: #d8e0e4;
  --see-text: #ffffff;
  --see-muted: #d8e0e4;
  --see-soc: #ffb15c;
  --see-env: #65f08a;
  --see-eco: #8fb2ff;
  --see-review: #8fcfff;
  --see-draft: #ffe071;
  --see-approved: #65f08a;
  --see-danger: #ff8a9a;
  --see-a11y-focus-ring: #ffbf00;
  --see-a11y-focus-shadow: rgba(255, 191, 0, 0.4);
  --see-a11y-trigger-bg: #ffbf00;
  --see-a11y-trigger-text: #000000;
}

.see-a11y-widget {
  position: fixed;
  left: var(--see-a11y-x, 18px);
  top: var(--see-a11y-y, calc(100vh - 70px));
  z-index: 1100;
  color: var(--see-a11y-panel-text);
  font-size: 14px;
  line-height: 1.35;
}

.see-a11y-trigger {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--see-a11y-trigger-text) 28%, transparent);
  border-radius: 50%;
  padding: 0;
  color: var(--see-a11y-trigger-text);
  background: var(--see-a11y-trigger-bg);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
  touch-action: none;
}

.see-a11y-trigger:hover,
.see-a11y-trigger[aria-expanded="true"] {
  transform: translateY(-1px);
}

.see-a11y-trigger svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.see-a11y-panel {
  position: absolute;
  width: min(300px, calc(100vw - 24px));
  max-height: calc(var(--see-a11y-panel-max-height, 100vh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--see-a11y-panel-border);
  border-radius: 8px;
  color: var(--see-a11y-panel-text);
  background: color-mix(in srgb, var(--see-a11y-panel-bg) 98%, transparent);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
}

.see-a11y-panel[hidden] {
  display: none !important;
}

.see-a11y-widget[data-see-a11y-horizontal="right"] .see-a11y-panel {
  left: 0;
}

.see-a11y-widget[data-see-a11y-horizontal="left"] .see-a11y-panel {
  right: 0;
}

.see-a11y-widget[data-see-a11y-vertical="above"] .see-a11y-panel {
  bottom: calc(100% + 10px);
}

.see-a11y-widget[data-see-a11y-vertical="below"] .see-a11y-panel {
  top: calc(100% + 10px);
}

.see-a11y-panel-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--see-a11y-panel-border);
  background: var(--see-a11y-panel-bg);
}

.see-a11y-panel-head h2 {
  margin: 0;
  color: var(--see-a11y-panel-text);
  font-size: 16px;
  line-height: 1.2;
}

.see-a11y-control,
.see-a11y-switches {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.see-a11y-control + .see-a11y-control,
.see-a11y-switches + .see-a11y-control {
  border-top: 1px solid color-mix(in srgb, var(--see-a11y-panel-border) 72%, transparent);
}

.see-a11y-label {
  color: var(--see-a11y-panel-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.see-a11y-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--see-a11y-panel-border);
  border-radius: 8px;
  background: var(--see-surface-alt, #f5f7f8);
}

.see-a11y-segmented button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: var(--see-a11y-panel-muted);
  background: transparent;
  font-weight: 900;
}

.see-a11y-segmented button.is-active {
  color: #ffffff;
  background: var(--see-review, #4d86e8);
}

.see-a11y-switches {
  gap: 6px;
}

.see-a11y-switch {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--see-a11y-panel-border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--see-a11y-panel-text);
  background: var(--see-a11y-panel-bg);
  font-weight: 800;
}

.see-a11y-switch input {
  order: 2;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--see-review, #4d86e8);
}

.see-a11y-switch span {
  min-width: 0;
}

.see-a11y-position-grid {
  width: 132px;
  display: grid;
  grid-template-columns: repeat(3, 40px);
  gap: 6px;
  justify-content: start;
}

.see-a11y-icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--see-a11y-panel-border);
  border-radius: 8px;
  padding: 0;
  color: var(--see-a11y-panel-text);
  background: var(--see-a11y-panel-bg);
}

.see-a11y-icon-button:hover {
  background: var(--see-surface-alt, #f5f7f8);
}

.see-a11y-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.see-a11y-reset {
  position: sticky;
  bottom: 0;
  z-index: 1;
  width: 100%;
  min-height: 42px;
  margin: 0;
  border: 1px solid var(--see-a11y-panel-border);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 0 8px 8px;
  color: var(--see-a11y-panel-text);
  background: var(--see-surface-alt, #f5f7f8);
  font-weight: 900;
}

body.see-a11y-is-dragging {
  cursor: grabbing;
  user-select: none;
}

body.see-a11y-is-dragging .see-a11y-trigger {
  cursor: grabbing;
}

.see-a11y-widget.is-cueing .see-a11y-trigger {
  animation: see-a11y-shortcut-cue 820ms ease-out;
}

@keyframes see-a11y-shortcut-cue {
  0% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
  }

  34% {
    transform: scale(1.08);
    box-shadow:
      0 0 0 8px color-mix(in srgb, var(--see-a11y-focus-ring) 42%, transparent),
      0 16px 34px rgba(15, 23, 42, 0.28);
  }

  68% {
    transform: scale(1.02);
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--see-a11y-focus-ring) 28%, transparent),
      0 12px 28px rgba(15, 23, 42, 0.24);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
  }
}

:root[data-see-a11y-motion="reduce"] .see-a11y-widget.is-cueing .see-a11y-trigger {
  animation: none;
  outline: 4px solid var(--see-a11y-focus-ring);
  outline-offset: 4px;
}

@media (max-width: 520px) {
  .see-a11y-widget {
    font-size: 13px;
  }

  .see-a11y-panel {
    width: min(286px, calc(100vw - 20px));
    max-height: var(--see-a11y-panel-max-height, calc(100vh - 20px));
  }
}
