.surface {
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tinted-glass-border);
  border-radius: var(--tinted-glass-radius, var(--radius-panel));
  background-color: var(--tinted-glass-bg);
  background-image:
    linear-gradient(180deg, transparent 0, var(--tinted-glass-tint) 100%),
    linear-gradient(0deg, transparent 0, var(--tinted-glass-tint) 100%),
    linear-gradient(var(--tinted-glass-tint), var(--tinted-glass-tint));
  background-position: top, bottom, center;
  background-repeat: no-repeat;
  background-size:
    100% var(--tinted-glass-edge-size),
    100% var(--tinted-glass-edge-size),
    100% max(0px, calc(100% - (var(--tinted-glass-edge-size) * 2)));
  box-shadow:
    var(--tinted-glass-shadow),
    inset 0 1px 0 var(--tinted-glass-highlight);
  color: var(--text-primary);
  -webkit-backdrop-filter: var(--tinted-glass-filter);
  backdrop-filter: var(--tinted-glass-filter);
}

.surface[data-radius="control"] {
  --tinted-glass-radius: var(--radius-control);
}

.surface[data-radius="panel"] {
  --tinted-glass-radius: var(--radius-panel);
}

.surface[data-radius="popover"] {
  --tinted-glass-radius: var(--radius-popover);
}

.surface[data-radius="composer"] {
  --tinted-glass-radius: var(--radius-composer);
}

.surface[data-padding="none"] {
  padding: 0;
}

.surface[data-padding="sm"] {
  padding: var(--space-2);
}

.surface[data-padding="md"] {
  padding: var(--space-3);
}

.surface[data-padding="lg"] {
  padding: var(--space-4);
}
