/* Prumo — demonstração. Estilos próprios, escritos do zero. */
:root {
  --accent: #8b1a1f;
  --accent-strong: #6f1217;
  --bg: #f5f2ee;
  --surface: #ffffff;
  --surface-2: #faf8f5;
  --ink: #211b1c;
  --muted: #736a6b;
  --line: #e6e0d9;
  --shadow: 0 1px 2px rgba(40, 20, 20, .05), 0 8px 24px rgba(40, 20, 20, .06);
  --red: #d2452f;
  --amber: #c88a0a;
  --green: #2f8f5b;
  --accent-text: var(--accent);
  --radius: 14px;
  --font-title: "Raleway", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}
[data-theme="dark"] {
  --bg: #141112;
  --surface: #1d191a;
  --surface-2: #252021;
  --ink: #f2ecea;
  --muted: #a69c9c;
  --line: #342c2d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --red: #f0705c;
  --amber: #e7b043;
  --green: #5cc48d;
  --accent-text: color-mix(in srgb, var(--accent) 55%, #ffffff);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
h1, h2, h3, h4 { font-family: var(--font-title); margin: 0; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 9px 14px; border-radius: 10px; font-weight: 600; transition: transform .08s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.icon { padding: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea.input { resize: vertical; min-height: 84px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--c, var(--muted)) 14%, transparent); color: color-mix(in srgb, var(--c, var(--muted)) 78%, var(--ink)); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip.plain { --c: var(--muted); }
.chip.plain::before { display: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--c, var(--accent)); flex: none; letter-spacing: .02em; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-brand { position: relative; overflow: hidden; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--accent) 80%, #ff8a70) 0%, var(--accent) 38%, #1c0d0f 100%); }
.login-brand::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 70px rgba(255, 255, 255, .04), 0 0 0 150px rgba(255, 255, 255, .03); }
.login-brand .firm { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.login-brand .firm b { font-family: var(--font-title); font-size: 22px; display: block; line-height: 1.15; }
.login-brand .firm span { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; opacity: .8; }
.login-brand h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; max-width: 11ch; position: relative; z-index: 1; }
.login-brand p { max-width: 42ch; opacity: .86; font-size: 16px; position: relative; z-index: 1; margin: 18px 0 0; }
.login-brand .made { font-size: 12px; opacity: .7; position: relative; z-index: 1; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(24px, 6vw, 88px); gap: 22px; }
.login-form h2 { font-size: 26px; }
.who { display: grid; gap: 10px; }
.who button { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, transform .1s, box-shadow .15s; }
.who button:hover { border-color: var(--accent-text); box-shadow: var(--shadow); }
.who b { display: block; }
.who small { color: var(--muted); }
.who .role { margin-left: auto; }

/* ---------- estrutura ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; gap: 6px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; color: var(--ink); }
.brand b { font-family: var(--font-title); font-size: 14.5px; line-height: 1.15; display: block; }
.brand span { font-size: 8.5px; white-space: nowrap; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 11px; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); text-align: left; }
.nav button:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.nav button.on { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-text); }
.nav .count { margin-left: auto; font-size: 11px; background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 1px 7px; border-radius: 999px; }
.nav button.on .count { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.me b { display: block; font-size: 13px; }
.me small { color: var(--muted); font-size: 11.5px; }
.me .btn { margin-left: auto; }
.powered { font-size: 11px; color: var(--muted); text-align: center; }
.powered b { color: var(--ink); font-family: var(--font-title); letter-spacing: .02em; }

.main { padding: 26px clamp(16px, 3vw, 36px) 110px; min-width: 0; }
.top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.top h1 { font-size: 26px; }
.top .sub { color: var(--muted); font-size: 13.5px; }
.top .grow { flex: 1; }
.search { position: relative; }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 36px; width: 230px; }

/* ---------- indicadores ---------- */

.bar { display: flex; height: 6px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--ink) 8%, transparent); margin-top: 5px; width: 100%; min-width: 90px; }
.bar i { display: block; height: 100%; }

.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tools select.input { width: auto; padding: 7px 10px; }
.tools .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- quadro ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: color-mix(in srgb, var(--ink) 3.5%, transparent); border: 1px solid transparent; border-radius: var(--radius); padding: 10px; min-height: 160px; transition: background .15s, border-color .15s; }
.col.over { border-color: var(--accent-text); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.col-h { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-weight: 700; font-family: var(--font-title); }
.col-h .n { margin-left: auto; font-size: 12px; color: var(--muted); font-family: var(--font-body); font-weight: 600; }
.col-h .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); }
.col .empty { border: 1px dashed var(--line); border-radius: 10px; padding: 18px 10px; text-align: center; color: var(--muted); font-size: 12.5px; }
.col.target .empty { border-color: color-mix(in srgb, var(--green) 50%, var(--line)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 9px; cursor: pointer; transition: transform .12s, box-shadow .15s, border-color .15s; overflow: hidden; }
.card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.card.dragging { opacity: .45; }
.card h4 { font-size: 14px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.card .meta { color: var(--muted); font-size: 12px; margin: 3px 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.card .foot { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.card .foot .avatar { width: 22px; height: 22px; font-size: 9.5px; }
.due { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--c); margin-left: auto; }
.due .ico { width: 14px; height: 14px; }
.clip { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.clip .ico { width: 13px; height: 13px; }

/* ---------- tabela ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.tbl .t b { display: block; font-weight: 600; }
.tbl .t small { color: var(--muted); }
.who-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.scroll-x { overflow-x: auto; }
.blank { padding: 46px 20px; text-align: center; color: var(--muted); }
.blank b { display: block; color: var(--ink); font-family: var(--font-title); font-size: 17px; margin-bottom: 4px; }

/* ---------- gaveta da tarefa ---------- */
.veil { position: fixed; inset: 0; background: rgba(15, 8, 9, .42); backdrop-filter: blur(2px); z-index: 40; }
.veil.anim { animation: fade .18s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); z-index: 41; box-shadow: -20px 0 50px rgba(0, 0, 0, .22); display: flex; flex-direction: column; }
.drawer.anim { animation: slide .22s cubic-bezier(.16, 1, .3, 1); }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-h .status { font-weight: 700; color: var(--c); display: inline-flex; gap: 6px; align-items: center; }
.drawer-b { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.drawer-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; background: var(--surface-2); }
.title-input { font-family: var(--font-title); font-size: 21px; font-weight: 700; border: 1px solid transparent; background: transparent; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; width: calc(100% + 16px); outline: none; }
.title-input:hover { border-color: var(--line); }
.title-input:focus { border-color: var(--accent-text); background: var(--surface); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.drop { border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; display: block; }
.drop:hover { border-color: var(--accent-text); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.files { display: flex; flex-direction: column; gap: 6px; }
.file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.file .ext { width: 34px; height: 34px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-text); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.file b { display: block; font-size: 13px; font-weight: 600; }
.file small { color: var(--muted); font-size: 11.5px; }
.hist { list-style: none; margin: 0; padding: 0 0 0 4px; }
.hist li { position: relative; padding: 0 0 14px 20px; border-left: 2px solid var(--line); font-size: 13px; }
.hist li:last-child { border-left-color: transparent; padding-bottom: 0; }
.hist li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent-text); }
.hist small { color: var(--muted); display: block; font-size: 11.5px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--green) 12%, transparent); color: color-mix(in srgb, var(--green) 75%, var(--ink)); font-weight: 600; font-size: 13px; }

/* ---------- janela ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { position: relative; z-index: 51; background: var(--surface); border-radius: 18px; width: min(620px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.modal-box.anim { animation: pop .2s cubic-bezier(.16, 1, .3, 1); }
.modal-h { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-size: 19px; flex: 1; }
.modal-b { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-f { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.mail { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mail-meta { padding: 12px 16px; background: var(--surface-2); font-size: 12.5px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.mail-meta b { display: inline-block; width: 62px; color: var(--muted); font-weight: 600; }
.mail-body { padding: 22px; }
.mail-body .strip { height: 5px; background: var(--accent); border-radius: 3px; margin-bottom: 18px; }
.mail-body h4 { font-size: 18px; margin-bottom: 10px; }
.mail-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 14px 0; background: var(--surface-2); }

/* ---------- personalização ---------- */
.cfg { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.cfg .panel { padding: 18px; overflow: visible; }
.cfg h3 { font-size: 16px; margin-bottom: 4px; }
.cfg .hint { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.row .input { padding: 7px 10px; }
.row input[type=color] { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; flex: none; cursor: pointer; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); background: var(--c); }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }

/* ---------- avisos e modo demonstração ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 14px; border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); display: flex; align-items: center; gap: 12px; max-width: 380px; animation: pop .22s cubic-bezier(.16, 1, .3, 1); font-size: 13.5px; }
.toast button { border: 0; background: transparent; color: inherit; font-weight: 700; text-decoration: underline; padding: 0; white-space: nowrap; }
.master { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 24px); }
.master-pill { display: inline-flex; align-items: center; gap: 10px; border: 0; background: #17120f; color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; box-shadow: 0 12px 34px rgba(0, 0, 0, .35); }
.master-pill i { width: 8px; height: 8px; border-radius: 50%; background: #5ee08f; box-shadow: 0 0 0 4px rgba(94, 224, 143, .22); }
.master-pill small { font-weight: 500; opacity: .7; }
.master-panel { background: #17120f; color: #f4efe9; border-radius: 18px; padding: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); display: grid; grid-template-columns: repeat(4, auto); gap: 18px; max-width: 100%; overflow-x: auto; }
.master-panel h5 { margin: 0 0 8px; font: 700 11px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #a99f97; }
.master-panel .opts { display: flex; gap: 6px; flex-wrap: wrap; max-width: 260px; }
.master-panel button { border: 1px solid #3a322e; background: #231c19; color: #f4efe9; border-radius: 9px; padding: 6px 10px; font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.master-panel button:hover { border-color: #6b5d55; }
.master-panel button.on { background: #f4efe9; color: #17120f; border-color: #f4efe9; }
.master-panel .day { font-family: var(--font-title); font-size: 15px; font-weight: 700; margin-bottom: 8px; }

@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes pop { from { transform: scale(.96) translateY(6px); opacity: 0; } }

/* ---------- telas pequenas ---------- */
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 32px 24px; min-height: 300px; }
  .login-form { padding: 32px 24px 120px; }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: auto 0 0 0; height: auto; flex-direction: row; padding: 6px 8px; border-right: 0; border-top: 1px solid var(--line); z-index: 30; }
  .side .brand, .side .side-foot .powered, .side .me div, .nav .count { display: none; }
  .nav { flex-direction: row; flex: 1; justify-content: space-around; }
  .nav button { flex-direction: column; gap: 3px; font-size: 10.5px; padding: 6px 8px; }
  .side-foot { margin: 0; flex-direction: row; align-items: center; }
  .me { padding: 4px; border: 0; background: none; }
  .main { padding: 18px 14px 150px; }
  .search .input { width: 100%; }
  .search { flex: 1 1 100%; order: 5; }
  .grid2 { grid-template-columns: 1fr; }
  .master { bottom: 76px; }
  .master-pill small { display: none; }
  .master-panel { grid-template-columns: 1fr 1fr; }
  .toasts { left: 12px; right: 12px; top: 12px; bottom: auto; }
}

/* ============ acabamento (passada de design) ============ */
:root { --rail: color-mix(in srgb, var(--accent) 90%, #000); --rail-soft: color-mix(in srgb, var(--accent) 30%, #fff); --rail-ink: color-mix(in srgb, var(--accent) 12%, #fff); }
[data-theme="dark"] { --rail: color-mix(in srgb, var(--accent) 46%, #0c0909); }

/* o que o navegador desenha também faz parte da marca */
::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }
html { scrollbar-color: color-mix(in srgb, var(--ink) 24%, transparent) transparent; scrollbar-width: thin; caret-color: var(--accent-text); accent-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.side :focus-visible, .login-brand :focus-visible { outline-color: #fff; }
.input:focus-visible { outline: none; }
h1, h2, h3 { text-wrap: balance; }
.due, .count, .n, .tbl td, .sitf b, .day .d, .nums { font-variant-numeric: tabular-nums; }
a { text-underline-offset: 3px; }

/* trilho lateral na cor da casa */
.side { background: var(--rail); border-right: 0; color: #fff; }
.side .brand { color: #fff; }
.side .brand span { color: var(--rail-soft); }
.side .nav button { color: var(--rail-ink); opacity: .82; }
.side .nav button:hover { background: rgba(255, 255, 255, .09); color: #fff; opacity: 1; }
.side .nav button.on { background: rgba(255, 255, 255, .16); color: #fff; opacity: 1; }
.side .nav .count, .side .nav button.on .count { background: rgba(255, 255, 255, .16); color: #fff; }
.side .me { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.side .me small, .side .powered { color: var(--rail-soft); }
.side .powered b { color: #fff; }
.side .btn.ghost { color: #fff; }
.side .btn.ghost:hover { background: rgba(255, 255, 255, .14); }
.side .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }

/* régua de prazos */
.ruler { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 6px; margin-bottom: 18px; }
.ruler-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ruler-h h2 { font-size: 17px; }
.sitf { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 600; color: var(--ink); transition: background .15s, border-color .15s; }
.sitf i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.sitf b { font-family: var(--font-title); font-size: 15px; color: var(--c, var(--accent-text)); }
.sitf .ico { width: 15px; height: 15px; color: var(--muted); }
.sitf:hover { border-color: color-mix(in srgb, var(--c, var(--accent)) 55%, var(--line)); }
.sitf.on { background: color-mix(in srgb, var(--c) 14%, var(--surface)); border-color: var(--c); }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(40px, 1fr); overflow-x: auto; margin-top: 14px; border-top: 1px solid var(--line); }
.day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 0 14px; min-height: 104px; }
.day.fds { background: color-mix(in srgb, var(--ink) 3.5%, transparent); }
.day .d { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.25; text-transform: lowercase; }
.day .d b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.day.hoje .d, .day.hoje .d b { color: var(--accent-text); font-weight: 700; }
.day.hoje::before { content: ""; position: absolute; top: 40px; bottom: 12px; left: 50%; width: 2px; margin-left: -1px; background: var(--accent-text); opacity: .55; }
.day.hoje::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; background: var(--accent-text); clip-path: polygon(50% 100%, 0 0, 100% 0); }
.pt { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface); background: var(--c); padding: 0; transition: transform .15s cubic-bezier(.16, 1, .3, 1); }
.pt:hover, .pt:focus-visible { transform: scale(1.35); }
.mais { font-size: 10.5px; color: var(--muted); font-weight: 600; }

/* cartões: situação pelo prazo, sem barra lateral */
.card.venc { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); background: color-mix(in srgb, var(--red) 4%, var(--surface)); }
.due { background: color-mix(in srgb, var(--c) 13%, transparent); padding: 2px 8px; border-radius: 999px; }
.col-bar { padding: 0 6px 10px; margin-top: -4px; }
.col-bar .bar { margin: 0; }
.drawer-h .status { background: color-mix(in srgb, var(--c) 13%, transparent); padding: 4px 10px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 900px) {
  .side { border-top: 0; }
  .ruler { padding: 14px 12px 4px; }
  .ruler-h .muted { display: none; }
  .days { grid-auto-columns: 42px; }
}
.tools select.input { max-width: 190px; }
.tools select.input { max-width: 176px; font-size: 13px; }
.side .me div { min-width: 0; }
.side .me small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app { grid-template-columns: 248px minmax(0, 1fr); }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .nav button { font-size: 10px; padding: 6px 4px; min-width: 0; }
  .side .me { gap: 0; padding: 0; }
  .side .avatar { width: 24px; height: 24px; font-size: 10px; }
  .tools select.input { max-width: none; flex: 1 1 140px; }
}
@media (max-width: 900px) {
  .side .me .btn[data-acao="tema"] { display: none; }
  .nav { gap: 4px; }
  .nav button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav button { flex: 1 1 0; align-items: center; text-align: center; }
}
