/* Approved PocketSync Cloud application, October 2026. */
.boot { min-height: 100dvh; display: grid; place-content: center; color: var(--text-2); }
.ps-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.ps-brand img { border-radius: 13px; width: 48px; height: 48px; }
.ps-brand-sub { display: block; color: var(--text-2); font-size: 14px; line-height: 1; margin-top: 3px; }
.ps-auth { min-height: 100dvh; display: flex; flex-direction: column; }
.ps-header { display: flex; justify-content: space-between; align-items: center; padding: 28px 4vw; }
.ps-header-actions { display: flex; align-items: center; gap: 20px; }
.ps-header-actions > :first-child { border-right: 1px solid var(--divider); border-radius: 0; padding-right: 24px; }
.ps-auth-main { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(48px, 7vw, 112px); width: min(1176px, calc(100% - 96px)); margin: 28px auto 40px; }
.ps-intro h1 { font-size: clamp(40px, 4.5vw, 66px); font-weight: 700; line-height: 1.12; letter-spacing: -.04em; margin: 0 0 24px; }
.ps-intro h1 span { color: var(--gold-text); }
.ps-intro-lede { font-size: clamp(20px, 2vw, 26px); color: var(--text-2); line-height: 1.5; max-width: 440px; }
.ps-steps { list-style: none; padding: 8px 20px; margin: 32px 0 18px; border: 1px solid var(--divider-strong); border-radius: 12px; max-width: 440px; }
.ps-steps li { display: flex; align-items: center; gap: 20px; padding: 18px 0; }
.ps-steps li + li { border-top: 1px solid var(--divider); }
.ps-steps li span { display: grid; place-items: center; background: var(--surface-2); border-radius: 50%; width: 38px; height: 38px; font-weight: 600; }
.ps-hint { color: var(--text-2); font-size: 14px; }
.ps-auth-card { background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 12px; padding: 30px; }
.ps-auth-title { text-align: center; margin-bottom: 24px; }
.ps-auth-title h2 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
.ps-auth-title p { color: var(--text-2); font-size: 16px; }
.ps-provider-list { display: grid; gap: 10px; }
.ps-provider-list .btn { position: relative; width: 100%; border-color: var(--divider-strong); border-radius: 8px; min-height: 46px; }
.ps-provider-mark { width: 22px; text-align: center; font-size: 20px; font-weight: 700; }
.ps-separator { display: flex; align-items: center; gap: 16px; color: var(--text-2); font-size: 13px; margin: 20px 0 16px; }
.ps-separator::before, .ps-separator::after { content: ''; flex: 1; height: 1px; background: var(--divider-strong); }
.ps-form { display: grid; gap: 15px; }
.ps-form label { display: block; font-size: 13px; margin-bottom: 6px; font-weight: 500; }
.ps-form .input { width: 100%; border-radius: 8px; background: var(--bg); min-height: 46px; font-size: 16px; }
.ps-password { position: relative; }
.ps-password input { padding-right: 64px; }
.ps-password button { position: absolute; right: 3px; top: 0; height: 46px; padding: 0 10px; color: var(--text-2); border: 0; background: transparent; font-size: 12px; min-width: 48px; }
.ps-forgot { justify-self: end; font-size: 13px; margin-top: -8px; }
.ps-form > .btn-primary { width: 100%; border-radius: 8px; min-height: 46px; font-size: 16px; margin-top: 4px; }
.ps-new { text-align: center; color: var(--text-2); font-size: 13px; margin-top: 18px; }
.ps-new a { font-weight: 500; color: var(--gold-text); }
.ps-auth-note { text-align: center; font-size: 12px; color: var(--text-2); margin-top: 16px; }
.ps-footer { padding: 22px 4vw; border-top: 1px solid var(--divider-strong); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--text-2); font-size: 12px; }
.ps-footer > div { display: flex; gap: 26px; }
.ps-footer a { color: var(--text-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.ps-footer > span { display: flex; gap: 10px; align-items: center; }
.ps-notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--divider-strong); border-radius: 8px; background: var(--bg); font-size: 13px; line-height: 1.6; margin: 16px 0; }
.ps-notice svg { flex-shrink: 0; margin-top: 2px; color: var(--gold-text); }
.ps-notice.ps-error { color: var(--danger-text); border-color: currentColor; }
.ps-notice.ps-error svg { color: inherit; }
.ps-capability { margin: 10px 0 0; color: var(--text-2); font-size: 12px; text-align: center; }
.ps-link-btn { border: 0; background: transparent; color: var(--text-2); text-decoration: underline; min-height: 44px; padding: 0 6px; cursor: pointer; }
/* Files uses the same surfaces and brand as the sign-in page. */
.ps-workspace { display: grid; grid-template-columns: 240px minmax(0,1fr); min-height: 100dvh; }
.ps-sidebar { border-right: 1px solid var(--divider-strong); padding: 28px 20px 20px; display: flex; flex-direction: column; background: var(--bg); }
.ps-sidebar .ps-brand { gap: 10px; margin-bottom: 42px; }
.ps-sidebar .ps-brand img { width: 38px; height: 38px; border-radius: 10px; }
.ps-sidebar .wordmark { font-size: 25px !important; }
.ps-sidebar nav { display: grid; gap: 4px; }
.ps-nav-link { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; text-decoration: none; }
.ps-nav-link[aria-current=page] { color: var(--text); background: var(--surface-2); font-weight: 600; box-shadow: inset 3px 0 var(--gold); }
.ps-nav-link:hover { background: var(--hover); }
.ps-nav-divider { height: 1px; background: var(--divider-strong); margin: 18px 0; }
.ps-sidebar-foot { margin-top: auto; padding: 28px 12px 0; color: var(--text-2); font-size: 12px; display: grid; gap: 12px; }
.ps-sidebar-foot p { display: flex; gap: 8px; align-items: center; }
.ps-work-main { min-width: 0; }
.ps-topbar { height: 86px; padding: 0 36px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--divider); }
.ps-search { display: flex; align-items: center; gap: 12px; width: min(420px,100%); color: var(--text-2); }
.ps-search input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--text); min-height: 44px; font-size: 14px; }
.ps-search input::placeholder { color: var(--text-2); }
.ps-topbar > .ps-top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ps-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.ps-content { padding: 36px; max-width: 1440px; margin: 0 auto; }
.ps-content-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ps-content-heading h1 { font-size: 30px; letter-spacing: -.03em; margin-bottom: 6px; }
.ps-content-heading p { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.ps-heading-actions { display: flex; gap: 10px; }
.ps-heading-actions .btn { font-size: 13px; border-radius: 8px; }
.ps-locked { max-width: 480px; margin: clamp(40px,8vh,120px) auto; text-align: center; }
.ps-lock-icon { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--divider-strong); color: var(--gold-text); display: grid; place-items: center; }
.ps-locked h2 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 14px; }
.ps-locked > p { line-height: 1.7; color: var(--text-2); font-size: 14px; }
.ps-locked .ps-notice { text-align: left; margin: 24px 0; }
.ps-locked .btn { margin: 18px 0 8px; }
.ps-locked .ps-form { text-align: left; margin-top: 24px; }
.ps-drawer-toggle { display: none; }
.ps-mobile-drawer { width: min(340px,calc(100vw - 32px)); }
.ps-mobile-drawer .ps-sidebar { border: 0; min-height: 60vh; }
.ps-empty-section { max-width: 580px; border: 1px solid var(--divider); border-radius: 12px; padding: 28px; }
.ps-empty-section h2 { font-size: 20px; margin-bottom: 14px; }
.ps-empty-section p { color: var(--text-2); line-height: 1.7; font-size: 14px; }
.ps-empty-section .btn { margin-top: 20px; }
@media (min-width: 1500px) { .ps-auth-main { margin-top: 48px; margin-bottom: 64px; } }
@media (max-width: 1000px) { .ps-auth-main { gap: 36px; width: calc(100% - 64px); } .ps-auth-card { padding: 24px; } .ps-intro h1 { font-size: 46px; } .ps-content { padding: 28px; } .ps-heading-actions span { display: none; } }
@media (max-width: 760px) {
 .ps-header { padding: 20px; } .ps-header-actions { gap: 8px; } .ps-header-actions > :first-child { padding-right: 12px; }
 .ps-auth-main { display: block; width: min(480px,calc(100% - 40px)); margin: 24px auto 36px; }
 .ps-intro { display: none; } .ps-auth-card { padding: 24px 20px; } .ps-auth-title h2 { font-size: 28px; }
 .ps-footer { padding: 16px 20px; flex-wrap: wrap; justify-content: center; text-align: center; } .ps-footer > span { justify-content: center; width: 100%; font-size: 11px; }
 .ps-workspace { grid-template-columns: minmax(0,1fr); } .ps-workspace > .ps-sidebar { display: none; }
 .ps-drawer-toggle { display: inline-flex; flex-shrink: 0; } .ps-topbar { height: 72px; padding: 0 16px; gap: 12px; }
 .ps-topbar > .ps-top-actions { gap: 6px; } .ps-search { gap: 8px; } .ps-search input { font-size: 13px; }
 .ps-content { padding: 28px 20px; } .ps-content-heading h1 { font-size: 28px; }
 .ps-content-heading { flex-wrap: wrap; align-items: flex-start; } .ps-heading-actions { margin-left: auto; }
 .ps-heading-actions .btn-secondary { display: none; } .ps-heading-actions span { display: inline; }
 .ps-locked { margin: 48px auto; } .ps-locked h2 { font-size: 24px; } .ps-locked > p { font-size: 13px; }
}
@media (max-width: 370px) { .ps-brand .wordmark { font-size: 26px !important; } .ps-brand { gap: 9px; } .ps-header-actions > :first-child { display: none; } }

.ps-brand .wm-suf { color: var(--gold-text); -webkit-text-fill-color: var(--gold-text); }
.ps-auth button:disabled, .ps-workspace button:disabled { opacity: .55; cursor: not-allowed; }
