.account-toggle { border: 1px solid var(--line); border-radius: 10px; background: white; padding: 7px 10px; font-size: 11px; cursor: pointer; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-toolbar { display: flex; justify-content: space-between; gap: 8px; padding: 10px 18px 0; }
.account-toolbar button { border: 0; background: transparent; color: var(--brand-dark); font-size: 10px; font-weight: 650; cursor: pointer; padding: 3px 0; }
.guest-welcome { margin: 14px 16px 0; padding: 18px 20px; border: 1px solid #ddd5ff; border-radius: 18px; background: linear-gradient(135deg, #fff, #f0edff); box-shadow: var(--shadow-sm); }
.guest-welcome h2 { margin: 5px 0 7px; font-size: 21px; letter-spacing: -.035em; }
.guest-welcome p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.guest-action { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 13px 16px; border: 0; border-radius: 12px; background: var(--brand); color: white; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px #6547e821; }
.guest-action:hover { background: var(--brand-dark); }
.guest-action span { font-size: 18px; line-height: 1; }
.account-panel { margin: 14px 16px 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-sm); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.03em; }
.account-panel h3 { font-size: 12px; margin: 20px 0 10px; }
.account-help { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 9px 0; overflow-wrap: anywhere; }
.account-help a { color: var(--brand-dark); }
.account-notice { margin: 12px 16px 0; padding: 12px 14px; border-radius: 12px; color: #305748; background: #eaf7f0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.account-notice.error { background: #fff0f1; color: #a93042; }
.account-label { display: block; margin: 12px 0 7px; font-size: 11px; font-weight: 650; }
.account-panel input, .draft-controls input, .signature-save-row input, #savedSignatureSelect { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font-size: 12px; }
.account-panel .secondary-action { margin-top: 10px; }
.account-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; margin: 17px 0 8px; }
.account-divider::before, .account-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-login { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 1px solid #d9dce5; border-radius: 12px; background: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
.google-login span { color: #4285f4; font-size: 19px; font-weight: 800; }
button:disabled { cursor: default; opacity: .55; }
#loginCode { letter-spacing: .32em; font-size: 23px; text-align: center; }
#accountEmail { font-weight: 650; font-size: 13px; overflow-wrap: anywhere; }
.draft-controls { border: 1px solid #dfd9fc; background: #f9f7ff; border-radius: 14px; padding: 12px; margin: 14px 0; }
.draft-controls .secondary-action { margin-top: 8px; }
.draft-controls .account-help { margin-bottom: 0; font-size: 10px; }
.signature-save-row { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.signature-save-row .subtle-button { flex: 0 0 auto; font-size: 10px; }
.library-list { display: grid; gap: 8px; }
.library-row { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.library-open { border: 0; background: transparent; padding: 0; text-align: left; flex: 1; min-width: 0; cursor: pointer; }
.library-open strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-open small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.library-signature { width: 74px; height: 36px; object-fit: contain; background: #f7f8fc; border-radius: 6px; }
.tab-mode { width: 100%; min-height: 100vh; max-height: none; }
.tab-mode .shell { max-width: 850px; margin: auto; min-height: 100vh; box-shadow: 0 0 60px #171b2a0a; }
.tab-mode .hero h1 { max-width: 600px; }
.tab-mode .hero > p { max-width: 590px; }
.tab-mode .pdf-preview { max-height: 72vh; }
.tab-mode #openEditorTab { display: none; }
.tab-mode .topbar { padding: 17px 24px; }
.tab-mode .account-panel { max-width: 620px; width: calc(100% - 32px); align-self: center; }
.tab-mode .guest-welcome { max-width: 620px; width: calc(100% - 32px); align-self: center; }
.tab-mode .workspace { padding: 22px 28px; }
@media (max-width: 440px) { .tab-mode .workspace { padding: 16px; } }
