/* Provider sign-in (functional styling; visual design can be refined by Codex). */
.oauth-options{display:grid;gap:.5rem;margin:1rem 0 .25rem}
.oauth-options .oauth-button{display:flex;justify-content:center;width:100%;min-height:44px;box-sizing:border-box}
.oauth-unavailable{position:relative;display:block;outline-offset:3px}
.oauth-unavailable .oauth-button{opacity:.45;cursor:not-allowed;pointer-events:none}
.oauth-tip{position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);background:#111;color:#fff;font-size:.75rem;line-height:1.2;padding:.35rem .6rem;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s;z-index:5}
.oauth-unavailable:hover .oauth-tip,.oauth-unavailable:focus .oauth-tip,.oauth-unavailable:focus-within .oauth-tip{opacity:1}
.oauth-or{text-align:center;font-size:.8rem;opacity:.7;margin:.25rem 0 .75rem}
.signin-list{list-style:none;padding:0;margin:.75rem 0 0;display:grid;gap:.5rem}
.signin-list li{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.signin-list .oauth-unavailable{display:inline-block}
@media (prefers-reduced-motion:reduce){.oauth-tip{transition:none}}

/* Branded provider choices. Decorative icons leave accessible labels unchanged. */
.oauth-options{gap:10px;margin:24px 0 20px}
#team-workspace .oauth-options .oauth-button,#team-workspace .signin-list .oauth-apple{position:relative;display:flex;align-items:center;justify-content:center;min-height:52px;padding:14px 18px 14px 48px;border:1px solid #747775;border-radius:4px;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:0;background:#fff;color:#1f1f1f;text-align:center;text-decoration:none}
.oauth-button::before{content:"";position:absolute;left:16px;top:50%;transform:translateY(-50%);width:20px;height:20px;flex:none;background-position:center;background-repeat:no-repeat;background-size:contain}
.oauth-google::before{background-image:url('assets/signin/google-063.png?v=063')}
#team-workspace .oauth-options .oauth-discord{background:#5865f2;border-color:#5865f2;color:#fff}
.oauth-discord::before{background:currentColor;mask:url('assets/signin/discord-063.svg?v=063') center/contain no-repeat}
.oauth-apple::before{background:currentColor;mask:url('assets/signin/apple-063.svg?v=063') center/contain no-repeat}
#team-workspace .oauth-options .oauth-apple,#team-workspace .signin-list .oauth-apple{background:#fff;border-color:#747775;color:#111}
#team-workspace .oauth-options .oauth-google:hover{background:#f2f3f5;border-color:#444746}
#team-workspace .oauth-options .oauth-discord:hover{background:#4752c4;border-color:#4752c4}
#team-workspace .oauth-options .oauth-button:focus-visible,.oauth-unavailable:focus-visible{outline:3px solid #006edb;outline-offset:4px}
[data-theme="dark"] #team-workspace .oauth-options .oauth-button:focus-visible,[data-theme="dark"] .oauth-unavailable:focus-visible{outline-color:#85bdff}
.oauth-or{display:flex;align-items:center;gap:14px;opacity:1;color:var(--muted,#727774);font-size:12px;margin:20px 0}
.oauth-or::before,.oauth-or::after{content:"";height:1px;background:var(--line,#d9d9d9);flex:1}
.oauth-or span{flex:none}
.oauth-tip{max-width:calc(100vw - 48px);white-space:normal;width:max-content;text-align:center;line-height:1.5;padding:6px 10px}
@media(max-width:360px){#team-workspace .oauth-options .oauth-button{font-size:13px;padding-right:12px}.oauth-or{gap:8px;font-size:11px}}
@media(forced-colors:active){#team-workspace .oauth-options .oauth-button{border:1px solid ButtonText}#team-workspace .oauth-options .oauth-button:focus-visible,.oauth-unavailable:focus-visible{outline-color:Highlight}}

/* 064: account identity and first-sign-in dialog. */
.oauth-unavailable{padding-bottom:32px}
.oauth-tip{top:auto;bottom:0;left:0;transform:none;max-width:100%;background:transparent;color:var(--muted,#686c69);padding:5px 0;font-size:12px;line-height:22px;text-align:left;border-radius:0}
.oauth-options .oauth-tip{left:50%;transform:translateX(-50%);text-align:center}
#team-workspace .signin-methods{padding:clamp(18px,3vw,32px)}
#team-workspace .signin-methods h3{font-size:20px;letter-spacing:-.025em;line-height:1.3;margin:0 0 18px;font-weight:600}
#team-workspace .oauth-rename{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding-bottom:28px;margin-bottom:28px;border-bottom:1px solid var(--line)}
#team-workspace .oauth-rename label{flex:1 1 220px;margin:0;min-width:0}
#team-workspace .oauth-rename button{min-height:46px;padding:12px 18px;font-weight:600;white-space:nowrap;background:var(--ink);color:var(--paper);border-color:var(--ink)}
#team-workspace .signin-list{padding:0;margin:22px 0 0;gap:0;list-style:none}
#team-workspace .signin-list li{padding:18px 0;border-top:1px solid var(--line);gap:12px 20px;align-items:center}
#team-workspace .signin-list li>span:first-child{flex:1 1 230px;min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:1.6}
#team-workspace .signin-list strong{font-weight:600}
#team-workspace .signin-list .button,#team-workspace .signin-list button{min-height:44px;font-size:13px;letter-spacing:0;padding:12px 16px;line-height:1.4;text-transform:none}
#team-workspace .signin-list .oauth-apple{padding-left:48px}
#team-workspace .signin-list .small-copy{font-size:12px;border:1px solid var(--line);border-radius:20px;padding:6px 12px;line-height:1.5}
#team-workspace .signin-list .oauth-unavailable{align-self:start}
#team-workspace #workspace-message:not(:empty){font-size:14px;line-height:1.65;padding:16px 18px;margin:16px 0 24px;max-width:76ch;overflow-wrap:anywhere;background:var(--paper);border:1px solid var(--line);border-left:3px solid var(--red);color:var(--ink)}
.recovery-dialog.oauth-username{box-sizing:border-box;width:calc(100% - 32px);max-width:480px;max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:clamp(22px,5vw,36px);border:1px solid var(--line);border-radius:8px;box-shadow:0 24px 80px #0005;font-family:inherit}
.oauth-username::backdrop{background:rgb(0 0 0 / .65);backdrop-filter:blur(4px)}
.oauth-username h2{font-size:clamp(25px,4vw,30px);font-weight:600;letter-spacing:-.035em;line-height:1.15;margin:0 0 14px}
.oauth-username p{font-size:14px;line-height:1.6;color:var(--muted,#686c69);margin:0 0 24px}
.oauth-username label{display:block;font-size:13px;font-weight:500;line-height:1.5}
.oauth-username input{box-sizing:border-box;min-height:48px;margin:8px 0 10px;font:inherit;font-size:16px;border-radius:4px}
.oauth-username .small-copy{font-size:12px;margin:0 0 24px}
.oauth-username .workspace-error:not([hidden]){padding:12px 14px;border:1px solid var(--line);border-left:3px solid var(--red);color:var(--ink);margin:0 0 20px;overflow-wrap:anywhere}
.oauth-username .workspace-actions{display:grid;grid-template-columns:1fr;gap:10px;margin:0}
.oauth-username button{box-sizing:border-box;min-height:48px;font:inherit;font-size:14px;font-weight:600;border-radius:4px;white-space:normal;overflow-wrap:anywhere;line-height:1.5;cursor:pointer}
.oauth-username button[data-skip]{background:transparent;color:var(--ink)}
.oauth-username :focus-visible{outline:3px solid #006edb;outline-offset:3px}
[data-theme=dark] .oauth-username :focus-visible{outline-color:#85bdff}
@media(max-width:420px){#team-workspace .oauth-rename button{width:100%}#team-workspace .signin-list li>span:first-child{flex-basis:100%}}
.oauth-username .workspace-actions button{margin:0;justify-content:center;text-align:center}
