.psw-wrap .psw-card,
.psw-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.psw {
    color: #111827;
}

.psw-dashboard {
    max-width: 1500px;
}

.psw-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-left: 4px solid #111827;
}

.psw-hero-title {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
}

.psw-hero-text {
    margin: 0;
    color: #4b5563;
}

.psw-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.psw-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.psw-stat {
    margin: 0;
}

.psw-stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
}

.psw-stat-value {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
    margin: 8px 0 6px;
}

.psw-stat-hint {
    color: #6b7280;
    font-size: 14px;
}

.psw-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(380px, .95fr);
    gap: 20px;
    align-items: start;
}

.psw-main,
.psw-side {
    min-width: 0;
}

.psw-card-inner {
    background: #fafafa;
}

.psw-grid {
    display: grid;
    gap: 20px;
}

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

.psw-section-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.psw-section-head h2,
.psw-section-head h3 {
    margin-bottom: 6px;
}

.psw-section-head p {
    margin: 0;
    color: #6b7280;
}

.psw-form input[type="text"],
.psw-form input[type="email"],
.psw-form input[type="date"],
.psw-form textarea,
.psw-form select,
.psw-settings-form input[type="text"],
.psw-settings-form input[type="email"],
.psw-settings-form input[type="number"],
.psw-settings-form select {
    width: 100%;
    max-width: 100%;
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    padding: 10px 12px;
    box-sizing: border-box;
    background: #fff;
}

.psw-form textarea {
    resize: vertical;
}

.psw-button,
.psw .button,
.psw-wrap .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
}

.psw-button:hover,
.psw .button:hover,
.psw-wrap .button:hover {
    background: #f9fafb;
}

.psw-button-primary,
.psw .button-primary,
.psw-wrap .button-primary {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.psw-button-primary:hover,
.psw .button-primary:hover,
.psw-wrap .button-primary:hover {
    background: #000;
    color: #fff;
}

.psw-table-wrap {
    overflow-x: auto;
}

.psw-table {
    min-width: 760px;
}

.psw-table td,
.psw-table th {
    vertical-align: top;
}

.psw-actions {
    white-space: nowrap;
}

.psw-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.6;
}

.psw-badge.ok {
    background: #e7f7ed;
    color: #106b39;
}

.psw-badge.wait {
    background: #fff5d7;
    color: #8a5b00;
}

.psw-box {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    min-height: 40px;
    white-space: pre-wrap;
}

.psw-log {
    list-style: disc;
    padding-left: 20px;
}

.psw-success {
    border-left: 4px solid #00a32a;
}

.psw-alert {
    border-radius: 12px;
    padding: 14px 18px;
    margin: 16px 0;
    border: 1px solid transparent;
}

.psw-alert p {
    margin: 0;
}

.psw-alert-success {
    background: #ecfdf3;
    border-color: #b7ebc6;
    color: #166534;
}

.psw-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.psw-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

@media (max-width: 1100px) {
    .psw-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 900px) {
    .psw-grid-2,
    .psw-stats {
        grid-template-columns: 1fr;
    }

    .psw-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .psw-hero-title {
        font-size: 26px;
    }
}


.psw-login-screen {
    max-width: 980px;
    margin: 24px auto;
}

.psw-login-shell {
    display: flex;
    justify-content: center;
}

.psw-login-card {
    width: 100%;
    max-width: 720px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe2ea;
    box-shadow: 0 12px 30px rgba(17,24,39,.08);
}

.psw-login-brand {
    padding: 32px 32px 18px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
}

.psw-login-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.psw-login-title {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.15;
    color: #fff;
}

.psw-login-text {
    margin: 0;
    color: rgba(255,255,255,.86);
    max-width: 56ch;
}

.psw-login-form-wrap {
    padding: 28px 32px 32px;
}

#psw-loginform p {
    margin: 0 0 16px;
}

#psw-loginform label {
    display: block;
    font-weight: 600;
    color: #111827;
}

#psw-loginform input[type="text"],
#psw-loginform input[type="password"] {
    width: 100%;
    margin-top: 8px;
    border: 1px solid #cfd4dc;
    border-radius: 10px;
    padding: 12px 14px;
    box-sizing: border-box;
    background: #fff;
}

#psw-loginform .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

#psw-loginform .login-submit {
    margin-top: 6px;
}

#psw-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid #111827;
    background: #111827;
    color: #fff;
    cursor: pointer;
}

#psw-login-submit:hover {
    background: #000;
}

.psw-login-meta {
    margin-top: 10px;
    font-size: 14px;
}

.psw-login-meta a {
    color: #1d4ed8;
    text-decoration: none;
}

.psw-login-meta a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .psw-login-brand,
    .psw-login-form-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    .psw-login-title {
        font-size: 26px;
    }
}
