/* Painel · Eduarda Olist */
:root {
  --vinho: #350a06; --vinho-2: #4a140e; --noite: #1d0503; --creme: #f4efe9; --areia: #ebe2d6; --areia-2: #dfd2c1; --branco: #fffdfb;
  --ouro: #bf9b5f; --ouro-claro: #e3cfa6; --ouro-esc: #9c7b45; --tinta: #2b1411; --tinta-2: #6f5a53; --linha: rgba(53, 10, 6, .12);
  --ok: #2f7a4f; --erro: #a3261a; --pre: #b9852f;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1); --r: 16px; --side: 248px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--creme); color: var(--tinta); font: 300 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--vinho); line-height: 1.1; margin: 0; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--vinho); z-index: 100; transition: opacity .5s; }
.boot img { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.94); } }
.boot.out { opacity: 0; pointer-events: none; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 500 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; transition: transform .3s var(--ease), background .3s, box-shadow .3s, color .3s; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(.97); }
.btn--wine { background: var(--vinho); color: var(--creme); }
.btn--wine:hover { background: var(--vinho-2); box-shadow: 0 10px 24px -12px rgba(53, 10, 6, .8); }
.btn--gold { background: var(--ouro); color: var(--noite); }
.btn--gold:hover { background: var(--ouro-claro); }
.btn--line { box-shadow: inset 0 0 0 1px var(--linha); background: var(--branco); color: var(--vinho); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--vinho); }
.btn--danger { color: var(--erro); box-shadow: inset 0 0 0 1px rgba(163, 38, 26, .3); background: var(--branco); }
.btn--danger:hover { background: #fbe9e5; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 11.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--tinta-2); transition: background .25s, color .25s; }
.icon-btn:hover { background: var(--areia); color: var(--vinho); }
.icon-btn svg { width: 18px; height: 18px; }

/* campos */
.fld { display: block; font: 500 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-2); }
.fld small { text-transform: none; letter-spacing: 0; font-weight: 300; }
.fld input, .fld select, .fld textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--areia-2); background: var(--branco); font: 300 15.5px/1.4 var(--sans); color: var(--tinta); transition: border-color .25s, box-shadow .25s; -webkit-appearance: none; appearance: none; }
.fld select { background: var(--branco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23350a06' stroke-width='1.4'/%3E%3C/svg%3E") right 14px center/12px no-repeat; padding-right: 36px; }
.fld textarea { resize: vertical; min-height: 96px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--ouro); box-shadow: 0 0 0 4px rgba(191, 155, 95, .18); }
.fld .hint { display: block; margin-top: 6px; text-transform: none; letter-spacing: 0; font-weight: 300; font-size: 12.5px; color: var(--tinta-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: grid; gap: 16px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--branco); border: 1px solid var(--areia-2); cursor: pointer; font-size: 14.5px; }
.switch small { display: block; color: var(--tinta-2); font-size: 12.5px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { flex: none; position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--areia-2); transition: background .3s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .35s var(--ease); }
.switch input:checked + i { background: var(--vinho); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--ouro); outline-offset: 2px; }
.pw { position: relative; display: block; }
.pw__eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin-top: 3px; padding: 6px 10px; font: 500 11px var(--sans); letter-spacing: .08em; color: var(--ouro-esc); }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login__art { position: relative; background: var(--noite); overflow: hidden; }
.login__art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.login__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--noite), transparent 60%); }
.login__quote { position: absolute; z-index: 1; left: 48px; right: 48px; bottom: 48px; color: var(--creme); }
.login__quote img { width: 220px; height: auto; margin-bottom: 16px; }
.login__quote p { margin: 0; font: italic 500 30px/1.2 var(--serif); color: var(--ouro-claro); max-width: 420px; }
.login__box { align-self: center; justify-self: center; width: min(400px, 100% - 40px); padding: 40px 0; display: grid; gap: 18px; animation: rise .8s var(--ease) both; }
.login__mono { width: 64px; height: auto; }
.login__box h1 { font-size: 46px; }
.login__box > p { margin: -8px 0 6px; color: var(--tinta-2); }
.login__err { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fbe9e5; color: var(--erro); font-size: 14px; }
.login__back { font-size: 13px; color: var(--tinta-2); text-align: center; }
.login__back:hover { color: var(--vinho); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* estrutura */
.app { min-height: 100vh; }
.side { position: fixed; z-index: 20; left: 0; top: 0; bottom: 0; width: var(--side); display: flex; flex-direction: column; padding: 26px 16px; background: var(--vinho); color: var(--creme); }
.side__logo { padding: 0 10px 28px; }
.side__logo img { width: 150px; height: auto; }
.side__nav { display: grid; gap: 4px; }
.side__nav a { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 400; color: rgba(244, 239, 233, .72); transition: background .3s, color .3s; }
.side__nav a:hover { background: rgba(244, 239, 233, .06); color: var(--creme); }
.side__nav a.is-on { background: rgba(191, 155, 95, .16); color: var(--ouro-claro); }
.side__nav a.is-on::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ouro); }
.badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--ouro); color: var(--noite); font: 600 11.5px/22px var(--sans); text-align: center; }
.side__site { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; color: var(--ouro-claro); border: 1px solid rgba(191, 155, 95, .35); transition: background .3s; }
.side__site:hover { background: rgba(191, 155, 95, .12); }
.main { margin-left: var(--side); padding: 36px clamp(18px, 4vw, 56px) 120px; max-width: calc(1180px + var(--side)); }
.view { animation: viewIn .55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.head h1 { font-size: clamp(34px, 4vw, 46px); }
.head p { margin: 4px 0 0; color: var(--tinta-2); }
.head__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--tinta-2); }
.back:hover { color: var(--vinho); }
.card { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--r); padding: 22px; }
.card h2 { font-size: 26px; margin-bottom: 14px; }
.card + .card { margin-top: 18px; }
.muted { color: var(--tinta-2); }
.empty { padding: 40px 20px; text-align: center; color: var(--tinta-2); border: 1.5px dashed var(--areia-2); border-radius: var(--r); }
.empty b { display: block; font: 500 24px/1.2 var(--serif); color: var(--vinho); margin-bottom: 6px; }

/* início */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { position: relative; padding: 20px; border-radius: var(--r); background: var(--branco); border: 1px solid var(--linha); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
a.kpi:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(53, 10, 6, .5); }
.kpi b { display: block; font: 600 40px/1 var(--serif); color: var(--vinho); }
.kpi span { display: block; margin-top: 6px; font-size: 13px; color: var(--tinta-2); }
.kpi svg { position: absolute; right: 16px; top: 16px; color: var(--ouro); }
.kpi--hot { background: var(--vinho); border-color: var(--vinho); }
.kpi--hot b { color: var(--creme); } .kpi--hot span { color: rgba(244, 239, 233, .7); }
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.list { display: grid; gap: 2px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; transition: background .25s; }
a.row:hover, button.row:hover { background: var(--creme); }
button.row { width: 100%; text-align: left; }
.date { flex: none; width: 52px; text-align: center; padding: 6px 0; border-radius: 12px; background: var(--creme); }
.date b { display: block; font: 600 24px/1 var(--serif); color: var(--vinho); }
.date small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-2); }
.row__main { flex: 1; min-width: 0; }
.row__main strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__main span { font-size: 13px; color: var(--tinta-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font: 500 11px/1 var(--sans); letter-spacing: .04em; white-space: nowrap; }
.pill--confirmado, .pill--ok { background: #e6f1ea; color: var(--ok); }
.pill--pre { background: #f7ecd9; color: #8a5f19; }
.pill--bloqueado, .pill--off { background: var(--areia); color: var(--tinta-2); }
.pill--new { background: var(--ouro); color: var(--noite); }
.pill--star { background: var(--vinho); color: var(--ouro-claro); }

/* trabalhos */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.work { position: relative; border-radius: var(--r); overflow: hidden; background: var(--branco); border: 1px solid var(--linha); transition: transform .4s var(--ease), box-shadow .4s, opacity .3s; }
.work:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(53, 10, 6, .55); }
.work.is-drag { opacity: .4; }
.work.is-over { box-shadow: 0 0 0 2px var(--ouro); }
.work__img { display: block; aspect-ratio: 4 / 3.2; background: var(--areia) center/cover; position: relative; }
.work__img .pills { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.work__body { padding: 14px 16px 16px; }
.work__body h3 { font-size: 24px; }
.work__body p { margin: 4px 0 0; font-size: 13px; color: var(--tinta-2); }
.work__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px 10px 16px; font-size: 12.5px; color: var(--tinta-2); }
.work__move { display: flex; }
.work__handle { cursor: grab; }

/* editor */
.editor { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.drop { position: relative; display: grid; place-items: center; gap: 6px; padding: 30px 20px; border: 1.5px dashed var(--ouro); border-radius: var(--r); background: rgba(191, 155, 95, .07); text-align: center; cursor: pointer; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.drop:hover, .drop.is-over { background: rgba(191, 155, 95, .16); transform: scale(1.01); }
.drop svg { width: 34px; height: 34px; color: var(--ouro-esc); }
.drop b { font: 500 22px/1.2 var(--serif); color: var(--vinho); }
.drop span { font-size: 13px; color: var(--tinta-2); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 14px; }
.tile { position: relative; aspect-ratio: 9 / 14; border-radius: 12px; overflow: hidden; background: var(--areia); border: 1px solid var(--linha); animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile.is-cover { box-shadow: 0 0 0 3px var(--ouro); }
.tile.is-drag { opacity: .4; }
.tile.is-over { box-shadow: 0 0 0 3px var(--vinho); }
.tile__type { position: absolute; left: 6px; top: 6px; display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10.5px; }
.tile__type svg { width: 12px; height: 12px; }
.tile__cover { position: absolute; right: 6px; top: 6px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--ouro); color: var(--noite); font: 600 10px/22px var(--sans); letter-spacing: .08em; }
.tile__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.tile__bar button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.tile__bar button:hover { background: rgba(255, 255, 255, .2); }
.tile__bar svg { width: 16px; height: 16px; }
.tile__warn { position: absolute; left: 6px; right: 6px; top: 34px; padding: 6px 8px; border-radius: 8px; background: rgba(163, 38, 26, .9); color: #fff; font-size: 11px; line-height: 1.3; }
.tile--up { display: grid; place-items: center; background: var(--noite); color: var(--creme); }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ouro) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); font: 500 13px var(--sans); }
.ring::before { content: ""; position: absolute; width: 54px; height: 54px; border-radius: 50%; background: var(--noite); }
.ring span { position: relative; }
.tile--up small { position: absolute; bottom: 10px; left: 8px; right: 8px; text-align: center; font-size: 11px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile--err { background: #fbe9e5; color: var(--erro); padding: 10px; font-size: 12px; display: grid; place-items: center; text-align: center; }
.savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 12px 12px 20px; border-radius: 999px; background: var(--vinho); color: var(--creme); box-shadow: 0 20px 40px -20px rgba(29, 5, 3, .8); transform: translateY(0); transition: transform .4s var(--ease); }
.savebar span { font-size: 13.5px; color: rgba(244, 239, 233, .8); }
.savebar.is-dirty span::before { content: "● "; color: var(--ouro); }

/* agenda */
.cal { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--r); padding: 18px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head h2 { font-size: 28px; text-transform: capitalize; }
.cal__week, .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__week span { text-align: center; font: 500 11px/2.2 var(--sans); letter-spacing: .1em; color: var(--tinta-2); }
.cday { position: relative; min-height: 88px; padding: 6px; border-radius: 10px; background: var(--creme); text-align: left; display: flex; flex-direction: column; gap: 3px; transition: background .25s, transform .25s var(--ease); overflow: hidden; }
.cday:hover { background: var(--areia); }
.cday--out { opacity: .35; }
.cday--today .cday__n { background: var(--vinho); color: var(--creme); }
.cday__n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 500; }
.ev { display: block; padding: 2px 6px; border-radius: 6px; font-size: 11px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--vinho); color: var(--creme); }
.ev--pre { background: #f7ecd9; color: #8a5f19; box-shadow: inset 0 0 0 1px #e3c98f; }
.ev--bloqueado { background: var(--areia-2); color: var(--tinta-2); }
.ev--livre { background: #e6f1ea; color: var(--ok); }
.agenda { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }

/* mensagens */
.msg { padding: 18px 20px; border-radius: var(--r); background: var(--branco); border: 1px solid var(--linha); transition: box-shadow .3s; }
.msg + .msg { margin-top: 12px; }
.msg--new { border-left: 4px solid var(--ouro); }
.msg__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.msg__top strong { font: 500 22px/1.2 var(--serif); color: var(--vinho); }
.msg__top time { margin-left: auto; font-size: 12.5px; color: var(--tinta-2); }
.msg__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 10px; font-size: 13px; color: var(--tinta-2); }
.msg p { margin: 0 0 14px; white-space: pre-wrap; }
.msg__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* abas e listas editáveis */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 40px; padding: 0 18px; border-radius: 99px; font-size: 13.5px; color: var(--tinta-2); border: 1px solid var(--linha); background: var(--branco); transition: all .3s var(--ease); }
.tab.is-on { background: var(--vinho); border-color: var(--vinho); color: var(--creme); }
.item { position: relative; padding: 18px; border-radius: var(--r); background: var(--creme); border: 1px solid var(--linha); }
.item + .item { margin-top: 12px; }
.item__bar { display: flex; justify-content: flex-end; gap: 4px; margin: -8px -8px 6px 0; }
.photo-pick { display: flex; align-items: center; gap: 14px; }
.photo-pick img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--areia); }
.photo-pick--big img { width: 120px; height: 150px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* modal, toasts */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(29, 5, 3, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .3s both; }
@keyframes fade { from { opacity: 0; } }
.modal__box { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; border-radius: 22px; background: var(--creme); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); animation: rise .5s var(--ease) both; }
.modal__box h2 { font-size: 32px; margin-bottom: 4px; }
.modal__box > p { margin: 0 0 18px; color: var(--tinta-2); }
.modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal__foot .spacer { margin-right: auto; }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; background: var(--noite); color: var(--creme); font-size: 14px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); animation: toastIn .5s var(--ease) both; }
.toast svg { color: var(--ouro); }
.toast--err { background: var(--erro); }
.toast--err svg { color: #fff; }
.toast.out { animation: toastOut .35s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* celular */
.kpi b, .date b, .cal__head h2, .cday__n { font-variant-numeric: lining-nums; font-feature-settings: "lnum"; }
@media (max-width: 1180px) {
  .editor, .agenda { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; }
  .login__art { min-height: 34vh; }
  .login__quote { left: 22px; right: 22px; bottom: 22px; }
  .login__quote img { width: 160px; }
  .login__quote p { font-size: 22px; }
  .side { top: auto; right: 0; width: auto; height: calc(66px + env(safe-area-inset-bottom)); flex-direction: row; padding: 0 6px env(safe-area-inset-bottom); background: var(--vinho); box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .6); }
  .side__logo, .side__site { display: none; }
  .side__nav { width: 100%; grid-template-columns: repeat(6, 1fr); gap: 0; }
  .side__nav a { flex-direction: column; justify-content: center; gap: 3px; padding: 8px 2px; font-size: 10px; border-radius: 10px; text-align: center; }
  .side__nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .side__nav a.is-on::before { left: 30%; right: 30%; top: -1px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .side__nav .badge { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; font-size: 10px; line-height: 18px; }
  .main { margin-left: 0; padding: 22px 16px calc(110px + env(safe-area-inset-bottom)); }
  .head h1 { font-size: 34px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr 1fr; gap: 10px; }
  .work__body { padding: 10px 12px; }
  .work__body h3 { font-size: 19px; }
  .work__foot { flex-wrap: wrap; padding: 0 6px 6px 12px; font-size: 11.5px; }
  .work__foot > span:first-child { width: 100%; }
  .work__handle { display: none; }
  .cday { min-height: 54px; padding: 4px; }
  .ev { font-size: 0; height: 6px; padding: 0; border-radius: 3px; }
  .savebar { bottom: calc(76px + env(safe-area-inset-bottom)); border-radius: 18px; }
  .savebar span { display: none; }
  .savebar .btn { flex: 1; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .modal { align-items: end; padding: 0; }
  .modal__box { border-radius: 22px 22px 0 0; max-height: 92vh; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
