.platform-picker-trigger{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-height:46px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm,12px);
  background:var(--surface);
  color:var(--text);
  font:inherit;
  font-size:14.5px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
  transition:background-color .16s,border-color .16s;
}
.platform-picker-trigger svg{
  flex-shrink:0;
  transition:transform .18s ease;
}
.platform-picker-trigger[aria-expanded=true] svg{
  transform:rotate(180deg);
}
.platform-picker-trigger:focus-visible,.platform-picker-options button:focus-visible,.platform-picker-close:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:3px;
}
dialog.platform-picker-dialog{
  width:min(420px,calc(100% - 24px));
  max-height:calc(100dvh - 36px);
  padding:20px;
  border-radius:20px;
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:var(--shadow-strong);
  overflow:auto;
}
.platform-picker-dialog::backdrop{background:rgba(12,21,19,.56);backdrop-filter:blur(6px)}
html[data-theme=dark] .platform-picker-dialog::backdrop{background:rgba(0,0,0,.68)}
.platform-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.platform-picker-heading h2{font-size:18px;font-weight:700;margin:0}
.platform-picker-close{
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--bg);
  color:var(--text);
  font-size:20px;
  line-height:1;
  cursor:pointer;
  transition:background-color .16s,border-color .16s;
}
.platform-picker-options{display:grid;gap:7px}
.platform-picker-options button{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:46px;
  width:100%;
  padding:10px 14px;
  border-radius:12px;
  background:var(--bg);
  color:var(--text);
  border:1px solid var(--line);
  font:inherit;
  font-size:14px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
  transition:background-color .16s,border-color .16s;
}
.platform-picker-options button[aria-selected=true]{
  background:var(--primary);
  color:var(--on-primary);
  border-color:transparent;
}
@media(hover:hover){
  .platform-picker-trigger:hover,.platform-picker-close:hover{
    background:var(--surface-2);
    border-color:var(--line-strong);
  }
  .platform-picker-options button:not([aria-selected=true]):hover{
    background:var(--surface-2);
    border-color:var(--line-strong);
  }
}
@media(max-width:540px){
  dialog.platform-picker-dialog{
    margin:auto auto max(12px,env(safe-area-inset-bottom));
    width:calc(100% - 20px);
    max-height:calc(100dvh - 24px);
    padding:18px;
  }
}
