/* Área administrativa: identidade fixa do Brenda Studio. */
:root { --vinho: #6e1f2c; --vinho-2: #571722; --bege: #f0e8dc; --bege-2: #e4d8c5; --areia: #e8d5b5; --marrom: #7a5640; --tinta: #2c201b; --branco: #fffdfa; --serif: "Playfair Display", Georgia, serif; --sans: "Poppins", system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; font-variant-numeric: lining-nums; }
.studio { min-height: 100vh; background: var(--bege); color: var(--tinta); font-family: var(--sans); font-weight: 400; font-size: .94rem; line-height: 1.6; }
.studio h1, .studio h2, .studio h3 { font-family: var(--sans); font-weight: 700; text-transform: uppercase; color: var(--tinta); margin: 0; line-height: 1.2; }
.studio h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.01em; }
.studio h2 { font-size: 1.15rem; }
.studio h3 { font-size: .92rem; }
.studio a { color: var(--vinho); }
.studio p { margin: 0; }

/* Barra superior escura */
.top { background: var(--vinho); color: var(--branco); }
.top-in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; padding: 12px clamp(16px, 4vw, 48px); }
.studio a.brand-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--branco); line-height: 1.25; }
.brand-mark i { font-style: normal; font-weight: 700; font-size: 1.1rem; width: 40px; height: 42px; border: 1px solid var(--areia); border-radius: 50% 50% 4px 4px; display: grid; place-items: center; padding-top: 4px; }
.brand-mark b { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.brand-mark em { display: block; font-family: var(--serif); font-size: .84rem; color: var(--areia); }
.top nav { display: flex; gap: 4px 22px; flex: 1; flex-wrap: wrap; }
.studio .top nav a { color: var(--branco); text-decoration: none; font-size: .8rem; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.studio .top nav a:hover { border-color: var(--areia); }
.studio .top .btn { background: var(--areia); border-color: var(--areia); color: var(--vinho-2); }
.studio .top .btn:hover { background: var(--branco); }
.studio .top .btn.ghost { background: transparent; color: var(--branco); border-color: rgb(255 253 250 / .35); }
.studio .top .btn.ghost:hover { background: rgb(255 253 250 / .12); }
.studio .top :focus-visible { outline-color: var(--areia); }
.badge { background: var(--areia); color: var(--vinho-2); border-radius: 99px; font-size: .68rem; padding: 1px 7px; margin-left: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 48px) 90px; display: grid; gap: 22px; }
.wrap > * { min-width: 0; }
/* Título em caixa alta com o subtítulo em serifa itálica logo abaixo */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.page-head > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.page-head > div:first-child > * { order: 3; }
.page-head > div:first-child > h1 { order: 1; }
.page-head > div:first-child > .eyebrow { order: 2; }
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--marrom); }

.studio .btn { font: 600 .8rem var(--sans); background: var(--vinho); color: var(--branco); border: 1px solid var(--vinho); padding: 9px 20px; border-radius: 99px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.studio .btn:hover { background: var(--vinho-2); }
.studio .btn.ghost { background: transparent; color: var(--vinho); border-color: rgb(110 31 44 / .35); }
.studio .btn.ghost:hover { background: var(--bege-2); }
.studio .btn.small { padding: 5px 13px; font-size: .74rem; }
.studio .btn:disabled { opacity: .45; cursor: not-allowed; }
.studio :focus-visible { outline: 2px solid var(--vinho); outline-offset: 2px; }

.card { background: var(--branco); border: 1px solid var(--bege-2); border-radius: 16px; padding: clamp(18px, 2.6vw, 28px); display: grid; gap: 16px; align-content: start; }
.card > * { min-width: 0; }
.card.empty { border: 1px dashed #cdbb9f; justify-items: center; text-align: center; padding: clamp(34px, 6vw, 62px) 22px; }
.card.empty p { max-width: 42ch; color: #77655b; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { background: var(--branco); border: 1px solid var(--bege-2); border-radius: 14px; padding: 14px 18px; display: grid; align-content: start; gap: 2px; }
.stat span { font-size: .76rem; color: #77655b; }
.stat b { font-weight: 700; font-size: 1.7rem; line-height: 1.3; }
.stat b.good { color: #2f6143; }
.stat em { font-family: var(--serif); font-size: .84rem; color: var(--marrom); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; align-items: start; }
.field { display: grid; gap: 5px; font-size: .78rem; font-weight: 500; color: #5d4a40; align-content: start; }
.studio input:not([type=checkbox]):not([type=color]):not([type=file]), .studio select, .studio textarea { font: 400 16px var(--sans); color: var(--tinta); background: var(--branco); border: 1px solid var(--bege-2); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; }
.studio textarea { resize: vertical; }
.studio input[type=color] { width: 54px; height: 38px; border: 1px solid var(--bege-2); background: none; padding: 2px; }
.studio fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

.list { display: grid; }
.studio a.item { display: grid; grid-template-columns: 8px minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 16px; align-items: center; padding: 16px 4px; border-top: 1px solid var(--bege-2); text-decoration: none; color: var(--tinta); }
.studio a.item:hover { background: var(--bege); }
.swatch { align-self: stretch; border-radius: 4px; min-height: 40px; }
.item b { font-size: 1rem; font-weight: 600; display: block; line-height: 1.3; }
.item small, .muted { font-size: .82rem; color: #77655b; }
.pill { display: inline-block; justify-self: start; font-size: .72rem; font-weight: 500; border: 1px solid currentColor; border-radius: 99px; padding: 2px 11px; color: var(--marrom); white-space: nowrap; }
.pill.sent, .pill.revised { color: #8a5a12; }
.pill.changes, .pill.changes_requested { color: var(--branco); background: var(--vinho); border-color: var(--vinho); }
.pill.approved { color: #2f6143; }
@media (max-width: 760px) { .studio a.item { grid-template-columns: 8px minmax(0, 1fr); gap: 4px 14px; } .item > :first-child { grid-row: span 4; } .item > :nth-child(n+2) { grid-column: 2; } }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px; }
.studio .tabs button { background: var(--branco); border: 1px solid var(--bege-2); border-radius: 99px; padding: 7px 16px; font: 500 .8rem var(--sans); color: var(--marrom); cursor: pointer; white-space: nowrap; }
.studio .tabs button[aria-selected=true] { background: var(--vinho); border-color: var(--vinho); color: var(--branco); }

.notice { border-left: 3px solid var(--vinho); border-radius: 8px; background: var(--branco); padding: 12px 16px; font-size: .88rem; }
.error { color: #9b1c1c; font-size: .86rem; }
.ok { color: #2f6143; font-size: .86rem; }
.sticky { position: sticky; top: 0; z-index: 5; background: var(--bege); padding: 12px 0; border-bottom: 1px solid var(--bege-2); }
details.scene-edit { background: var(--branco); border: 1px solid var(--bege-2); border-radius: 12px; }
details.scene-edit > summary { cursor: pointer; padding: 13px 18px; font-weight: 600; }
details.scene-edit > div { padding: 0 18px 20px; display: grid; gap: 16px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.thumb { background: var(--bege); border: 1px solid var(--bege-2); border-radius: 10px; padding: 8px; display: grid; gap: 6px; font-size: .74rem; align-content: start; overflow-wrap: anywhere; }
.thumb img, .thumb video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.thumb .file { aspect-ratio: 1; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; color: var(--marrom); text-transform: uppercase; }
.preview-frame { border: 1px solid var(--bege-2); border-radius: 16px; overflow: hidden; }
.plain-list { margin: 0; padding-left: 18px; }
.hex { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; margin-right: 14px; }
.hex i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--bege-2); display: inline-block; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(90deg, var(--vinho) 0 38%, var(--bege) 38%); }
.auth form { width: min(420px, 100%); }
@media (max-width: 760px) { .auth { background: var(--bege); } }
