/* Direct-manipulation workspace and Nova widget sheets. No third-party runtime. */
.dashboard-workspace-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dashboard-workspace-actions .widget-primary,
.widget-primary {
  background: var(--purple) !important;
  color: #fff !important;
  border-color: transparent !important;
  font-weight: 650;
}
.dashboard-editbar[hidden] {
  display: none !important;
}
.dashboard-editbar {
  position: sticky;
  top: calc(var(--topbar) + 8px);
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin: 0 0 18px;
  border: 1px solid rgba(188, 156, 255, 0.45);
  border-radius: 16px;
  background: #191524;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}
.dashboard-editbar strong {
  font-size: 15px;
}
.dashboard-editbar p {
  max-width: 64ch;
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 0;
  color: var(--muted);
}
#widget-editor-status:empty {
  display: none;
}
#widget-editor-status {
  color: #d5b6ff;
}
.dashboard-edit-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.dashboard-edit-actions button,
.widget-dialog button,
.widget-options-dialog button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: rgba(157, 101, 248, 0.1);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.dashboard-edit-actions button:hover,
.widget-dialog button:hover,
.widget-options-dialog button:hover {
  background: rgba(157, 101, 248, 0.22);
}
.dashboard-edit-actions button:disabled,
.widget-options-dialog button:disabled {
  opacity: 0.4;
  cursor: default;
}
.dashboard-widget {
  position: relative;
  scroll-margin-top: 260px;
}
.widget-card-tools {
  position: absolute;
  right: 7px;
  top: 7px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.widget-card-tools button {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #ad9cbd;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.widget-drag-handle {
  touch-action: none !important;
  cursor: grab !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.widget-card-tools .widget-card-options {
  display: none;
  font-size: 17px;
  letter-spacing: 1px;
}
.dashboard-widget > .metric-card-head,
.dashboard-widget > .dg-sensor-card-head {
  padding-right: 32px;
}
.dashboard-widget .metric-card-head label,
.dashboard-widget .dg-sensor-card-head label {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.dashboard-widget.is-dragging {
  opacity: 0.28;
  outline: 2px dashed #c8a0ff;
  outline-offset: 1px;
}
.dashboard-widget-grid.is-editing {
  padding: 10px;
  border: 1px dashed rgba(190, 149, 255, 0.25);
  border-radius: 22px;
  background: radial-gradient(rgba(196, 162, 255, 0.16) 1px, transparent 1px) 0
    0/18px 18px;
}
.is-editing .dashboard-widget {
  border-color: rgba(190, 149, 255, 0.36) !important;
}
.is-editing .widget-card-tools {
  position: relative;
  right: auto;
  top: auto;
  justify-content: space-between;
  margin: -3px -3px 10px;
}
.is-editing .widget-card-tools button {
  min-width: 44px;
  min-height: 44px;
  border-color: var(--border-strong);
  background: rgba(164, 108, 255, 0.12);
}
.is-editing .widget-card-tools .widget-card-options {
  display: grid;
}
.is-editing .dashboard-widget > .metric-card-head,
.is-editing .dashboard-widget > .dg-sensor-card-head {
  padding-right: 0;
}
.widget-drag-handle[aria-pressed="true"] {
  background: var(--purple) !important;
  color: #fff;
  outline: 2px solid #e2c9ff;
}
.widget-is-dragging,
.widget-is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}
.widget-drag-ghost[hidden],
.widget-drop-marker[hidden] {
  display: none !important;
}
.widget-drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 220px;
  max-width: calc(100vw - 16px);
  padding: 14px;
  border: 1px solid #d2b2ff;
  border-radius: 16px;
  background: rgba(42, 31, 61, 0.97);
  box-shadow: 0 20px 60px #0009;
  pointer-events: none;
  will-change: transform;
}
.widget-drag-ghost img {
  width: 32px;
  height: 32px;
}
.widget-drag-ghost span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.widget-drag-ghost strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.widget-drag-ghost small {
  font-size: 11px;
  color: #d1b7ed;
}
.widget-drop-marker {
  position: fixed;
  z-index: 11;
  pointer-events: none;
  display: flex;
  align-items: start;
  justify-content: center;
  padding: 8px;
  border: 2px dashed #ceb0ff;
  border-radius: 17px;
  background: rgba(162, 98, 252, 0.1);
  color: #f4eaff;
  text-shadow: 0 1px 4px #000;
  font-size: 12px;
  font-weight: 650;
  box-sizing: border-box;
}
.widget-drop-marker[data-after="true"] {
  align-items: end;
}
.widget-drop-marker::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: -7px;
  height: 4px;
  border-radius: 4px;
  background: #c5a0ff;
  box-shadow: 0 0 12px #b079ff;
}
.widget-drop-marker[data-after="true"]::after {
  top: auto;
  bottom: -7px;
}
/* A visual library, not another list-based layout editor. */
html.widget-modal-open {
  overflow: hidden;
}
.widget-dialog {
  width: min(1100px, calc(100vw - 40px));
  max-width: 1100px;
  height: min(900px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(191, 151, 255, 0.3);
  border-radius: 24px;
  background: #14111d;
  color: var(--text);
  box-shadow: 0 30px 100px #0009;
}
.widget-dialog::backdrop,
.widget-options-dialog::backdrop {
  background: rgba(4, 3, 9, 0.78);
}
.widget-dialog [hidden] {
  display: none !important;
}
.dashboard-workspace-actions button,
.dashboard-edit-actions button,
.widget-dialog button,
.widget-options-dialog button {
  touch-action: manipulation;
}
.dashboard-workspace-actions button:active,
.widget-dialog button:active {
  filter: brightness(1.15);
}
.widget-dialog-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.widget-dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 18px;
  flex-shrink: 0;
}
.widget-dialog h2 {
  font-size: 27px;
  letter-spacing: -0.7px;
  margin: 5px 0 8px;
}
.widget-dialog header p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 65ch;
}
.widget-dialog #widget-close,
.widget-options-dialog header button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  font-size: 23px;
  background: rgba(255, 255, 255, 0.045);
}
.widget-library-filters {
  padding: 0 28px 16px;
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-width: 0;
}
.widget-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0 14px;
  background: #0e0c15;
  color: var(--muted);
}
.widget-search-wrap > span:first-child {
  font-size: 25px;
}
.widget-search-wrap input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 10px 0 !important;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  color: var(--text);
}
.widget-categories {
  display: flex;
  gap: 7px;
  overflow: auto;
  min-width: 0;
  max-width: 100%;
  scrollbar-width: none;
  scroll-padding: 10px;
}
.widget-categories::-webkit-scrollbar {
  display: none;
}
.widget-categories button {
  flex-shrink: 0;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.widget-categories button[aria-pressed="true"] {
  background: #a16bf02b;
  border-color: #bf98fb;
  color: #eadbff;
}
.widget-library-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.widget-browser {
  padding: 20px 24px 24px 28px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-right: 1px solid var(--border);
}
.widget-library-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}
.widget-library-heading strong {
  font-weight: 550;
  color: var(--text);
}
.widget-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.widget-dialog .widget-library-tile {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 10px;
  gap: 11px;
  text-align: left;
  background: #ffffff03;
  border: 1px solid var(--border);
  border-radius: 17px;
}
.widget-dialog .widget-library-tile:hover {
  background: #a66bff0c;
  border-color: #ac7cf0;
}
.widget-library-tile.is-selected {
  border-color: #c19bf8 !important;
  box-shadow: 0 0 0 1px #a569ef44;
}
.widget-tile-caption {
  display: grid;
  gap: 4px;
  padding: 0 3px;
  min-width: 0;
}
.widget-tile-caption strong {
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.widget-tile-caption small {
  font-size: 11px;
  color: var(--muted);
}
.widget-tile-mark {
  position: absolute;
  right: 13px;
  top: 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #b77df52b;
  color: #dbc0ff;
  font-size: 16px;
}
.widget-visual-preview {
  display: grid;
  align-content: center;
  justify-items: start;
  position: relative;
  min-height: 100px;
  gap: 6px;
  padding: 12px;
  border: 1px solid #ffffff0a;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 0 0, #b47bff14, transparent 75%), #191521;
  overflow: hidden;
  min-width: 0;
}
.widget-visual-preview img {
  width: 27px;
  height: 27px;
}
.widget-visual-preview > span {
  font-size: 10px;
  color: #cabedb;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.widget-visual-preview > strong {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}
.widget-preview-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #bd94fa, #8ed4bd);
  border-radius: 3px;
  margin-top: 4px;
}
.widget-detail {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  background: linear-gradient(155deg, #b57bff08, transparent 60%);
}
.widget-detail-content {
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 26px 26px 10px;
}
.widget-detail-actions {
  flex-shrink: 0;
  padding: 0 26px 18px;
  border-top: 1px solid var(--border);
  background: #191420;
}
.widget-detail h3 {
  font-size: 23px;
  margin: 8px 0;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.widget-detail-content > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.widget-detail .widget-detail-back {
  display: none;
}
.widget-preview-stage {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 22px 12px;
  border: 1px solid #b98bed1c;
  border-radius: 20px;
  background:
    radial-gradient(ellipse, #a56dea0e, transparent 70%),
    radial-gradient(#b9a1d514 1px, transparent 1px) 0 0/15px 15px;
}
.widget-visual-preview.is-large {
  width: 170px;
  max-width: 100%;
  min-height: 154px;
  padding: 19px;
  gap: 9px;
  border-radius: 19px;
  box-shadow: 0 15px 35px #0004;
  transition: width 0.18s ease;
}
.widget-visual-preview.is-large[data-preview-size="medium"] {
  width: 250px;
}
.widget-visual-preview.is-large[data-preview-size="large"] {
  width: 100%;
}
.widget-visual-preview.is-large img {
  width: 36px;
  height: 36px;
}
.widget-visual-preview.is-large > strong {
  font-size: 29px;
}
.widget-visual-preview.is-large > span {
  font-size: 12px;
}
.widget-detail .widget-preview-caption {
  font-size: 11px;
  text-align: center;
  margin: 10px 0 18px;
  color: var(--muted-2);
}
.widget-size-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 18px;
}
.widget-size-choices button {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.4;
  padding: 11px 4px;
  min-width: 0;
  white-space: normal;
}
.widget-size-choices button[aria-pressed="true"] {
  border-color: #c29cf7;
  background: #a66bff22;
  color: #e4caff;
}
.widget-size-symbol {
  display: block;
  width: 17px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}
.widget-size-symbol.medium {
  width: 28px;
}
.widget-size-symbol.large {
  width: 38px;
}
.widget-library-apply {
  width: 100%;
  min-height: 48px !important;
  font-size: 13px !important;
}
.widget-detail-note {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 10px 0 0;
}
.widget-search-empty {
  grid-column: 1/-1;
  padding: 25px 10px;
  text-align: center;
  font-size: 14px;
}
.widget-search-empty p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.widget-preview-curves {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
}
.widget-preview-curves i {
  height: 12px;
  border-bottom: 2px solid #a2dfc6;
  border-radius: 50%;
  transform: rotate(-8deg);
}
.widget-preview-curves i:nth-child(2) {
  border-color: #c19af4;
  transform: rotate(10deg);
}
.widget-preview-curves i:nth-child(3) {
  border-color: #d7ba8a;
}
.widget-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 28px;
  border-top: 1px solid var(--border);
  background: #1b1625;
  flex-shrink: 0;
}
.widget-dialog footer p {
  margin: 0;
  max-width: 65ch;
  line-height: 1.5;
  font-size: 12px;
  color: var(--muted);
}
.widget-dialog footer button {
  white-space: nowrap;
  flex-shrink: 0;
}
.widget-options-dialog {
  width: min(430px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 22px;
  overflow: auto;
  border: 1px solid #bd96f447;
  border-radius: 22px;
  background: #1a1524;
  color: var(--text);
  box-shadow: 0 30px 90px #0009;
}
.widget-options-dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
.widget-options-dialog h2 {
  font-size: 22px;
  margin: 6px 0 12px;
}
.widget-options-dialog p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.widget-option-order {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}
.widget-option-order button {
  font-size: 12px;
  padding: 9px 8px;
}
.widget-options-dialog .widget-remove-button {
  width: 100%;
  border-color: #d8818c66;
  background: #c1506120;
  color: #ffc7cf;
}
@media (hover: hover) {
  .dashboard-widget:not(:hover):not(:focus-within) .widget-drag-handle {
    opacity: 0.25;
  }
  .widget-drag-handle:hover {
    opacity: 1;
    background: #b27dff22;
  }
  .is-editing .widget-drag-handle {
    opacity: 1 !important;
  }
}
@media (max-width: 1199.98px) {
  .dashboard-editbar {
    align-items: start;
    flex-wrap: wrap;
  }
  .dashboard-edit-actions {
    margin-left: auto;
  }
  .widget-dialog {
    width: calc(100vw - 32px);
  }
  .widget-detail-content {
    padding: 20px 20px 10px;
  }
  .widget-detail-actions {
    padding: 0 20px 15px;
  }
  .widget-browser {
    padding: 20px;
  }
  .widget-library-grid {
    gap: 9px;
  }
}
@media (max-width: 767.98px) {
  .dashboard-workspace-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
  }
  .dashboard-workspace-actions button {
    font-size: 12px;
    padding: 9px 8px;
    white-space: normal;
    line-height: 1.4;
  }
  .dashboard-workspace-bar {
    gap: 10px;
  }
  .dashboard-editbar {
    padding: 12px;
    gap: 10px;
    top: calc(var(--topbar) + 4px);
    border-radius: 13px;
    margin-bottom: 12px;
  }
  .dashboard-editbar strong {
    font-size: 13px;
  }
  .dashboard-editbar p {
    font-size: 11px;
  }
  .dashboard-edit-actions {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.4fr;
    width: 100%;
    gap: 6px;
  }
  .dashboard-edit-actions button {
    font-size: 11px;
    padding: 8px 5px;
    min-height: 44px;
    white-space: normal;
  }
  .widget-keyboard-help {
    display: none;
  }
  .dashboard-widget-grid.is-editing {
    padding: 7px;
    gap: 9px;
  }
  .is-editing .widget-card-tools {
    gap: 4px;
    margin-bottom: 8px;
  }
  .is-editing .widget-card-tools button {
    min-width: 40px;
    min-height: 44px;
  }
  .dashboard-widget > .metric-card-head,
  .dashboard-widget > .dg-sensor-card-head {
    padding-right: 26px;
  }
  .widget-card-tools {
    right: 3px;
    top: 5px;
  }
  .widget-card-tools button {
    min-width: 32px;
    min-height: 38px;
    font-size: 21px;
  }
  .widget-dialog {
    width: 100%;
    max-width: none;
    height: min(850px, 94dvh);
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 23px 23px 0 0;
  }
  .widget-dialog header {
    padding: 18px 17px 13px;
    gap: 10px;
  }
  .widget-dialog h2 {
    font-size: 22px;
    margin: 4px 0 6px;
  }
  .widget-dialog header p {
    font-size: 12px;
    line-height: 1.5;
  }
  .widget-dialog .eyebrow {
    font-size: 9px;
  }
  .widget-library-filters {
    padding: 0 16px 12px;
    gap: 9px;
  }
  .widget-search-wrap {
    min-height: 44px;
    padding: 0 10px;
  }
  .widget-search-wrap input {
    font-size: 16px;
  }
  .widget-categories {
    gap: 6px;
  }
  .widget-categories button {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .widget-library-body {
    display: block;
    min-height: 0;
    position: relative;
    overflow: hidden;
  }
  .widget-browser {
    height: 100%;
    overflow: auto;
    padding: 16px;
    border-right: 0;
  }
  .widget-detail {
    height: 100%;
  }
  .widget-detail-content {
    padding: 16px 16px 10px;
  }
  .widget-detail-actions {
    padding: 0 16px 12px;
  }
  .widget-library-grid {
    gap: 10px;
  }
  .widget-dialog .widget-library-tile {
    padding: 8px;
    gap: 9px;
    border-radius: 14px;
  }
  .widget-visual-preview {
    min-height: 100px;
    padding: 10px;
    gap: 5px;
  }
  .widget-visual-preview > strong {
    font-size: 19px;
  }
  .widget-tile-caption strong {
    font-size: 12px;
  }
  .widget-tile-caption small {
    font-size: 10px;
  }
  .widget-dialog[data-detail-open="false"] .widget-detail,
  .widget-dialog[data-detail-open="true"] .widget-browser {
    display: none;
  }
  .widget-detail .widget-detail-back {
    display: inline-flex;
    min-height: 44px;
    background: transparent;
    border: 0;
    padding: 0 0 12px;
    font-size: 13px;
  }
  .widget-detail h3 {
    font-size: 23px;
  }
  .widget-detail > p {
    font-size: 13px;
  }
  .widget-preview-stage {
    min-height: 175px;
    padding: 15px;
  }
  .widget-visual-preview.is-large {
    min-height: 135px;
  }
  .widget-size-choices {
    margin: 10px 0 14px;
  }
  .widget-size-choices button {
    min-height: 67px;
  }
  .widget-dialog[data-detail-open="true"] .widget-library-filters,
  .widget-dialog[data-detail-open="true"] header p {
    display: none;
  }
  .widget-dialog footer {
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
    gap: 10px;
    align-items: center;
  }
  .widget-dialog footer p {
    font-size: 10px;
    line-height: 1.5;
  }
  .widget-dialog footer button {
    padding: 10px;
    font-size: 12px;
    min-height: 44px;
  }
  .widget-options-dialog {
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    border-radius: 22px 22px 0 0;
    padding: 20px 18px max(20px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .widget-visual-preview {
    transition: none !important;
  }
}
@media (min-width: 768px) and (max-height: 900px) {
  .widget-dialog header {
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .widget-dialog header p {
    display: none;
  }
  .widget-detail-content {
    padding-top: 16px;
  }
  .widget-detail h3 {
    font-size: 20px;
    margin: 6px 0;
  }
  .widget-detail-content > p {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .widget-preview-stage {
    min-height: 140px;
    padding: 10px;
  }
  .widget-visual-preview.is-large {
    min-height: 0;
    padding: 12px;
    gap: 5px;
  }
  .widget-visual-preview.is-large img {
    width: 26px;
    height: 26px;
  }
  .widget-visual-preview.is-large > span {
    font-size: 11px;
  }
  .widget-visual-preview.is-large > strong {
    font-size: 24px;
  }
  .widget-preview-caption {
    display: none;
  }
  .widget-detail-actions {
    padding-bottom: 12px;
  }
  .widget-detail-actions .widget-detail-note {
    display: none;
  }
  .widget-detail-actions .widget-size-choices {
    margin: 8px 0 10px;
  }
  .widget-detail-actions .widget-size-choices button {
    padding: 7px 4px;
  }
  .widget-detail-actions .widget-library-apply {
    min-height: 44px !important;
  }
}
@media (max-height: 650px) {
  .widget-dialog {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .widget-dialog header {
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .widget-dialog header p {
    display: none;
  }
  .widget-dialog h2 {
    font-size: 22px;
  }
  .widget-library-filters {
    gap: 7px;
    padding-bottom: 9px;
  }
  .widget-detail-note {
    display: none;
  }
  .widget-dialog footer {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .widget-detail-actions .widget-size-choices {
    margin: 8px 0;
  }
  .widget-size-choices button {
    padding-top: 7px;
    padding-bottom: 7px;
  }
}
@media (max-height: 480px) {
  .widget-dialog header .eyebrow {
    display: none;
  }
  .widget-dialog header {
    padding-top: 8px;
    padding-bottom: 8px;
    align-items: center;
  }
  .widget-dialog h2 {
    font-size: 18px;
    margin: 0;
  }
  .widget-dialog header button {
    height: 36px !important;
    min-height: 36px !important;
    width: 36px !important;
  }
  .widget-search-wrap {
    min-height: 36px;
  }
  .widget-search-wrap input {
    padding: 6px 0 !important;
  }
  .widget-categories button {
    min-height: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .widget-dialog footer {
    padding: 6px 16px;
  }
  .widget-dialog footer p {
    font-size: 10px;
  }
  .widget-size-choices button {
    min-height: 38px;
  }
  .widget-size-symbol {
    display: none;
  }
  .widget-library-apply {
    min-height: 40px !important;
  }
  .widget-detail-actions {
    padding-bottom: 8px;
  }
  .widget-detail-content {
    padding-top: 10px;
  }
  .widget-detail h3 {
    font-size: 18px;
  }
  .widget-dialog .widget-detail-back {
    padding-bottom: 4px;
    min-height: 32px;
  }
}
