.dd{position:relative}
.dd-native{position:absolute;inset:auto auto 0 0;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0;min-height:0}
.dd-btn{display:flex;align-items:center;width:100%;height:46px;padding:0 40px 0 12px;font:16px var(--sans);color:var(--ink);text-align:left;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6b63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center/12px 8px;
  border:1px solid #c9d3ce;border-radius:8px;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.dd-btn:hover{border-color:#9fb1a8}
.dd-open .dd-btn{border-color:var(--green);box-shadow:0 0 0 3px rgba(31,111,74,.15)}
.dd-text{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dd-placeholder .dd-text{color:var(--mute)}
.dd-list{list-style:none;margin:0;padding:6px;outline:none}
.dd-list li{display:flex;align-items:center;min-height:44px;padding:0 12px 0 34px;border-radius:7px;cursor:pointer;position:relative;line-height:1.3}
.dd-list li.dd-active{background:var(--wash)}
.dd-list li[aria-selected=true]{font-weight:600;color:var(--green)}
.dd-list li[aria-selected=true]::before{content:"";position:absolute;left:12px;top:50%;width:12px;height:7px;margin-top:-6px;
  border-left:2px solid var(--green);border-bottom:2px solid var(--green);transform:rotate(-45deg)}
/* wider screens: a list under the field */
.dd > .dd-list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;max-height:300px;overflow:auto;
  background:#fff;border:1px solid var(--rule);border-radius:10px;box-shadow:0 16px 40px -12px rgba(20,32,27,.28)}
.dd.dd-up > .dd-list{top:auto;bottom:calc(100% + 6px)}
/* phones: a sheet from the bottom */
.dd-sheet{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end}
.dd-backdrop{position:absolute;inset:0;background:rgba(20,32,27,.5);animation:dd-fade .18s ease-out}
.dd-panel{position:relative;width:100%;max-height:72dvh;overflow:auto;background:#fff;box-shadow:0 -8px 30px rgba(20,32,27,.18);border-radius:16px 16px 0 0;
  padding:8px 8px calc(12px + env(safe-area-inset-bottom,0px));animation:dd-up .18s ease-out}
.dd-title{font-weight:600;color:var(--mute);font-size:.88rem;padding:12px 14px 6px}
.dd-panel .dd-list li{min-height:52px;font-size:1.02rem}
html.dd-lock,html.dd-lock body{overflow:hidden}
/* the sheet slides in solid: only the backdrop fades, so text never shows through */
@keyframes dd-up{from{transform:translateY(100%)}to{transform:none}}
@keyframes dd-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.dd-panel,.dd-backdrop{animation:none}}

.dd-list li.dd-group{min-height:0;padding:12px 12px 4px;font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--mute);cursor:default}
.dd-list li.dd-group::before{display:none}
