/*
 * Desktop control layer
 * The map stays quiet by default. Controls live in one retractable instrument
 * drawer, while panels can be placed where they make sense to the visitor.
 */
@media (min-width: 821px) {
  html:not(.mobile-layout) body,
  html:not(.mobile-layout) button,
  html:not(.mobile-layout) input,
  html:not(.mobile-layout) select,
  html:not(.mobile-layout) textarea {
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-optical-sizing: auto;
  }

  html:not(.mobile-layout) body {
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: .005em;
  }

  html:not(.mobile-layout) .kicker {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .12em;
  }

  html:not(.mobile-layout) .brand-wordmark strong {
    font-size: 18px;
    letter-spacing: -.025em;
  }

  html:not(.mobile-layout) .brand-wordmark small {
    font-size: 11px;
    letter-spacing: .06em;
  }

  html:not(.mobile-layout) .command-bar,
  html:not(.mobile-layout) .map-tools {
    display: none;
  }

  html:not(.mobile-layout) .topbar {
    right: auto;
    width: auto;
  }

  html:not(.mobile-layout) .brand {
    min-width: 226px;
  }

  html:not(.mobile-layout) .stats {
    z-index: 645;
  }

  html:not(.mobile-layout) .stats.collapsed {
    top: 94px;
    width: 270px;
    min-height: 68px;
    padding: 16px 17px;
    border-radius: 18px;
  }

  html:not(.mobile-layout) .stats.collapsed .panel-summary {
    font-size: 14px;
    line-height: 1.25;
  }

  html:not(.mobile-layout) .stats.collapsed .panel-summary strong {
    font-size: 24px;
    font-weight: 720;
    letter-spacing: -.035em;
  }

  html:not(.mobile-layout) .stats.collapsed .collapse-button {
    width: 38px;
    height: 38px;
  }

  html:not(.mobile-layout) .stat-main > div > span,
  html:not(.mobile-layout) .live-note,
  html:not(.mobile-layout) .stat-grid strong,
  html:not(.mobile-layout) .source-row strong {
    font-size: 12px;
  }

  html:not(.mobile-layout) .stat-grid span,
  html:not(.mobile-layout) .source-row span {
    font-size: 10px;
    letter-spacing: .045em;
  }

  html:not(.mobile-layout) .timeline-heading strong {
    font-size: 18px;
  }

  html:not(.mobile-layout) .timeline {
    z-index: 640;
  }

  html:not(.mobile-layout) .desktop-draggable {
    touch-action: none;
  }

  html:not(.mobile-layout) .desktop-drag-handle {
    cursor: grab;
  }

  html:not(.mobile-layout) .desktop-dragging,
  html:not(.mobile-layout) .desktop-dragging .desktop-drag-handle {
    cursor: grabbing;
    user-select: none;
  }

  html:not(.mobile-layout) .desktop-dragging {
    z-index: 760 !important;
    transition: none !important;
  }

  html:not(.mobile-layout) .desktop-panel-minimize {
    position: absolute;
    z-index: 5;
    top: 10px;
    right: 49px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--obs-border);
    border-radius: 11px;
    background: var(--obs-control);
    color: var(--obs-ink);
    font-size: 21px;
    font-weight: 700;
    cursor: pointer;
  }

  html:not(.mobile-layout) .desktop-panel-minimize:hover {
    border-color: var(--obs-border-strong);
    color: var(--obs-accent);
  }

  html:not(.mobile-layout) .desktop-minimized {
    width: 280px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    padding: 18px !important;
    overflow: hidden !important;
  }

  html:not(.mobile-layout) .desktop-minimized > :not(.kicker):not(.detail-close):not(.desktop-panel-minimize) {
    display: none !important;
  }

  html:not(.mobile-layout) .leaflet-control-attribution.lightningfront-attribution {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0 !important;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--obs-border) !important;
    border-radius: 13px !important;
    background: var(--obs-surface-solid) !important;
    box-shadow: var(--obs-shadow-soft);
    color: transparent !important;
    font-size: 0 !important;
    white-space: nowrap;
    transition: width .18s ease, height .18s ease, padding .18s ease;
  }

  html:not(.mobile-layout) .leaflet-control-attribution.lightningfront-attribution::before {
    content: "i";
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: var(--obs-accent);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
  }

  html:not(.mobile-layout) .leaflet-control-attribution.lightningfront-attribution.expanded {
    width: min(520px, calc(100vw - 100px));
    height: auto;
    min-height: 42px;
    padding: 11px 14px !important;
    display: block;
    color: var(--obs-muted) !important;
    font-size: 11px !important;
    white-space: normal;
  }

  html:not(.mobile-layout) .leaflet-control-attribution.lightningfront-attribution.expanded::before {
    content: "×";
    float: right;
    border: 0;
    font-size: 20px;
  }

  html:not(.mobile-layout) .leaflet-control-attribution.lightningfront-attribution:not(.expanded) a {
    display: none;
  }

  html:not(.mobile-layout) .leaflet-bottom.leaflet-right {
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  html:not(.mobile-layout) .leaflet-bottom.leaflet-right .leaflet-control {
    float: none;
    margin: 0;
  }

  html:not(.mobile-layout) .leaflet-control-attribution.lightningfront-attribution {
    order: 1;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    box-sizing: border-box;
  }

  html:not(.mobile-layout) .leaflet-control-zoom {
    order: 2;
    width: 46px;
    margin: 0 !important;
    border-radius: 14px !important;
  }

  html:not(.mobile-layout) .leaflet-control-zoom a,
  html:not(.mobile-layout) body[data-map-style="light"] .leaflet-control-zoom a {
    width: 46px !important;
    min-width: 46px;
    height: 46px !important;
    min-height: 46px;
    box-sizing: border-box;
    display: grid !important;
    place-items: center;
    padding: 0 !important;
    font-size: 25px !important;
    font-weight: 450 !important;
    line-height: 1 !important;
    text-indent: 0;
  }

  html:not(.mobile-layout) .leaflet-control-zoom-in {
    border-radius: 13px 13px 0 0 !important;
  }

  html:not(.mobile-layout) .leaflet-control-zoom-out {
    border-radius: 0 0 13px 13px !important;
  }
}

.desktop-drawer,
.desktop-drawer-handle {
  display: none;
}

@media (min-width: 821px) {
  html:not(.mobile-layout) .desktop-drawer-handle {
    position: absolute;
    z-index: 891;
    top: 50%;
    right: 0;
    width: 58px;
    min-height: 126px;
    padding: 13px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow: hidden;
    border: 1px solid var(--obs-border-strong);
    border-right: 0;
    border-radius: 20px 0 0 20px;
    background: var(--obs-surface);
    color: var(--obs-ink);
    box-shadow: var(--obs-shadow-soft);
    backdrop-filter: blur(22px) saturate(1.12);
    -webkit-backdrop-filter: blur(22px) saturate(1.12);
    transform: translateY(-50%);
    transition: right .32s cubic-bezier(.2, .78, .2, 1), background .2s ease;
    cursor: pointer;
  }

  html:not(.mobile-layout) .desktop-drawer-handle::before {
    content: "";
    position: absolute;
    top: 17px;
    bottom: 17px;
    left: 4px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(var(--obs-accent-bright), var(--obs-accent));
  }

  html:not(.mobile-layout) .desktop-drawer-handle > span {
    width: 18px;
    height: 3px;
    border-radius: 99px;
    background: var(--obs-border-strong);
    box-shadow: 0 6px var(--obs-border-strong), 0 -6px var(--obs-border-strong);
  }

  html:not(.mobile-layout) .desktop-drawer-handle .ui-icon {
    width: 22px;
    height: 22px;
    color: var(--obs-accent);
  }

  html:not(.mobile-layout) .desktop-drawer-handle strong {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  html:not(.mobile-layout) body.desktop-drawer-open .desktop-drawer-handle {
    right: min(404px, calc(100vw - 82px));
  }

  html:not(.mobile-layout) .desktop-drawer {
    position: absolute;
    z-index: 890;
    top: 14px;
    right: 14px;
    bottom: 14px;
    width: min(390px, calc(100vw - 96px));
    padding: 18px;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--obs-border);
    border-radius: 25px;
    background:
      radial-gradient(circle at 100% 0, var(--obs-accent-soft), transparent 26%),
      var(--obs-surface-solid);
    color: var(--obs-ink);
    box-shadow: 0 30px 90px rgba(23, 11, 5, .35);
    transform: translateX(calc(100% + 28px));
    transition: transform .32s cubic-bezier(.2, .78, .2, 1);
    scrollbar-color: var(--obs-border-strong) transparent;
  }

  html:not(.mobile-layout) body.desktop-drawer-open .desktop-drawer {
    transform: translateX(0);
  }

  .desktop-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .drawer-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
  }

  .drawer-brand img {
    width: 45px;
    height: 45px;
    border-radius: 13px;
    background: #101319;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  }

  .drawer-brand span {
    display: grid;
  }

  .drawer-brand strong {
    font-size: 18px;
    letter-spacing: -.025em;
  }

  .drawer-brand small {
    color: var(--obs-muted);
    font-size: 12px;
  }

  #desktop-drawer-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--obs-border);
    border-radius: 13px;
    background: var(--obs-control);
    color: var(--obs-ink);
    font-size: 25px;
    cursor: pointer;
  }

  .drawer-live-status {
    margin: 18px 0 8px;
    padding: 14px 15px;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--obs-border);
    border-radius: 16px;
    background: var(--obs-accent-soft);
  }

  .drawer-live-status > span:nth-child(2) {
    display: grid;
  }

  .drawer-live-status small {
    color: var(--obs-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
  }

  .drawer-live-status strong {
    font-size: 15px;
  }

  .drawer-live-status strong b {
    font-size: 21px;
  }

  .drawer-live-status em {
    color: var(--obs-muted);
    font-size: 11px;
    font-style: normal;
  }

  .drawer-section {
    padding: 18px 0;
    border-top: 1px solid var(--obs-border);
  }

  .drawer-section-heading {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .drawer-section-heading > span {
    color: var(--obs-accent);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
  }

  .drawer-section-heading > strong {
    flex: 1;
    font-size: 14px;
  }

  .drawer-section-heading > button {
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: var(--obs-accent);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .drawer-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .drawer-action-grid button {
    min-height: 54px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--obs-border);
    border-radius: 13px;
    background: var(--obs-control);
    color: var(--obs-ink);
    font-size: 13px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
  }

  .drawer-action-grid button:hover {
    border-color: var(--obs-border-strong);
    background: var(--obs-accent-soft);
  }

  .drawer-action-grid .ui-icon {
    width: 21px;
    height: 21px;
    color: var(--obs-accent);
  }

  .drawer-toggle-list {
    display: grid;
    gap: 5px;
  }

  .drawer-toggle-list label {
    min-height: 53px;
    padding: 8px 10px 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    cursor: pointer;
  }

  .drawer-toggle-list label:hover {
    border-color: var(--obs-border);
    background: var(--obs-card);
  }

  .drawer-toggle-list label > span {
    min-width: 0;
    flex: 1;
    display: grid;
  }

  .drawer-toggle-list label strong {
    font-size: 14px;
  }

  .drawer-toggle-list label small {
    margin-top: 2px;
    color: var(--obs-muted);
    font-size: 11px;
  }

  .drawer-toggle-list input,
  .privacy-custom-options input {
    width: 39px;
    height: 23px;
    flex: 0 0 auto;
    appearance: none;
    position: relative;
    border: 1px solid var(--obs-border);
    border-radius: 999px;
    background: var(--obs-control);
    transition: .18s ease;
    cursor: pointer;
  }

  .drawer-toggle-list input::after,
  .privacy-custom-options input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--obs-muted);
    transition: .18s ease;
  }

  .drawer-toggle-list input:checked,
  .privacy-custom-options input:checked {
    border-color: var(--obs-accent);
    background: var(--obs-accent);
  }

  .drawer-toggle-list input:checked::after,
  .privacy-custom-options input:checked::after {
    left: 19px;
    background: #fff;
  }

  .drawer-toggle-list input:disabled {
    opacity: .65;
    cursor: default;
  }

  .drawer-text-button {
    margin-top: 11px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--obs-border-strong);
    background: transparent;
    color: var(--obs-accent);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .drawer-link-list {
    display: grid;
  }

  .drawer-link-list > * {
    min-height: 47px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--obs-border);
    background: transparent;
    color: var(--obs-ink);
    font-size: 13px;
    font-weight: 620;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .drawer-link-list b {
    color: var(--obs-accent);
    font-size: 16px;
  }

  .drawer-privacy-summary p {
    margin: 0;
    color: var(--obs-muted);
    font-size: 12px;
    line-height: 1.5;
  }

  .drawer-privacy-link {
    margin-top: 10px;
    display: block;
    color: var(--obs-accent);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  .drawer-languages {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .drawer-languages a {
    width: 38px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--obs-border);
    border-radius: 10px;
    color: var(--obs-muted);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
  }

  .drawer-languages a[aria-current="true"] {
    border-color: var(--obs-border-strong);
    background: var(--obs-accent-soft);
    color: var(--obs-accent);
  }
}

.privacy-consent-dialog {
  width: min(890px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--obs-border);
  border-radius: 28px;
  background: var(--obs-surface-solid);
  color: var(--obs-ink);
  box-shadow: 0 38px 120px rgba(17, 7, 2, .48);
}

/*
 * Map workspace 52
 *
 * A calmer, map-first instrument layout inspired by the spatial hierarchy of
 * modern earth viewers. LightningFront keeps its own light/orange identity:
 * navigation lives on the left, map actions on the right and time at the
 * bottom. Existing panels and all underlying controls remain unchanged.
 */
@media (min-width: 821px) {
  html:not(.mobile-layout) .topbar {
    top: 18px;
    left: 18px;
    right: 18px;
    width: auto;
  }

  html:not(.mobile-layout) .brand {
    min-width: 218px;
    min-height: 56px;
    padding: 6px 15px 6px 7px;
    border-radius: 18px;
  }

  html:not(.mobile-layout) .brand-bolt {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }

  html:not(.mobile-layout) .command-bar {
    position: fixed;
    z-index: 680;
    top: 18px;
    right: 18px;
    min-height: 0;
    padding: 5px;
    display: grid;
    gap: 3px;
    border-radius: 18px;
  }

  html:not(.mobile-layout) .command-bar .connection,
  html:not(.mobile-layout) .command-bar .command-divider,
  html:not(.mobile-layout) .command-bar .station-button,
  html:not(.mobile-layout) .command-bar .map-language-menu {
    display: none;
  }

  html:not(.mobile-layout) .command-bar .header-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    border-radius: 13px;
  }

  html:not(.mobile-layout) .command-bar .header-button:hover {
    border-color: var(--obs-border-strong);
    background: var(--obs-accent-soft);
    color: var(--obs-accent);
    transform: none;
  }

  html:not(.mobile-layout) .command-bar .header-label {
    display: none;
  }

  html:not(.mobile-layout) .map-tools {
    z-index: 679;
    top: 262px;
    right: 18px;
    display: grid;
    gap: 3px;
    padding: 5px;
    border: 1px solid var(--obs-border);
    border-radius: 18px;
    background: var(--obs-surface);
    box-shadow: var(--obs-shadow-soft);
    backdrop-filter: blur(22px) saturate(1.12);
    -webkit-backdrop-filter: blur(22px) saturate(1.12);
  }

  html:not(.mobile-layout) .map-tools .refresh-button,
  html:not(.mobile-layout) .map-tools .layers-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 13px;
    background: transparent;
    box-shadow: none;
  }

  html:not(.mobile-layout) .map-tools .refresh-button:hover,
  html:not(.mobile-layout) .map-tools .layers-button:hover {
    background: var(--obs-accent-soft);
    transform: none;
  }

  html:not(.mobile-layout) .map-tools .refresh-button > span:last-child,
  html:not(.mobile-layout) .map-tools .layers-button > span:last-child {
    display: none;
  }

  html:not(.mobile-layout) .desktop-drawer-handle {
    top: 88px;
    right: auto;
    left: 18px;
    width: 168px;
    min-height: 48px;
    padding: 0 15px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 11px;
    border: 1px solid var(--obs-border-strong);
    border-radius: 16px;
    transform: none;
  }

  html:not(.mobile-layout) .desktop-drawer-handle::before {
    top: 9px;
    bottom: 9px;
    left: 4px;
  }

  html:not(.mobile-layout) .desktop-drawer-handle > span {
    width: 15px;
    flex: 0 0 15px;
  }

  html:not(.mobile-layout) .desktop-drawer-handle strong {
    font-size: 12px;
    letter-spacing: .01em;
    writing-mode: horizontal-tb;
    transform: none;
  }

  html:not(.mobile-layout) body.desktop-drawer-open .desktop-drawer-handle {
    right: auto;
    left: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
  }

  html:not(.mobile-layout) .desktop-drawer {
    top: 14px;
    right: auto;
    bottom: 14px;
    left: 14px;
    width: min(326px, calc(100vw - 82px));
    padding: 17px;
    border-radius: 23px;
    transform: translateX(calc(-100% - 28px));
  }

  html:not(.mobile-layout) body.desktop-drawer-open .desktop-drawer {
    transform: translateX(0);
  }

  html:not(.mobile-layout) .drawer-live-status {
    margin-top: 15px;
  }

  html:not(.mobile-layout) .drawer-section {
    padding: 15px 0;
  }

  html:not(.mobile-layout) .stats.collapsed {
    top: auto;
    bottom: 18px;
    left: 18px;
    width: 240px;
    min-height: 64px;
    padding: 13px 14px;
    border-radius: 18px;
  }

  html:not(.mobile-layout) .stats.collapsed .panel-summary strong {
    font-size: 22px;
  }

  html:not(.mobile-layout) .timeline {
    right: auto;
    bottom: 18px;
    left: 50%;
    width: min(470px, calc(100vw - 620px));
    min-width: 390px;
    border-radius: 20px;
    transform: translateX(-50%);
  }

  html:not(.mobile-layout) .timeline.collapsed {
    right: auto;
    left: 50%;
    width: 310px;
    min-width: 310px;
    transform: translateX(-50%);
  }

  html:not(.mobile-layout) .timeline:not(.collapsed) .timeline-mode {
    margin-top: 13px;
  }

  html:not(.mobile-layout) .layers-panel {
    top: 18px;
    right: 82px;
    max-height: calc(100vh - 36px);
  }

  html:not(.mobile-layout) .leaflet-bottom.leaflet-right {
    right: 18px;
    bottom: 18px;
  }

  @media (max-width: 1120px) {
    html:not(.mobile-layout) .timeline {
      width: 390px;
      min-width: 390px;
    }
  }
}

.privacy-consent-dialog::backdrop {
  background: rgba(18, 10, 6, .64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.privacy-dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
}

.privacy-dialog-intro,
.privacy-dialog-controls {
  padding: clamp(28px, 4vw, 46px);
}

.privacy-dialog-intro {
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 137, 72, .21), transparent 33%),
    #19120f;
  color: #fff8f1;
}

.privacy-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 25px;
  display: block;
}

.privacy-mark img {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
}

.privacy-dialog-intro h2 {
  max-width: 430px;
  margin: 10px 0 15px;
  color: #fff;
  font: 720 clamp(28px, 3vw, 40px)/1.08 "Inter", system-ui, sans-serif;
  letter-spacing: -.035em;
}

.privacy-dialog-intro > p:not(.kicker) {
  margin: 0;
  color: #d9c8bd;
  font-size: 15px;
  line-height: 1.58;
}

.privacy-dialog-intro ul {
  margin: 25px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.privacy-dialog-intro li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  color: #f5ebe4;
  font-size: 14px;
  line-height: 1.42;
}

.privacy-dialog-intro li span {
  color: #ff8b4a;
  font-weight: 800;
}

.privacy-dialog-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--obs-surface-solid);
}

.privacy-update-notice {
  margin-bottom: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  border: 1px solid color-mix(in srgb, var(--obs-accent) 36%, var(--obs-border));
  border-radius: 16px;
  background: var(--obs-accent-soft);
}

.privacy-update-notice[hidden] {
  display: none;
}

.privacy-update-notice > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--obs-accent);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.privacy-update-notice div {
  min-width: 0;
  display: grid;
}

.privacy-update-notice strong {
  font-size: 14px;
  line-height: 1.3;
}

.privacy-update-notice small {
  margin-top: 4px;
  color: var(--obs-muted);
  font-size: 11px;
  line-height: 1.45;
}

.privacy-customize-button {
  width: 100%;
  min-height: 66px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--obs-border);
  border-radius: 16px;
  background: var(--obs-control);
  color: var(--obs-ink);
  text-align: left;
  cursor: pointer;
}

.privacy-customize-button span {
  flex: 1;
  display: grid;
}

.privacy-customize-button strong {
  font-size: 15px;
}

.privacy-customize-button small {
  margin-top: 2px;
  color: var(--obs-muted);
  font-size: 12px;
}

.privacy-customize-button b {
  color: var(--obs-accent);
  font-size: 23px;
}

.privacy-custom-options {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.privacy-custom-options[hidden] {
  display: none;
}

.privacy-custom-options label {
  min-height: 83px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--obs-border);
  border-radius: 15px;
  background: var(--obs-card);
}

.privacy-custom-options label > span {
  min-width: 0;
  flex: 1;
  display: grid;
}

.privacy-custom-options strong {
  font-size: 14px;
}

.privacy-custom-options small {
  margin-top: 3px;
  color: var(--obs-muted);
  font-size: 11px;
  line-height: 1.4;
}

.privacy-dialog-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.privacy-dialog-actions > button {
  min-height: 48px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
}

.privacy-link-button {
  grid-column: 1 / -1;
  border: 0;
  background: transparent;
  color: var(--obs-accent);
}

.privacy-fineprint {
  margin: 15px 0 0;
  color: var(--obs-muted);
  font-size: 11px;
  line-height: 1.48;
}

.privacy-fineprint a {
  color: var(--obs-accent);
  font-weight: 700;
}

@media (max-width: 820px) {
  .privacy-consent-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
  }

  .privacy-dialog-layout {
    display: block;
  }

  .privacy-dialog-intro,
  .privacy-dialog-controls {
    padding: 24px 21px;
  }

  .privacy-dialog-intro h2 {
    font-size: 29px;
  }

  .privacy-mark {
    width: 50px;
    height: 50px;
    margin-bottom: 17px;
  }

  .privacy-dialog-actions {
    grid-template-columns: 1fr;
  }

  .privacy-link-button {
    grid-column: auto;
  }
}
