.owner-review-button { margin: 16px; padding: 8px; border-radius: 4px; }
.owner-review { width: min(760px, calc(100vw - 32px)); max-height: 85vh; overflow: auto; }
.review-items article { padding: 16px 0; border-top: 1px solid #dadce0; }
.review-items .plain-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-actions, .review-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.review-actions button { padding: 8px 12px; }
.review-items textarea { display: block; width: 100%; min-height: 90px; margin: 8px 0; }
.sidebar.collapsed .owner-review-button { display: none; }

/* about */
.topbar .info:focus-visible { outline: 2px solid #8ab4f8; outline-offset: -3px; }

.about-panel {
    position: fixed;
    inset: 64px 16px auto auto;
    width: min(380px, calc(100% - 16px));
    max-height: calc(100dvh - 80px);
    margin: 0;
    padding: 20px;
    overflow-y: auto;
    border: 1px solid #dadce0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 18px #0005;
    color: #202124;
    font: 14px/1.5 Arial, Helvetica, sans-serif;
    h2 { font-size: calc(16px * var(--text-scale, 1)); font-weight: 500; }
    h3 { font-size: calc(14px * var(--text-scale, 1)); font-weight: 600; }
    p { color: #5f6368; }
    .about-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
    .about-header button {
        flex-shrink: 0;
        width: 32px;
        height: 30px;
        border: none;
        border-radius: 50%;
        background: none;
        color: #5f6368;
        font-size: calc(20px * var(--text-scale, 1));
        line-height: 30px;
        cursor: pointer;
        &:hover { background: #f1f3f4; }
        &:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
    }
    .about-person {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        min-width: 0;
        img { flex-shrink: 0; border-radius: 50%; object-fit: cover; }
        h2 { font-size: calc(20px * var(--text-scale, 1)); font-weight: 600; line-height: 30px; }
        p { font-size: calc(13px * var(--text-scale, 1)); }
    }
    .about-section { margin-top: 20px; h3 { margin-bottom: 6px; } }
    .about-resume {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 20px;
        a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 10px 14px;
            border: 1px solid #dadce0;
            border-radius: 8px;
            color: #174ea6;
            font-weight: 600;
            text-decoration: none;
            &:hover { background: #f1f3f4; }
            &:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
        }
    }
    .about-stack {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 8px 0;
        list-style: none;
        li { padding: 4px 10px; border-radius: 16px; background: #f1f3f4; font-size: calc(12px * var(--text-scale, 1)); }
    }
}

@media (max-width: 800px) {
    .about-panel { right: 8px; }
}

/* account */
/* Profile controls and policy popups share the information panel's native popover behavior. */
.topbar .topbar-right .profile { cursor: pointer; border: 0; background: transparent; }
.profile:focus-visible { outline: 2px solid var(--gmail-accent); outline-offset: -2px; }
.profile > [data-account-avatar] {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: #7c98b3; color: #101820; font-size: 17px; font-weight: 600; overflow: hidden;
}
.profile > [data-account-avatar] > img { width: 100%; height: 100%; object-fit: cover; }
.account-panel, .policy-panel {
    --account-hover: color-mix(in srgb, var(--gmail-surface) 94%, var(--gmail-ink));
    background: var(--gmail-surface); color: var(--gmail-ink); border-color: var(--gmail-line);
    font-family: var(--display-font, Arial, Helvetica, sans-serif); font-size: calc(14px * var(--text-scale, 1));
}
.account-panel p, .policy-panel p { color: var(--gmail-muted); }
.account-panel .about-header button, .policy-panel .about-header button { color: var(--gmail-muted); }
.account-panel .about-header button:hover, .policy-panel .about-header button:hover { background: var(--account-hover); }
.account-panel { width: min(380px, calc(100% - 16px)); padding: 18px 22px 0; border-radius: 24px; }
.account-identity { display: grid; justify-items: center; gap: 12px; text-align: center; margin: 10px 0 22px; }
.account-identity h3 { font-size: calc(22px * var(--text-scale, 1)); font-weight: 400; overflow-wrap: anywhere; }
.account-avatar {
    display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
    background: #7c98b3; color: #101820; font-size: 36px; font-weight: 500; flex-shrink: 0;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-actions { display: grid; gap: 8px; }
#account-panel .account-identity { gap: 8px; margin: 4px 0 14px; }
#account-panel .account-avatar { width: 64px; height: 64px; font-size: 32px; }
#account-panel .account-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#account-panel .account-actions.guest { grid-template-columns: minmax(0, 1fr); }
.account-owner { margin-top: 12px; }
.account-owner h3 { margin: 0 0 10px; font-size: calc(13px * var(--text-scale, 1)); font-weight: 500; color: var(--gmail-muted); }
.account-links { overflow: hidden; border: 1px solid var(--gmail-line); border-radius: 18px; }
.account-links a {
    display: flex; align-items: center; gap: 16px; padding: 10px 14px; min-height: 44px;
    color: var(--gmail-ink); text-decoration: none; font-size: calc(14px * var(--text-scale, 1));
}
.account-links a + a { border-top: 1px solid var(--gmail-line); }
.account-links a:is(:hover, :focus-visible) { background: var(--account-hover); }
.account-links a:focus-visible { outline: 2px solid var(--gmail-accent); outline-offset: -3px; }
.account-links svg { width: 22px; height: 22px; fill: currentColor; stroke: none; flex-shrink: 0; }
.account-link-icon { width: 22px; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.account-links small { display: block; margin-top: 3px; color: var(--gmail-muted); font-size: 12px; overflow-wrap: anywhere; }
.account-actions button, #avatar-panel > button, .avatar-upload {
    display: grid; place-items: center; min-height: 44px; padding: 10px 18px; border-radius: 24px;
    border: 1px solid var(--gmail-line); background: transparent; color: var(--gmail-ink);
    cursor: pointer; font: inherit; text-align: center;
}
.account-actions button:first-child { border-color: var(--gmail-accent); color: var(--gmail-accent); }
.account-actions button:hover, #avatar-panel > button:hover, .avatar-upload:hover { background: var(--account-hover); }
.account-actions button[hidden] { display: none; }
.account-actions button:disabled { opacity: .6; cursor: wait; }
.account-panel :is(button, input):focus-visible, .avatar-upload:focus-within {
    outline: 2px solid var(--gmail-accent); outline-offset: 3px;
}
.account-status { min-height: 20px; margin: 12px 0; font-size: calc(12px * var(--text-scale, 1)); text-align: center; }
.account-legal {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 9px;
    margin: 14px -22px 0; padding: 10px 12px; border-top: 1px solid var(--gmail-line); color: var(--gmail-muted);
}
.account-legal button { min-height: 38px; padding: 4px; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
.account-legal button:hover { color: var(--gmail-ink); text-decoration: underline; }
.signin-note { margin-top: 18px; font-size: calc(12px * var(--text-scale, 1)); }
#avatar-panel > .account-avatar { margin: 8px auto 18px; }
.avatar-upload { position: relative; margin: 18px 0 8px; }
.avatar-upload input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
#avatar-panel > button { width: 100%; }
.policy-panel { width: min(500px, calc(100% - 16px)); padding: 24px; }
.policy-panel h3 { margin-top: 22px; margin-bottom: 6px; }
.policy-panel a { color: var(--gmail-accent); overflow-wrap: anywhere; }
.policy-date { margin-top: 4px; font-size: calc(12px * var(--text-scale, 1)); }
.policy-intro { font-size: calc(15px * var(--text-scale, 1)); }
@media (max-width: 800px) {
    .about-panel.account-panel, .about-panel.policy-panel { inset: 60px 8px auto auto; max-height: calc(100dvh - 76px); }
}

/* The same two-column card carries every signup, sign-in, verification, and recovery step. */
.auth-shell {
    --auth-background: #1f1f1f; --auth-card: #0e0e0e; --auth-ink: #e3e3e3; --auth-muted: #c4c7c5;
    --auth-outline: #8e918f; --auth-accent: #a8c7fa; --auth-button-ink: #062e6f;
    position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
    padding: 40px 24px; overflow-y: auto; background: var(--auth-background); color: var(--auth-ink);
    font: 14px/1.5 var(--display-font, Arial, Helvetica, sans-serif);
}
.auth-shell[hidden], .app[hidden] { display: none; }
.auth-wrap { width: min(1170px, 100%); margin: auto; }
.auth-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px;
    min-height: 386px; padding: 40px; border-radius: 28px; background: var(--auth-card); }
.auth-logo { display: block; width: 44px; height: 44px; }
.auth-intro h1 { margin-top: 28px; font-size: 36px; font-weight: 400; line-height: 1.25; letter-spacing: -.6px; }
.auth-intro > p { margin-top: 16px; font-size: 16px; line-height: 1.5; }
.auth-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding-top: 76px; }
.auth-description { margin-bottom: 4px; }
.auth-field { display: block; position: relative; width: 100%; }
.auth-field input {
    width: 100%; height: 56px; min-width: 0; border: 1px solid var(--auth-outline); border-radius: 4px;
    padding: 16px 15px; background: transparent; color: var(--auth-ink); font: inherit; font-size: 16px; outline: none;
}
.auth-field > span {
    position: absolute; top: 15px; left: 12px; padding: 0 4px; color: var(--auth-ink); font-size: 16px;
    pointer-events: none; background: var(--auth-card); transition: top .1s, font-size .1s;
}
.auth-field:has(input:focus, input:not(:placeholder-shown)) > span { top: -9px; font-size: 12px; }
.auth-field:has(input:focus) > span { color: var(--auth-accent); }
.auth-field input:focus { border: 2px solid var(--auth-accent); padding: 15px 14px; }
.auth-field input:user-invalid { border-color: #f2b8b5; }
.auth-select { display: block; width: 100%; }
.auth-select select { width: 100%; height: 56px; min-width: 0; padding: 12px 14px; border: 1px solid var(--auth-outline);
    border-radius: 4px; color: var(--auth-ink); background: var(--auth-card); font: inherit; font-size: 16px; }
.auth-birthday { border: 0; min-width: 0; }
.auth-birthday legend { margin-bottom: 10px; color: var(--auth-muted); }
.auth-birthday > div { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)); gap: 8px; }
.auth-show { display: flex; align-items: center; gap: 16px; cursor: pointer; font-weight: 600; }
.auth-show input { width: 18px; height: 18px; accent-color: var(--auth-accent); }
.auth-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 24px; margin-top: auto;
    padding-top: 30px; }
.auth-shell button { font: inherit; cursor: pointer; }
.auth-link { min-height: 40px; border: 0; background: none; color: var(--auth-accent); font-weight: 600; text-align: left; }
.auth-form > .auth-link { align-self: flex-start; }
.auth-next { min-width: 80px; min-height: 40px; padding: 10px 24px; border: 0; border-radius: 24px;
    background: var(--auth-accent); color: var(--auth-button-ink); font-weight: 600; }
.auth-next:hover { filter: brightness(1.07); box-shadow: 0 1px 3px #0005; }
.auth-shell :is(button, select, input[type="checkbox"]):focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 4px; }
.auth-shell button:disabled { cursor: wait; opacity: .6; }
.auth-error { color: #f2b8b5; overflow-wrap: anywhere; }
.auth-error:empty, .auth-notice:empty { display: none; }
.auth-notice, .auth-note { color: var(--auth-muted); }
.auth-account-chip { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 20px;
    padding: 4px 10px; border: 1px solid var(--auth-outline); border-radius: 24px; color: var(--auth-ink); background: none;
    font-weight: 600; overflow-wrap: anywhere; text-align: left; }
.auth-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px; }
.auth-footer button { min-height: 40px; padding: 8px; border: 0; background: none; color: var(--auth-ink); font-size: 12px; }
.auth-footer nav { display: flex; gap: 12px; }
.auth-footer button:hover, .auth-link:hover { text-decoration: underline; }
:root[data-theme='light'] .auth-shell {
    --auth-background: #f0f4f9; --auth-card: #fff; --auth-ink: #1f1f1f; --auth-muted: #444746;
    --auth-outline: #747775; --auth-accent: #0b57d0; --auth-button-ink: #fff;
}
:root[data-theme='light'] .auth-shell .auth-error { color: #b3261e; }
@media (max-width: 800px) {
    .auth-shell { padding: 24px 16px; align-items: flex-start; }
    .auth-wrap { margin: auto; }
    .auth-card { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 24px; min-height: 0; }
    .auth-intro h1 { font-size: 30px; margin-top: 24px; }
    .auth-form { padding-top: 0; }
    .auth-actions { padding-top: 20px; gap: 20px; }
    .auth-footer { padding: 12px 0; gap: 8px; }
    .auth-footer nav { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .auth-field > span { transition: none; } }
