/* =========================================================
   Hogwarts: Rise of Magic — estilo
   Mobile-first · dourado · noite encantada
   ========================================================= */
:root {
  --bg: #0b0a0f;
  --bg-2: #13111a;
  --ink: #f3e9d2;
  --ink-soft: #c9bb98;
  --muted: #8f8468;
  --gold-1: #fff1c1;
  --gold-2: #e9c46a;
  --gold-3: #b8892c;
  --gold-4: #7a5716;
  --gold: linear-gradient(135deg, #fff1c1 0%, #e9c46a 28%, #a87b23 55%, #f1d27f 80%, #8a621a 100%);
  --line: rgba(233, 196, 106, .28);
  --card: rgba(24, 20, 30, .72);
  --ok: #3fae6a;
  --no: #c2412f;
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", "Times New Roman", serif;
  --deco: "Cinzel Decorative", "Cinzel", serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- Fundo: céu, névoa dourada, faíscas ---------- */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(233,196,106,.16), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(122,20,20,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 90%, rgba(30,60,120,.16), transparent 60%),
    linear-gradient(180deg, #0d0b14 0%, #0a090e 60%, #08070b 100%);
}
.sky::before {
  content: ""; position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8, transparent 60%),
    radial-gradient(1px 1px at 72% 12%, #fff9, transparent 60%),
    radial-gradient(1.4px 1.4px at 40% 34%, #ffe9b0, transparent 60%),
    radial-gradient(1px 1px at 88% 40%, #fff7, transparent 60%),
    radial-gradient(1px 1px at 22% 62%, #fff6, transparent 60%),
    radial-gradient(1.3px 1.3px at 60% 72%, #ffe9b0aa, transparent 60%),
    radial-gradient(1px 1px at 8% 86%, #fff6, transparent 60%),
    radial-gradient(1px 1px at 94% 82%, #fff7, transparent 60%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .35; } }

.sparkles { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.sparkles i {
  position: absolute; bottom: -10px;
  width: var(--sz); height: var(--sz); border-radius: 50%;
  background: radial-gradient(circle, #fff7d6 0%, #e9c46a 45%, transparent 70%);
  box-shadow: 0 0 8px 2px rgba(233,196,106,.55);
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .9; }
  80% { opacity: .6; }
  100% { transform: translate(var(--dx), -105vh); opacity: 0; }
}

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 14px 26px; min-height: 50px;
  font-family: var(--display); font-weight: 700; letter-spacing: .08em; font-size: 15px; text-transform: uppercase;
  transition: transform .15s ease, filter .2s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.btn-gold {
  color: #2b1c04;
  background: var(--gold);
  background-size: 200% 200%;
  box-shadow: 0 0 0 1px rgba(255,241,193,.5) inset, 0 8px 28px -8px rgba(233,196,106,.65), 0 2px 0 rgba(0,0,0,.4);
  animation: goldshift 6s ease-in-out infinite;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
@keyframes goldshift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-gold::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%);
  background-size: 250% 100%; background-position: 150% 0;
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
.btn-block { width: 100%; }
.btn.loading span { opacity: .4; }
.btn.loading::before {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #2b1c04; border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-ok { background: linear-gradient(180deg, #4cc17b, #2a8a52); color: #fff; padding: 10px 18px; min-height: 42px; font-size: 13px; flex: 1; }
.btn-no { background: linear-gradient(180deg, #d4573f, #96281a); color: #fff; padding: 10px 18px; min-height: 42px; font-size: 13px; flex: 1; }
.link { background: none; border: 0; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px; font-family: var(--display); font-size: 13px; letter-spacing: .06em; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================
   APLICAÇÃO
   ========================================================= */
.app { position: relative; z-index: 2; min-height: 100dvh; padding-bottom: calc(86px + var(--safe-b)); animation: fadeIn .9s both; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: linear-gradient(180deg, rgba(11,10,15,.95), rgba(11,10,15,.75));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 120px; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
}
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-small { font-family: var(--display); font-size: 10px; letter-spacing: .5em; color: var(--gold-2); text-transform: uppercase; margin-right: -.5em; }
.brand-title {
  font-family: var(--deco); font-weight: 700; font-size: 21px; margin-top: 4px;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mode-chip {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted);
}

.view { max-width: 1100px; margin: 0 auto; padding: 0 16px 24px; outline: none; }
.view.enter { animation: fadeIn .55s ease both; }

/* Tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(6px + var(--safe-b));
  background: linear-gradient(0deg, rgba(10,9,14,.98), rgba(14,12,20,.9));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px;
  color: var(--muted); text-decoration: none; border-radius: 14px;
  font-family: var(--display); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  transition: color .25s, background .25s;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--gold-1); background: radial-gradient(60% 80% at 50% 0%, rgba(233,196,106,.2), transparent); }
.tabbar a.active svg { filter: drop-shadow(0 0 6px rgba(233,196,106,.8)); }

/* Cabeçalho de página */
.hero { position: relative; text-align: center; padding: 30px 4px 18px; }
.hero.small { padding-bottom: 8px; }
.eyebrow { margin: 0; font-family: var(--display); font-size: 12px; letter-spacing: .35em; text-transform: uppercase; color: var(--gold-2); }
.page-title {
  margin: 6px 0 8px; font-family: var(--deco); font-weight: 700; font-size: clamp(30px, 9vw, 52px); line-height: 1.08;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 12px rgba(233,196,106,.25));
}
.lead { margin: 0 auto; max-width: 34ch; color: var(--ink-soft); font-style: italic; font-size: 18px; }
.hero .link { position: absolute; right: 0; top: 10px; }

/* Velas flutuantes */
.candles { position: absolute; inset: 18px 0 auto; height: 70px; pointer-events: none; }
.candles span {
  position: absolute; top: 0; width: 6px; height: 26px; border-radius: 2px;
  background: linear-gradient(90deg, #d8cdb3, #fffaf0, #cfc2a4);
  animation: float 5s ease-in-out infinite;
}
.candles span::before {
  content: ""; position: absolute; left: 50%; top: -11px; width: 7px; height: 11px; transform: translateX(-50%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff 0%, #ffe08a 35%, #ff9d2e 70%, transparent 72%);
  box-shadow: 0 0 14px 5px rgba(255,190,90,.45);
  animation: flicker .18s ease-in-out infinite alternate;
}
.candles span:nth-child(1) { left: 6%; animation-delay: -1s; top: 6px; }
.candles span:nth-child(2) { left: 20%; animation-delay: -3s; top: 30px; height: 20px; }
.candles span:nth-child(3) { left: 33%; animation-delay: -2s; top: 2px; }
.candles span:nth-child(4) { left: 64%; animation-delay: -4s; top: 24px; height: 22px; }
.candles span:nth-child(5) { left: 77%; animation-delay: -.5s; top: 4px; }
.candles span:nth-child(6) { left: 91%; animation-delay: -2.5s; top: 28px; height: 18px; }
.candles span:nth-child(7) { left: 49%; animation-delay: -1.7s; top: -14px; height: 16px; opacity: .7; }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes flicker { to { transform: translateX(-50%) scale(.9, 1.08) rotate(3deg); opacity: .85; } }
.hero > :not(.candles) { position: relative; }
.hero:has(.candles) { padding-top: 92px; }

/* ---------- Ampulhetas (estante de bronze) ---------- */
.hall {
  position: relative; max-width: 640px; margin: 4px auto 0; padding: 14px 4px 12px;
  border-radius: 22px;
  background:
    radial-gradient(80% 50% at 50% 55%, rgba(233,196,106,.1), transparent 70%),
    linear-gradient(180deg, rgba(26,21,30,.7), rgba(12,10,15,.85));
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,241,193,.06);
}
.hall-row { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 1.9%; }
.hall-crest { padding: 0 1px; position: relative; z-index: 2; margin-bottom: -2%; transition: filter .6s, transform .6s; }
.hall-crest .crest { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.7)); }
.hall-crest.is-leader { transform: translateY(-3px) scale(1.04); filter: drop-shadow(0 0 14px rgba(255,220,140,.55)); }
.hall-rack .rack { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(0,0,0,.7)); }
.rack .sand-stream { opacity: 0; transition: opacity .3s; }
.rack .sand-stream.on { opacity: 1; animation: stream .25s linear infinite; }
@keyframes stream { 50% { opacity: .55; } }
.rack .spark { opacity: 0; }
.rack .sparks.on .spark { animation: spark 1.4s linear infinite; }
@keyframes spark { 0% { opacity: 0; transform: translateY(-40px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(40px); } }
.hall-pt { display: flex; flex-direction: column; align-items: center; line-height: 1; margin-top: 4px; }
.hall-pt .num {
  font-family: var(--deco); font-weight: 700; font-size: clamp(20px, 6vw, 32px);
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hall-pt small { font-family: var(--display); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: currentColor; opacity: .85; margin-top: 4px; }
.hall-pt.is-leader .num { filter: drop-shadow(0 0 10px rgba(233,196,106,.7)); }
.hall-pt.is-leader small::before { content: "★ "; }

.leader {
  margin: 20px auto 0; text-align: center; font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2);
}
.leader span { color: var(--gold-1); margin: 0 6px; }

/* ---------- Painéis e formulários ---------- */
.panel {
  position: relative; margin: 22px 0 0; padding: 22px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px -14px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,241,193,.07);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.panel h3 { margin: 0 0 6px; font-family: var(--display); font-size: 18px; color: var(--gold-1); letter-spacing: .04em; }
.panel p { margin: 0 0 16px; color: var(--ink-soft); }
.cta { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta::before, .cta::after {
  content: "❦"; position: absolute; top: -12px; color: var(--gold-2); background: var(--bg); padding: 0 8px; font-size: 16px;
}
.cta::before { left: 50%; transform: translateX(-50%); }
.cta::after { display: none; }
#trainForm, #trainForm + * { max-width: 640px; }
.view > .panel:not(.cta) { max-width: 640px; margin-left: auto; margin-right: auto; }

.form { display: flex; flex-direction: column; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span {
  font-family: var(--display); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2);
}
.field > span em { text-transform: none; letter-spacing: 0; color: var(--muted); font-family: var(--serif); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid rgba(233,196,106,.25);
  background: rgba(8,7,11,.6); color: var(--ink);
  font-size: 17px; /* >=16px evita zoom no iOS */
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-2) 50%), linear-gradient(135deg, var(--gold-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px;
}
select option { background: #15121c; }
textarea { resize: vertical; line-height: 1.5; min-height: 0; }
input::placeholder, textarea::placeholder { color: #6f6650; font-style: italic; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(233,196,106,.15), 0 0 18px -4px rgba(233,196,106,.45); }

/* Segmentado adicionar/retirar */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label, .type-card { position: relative; cursor: pointer; }
.seg input, .type-card input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px;
  border: 1px solid rgba(233,196,106,.25); background: rgba(8,7,11,.5);
  font-family: var(--display); font-size: 14px; letter-spacing: .06em; color: var(--ink-soft); transition: all .2s;
}
.seg input[value=add]:checked + span { border-color: #4cc17b; color: #bff2d2; background: rgba(63,174,106,.16); box-shadow: 0 0 16px -4px rgba(63,174,106,.6); }
.seg input[value=remove]:checked + span { border-color: #d4573f; color: #ffd3c8; background: rgba(194,65,47,.16); box-shadow: 0 0 16px -4px rgba(194,65,47,.6); }
.seg input:focus-visible + span, .type-card input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* Upload */
.file-field input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer;
  min-height: 86px; padding: 14px; border-radius: 14px; text-align: center;
  border: 1.5px dashed rgba(233,196,106,.45); background: rgba(233,196,106,.05); color: var(--gold-1);
  font-family: var(--display); font-size: 13px; letter-spacing: .05em;
}
.file-drop b { font-weight: 600; word-break: break-all; }
.file-drop small { color: var(--muted); font-family: var(--serif); font-size: 14px; }
.file-preview { max-height: 220px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #000; }

/* ---------- Treinos ---------- */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 640px; margin: 10px auto 0; }
.rule {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: rgba(24,20,30,.6);
}
.rule b { font-family: var(--display); font-size: 13px; letter-spacing: .06em; color: var(--gold-1); }
.rule span { font-size: 14px; color: var(--ink-soft); }
.rule em { font-style: normal; font-family: var(--deco); font-weight: 700; font-size: 18px; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-card span {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px; border-radius: 12px;
  border: 1px solid rgba(233,196,106,.25); background: rgba(8,7,11,.5); transition: all .2s; text-align: center;
}
.type-card b { font-family: var(--display); font-size: 12.5px; letter-spacing: .04em; }
.type-card small { color: var(--muted); font-size: 13px; }
.type-card em { font-style: normal; font-family: var(--display); font-weight: 700; color: var(--gold-2); font-size: 14px; }
.type-card input:checked + span { border-color: var(--gold-2); background: rgba(233,196,106,.12); box-shadow: 0 0 18px -6px rgba(233,196,106,.8), inset 0 0 0 1px rgba(233,196,106,.35); }
.type-card input:checked + span b { color: var(--gold-1); }

.meter { margin-top: -4px; }
.meter-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; border: 1px solid rgba(233,196,106,.15); }
.meter-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7a5716, #e9c46a); transition: width .25s ease; }
.meter-bar i.done { background: linear-gradient(90deg, #e9c46a, #fff1c1); box-shadow: 0 0 12px rgba(233,196,106,.8); }
.meter p { margin: 6px 0 0; font-size: 15px; color: var(--ink-soft); text-align: right; }
.meter p b { color: var(--gold-1); }
.daily { margin: 0; font-family: var(--display); font-size: 12px; letter-spacing: .08em; color: var(--gold-2); text-align: center; min-height: 1em; }
.daily.full { color: #ff9c8a; }

.section-title {
  margin: 34px 0 12px; text-align: center; font-family: var(--display); font-size: 15px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-2);
  display: flex; align-items: center; gap: 12px;
}
.section-title::before, .section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.section-title::after { background: linear-gradient(-90deg, transparent, var(--line)); }
.log { max-width: 640px; margin: 0 auto; }
.log-list { display: flex; flex-direction: column; gap: 8px; }
.log-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: rgba(24,20,30,.55); border: 1px solid rgba(233,196,106,.14);
}
.log-item > div { min-width: 0; }
.log-item b { font-family: var(--display); font-size: 14.5px; letter-spacing: .02em; }
.log-item small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.pp { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--gold-1); white-space: nowrap; }

/* Selos das casas */
.hbadge {
  display: inline-block; vertical-align: middle; margin-left: 4px;
  padding: 2px 8px; border-radius: 99px; font-family: var(--display); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid currentColor;
}
.hb-grifinoria { color: #ff8b7c; } .hb-corvinal { color: #93b6ff; } .hb-sonserina { color: #7fe0a6; } .hb-lufalufa { color: #ffd65a; }

/* ---------- Staff ---------- */
.login { text-align: center; max-width: 420px !important; }
.login .form { text-align: left; }
.keyhole {
  width: 54px; height: 54px; margin: -48px auto 14px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 6px 18px rgba(0,0,0,.6), 0 0 22px -4px rgba(233,196,106,.7);
  position: relative;
}
.keyhole::before { content: ""; position: absolute; left: 50%; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: #2b1c04; transform: translateX(-50%); }
.keyhole::after { content: ""; position: absolute; left: 50%; top: 22px; width: 6px; height: 16px; background: #2b1c04; transform: translateX(-50%); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.stat { text-align: center; padding: 10px 2px; border-radius: 12px; border: 1px solid rgba(233,196,106,.16); background: rgba(24,20,30,.55); }
.stat small { display: block; font-family: var(--display); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; }
.stat b { font-family: var(--deco); font-size: 18px; color: var(--ink); }
.tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 16px 0 14px; padding: 4px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(8,7,11,.6);
  position: sticky; top: 64px; z-index: 5; backdrop-filter: blur(8px);
}
.tabs button {
  border: 0; background: none; border-radius: 10px; padding: 10px 2px; cursor: pointer;
  font-family: var(--display); font-size: 10.5px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.tabs button.active { background: rgba(233,196,106,.15); color: var(--gold-1); box-shadow: inset 0 0 0 1px rgba(233,196,106,.35); }
.tabs button i { font-style: normal; display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 99px; background: var(--no); color: #fff; font-size: 10px; margin-left: 2px; }
.staff-list { display: flex; flex-direction: column; gap: 12px; }
.staff-list .panel { margin: 0; }
.req {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  transition: opacity .35s, transform .35s;
}
.req.train { grid-template-columns: 1fr; }
.req.leaving { opacity: 0; transform: translateX(40px); }
.req.approved { border-left: 3px solid var(--ok); }
.req.denied { border-left: 3px solid var(--no); opacity: .85; }
.req-img { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; cursor: zoom-in; height: 120px; }
.req-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.req-info { min-width: 0; }
.req-info p { margin: 4px 0 0; }
.req-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.req-top b { font-family: var(--display); font-size: 15px; overflow-wrap: anywhere; }
.amt { font-family: var(--deco); font-weight: 700; font-size: 20px; white-space: nowrap; }
.amt.plus { color: #7fe0a6; } .amt.minus { color: #ff8b7c; }
.note { font-style: italic; color: var(--ink-soft); font-size: 15.5px; overflow-wrap: anywhere; }
.req-actions { display: flex; gap: 8px; margin-top: 10px; }
.st-approved { color: #7fe0a6; } .st-denied { color: #ff8b7c; }
details { margin-top: 8px; }
summary { cursor: pointer; color: var(--gold-2); font-family: var(--display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.scene { margin-top: 8px; max-height: 260px; overflow: auto; white-space: pre-wrap; font-size: 15.5px; color: var(--ink-soft); padding: 10px; border-radius: 10px; background: rgba(0,0,0,.35); }

.muted { color: var(--muted); }
.tiny { font-size: 13.5px; }
.center { text-align: center; }
.empty { padding: 30px 0; font-style: italic; }

/* ---------- Folha inferior ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 18px calc(24px + var(--safe-b));
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #1c1824, #110f16);
  border-top: 1px solid rgba(233,196,106,.5);
  box-shadow: 0 -20px 50px rgba(0,0,0,.7), 0 -1px 24px -6px rgba(233,196,106,.35);
  transform: translateY(100%); transition: transform .38s cubic-bezier(.2,.8,.2,1);
}
.sheet.open { transform: none; }
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; width: 560px; bottom: auto; top: 50%; border-radius: 22px; border: 1px solid rgba(233,196,106,.45);
    transform: translate(-50%, -45%) scale(.96); opacity: 0; transition: transform .3s, opacity .3s; max-height: 88dvh; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grip { display: none; }
}
.sheet-grip { width: 44px; height: 5px; border-radius: 99px; background: rgba(233,196,106,.35); margin: 0 auto 8px; }
.sheet-close { position: absolute; right: 12px; top: 10px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--gold-1); font-size: 22px; line-height: 1; cursor: pointer; }
.sheet-title { margin: 8px 40px 2px 0; font-family: var(--deco); font-size: 24px; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sheet-sub { margin: 0 0 16px; color: var(--ink-soft); font-style: italic; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-height: 92dvh; border-radius: 8px; box-shadow: 0 0 40px rgba(233,196,106,.2); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 14px; text-align: center;
  background: rgba(20,17,26,.96); border: 1px solid var(--gold-3); color: var(--gold-1);
  box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 20px -6px rgba(233,196,106,.5);
  font-size: 16px; transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: #4cc17b; }
.toast.err { border-color: #d4573f; color: #ffd3c8; }

@media (max-width: 360px) {
  .row { grid-template-columns: 1fr; }
  .types, .rules { gap: 6px; }
  .req { grid-template-columns: 80px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Taça trancada / painel da Taça ---------- */
.cta.locked { border-color: rgba(212,87,63,.55); box-shadow: 0 12px 34px -14px rgba(0,0,0,.9), 0 0 28px -10px rgba(212,87,63,.5); }
.cta.locked h3 { color: #ffb4a3; }
.lock-icon { font-size: 30px; line-height: 1; margin-bottom: 6px; filter: drop-shadow(0 0 10px rgba(233,196,106,.6)); }
.staff-list .panel + .panel { margin-top: 0; }
.cup-panel { border-color: rgba(76,193,123,.5); }
.cup-panel.locked { border-color: rgba(212,87,63,.6); }
.danger-panel { border-color: rgba(212,87,63,.35); }
.danger-panel h3 { color: #ffb4a3; }
.staff-list .btn-ok, .staff-list .btn-no { min-height: 48px; font-size: 14px; }
.scene-date { font-family: var(--display); font-size: 12.5px; letter-spacing: .04em; color: var(--gold-1); }
input[type=date] { min-height: 48px; color-scheme: dark; }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(1) saturate(3) hue-rotate(5deg); cursor: pointer; }

/* =========================================================
   PLATAFORMA DE TRABALHOS + PAINEL DA STAFF
   ========================================================= */
.center { text-align: center; }
.right { text-align: right; }
.back-link {
  display: inline-block; margin-bottom: 10px; color: var(--gold-2); text-decoration: none;
  font-family: var(--display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.hero .logout-link { position: absolute; right: 0; top: 10px; }
.hero.small .back-link + .eyebrow { margin-top: 0; }
.tabs-3 { grid-template-columns: repeat(3, 1fr); }
.tabs-2 { grid-template-columns: repeat(2, 1fr); }
.tabs.narrow { max-width: 420px; margin-left: auto; margin-right: auto; }

/* Hub da staff */
.hub-hello { margin-bottom: 18px; }
.hub { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
@media (min-width: 820px) { .hub { grid-template-columns: repeat(3, 1fr); max-width: 980px; } }
.hub-card {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 18px;
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, rgba(30,25,36,.85), rgba(14,12,18,.9));
  border: 1px solid var(--line); box-shadow: 0 12px 30px -14px rgba(0,0,0,.9);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.hub-card:active { transform: scale(.98); }
.hub-card:hover { border-color: rgba(255,232,160,.6); box-shadow: 0 0 26px -8px rgba(233,196,106,.45); }
.hub-icon {
  flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255,241,193,.25), rgba(233,196,106,.08));
  border: 1px solid rgba(233,196,106,.45);
}
.hub-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-1); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hub-text { display: flex; flex-direction: column; gap: 2px; }
.hub-text b { font-family: var(--deco); font-size: 22px; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hub-text small { color: var(--ink-soft); font-size: 15px; line-height: 1.3; }
.hub-badge {
  position: absolute; top: 10px; right: 12px; font-style: normal; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 99px; display: grid; place-items: center; background: var(--no); color: #fff; font-size: 12px; font-family: var(--display);
}

/* Filtros */
.filters { margin-top: 6px; }
.filters .row { grid-template-columns: 2fr 1fr; }
.filters p { margin: 8px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 16px; }
.chip {
  border: 1px solid rgba(233,196,106,.3); background: rgba(8,7,11,.5); color: var(--ink-soft); cursor: pointer;
  border-radius: 99px; padding: 7px 13px; text-decoration: none;
  font-family: var(--display); font-size: 12px; letter-spacing: .05em;
}
.chip.active { background: rgba(233,196,106,.16); color: var(--gold-1); border-color: var(--gold-2); }

/* Anos */
.me-card {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px;
  max-width: 640px; margin: 0 auto 14px; padding: 10px 14px; border-radius: 14px;
  background: rgba(24,20,30,.6); border: 1px solid rgba(233,196,106,.2); font-size: 16px;
}
.year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 640px; margin: 6px auto 0; }
@media (max-width: 420px) { .year-grid { grid-template-columns: repeat(3, 1fr); } }
.year-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0; padding: 14px 4px 10px; text-decoration: none;
  border-radius: 16px; border: 1px solid var(--line); color: var(--ink);
  background: radial-gradient(90% 70% at 50% 0%, rgba(233,196,106,.16), transparent 70%), linear-gradient(180deg, rgba(30,25,36,.9), rgba(14,12,18,.92));
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.9);
  transition: transform .2s, box-shadow .2s;
}
.year-btn:active { transform: scale(.96); }
.year-btn:hover { box-shadow: 0 0 22px -6px rgba(233,196,106,.5); }
.year-btn b { font-family: var(--deco); font-size: 30px; line-height: 1; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.year-btn span { font-family: var(--display); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-2); }
.year-btn small { margin-top: 4px; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.2; }

/* Matérias */
.subjects { max-width: 760px; margin: 0 auto; }
.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .subject-grid { grid-template-columns: repeat(3, 1fr); } }
.subject-btn {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 10px;
  border-radius: 12px; border: 1px solid rgba(233,196,106,.25); background: rgba(24,20,30,.6); text-decoration: none;
  color: var(--gold-1); font-family: var(--display); font-size: 13px; letter-spacing: .03em; line-height: 1.25;
  transition: background .2s, border-color .2s;
}
.subject-btn:hover, .subject-btn:active { background: rgba(233,196,106,.12); border-color: var(--gold-2); }
.prof-cta { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; margin-top: 28px; }
.prof-cta .btn { text-decoration: none; }

/* Cartões de trabalho */
.hw-list { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin: 0 auto; }
.year-group { max-width: 680px; margin: 0 auto; }
.hw-card {
  position: relative; padding: 16px 16px 14px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); border-left-width: 4px; box-shadow: 0 12px 30px -16px rgba(0,0,0,.9);
}
.hw-card.st-open { border-left-color: #4cc17b; }
.hw-card.st-late { border-left-color: #d4573f; }
.hw-card.st-closed { border-left-color: #6b6355; opacity: .8; }
.hw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hw-subject { font-family: var(--deco); font-weight: 700; font-size: 20px; line-height: 1.15; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hw-status {
  flex: none; padding: 3px 9px; border-radius: 99px; font-family: var(--display); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid;
}
.hw-status.open { color: #8ff0b6; border-color: rgba(76,193,123,.6); background: rgba(63,174,106,.12); }
.hw-status.late { color: #ffb4a3; border-color: rgba(212,87,63,.7); background: rgba(194,65,47,.16); }
.hw-status.closed { color: #b8ad92; border-color: rgba(143,132,104,.5); }
.hw-meta { margin: 4px 0 8px; font-family: var(--display); font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); }
.hw-desc { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 17px; line-height: 1.5; }
.hw-desc.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.hw-dates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px; margin: 12px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); }
@media (min-width: 560px) { .hw-dates { grid-template-columns: repeat(4, 1fr); } }
.hw-dates div { display: flex; flex-direction: column; }
.hw-dates dt { font-family: var(--display); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.hw-dates dd { margin: 0; font-size: 16px; }
.hw-foot { display: flex; flex-direction: column; gap: 6px; }
.hw-foot.split { flex-direction: row; justify-content: space-between; align-items: center; }
.hw-done { display: block; text-align: center; padding: 10px; border-radius: 12px; font-family: var(--display); font-size: 13px; letter-spacing: .04em;
  color: #8ff0b6; border: 1px solid rgba(76,193,123,.5); background: rgba(63,174,106,.1); }
.hw-done.late { color: #ffb4a3; border-color: rgba(212,87,63,.6); background: rgba(194,65,47,.12); }
.hw-done.closed { color: var(--muted); border-color: rgba(143,132,104,.35); background: transparent; }
.hw-card.compact .hw-desc.clamp { -webkit-line-clamp: 3; }
.closed-box { margin: 10px 0 4px; }
.closed-box summary { margin-bottom: 10px; }
.todo-txt { color: #ffd27a; }

/* Entrega */
.hw-summary { padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid rgba(233,196,106,.18); margin-bottom: 12px; }
.hw-summary small { display: block; color: var(--muted); font-size: 14px; }
.late-warn { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(212,87,63,.6); background: rgba(194,65,47,.14); color: #ffd3c8; font-size: 16px; }
#deliverForm textarea { min-height: 260px; }

/* Etiquetas */
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-family: var(--display); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.pill.late { color: #ffb4a3; border-color: rgba(212,87,63,.75); background: rgba(194,65,47,.18); }
.pill.ontime { color: #8ff0b6; border-color: rgba(76,193,123,.55); background: rgba(63,174,106,.1); }
.pill.ok { color: #8ff0b6; border-color: rgba(76,193,123,.55); background: rgba(63,174,106,.1); }
.pill.todo { color: #ffd27a; border-color: rgba(255,210,122,.5); background: rgba(255,210,122,.08); }

/* Entregas (professor) */
.sub-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid #4cc17b;
  color: var(--ink); font: inherit;
}
.sub-card.late { border-left-color: #d4573f; background: linear-gradient(90deg, rgba(194,65,47,.12), transparent 40%), var(--card); }
.sub-card.graded { opacity: .85; }
.sub-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sub-top b { font-family: var(--display); font-size: 15.5px; }
.sub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sub-desc { color: var(--ink-soft); font-style: italic; font-size: 15px; }

/* Correção */
.grade-head p { margin: 0 0 6px; }
.grade-head .big { font-family: var(--display); font-size: 18px; }
.label { margin: 14px 0 6px; font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.work-text {
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 50vh; overflow: auto; padding: 14px; border-radius: 12px;
  background: #efe2c2; color: #2a1c0c; font-family: "IM Fell English", Georgia, serif; font-size: 17px; line-height: 1.6;
  box-shadow: inset 0 0 30px rgba(120,80,25,.3); margin-bottom: 14px;
}
.grade-done { padding: 12px; border-radius: 12px; border: 1px solid rgba(76,193,123,.5); background: rgba(63,174,106,.1); color: #c9f5da; text-align: center; }

/* Novo trabalho */
.deadline-preview { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); font-size: 15.5px; }
.deadline-preview:empty { display: none; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.dot.open { background: #4cc17b; } .dot.late { background: #d4573f; } .dot.closed { background: #6b6355; }

/* Professores (staff) */
.req.teacher.pending { border-left: 3px solid #ffd27a; }
.req.teacher.approved { border-left: 3px solid var(--ok); }
.req.teacher.rejected { border-left: 3px solid var(--no); opacity: .85; }
.tabbar a span { text-align: center; line-height: 1.15; }
@media (max-width: 480px) { .tabbar a { font-size: 9.5px; letter-spacing: .03em; padding: 7px 2px; } }
.req.teacher { grid-template-columns: 1fr; }

/* ---------- Histórico de Correções ---------- */
.hist-cta {
  display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 18px auto 0; padding: 16px;
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: radial-gradient(80% 90% at 0% 50%, rgba(233,196,106,.14), transparent 70%), linear-gradient(180deg, rgba(30,25,36,.88), rgba(14,12,18,.92));
  border: 1px solid rgba(233,196,106,.45); box-shadow: 0 12px 30px -14px rgba(0,0,0,.9);
}
.hist-cta .hub-text b { font-size: 19px; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 4px 0 18px;
  font-family: var(--display); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.crumbs i { font-style: normal; color: var(--muted); }
.crumb { padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(233,196,106,.2); color: var(--muted); }
.crumb a { color: inherit; text-decoration: none; }
.crumb.done { color: var(--gold-2); border-color: rgba(233,196,106,.4); }
.crumb.now { color: var(--gold-1); border-color: var(--gold-2); background: rgba(233,196,106,.14); }
.house-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 520px; margin: 0 auto; }
@media (min-width: 720px) { .house-grid { grid-template-columns: repeat(4, 1fr); max-width: 760px; } }
.house-btn { display: block; padding: 14px 10px 8px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30,25,36,.85), rgba(14,12,18,.9)); transition: transform .2s, box-shadow .2s; }
.house-btn:hover, .house-btn:active { transform: translateY(-2px); box-shadow: 0 0 24px -6px rgba(233,196,106,.5); }
.house-btn .crest { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.hist-summary { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; max-width: 680px; margin: 0 auto 12px; text-align: center; }
.hist-summary span { font-family: var(--display); font-size: 13px; letter-spacing: .04em; }
.hist-summary .muted { flex-basis: 100%; font-family: var(--serif); font-size: 15px; letter-spacing: 0; }
.hist-search { max-width: 680px; margin: 0 auto 12px; }
#histList { max-width: 680px; margin: 0 auto; }
.hist-student { border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.hist-student[open] { border-color: rgba(233,196,106,.5); }
.hist-student > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none;
  text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 17px; color: var(--ink);
}
.hist-student > summary::-webkit-details-marker { display: none; }
.hist-student > summary b { font-family: var(--display); font-size: 15.5px; }
.hist-student > summary small.muted { display: block; font-size: 13.5px; }
.you { font-family: var(--display); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #2b1c04; background: var(--gold); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.hist-pts { flex: none; font-family: var(--deco); font-weight: 700; font-size: 20px; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hist-pts small { font-size: 12px; }
.hist-works { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; }
.hist-work { padding: 12px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid rgba(233,196,106,.14); }
.hist-work p { margin: 4px 0; }
.hist-work .sub-top b { font-size: 14.5px; line-height: 1.3; }
.hist-work details { margin-top: 8px; }
.hist-work .work-text { margin: 8px 0 0; }
.feedback { margin: 8px 0; padding: 10px 12px; border-radius: 10px; border-left: 3px solid var(--gold-2); background: rgba(233,196,106,.08);
  white-space: pre-wrap; overflow-wrap: anywhere; font-style: italic; font-size: 16px; }
.feedback b { display: block; font-style: normal; font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 2px; }

/* mostrar/ocultar senha */
.pass-wrap { position: relative; display: block; }
.pass-wrap input { padding-right: 84px; }
.pass-wrap .eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: rgba(233,196,106,.12); color: var(--gold-1); border-radius: 8px; padding: 6px 10px; cursor: pointer;
  font-family: var(--display); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.field > .pass-wrap { font-family: var(--serif); font-size: inherit; letter-spacing: normal; text-transform: none; color: var(--ink); }
.pass-wrap input { font-family: var(--serif); text-transform: none; letter-spacing: normal; }
.pass-wrap input { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* apagar trabalhos */
.btn-danger-link {
  border: 1px solid rgba(212,87,63,.6); background: rgba(194,65,47,.12); color: #ffb4a3; cursor: pointer;
  border-radius: 99px; padding: 6px 12px; font-family: var(--display); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.btn-danger-link:disabled { opacity: .5; }
.stats-5 { grid-template-columns: repeat(5, 1fr); margin-bottom: 14px; }
.stats-5 .stat small { font-size: 8.5px; }
@media (min-width: 820px) { .hub { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }

/* pontuação negativa */
.hall-pt.neg .num { background: linear-gradient(135deg, #ffb4a3, #e0533f 50%, #8f1d14); -webkit-background-clip: text; background-clip: text; color: transparent; }
.neg-txt { color: #ff8b7c !important; }
