dialog.ned-picker {
    --ink:#181818; --paper:#fff; --soft:#f5f5f5; --edge:#e3e3e3; --muted:#655d71; --accent:#7229c8; --wash:#f5efff; --line:#d9c4f3; --blue:#236ab9; --blend:linear-gradient(120deg,#6525c3,#5942cd 58%,#295cbe);
    position:fixed; inset:0; margin:auto; width:min(768px,calc(100% - 24px)); max-width:none;
    height:fit-content; max-height:85vh; max-height:85dvh; padding:0; overflow:hidden;
    box-sizing:border-box; border:1px solid var(--edge); border-radius:16px;
    background:var(--paper); color:var(--ink); box-shadow:0 14px 45px #0003;
    font:14px/1.45 Inter,Arial,sans-serif; text-align:start;
}
.ned-picker::backdrop {background:#101010a6;backdrop-filter:blur(4px)}
html[data-ned-theme=dark] .ned-picker {--ink:#fafafa;--paper:#202020;--edge:#444;--soft:#303030;--muted:#c7bed5;--accent:#cea7ff;--wash:#30243e;--line:#66527d;--blue:#97c8ff}
.ned-picker *, .ned-picker *::before {box-sizing:border-box}
.ned-picker [hidden]{display:none!important}
.ned-picker form {display:flex;flex-direction:column;max-height:inherit;margin:0;padding:0}
.ned-picker button {font:inherit;color:inherit;cursor:pointer}
.ned-picker .picker-head {flex:none;display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:12px;padding:20px 24px 16px}
.ned-picker .picker-symbol {display:grid;place-items:center;color:white;background:var(--blend);width:40px;height:40px;flex:none;border-radius:12px}
.ned-picker .picker-head>div {min-width:0;text-align:center}
.ned-picker h2,.ned-picker p {margin:0}
.ned-picker h2 {font-size:18px;line-height:1.2;font-weight:600}
.ned-picker [data-name]{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ned-picker .picker-head button {background:transparent;border:0;font-size:22px;padding:8px;color:var(--muted)}
.ned-picker .picker-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px;overflow-y:auto;min-height:0;overscroll-behavior:contain;padding:2px 24px 16px}
.ned-picker .picker-grid:has(aside[hidden]) {grid-template-columns:1fr}
.ned-picker .picker-options {display:grid;gap:8px}
.ned-picker .picker-choice {display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:56px;padding:10px 14px;border:1px solid var(--edge);border-radius:12px;cursor:pointer}
.ned-picker .picker-choice:has(:checked) {background:var(--wash);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.ned-picker .picker-choice:has(:disabled) {opacity:.55;cursor:default}
.ned-picker .picker-choice input {appearance:none;margin:0;width:20px;height:20px;border:2px solid #c7c7c7;border-radius:50%;display:grid;place-items:center}
.ned-picker .picker-choice input:checked {background:var(--accent);border-color:var(--accent)}
.ned-picker .picker-choice input:checked::before {content:"";width:5px;height:9px;border:solid var(--paper);border-width:0 1.5px 1.5px 0;transform:translateY(-1px) rotate(45deg)}
.ned-picker .picker-label {overflow-wrap:anywhere}
.ned-picker .picker-choice strong {white-space:nowrap;font-size:15px}
.ned-picker .picker-deal {display:inline-block;border-radius:20px;background:var(--wash);color:var(--accent);padding:2px 6px;font:bold 10px/1.2 Arial}
.ned-picker [data-details] {display:block;color:var(--muted);font-size:11px;margin:5px 4px}
.ned-picker aside p {margin-top:8px;background:var(--soft);border-left:3px solid var(--blue);border-radius:12px;padding:16px;white-space:pre-line;overflow-wrap:anywhere;line-height:1.65}
.ned-picker .picker-foot {flex:none;padding:12px 24px 20px;border-top:1px solid var(--edge)}
.ned-picker .picker-confirm {display:flex;align-items:center;gap:12px;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--wash);padding:8px 12px;cursor:pointer}
.ned-picker .picker-confirm input {width:20px;height:20px;margin:0;accent-color:var(--accent)}
.ned-picker .picker-actions {display:grid;grid-template-columns:1fr 2fr;gap:10px;margin-top:10px}
.ned-picker .picker-actions button {min-height:50px;border-radius:12px;background:var(--paper);border:1px solid var(--edge)}
.ned-picker .picker-actions button[type=submit]{background:var(--blend);border:0;color:white;font-weight:600}
.ned-picker .picker-actions button:disabled{background:var(--soft);color:var(--muted);cursor:default}
@media(max-width:767px){.ned-picker .picker-grid{grid-template-columns:1fr}}
@media(max-width:639px){
    dialog.ned-picker{max-height:max(76dvh,min(calc(100dvh - 24px),440px))}
    .ned-picker .picker-head{grid-template-columns:32px minmax(0,1fr) 32px;gap:10px;padding:12px 16px 8px}.ned-picker .picker-symbol{width:32px;height:32px}
    .ned-picker h2{font-size:16px}.ned-picker [data-name]{font-size:12px}
    .ned-picker .picker-grid{padding:2px 16px 12px;gap:12px}
    .ned-picker .picker-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
    .ned-picker .picker-choice:last-child:nth-child(odd){grid-column:1/-1}
    .ned-picker .picker-choice{grid-template-columns:18px minmax(0,1fr);gap:0 8px;min-height:44px;padding:6px 10px;font-size:13px}
    .ned-picker .picker-choice input{grid-row:span 2;width:18px;height:18px}
    .ned-picker .picker-choice strong{grid-column:2;font-size:14px}
    .ned-picker aside p{padding:10px 12px;font-size:13px}
    .ned-picker .picker-foot{padding:10px 16px 12px}.ned-picker .picker-actions{grid-template-columns:auto 1fr}
    .ned-picker .picker-actions button{padding:8px 16px;min-height:42px}
}
.ned-picker aside strong i {color:var(--blue);margin-inline-end:4px}
.ned-picker .picker-choice:has(:checked) strong {color:var(--accent)}
.ned-picker .picker-choice input:checked::before {width:7px;height:7px;border:0;border-radius:2px;background:var(--paper);transform:rotate(45deg)}
.ned-picker .picker-actions button[type=submit]:disabled {background:var(--soft);color:var(--muted)}
/* Hər sətirdə bir paket: müddət solda, qiymət sağda. */
.ned-picker .picker-options { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
.ned-picker .picker-choice { grid-template-columns:auto minmax(0,1fr) auto; align-items:center; }
.ned-picker .picker-choice input { grid-row:auto; }
.ned-picker .picker-choice strong { grid-column:3; text-align:right; }