.device-root, .device-root.stn-page { min-height: 100vh; height: 100%; background: #f5f7f6; color: #004030; font-family: Roboto, "Noto Sans", sans-serif; overflow: auto; }
.dev-app { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.dev-bar {
    height: 48px; background: #fff; border-bottom: 1px solid #d0ddd8;
    padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.dev-bar img { height: 28px; }
.dev-bar h1 { margin: 0; font-size: 15px; font-weight: 800; color: #004030; }
.dev-dots { display: flex; gap: 10px; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #64748b; }
.dev-dots span { display: inline-flex; align-items: center; gap: 5px; }
.dev-dots span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #dc2626; }
.dev-dots span.on::before { background: #059669; }
.dev-body { padding: 16px; flex: 1; }
.dev-title { font-size: 28px; font-weight: 800; margin: 0 0 4px; color: #004030; }
.dev-sub { font-size: 14px; color: #3d4f48; margin: 0 0 16px; }

.mode-row {
    display: flex; gap: 2px; padding: 3px; margin-bottom: 16px;
    background: #f5f7f6; border: 1px solid #d0ddd8; border-radius: 10px;
}
.mode-tab, .dev-tabs button {
    flex: 1; padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 700;
    color: #3d4f48; border: none; background: transparent; cursor: pointer;
}
.mode-tab.active, .dev-tabs button.active { background: #004030; color: #fff; font-weight: 800; }
.dev-tabs { display: flex; gap: 2px; padding: 3px; margin-bottom: 16px; background: #f5f7f6; border: 1px solid #d0ddd8; border-radius: 10px; }

.dev-card {
    background: #fff; border: 1px solid #d0ddd8; border-radius: 10px;
    padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,64,48,0.06);
}
.dev-card h2, .dev-card h3 { margin: 0 0 8px; color: #004030; font-size: 16px; font-weight: 800; }
.dev-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.dev-app input, .dev-app select, .dev-app textarea {
    background: #f5f7f6; color: #004030; border: 1px solid #d0ddd8; border-radius: 10px; padding: 10px 12px; min-width: 10rem;
}
.dev-msg { background: #e8f0ed; color: #004030; padding: 10px 12px; border-radius: 8px; margin: 8px 0; }
.dev-list { list-style: none; padding: 0; margin: 0; }
.dev-list li { padding: 8px 0; border-bottom: 1px solid #e8f0ed; }
.chip-saida { background: rgba(220,38,38,.08); color: #dc2626; font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 4px 8px; border-radius: 6px; }
.chip-entrada { background: rgba(16,185,129,.12); color: #059669; font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 4px 8px; border-radius: 6px; }
.btn-station {
    width: 100%; padding: 16px; border-radius: 12px; background: #004030; color: #fff;
    font-size: 16px; font-weight: 800; letter-spacing: .5px; border: 0; cursor: pointer; text-align: center; text-decoration: none; display: block;
}

.pda-frame { max-width: 100%; height: 100dvh; min-height: 100vh; margin: 0 auto; background: #f5f7f6; display: flex; flex-direction: column; }
.pda-frame .dev-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.pda-hero { display: flex; justify-content: center; margin: 12px 0 20px; }
.pda-hero img { height: 48px; }
.pda-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 16px 16px 8px; }
.pda-head-main { flex: 1; min-width: 0; }
.pda-brand { margin: 0; color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.pda-target { margin: 2px 0 0; color: #0a0a0a; font-size: 20px; font-weight: 900; }
.pda-target.muted { color: #64748b; font-size: 18px; font-weight: 800; }
.pda-target-sub { margin: 1px 0 0; color: #64748b; font-size: 12px; font-weight: 700; }
.pda-op { text-align: right; }
.pda-op strong { display: block; color: #0a0a0a; font-size: 13px; font-weight: 700; max-width: 130px; }
.pda-op small { display: block; color: #64748b; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.pda-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d0ddd8; border-radius: 10px; padding: 0 12px; margin-bottom: 10px; }
.pda-search input { flex: 1; border: 0; background: transparent; padding: 10px 0; font-size: 14px; font-weight: 600; color: #0a0a0a; min-width: 0; }
.pda-kitrow { width: 100%; text-align: left; border-left-width: 3px; }
.pda-kitrow.out { border-left-color: #dc2626; }
.pda-kitrow.in { border-left-color: #059669; }
.pda-partial { color: #d97706; font-size: 11px; font-weight: 800; margin: 2px 0 0; }
.pda-list-foot { display: flex; gap: 8px; margin-top: 8px; }
.pda-list-foot .gnr-btn, .pda-list-foot .gnr-btn.ghost { flex: 1; min-height: 44px; font-weight: 800; }
.pda-pending { border-left: 3px solid #d97706; }
.pda-returned { border-left: 3px solid #059669; }
.pda-chip { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.pda-chip.pending { background: rgba(217,119,6,.12); color: #d97706; }
.pda-chip.done { background: rgba(5,150,105,.12); color: #059669; }
.pda-frame input, .pda-frame textarea, .pda-frame select {
    background: #fff; color: #0a0a0a; border: 1px solid #d0ddd8; border-radius: 10px; padding: 10px 12px; width: 100%;
}
.pda-tabs {
    display: flex; border-top: 1px solid #d0ddd8; background: #fff; margin-top: auto; flex-shrink: 0;
}
.pda-tabs button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    border: 0; background: #fff; padding: 8px 6px 10px; font-size: 10px; font-weight: 700; color: #64748b; cursor: pointer;
}
.pda-tabs button.active { color: #004030; font-weight: 800; }
.pda-tabs svg { width: 22px; height: 22px; display: block; }
.pda-frame.dark { background: #0f1412; color: #f8fafc; }
.pda-frame.dark .pda-head, .pda-frame.dark .pda-tabs { background: #0f1412; border-color: #2d3834; }
.pda-frame.dark .pda-target, .pda-frame.dark .pda-op strong, .pda-frame.dark .dev-title { color: #f8fafc; }
.pda-frame.dark .pda-search, .pda-frame.dark input, .pda-frame.dark textarea { background: #1a2420; border-color: #2d3834; color: #f8fafc; }

.mon-root { min-height: 100vh; background: #0f1412; color: #f8fafc; }
.mon-root .dev-bar { background: #1a2420; border-color: #2d3834; }
.mon-root .dev-bar h1 { color: #f8fafc; }
.mon-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; padding: 16px; min-height: calc(100vh - 48px); }
.mon-root .dev-card { background: #1a2420; border-color: #2d3834; color: #f8fafc; }
.mon-root .dev-card h2 { color: #f8fafc; }
.op-pickup { border-color: rgba(45,138,110,0.45) !important; }
.op-return { border-color: rgba(245,158,11,0.4) !important; }
.live-chip { background: rgba(16,185,129,.2); color: #10b981; font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 3px 8px; border-radius: 6px; }
.pair-card { max-width: 520px; margin: 4rem auto; background: #1a2420; border: 1px solid #2d3834; border-radius: 12px; padding: 32px; }
.pair-card h2 { font-size: 28px; font-weight: 800; margin: 8px 0; color: #fff; }
.pair-card .eyebrow { color: #2d8a6e; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.pair-card input { width: 100%; background: #0f1412; color: #fff; border: 1px solid #2d3834; border-radius: 10px; padding: 14px; font-size: 18px; font-weight: 700; letter-spacing: 2px; margin: 12px 0; }
@media (max-width: 900px) { .mon-grid { grid-template-columns: 1fr; } }
