/* Portefólio · editor — mesma paleta rosa */
@font-face { font-family: 'Jakarta'; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 500; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 600; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 800; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair'; font-weight: 700; font-display: swap; src: url(fonts/playfair-display-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair'; font-style: italic; font-weight: 600; font-display: swap; src: url(fonts/playfair-display-latin-600-italic.woff2) format('woff2'); }
@font-face { font-family: 'Playfair'; font-style: italic; font-weight: 700; font-display: swap; src: url(fonts/playfair-display-latin-700-italic.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --bg: #fff7fa; --bg2: #fdf0f5; --card: #fff; --card2: #fbe9f0;
  --line: #f4dfe8; --line2: #ecccd9;
  --tx: #3a2530; --tx2: #7d6270; --tx3: #ad94a1;
  --acc: #e84d8a; --acc-soft: rgba(232, 77, 138, .1); --red: #e5484d; --green: #2f9e6e;
  --soft: 0 1px 2px rgba(190, 70, 120, .05), 0 8px 22px rgba(190, 70, 120, .07);
  --shadow: 0 18px 50px rgba(190, 70, 120, .16);
  --sans: 'Jakarta', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: 'Playfair', Georgia, serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font: 15px/1.5 var(--sans); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; flex: none; }
a { color: var(--acc); }
img { display: block; max-width: 100%; }
.muted { color: var(--tx2); font-size: 14px; margin: 0 0 12px; }
.hint { color: var(--tx3); font-size: 13px; margin: 0 0 14px; }
.hint .dots svg { width: 14px; height: 14px; vertical-align: -2px; }
small { color: var(--tx3); font-weight: 500; }

/* top bar */
.atop { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 12px max(16px, calc((100% - 1240px) / 2)); background: rgba(255, 247, 250, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.abrand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tx); }
.abrand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 14px rgba(232, 77, 138, .28); }
.abrand span { font: italic 700 20px var(--serif); }
.abrand em { font: 600 11px var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin-left: 4px; }
.anav { display: flex; gap: 4px; margin-left: 12px; }
.anav a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; text-decoration: none; color: var(--tx2); font-weight: 600; font-size: 14px; position: relative; }
.anav a svg { width: 18px; height: 18px; }
.anav a:hover { background: var(--acc-soft); color: var(--acc); }
.anav a.on { background: var(--acc); color: #fff; }
.badge { background: var(--red); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 7px; }
.anav a.on .badge { background: #fff; color: var(--acc); }
.atop-r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) {
  .atop { flex-wrap: wrap; gap: 10px; }
  .abrand em, .atop-r .btn span { display: none; }
  .anav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .anav a { flex: 1; justify-content: center; padding: 8px 6px; font-size: 13px; }
}

.amain { max-width: 1240px; margin: 0 auto; padding: 26px 16px 90px; }
.view { animation: up .35s ease both; }
.view.narrow { max-width: 760px; margin: 0 auto; }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.kick { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
h1 { font: italic 700 clamp(28px, 4vw, 40px)/1.1 var(--serif); margin: 0; }
h2 { font: italic 700 24px var(--serif); margin: 0; }
h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); margin: 0 0 12px; }

/* botões / inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line2); background: #fff; color: var(--tx); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: transform .12s, border-color .15s, background .15s; }
.btn:hover { border-color: var(--acc); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: 0 8px 20px rgba(232, 77, 138, .28); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { color: var(--red); }
.btn.danger:not(.ghost) { background: var(--red); border-color: var(--red); color: #fff; }
.btn.sm { padding: 7px 13px; font-size: 13px; }
.btn.sm svg { width: 16px; height: 16px; }
.btn.lg { padding: 14px 24px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.pubbtn { background: #e7f6ef; border-color: #bfe6d3; color: var(--green); }
.btn:disabled { opacity: .5; pointer-events: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--tx2); text-decoration: none; }
.icon-btn:hover { color: var(--acc); border-color: var(--line2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.sm { width: 32px; height: 32px; }
.lbl { display: block; font-size: 12px; font-weight: 700; color: var(--tx2); margin: 0 0 6px; }
.lbl small { font-weight: 500; }
.inp { width: 100%; background: #fff; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.inp:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.inp.big { padding: 14px 16px; font-size: 17px; }
textarea.inp { resize: vertical; line-height: 1.55; }
.field { margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line2); background: #fff; border-radius: 99px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--tx2); }
.chip.on { background: var(--ac, var(--acc)); border-color: var(--ac, var(--acc)); color: #fff; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line2); }
.swatches button.on { box-shadow: 0 0 0 2px var(--tx); }
.seg { display: flex; background: var(--card2); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 6px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--tx2); }
.seg button.on { background: #fff; color: var(--tx); box-shadow: var(--soft); }
.slug { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 12px; background: #fff; overflow: hidden; }
.slug span { padding: 0 4px 0 12px; color: var(--tx3); font-size: 13px; }
.slug .inp { border: 0; box-shadow: none; padding-left: 0; }
.pill { border: 1px solid var(--line2); background: #fff; border-radius: 99px; padding: 5px 11px; font-size: 12px; font-weight: 700; color: var(--tx3); }
.pill.pub { background: #e7f6ef; border-color: #bfe6d3; color: var(--green); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--soft); margin-bottom: 16px; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.toggle input { display: none; }
.toggle span { width: 42px; height: 24px; border-radius: 99px; background: var(--line2); position: relative; transition: background .2s; flex: none; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.toggle input:checked + span { background: var(--acc); }
.toggle input:checked + span::after { transform: translateX(18px); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--soft); }
.stats b { display: block; font: italic 700 30px var(--serif); line-height: 1.1; }
.stats span { font-size: 12px; color: var(--tx3); font-weight: 600; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }

/* grelha de projetos */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--soft); transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); }
.pc-img { display: block; aspect-ratio: 4 / 3; background: var(--card2); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pc-img img { transform: scale(1.04); }
.noimg { height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--tx3); }
.noimg svg { width: 34px; height: 34px; }
.pc-body { padding: 14px 16px 16px; border-top: 3px solid var(--ac); }
.pc-t { font: italic 700 20px/1.2 var(--serif); color: var(--tx); text-decoration: none; display: block; }
.pc-m { font-size: 12px; color: var(--tx3); margin: 4px 0 12px; }
.pc-f { display: flex; justify-content: space-between; align-items: center; }
.handle { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--tx2); cursor: grab; touch-action: none; box-shadow: var(--soft); }
.handle svg { width: 18px; height: 18px; }
.star { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .92); color: var(--line2); display: grid; place-items: center; box-shadow: var(--soft); }
.star.on { color: #f5b301; }
.dragging { box-shadow: 0 30px 60px rgba(120, 40, 80, .3) !important; transform: rotate(-2deg) scale(1.03); opacity: .95; }
.placeholder { border: 2px dashed var(--acc) !important; background: var(--acc-soft) !important; box-shadow: none !important; border-radius: 22px; }
.empty-big { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--line2); border-radius: 26px; }
.empty-big p { color: var(--tx2); max-width: 420px; margin: 8px auto 20px; }
.eb-ill { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 22px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; }
.eb-ill svg { width: 34px; height: 34px; }

/* editor */
.ed-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.ed-tt { flex: 1; min-width: 180px; }
.ed-tt h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved { font-size: 12px; color: var(--green); font-weight: 600; min-width: 80px; text-align: right; }
.ed-grid { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
@media (max-width: 980px) { .ed-grid { grid-template-columns: 1fr; } .ed-form { order: 2; } }
.ed-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--soft); position: sticky; top: 80px; border-top: 4px solid var(--ac); }
@media (max-width: 980px) { .ed-form { position: static; } }
.drop { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 30px 16px; border: 2px dashed var(--line2); border-radius: 22px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 6%, #fff); }
.drop-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--ac); color: #fff; display: grid; place-items: center; margin-bottom: 6px; box-shadow: 0 10px 22px color-mix(in srgb, var(--ac) 35%, transparent); }
.drop b { font-size: 16px; }
.drop span { font-size: 13px; color: var(--tx3); }
.drop u { color: var(--ac); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ph-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; gap: 10px; }
.ph-head h3 { margin: 0; }
.ph-head .hint { margin: 0; }
.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ph { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--soft); }
.ph-img { position: relative; aspect-ratio: 1; background: var(--card2); }
.ph-img img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.ph .handle { width: 30px; height: 30px; top: 8px; left: 8px; }
.ph-cover { position: absolute; left: 8px; bottom: 8px; border: 0; height: 28px; min-width: 28px; padding: 0 8px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--line2); display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; }
.ph-cover svg { width: 15px; height: 15px; }
.ph-cover.on { background: #f5b301; color: #fff; }
.ph-del { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .92); color: var(--red); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.ph-del svg { width: 15px; height: 15px; }
.ph:hover .ph-del { opacity: 1; }
@media (hover: none) { .ph-del { opacity: 1; } }
.cap { width: 100%; border: 0; border-top: 1px solid var(--line); padding: 9px 11px; font-size: 13px; outline: none; background: #fff; }
.cap:focus { background: var(--bg2); }

/* fila de uploads */
.upq { position: fixed; right: 16px; bottom: 16px; z-index: 70; width: min(340px, calc(100% - 32px)); background: #fff; border: 1px solid var(--line2); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.uq { display: grid; grid-template-columns: 1fr 70px 46px; gap: 8px; align-items: center; font-size: 12px; padding: 4px 6px; }
.uq-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.uq-bar { height: 6px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.uq-bar i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .2s; }
.uq-s { text-align: right; color: var(--tx3); font-weight: 600; }
.uq.done .uq-s { color: var(--green); }
.uq.err { grid-template-columns: 1fr; }
.uq.err .uq-bar { display: none; }
.uq.err .uq-s { color: var(--red); text-align: left; }

/* definições */
.hero-up { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.hu-img { width: 92px; height: 118px; border-radius: 16px; overflow: hidden; background: var(--card2); flex: none; }
.hu-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hu-img img.def { object-fit: contain; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sticky-save { position: sticky; bottom: 14px; display: flex; justify-content: flex-end; }

/* mensagens */
.msg { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--soft); }
.msg.new { border-left: 4px solid var(--acc); }
.msg-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.msg-h a { color: var(--tx2); font-size: 13px; }
.msg-h time { font-size: 12px; color: var(--tx3); }
.sp { flex: 1; }
.msg p { white-space: pre-wrap; margin: 10px 0 12px; color: var(--tx); }
.msg-f { display: flex; gap: 8px; }

/* modal / toast / loader */
#overlay:empty { display: none; }
.m-bg { position: fixed; inset: 0; z-index: 90; background: rgba(70, 30, 50, .3); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.m-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.m-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toast { position: fixed; top: 16px; left: 50%; transform: translate(-50%, -150%); z-index: 99; background: var(--tx); color: #fff; padding: 10px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2, .9, .3, 1.1); }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--red); }
.loader { display: grid; place-items: center; height: 50vh; }
.loader i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--acc); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───── login (reaproveitado) ───── */
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 20px; overflow: hidden; }
.login-bg span { position: fixed; border-radius: 50%; filter: blur(80px); animation: float 14s ease-in-out infinite alternate; }
.login-bg span:nth-child(1) { width: 420px; height: 420px; background: var(--acc); top: -160px; left: -120px; opacity: .22; }
.login-bg span:nth-child(2) { width: 360px; height: 360px; background: #ffb38a; bottom: -140px; right: -100px; opacity: .25; animation-delay: -5s; }
.login-bg span:nth-child(3) { width: 260px; height: 260px; background: #9b7fe0; top: 40%; left: 55%; opacity: .14; animation-delay: -9s; }
@keyframes float { to { transform: translate(40px, 30px) scale(1.1); } }
.login-card { position: relative; width: 100%; max-width: 400px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(20px); border: 1px solid var(--line2); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.login-brand img { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 8px 22px rgba(232, 77, 138, .3); }
.login-title { font: italic 700 26px var(--serif); }
.login-sub { font-size: 13px; color: var(--tx3); }
.login-form .btn { margin-top: 16px; }
.pw-wrap { position: relative; }
.pw-wrap .inp { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--tx3); padding: 8px; }
.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 12px; font-weight: 600; color: var(--tx3); }
.step { display: flex; align-items: center; gap: 7px; }
.step i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); border: 1px solid var(--line2); font-size: 11px; }
.step.on { color: var(--tx); }
.step.on i { background: var(--acc); color: #fff; border-color: var(--acc); }
.step.done i { background: var(--acc-soft); color: var(--acc); border-color: transparent; }
.step-line { flex: 1; height: 1px; background: var(--line2); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.otp input { width: 100%; aspect-ratio: 1 / 1.15; text-align: center; font-size: 24px; font-weight: 800; background: #fff; border: 1px solid var(--line2); border-radius: 12px; outline: none; }
.otp input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.login-links { display: flex; justify-content: space-between; margin-top: 14px; }
.login-links form { margin: 0; }
.link { background: none; border: 0; color: var(--tx2); text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.login-foot { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--tx3); margin: 0; }
.center { text-align: center; }
.alert { padding: 11px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 14px; border: 1px solid; }
.alert.err { background: rgba(229, 72, 77, .07); border-color: rgba(229, 72, 77, .3); color: #c92f45; }
.alert.ok { background: var(--acc-soft); border-color: rgba(232, 77, 138, .3); color: var(--acc); }
.alert.warn { background: rgba(240, 138, 60, .08); border-color: rgba(240, 138, 60, .35); color: #b5532c; line-height: 1.6; }
.btn.block { display: flex; width: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.upq[hidden] { display: none; }
.slug span { white-space: nowrap; font-size: 12px; }
.toast { top: 74px; }
.drop .drop-ic { color: #fff; }

/* toast escondido não deixa sombra/rebordo visível no topo */
.toast { opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.2, .9, .3, 1.1), opacity .25s; }
.toast.show { opacity: 1; pointer-events: auto; }
