.wpm-app {
    --wpm-navy: #10182a;
    --wpm-blue: #7db2ff;
    --wpm-muted: #8f98ab;
    --wpm-page: #f3f5f9;
    --wpm-nav-height: 68px;
    width: 100vw;
    max-width: 520px;
    min-height: 100vh;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: calc(50% - 50vw);
    background: var(--wpm-page);
    color: #111827;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-bottom: calc(var(--wpm-nav-height) + 36px + env(safe-area-inset-bottom));
    box-shadow: 0 0 35px rgba(15, 23, 42, 0.12);
}

@media (min-width: 520px) {
    .wpm-app {
        width: 520px;
        margin-right: auto;
        margin-left: auto;
    }
}

.wpm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    gap: 10px;
    padding: 9px 12px;
    background: var(--wpm-navy);
    color: #fff;
}

.wpm-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.wpm-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c05a, #6f4d27);
    color: #fff;
    font-weight: 800;
}

.wpm-logo {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.wpm-brand-text {
    min-width: 0;
}

.wpm-title {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

.wpm-subtitle {
    margin-top: 3px;
    color: var(--wpm-blue);
    font-size: 15px;
    line-height: 1.05;
    font-weight: 700;
    white-space: nowrap;
}

.wpm-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #84673f;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.wpm-account-menu {
    position: relative;
    flex: 0 0 auto;
}

.wpm-account-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    padding: 0;
    color: #aeb5c6;
    list-style: none;
    cursor: pointer;
}

.wpm-account-toggle::-webkit-details-marker {
    display: none;
}

.wpm-chevron {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
}

.wpm-chevron svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 210px;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    color: #101827;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.wpm-account-dropdown span {
    color: #697386;
    font-size: 13px;
}

.wpm-account-dropdown a {
    color: #5944f2;
    font-weight: 800;
    text-decoration: none;
}

.wpm-account-dropdown .wpm-logout button {
    width: 100%;
    padding: 10px 12px;
}

.wpm-content {
    padding: 24px 20px 0;
}

.wpm-card,
.wpm-feature-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.wpm-card {
    margin-bottom: 18px;
    padding: 24px;
}

.wpm-card h2 {
    margin: 0 0 14px;
    font-size: 25px;
    line-height: 1.2;
    color: #101827;
}

.wpm-card p {
    margin: 0 0 14px;
    color: var(--wpm-muted);
}

.wpm-menu-list {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.wpm-feature-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 94px;
    padding: 18px 20px;
    color: inherit;
    text-decoration: none;
}

.wpm-feature-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.wpm-feature-card small {
    display: block;
    margin-top: 6px;
    color: var(--wpm-muted);
    font-size: 15px;
}

.wpm-feature-card b {
    margin-left: auto;
    color: #c4cad6;
    font-size: 42px;
    line-height: 1;
}

.wpm-feature-icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 20px;
}

.wpm-icon-blue {
    background: #e8f0ff;
}

.wpm-icon-purple {
    background: #f0e8ff;
}

.wpm-icon-gold {
    background: #fff6df;
}

.wpm-form {
    display: grid;
    gap: 14px;
}

.wpm-form label {
    display: grid;
    gap: 7px;
    color: #3f4858;
    font-weight: 700;
}

.wpm-form input,
.wpm-form textarea {
    width: 100%;
    border: 1px solid #d9deea;
    border-radius: 12px;
    padding: 12px 14px;
    color: #111827;
    font: inherit;
    background: #fff;
    box-sizing: border-box;
}

.wpm-form button,
.wpm-logout button,
.wpm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    background: #5944f2;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.wpm-button-light {
    background: #e9ecf5;
    color: #101827;
}

.wpm-button:disabled,
.wpm-button[disabled] {
    cursor: not-allowed;
    opacity: 0.48;
}

.wpm-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.wpm-logout {
    margin: 0;
}

.wpm-form-link {
    margin-top: 14px;
}

.wpm-form-section {
    display: grid;
    gap: 12px;
    border: 1px solid #e4e8f1;
    border-radius: 14px;
    padding: 14px;
    background: #fbfcff;
}

.wpm-form-section h3 {
    margin: 0;
    color: #101827;
    font-size: 18px;
    line-height: 1.2;
}

.wpm-section-title {
    margin: 6px 0 0;
    padding-top: 8px;
    border-top: 1px solid #e4e8f1;
    color: #101827;
    font-size: 16px;
    line-height: 1.2;
}

.wpm-form-section p {
    margin: 0;
    color: var(--wpm-muted);
    font-weight: 500;
}

.wpm-worker-rows {
    display: grid;
    gap: 12px;
}

.wpm-worker-row {
    display: grid;
    gap: 10px;
    border: 1px solid #e4e8f1;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.wpm-worker-empty {
    border: 1px dashed #cfd6e4;
    border-radius: 12px;
    padding: 14px;
    color: var(--wpm-muted);
    background: #fff;
}

.wpm-worker-empty a {
    color: #5944f2;
    font-weight: 800;
}

.wpm-form .wpm-worker-row-apply {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.wpm-worker-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.wpm-worker-info small {
    color: var(--wpm-muted);
    font-weight: 700;
}

.wpm-vehicle-photo-thumb {
    display: block;
    width: 78px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e4e8f1;
    margin-top: 6px;
}

.wpm-manage-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.wpm-manage-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpm-manage-actions button,
.wpm-manage-edit,
.wpm-vehicle-remove {
    border: 0;
    border-radius: 10px;
    padding: 9px 10px;
    font-weight: 800;
    cursor: pointer;
}

.wpm-manage-edit {
    background: #e9ecf5;
    color: #101827;
}

.wpm-manage-edit-panel {
    display: none;
    gap: 10px;
}

.wpm-manage-edit-panel.is-open {
    display: grid;
}

.wpm-worker-participate {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #3f4858;
    font-size: 13px;
    font-weight: 800;
}

.wpm-form .wpm-worker-participate input {
    width: auto;
}

.wpm-worker-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 8px !important;
}

.wpm-worker-remove {
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #feeceb;
    color: #9c1c16;
    font-weight: 800;
}

.wpm-vehicle-remove {
    background: #feeceb;
    color: #9c1c16;
}

.wpm-consent {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
    border: 1px solid #e4e8f1;
    border-radius: 14px;
    padding: 14px;
    background: #fbfcff;
    line-height: 1.45;
}

.wpm-consent input {
    width: auto;
    margin-top: 4px;
}

.wpm-search-results {
    display: none;
    overflow: hidden;
    border: 1px solid #d9deea;
    border-radius: 12px;
    background: #fff;
}

.wpm-search-results button {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    border-radius: 0;
    padding: 12px;
    background: #fff;
    color: #111827;
    text-align: left;
    font-weight: 700;
}

.wpm-alert {
    margin-bottom: 16px;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 700;
}

.wpm-alert-success {
    background: #e8f8ef;
    color: #11643b;
}

.wpm-alert-error {
    background: #feeceb;
    color: #9c1c16;
}

.wpm-permit-list {
    display: grid;
    gap: 10px;
}

.wpm-permit-row {
    display: grid;
    gap: 4px;
    border-bottom: 1px solid #edf0f5;
    padding: 10px 0;
}

.wpm-permit-shop-name {
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
}

.wpm-permit-row span {
    color: var(--wpm-muted);
}

.wpm-permit-row small {
    color: #5f6878;
}

.wpm-permit-row em,
.wpm-status-pending,
.wpm-status-approved,
.wpm-status-rejected {
    font-style: normal;
    font-weight: 800;
}

.wpm-status-pending {
    color: #a96e00;
}

.wpm-status-approved {
    color: #078348;
}

.wpm-status-rejected {
    color: #b3261e;
}

.wpm-notice-list {
    display: grid;
    gap: 18px;
}

.wpm-notice-card small {
    display: block;
    margin-top: 12px;
    color: var(--wpm-muted);
    font-weight: 700;
}

.wpm-notice-image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
}

.wpm-notice-priority {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.wpm-notice-priority::before {
    content: "!";
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 11px;
    color: #fff;
}

.wpm-priority-normal {
    color: #2563eb;
    background: #eaf2ff;
}

.wpm-priority-normal::before {
    content: "i";
    background: #2563eb;
}

.wpm-priority-important {
    color: #b42318;
    background: #fff0ee;
}

.wpm-priority-important::before {
    background: #d92d20;
}

.wpm-priority-reminder {
    color: #9a6700;
    background: #fff7dc;
}

.wpm-priority-reminder::before {
    content: "!";
    background: #d6a100;
}

.wpm-profile {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.wpm-profile span {
    color: var(--wpm-muted);
}

.wpm-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    max-width: 520px;
    margin: 0 auto;
    background: var(--wpm-navy);
    padding: 4px 4px calc(8px + env(safe-area-inset-bottom));
    color: #aeb5c6;
    min-height: calc(var(--wpm-nav-height) + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 34px rgba(15, 23, 42, 0.14);
}

.wpm-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    min-width: 0;
    min-height: 55px;
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
}

.wpm-nav-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: currentColor;
    box-sizing: border-box;
}

.wpm-nav-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 5.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-nav-link-dashboard {
    color: #d7ccff;
    transform: none;
}

.wpm-nav-link-dashboard::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: 63px;
    height: 63px;
    border-radius: 50%;
    background: #151b33;
    transform: translateX(-50%);
    z-index: -1;
}

.wpm-nav-item.is-active {
    color: #fff;
}

.wpm-nav-link-dashboard .wpm-nav-icon {
    position: absolute;
    top: -14px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border-radius: 50%;
    background: linear-gradient(145deg, #6a58ff 0%, #5038e7 100%);
    color: #fff;
    border: 4px solid #6a58ff;
    box-shadow:
        0 0 0 7px #171d3a,
        0 0 18px rgba(101, 76, 255, 0.46),
        0 8px 16px rgba(40, 22, 150, 0.3);
    transform: translateX(-50%);
}

.wpm-nav-link-dashboard .wpm-nav-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 5.1;
}

.wpm-nav-link-dashboard > span:last-child {
    margin-top: 0;
    font-size: inherit;
    line-height: 1.1;
}

.wpm-small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 10px;
    background: #5b42f3;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.wpm-permit-view h2,
.wpm-scan-app h2 {
    margin-top: 0;
}

.wpm-permit-meta {
    display: grid;
    grid-template-columns: minmax(120px, 0.45fr) 1fr;
    gap: 10px 14px;
    margin: 18px 0;
}

.wpm-permit-meta dt {
    color: #8b94a8;
    font-weight: 700;
}

.wpm-permit-meta dd {
    margin: 0;
    color: #111827;
    font-weight: 800;
}

.wpm-qr-box {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    background: #fff;
}

.wpm-qr-box img {
    width: 260px;
    max-width: 100%;
    height: auto;
}

.wpm-qr-box small {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #6b7280;
    text-align: center;
}

.wpm-copy-token {
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: #5b42f3;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.wpm-scan-result {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 18px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    text-align: left;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.wpm-scan-ready {
    cursor: pointer;
}

.wpm-scan-result strong {
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0;
}

.wpm-scan-result span {
    font-size: 15px;
    font-weight: 700;
}

.wpm-scan-green {
    background: #16a34a;
}

.wpm-scan-yellow {
    background: #f59e0b;
    color: #111827;
}

.wpm-scan-red {
    background: #dc2626;
}

.wpm-scan-grey {
    background: #6b7280;
}

.wpm-scanner video {
    display: block;
    width: 100%;
    max-width: 180px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: #0f172a;
    object-fit: cover;
}

.wpm-scanner video[hidden] {
    display: none;
}

.wpm-scan-help {
    color: #6b7280;
    font-size: 14px;
}

#wpm-security-result {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.wpm-staff-dashboard {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

.wpm-staff-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e6eaf2;
}

.wpm-staff-header div {
    display: grid;
    gap: 4px;
}

.wpm-staff-header h2 {
    margin: 0;
}

.wpm-staff-header strong {
    color: #111827;
    font-size: 18px;
}

.wpm-staff-header span {
    color: #6b7280;
}

.wpm-staff-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.wpm-staff-section-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px;
    border-radius: 14px;
    background: #eef2f8;
}

.wpm-staff-section-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #647084;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.wpm-staff-section-nav a.is-active {
    background: #fff;
    color: #111827;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.wpm-staff-section-nav:has(a:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpm-staff-filters label {
    display: grid;
    gap: 6px;
    color: #111827;
    font-weight: 700;
}

.wpm-staff-filters input,
.wpm-staff-filters select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9deea;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
}

.wpm-staff-filters .wpm-action-row {
    align-self: end;
}

.wpm-staff-status-filter {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.wpm-staff-status-filter label {
    display: grid;
    gap: 6px;
    min-width: 220px;
    color: #111827;
    font-weight: 800;
}

.wpm-staff-status-filter select {
    min-height: 42px;
    border: 1px solid #d9deea;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
}

.wpm-staff-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.wpm-staff-stat {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    background: #f8fafc;
}

.wpm-staff-stat span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.wpm-staff-stat strong {
    color: #111827;
    font-size: 30px;
    line-height: 1;
}

.wpm-staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wpm-staff-grid .wpm-staff-panel:first-child {
    grid-column: 1 / -1;
}

.wpm-staff-panel {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    background: #fff;
}

.wpm-staff-panel h3 {
    margin: 0 0 14px;
    color: #111827;
}

.wpm-trend-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    min-height: 190px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.wpm-trend-bar {
    display: grid;
    grid-template-rows: 130px auto auto;
    justify-items: center;
    gap: 6px;
    min-width: 44px;
    color: #6b7280;
    font-size: 12px;
}

.wpm-trend-bar span {
    align-self: end;
    width: 24px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, #635bff, #2f6fed);
}

.wpm-trend-bar b {
    color: #111827;
}

.wpm-rank-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.wpm-rank-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eef1f6;
}

.wpm-rank-list li::marker {
    color: #6b7280;
    font-weight: 800;
}

.wpm-rank-list span {
    display: inline-block;
    max-width: calc(100% - 50px);
    color: #111827;
    font-weight: 800;
}

.wpm-rank-list strong {
    float: right;
    color: #635bff;
}

.wpm-staff-applications {
    margin-top: 14px;
}

.wpm-staff-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.wpm-staff-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.wpm-staff-application-cards {
    display: none;
}

.wpm-staff-application-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    background: #fff;
}

.wpm-staff-application-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wpm-staff-application-card dl {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 7px 10px;
    margin: 0;
}

.wpm-staff-application-card dt {
    color: #6b7280;
    font-weight: 800;
}

.wpm-staff-application-card dd {
    margin: 0;
    color: #111827;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.wpm-staff-table th,
.wpm-staff-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef1f6;
    text-align: left;
    vertical-align: top;
}

.wpm-staff-table th {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
}

.wpm-staff-table td {
    color: #111827;
    font-weight: 700;
}

.wpm-staff-detail {
    margin-bottom: 14px;
    border-color: #cdd6ea;
    background: #f8fafc;
}

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

.wpm-staff-detail-head h3 {
    margin: 0;
}

.wpm-staff-detail .wpm-permit-meta {
    grid-template-columns: minmax(150px, 0.35fr) 1fr;
}

.wpm-staff-detail-list {
    margin: 0;
    padding-left: 18px;
}

.wpm-staff-review-form {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e0e6f2;
}

.wpm-staff-muted,
.wpm-last-scan {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.wpm-scan-header {
    margin-bottom: 14px;
}

.wpm-token-panel {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.wpm-token-panel input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9deea;
    border-radius: 10px;
    padding: 8px 10px;
}

.wpm-staff-applications.is-loading {
    opacity: 0.58;
    pointer-events: none;
}

.wpm-token-panel[hidden] {
    display: none;
}

@media (max-width: 420px) {
    .wpm-title {
        font-size: 22px;
    }

    .wpm-subtitle {
        font-size: 15px;
    }

    .wpm-topbar {
        min-height: 56px;
        padding: 9px 12px;
    }

    .wpm-brand {
        gap: 10px;
    }

    .wpm-mark,
    .wpm-logo {
        width: 42px;
        height: 42px;
    }

    .wpm-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .wpm-account-toggle {
        gap: 8px;
    }

    .wpm-card {
        padding: 20px;
    }

    .wpm-permit-meta {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 900px) {
    .wpm-staff-filters,
    .wpm-staff-grid {
        grid-template-columns: 1fr;
    }

    .wpm-staff-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .wpm-staff-dashboard {
        padding: 12px;
    }

    .wpm-staff-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpm-staff-stat {
        padding: 13px;
    }

    .wpm-staff-stat strong {
        font-size: 24px;
    }

    .wpm-staff-table-wrap {
        display: none;
    }

    .wpm-staff-application-cards {
        display: grid;
        gap: 12px;
    }

    .wpm-staff-detail .wpm-permit-meta {
        grid-template-columns: 1fr;
    }

    .wpm-staff-section-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .wpm-topbar {
        padding-right: 12px;
        padding-left: 12px;
    }

    .wpm-brand {
        gap: 10px;
    }

    .wpm-mark,
    .wpm-logo {
        width: 38px;
        height: 38px;
    }

    .wpm-title {
        font-size: 20px;
    }

    .wpm-subtitle {
        font-size: 14px;
    }

    .wpm-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .wpm-chevron {
        width: 18px;
        height: 18px;
    }

    .wpm-bottom-nav {
        padding-right: 2px;
        padding-left: 2px;
    }

    .wpm-nav-item {
        font-size: 12px;
    }

    .wpm-nav-icon {
        width: 35px;
        height: 35px;
    }

    .wpm-nav-link-dashboard .wpm-nav-icon {
        width: 49px;
        height: 49px;
    }

    .wpm-nav-link-dashboard::before {
        width: 63px;
        height: 63px;
    }

    .wpm-nav-link-dashboard .wpm-nav-icon svg {
        width: 32px;
        height: 32px;
    }
}
