/* Área do cliente: entrar, criar senha e "Minha conta". Mesmo estilo calmo do briefing. */
.account-page { max-width: 560px; padding-block: clamp(32px, 6vw, 72px) var(--respiro); }
.account-page.wide { max-width: 860px; }
.account-card { display: grid; gap: 16px; padding: clamp(22px, 4vw, 40px); border-radius: 26px; background: #fff; box-shadow: 0 22px 54px #1e103312; }
.account-card h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); letter-spacing: -.03em; }
.account-card .lead { margin-top: -6px; color: var(--suave); font-size: 1.05rem; }
.account-card form { display: grid; gap: 16px; }
.account-card .btn { justify-self: start; }
.account-card .error { padding: 10px 14px; border-radius: 12px; background: #FDECEA; }
.field-hint { display: block; margin: -2px 0 6px; color: #6b627d; font-size: .88rem; font-weight: 500; }
.account-forgot { justify-self: start; color: var(--azul); font-weight: 600; }
.account-tips { display: grid; gap: 6px; padding-left: 20px; color: var(--suave); }
.account-tips a { color: var(--azul); font-weight: 600; }
.account-help summary { cursor: pointer; font-weight: 600; color: var(--azul); }
.account-help p { margin-top: 8px; color: var(--suave); }
.account-alt { color: var(--suave); font-size: .95rem; }
.account-page.wide > .account-alt { margin-top: 24px; text-align: center; }

/* Minha conta */
.account-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; margin-bottom: 28px; }
.account-head .eyebrow { color: var(--vime-escuro); font-weight: 700; font-size: .9rem; }
.account-head h1 { margin-top: 4px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; }
.account-head .lead { margin-top: 8px; color: var(--suave); }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.empty-projects h2 { font-size: 1.2rem; }

.account-page.wide { max-width: 1120px; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--suave); font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--berinjela); text-decoration: underline; text-underline-offset: 4px; }
.unread-pill { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 99px; background: var(--coral); color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none; }

/* visão geral: projetos à esquerda, dados e ajuda à direita */
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.account-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.side-card { display: grid; gap: 10px; padding: 20px; border-radius: 20px; background: #fff; border: 1.5px solid var(--fio); overflow-wrap: anywhere; }
.side-card h2 { font: 500 1rem/1.3 var(--titulo); }
.side-card h3 { margin-top: 8px; font-size: .9rem; color: var(--vime-escuro); }
.side-card p { color: var(--suave); font-size: .94rem; }
.side-card dl > div { padding: 6px 0; border-top: 1px solid #ECEDF5; }
.side-card dt { color: var(--suave); font-size: .8rem; }
.side-card dd { font-weight: 600; font-size: .94rem; white-space: pre-line; }
.side-card .btn { justify-self: start; }
.side-hint { font-size: .85rem !important; }
.side-warn { color: #A41E17; font-weight: 600; }
.side-edit summary { cursor: pointer; color: var(--azul); font-weight: 700; font-size: .94rem; }
.side-edit form { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #ECEDF5; }
.side-edit .field > span { font-size: .85rem; }
.side-edit input { min-height: 42px; }
.account-notice { margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; background: #D9F8E8; font-weight: 600; }
.side-out .btn { width: 100%; }

.project-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.project-card h2 a { text-decoration: none; }
.project-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-sub { margin-top: 2px; color: var(--suave); font-weight: 600; }
.unread-badge { flex: none; padding: 4px 12px; border-radius: 99px; background: var(--coral); color: #fff; font-size: .82rem; font-weight: 700; }
.project-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags li { padding: 4px 11px; border-radius: 99px; background: var(--nevoa); font-size: .85rem; font-weight: 600; }
.project-now { padding: 12px 14px; border-radius: 14px; background: #EEF0FF; color: #2a2550; font-size: .95rem; }
.project-last { display: grid; gap: 2px; padding: 12px 14px; border: 1.5px dashed var(--linha); border-radius: 14px; text-decoration: none; transition: border-color .2s; }
.project-last:hover { border-color: var(--azul); }
.project-last-who { color: var(--suave); font-size: .8rem; font-weight: 700; }
.project-last-text { overflow-wrap: anywhere; }
.project-acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* página do projeto */
.project-hero { display: grid; gap: 14px; margin-bottom: 24px; padding: clamp(20px, 3vw, 30px); border-radius: 24px; background: #fff; border: 1.5px solid var(--fio); }
.project-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.03em; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; scroll-margin-top: 90px; }
.project-side { display: grid; gap: 16px; }
.project-chat { scroll-margin-top: 96px; }
.host-hr { background: linear-gradient(180deg, #F2F8FD, #fff); border-color: #D8E7F5; }
.host-hr img { width: 150px; height: auto; }

@media (max-width: 900px) {
    .account-grid, .project-grid { grid-template-columns: minmax(0, 1fr); }
    .account-side { position: static; }
}

.project-card { display: grid; gap: 18px; margin-bottom: 18px; padding: clamp(20px, 3vw, 30px); border-radius: 24px; background: #fff; border: 1.5px solid var(--fio); }
.project-meta { color: var(--suave); font-size: .88rem; font-weight: 600; }
.project-card h2 { margin-top: 4px; font-size: clamp(1.2rem, 2.4vw, 1.5rem); letter-spacing: -.02em; overflow-wrap: anywhere; }

/* etapas do projeto: uma linha que vai se completando */
.project-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: etapa; }
.project-steps li { counter-increment: etapa; display: grid; gap: 8px; color: #8a8199; font-size: .9rem; font-weight: 600; }
.project-steps li::before { content: ''; height: 8px; border-radius: 99px; background: #E3E5F0; }
.project-steps li.done { color: var(--berinjela); }
.project-steps li.done::before { background: var(--menta); }
.project-steps li.now { color: var(--berinjela); font-weight: 700; }
.project-steps li.now::before { background: var(--azul); }
.project-steps li.now span::after { content: ' · agora'; color: var(--azul); }
.project-closed { padding: 10px 14px; border-radius: 12px; background: var(--nevoa); color: var(--suave); font-weight: 600; }

.project-note { padding: 16px 18px; border-left: 4px solid var(--vime); border-radius: 0 14px 14px 0; background: #FFF7E4; }
.project-note-title { margin-bottom: 4px; color: #6d5a38; font-size: .86rem; font-weight: 700; }

.project-closed { margin: 0; }
.project-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px 20px; padding-top: 14px; border-top: 1px solid var(--fio); }
.project-facts dt { color: var(--suave); font-size: .85rem; }
.project-facts dd { font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 620px) {
    .project-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .project-steps li { grid-template-columns: 34px minmax(0, 1fr); align-items: center; }
    .project-steps li::before { height: 8px; }
    .account-actions, .account-actions form { width: 100%; }
    .account-actions .btn { width: 100%; }
}
