:root {
    --ink: #26282d;
    --muted: #62666d;
    --red: #bb273b;
    --red-hover: #9f1f31;
    --line: #dedfe3;
    --canvas: #f5f5f6;
    --green: #256346;
    --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, a:focus-visible { outline: 3px solid #3475bc; outline-offset: 4px; }
input:focus-visible { outline: 3px solid #d3e0ef; outline-offset: 1px; border-color: #547fab; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 18px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1184px; margin: 0 auto; padding: 24px 32px; min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 22px; text-decoration: none; flex-shrink: 0; }
.brand-name { font-size: 24px; font-weight: 750; letter-spacing: -.9px; line-height: 1; }
.brand-period { color: var(--red); }
.brand-product { border-left: 1px solid #cfd1d6; padding-left: 22px; color: var(--muted); font-size: 16px; }
.account { display: flex; align-items: center; gap: 25px; min-width: 0; font-size: 15px; }
.account > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 250px; }
.account form { flex-shrink: 0; }
.text-button { border: 0; padding: 6px 0; color: var(--muted); background: transparent; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--red); }
.button { min-height: 54px; padding: 13px 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 7px; font-size: 17px; font-weight: 600; line-height: 1.4; text-align: center; transition: background-color .15s, border-color .15s; }
.button--primary { color: white; background: var(--red); border-color: var(--red); }
.button--primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.button--secondary { color: var(--ink); background: white; border-color: #bec2c9; }
.button--secondary:hover { background: #f2f2f4; border-color: #90969f; }

.dashboard { max-width: 1184px; padding: 54px 32px 32px; margin: 0 auto; }
.page-heading { margin-bottom: 34px; }
.page-heading h1 { font-size: 44px; font-weight: 650; line-height: 1.18; letter-spacing: -1.5px; }
.page-heading p { margin-top: 13px; font-size: 18px; color: var(--muted); }
.check-section { border: 1px solid var(--line); border-radius: 10px; background: white; overflow: hidden; }
.check-main { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 35px 36px; }
.check-copy h2 { font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -.5px; }
.check-copy p { font-size: 18px; color: var(--muted); margin-top: 9px; }
.check-main .button { min-width: 254px; flex-shrink: 0; }
.last-check { border-top: 1px solid #e9e9ed; padding: 18px 36px; display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); }
.last-check > span { color: #41454c; }
.action-list { margin-top: 26px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.action-row { padding: 31px 36px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.action-row + .action-row { border-top: 1px solid #e5e6e9; }
.action-description { min-width: 0; }
.action-description h2 { font-size: 24px; font-weight: 600; line-height: 1.35; letter-spacing: -.4px; }
.action-description p { font-size: 17px; color: var(--muted); margin-top: 8px; }
.action-row > .button { min-width: 254px; flex-shrink: 0; }
.action-heading { display: flex; align-items: baseline; gap: 15px; flex-wrap: wrap; }
.monitoring-status { color: var(--muted); font-size: 15px; }
.monitoring-status b { font-weight: 500; }
.monitoring-status.is-on { color: var(--green); }
.page-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.welcome-notice { color: var(--green); background: #e9f3ed; border: 1px solid #cdddce; border-radius: 7px; padding: 14px 18px; font-size: 16px; margin-bottom: 22px; }

.auth-page { min-height: 100dvh; display: flex; flex-direction: column; background: white; }
.auth-switch { font-size: 16px; font-weight: 500; text-underline-offset: 4px; }
.auth-switch:hover { color: var(--red); }
.auth-main { width: min(448px, calc(100% - 48px)); margin: auto; padding: 58px 0 55px; }
.auth-main h1 { font-size: 38px; letter-spacing: -1px; font-weight: 650; line-height: 1.2; }
.auth-intro { margin-top: 12px; color: var(--muted); font-size: 17px; }
.auth-form { margin-top: 34px; }
.form-field { margin-bottom: 24px; }
.form-field label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 9px; }
.form-field input { width: 100%; height: 54px; border: 1px solid #bfc3ca; border-radius: 6px; padding: 11px 14px; color: var(--ink); background: white; font-size: 18px; }
.form-field input:hover { border-color: #89929e; }
.form-field input[aria-invalid=true] { border-color: var(--red); }
.password-control { position: relative; }
.password-control input { padding-right: 76px; }
.password-toggle { position: absolute; right: 5px; top: 5px; min-height: 44px; padding: 0 10px; font-size: 14px; color: var(--muted); background: white; border: 0; border-radius: 4px; }
.password-toggle:hover { color: var(--ink); background: #f3f3f5; }
.auth-submit { width: 100%; margin-top: 3px; min-height: 55px; }
.auth-alternative { font-size: 16px; margin-top: 26px; color: var(--muted); text-align: center; }
.auth-alternative a { font-weight: 500; text-underline-offset: 3px; color: var(--ink); margin-left: 4px; }
.auth-alternative a:hover { color: var(--red); }
.auth-footer { text-align: center; color: var(--muted); font-size: 14px; padding: 0 24px 28px; }
.form-alert { border: 1px solid #e6bfc5; border-radius: 6px; padding: 13px 16px; color: #9d2033; background: #fff0f1; font-size: 16px; margin-top: 25px; }
.field-error { display: block; color: #a11d32; font-size: 14px; margin-top: 7px; }
.field-hint { display: block; font-size: 14px; color: var(--muted); margin-top: 7px; }

.has-modal { overflow: hidden; }
.modal { border: 0; border-radius: 12px; padding: 0; width: min(540px, calc(100vw - 32px)); color: var(--ink); background: white; box-shadow: 0 18px 70px #15182133; max-height: calc(100dvh - 32px); }
.modal::backdrop { background: #20242d70; }
.modal-inner { position: relative; padding: 64px 36px 32px; }
.modal-close { position: absolute; top: 17px; right: 23px; font-size: 14px; }
.modal h2 { font-size: 28px; line-height: 1.3; letter-spacing: -.6px; font-weight: 600; }
#modal-description { font-size: 18px; line-height: 1.65; margin-top: 15px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 32px; }
.modal-actions:empty { display: none; }
.modal-actions .button { min-width: 108px; }
.modal[data-state=error] h2 { color: #a11d32; }
.modal-symbol { margin-bottom: 25px; }
.spinner { display: block; width: 30px; height: 30px; border: 3px solid #e4e6e9; border-top-color: #6d737d; border-radius: 50%; animation: spin .8s linear infinite; }
.toast { position: fixed; bottom: 24px; right: 24px; border: 1px solid #cedbd2; border-radius: 7px; padding: 16px 21px; color: var(--green); background: white; z-index: 5; max-width: calc(100vw - 32px); font-size: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 940px) {
    .header-inner { padding-left: 28px; padding-right: 28px; }
    .dashboard { padding-left: 28px; padding-right: 28px; }
    .check-main { gap: 25px; padding: 30px; }
    .check-main .button, .action-row > .button { min-width: 230px; font-size: 16px; }
    .check-copy p, .action-description p { font-size: 16px; }
    .check-copy h2 { font-size: 26px; }
    .action-row { padding: 30px; gap: 25px; }
    .action-description h2 { font-size: 22px; }
    .action-heading { gap: 7px 15px; }
    .brand { gap: 16px; }
    .brand-product { padding-left: 16px; font-size: 15px; }
    .account { gap: 17px; font-size: 14px; }
    .account > span { max-width: 180px; }
}
@media (max-width: 690px) {
    .header-inner { min-height: 82px; padding: 20px 22px; gap: 15px; }
    .brand { display: block; }
    .brand-name { font-size: 22px; }
    .brand-product { display: block; border: 0; padding: 0; font-size: 13px; margin-top: 5px; }
    .account { display: block; text-align: right; font-size: 13px; }
    .account > span { display: block; max-width: 195px; }
    .text-button { font-size: 13px; }
    .dashboard { padding: 37px 20px 26px; }
    .page-heading { margin-bottom: 27px; }
    .page-heading h1 { font-size: 37px; letter-spacing: -1px; }
    .page-heading p { font-size: 17px; line-height: 1.65; margin-top: 12px; max-width: 400px; }
    .check-main { display: block; padding: 27px 25px; }
    .check-copy h2 { font-size: 26px; }
    .check-copy p { font-size: 17px; }
    .check-main .button { width: 100%; margin-top: 25px; font-size: 17px; }
    .last-check { display: block; padding: 17px 25px; font-size: 14px; }
    .last-check > span { display: block; margin-top: 4px; font-size: 15px; }
    .action-list { margin-top: 20px; }
    .action-row { display: block; padding: 27px 25px; }
    .action-description h2 { font-size: 23px; }
    .action-description p { font-size: 17px; margin-top: 9px; line-height: 1.6; }
    .action-row > .button { margin-top: 24px; width: 100%; font-size: 17px; }
    .action-heading { gap: 6px 13px; }
    .page-footer { font-size: 12px; margin-top: 24px; gap: 12px; }
    .auth-switch { font-size: 15px; }
    .auth-main { padding-top: 44px; padding-bottom: 45px; margin-top: auto; }
    .auth-main h1 { font-size: 34px; }
    .auth-alternative { font-size: 15px; line-height: 1.8; }
    .auth-footer { font-size: 12px; }
    .modal-inner { padding: 63px 26px 27px; }
    .modal h2 { font-size: 26px; }
    #modal-description { font-size: 17px; }
    .modal-actions .button { min-width: 100px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
