:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #1d1f23;
  --muted: #6b6f76;
  --line: #e4e2dc;
  --accent: #2b6cb0;
  --warn: #c0392b;
  --today: #b7791f;
  --chip: #ebe9e3;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 16px rgba(0, 0, 0, .06);
  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --surface: #1f2227;
    --ink: #e9e7e2;
    --muted: #9a9ea6;
    --line: #2e3238;
    --accent: #7aa7e0;
    --warn: #ef7c6e;
    --today: #e0b462;
    --chip: #272a30;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

#app { max-width: 640px; margin: 0 auto; min-height: 100dvh; }

button, input, select, textarea { font: inherit; color: inherit; }

.boot { padding: 40px 16px; text-align: center; color: var(--muted); }

/* ---------- Cabecera ---------- */

.top {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
  padding: env(safe-area-inset-top, 0px) 0 0;
  border-bottom: 1px solid var(--line);
}

.titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 16px 6px; }
.titlebar h1 { flex: 1; margin: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }

.iconbtn {
  border: 0; background: transparent; font-size: 1.35rem; line-height: 1;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: var(--muted);
}
.iconbtn:active { background: var(--chip); }
.iconbtn.small { width: 34px; height: 34px; font-size: 1rem; }
.iconbtn:disabled { opacity: .3; }
.iconbtn.danger { color: var(--warn); }

.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
  .chips { flex-wrap: wrap; overflow: visible; }
}

.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 7px 12px;
  background: var(--chip); color: var(--ink); font-size: .92rem; cursor: pointer; white-space: nowrap;
}
.chip.on { background: var(--ink); color: var(--bg); }
.chip .count { font-size: .78rem; opacity: .65; font-variant-numeric: tabular-nums; }

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c, var(--muted)); flex: none;
}

/* ---------- Lista ---------- */

.list { padding: 8px 16px calc(150px + var(--safe-b)); }
.list.settings { padding-bottom: calc(40px + var(--safe-b)); }

.group { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 4px 6px; font-weight: 600; }
.group.warn { color: var(--warn); }

.tasks { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tasks + .tasks { margin-top: 12px; }

.task {
  display: flex; align-items: flex-start; gap: 4px;
  border-bottom: 1px solid var(--line);
  transition: opacity .3s, transform .3s;
}
.task:last-child { border-bottom: 0; }
.task.leaving { opacity: 0; transform: translateX(24px); }

.check {
  flex: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.check::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--c, var(--muted));
  transition: background .15s;
}
.check:active::before, .task.leaving .check::before { background: var(--c, var(--muted)); }
.check.checked::before { background: var(--c, var(--muted)); opacity: .55; }

.body { flex: 1; min-width: 0; padding: 12px 14px 12px 0; cursor: pointer; outline-offset: -2px; }
.title { overflow-wrap: anywhere; }
.task.done .title { color: var(--muted); text-decoration: line-through; }

.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: .82rem; color: var(--muted); }
.meta .area { display: inline-flex; align-items: center; gap: 5px; }
.meta .overdue { color: var(--warn); font-weight: 600; }
.meta .today { color: var(--today); font-weight: 600; }

.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ---------- Entrada rápida ---------- */

.quick {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  max-width: 640px; margin: 0 auto;
  padding: 8px 12px calc(10px + var(--safe-b));
  background: linear-gradient(to bottom, transparent, var(--bg) 22px);
}
.quickrow { display: flex; gap: 8px; }
.quick input {
  flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 16px;
}
.quick input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.add {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--bg); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.preview { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 6px; min-height: 0; }
.pchip {
  display: inline-flex; align-items: center; gap: 5px; font-size: .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}

/* ---------- Editor (hoja inferior) ---------- */

dialog.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 640px;
  max-height: 92dvh; border-radius: 18px 18px 0 0;
  background: var(--surface); color: var(--ink);
}
dialog.sheet::backdrop { background: rgba(0, 0, 0, .35); }
dialog.sheet form { padding: 4px 16px calc(16px + var(--safe-b)); }
@media (min-width: 700px) {
  dialog.sheet { margin: auto; border-radius: 18px; }
}

.sheethead { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.sheetfoot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row input { flex: 1; min-width: 0; }

textarea, input[type=text], input[type=password], input[type=date], input[type=time], input[type=url], input[type=number], select, .settings input[type=text] {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: var(--bg); font-size: 16px;
}
textarea { resize: vertical; }
textarea[name=title] { font-size: 1.1rem; font-weight: 600; }

.field { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--muted); }
div.field { flex-direction: row; gap: 10px; }
div.field label { display: flex; flex-direction: column; gap: 4px; }
.grow { flex: 1; }
.narrow { width: 38%; }
.field select, .field input { color: var(--ink); }

.minis { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.mini { border: 0; background: var(--chip); border-radius: 999px; padding: 6px 12px; font-size: .85rem; cursor: pointer; }

.btn {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px;
  padding: 10px 14px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
}
.btn.small { padding: 6px 10px; font-size: .85rem; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.danger { color: var(--warn); }

.link { border: 0; background: transparent; color: var(--accent); padding: 8px 4px; cursor: pointer; font-size: 1rem; }
.link.strong { font-weight: 700; }

/* ---------- Ajustes ---------- */

.settings section { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px 16px; margin-top: 16px; }
.settings h2 { font-size: 1rem; margin: 14px 0 10px; }
.areas, .feeds { list-style: none; margin: 0 0 12px; padding: 0; }
.areas li { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.areas input[type=color] { width: 36px; height: 36px; padding: 0; border: 0; background: none; flex: none; border-radius: 8px; }
.areas input[type=text] { flex: 1; min-width: 0; }
.feeds li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.feeds li:last-child { border-bottom: 0; }
.feeds span { display: inline-flex; align-items: center; gap: 8px; }

.help { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: .88rem; }
.help dt { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.help dd { margin: 0; color: var(--muted); }
@media (max-width: 420px) {
  .help { grid-template-columns: 1fr; gap: 2px; }
  .help dd { margin-bottom: 8px; }
}

.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.error { color: var(--warn); min-height: 1em; margin: 0; }

/* ---------- Login / setup ---------- */

.center-card { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.card { width: 100%; max-width: 380px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card h1 { margin: 0 0 16px; font-size: 1.5rem; }
code { font-size: .85em; overflow-wrap: anywhere; }

/* ---------- Aviso ---------- */

.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 20;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg); border-radius: 12px; padding: 10px 14px;
  width: max-content; max-width: calc(100% - 32px); box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
  transition: opacity .2s, transform .2s; font-size: .92rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.error { background: var(--warn); color: #fff; }
.toast .link { color: inherit; font-weight: 700; text-decoration: underline; padding: 0; font-size: .92rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- v1.1: prioridad, proyectos, revisión ---------- */

:root { --p1: #d64545; --p2: #d69e2e; --p3: #38a169; }
@media (prefers-color-scheme: dark) {
  :root { --p1: #f07167; --p2: #e9b949; --p3: #5cc28a; }
}

.prio { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; flex: none; }
.prio.p1 { background: var(--p1); }
.prio.p2 { background: var(--p2); }
.prio.p3 { background: var(--p3); }
.pchip .prio { margin-right: 0; }

.meta .proj { color: var(--ink); opacity: .75; }

.grouphead { display: flex; align-items: baseline; justify-content: space-between; }
.grouphead .group { margin-bottom: 6px; }
.link.small { font-size: .9rem; padding: 4px; }
.pad { padding: 4px 4px 8px; margin: 0; }
.warntext { color: var(--warn); }

.projects { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.project {
  padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer;
  border-left: 4px solid var(--c, var(--line)); outline-offset: -2px;
}
.project:last-child { border-bottom: 0; }
.project:active { background: var(--chip); }
.ptitle { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; overflow-wrap: anywhere; }
.chev { color: var(--muted); font-weight: 400; }
.project .next { margin-top: 4px; font-size: .88rem; overflow-wrap: anywhere; }
.projects.dim .project { opacity: .7; }

.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.flag { font-size: .76rem; border-radius: 999px; padding: 2px 8px; background: var(--chip); color: var(--muted); }
.flag.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.flag.soon { background: color-mix(in srgb, var(--today) 16%, transparent); color: var(--today); }

.fold { margin-top: 18px; }
.fold summary { cursor: pointer; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding: 4px; margin-bottom: 6px; }

.pinfo { margin: 6px 4px 12px; }
.badge { background: var(--chip); border-radius: 999px; padding: 1px 8px; }
.pinfo .overdue { color: var(--warn); font-weight: 600; }
.pnotes {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 12px 14px; font-size: 15px; line-height: 1.45; resize: none; box-shadow: var(--shadow); min-height: 70px;
}
.pnotes:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.pactions { margin-top: 20px; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.segbtn {
  display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--bg);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: .9rem; color: var(--ink);
}
.segbtn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
div.field > span { font-size: .82rem; color: var(--muted); }
div.field:has(.seg) { flex-direction: column; gap: 4px; }

.flagdot { width: 7px; height: 7px; border-radius: 50%; background: var(--today); display: inline-block; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.review .revhead { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.review .big { font-weight: 700; font-size: 1.05rem; }
.steps { margin: 8px 0 0; padding-left: 20px; }
.steps li { margin: 2px 0; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 14px; cursor: pointer; color: var(--ink);
}
.stat:disabled { cursor: default; }
.stat .num { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .lbl { font-size: .8rem; color: var(--muted); }
.stat.warn .num { color: var(--warn); }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px !important; }
.settings section h2 + p { margin-top: 0; }
.settings .stack { gap: 8px; }

/* ---------- v1.3: negocio (encargos, horas, facturas, panel) ---------- */

.subtabs { display: flex; gap: 4px; background: var(--chip); border-radius: 12px; padding: 4px; margin: 4px 0 12px; overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtab { flex: 1 0 auto; border: 0; background: transparent; border-radius: 9px; padding: 8px 10px; font-size: .9rem; cursor: pointer; color: var(--muted); }
.subtab.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; background: var(--chip); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.check-inline input { width: 18px; height: 18px; }

.timerbar {
  display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 8px 8px 8px 12px;
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); font-size: .92rem;
}
.timerbar .tphase { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.timerbar .tcode { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; }
.timerbar .tclock { font-variant-numeric: tabular-nums; font-weight: 600; margin-left: auto; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--p1); flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.encs { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.enc { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding-right: 10px; }
.enc:last-child { border-bottom: 0; }
.encmain { flex: 1; min-width: 0; padding: 12px 6px 12px 14px; cursor: pointer; }
.enctitle { display: flex; gap: 8px; align-items: baseline; font-weight: 600; overflow-wrap: anywhere; }
.encnums { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; margin-top: 4px; color: var(--muted); }
.encnums b { color: var(--ink); font-weight: 600; }
.encnums .neg b { color: var(--warn); }
.play {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 1rem; cursor: pointer;
}
.play.on { background: var(--p1); border-color: var(--p1); color: #fff; }
.play:disabled { opacity: .35; cursor: default; }

.meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mtrack { flex: 1; height: 8px; border-radius: 4px; background: var(--chip); overflow: hidden; }
.mfill { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.meter > em { flex: none; min-width: 3.2em; text-align: right; font-style: normal; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.meter.near .mfill { background: var(--today); }
.meter.over .mfill { background: var(--warn); }

.starter { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.starter select { flex: 1; min-width: 0; }
.starter .row .btn { flex: none; }
.entry { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 10px 14px; cursor: pointer; outline-offset: -2px; }
.entry:last-child { border-bottom: 0; }
.entry .body { padding: 0; }
.entry .hours { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.status { display: inline-flex; gap: 4px; align-items: center; }
.status i { font-style: normal; font-weight: 700; }
.s-vencida { color: var(--warn); font-weight: 600; }
.s-cobrada { color: var(--p3); }
.stat.warn .num { color: var(--warn); }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 4px 0; font-size: .9rem; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.yearbar { display: flex; align-items: center; gap: 4px; margin: 2px 0 10px; }
.yearbar strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.yearbar .link { margin-left: auto; }
.hero { display: flex; flex-direction: column; gap: 2px; }
.hero .lbl { font-size: .82rem; color: var(--muted); }
.herro { font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.biz .stats { margin-top: 12px; }
.biz .stat { cursor: default; }
.tline { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tline:first-child { margin-top: 0; }

.bars { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 9.5rem) 1fr auto; gap: 10px; align-items: center; font-size: .86rem; }
.blabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btrack { height: 8px; background: var(--chip); border-radius: 4px; overflow: hidden; }
.bfill { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bval { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
@media (max-width: 400px) { .bars li { grid-template-columns: minmax(0, 7rem) 1fr auto; } }

.tablewrap { padding: 4px 0; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 7px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl th:first-child, .tbl td:first-child { text-align: left; white-space: normal; }
.tbl th { color: var(--muted); font-weight: 600; font-size: .78rem; }
.tbl tfoot td { font-weight: 700; border-bottom: 0; }
.tbl tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.enccard { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

/* ---------- v1.4: notas ---------- */

.notebar { margin: 4px 0 12px; }
.notebar input[type=search] {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); font-size: 16px;
}
.notebar select { width: auto; flex: none; max-width: 40%; }
.notelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.note {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  border-left: 4px solid var(--c, var(--line));
}
.notemain { padding: 12px 14px 10px; cursor: pointer; outline-offset: -2px; }
.notetitle { display: flex; gap: 6px; font-weight: 600; overflow-wrap: anywhere; }
.pin { font-size: .85em; }
.excerpt {
  margin-top: 4px; font-size: .9rem; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.openlink {
  display: block; padding: 8px 14px; border-top: 1px solid var(--line); font-size: .85rem;
  color: var(--accent); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notebody { min-height: 40dvh; font-size: 15px; line-height: 1.45; }
.bodylinks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.bodylinks a, .linkbtn { text-decoration: none; color: var(--accent); }
.linkbtn { align-self: flex-end; flex: none; }
