/* Tipografia: Sora (hospedada localmente, licença OFL) */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/sora-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/sora-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f5f8f9; --card: #ffffff; --bg-soft: #f4f8f9; --bg-hover: #efefed; --line: #e6e5e1; --text: #2f2f2c; --muted: #6a6966;
  --brand: #17627f; --brand-soft: #e1f0f5; --brand-dark: #0d3f54; --lime: #8cc63f; --lime-dark: #6ea626;
  --red: #c93232; --red-bg: #fdeaea; --yellow: #966400; --yellow-bg: #fff3cf; --green: #187a49; --green-bg: #e4f5ec;
  --font: "Sora", system-ui, sans-serif; --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.08);
  /* Tokens semânticos: mudam de valor no tema escuro (html.dark). Use sempre estes em vez de cor fixa. */
  --heading: #0d3f54; --link: #17627f; --on-lime: #0d3f54; --red-solid: #cf3535;
  --input-bg: #ffffff; --placeholder: #a3a29e; --tag-bg: #eeeeee; --tag-fg: #4a4a4a; --line-strong: #cccccc; --track: #e8e8e5;
  --sel: #e9e9e6; --msg: #f0f0ee; --msg-me: #dff0c8; --warn-line: #f2d36b; --notice-fg: #6b4a00; --notice-blue-fg: #1b4aa8;
  --danger-line: #f0c5c5; --carried-bg: #fff8f8; --carried-line: #f0b4b4; --draft-bg: #fffdf3; --other-bg: #fafaf9; --other-fg: #6e6d6a;
  --kpi-top: #cdd5d8; --toast-bg: #2f2f2c; --ev-meeting: #cfe6ee; --ev-task: #dddddd;
  color-scheme: light;
}
html.dark {
  --bg: #0e1316; --card: #161d21; --bg-soft: #1a2227; --bg-hover: #212b31; --line: #2a353c; --text: #e4ebee; --muted: #9fadb4;
  --brand: #1c7694; --brand-soft: #17303b; --brand-dark: #bfe3f1;
  --red: #ff7b7b; --red-bg: #3b1d21; --yellow: #f2b93b; --yellow-bg: #3a2f12; --green: #4fc98d; --green-bg: #123022;
  --shadow: 0 1px 2px rgba(0,0,0,.45), 0 6px 20px rgba(0,0,0,.5);
  --heading: #bfe3f1; --link: #6cc3e3; --on-lime: #0d3f54; --red-solid: #cf3535;
  --input-bg: #11181c; --placeholder: #6f7d85; --tag-bg: #26323a; --tag-fg: #b8c5cc; --line-strong: #3a4852; --track: #26323a;
  --sel: #25323a; --msg: #222c32; --msg-me: #2b4220; --warn-line: #8a6d1a; --notice-fg: #f0cf85; --notice-blue-fg: #9dc8ff;
  --danger-line: #6b2e33; --carried-bg: #2e1a1d; --carried-line: #6b3a3f; --draft-bg: #2a2616; --other-bg: #12181b; --other-fg: #7d8b93;
  --kpi-top: #36444d; --toast-bg: #2b363d; --ev-meeting: #1f4455; --ev-task: #3a4852;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 13.5px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; transition: background-color .2s, color .2s; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 24px; color: var(--heading); font-weight: 700; } h2 { font-size: 18px; } h3 { font-size: 15px; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
.muted { color: var(--muted); } .small { font-size: 12px; } .right { margin-left: auto; } .nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 14px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* Shell */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #0f4a63 0%, #0b3a4f 100%); color: #dbe9ef; border-right: 0; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.brand { font-weight: 800; letter-spacing: .01em; font-size: 12.5px; white-space: nowrap; padding: 6px 10px 12px; display: flex; gap: 8px; align-items: center; }
.brand .logo { width: 26px; height: 26px; border-radius: 7px; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.sidebar .brand { color: #fff; }
.login-card .brand, .public-card .brand { color: var(--heading); }
.nav-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #a3c6d4; padding: 18px 10px 6px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: #dbe9ef; cursor: pointer; }
.nav-item:hover { background: rgba(255,255,255,.09); text-decoration: none; }
.nav-item.active { background: rgba(140,198,63,.18); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(140,198,63,.4); }
.nav-item span:first-child { display: inline-flex; } .nav-item .i { width: 18px; height: 18px; }
.nav-item .badge { margin-left: auto; background: var(--lime); color: var(--on-lime) !important; font-weight: 700; color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; font-weight: 600; }
.side-foot { margin-top: auto; padding: 12px 10px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; color: #fff; }
.side-foot .muted { color: #9fc2d1; }
.side-foot .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; } .side-foot .btn:hover { background: rgba(255,255,255,.2); }
.main { min-width: 0; }
.page { padding: 28px 36px 60px; max-width: 1280px; }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.btn.menu-btn { display: none; background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; width: 270px; left: -280px; transition: left .2s; box-shadow: var(--shadow); }
  .sidebar.open { left: 0; }
  .btn.menu-btn { display: inline-flex; position: sticky; top: 0; z-index: 30; margin: 8px 12px 0; }
  .page { padding: 16px 16px 50px; }
}

/* Controles */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 10px; padding: 7px 13px; font: inherit; cursor: pointer; }
.btn:hover { background: var(--bg-hover); }
.btn.primary { background: var(--lime); border-color: var(--lime); color: var(--on-lime); font-weight: 700; } .btn.primary:hover { filter: brightness(.94); }
.btn.danger { color: var(--red); border-color: var(--danger-line); } .btn.danger:hover { background: var(--red-bg); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--bg-hover); }
.btn.sm { padding: 3px 9px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; background: var(--input-bg); width: 100%; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
select { max-width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; }
textarea { resize: vertical; min-height: 80px; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
label.f > span em { color: var(--red); font-style: normal; }
.field-hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.err { background: var(--red-bg); color: var(--red); border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: var(--card); color: var(--text); padding: 6px 14px; font: inherit; cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; } .seg button.on { background: var(--brand); color: #fff; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card h3 { margin-bottom: 10px; }
.card, .modal-body, .task, .pt { overflow-wrap: anywhere; }
.kpi { display: flex; flex-direction: column-reverse; gap: 4px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--kpi-top); border-radius: 12px; padding: 14px 16px; }
.kpi b { font-size: 28px; line-height: 1.1; font-weight: 700; } .kpi span { color: var(--muted); font-size: 12px; }
.kpi.red b { color: var(--red); } .kpi.green b { color: var(--green); } .kpi.yellow b { color: var(--yellow); }
.kpi.red { border-top-color: #e5484d; } .kpi.green { border-top-color: #3bb273; } .kpi.yellow { border-top-color: #f2b600; } .kpi.blue { border-top-color: var(--brand); }
.kpi.red { border-top-color: var(--red); } .kpi.green { border-top-color: var(--green); } .kpi.yellow { border-top-color: #f2b600; } .kpi.blue { border-top-color: var(--brand); }

/* Tags e urgência */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--tag-bg); color: var(--tag-fg); white-space: nowrap; }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.tag.red { background: var(--red-bg); color: var(--red); } .tag.yellow { background: var(--yellow-bg); color: var(--yellow); } .tag.green { background: var(--green-bg); color: var(--green); }
.tag.blue { background: var(--brand-soft); color: var(--link); } .tag.gray { background: var(--tag-bg); color: var(--tag-fg); }
.tag { max-width: 100%; } a.tag, .task .tag { white-space: normal; overflow-wrap: anywhere; }
.tag.late { background: var(--red-solid); color: #fff; }

/* Tabelas */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--heading); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--brand-soft); 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.click { cursor: pointer; } .tbl tbody tr.click:hover { background: var(--bg-soft); }
.tbl tr.u-red td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.tbl tr.u-yellow td:first-child { box-shadow: inset 4px 0 0 #f2b600; }
.tbl tr.u-green td:first-child { box-shadow: inset 4px 0 0 #3bb273; }
.tbl tr.closed { opacity: .55; }
.empty { padding: 36px; text-align: center; color: var(--muted); }

/* Kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; overflow-x: auto; align-items: start; }
.col { background: var(--bg-soft); border-radius: var(--radius); padding: 8px; min-height: 120px; }
.col h3 { padding: 4px 6px 8px; display: flex; gap: 8px; align-items: center; }
.col h3 .count { color: var(--muted); font-weight: 400; }
.kcard { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 10px; padding: 11px; margin-bottom: 8px; cursor: pointer; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.kcard:hover { box-shadow: var(--shadow); }
.kcard.u-red { border-left-color: var(--red); } .kcard.u-yellow { border-left-color: #f2b600; } .kcard.u-green { border-left-color: #3bb273; }
.kcard .t { font-weight: 600; margin: 4px 0; }
.progress { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; } .progress > i { display: block; height: 100%; background: var(--lime); }

/* Barras */
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 34px; align-items: center; gap: 8px; font-size: 13px; }
.bar { height: 14px; border-radius: 4px; background: var(--track); overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 4px; }
.bar-red { background: #e5484d; } .bar-yellow { background: #f2b600; } .bar-green { background: #3bb273; } .bar-blue { background: var(--brand); } .bar-lime { background: var(--lime); } .bar-gray { background: #9b9a97; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 10px; }
.chart .cg { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.chart .pair { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.chart .pair i { width: 14px; border-radius: 3px 3px 0 0; min-height: 2px; display: block; }
@media (max-width: 600px) { .chart { gap: 4px; } .chart .pair i { width: 10px; } .chart .cg > span { font-size: 10px; white-space: nowrap; } }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }

/* Urgência no formulário */
.urg-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 700px) { .urg-pick { grid-template-columns: 1fr; } }
.urg-opt { border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; display: block; }
.urg-opt input { display: none; }
.urg-opt b { display: block; } .urg-opt span { font-size: 12px; color: var(--muted); }
.urg-opt.red.on { border-color: var(--red); background: var(--red-bg); } .urg-opt.yellow.on { border-color: #f2b600; background: var(--yellow-bg); } .urg-opt.green.on { border-color: #3bb273; background: var(--green-bg); }

/* Modal */
.overlay { position: fixed; inset: 0; background: rgba(20,20,18,.45); z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 5vh 12px; overflow-y: auto; }
.modal { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); width: 100%; max-width: 560px; }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { flex: 1; font-size: 17px; }
.modal-body { padding: 18px; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--toast-bg); color: #fff; padding: 11px 15px; border-radius: 12px; box-shadow: var(--shadow); max-width: 340px; }
.toast.err { background: var(--red-solid); }

/* Detalhe de demanda */
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 12px; font-size: 13px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.checklist { display: flex; flex-direction: column; gap: 4px; }
.check { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); }
.check.done span { text-decoration: line-through; color: var(--muted); }
.check span { flex: 1; word-break: break-word; }
.timeline { display: flex; flex-direction: column; gap: 8px; }
.tl { padding-left: 12px; border-left: 3px solid var(--line); font-size: 13px; } .tl.comentario { border-left-color: var(--brand); background: var(--brand-soft); padding: 6px 10px; border-radius: 0 6px 6px 0; }
.notice { background: var(--yellow-bg); color: var(--notice-fg); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.notice.blue { background: var(--brand-soft); color: var(--notice-blue-fg); }
pre.text { white-space: pre-wrap; word-break: break-word; font: inherit; margin: 0; }

/* Tarefas */
.task { display: grid; grid-template-columns: auto 78px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.task + .task { margin-top: 8px; }
.task.done { background: var(--bg-soft); } .task.done .tt { text-decoration: line-through; color: var(--muted); }
.task.carried { border-color: var(--carried-line); background: var(--carried-bg); }
.task .time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.task input[type=checkbox] { width: 20px; height: 20px; cursor: pointer; }
@media (max-width: 700px) { .task { grid-template-columns: auto minmax(0, 1fr); } .task > input[type=checkbox] { grid-row: 1 / span 3; align-self: start; } .task .time, .task > div:nth-child(3), .task .acts { grid-column: 2; } }
.task > div { min-width: 0; }
.person-col { min-width: 0; }

/* Calendário */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.cal .dow { background: var(--brand-soft); padding: 10px 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--heading); text-align: center; border-bottom: 1px solid var(--line); }
.cal .day { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; cursor: pointer; min-width: 0; }
.cal .day:nth-child(7n) { border-right: 0; } .cal .day:hover { background: var(--bg-soft); }
.cal .day.other { background: var(--other-bg); color: var(--other-fg); } .cal .day.today .n { background: var(--brand); color: #fff; }
.cal .n { display: inline-block; min-width: 22px; text-align: center; border-radius: 11px; font-size: 12px; font-weight: 600; }
.ev { font-size: 11px; padding: 1px 5px; border-radius: 3px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ev.meet { background: var(--brand-soft); color: var(--notice-blue-fg); } .ev.red { background: var(--red-bg); color: var(--red); } .ev.yellow { background: var(--yellow-bg); color: var(--yellow); } .ev.green { background: var(--green-bg); color: var(--green); } .ev.task { background: var(--tag-bg); color: var(--tag-fg); }
@media (max-width: 700px) { .cal .day { min-height: 64px; } .ev { font-size: 10px; } }

/* Chat */
.chat { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); height: calc(100vh - 180px); min-height: 420px; overflow: hidden; }
.rooms { border-right: 1px solid var(--line); overflow-y: auto; background: var(--bg-soft); }
.room { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--line); } .room:hover { background: var(--bg-hover); } .room.on { background: var(--sel); }
.room .nm { font-weight: 600; display: flex; gap: 6px; } .room .nm .badge { margin-left: auto; background: var(--red-solid); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; }
.room .last { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 75%; padding: 8px 12px; border-radius: 14px; background: var(--msg); align-self: flex-start; word-break: break-word; }
.msg.me { align-self: flex-end; background: var(--msg-me); }
.msg.lembrete { background: var(--yellow-bg); border: 1px solid var(--warn-line); }
.msg .who { font-size: 11px; color: var(--muted); font-weight: 600; }
.composer { border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.composer input[type=text] { flex: 1; min-width: 140px; }
@media (max-width: 700px) { .chat { grid-template-columns: 1fr; height: auto; } .rooms { max-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); } .msgs { height: 50vh; } }

/* Notas */
.notes { display: grid; grid-template-columns: 250px 1fr; gap: 14px; }
@media (max-width: 700px) { .notes { grid-template-columns: 1fr; } }
.note-item { padding: 8px 10px; border-radius: 8px; cursor: pointer; } .note-item:hover { background: var(--bg-hover); } .note-item.on { background: var(--sel); font-weight: 600; }
.note-title { font-size: 22px; font-weight: 700; border: 0; padding: 4px 0; } .note-area { min-height: 55vh; border: 0; padding: 4px 0; font-size: 15px; line-height: 1.6; }
.note-title:focus, .note-area:focus { outline: 0; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1200px 600px at 10% 0%, #1f7a99 0%, transparent 60%), linear-gradient(135deg, #0b3a4f, #17627f); padding: 16px; }
.login-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.public-card { max-width: 640px; }
.divider { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0; }
.ok-box { text-align: center; padding: 10px 0; } .ok-box .code { font-size: 22px; font-weight: 700; letter-spacing: .04em; margin: 8px 0; }

/* Planejamento semanal */
.plan { display: grid; gap: 10px; overflow-x: auto; align-items: start; }
.pday { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-width: 0; }
.pday.today { border-color: var(--lime); box-shadow: inset 0 3px 0 var(--lime); }
.pday .ph { display: flex; flex-direction: column; margin-bottom: 8px; }
.pt { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 6px 8px; margin-bottom: 6px; cursor: pointer; font-size: 13px; word-break: break-word; }
.pt:hover { box-shadow: var(--shadow); }
.pt.draft { border-left-color: #f2b600; background: var(--draft-bg); border-style: dashed; border-left-style: solid; }
.pt.done { opacity: .6; border-left-color: var(--lime); }
.pacts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }

/* Ícones de linha */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.i.dot { width: 1em; height: 1em; }
.btn .i { width: 15px; height: 15px; vertical-align: 0; }
.tag .i { width: 13px; height: 13px; vertical-align: -0.15em; }
h1 .i, h2 .i, h3 .i { width: 1em; height: 1em; }
.brand .logo { border-radius: 9px; }

/* Seletor de tema (Claro / Escuro / Sistema) */
.theme-seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.theme-seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--text); padding: 6px 4px; font: inherit; font-size: 12px; cursor: pointer; min-width: 0; }
.theme-seg button:last-child { border-right: 0; }
.theme-seg button .i { width: 14px; height: 14px; }
.theme-seg button[aria-checked="true"] { background: var(--brand); color: #fff; font-weight: 600; }
.theme-seg button:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.side-foot .theme-seg { margin-top: 10px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.side-foot .theme-seg button { color: #fff; border-right-color: rgba(255,255,255,.2); }
.side-foot .theme-seg button[aria-checked="true"] { background: var(--lime); color: var(--on-lime); }
.login-card .theme-seg, .public-card .theme-seg { margin-top: 14px; }
