/* Extends the approved A2 palette; cloud-specific screens never change the working layout. */
[data-cloud-ready="false"] > .app-shell, [data-cloud-ready="false"] > .mobile-nav { display: none !important; }
.cloud-gate { min-height: 100dvh; background: #fff; color: #172b49; padding: 38px clamp(24px, 6vw, 96px) 20px; display: flex; flex-direction: column; }
.cloud-gate[hidden] { display: none; }
.cloud-login-brand { display: flex; align-items: center; gap: 13px; font-size: 24px; font-weight: 760; letter-spacing: .04em; }
.cloud-login-brand small { font-size: 13px; font-weight: 450; letter-spacing: 0; display: block; color: #657790; margin-top: 3px; }
.cloud-login-layout { width: min(960px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; margin: auto; padding: 56px 0; }
.cloud-login-card { width: 100%; }
.cloud-eyebrow { color: #3663c1; font-size: 12px; letter-spacing: .1em; font-weight: 700; }
.cloud-login-card h1 { font-family: inherit; font-size: clamp(26px, 3vw, 34px); font-weight: 750; line-height: 1.35; margin: 16px 0 10px; letter-spacing: -.03em; }
.cloud-intro { color: #63748c; margin: 0 0 28px; font-size: 16px; }
.cloud-gate form, .cloud-dialog form { display: grid; gap: 18px; }
.cloud-gate form label, .cloud-dialog form label { display: grid; gap: 9px; font-size: 14px; color: #354964; font-weight: 600; }
.cloud-gate input, .cloud-dialog input { width: 100%; min-width: 0; height: 46px; border: 1px solid #d7e0ec; border-radius: 9px; padding: 0 13px; background: #fff; color: #172b49; font: inherit; font-size: 16px; }
.cloud-gate input:focus, .cloud-dialog input:focus { border-color: #3565e7; outline: 3px solid #e4edff; }
.cloud-primary, .cloud-secondary, .cloud-danger { border-radius: 9px; min-height: 42px; padding: 11px 16px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; text-align: center; }
.cloud-primary { background: #2859df; border: 1px solid #2859df; color: #fff; }
.cloud-primary:hover { background: #1e48bd; }
.cloud-secondary { background: #fff; border: 1px solid #ccd8e9; color: #2c4b77; }
.cloud-secondary:hover { background: #f1f6ff; }
.cloud-danger { background: #fff; border: 1px solid #edc8c4; color: #b33c34; width: 100%; margin-top: 18px; }
.cloud-gate button:disabled, .cloud-dialog button:disabled { opacity: .55; cursor: not-allowed; }
#cloud-login-submit { display: flex; justify-content: center; gap: 18px; margin-top: 4px; }
.cloud-link { color: #2c5ecd; border: 0; background: transparent; padding: 12px 0; font: inherit; font-size: 14px; cursor: pointer; }
.cloud-notice { border: 1px solid #ecd9a6; border-radius: 9px; background: #fffaf0; color: #785817; padding: 12px 14px; font-size: 14px; line-height: 1.7; margin-bottom: 22px; }
.cloud-message { color: #a64538; font-size: 14px; line-height: 1.7; margin: 8px 0; overflow-wrap: anywhere; }
.cloud-message:empty { display: none; }
.cloud-login-footnote { color: #66788b; font-size: 13px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e8eef5; }
.cloud-lock { color: #2b9a7c; font-size: 12px; margin-right: 5px; }
.cloud-login-aside { text-align: center; border-radius: 24px; padding: 38px 24px; background: #f4f8fd; }
.cloud-login-aside img { width: min(320px, 100%); height: auto; mix-blend-mode: multiply; }
.cloud-login-aside h2 { font-family: inherit; font-size: 22px; line-height: 1.6; margin: 16px 0 10px; }
.cloud-login-aside p { font-size: 15px; color: #64778d; line-height: 1.9; }
.cloud-device-note { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 14px; color: #426189; }
.cloud-device-note span { border: 1px solid #d2dfef; background: #fff; padding: 7px 18px; border-radius: 7px; }
.cloud-device-note i { color: #2a927b; font-style: normal; }
.cloud-site-footer { color: #77879a; font-size: 12px; text-align: center; margin: 0; }
.cloud-icp { color: inherit; margin-left: 10px; }
.cloud-account-button { border: 1px solid #d4dfef; border-radius: 8px; color: #36587e; background: #fff; padding: 8px 12px; font: inherit; font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; min-height: 36px; }
.cloud-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8a99ab; flex-shrink: 0; }
[data-sync-state="synced"] .cloud-status-dot { background: #279876; }
[data-sync-state="error"] .cloud-status-dot, [data-sync-state="conflict"] .cloud-status-dot { background: #d98422; }
[data-sync-state="syncing"] .cloud-status-dot, [data-sync-state="pending"] .cloud-status-dot { background: #3864dc; }
.cloud-dialog { margin: auto; width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; background: #fff; color: #243957; border: 1px solid #dce5f0; border-radius: 16px; box-shadow: 0 20px 80px #1838602b; padding: 26px; font-family: inherit; }
.cloud-dialog::backdrop { background: #17345266; }
.cloud-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cloud-dialog h2 { font-family: inherit; font-weight: 700; font-size: 20px; line-height: 1.4; margin: 0; }
.cloud-dialog-heading button { color: #5b718b; font-size: 25px; background: #f3f6fa; border: 0; border-radius: 7px; width: 36px; height: 36px; cursor: pointer; }
.cloud-dialog p { font-size: 14px; line-height: 1.7; }
.cloud-user-label { overflow-wrap: anywhere; margin-bottom: 20px; font-weight: 650; }
.cloud-sync-card { background: #f3f7fe; border-radius: 10px; padding: 16px; }
.cloud-sync-card p { color: #5b708d; }
.cloud-account-tools { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.cloud-file-button { display: inline-flex; align-items: center; justify-content: center; }
.cloud-password-details { border-top: 1px solid #e1e9f2; padding-top: 16px; }
.cloud-password-details summary { cursor: pointer; font-size: 14px; font-weight: 650; }
.cloud-password-details form { margin-top: 18px; }
.cloud-small, .cloud-dialog small { color: #6e7d91; font-size: 12px !important; line-height: 1.6; }
.cloud-conflict-item { border: 1px solid #dce5f0; border-radius: 10px; padding: 14px; margin: 14px 0; }
.cloud-conflict-item h3 { font-size: 15px; margin: 0 0 10px; }
.cloud-conflict-item pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 13px; line-height: 1.7; max-height: 160px; overflow-y: auto; color: #5a6b80; background: #f5f8fc; padding: 10px; border-radius: 6px; }
.cloud-update-banner { background: #fff9e8; color: #7b5f26; font-size: 13px; padding: 8px 14px; border: 1px solid #eedebc; border-radius: 8px; margin-bottom: 14px; }
[data-cloud-ready="true"] .storage-card p { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .cloud-login-layout { grid-template-columns: 1fr; gap: 0; max-width: 410px; padding: 38px 0; }
  .cloud-login-aside { display: none; }
  .cloud-gate { padding: 28px 24px 20px; }
  .cloud-dialog { padding: 22px; }
  .cloud-account-button { padding: 7px 9px; }
}
@media (max-width: 540px) {
  [data-cloud-ready="true"] .topbar { flex-wrap: wrap; height: auto; min-height: 62px; padding-top: 8px; padding-bottom: 8px; }
  .cloud-account-button { order: 5; margin-left: auto; }
  .cloud-account-tools > * { flex: 1 1 160px; }
}
