/* ============================================================
   DROPFORGE ON A PHONE — /drop/ — 2026.09.24
   Built from the site's own tokens: Foundry Black surfaces and
   DropForge's steel blue (--rose, set by .fd-page). No new colours
   beyond the site's error red, so the page sits with the account
   portal it belongs to.
   ============================================================ */

.drop-wrap {
    max-width: 640px;
    padding-top: 28px;
    padding-bottom: 56px;
}

.drop-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.drop-intro-icon {
    flex: none;
    width: 48px;
    height: 48px;
}

.drop-intro h1 {
    margin: 0;
    font: 800 30px/1 var(--display);
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.drop-intro p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.drop-page .btn-primary {
    background: var(--rose);
    border-color: var(--rose);
    color: var(--rose-ink);
    box-shadow: none;
}

.drop-page .btn-primary:hover {
    background: var(--rose-2);
    border-color: var(--rose-2);
    box-shadow: 0 0 26px var(--rose-glow);
    opacity: 1;
}

.drop-page .btn[disabled] {
    opacity: .45;
    pointer-events: none;
}

.drop-stack {
    display: grid;
    gap: 14px;
}

.drop-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    padding: 18px;
}

.drop-card.is-live {
    box-shadow: inset 3px 0 0 var(--rose);
}

.drop-card h2 {
    margin: 0;
    font: 700 13px/1.2 var(--font);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.drop-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.drop-note {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.drop-note + .drop-note {
    margin-top: 8px;
}

.drop-key {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted-2);
    letter-spacing: .02em;
}

/* -- this phone ---------------------------------------------------------- */

.drop-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.drop-me strong {
    display: block;
    font: 700 17px/1.25 var(--display);
    text-transform: uppercase;
}

/* -- computers ----------------------------------------------------------- */

.drop-desktops {
    display: grid;
    gap: 10px;
}

.drop-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line-med);
    border-radius: 4px;
}

.drop-desktop-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.drop-desktop-name strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 700 17px/1.25 var(--display);
    text-transform: uppercase;
}

.drop-desktop-name span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.drop-dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--muted-2);
}

.drop-dot.is-online {
    border-color: var(--rose);
    background: var(--rose);
    box-shadow: 0 0 12px var(--rose-glow);
}

.drop-desktop.is-offline .drop-desktop-name strong {
    color: var(--muted);
}

/* -- connected ----------------------------------------------------------- */

.drop-picked {
    display: grid;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.drop-picked li,
.drop-received li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    font-size: 14px;
}

.drop-picked li span:first-child,
.drop-received li span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drop-size {
    flex: none;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
}

.drop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.drop-progress {
    margin-top: 14px;
}

.drop-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--line);
    overflow: hidden;
}

.drop-bar > div {
    height: 100%;
    width: 0;
    background: var(--rose);
    transition: width .2s linear;
}

.drop-progress p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.drop-received {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.drop-received li {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.drop-received li:first-child {
    border-top: 0;
    padding-top: 0;
}

.drop-received .drop-row-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
}

/* The site makes every .btn full width under 720px, which suits the big
   actions. These small ones sit inside a row next to text, so they keep
   their own width. */
.drop-page .btn-xs {
    flex: none;
    width: auto;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* The portal's success green is the site brand; on DropForge's page the one
   accent is DropForge's blue. */
.drop-page .auth-status-success {
    color: var(--rose-2);
}

.drop-page .btn-ghost:hover {
    border-color: var(--rose);
    color: var(--rose);
}

/* -- prompts ------------------------------------------------------------- */

.drop-dialog {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(0,0,0,.66);
}

@media (min-width: 640px) {
    .drop-dialog {
        align-items: center;
    }
}

.drop-dialog-card {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    border: 1px solid var(--line-med);
    border-radius: 8px;
    background: var(--panel-2);
    padding: 22px;
    box-shadow: var(--shadow);
}

.drop-dialog-card h3 {
    margin: 0 0 10px;
    font: 700 20px/1.2 var(--display);
    text-transform: uppercase;
}

.drop-dialog-card ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
}

.drop-words {
    margin: 12px 0 8px;
    padding: 14px;
    border: 1px solid var(--rose-line);
    border-radius: 6px;
    background: var(--rose-well);
    color: var(--rose-2);
    font: 700 20px/1.5 var(--mono);
    text-align: center;
    word-spacing: .25em;
}

.drop-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 14px;
}

.drop-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--rose);
}

.drop-field {
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line-med);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
}

.drop-field:focus {
    outline: 2px solid var(--rose);
    outline-offset: 1px;
}

.drop-hidden-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 480px) {
    .drop-desktop {
        flex-wrap: wrap;
    }

    .drop-desktop .btn {
        width: 100%;
    }

    .drop-actions .btn {
        flex: 1 1 auto;
    }
}
