/* Quest Log — JRPG-style windows over a small, fixed palette.
   The 16 colours (also in js/shared/pixel.js): */
:root {
  --ink: #0d0f1f;
  --night: #161c3d;
  --navy: #22306b;
  --indigo: #34479b;
  --cream: #f5ecd0;
  --sand: #c9bd98;
  --paper: #fbf4df;
  --red: #e2483d;
  --orange: #f28c38;
  --gold: #f4c041;
  --green: #5fcf6e;
  --teal: #3fbfb5;
  --blue: #4c9df2;
  --purple: #a46ee6;
  --pink: #f47fb6;
  --grey: #9ca3b8;

  /* roles: "notte" (dark) is the default */
  --bg: var(--ink);
  --win-top: var(--navy);
  --win-bot: var(--night);
  --win-border: var(--cream);
  --text: var(--cream);
  --dim: var(--sand);
  --field: var(--ink);
  --btn: var(--indigo);
  --btn-text: var(--cream);
  --sel: var(--indigo);
  --line: rgb(245 236 208 / 0.16);
  --shadow: rgb(0 0 0 / 0.55);
  --star: rgb(245 236 208 / 0.13);

  --font: 'DotGothic16', 'Hiragino Sans', system-ui, sans-serif;
  --font-title: 'Press Start 2P', 'DotGothic16', monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: var(--cream);
    --win-top: var(--paper);
    --win-bot: var(--paper);
    --win-border: var(--navy);
    --text: var(--ink);
    --dim: var(--indigo);
    --field: var(--cream);
    --btn: var(--navy);
    --sel: var(--cream);
    --line: rgb(34 48 107 / 0.18);
    --shadow: rgb(13 15 31 / 0.22);
    --star: rgb(34 48 107 / 0.09);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: var(--cream);
  --win-top: var(--paper);
  --win-bot: var(--paper);
  --win-border: var(--navy);
  --text: var(--ink);
  --dim: var(--indigo);
  --field: var(--cream);
  --btn: var(--navy);
  --sel: var(--cream);
  --line: rgb(34 48 107 / 0.18);
  --shadow: rgb(13 15 31 / 0.22);
  --star: rgb(34 48 107 / 0.09);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font: 17px/1.45 var(--font);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
body::before { /* a sparse pixel star field */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(var(--star) 1px, transparent 1.5px),
    radial-gradient(var(--star) 1px, transparent 1.5px);
  background-size: 97px 89px, 61px 53px;
  background-position: 13px 7px, 41px 29px;
  image-rendering: pixelated;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.px, .pxi svg { display: block; image-rendering: pixelated; flex: none; }
.pxi { display: inline-flex; flex: none; }
[hidden] { display: none !important; }

/* ---------- the JRPG window ---------- */
.win {
  background: linear-gradient(180deg, var(--win-top), var(--win-bot));
  border: 3px solid var(--win-border);
  box-shadow: 0 0 0 3px var(--ink), 6px 6px 0 3px var(--shadow);
  border-radius: 0;
}

.logo {
  margin: 0;
  font: 16px/1.3 var(--font-title);
  letter-spacing: 1px;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--ink);
}
.logo.big { font-size: 22px; }
.dim { color: var(--dim); }
.center { text-align: center; }
.hint { color: var(--dim); font-size: 14px; margin: 6px 0 0; }
.tail { margin: 22px 0 8px; font-size: 14px; }

/* ---------- layout ---------- */
#view {
  padding: calc(var(--safe-top) + 14px) 16px calc(var(--tabbar-h) + var(--safe-bottom) + 96px);
  max-width: 560px;
  margin: 0 auto;
}
.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 18px;
}
.today-line { margin: 6px 0 0; color: var(--dim); font-size: 15px; }

.section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 2px 12px;
  font: 11px/1.4 var(--font-title);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--ink);
}
.section::after { content: ''; flex: 1; height: 3px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.section .count { order: 3; font-family: var(--font); font-size: 14px; color: var(--dim); text-shadow: none; }
.g-today .section { color: var(--gold); }

/* ---------- quest rows ---------- */
.list { padding: 4px 0; }
.quest, .cat-row {
  display: grid;
  grid-template-columns: 14px 32px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 10px 12px 10px 6px;
  border: 0;
  border-left: 5px solid var(--cat, var(--grey));
  background: none;
  text-align: left;
}
.quest + .quest, .cat-row + .cat-row { box-shadow: inset 0 2px 0 var(--line); }
.quest:active, .cat-open:active { background: var(--sel); }
.quest:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.cursor { color: var(--gold); font-size: 12px; visibility: hidden; text-shadow: 1px 1px 0 var(--ink); }
.quest.today .cursor, .quest:active .cursor, .quest:focus-visible .cursor { visibility: visible; }
.quest.today .cursor, .hero-count .cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; opacity: 0; } }
.quest-body { display: flex; flex-direction: column; min-width: 0; }
/* in a quest row: title and countdown on one line, the details full width below */
.quest { row-gap: 2px; }
.quest .quest-body { display: contents; }
.quest .cursor, .quest .pxi { grid-row: 1 / 3; }
.quest .quest-title { grid-column: 3; grid-row: 1; }
.quest .countdown { grid-column: 4; grid-row: 1; align-self: start; padding-top: 1px; }
.quest .quest-meta { grid-column: 3 / 5; grid-row: 2; margin-top: 0; }
.quest-title { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.quest-meta { font-size: 14px; color: var(--dim); margin-top: 2px; }
.countdown { font-size: 15px; color: var(--dim); white-space: nowrap; text-align: right; }
.countdown.soon { color: var(--text); }
.countdown.now { font: 11px/1.3 var(--font-title); color: var(--gold); text-shadow: 1px 1px 0 var(--ink); }
.quest.done .quest-title { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--dim); }
.quest.done .countdown { color: var(--green); font-size: 18px; }
.quest.done .pxi, .quest.missed .pxi { opacity: 0.6; }
.quest.missed .countdown { font-size: 14px; }

/* ---------- hero: the nearest quest ---------- */
.hero { padding: 14px 14px 14px; border-color: var(--win-border); position: relative; }
.hero::before { /* category colour stripe along the top */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--cat);
}
.hero.today { border-color: var(--gold); }
.hero-tag {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 4px;
  font: 9px/1.4 var(--font-title); letter-spacing: 1px; text-transform: uppercase; color: var(--gold);
}
.hero-bucket { color: var(--dim); }
.hero-main {
  display: flex; gap: 14px; align-items: center;
  width: 100%; margin: 14px 0 12px; padding: 0;
  border: 0; background: none; text-align: left;
}
.hero-icon {
  flex: none; display: grid; place-items: center; width: 66px; height: 66px;
  background: var(--field); border: 3px solid var(--cat); box-shadow: 0 0 0 2px var(--ink);
}
.hero-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-title { font-size: 23px; line-height: 1.25; overflow-wrap: anywhere; }
.hero-meta { font-size: 15px; }
.hero-meta.dim { font-size: 14px; }
.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 12px; box-shadow: inset 0 2px 0 var(--line);
}
.hero-count { font: 15px/1.3 var(--font-title); color: var(--text); display: flex; gap: 8px; align-items: center; }
.hero-count.now { color: var(--gold); font-size: 18px; text-shadow: 2px 2px 0 var(--ink); }
.hero-count .cursor { visibility: visible; font-size: 14px; }

/* ---------- empty state ---------- */
.empty { padding: 26px 20px 22px; text-align: center; margin-top: 10px; }
.empty-art { display: flex; justify-content: center; margin-bottom: 14px; animation: bob 1.6s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.empty-title { font: 13px/1.6 var(--font-title); color: var(--gold); margin: 0 0 10px; text-shadow: 2px 2px 0 var(--ink); }
.empty .dim { margin: 0 0 18px; }
.empty-day { padding: 18px 16px; text-align: center; }
.empty-day .dim { margin: 0 0 12px; }

/* ---------- buttons, fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 8px 16px;
  background: var(--btn); color: var(--btn-text);
  border: 2px solid var(--win-border); border-radius: 0;
  box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 2px var(--shadow);
  font-size: 17px;
}
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 2px var(--ink), 1px 1px 0 2px var(--shadow); }
.btn.primary { background: var(--gold); color: var(--ink); border-color: var(--cream); }
.btn.danger { background: var(--red); color: var(--cream); border-color: var(--cream); }
.btn.small { min-height: 38px; padding: 4px 12px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; }
.btn-row { display: flex; gap: 12px; margin-top: 18px; }
.btn-row .grow { flex: 1; }
/* the save button stays visible at the bottom of long forms */
.btn-row.sticky {
  position: sticky; bottom: -18px; z-index: 2;
  margin: 18px -16px -18px; padding: 12px 16px 18px;
  background: var(--win-bot); box-shadow: inset 0 3px 0 var(--line);
}
.btn-col { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.link { border: 0; background: none; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; padding: 10px; font-size: 15px; }
.link.block { display: block; margin: 6px auto 0; }
.icon-btn {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px;
  border: 2px solid transparent; background: none; color: var(--text); font-size: 16px;
}
.icon-btn:active { border-color: var(--gold); }
.icon-btn:disabled { opacity: 0.25; }

.field { margin-top: 16px; }
.label { display: block; margin-bottom: 6px; font: 10px/1.5 var(--font-title); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.label small { font: 13px var(--font); text-transform: none; letter-spacing: 0; color: var(--dim); }
.text {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px;
  background: var(--field); color: var(--text);
  border: 2px solid var(--dim); border-radius: 0;
  font-size: 17px; /* ≥ 16px: iOS does not zoom in */
  -webkit-appearance: none; appearance: none;
}
.text:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--ink); }
.text::placeholder { color: var(--dim); opacity: 0.7; }
textarea.text { resize: vertical; min-height: 80px; }
.text.date, .text.time { text-align: left; }
.text.date::-webkit-date-and-time-value, .text.time::-webkit-date-and-time-value { text-align: left; }
.text.year { max-width: 150px; }
.with-btn { display: flex; gap: 8px; align-items: center; }
.with-btn .text { max-width: 170px; }
.form-error { margin: 14px 0 0; padding: 8px 10px; border: 2px solid var(--red); color: var(--text); background: rgb(226 72 61 / 0.18); }

.check { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; cursor: pointer; }
.check input {
  flex: none; width: 26px; height: 26px; margin: 0; appearance: none; -webkit-appearance: none;
  border: 2px solid var(--win-border); background: var(--field); box-shadow: 0 0 0 2px var(--ink);
  display: grid; place-items: center;
}
.check input:checked { background: var(--gold); }
.check input:checked::after { content: '✓'; color: var(--ink); font-size: 18px; line-height: 1; }
.check span { display: flex; flex-direction: column; }
.check small { color: var(--dim); font-size: 14px; }

.chip {
  min-height: 38px; padding: 4px 12px; border: 2px solid var(--dim); background: none; color: var(--text); font-size: 15px;
}
.chip.on { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.quick-dates { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }

.seg { display: flex; border: 2px solid var(--dim); background: var(--field); }
.seg button { flex: 1; min-height: 42px; padding: 4px 6px; border: 0; background: none; color: var(--text); font-size: 15px; }
.seg button + button { box-shadow: inset 2px 0 0 var(--line); }
.seg button.on { background: var(--gold); color: var(--ink); }

/* category picker in the quest form */
.cat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cat-chip {
  display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 6px 8px;
  border: 2px solid var(--line); border-left: 5px solid var(--cat); background: var(--field); text-align: left; font-size: 15px;
}
.cat-chip span { overflow-wrap: anywhere; line-height: 1.2; }
.cat-chip.on { border-color: var(--gold); border-left-color: var(--cat); background: var(--sel); box-shadow: 0 0 0 2px var(--ink); }

/* ---------- dialog windows ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.backdrop { position: absolute; inset: 0; background: rgb(13 15 31 / 0.6); opacity: 0; transition: opacity 0.18s steps(3); }
.sheet {
  position: absolute; left: 8px; right: 8px; bottom: calc(8px + var(--safe-bottom));
  max-width: 544px; margin: 0 auto;
  max-height: calc(100% - var(--safe-top) - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 16px 18px;
  transform: translateY(110%); transition: transform 0.2s steps(5);
}
.sheet-wrap.open { pointer-events: auto; }
.sheet-wrap.open .backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.win-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -4px -6px 0 0; }
.win-title { margin: 0; font: 13px/1.5 var(--font-title); color: var(--gold); text-shadow: 2px 2px 0 var(--ink); }
.confirm .win-title { margin-bottom: 8px; }
.occ-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 8px 10px; border: 2px dashed var(--line); font-size: 15px;
}
.occ-bar.done { color: var(--green); }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 12px; right: 12px; top: calc(var(--safe-top) + 10px); z-index: 80;
  display: flex; justify-content: center; pointer-events: none;
  transform: translateY(-160%); transition: transform 0.18s steps(4);
}
#toast.show { transform: none; }
.toast { display: flex; align-items: center; gap: 14px; padding: 10px 14px; pointer-events: auto; max-width: 520px; font-size: 16px; }
.toast .link { padding: 4px; }

/* ---------- tab bar and + ---------- */
.tabbar {
  position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(var(--safe-bottom) + 8px);
  max-width: 540px; margin: 0 auto; height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--dim); text-decoration: none; font-size: 12px;
}
.tabbar a .pxi { opacity: 0.55; filter: saturate(0.4); }
.tabbar a.on { color: var(--gold); }
.tabbar a.on .pxi { opacity: 1; filter: none; }
.tab-cursor { position: absolute; left: 4px; top: 50%; transform: translateY(-60%); font-size: 11px; color: var(--gold); visibility: hidden; }
.tabbar a.on .tab-cursor { visibility: visible; animation: blink 1s steps(1) infinite; }
.tab-label { line-height: 1; }

.fab {
  position: fixed; z-index: 31; right: 18px; bottom: calc(var(--safe-bottom) + var(--tabbar-h) + 26px);
  width: 62px; height: 62px; padding: 0 0 4px;
  background: var(--gold); color: var(--ink);
  border: 3px solid var(--cream); box-shadow: 0 0 0 3px var(--ink), 5px 5px 0 3px var(--shadow);
  font: 30px/1 var(--font-title);
}
.fab:active { transform: translate(3px, 3px); box-shadow: 0 0 0 3px var(--ink), 2px 2px 0 3px var(--shadow); }
@media (min-width: 600px) { .fab { right: calc(50% - 270px + 8px); } }

/* ---------- sync badge ---------- */
.sync-badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 2px 10px;
  border: 2px solid var(--line); background: var(--field); color: var(--dim); font-size: 13px; white-space: nowrap;
}
.sync-badge .dot { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 0 1px var(--ink); }
.sync-badge.busy .dot { background: var(--gold); animation: blink 0.6s steps(1) infinite; }
.sync-badge.warn { color: var(--orange); border-color: var(--orange); }
.sync-badge.warn .dot { background: var(--orange); }

/* ---------- month ---------- */
.cal { padding: 10px 10px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-title { margin: 0; font: 12px/1.4 var(--font-title); color: var(--gold); text-shadow: 2px 2px 0 var(--ink); text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid.wd span { text-align: center; font-size: 13px; color: var(--dim); padding: 4px 0; }
.day {
  position: relative; aspect-ratio: 1 / 1.08; padding: 3px 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  border: 2px solid transparent; background: var(--field); color: var(--text); font-size: 15px;
}
.day.pad { background: none; }
.day.past .num { color: var(--dim); }
.day.is-today { border-color: var(--gold); }
.day.is-today .num { color: var(--gold); }
.day.sel { background: var(--sel); border-color: var(--win-border); box-shadow: 0 0 0 2px var(--ink); }
.dots { display: flex; gap: 2px; height: 10px; align-items: center; margin-bottom: 4px; }
.dots i { width: 6px; height: 6px; box-shadow: 0 0 0 1px var(--ink); }
.dots b { font-size: 10px; line-height: 1; color: var(--dim); }

/* ---------- archive ---------- */
.exp { display: flex; justify-content: space-between; margin: 0 2px 14px; padding: 10px 12px; border: 2px dashed var(--line); color: var(--dim); }
.exp b { color: var(--gold); font: 13px/1.6 var(--font-title); text-shadow: 1px 1px 0 var(--ink); }
.archive-tools { display: flex; flex-direction: column; gap: 10px; }
.search { min-height: 44px; }

/* ---------- settings ---------- */
.pad { padding: 4px 14px 16px; }
.pad > .dim { margin: 12px 0 0; font-size: 15px; }
.cat-row { grid-template-columns: 1fr auto; padding: 4px 6px 4px 0; }
.cat-open { display: flex; align-items: center; gap: 12px; padding: 8px 6px 8px 10px; border: 0; background: none; text-align: left; min-height: 56px; }
.order { display: flex; }
.list-add { width: 100%; min-height: 54px; border: 0; box-shadow: inset 0 2px 0 var(--line); background: none; color: var(--gold); font-size: 16px; }
.cat-preview { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 10px; border: 2px dashed var(--line); font-size: 18px; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; }
.icon-pick button { display: grid; place-items: center; height: 50px; border: 2px solid var(--line); background: var(--field); }
.icon-pick button.on { border-color: var(--gold); background: var(--sel); box-shadow: 0 0 0 2px var(--ink); }
.color-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.color-pick button { width: 40px; height: 40px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--shadow); }
.color-pick button.on { outline: 3px solid var(--win-border); outline-offset: 2px; }

/* ---------- login ---------- */
.login {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  padding: calc(var(--safe-top) + 20px) 18px calc(var(--safe-bottom) + 20px);
  background: var(--bg);
}
.login.leaving { opacity: 0; transition: opacity 0.25s steps(4); }
.login-card { width: 100%; max-width: 380px; padding: 26px 20px 22px; text-align: center; }
.login-art { display: flex; justify-content: center; margin-bottom: 16px; animation: bob 1.6s steps(2) infinite; }
.login-card .dim { margin: 10px 0 20px; }
.login-form { text-align: left; }
.login-form .label { line-height: 1.8; text-transform: none; font-size: 10px; }
.login-form .btn { margin-top: 16px; }

/* ---------- quest complete! ---------- */
.celebrate {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px;
  background: rgb(13 15 31 / 0.55); pointer-events: none;
}
.celebrate-win { position: relative; padding: 22px 26px; text-align: center; animation: pop 0.3s steps(4) both; max-width: 340px; }
.celebrate-title { font: 18px/1.6 var(--font-title); color: var(--gold); text-shadow: 3px 3px 0 var(--ink); }
.celebrate-sub { margin-top: 10px; color: var(--text); overflow-wrap: anywhere; }
.celebrate.out { opacity: 0; transition: opacity 0.3s steps(3); }
@keyframes pop { from { transform: scale(0.3, 0.1); } to { transform: none; } }
.spark {
  position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px;
  background: var(--gold); box-shadow: 0 0 0 2px var(--ink);
  animation: spark 0.9s steps(6) 0.15s both;
}
.spark:nth-child(3n) { background: var(--cream); }
.spark:nth-child(3n + 1) { background: var(--pink); }
@keyframes spark {
  from { transform: rotate(var(--a)) translateX(0); opacity: 1; }
  to { transform: rotate(var(--a)) translateX(calc(var(--d) + 60px)); opacity: 0; }
}

.splash { min-height: 60vh; }

/* ---------- small phones ---------- */
@media (max-width: 380px) {
  .hero-title { font-size: 21px; }
  .cat-pick { grid-template-columns: 1fr 1fr; }
  .seg button { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .quest.today .cursor, .tabbar a.on .tab-cursor { visibility: visible; }
}
