/* Feature requests: the menu-line trigger, the side panel and the rows inside it. */
/* Opens from a word at the end of the menu line. */
header .req-trigger { margin-left: auto; background: none; border: 0; padding: 0; cursor: pointer;
                      font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--top-soft, var(--muted)); }
header .req-trigger:hover, header .req-trigger[aria-expanded="true"] { color: var(--top-ink, var(--fg)); }
.req-shade { position: fixed; inset: 0; z-index: 20; background: rgba(27, 21, 48, .38); opacity: 0;
             transition: opacity .35s ease; }
.req-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 21; width: min(560px, 100vw); overflow-y: auto;
             --field: #ece4d4; --ink: #2a1529; --soft: rgba(42,21,41,.74); --chip: #ff5a1f;
             background: var(--field); color: var(--ink); padding: 72px clamp(24px, 4vw, 48px) 48px;
             transform: translateX(100%); transition: transform .45s cubic-bezier(.2, .7, .2, 1);
             box-shadow: -24px 0 60px rgba(27, 21, 48, .18); }
html[data-theme="dark"] .req-panel { --field: #1f1a1c; --ink: #ece4d4; --soft: rgba(236,228,212,.72); }
.req-open .req-shade { opacity: 1; }
.req-open .req-panel { transform: none; }
.req-shade[hidden], .req-panel[hidden] { display: none; }
.req-panel-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 32px; }
.req-panel-head h2 { margin: 0; font: inherit; }
.req-close { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; letter-spacing: inherit;
             text-transform: inherit; color: var(--soft); }
.req-close:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .req-shade, .req-panel { transition: none; } }
@media (max-width: 700px) { header .req-trigger { order: 1; } header nav { order: 2; flex-basis: 100%; } }
.requests { max-width: none; }
.req-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.req-app { font-size: 12px; color: var(--soft); }
.req-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; border: 0; padding: 0; }
.req-pick label { cursor: pointer; }
.req-pick input { position: absolute; opacity: 0; pointer-events: none; }
.req-pick span { display: inline-block; padding: 9px 15px; border-radius: 999px; font-size: 12px;
                 border: 1px solid color-mix(in srgb, var(--ink) 26%, transparent); color: var(--soft); }
.req-pick input:checked + span { background: var(--ink); color: var(--field); border-color: var(--ink); }
.req-pick input:focus-visible + span { outline: 2px solid var(--chip); outline-offset: 2px; }
.req-list { list-style: none; margin: 0 0 20px; padding: 0; }
.req { display: flex; align-items: center; gap: 16px; padding: 10px 0;
       border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.req:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.req-vote { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
            width: 52px; height: 52px; border-radius: 10px; cursor: pointer; font: inherit; line-height: 1.1;
            color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent);
            border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); transition: background .2s, transform .15s; }
.req-vote span { font-size: 11px; }
.req-vote b { font-weight: 500; font-size: 16px; }
.req-vote:hover:not(:disabled) { transform: translateY(-2px); }
.req-vote.on { background: var(--chip); border-color: var(--chip); color: #1b1530; }
.req-vote.busy { opacity: .6; }
.req-vote:disabled { cursor: default; }
.req-text { font-size: 18px; line-height: 1.4; }
.req.is-done .req-text { color: var(--soft); }
.req-tag { flex: none; font-size: 12px; color: var(--chip); }
.req-form { display: flex; gap: 10px; flex-wrap: wrap; }
.req-form .req-pick { flex-basis: 100%; }
.req-form input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 10px;
                  color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent);
                  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.req-form input::placeholder { color: var(--soft); }
.req-form input:focus { outline: 2px solid var(--chip); outline-offset: 1px; }
.req-form button { flex: none; font-family: inherit; font-size: 13px; padding: 0 20px; border-radius: 10px; cursor: pointer;
                   background: var(--ink); color: var(--field); border: 0; }
.req-form .req-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.req-note { margin: 10px 0 0; min-height: 1.4em; font-size: 15px; color: var(--soft); }

/* Inside the panel the small capitals open up less, so they read at a glance */
.req-panel .caps { letter-spacing: .14em; }
.req-panel-head { font-size: 15px; }
