:root {
    --cs-hdp-navy: #435667;
    --cs-hdp-navy-deep: #263746;
    --cs-hdp-sage: #bdd1c4;
    --cs-hdp-coral: #c46c5b;
    --cs-hdp-cream: #fdf5ec;
    --cs-hdp-white: #ffffff;
    --cs-hdp-text: #172536;
    --cs-hdp-muted: #526273;
    --cs-hdp-border: #cbd7df;
    --cs-hdp-good: #0a7a43;
    --cs-hdp-bad: #a3261d;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cs-hdp-cream); }
body.cs-hdp-mobile-body {
    margin: 0;
    min-height: 100vh;
    color: var(--cs-hdp-text);
    background:
        radial-gradient(circle at 12% 6%, rgba(189,209,196,.45), transparent 30rem),
        linear-gradient(180deg, #fff 0, var(--cs-hdp-cream) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    overflow-x: hidden;
}
.cs-hdp-skip-link { position: absolute; left: -9999px; }
.cs-hdp-skip-link:focus { left: 1rem; top: 1rem; z-index: 9999; padding: .75rem; background: #fff; }
.cs-hdp-mobile-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: max(24px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom));
}
.cs-hdp-mobile-card {
    background: rgba(255,255,255,.96);
    border: 2px solid var(--cs-hdp-border);
    border-radius: 28px;
    box-shadow: 0 22px 60px rgba(38,55,70,.13);
    padding: clamp(22px, 5vw, 42px);
}
.cs-hdp-brand { display: grid; grid-template-columns: 132px 1fr; gap: 24px; align-items: center; }
.cs-hdp-brand img { width: 132px; height: 138px; object-fit: contain; }
.cs-hdp-kicker { margin: 0 0 4px; color: var(--cs-hdp-coral); font-weight: 900; letter-spacing: .12em; font-size: .78rem; }
.cs-hdp-brand h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.08; color: var(--cs-hdp-navy-deep); }
.cs-hdp-subtitle { margin: 12px 0 0; color: var(--cs-hdp-muted); font-size: 1.06rem; }
.cs-hdp-alert { margin: 24px 0; border-radius: 16px; padding: 16px 18px; font-weight: 700; }
.cs-hdp-alert-error { background: #fff0ee; border: 2px solid #efaaa3; color: var(--cs-hdp-bad); }
.cs-hdp-alert-good { background: #ebf8f0; border: 2px solid #8bd4aa; color: var(--cs-hdp-good); }
.cs-hdp-login-form { margin-top: 28px; display: grid; gap: 12px; }
.cs-hdp-login-form label { font-weight: 800; color: var(--cs-hdp-navy-deep); }
.cs-hdp-login-form input[type="text"],
.cs-hdp-login-form input[type="password"] {
    width: 100%;
    min-height: 58px;
    border: 2px solid #8298ad;
    border-radius: 15px;
    padding: 12px 16px;
    color: var(--cs-hdp-text);
    background: #fff;
    font: inherit;
    font-size: 1.05rem;
}
.cs-hdp-login-form input:focus { outline: 4px solid rgba(196,108,91,.25); border-color: var(--cs-hdp-coral); }
.cs-hdp-password-wrap { position: relative; }
.cs-hdp-password-wrap input { padding-right: 88px !important; }
.cs-hdp-password-toggle { position: absolute; right: 8px; top: 8px; min-height: 42px; border: 0; border-radius: 11px; padding: 0 14px; background: #e7eef5; color: var(--cs-hdp-navy-deep); font-weight: 800; }
.cs-hdp-remember { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 10px; }
.cs-hdp-remember input { width: 24px; height: 24px; margin: 2px 0 0; flex: 0 0 auto; }
.cs-hdp-button {
    display: inline-flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #8ba0b5;
    border-radius: 16px;
    padding: 12px 18px;
    background: #edf3fa;
    color: var(--cs-hdp-navy-deep) !important;
    font: inherit;
    font-weight: 900;
    text-decoration: none !important;
    cursor: pointer;
}
.cs-hdp-button:hover, .cs-hdp-button:focus { filter: brightness(.97); outline: 4px solid rgba(196,108,91,.22); }
.cs-hdp-button-primary { background: var(--cs-hdp-navy); border-color: var(--cs-hdp-navy); color: #fff !important; }
.cs-hdp-button-muted { background: var(--cs-hdp-cream); border-color: #d2b9aa; }
.cs-hdp-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.cs-hdp-help-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 18px 0 0; }
.cs-hdp-help-links a { color: var(--cs-hdp-navy-deep); font-weight: 800; }
.cs-hdp-install { margin-top: 30px; padding: 20px; border-radius: 18px; background: #f4f8f5; border: 2px solid var(--cs-hdp-sage); }
.cs-hdp-install h2 { margin: 0 0 10px; font-size: 1.35rem; color: var(--cs-hdp-navy-deep); }
.cs-hdp-install p { margin: 8px 0; }
.cs-hdp-copy-status { min-height: 1.5em; margin-bottom: 0 !important; color: var(--cs-hdp-good); font-weight: 800; }
.cs-hdp-security-note { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--cs-hdp-border); color: var(--cs-hdp-muted); font-size: .94rem; }
.cs-hdp-mobile-footer { text-align: center; color: var(--cs-hdp-muted); font-size: .78rem; padding: 18px 8px 0; }
@media (max-width: 640px) {
    body.cs-hdp-mobile-body { font-size: 17px; }
    .cs-hdp-mobile-shell { padding-left: 12px; padding-right: 12px; }
    .cs-hdp-mobile-card { border-radius: 22px; padding: 22px 18px; }
    .cs-hdp-brand { grid-template-columns: 92px 1fr; gap: 15px; align-items: start; }
    .cs-hdp-brand img { width: 92px; height: 96px; }
    .cs-hdp-brand h1 { font-size: clamp(1.75rem, 8vw, 2.35rem); }
    .cs-hdp-subtitle { font-size: 1rem; }
    .cs-hdp-action-grid { grid-template-columns: 1fr; }
    .cs-hdp-help-links { flex-direction: column; }
}
@media (max-width: 390px) {
    .cs-hdp-brand { grid-template-columns: 1fr; text-align: center; }
    .cs-hdp-brand img { margin: 0 auto; width: 108px; height: 112px; }
}
@media print {
    body.cs-hdp-mobile-body { background: #fff; }
    .cs-hdp-mobile-shell { width: 100%; padding: 0; }
    .cs-hdp-mobile-card { box-shadow: none; }
    .cs-hdp-install, .cs-hdp-login-form, .cs-hdp-help-links, .cs-hdp-mobile-footer { display: none !important; }
}
