/* Intranet Distrito Creativo — sistema visual basado en el manual de identidad v1.0 */
:root {
  --grafito: #1D1D1D;
  --mineral: #F5F3EE;
  --hormigon: #7B7B7B;
  --terracota: #B65E41;
  --terracota-dark: #9C4F36;
  --terracota-soft: #F1E2DB;
  --ink-2: #4A4741;
  --ink-3: #6E6A64;
  --on-dark-2: #9A958D;
  --on-dark-3: #8C877F;
  --rule: #DCD8D0;
  --rule-dark: #3A3A3A;
  --card: #FFFFFF;
  --card-2: #FBFAF7;
  --ok: #4F7A55;
  --warn: #A8792A;
  --bad: #A8432F;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(29,29,29,.05), 0 4px 18px rgba(29,29,29,.05);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-micro: "Inter", system-ui, sans-serif;
  --sidebar: 252px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--grafito);
  background: var(--mineral); -webkit-font-smoothing: antialiased;
}
a { color: var(--terracota); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--terracota); color: #fff; }
[hidden] { display: none !important; }

/* ---------- tipografía de marca ---------- */
.micro { font-family: var(--font-micro); font-weight: 600; font-size: 11px; letter-spacing: .235em; text-transform: uppercase; color: var(--ink-3); }
.display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: .95; letter-spacing: .01em; }
.rule-t { display: block; width: 56px; height: 4px; background: var(--terracota); margin-bottom: 14px; }
h1, h2, h3 { margin: 0; }
h2.section { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; margin: 0 0 12px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; background: var(--grafito); color: var(--mineral);
  display: flex; flex-direction: column; overflow: hidden; z-index: 20;
}
.sidebar .brand { padding: 26px 22px 18px; display: block; }
.sidebar .brand img { height: 38px; width: auto; display: block; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.nav-group { margin: 14px 10px 6px; color: var(--on-dark-3); font-family: var(--font-micro); font-weight: 600; font-size: 10px; letter-spacing: .235em; text-transform: uppercase; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--radius-sm);
  color: #E8E5DE; font-weight: 600; font-size: 14px; position: relative;
}
.nav-link svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav-link:hover { background: #2A2A2A; text-decoration: none; }
.nav-link.active { background: #2C2724; color: #fff; }
.nav-link.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; background: var(--terracota); border-radius: 0 2px 2px 0; }
.nav-link.active svg { opacity: 1; color: var(--terracota); }
.sidebar .me { border-top: 1px solid var(--rule-dark); padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.sidebar .me .who { flex: 1; min-width: 0; }
.sidebar .me .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .me .who span { font-size: 12px; color: var(--on-dark-2); }
.sidebar .signature, .signature { height: 8px; flex: none; background: linear-gradient(90deg, var(--hormigon) 0 48%, var(--grafito) 48% 91%, var(--terracota) 91% 100%); }
.sidebar .signature { background: linear-gradient(90deg, var(--hormigon) 0 48%, #000 48% 91%, var(--terracota) 91% 100%); }
.icon-btn { background: none; border: 0; color: var(--on-dark-2); padding: 6px; border-radius: 6px; cursor: pointer; display: inline-flex; }
.icon-btn:hover { color: #fff; background: #2A2A2A; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 14px 32px; border-bottom: 1px solid var(--rule);
  background: rgba(245,243,238,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10;
}
.topbar .crumb { flex: 1; }
.menu-toggle { display: none; }
.engine-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hormigon); display: inline-block; flex: none; }
.dot.on { background: #5E9B67; box-shadow: 0 0 0 3px rgba(94,155,103,.18); }
.dot.warn { background: var(--warn); }
.page { padding: 34px 32px 64px; max-width: 1280px; width: 100%; }
.page.wide { max-width: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 40px; line-height: .92; letter-spacing: .005em; }
.page-head p { margin: 8px 0 0; color: var(--ink-3); max-width: 640px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- componentes ---------- */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.dark { background: var(--grafito); color: var(--mineral); border-color: var(--grafito); }
.card.dark .muted { color: var(--on-dark-2); }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 18px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--grafito);
  background: var(--grafito); color: #fff; padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; text-decoration: none !important;
}
.btn:hover { background: #333; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--terracota); border-color: var(--terracota); }
.btn.primary:hover { background: var(--terracota-dark); border-color: var(--terracota-dark); }
.btn.ghost { background: transparent; color: var(--grafito); border-color: var(--rule); }
.btn.ghost:hover { background: #fff; border-color: #C9C4BA; }
.btn.danger { background: transparent; color: var(--bad); border-color: #E2C5BD; }
.btn.danger:hover { background: #FBF1EE; }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.xs { padding: 3px 8px; font-size: 12px; font-weight: 600; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
label.field .hint { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid #D5D0C6; background: #fff; border-radius: var(--radius-sm); padding: 9px 12px; font-size: 14px;
  transition: border-color .15s, box-shadow .15s; font-weight: 500;
}
textarea.input { resize: vertical; min-height: 90px; line-height: 1.5; }
.input:focus, .btn:focus-visible, .nav-link:focus-visible, .chip:focus-visible { outline: none; border-color: var(--terracota); box-shadow: 0 0 0 3px rgba(182,94,65,.18); }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { accent-color: var(--terracota); width: 16px; height: 16px; }

.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip.on { border-color: var(--terracota); background: var(--terracota-soft); color: var(--terracota-dark); }
.chip .x { opacity: .6; }
.tag { display: inline-block; font-family: var(--font-micro); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: #EFECE6; color: var(--ink-2); }
.tag.t { background: var(--terracota-soft); color: var(--terracota-dark); }
.tag.ok { background: #E4EEE5; color: #2F5A36; }
.tag.warn { background: #F5EBD9; color: #7A5513; }
.tag.bad { background: #F6E1DC; color: #8A3322; }

.note { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; border: 1px solid var(--rule); background: var(--card-2); }
.note.warn { background: #FBF4E7; border-color: #EBD8B2; }
.note.bad { background: #FBEDEA; border-color: #EBC5BC; }
.note.ok { background: #EEF5EF; border-color: #C9DECC; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty .display { font-size: 22px; color: var(--grafito); margin-bottom: 6px; }

table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--font-micro); font-weight: 600; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.table td { padding: 11px 12px; border-bottom: 1px solid #ECE8E1; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; color: #fff; flex: none; }
.kpi { padding: 16px 18px; }
.kpi .v { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1; margin-top: 8px; }
.kpi .s { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--grafito); color: #fff; padding: 11px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 28px rgba(0,0,0,.18); max-width: 420px; animation: tin .2s ease-out; border-left: 3px solid var(--terracota); }
.toast.bad { border-left-color: #E07A5F; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-back { position: fixed; inset: 0; background: rgba(29,29,29,.45); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 16px; }
.modal { background: var(--card); border-radius: 12px; width: 100%; max-width: 540px; max-height: 90vh; overflow: auto; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.modal header { padding: 22px 24px 10px; }
.modal header h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; }
.modal .body { padding: 6px 24px 18px; }
.modal footer { padding: 14px 24px; border-top: 1px solid var(--rule); display: flex; justify-content: flex-end; gap: 8px; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.15); border-top-color: var(--terracota); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #EEEAE3, #F6F3EE, #EEEAE3); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login .art { background: var(--grafito); color: var(--mineral); position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login .art .iso { position: absolute; right: -120px; bottom: -80px; width: 560px; opacity: .07; pointer-events: none; }
.login .art h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(44px, 6vw, 84px); line-height: .9; }
.login .art h1 em { color: var(--terracota); font-style: normal; }
.login .art .foot { display: flex; justify-content: space-between; color: var(--on-dark-2); font-family: var(--font-micro); font-size: 11px; font-weight: 600; letter-spacing: .235em; text-transform: uppercase; }
.login .art .foot b { color: var(--terracota); }
.login .form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login .form .box { width: 100%; max-width: 380px; }
.login .form h2 { font-family: var(--font-display); font-size: 30px; text-transform: uppercase; margin-bottom: 6px; }

/* ---------- tareas ---------- */
.task-new { display: grid; grid-template-columns: 1fr 180px 190px 150px auto; gap: 10px; align-items: end; }
.tasks { display: flex; flex-direction: column; gap: 8px; }
.task { display: grid; grid-template-columns: 6px 1fr auto; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden; transition: opacity .3s, transform .3s; }
.task .bar { background: var(--c); }
.task .content { padding: 12px 14px; display: flex; gap: 12px; align-items: center; min-width: 0; }
.task .text { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.task .meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.task .side { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.task.mine { background: color-mix(in srgb, var(--c) 7%, #fff); border-color: color-mix(in srgb, var(--c) 35%, var(--rule)); }
.task.leaving { opacity: 0; transform: translateX(30px); }
.status-select { border: 1px solid var(--rule); border-radius: 999px; padding: 5px 10px; font-size: 12.5px; font-weight: 700; background: #fff; cursor: pointer; }
.status-select.en_ejecucion { background: #FBF4E7; border-color: #EBD8B2; color: #7A5513; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- chat ---------- */
.chat-layout { display: grid; grid-template-columns: 290px 1fr; gap: 0; height: calc(100vh - 63px); }
.conv-list { border-right: 1px solid var(--rule); overflow-y: auto; padding: 18px 14px; background: var(--card-2); }
.conv-item { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--grafito); margin-bottom: 4px; border: 1px solid transparent; cursor: pointer; }
.conv-item:hover { background: #fff; border-color: var(--rule); text-decoration: none; }
.conv-item.active { background: #fff; border-color: var(--terracota); }
.conv-item b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item span { font-size: 12px; color: var(--ink-3); }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { padding: 16px 28px; border-bottom: 1px solid var(--rule); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.chat-head h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; flex: 1; min-width: 200px; }
.messages { flex: 1; overflow-y: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.msg { max-width: 920px; width: 100%; }
.msg.user { align-self: flex-end; max-width: 720px; }
.msg.user .bubble { background: var(--grafito); color: #F3F1EC; border-radius: 12px 12px 2px 12px; padding: 12px 16px; white-space: pre-wrap; }
.msg.assistant .bubble { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 18px 22px; }
.msg .who { font-family: var(--font-micro); font-weight: 600; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.msg.user .who { text-align: right; }
.msg .tools { display: flex; gap: 6px; margin-top: 8px; }
.composer { border-top: 1px solid var(--rule); padding: 14px 28px 18px; background: var(--mineral); }
.composer .box { display: flex; gap: 10px; align-items: flex-end; background: #fff; border: 1px solid #D5D0C6; border-radius: 12px; padding: 8px 8px 8px 14px; }
.composer textarea { flex: 1; border: 0; outline: 0; resize: none; min-height: 44px; max-height: 260px; padding: 8px 0; background: transparent; }
.composer .opts { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.status-line { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: 13px; font-weight: 600; }

/* ---------- markdown ---------- */
.md { font-size: 14.5px; line-height: 1.62; overflow-wrap: anywhere; }
.md > *:first-child { margin-top: 0; }
.md > *:last-child { margin-bottom: 0; }
.md h1, .md h2, .md h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; margin: 1.3em 0 .5em; line-height: 1.05; }
.md h1 { font-size: 26px; } .md h2 { font-size: 21px; } .md h3 { font-size: 17px; }
.md h4 { font-size: 15px; margin: 1.1em 0 .4em; }
.md p { margin: .6em 0; }
.md ul, .md ol { padding-left: 1.3em; margin: .5em 0; }
.md li { margin: .2em 0; }
.md strong { font-weight: 800; }
.md blockquote { margin: .8em 0; padding: 6px 14px; border-left: 3px solid var(--terracota); color: var(--ink-2); background: var(--card-2); }
.md code { font-family: "JetBrains Mono", monospace; font-size: 12.5px; background: #F2EFE9; padding: 1px 5px; border-radius: 4px; }
.md pre { background: var(--grafito); color: #EDEAE4; padding: 12px 14px; border-radius: 8px; overflow-x: auto; }
.md pre code { background: none; color: inherit; padding: 0; }
.md table { border-collapse: collapse; width: 100%; margin: .8em 0; font-size: 13.5px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--rule); padding: 7px 10px; text-align: left; vertical-align: top; }
.md th { background: #F4F1EB; font-weight: 800; }
.md hr { border: 0; border-top: 1px solid var(--rule); margin: 1.2em 0; }

/* ---------- temáticas ---------- */
.topic { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid #ECE8E1; }
.topic:last-child { border-bottom: 0; }
.topic .n { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--terracota); line-height: 1; padding-top: 2px; }
.topic b { font-size: 15px; }
.topic .why { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }

/* ---------- instagram ---------- */
.ig-profile { display: flex; gap: 18px; align-items: center; }
.ig-profile img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--rule); background: #eee; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.post { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.post .thumb { aspect-ratio: 4/5; background: #EEE center/cover no-repeat; position: relative; }
.post .thumb .tag { position: absolute; top: 8px; left: 8px; }
.post .info { padding: 10px 12px; font-size: 12.5px; }
.chart-box { position: relative; height: 260px; }
.report { background: var(--mineral); }

/* ---------- clientes ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.client-card { display: block; color: inherit; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; transition: border-color .15s, transform .15s; }
.client-card:hover { border-color: var(--terracota); text-decoration: none; transform: translateY(-1px); }
.client-card b { display: block; font-size: 15px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; }
.tab.active { color: var(--grafito); border-bottom-color: var(--terracota); }

/* ---------- herramientas embebidas ---------- */
.tool-frame { border: 0; width: 100%; height: calc(100vh - 63px); display: block; background: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-new { grid-template-columns: 1fr 1fr; }
  .task-new .grow { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar); transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .menu-toggle { display: inline-flex; color: var(--grafito); }
  .menu-toggle:hover { background: #E9E5DE; color: var(--grafito); }
  .topbar { padding: 12px 16px; }
  .page { padding: 24px 16px 48px; }
  .page-head h1 { font-size: 32px; }
  .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .conv-list { display: none; }
  .chat-layout.show-list .conv-list { display: block; }
  .messages { padding: 18px 16px; min-height: 50vh; }
  .composer, .chat-head { padding-left: 16px; padding-right: 16px; }
  .login { grid-template-columns: 1fr; }
  .login .art { min-height: 260px; padding: 28px; }
  .task .content { flex-wrap: wrap; }
  .task { grid-template-columns: 6px 1fr; }
  .task .side { grid-column: 2; padding: 0 14px 12px; }
}
@media (max-width: 560px) {
  .grid.c4 { grid-template-columns: 1fr 1fr; }
  .task-new { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
}
