
/* TJ Hub – base, layout e componentes. Tudo vive dentro de .ach para não vazar no tema. */
.ach-body { margin: 0; background: #151a2b; }

.ach {
	--bg: #151a2b; --bg-2: #1a2036; --panel: #202741; --raise: #2a3254; --line: #36406a;
	--text: #eceef8; --muted: #9aa3c4; --accent: #f2b84b; --accent-ink: #241a05;
	--ok: #5fd3a5; --warn: #ff8a6b; --info: #8ea2ff;
	--display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
	--ui: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font: 400 15px/1.5 var(--ui); color: var(--text); background: var(--bg); min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}
.ach *, .ach *::before, .ach *::after { box-sizing: border-box; }
.ach a { color: #c7d0ff; text-decoration-color: rgba(199, 208, 255, .35); text-underline-offset: 3px; }
.ach a:hover { color: #fff; }
.ach h1, .ach h2, .ach h3, .ach p, .ach ul, .ach dl, .ach dd, .ach figure { margin: 0; }
.ach h1 { font: 700 clamp(26px, 3vw, 34px)/1.1 var(--display); letter-spacing: -.02em; }
.ach h2 { font: 700 20px/1.2 var(--display); letter-spacing: -.01em; }
.ach h3 { font: 600 15px/1.3 var(--ui); }
.ach :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ach--admin { min-height: calc(100vh - 32px); }
.ach .grow { flex: 1 1 auto; }
.ach .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ach .muted { color: var(--muted); }
.ach .prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.ach .nowrap { white-space: nowrap; }
.ach .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ach .ico { display: inline-flex; flex: none; }
.ach .loading { color: var(--muted); padding: 40px 0; }

/* ---------- Estrutura ---------- */
.ach .app { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: inherit; }
.ach .content { min-width: 0; }
.ach .main { padding: 28px clamp(16px, 3vw, 40px) 72px; max-width: 1440px; outline: none; }
.ach .topbar { display: none; }
.ach .scrim { display: none; }

.ach .side {
	position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
	background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 12px;
}
.ach--admin .side { top: 32px; height: calc(100vh - 32px); }
.ach .brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 4px; }
.ach .brand-name { font: 700 17px var(--display); letter-spacing: -.01em; }
.ach .brand-mark { display: flex; gap: 2px; align-items: flex-end; height: 22px; }
.ach .brand-mark i { display: block; width: 6px; border-radius: 1px; background: var(--accent); }
.ach .brand-mark i:nth-child(1) { height: 22px; }
.ach .brand-mark i:nth-child(2) { height: 15px; background: var(--info); }
.ach .brand-mark i:nth-child(3) { height: 9px; background: var(--ok); }

.ach .side-nav { display: flex; flex-direction: column; gap: 2px; }
.ach .nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 500; }
.ach .nav-link:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.ach .nav-link.is-active { background: var(--raise); color: var(--text); }
.ach .side-block { display: flex; flex-direction: column; gap: 8px; }
.ach .side-block .btn { justify-content: center; }
.ach .client-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.ach .client-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--text); text-decoration: none; min-width: 0; }
.ach .client-link:hover { background: rgba(255, 255, 255, .05); }
.ach .client-link.is-active { background: var(--raise); }
.ach .client-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ach .side-empty { color: var(--muted); padding: 6px 10px; font-size: 14px; }
.ach .archived summary { cursor: pointer; color: var(--muted); padding: 6px 10px; font-size: 14px; }
.ach .side-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 12px 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.ach .side-foot .who { width: 100%; color: var(--muted); }

.ach .strip { display: inline-flex; flex: none; gap: 2px; align-items: stretch; height: 18px; }
.ach .strip i { display: block; width: 6px; border-radius: 1px; }
.ach .strip-empty { background: var(--line); }

/* ---------- Botões e campos ---------- */
.ach .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 7px; background: var(--raise); color: var(--text);
	font: 500 14px var(--ui); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.ach .btn:hover { background: #333c66; border-color: #4a5690; color: var(--text); }
.ach .btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ach .btn--primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.ach .btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.ach .btn--ghost:hover { background: rgba(255, 255, 255, .07); border-color: transparent; color: var(--text); }
.ach .btn--danger { color: #ffb4a3; border-color: #7a3a3a; background: transparent; }
.ach .btn--danger:hover { background: rgba(255, 138, 107, .12); border-color: var(--warn); color: #ffd0c4; }
.ach .btn--icon { width: 34px; height: 34px; padding: 0; }
.ach .btn:disabled { opacity: .5; cursor: not-allowed; }

.ach input[type=text], .ach input[type=url], .ach input[type=email], .ach input[type=search], .ach input[type=date], .ach textarea, .ach select {
	width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; color: var(--text); padding: 9px 11px; font: inherit;
}
.ach input[type=file] { color: var(--muted); font: inherit; max-width: 100%; }
.ach textarea { resize: vertical; min-height: 64px; }
.ach input::placeholder, .ach textarea::placeholder { color: #6c769b; }
.ach input:focus, .ach textarea:focus, .ach select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.ach .select, .ach .input { width: auto; min-width: 200px; }
.ach .side-search { font-size: 14px; }

.ach .fields { display: flex; flex-wrap: wrap; gap: 14px; }
.ach .field { flex: 1 1 100%; min-width: 0; }
.ach .field--half { flex: 1 1 calc(50% - 7px); min-width: 180px; }
.ach .field label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 500; color: var(--muted); }
.ach .req { color: var(--accent); }
.ach .help { margin-top: 5px; font-size: 13px; color: #7f89ad; }
.ach .color-field { display: flex; gap: 8px; }
.ach .color-pick { flex: none; width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); cursor: pointer; }
.ach .image-field .row { flex-wrap: nowrap; }
.ach .img-prev img { display: block; margin-top: 10px; max-height: 150px; max-width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.ach .check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; cursor: pointer; }
.ach .check input { accent-color: var(--accent); width: 16px; height: 16px; }
.ach .radios { border: 0; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.ach .radios legend { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; padding: 0; }

/* ---------- Modal, aviso, lightbox ---------- */
.ach .overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; background: rgba(8, 11, 22, .72); overflow-y: auto; }
.ach .overlay--top { z-index: 100010; align-items: center; padding-top: 16px; }
.ach .overlay--light { align-items: center; padding: 24px; cursor: zoom-out; }
.ach .modal { width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.ach .modal--wide { width: min(760px, 100%); }
.ach .modal--sm { width: min(420px, 100%); }
.ach .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ach .modal-actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.ach .form-error { margin-top: 12px; color: #ffb4a3; font-size: 14px; }
.ach .form-error:empty { display: none; }
.ach .confirm-msg { margin-bottom: 4px; line-height: 1.5; }
.ach .lightbox { max-width: min(1100px, 100%); }
.ach .lightbox img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 8px; }
.ach .lightbox figcaption { margin-top: 10px; text-align: center; color: var(--muted); }
.ach .lightbox-x { position: fixed; top: 16px; right: 16px; background: var(--raise); }

.ach .toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100020; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.ach .toast { background: var(--text); color: #151a2b; padding: 9px 16px; border-radius: 8px; font-weight: 500; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); transition: opacity .25s; overflow-wrap: anywhere; }
.ach .toast--error { background: var(--warn); }
.ach .toast.is-out { opacity: 0; }

/* ---------- Tela de login ---------- */
.ach-gate { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.ach .gate-card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.ach .gate-card h1 { margin-bottom: 8px; }
.ach .gate-card p { color: var(--muted); margin-bottom: 16px; }
.ach .gate-card form p { margin-bottom: 14px; }
.ach .gate-card label { display: block; margin-bottom: 5px; font-size: 13px; color: var(--muted); }
.ach .gate-card input[type=text], .ach .gate-card input[type=password] { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; color: var(--text); padding: 10px 12px; font: inherit; }
.ach .gate-card input[type=submit] { width: 100%; height: 40px; border: 0; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font: 600 15px var(--ui); cursor: pointer; }
.ach .gate-card .login-remember label { display: flex; gap: 8px; align-items: center; }

/* ---------- Telas pequenas ---------- */
@media (max-width: 860px) {
	.ach .app { grid-template-columns: minmax(0, 1fr); }
	.ach .side, .ach--admin .side { position: fixed; z-index: 99990; top: 0; left: 0; width: 280px; max-width: 86vw; height: 100vh; transform: translateX(-102%); transition: transform .2s; }
	.ach .side.is-open { transform: none; }
	.ach .app:has(.side.is-open) .scrim { display: block; position: fixed; inset: 0; z-index: 99980; background: rgba(8, 11, 22, .6); }
	.ach .topbar { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 50; padding: 8px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
	.ach--admin .topbar { top: 46px; }
	.ach .field--half { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.ach *, .ach *::before, .ach *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* TJ Hub – telas: início, ficha do cliente, cores, fontes, regras, mídia, quadro, demandas */

.ach .page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ach .sub { color: var(--muted); margin-top: 4px; }
.ach .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.ach .section-title { margin-bottom: 12px; }
.ach .more { font-size: 13px; }

.ach .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.ach .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-height: 34px; }
.ach .panel-actions { display: flex; align-items: center; gap: 6px; }
.ach .panel--do { border-top: 3px solid var(--ok); }
.ach .panel--dont { border-top: 3px solid var(--warn); }
.ach .tab-body > .panel + .panel { margin-top: 16px; }

.ach .cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ach .cols--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ach .cols--home { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.ach .col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ach .plain { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ach .stack { display: flex; flex-direction: column; gap: 8px; }

.ach .empty { border: 1px dashed var(--line); border-radius: 10px; padding: 44px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ach .empty-title { font: 700 18px var(--display); }
.ach .empty-text { color: var(--muted); max-width: 460px; }

.ach .tag { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font: 600 12px var(--ui); background: var(--raise); color: var(--muted); vertical-align: middle; }
.ach .tag--ideia { color: #c1c8e6; }
.ach .tag--planejado { background: rgba(142, 162, 255, .16); color: var(--info); }
.ach .tag--em_producao { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.ach .tag--aprovado { background: rgba(190, 150, 255, .16); color: #c9a8ff; }
.ach .tag--publicado { background: rgba(95, 211, 165, .16); color: var(--ok); }
.ach .count { display: inline-block; margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--raise); color: var(--muted); font-size: 12px; text-align: center; line-height: 20px; }
.ach .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; margin-top: 7px; }
.ach .bcol-head .dot { margin-top: 0; }
.ach .dot--doing { background: var(--accent); }
.ach .dot--review { background: var(--info); }
.ach .dot--done { background: var(--ok); }

/* ---------- Início ---------- */
.ach .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 32px; }
.ach .stat { border-left: 3px solid var(--line); padding: 2px 16px; display: flex; flex-direction: column; }
.ach .stat strong { font: 700 36px/1.1 var(--display); }
.ach .stat span { color: var(--muted); font-size: 14px; }
.ach .stat--warn { border-left-color: var(--warn); }
.ach .stat--warn strong { color: var(--warn); }
.ach .client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ach .client-tile { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.ach .client-tile:hover { border-color: var(--accent); color: var(--text); }
.ach .client-tile .strip { height: 10px; }
.ach .client-tile .strip i { flex: 1; width: auto; }
.ach .tile-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ach .tile-top > div { display: flex; flex-direction: column; min-width: 0; }
.ach .tile-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ach .tile-top small { color: var(--muted); }
.ach .logo { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; background: var(--raise); }
.ach .logo--sm { width: 40px; height: 40px; border-radius: 9px; }
.ach .logo--letter { display: grid; place-items: center; font: 700 26px var(--display); }
.ach .logo--sm.logo--letter { font-size: 18px; }
.ach .deadlines li { display: flex; gap: 12px; align-items: baseline; }
.ach .when { flex: none; width: 44px; font: 600 13px var(--ui); color: var(--muted); }
.ach .when.is-late { color: var(--warn); }

/* ---------- Ficha do cliente ---------- */
.ach .client-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ach .client-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ach .client-id h1 { overflow-wrap: anywhere; }
.ach .client-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ach .band { flex: 1 1 100%; display: flex; height: 8px; border-radius: 3px; overflow: hidden; background: var(--line); }
.ach .band i { flex: 1; display: block; }
.ach .tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.ach .tab { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.ach .tab:hover { color: var(--text); }
.ach .tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.ach .facts dt { color: var(--muted); font-size: 13px; margin-top: 12px; }
.ach .facts dt:first-child { margin-top: 0; }
.ach .facts dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ach .swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ach .swatch-chip { height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.ach .swatch-chip:hover { transform: translateY(-2px); }
.ach .rules { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ach .rules li { display: flex; align-items: flex-start; gap: 10px; }
.ach .rules li > span:not(.ico) { flex: 1; min-width: 0; }
.ach .rules--do .ico { color: var(--ok); margin-top: 2px; }
.ach .rules--dont .ico { color: var(--warn); margin-top: 2px; }
.ach .link-card { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); }
.ach .link-card:hover { border-color: #4a5690; }
.ach .link-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 10px 12px; color: var(--text); text-decoration: none; }
.ach .link-main .ico { color: var(--accent); }
.ach .link-text { display: flex; flex-direction: column; min-width: 0; }
.ach .link-text strong, .ach .link-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ach .link-text small { color: var(--muted); }
.ach .link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ach .contacts li { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ach .contact-lines { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }

/* ---------- Cores ---------- */
.ach .color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ach .color-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ach .swatch { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; width: 100%; height: 160px; padding: 14px 16px; border: 0; cursor: pointer; text-align: left; }
.ach .swatch-hex { font: 700 24px var(--display); letter-spacing: -.01em; }
.ach .swatch-hint { font-size: 13px; opacity: 0; transition: opacity .15s; }
.ach .swatch:hover .swatch-hint, .ach .swatch:focus-visible .swatch-hint { opacity: .75; }
.ach .color-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 4px 16px; }
.ach .color-meta > div { display: flex; flex-direction: column; min-width: 0; }
.ach .fmts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 12px 14px; }
.ach .fmt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 9px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--text); cursor: pointer; text-align: left; min-width: 0; }
.ach .fmt:hover { border-color: var(--accent); }
.ach .fmt-label { font-size: 11.5px; color: var(--muted); }
.ach .fmt code { font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; text-align: left; }

/* ---------- Fontes ---------- */
.ach .font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ach .font-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ach .font-sample { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ach .font-aa { font-size: 64px; line-height: 1; }
.ach .font-line { color: var(--muted); font-size: 16px; }
.ach .font-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ach .font-meta > div:first-child { display: flex; flex-direction: column; min-width: 0; }

/* ---------- Referências e posts ---------- */
.ach .masonry { column-width: 250px; column-gap: 16px; }
.ach .ref { break-inside: avoid; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ach .ref-img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ach .ref-img img { display: block; width: 100%; height: auto; }
.ach .ref-link-only { display: flex; align-items: center; gap: 10px; padding: 18px 14px; background: var(--bg-2); }
.ach .ref figcaption { padding: 12px 8px 12px 14px; }
.ach .ref-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ach .ref figcaption .muted { margin: 4px 6px 0 0; font-size: 14px; }
.ach .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ach .chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 14px var(--ui); cursor: pointer; }
.ach .chip:hover { color: var(--text); border-color: #4a5690; }
.ach .chip.is-active { background: var(--raise); color: var(--text); border-color: var(--accent); }
.ach .post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.ach .post { display: flex; flex-direction: column; padding: 0; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--text); cursor: pointer; font: inherit; }
.ach .post:hover { border-color: var(--accent); }
.ach .post-img { display: block; aspect-ratio: 4 / 5; background: var(--bg); }
.ach .post-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ach .post-noimg { display: grid; place-items: center; height: 100%; color: var(--line); }
.ach .post-info { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px; }
.ach .post-info .tag { margin-left: 0; }
.ach .post-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; }
.ach .post-view img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.ach .post-view .caption { margin: 14px 0 18px; line-height: 1.6; }

/* ---------- Quadro ---------- */
.ach .board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.ach .bcol { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-height: 160px; }
.ach .bcol-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.ach .bcol-body { display: flex; flex-direction: column; gap: 8px; min-height: 70px; border-radius: 8px; }
.ach .bcol-body.drop-end { box-shadow: inset 0 -3px 0 var(--accent); }
.ach .bcol-empty { color: #66709a; font-size: 14px; text-align: center; padding: 18px 0; }
.ach .task { display: flex; flex-direction: column; gap: 8px; padding: 11px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.ach .task[draggable=true] { cursor: grab; }
.ach .task.is-dragging { opacity: .35; }
.ach .task.drop-before { box-shadow: 0 -4px 0 var(--accent); }
.ach .task.is-late { border-left: 3px solid var(--warn); }
.ach .task-client { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ach .task-client .strip { height: 12px; }
.ach .task-client .strip i { width: 4px; }
.ach .task-title { padding: 0; border: 0; background: none; color: var(--text); font: 500 15px/1.35 var(--ui); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.ach button.task-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.ach .task-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); min-height: 28px; }
.ach .task-meta .btn--icon { width: 26px; height: 26px; }
.ach .due { display: inline-flex; align-items: center; gap: 4px; }
.ach .task.is-late .due { color: var(--warn); }
.ach .id-chip { padding: 1px 7px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; color: var(--text); font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.ach .id-chip:hover { border-color: var(--accent); }

/* ---------- Demandas ---------- */
.ach .month-nav { display: flex; align-items: center; gap: 2px; }
.ach .month { min-width: 150px; text-align: center; text-transform: capitalize; font-family: var(--display); font-size: 17px; }
.ach .results.is-loading { opacity: .55; transition: opacity .15s; }
.ach .summary { margin-bottom: 10px; }
.ach .table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.ach .grid-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.ach .grid-table th, .ach .grid-table td { padding: 10px 14px; text-align: left; vertical-align: top; }
.ach .grid-table thead th { font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.ach .grid-table tbody td { border-top: 1px solid rgba(54, 64, 106, .6); }
.ach .grid-table .day-row th { background: var(--raise); font-weight: 600; font-size: 14px; text-transform: capitalize; }
.ach .grid-table .actions { width: 48px; text-align: right; padding-left: 0; }

/* ---------- Importar e ajustes ---------- */
.ach .import-preview { margin: 4px 0 14px; }
.ach .import-preview li { padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; }
.ach .quote { margin: 0 0 12px; padding: 12px 14px; background: var(--bg); border-left: 3px solid var(--accent); border-radius: 0 7px 7px 0; font-size: 14px; color: var(--text); }
.ach .panel > p + .field, .ach .panel > p + .btn, .ach .panel > .field + .field { margin-top: 14px; }
.ach .panel > .field { margin-bottom: 14px; }

@media (max-width: 1000px) {
	.ach .cols, .ach .cols--home, .ach .cols--even { grid-template-columns: minmax(0, 1fr); }
	.ach .post-view { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.ach .fmts { grid-template-columns: 1fr; }
	.ach .client-id { align-items: flex-start; }
	.ach .logo { width: 52px; height: 52px; }
}
