/* Flow — colours sampled from MetaLab's 2011 demo video and 2012 press-kit screenshots. */

:root {
  --font: "Lucida Grande", "Lucida Sans Unicode", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --side-w: 220px;
  --top-h: 40px;
  --row-h: 38px;

  --bar-hi: #7f9cd6;
  --bar-top: #5f7db7;
  --bar-bot: #274279;
  --bar-edge: #000;

  --side-bg: #e2e9f1;
  --side-line: #d3d9e1;
  --side-hi: #edf6ff;
  --side-text: #000;
  --side-muted: #8694a3;

  --sheet-line: #ececec;
  --empty-bg: #d4dde6;
  --text: #444;
  --muted: #777;

  --sel-top: #58b2fc;
  --sel-bot: #0662e8;
  --sel-edge: #0359d9;

  --red: #ff0000;
  --gold: #f9c700;
  --done-bg: #f9f9f9;
  --done-ink: #ccc;
  --swing: cubic-bezier(.37, 0, .63, 1); /* jQuery's default "swing" easing (a sine in-out) */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 13px/1.3 var(--font);
  color: var(--text);
  background: var(--empty-bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; }
input, textarea { font: inherit; color: inherit; }
svg { display: block; }
.app { display: flex; flex-direction: column; height: 100vh; }
.body { flex: 1; display: flex; min-height: 0; }

/* ---------------------------------------------------------------- top bar */

.topbar {
  height: var(--top-h);
  flex: none;
  display: flex;
  position: relative;
  z-index: 5;
  background: linear-gradient(var(--bar-top), var(--bar-bot));
  border-bottom: 1px solid var(--bar-edge);
  box-shadow: inset 0 1px 0 var(--bar-hi), 0 1px 3px rgba(0, 0, 0, .2);
}
.topbar-left {
  width: var(--side-w);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 10px;
  border-right: 1px solid rgba(10, 25, 55, .55);
  box-shadow: 1px 0 0 rgba(255, 255, 255, .12);
}
.topbar-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 12px;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 6px 0 2px;
  border-radius: 5px;
  color: #fff;
}
.brand:active, .brand.open { background: rgba(0, 0, 0, .18); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.brand-cloud { width: 30px; height: 21px; filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, .25)); }
.brand-name { font-weight: bold; font-size: 17px; letter-spacing: -.2px; text-shadow: 0 -1px 0 rgba(0, 0, 0, .45); }
.brand-caret { width: 8px; height: 8px; opacity: .85; margin-top: 2px; }

.tools { display: flex; gap: 6px; }
.tbtn {
  width: 34px;
  height: 27px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(#3f5d95, #2a4677 50%, #233e6d 51%, #2a4678);
  border: 1px solid #13254a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 0 rgba(255, 255, 255, .14);
}
.tbtn svg { width: 18px; height: 18px; filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, .45)); }
.tbtn:active:not(:disabled), .tbtn.open {
  background: linear-gradient(#1d3159, #2a4678);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .14);
}
.tbtn.lit { color: #7fdcff; } /* the "lit" glyph while its popover is open */
.tbtn:disabled { color: #273759; background: linear-gradient(#4a669d, #3d5990); border-color: #2c4373; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.tbtn:disabled svg { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .15)); }
.tbtn-compose { width: 36px; }

.search {
  position: relative;
  display: flex;
  align-items: center;
  height: 24px;
  width: 210px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .2);
  padding: 0 10px 0 25px;
  color: #8d939c;
}
.search svg { position: absolute; left: 9px; width: 12px; height: 12px; }
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: none;
  font-size: 12px;
  color: #222;
  -webkit-appearance: none;
}
.search input::placeholder { color: #a2a7ae; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search:focus-within { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45), 0 0 0 3px rgba(122, 178, 255, .75); }

/* ---------------------------------------------------------------- sidebar */

.sidebar {
  width: var(--side-w);
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--side-bg);
  border-right: 1px solid #a9b4c3;
  min-height: 0;
}
.side-head {
  height: 21px;
  line-height: 21px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .2px;
  color: var(--side-muted);
  text-shadow: 0 1px 0 #fff;
  background: linear-gradient(#edf3fb, #d0d9e5);
  box-shadow: inset 0 1px 0 #fafdff;
  border-bottom: 1px solid #b3bac4;
}
.focus { list-style: none; margin: 0; padding: 0; }
.side-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 29px;
  padding: 0 8px 0 10px;
  color: var(--side-text);
  border-bottom: 1px solid var(--side-line);
  box-shadow: inset 0 1px 0 var(--side-hi);
  white-space: nowrap;
}
.side-row .ico { width: 16px; height: 16px; flex: none; }
.side-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.side-row.active {
  color: #fff;
  font-weight: bold;
  text-shadow: 0 -1px 0 rgba(40, 60, 100, .6);
  background: linear-gradient(#a5b6d5, #768fbe);
  border-bottom-color: #6b7a99;
  box-shadow: inset 0 1px 0 #b3c5e5, 0 -1px 0 #889bc2;
}
/* drop targets: a 2px blue outline over a pale blue fill */
.side-row.drop-target, .item.drop-target, .folder.drop-target {
  background: #c6daf2;
  box-shadow: inset 0 0 0 2px #187bf2;
  border-radius: 4px;
}
.badge {
  min-width: 22px;
  height: 16px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: bold;
  line-height: 16px;
  text-align: center;
  color: #fff;
  text-shadow: none;
  background: #95a7c8;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1);
}
.badge.hot { background: #df302b; }
.side-row.active .badge { background: #fff; color: #53668a; box-shadow: none; }
.badge.bump { animation: bump .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.25); } }

.tabs {
  display: flex;
  height: 23px;
  border-top: 1px solid #b7c0cd;
  border-bottom: 1px solid #b7c0cd;
  background: linear-gradient(#e3e7ee, #d3d9e2);
}
.tab {
  flex: 1;
  font-size: 10.5px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #a2a9b1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
  border-right: 1px solid #b7c0cd;
}
.tab:last-child { border-right: 0; }
.tab.active { color: #747d85; background: linear-gradient(#fbfdff, #edf1f6); box-shadow: inset 0 1px 0 #fff; }
.tab.drop-hover { background: #c6daf2; box-shadow: inset 0 0 0 2px #187bf2; }

.side-search { padding: 6px 7px; border-bottom: 1px solid #cdd5e0; background: #e9eef4; }
.search-light {
  width: 100%;
  height: 21px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .22), 0 1px 0 #fff;
  border: 1px solid #b5bfcc;
}
.search-light:focus-within { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .22), 0 0 0 3px rgba(122, 178, 255, .6); }

.side-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 0 12px; }
.folder {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 8px 0 7px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .2px;
  color: var(--side-muted);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}
.folder .tri { width: 8px; height: 8px; transition: transform .15s; }
.folder.collapsed .tri { transform: rotate(-90deg); }
.item {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 21px;
  padding: 0 8px 0 18px;
  font-size: 12px;
  color: var(--side-text);
  white-space: nowrap;
}
.item.top-level { padding-left: 10px; }
.item .ico { width: 15px; height: 15px; flex: none; }
.item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.item .n { font-size: 11px; color: #96a1b1; }
.item.active {
  color: #fff;
  font-weight: bold;
  text-shadow: 0 -1px 0 rgba(40, 60, 100, .55);
  background: linear-gradient(#a5b6d5, #768fbe);
  box-shadow: inset 0 1px 0 #b3c5e5, 0 1px 0 #6b7a99;
}
.item.active .n { color: #eef3fb; }
.item input.rename {
  flex: 1;
  height: 18px;
  font-size: 12px;
  border: 1px solid #6f95cf;
  border-radius: 2px;
  padding: 0 3px;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(122, 178, 255, .6);
  background: #fff;
}
.side-empty { padding: 14px 12px; color: #8995a6; font-size: 11px; text-align: center; line-height: 1.5; }

.side-foot {
  height: 26px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  border-top: 1px solid #aeb8c6;
  background: linear-gradient(#eef1f5, #d4dae3);
  box-shadow: inset 0 1px 0 #fff;
}
.foot-btn {
  width: 24px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #5d6878;
  border-radius: 3px;
}
.foot-btn svg { width: 12px; height: 12px; }
.foot-btn:active, .foot-btn.open { background: rgba(0, 0, 0, .1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); }
.side-count { margin-left: auto; padding-right: 6px; font-size: 10.5px; color: #8b95a4; }

/* ---------------------------------------------------------------- tasks */

.content { flex: 1; min-width: 0; position: relative; }
.task-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background-color: var(--empty-bg);
  /* the faint grain on the empty area */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .35 0 0 0 0 .45 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sheet { background: #fff; box-shadow: 0 1px 0 #c5ced8, 0 2px 4px rgba(40, 60, 90, .08); }
.sheet:empty { display: none; }

.group {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 12px 0 7px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .2px;
  color: #777;
  text-shadow: 0 1px 0 #fff;
  background: linear-gradient(#fff, #e2e2e2 80%, #efefef);
  border-top: 1px solid #d0d0d0;
  border-bottom: 1px solid #b7b7b7;
  margin-top: -1px;
  position: sticky;
  top: 0;
  z-index: 2;
}
.group:first-child { border-top-color: transparent; }
.group .tri { width: 8px; height: 8px; color: #8f949b; transition: transform .15s; }
.group.collapsed .tri { transform: rotate(-90deg); }
.group .gn { margin-left: auto; font-weight: normal; color: #999; }
.group.drop-target { background: #c6daf2; box-shadow: inset 0 0 0 2px #187bf2; }
.group .tri { color: #888; }

.row {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--row-h);
  padding: 0 10px 0 4px;
  background: #fff;
  border-bottom: 1px solid var(--sheet-line);
  white-space: nowrap;
}
.row .grip { width: 4px; height: 12px; color: #ccc; margin-right: 6px; flex: none; }
.row.unsortable .grip { visibility: hidden; } /* the grip means "you can drag-sort this list" */
.row .body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; overflow: hidden; }
.row .title { overflow: hidden; text-overflow: ellipsis; }
.row .prefix { font-weight: bold; }
.row .prefix:hover { text-decoration: underline; }
.row .meta { display: flex; align-items: center; gap: 8px; margin-left: 10px; flex: none; }
.row .due { font-size: 12px; color: var(--muted); min-width: 0; }
.row .due.overdue { color: var(--red); }
.row .due.today { color: var(--gold); }
.row .note-ico { width: 12px; height: 12px; color: #bbb; flex: none; margin-left: -2px; }
.row .icons { display: flex; align-items: center; gap: 9px; color: #e5e5e5; }
.row .icons svg { width: 13px; height: 13px; }
.row .icons .is-flagged { color: #ee7a12; }

.pill {
  display: inline-block;
  height: 17px;
  line-height: 15px;
  padding: 0 7px;
  border-radius: 9px;
  font-size: 11px;
  color: #333;
  background: linear-gradient(#d2e6fd, #c9e0fc);
  border: 1px solid #70acf5;
  flex: none;
}
.pill + .pill { margin-left: -4px; }

/* hover action pill: edit / delete / notes / flag */
.actions {
  display: none;
  align-items: stretch;
  height: 22px;
  border-radius: 11px;
  background: linear-gradient(#fff, #e3e6ea);
  border: 1px solid #aeb5bf;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
  overflow: hidden;
}
.actions button { width: 25px; display: grid; place-items: center; color: #6d7480; border-right: 1px solid #c6ccd4; }
.actions button:last-child { border-right: 0; }
.actions button:active { background: linear-gradient(#d6dbe1, #eceff2); }
.actions button.on { color: #ee7a12; }
.actions svg { width: 12px; height: 12px; }
.row:hover .actions { display: flex; }
.row:hover .icons { display: none; }
body.dragging .row:hover .actions { display: none; }
body.dragging .row:hover .icons { display: flex; }

/* selection — the classic source-list blue */
.row.selected {
  color: #fff;
  background: linear-gradient(var(--sel-top), var(--sel-bot));
  border-bottom-color: var(--sel-edge);
  box-shadow: 0 -1px 0 var(--sel-edge);
  text-shadow: 0 -1px 0 rgba(0, 40, 120, .35);
  z-index: 1;
}
.row.selected .grip { color: rgba(255, 255, 255, .5); }
.row.selected .due, .row.selected .due.overdue, .row.selected .due.today { color: #fff; }
.row.selected .icons { color: rgba(255, 255, 255, .45); }
.row.selected .icons .is-flagged { color: #ffc07a; }
.row.selected .note-ico { color: rgba(255, 255, 255, .6); }
.row.selected .pill { color: #fff; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); text-shadow: none; }

/* while dragging, the rows being moved leave empty grey slots behind */
.row.ghosted { background: #f0f0f0; border-bottom-color: #bbb; box-shadow: none; }
.row.ghosted > * { visibility: hidden; }

/* ---------------------------------------------------------------- the checkbox */
/* Rebuilt from Flow for Mac's CheckBox*.png assets: a 16px box with a two-part
   gloss (hard split at the middle), yellow when due today, red when overdue,
   and, once done, a flat grey outline with an oversized grey check. */

.check {
  cursor: pointer;
  position: relative;
  width: 26px;
  height: 26px;
  margin-right: 4px;
  flex: none;
  display: grid;
  place-items: center;
}
.check .box {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid #aaa;
  border-bottom-color: #727272;
  background: linear-gradient(#f7f7f7, #f5f5f5 50%, #ebebeb 50%, #e0e0e0);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .18s cubic-bezier(.3, 1.5, .6, 1);
}
.check .box.today {
  border-color: #cbc225;
  border-bottom-color: #a49b07;
  background: linear-gradient(#f9f7e0, #fcf7a7 50%, #fef12f 50%, #eedf00);
  box-shadow: inset 0 1px 0 #fffdf0, 0 1px 0 rgba(255, 255, 255, .9);
}
.check .box.overdue {
  border-color: #eb6767;
  border-bottom-color: #a64949;
  background: linear-gradient(#ffcccc, #ffaaaa 50%, #ff9595 50%, #ff7777);
  box-shadow: inset 0 1px 0 #ffe6e6, 0 1px 0 rgba(255, 255, 255, .9);
}
.row.selected .check .box { border-color: #1e4c90; }

/* the stamp: Flow's finished artwork, laid over the box */
.check .stamp {
  position: absolute;
  inset: 0;
  width: 26px;
  height: 26px;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
}
.check .stamp .outline { fill: none; stroke: var(--done-ink); stroke-width: 1; }
.check .stamp path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.check .stamp .halo { stroke: var(--row-bg, #fff); stroke-width: 6.4; }
.check .stamp .tick { stroke: var(--done-ink); stroke-width: 3; }

/* done: the glossy box gives way to the flat stamp; the row goes pale */
.row.done { --row-bg: var(--done-bg); background: var(--done-bg); }
.row.done .check .box { opacity: 0; }
.row.done .check .stamp { opacity: 1; }
.row.done .title-text, .row.done .prefix { color: var(--done-ink); }
.row.done .due { color: var(--muted); }
.row.done .due, .row.done .pill, .row.done .note-ico { opacity: .45; }
.row.selected { --row-bg: #2f8af4; }
.row.selected.done { background: linear-gradient(var(--sel-top), var(--sel-bot)); }
.row.selected.done .check .stamp .outline { stroke: rgba(255, 255, 255, .7); }
.row.selected.done .check .stamp .tick { stroke: rgba(255, 255, 255, .85); }
.row.selected.done .title-text, .row.selected.done .prefix { color: rgba(255, 255, 255, .7); }

/* The moment. Flow's 2012 video shows the finished box-and-check landing on
   the box from 1.75x (measured 1.71, 1.66, 1.57, 1.40, 1.31, 1.22, 1.09,
   1.00 at 30fps). This keeps that stamp and smooths it out:
   - the stamp fades in as it falls, instead of popping in at full strength
   - a soft shadow lifts it off the page, then flattens as it lands
   - it decelerates on a longer, gentler curve
   - the glossy box sinks away underneath it
   - the title and row ease to grey instead of snapping
   Keyframes and transitions only run on the row the user just checked. */
.row.animating .check { z-index: 2; }
.row.animating .check .stamp { animation: stamp-in .38s cubic-bezier(.3, 0, .15, 1) var(--d, 0ms) both; }
.row.animating .check .box { animation: box-out .18s ease-out var(--d, 0ms) both; }
@keyframes stamp-in {
  0% { transform: scale(1.75); opacity: 0; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .18)); }
  28% { opacity: 1; }
  100% { transform: none; opacity: 1; filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); }
}
@keyframes box-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.86); } }
.row.animating { transition: background-color .28s ease-out var(--d, 0ms); }
.row.animating .title-text, .row.animating .prefix { transition: color .28s ease-out calc(var(--d, 0ms) + 40ms); }
.row.animating .due, .row.animating .pill, .row.animating .note-ico { transition: opacity .28s ease-out calc(var(--d, 0ms) + 40ms), color .28s ease-out; }

/* Flow's slide-up: the row closes from the bottom up, fast at first and then
   settling (the video's rows had risen 14%, 47%, 72%, 89%, 95%, 98% by each
   33ms frame). Its contents stay where they are and get clipped (tasks.js
   pins them in place), fading as they go for a smoother exit. */
.leaving {
  transition: height .26s cubic-bezier(.25, .1, .25, 1), border-color .26s, background-color .26s;
  height: 0 !important;
  align-items: flex-start;
  border-bottom-color: transparent;
  overflow: hidden;
}
.leaving > * { transition: opacity .2s ease-out; opacity: 0; }

/* ---------------------------------------------------------------- quick task bar */

.quick {
  display: flex;
  align-items: center;
  height: var(--row-h);
  padding: 0 10px 0 16px;
  gap: 8px;
  background: linear-gradient(#fdfdfd, #f8f8f8 50%, #eaeaea 52%, #f5f5f5);
  border-bottom: 1px solid #c5ced7;
  color: #99999d;
}
.quick .plus { width: 12px; height: 12px; color: #a3a3a7; flex: none; }
.quick input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font-size: 13px;
  color: var(--text);
  height: 100%;
  -webkit-user-select: text;
  user-select: text;
}
.quick input::placeholder { color: #99999d; font-weight: bold; }
.quick:focus-within {
  background: #fff;
  box-shadow: inset 0 0 0 2px #8fb7f0, inset 0 0 0 3px #d8e7fd;
  border-radius: 2px;
}
.quick .kbd-hint { font-size: 11px; color: #b0b0b4; letter-spacing: 2px; flex: none; }
.quick:focus-within .kbd-hint, .quick.has-text .kbd-hint { display: none; }
.quick .hint { display: flex; gap: 5px; align-items: center; flex: none; font-size: 11px; }
.quick .hint .chip {
  height: 17px;
  line-height: 15px;
  padding: 0 7px;
  border-radius: 9px;
  border: 1px solid #c5cdd8;
  background: #f3f6f9;
  color: #5e6b7d;
}
.quick .hint .chip.due { color: #7a5f00; border-color: #e6d27c; background: #fffbe0; }
.quick .hint .chip.list { color: #333; border-color: #b5d4fa; background: #cde2fc; }
.quick .clear { width: 16px; height: 16px; border-radius: 50%; color: #fff; background: #b9bfc8; display: none; place-items: center; }
.quick .clear svg { width: 10px; height: 10px; }
.quick.has-text .clear { display: grid; }

.below { padding: 14px 18px 60px; }
.show-done {
  font-size: 11.5px;
  font-weight: bold;
  color: #8693a5;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
.show-done:hover { color: #5b6b82; text-decoration: underline; }
.done-sheet { margin: 10px -18px 0; background: #fff; box-shadow: 0 1px 0 #c5ced8; }
.done-sheet .row { color: #9a9ea4; }

.empty-state {
  margin: 70px auto 0;
  width: 310px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 4px;
  background: linear-gradient(#f1f4f7, #e2e7ed);
  border: 1px solid #b9c2cd;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .06);
  color: #6b7686;
  font-size: 11.5px;
  line-height: 1.45;
}
.empty-state svg { width: 40px; height: 40px; flex: none; }
.empty-state b { display: block; color: #3d4756; font-size: 12.5px; margin-bottom: 2px; }

/* drag & drop */
.insert-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  margin-top: -2px;
  background: #3f86e8;
  border-top: 1px solid #1552a3;
  border-bottom: 1px solid #1c549f;
  pointer-events: none;
  z-index: 4;
}
.insert-line .n {
  position: absolute;
  left: 2px;
  top: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 4px;
  font: bold 11px/15px var(--font);
  color: #fff;
  text-align: center;
  background: linear-gradient(#3d86ea, #1552a3);
  border: 1px solid #0f3f84;
}
/* the drag image: a little page with a blue check and an orange count */
.drag-ghost {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  width: 26px;
  height: 32px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.drag-ghost svg { width: 26px; height: 32px; }
.drag-ghost .count {
  position: absolute;
  right: -10px;
  bottom: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: linear-gradient(#ffa33a, #ea6a06);
  border: 2px solid #fff;
  color: #fff;
  font: bold 11px/16px var(--font);
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
body.dragging, body.dragging * { cursor: default !important; }

/* ---------------------------------------------------------------- popovers & menus */

#layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
#layer > * { pointer-events: auto; }
.scrim { position: fixed; inset: 0; }

.menu {
  position: fixed;
  min-width: 170px;
  padding: 4px 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(0, 0, 0, .25);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .28);
  font-size: 12.5px;
  animation: fadein .12s ease-out;
}
@keyframes fadein { from { opacity: 0; transform: translateY(-3px); } }
.menu .mh { padding: 5px 14px 2px 20px; font-size: 10.5px; font-weight: bold; text-transform: uppercase; color: #9a9fa6; }
.menu .mi {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 21px;
  padding: 0 16px 0 20px;
  text-align: left;
  position: relative;
  white-space: nowrap;
}
.menu .mi .tick { position: absolute; left: 6px; font-size: 11px; }
.menu .mi .key { margin-left: auto; padding-left: 24px; color: #9aa0a8; font-size: 11.5px; }
.menu .mi:hover, .menu .mi.hot { color: #fff; background: linear-gradient(#5a95f5, #2f6ee6); }
.menu .mi:hover .key, .menu .mi.hot .key { color: #e3ecfb; }
.menu .mi.danger { color: #c4271d; }
.menu .mi.danger:hover { color: #fff; }
.menu .mi:disabled { color: #b8bcc2; background: none; }
.menu .sep { height: 1px; margin: 4px 0; background: #e2e4e8; }

/* The New Task / Edit Task popover, after Flow for Mac's 2012 task form: a
   white card hanging from a nub, a pale header with a light Cancel button,
   a dark title, a gear menu and a glossy blue Save; white rows with grey
   icons; chosen values as blue tokens with a grey ⊗. Lucida Grande. */
.pop {
  font-family: var(--font);
  position: fixed;
  width: 352px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 35, 55, .32), 0 12px 34px rgba(10, 25, 50, .32), 0 2px 6px rgba(10, 25, 50, .12);
  animation: popin .16s cubic-bezier(.2, 1.2, .4, 1);
  transform-origin: var(--ox, 50%) 0;
}
@keyframes popin { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
.pop.closing { animation: popout .12s ease-in forwards; }
@keyframes popout { to { opacity: 0; transform: scale(.96) translateY(-3px); } }
.pop .arrow {
  position: absolute;
  top: -10px;
  left: var(--ax, 50%);
  width: 22px;
  height: 11px;
  margin-left: -11px;
  overflow: hidden;
  z-index: 1;
}
.pop .arrow::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 35, 55, .32);
}
.pop.below-anchor .arrow { top: auto; bottom: -10px; transform: rotate(180deg); }
.pop.below-anchor .arrow::before { background: #eef1f5; }

.pop-head { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.pop-title { color: #fff; font-weight: bold; font-size: 15.5px; text-shadow: 0 -1px 0 #000; } /* (preferences sheet) */
.pop .pop-head {
  position: relative;
  justify-content: flex-start;
  gap: 8px;
  height: 40px;
  padding: 0 8px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(#fff, #f3f5f9 45%, #e3e9f1);
  border-bottom: 1px solid #c6cdd7;
}
.pop .pop-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  font-size: 15px;
  font-weight: bold;
  color: #484c53;
  text-shadow: 0 1px 0 #fff;
}

/* bar buttons. Unscoped: the preferences sheet's dark iPad style. */
.pbtn {
  height: 25px;
  min-width: 54px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .55);
  border: 1px solid #000;
  background: linear-gradient(#727272, #4b4b4b 4%, #3e3e3e 50%, #1a1a1a 51%, #121212);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 0 rgba(255, 255, 255, .12);
}
.pbtn.primary { background: linear-gradient(#84c9ff, #5db5ff 4%, #3297ff 50%, #0061fa 51%, #0053f5); }
.pbtn:active { filter: brightness(.85); }
.pbtn:disabled { opacity: .5; }
.pop .pbtn {
  position: relative; /* above the centred title */
  height: 25px;
  min-width: 56px;
  padding: 0 10px;
  border-radius: 4px;
  font: 12.5px var(--font);
  color: #2c2f34;
  text-shadow: 0 1px 0 #fff;
  border: 1px solid #8e97a4;
  border-bottom-color: #747d8a;
  background: linear-gradient(#fff, #f6f8fa 50%, #eaeef2 51%, #e2e7ec);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(255, 255, 255, .8);
}
.pop .pbtn.primary {
  font-weight: bold;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 30, 110, .5);
  border-color: #1a5bd0;
  border-bottom-color: #0b2f86;
  background: linear-gradient(#62bcff, #3b9eff 50%, #1b6cff 51%, #0a50f2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 0 rgba(255, 255, 255, .8);
}
.pop .pbtn:active { filter: brightness(.92); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25); }
.pop-gear {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 25px;
  padding: 0 5px;
  border-radius: 4px;
  color: #8c929b;
  filter: drop-shadow(0 1px 0 #fff);
}
.pop-gear svg { width: 15px; height: 15px; }
.pop-gear .gear-caret { width: 7px; height: 7px; }
.pop-gear:hover, .pop-gear.open { color: #5d636c; }
.pop-gear:active, .pop-gear.open { background: rgba(0, 0, 0, .06); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15); }
.pop-menu { position: absolute; z-index: 7; min-width: 170px; }

.pop-body { border-radius: 0 0 6px 6px; overflow: hidden; background: #fff; }
.pf {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-bottom: 1px solid #e3e3e3;
  color: #b2b7be;
  position: relative;
}
.pf .fi { width: 15px; height: 15px; flex: none; color: #cdcdcd; }
.pf input, .pf textarea {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font: 13px var(--font);
  color: #1f2226;
  padding: 0;
  min-width: 40px;
  user-select: text;
  -webkit-user-select: text;
}
.pf input::placeholder, .pf textarea::placeholder { color: #b2b7be; }
.pf.title-field { min-height: 38px; background: #fff; }
.pf.title-field input { font-size: 13.5px; color: #111; }
/* the dotted box: a task that doesn't exist yet */
.new-check { width: 16px; height: 16px; flex: none; overflow: visible; }
.new-check rect { fill: none; stroke: #2389f1; stroke-width: 1.9; stroke-dasharray: 2.4 1.9; stroke-linecap: round; }
.pf .aside { font-size: 11.5px; color: #8b929b; white-space: nowrap; }
.pf .aside.bad { color: #c4271d; }
.pf .toggle { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; color: #b2b7be; font: 13px var(--font); }
.pf .toggle.on { color: #e2531a; }
.pf .toggle.on .fi { color: #ee7a12; }
.pf.tags-field { flex-wrap: wrap; row-gap: 5px; padding-top: 6px; padding-bottom: 6px; }
.pf.tags-field .fi { align-self: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 4px 0 8px;
  border-radius: 10px;
  font-size: 12px;
  color: #333;
  background: linear-gradient(#d9eafd, #c6defb);
  border: 1px solid #8fbcf3;
  white-space: nowrap;
}
.chip button { width: 13px; height: 13px; border-radius: 50%; background: #9db3cf; display: grid; place-items: center; color: #fff; }
.chip button svg { width: 9px; height: 9px; }
/* tokens in the task form: pale blue pills with a grey ⊗ inside */
.pop .chip {
  gap: 5px;
  height: 22px;
  padding: 0 3px 0 10px;
  border-radius: 11px;
  font-size: 12.5px;
  color: #26313f;
  background: linear-gradient(#e6f2fe, #cfe4fc 55%, #c3dcfa);
  border: 1px solid #7ea6d8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}
.pop .chip button { width: 15px; height: 15px; background: #8794a7; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .15); }
.pop .chip button:hover { background: #6c7a8e; }
.pop .chip button svg { width: 9px; height: 9px; }
.pop-foot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 25px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: bold;
  color: #6a717b;
  background: linear-gradient(#fafbfc, #eef1f5);
  border-top: 1px solid #dfe3e8;
  text-shadow: 0 1px 0 #fff;
}
.pop-foot:hover { color: #4a5059; }
.pop-foot svg { width: 8px; height: 8px; transition: transform .15s; }
.pop-foot.open svg { transform: rotate(180deg); }
.pf.notes-field textarea { min-height: 86px; resize: vertical; padding: 8px 0; line-height: 1.45; }
/* fields: chips sit inline with the input; empty chip holders take no space */
.pf .chips { display: contents; }
.pf .chips:empty { display: none; }
.pf .chips .chip { flex: none; }

/* Flow's autocomplete: a white list attached under the field, rows with a
   bold name and a grey subtitle, the glossy blue highlight, and a footer bar
   for making something new ("Invite "L"…" in the original). */
.ac {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  background: #fff;
  border: 1px solid #9ea6b0;
  border-top-color: #d5d9de;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  overflow: hidden;
  animation: acin .1s ease-out;
}
@keyframes acin { from { opacity: 0; transform: translateY(-3px); } }
.ac-list { overflow-y: auto; }
.ac-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 3px 12px;
  border-bottom: 1px solid #ececec;
  color: #333;
  cursor: default;
}
.ac-list .ac-item:last-child { border-bottom: 0; }
.ac-ico { width: 15px; height: 15px; flex: none; }
.ac-text { display: flex; flex-direction: column; min-width: 0; }
.ac-name { font-weight: bold; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-sub { font-size: 11px; color: #999; margin-top: 1px; white-space: nowrap; }
.ac-item.hot {
  color: #fff;
  background: linear-gradient(var(--sel-top), var(--sel-bot));
  border-bottom-color: var(--sel-edge);
  text-shadow: 0 -1px 0 rgba(0, 40, 120, .35);
}
.ac-item.hot .ac-sub { color: #d6e7fd; }
.ac-foot {
  justify-content: center;
  min-height: 24px;
  font-size: 11.5px;
  font-weight: bold;
  color: #555;
  text-shadow: 0 1px 0 #fff;
  background: linear-gradient(#f4f4f4, #e6e6e6 50%, #dadada 51%, #e2e2e2);
  border-top: 1px solid #c8c8c8;
  border-bottom: 0;
}
.ac-foot.hot { color: #fff; text-shadow: 0 -1px 0 rgba(0, 40, 120, .35); }

/* Flow's date picker: a small white panel with a nub pointing at the field
   (Flow for Mac's datePickerWindowBezel), a grey header strip, gradient
   day cells, a grey "today" cell and a glossy blue selected day. */
.dp {
  position: absolute;
  z-index: 6;
  width: 258px;
  padding: 7px 7px 6px;
  border-radius: 7px;
  background: #fafafa;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28), 0 10px 26px rgba(0, 0, 0, .32);
  font-family: "Lucida Grande", "Helvetica Neue", Helvetica, sans-serif;
  animation: acin .1s ease-out;
}
.dp-nub {
  position: absolute;
  top: -7px;
  left: 30px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: #fafafa;
  box-shadow: -1px -1px 0 rgba(0, 0, 0, .2);
}
.dp.above .dp-nub { top: auto; bottom: -7px; box-shadow: 1px 1px 0 rgba(0, 0, 0, .2); }
.dp-quick { position: relative; display: flex; gap: 3px; margin-bottom: 6px; }
.dp-quick button {
  flex: 1 1 auto;
  height: 20px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10px;
  color: #444;
  background: linear-gradient(#fff, #e9e9e9);
  border: 1px solid #b9b9b9;
  white-space: nowrap;
}
.dp-quick button:hover { background: linear-gradient(#fff, #dcdcdc); }
.dp-quick button.on { color: #fff; border-color: #0468c9; background: linear-gradient(#80b9fb, #3c9ffa 50%, #0386ed 51%, #0476d1); }
.dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 4px;
  border: 1px solid #c4c4c4;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(#fff, #eaeaea 40%, #d0d0d0);
  font-size: 12px;
  font-weight: bold;
  color: #333;
  text-shadow: 0 1px 0 #fff;
}
.dp-head button { width: 20px; height: 20px; font-size: 9px; color: #828282; }
.dp-head button:hover { color: #444; }
.dp-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid #c4c4c4;
  border-right: 1px solid #c4c4c4;
  background: #d8d8d8;
  font-size: 9px;
  font-weight: bold;
  color: #666;
  text-align: center;
  line-height: 14px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #cfcfcf;
  border: 1px solid #c4c4c4;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}
.dp-day {
  height: 25px;
  font-size: 11.5px;
  color: #333;
  background: linear-gradient(#fff, #f9f9f9 50%, #ececec 50%, #e3e3e3);
}
.dp-day.out { color: #aaa; background: #f6f6f6; }
.dp-day.today { background: linear-gradient(#e0e0e0, #d5d5d5 50%, #bfbfbf 50%, #b0b0b0); font-weight: bold; color: #222; }
.dp-day.hot { box-shadow: inset 0 0 0 2px #3a9cff; }
.dp-day.picked {
  color: #fff;
  font-weight: bold;
  text-shadow: 0 -1px 0 rgba(0, 40, 120, .4);
  background: linear-gradient(#80b9fb, #3c9ffa 50%, #0386ed 50%, #0476d1);
}
.dp-day.picked.hot { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px #0468c9; }
.dp-day:hover:not(.picked) { background: linear-gradient(#f2f8ff, #dceafd); }
.dp-hint { margin-top: 5px; font-size: 10px; color: #a0a0a0; text-align: center; }

/* HUD: toasts, shortcuts */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 60; pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 34px;
  padding: 0 8px 0 16px;
  border-radius: 17px;
  color: #fff;
  font-size: 12px;
  background: rgba(24, 30, 40, .88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 6px 18px rgba(0, 0, 0, .3);
  animation: toastin .22s cubic-bezier(.2, 1.3, .4, 1);
}
.toast.out { animation: toastout .2s ease-in forwards; }
@keyframes toastin { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes toastout { to { opacity: 0; transform: translateY(6px); } }
.toast button { height: 22px; padding: 0 10px; border-radius: 11px; font-weight: bold; font-size: 11.5px; background: rgba(255, 255, 255, .16); color: #fff; }
.toast button:hover { background: rgba(255, 255, 255, .26); }
.toast:not(:has(button)) { padding-right: 16px; }

.hud {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  max-width: calc(100vw - 40px);
  padding: 18px 22px 20px;
  border-radius: 10px;
  color: #fff;
  background: rgba(22, 28, 38, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 20px 60px rgba(0, 0, 0, .45);
  animation: popin .16s cubic-bezier(.2, 1.2, .4, 1);
}
.hud h2 { margin: 0 0 12px; font-size: 14px; }
.hud .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 26px; font-size: 12px; }
.hud .k { display: flex; justify-content: space-between; gap: 10px; height: 24px; align-items: center; color: #d4d9e2; white-space: nowrap; }
.hud .keys { display: flex; gap: 3px; align-items: center; }
.hud .j { color: #7f8899; padding: 0 3px; font-size: 11px; }
.hud kbd {
  font: bold 11px var(--font);
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 4px;
  color: #fff;
  text-align: center;
  background: linear-gradient(#59647a, #3a4458);
  border: 1px solid #1d2330;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
.hud p { margin: 14px 0 0; color: #9ba4b4; font-size: 11.5px; line-height: 1.5; }
.hud p code { color: #fff; font: 11.5px Menlo, monospace; background: rgba(255, 255, 255, .1); padding: 0 4px; border-radius: 3px; }
.hud .close { position: absolute; right: 12px; top: 12px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.hud .close svg { width: 10px; height: 10px; }

.offline {
  position: fixed;
  top: calc(var(--top-h) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  padding: 6px 14px;
  border-radius: 14px;
  background: #fff4c4;
  border: 1px solid #e0c763;
  color: #6b5800;
  font-size: 11.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- preferences */

.prefs {
  position: fixed;
  left: 50%;
  top: 90px;
  transform: translateX(-50%);
  width: 400px;
  padding: 0 5px 5px;
  border-radius: 8px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: linear-gradient(#5e5e5e, #424242 19px, #252525 19px, #232323 38px, #1e1e1e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px #000, 0 16px 44px rgba(0, 0, 0, .45);
  animation: popin .16s cubic-bezier(.2, 1.2, .4, 1);
}
.prefs-head { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.prefs-body { background: #fff; border-radius: 4px; overflow: hidden; }
.prefs section { padding: 12px 16px 14px; border-bottom: 1px solid #e3e3e3; }
.prefs section:last-child { border-bottom: 0; }
.prefs h3 { margin: 0 0 8px; font-size: 14px; color: #222; }
.prefs p { margin: 8px 0 10px; font-size: 11.5px; line-height: 1.45; color: #888; }
.prefs select { width: 100%; height: 24px; font-size: 13px; font-weight: bold; color: #333; }
.pref-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #4a5568; min-height: 30px; }
.switch {
  position: relative;
  width: 64px;
  height: 25px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #8a8a8a;
  background: linear-gradient(#e9e9e9, #fafafa);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2);
  font: bold 11.5px "Helvetica Neue", Helvetica, sans-serif;
  flex: none;
}
.switch span { position: absolute; top: 0; height: 100%; width: 38px; display: grid; place-items: center; transition: transform .18s ease; }
.switch span:first-child { left: 0; color: #fff; background: linear-gradient(#1e74e8, #4ca0f8); transform: translateX(-38px); text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); }
.switch span:nth-child(2) { right: 0; color: #777; }
.switch i { position: absolute; top: -1px; left: -1px; width: 28px; height: 25px; border-radius: 5px; border: 1px solid #999; background: linear-gradient(#fff, #d8d8d8); transition: transform .18s ease; }
.switch.on span:first-child { transform: none; }
.switch.on i { transform: translateX(37px); }

/* ---------------------------------------------------------------- sign in */

.login {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: var(--empty-bg);
  background-image: linear-gradient(var(--bar-top), var(--bar-bot));
  background-size: 100% var(--top-h);
  background-repeat: no-repeat;
}
.login::before {
  content: "";
  position: absolute;
  inset: var(--top-h) 0 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .35 0 0 0 0 .45 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.login-card {
  position: relative;
  width: 300px;
  padding: 26px 24px 18px;
  border-radius: 8px;
  text-align: center;
  background: linear-gradient(#fbfcfd, #eef1f5);
  border: 1px solid #aeb8c6;
  box-shadow: inset 0 1px 0 #fff, 0 10px 30px rgba(30, 50, 80, .18);
}
.login-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.login-brand svg { width: 64px; height: 42px; }
.login-brand span { font: bold 30px/1 "Helvetica Neue", Helvetica, sans-serif; color: #3d5790; letter-spacing: -.5px; text-shadow: 0 1px 0 #fff; }
.login-field input {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border-radius: 5px;
  border: 1px solid #a9b3c1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15);
  font: 14px "Helvetica Neue", Helvetica, sans-serif;
  outline: 0;
  -webkit-user-select: text;
  user-select: text;
}
.login-field input:focus { border-color: #6f95cf; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15), 0 0 0 3px rgba(122, 178, 255, .5); }
.login-go { width: 100%; height: 32px; margin-top: 12px; font-size: 13px; font-family: "Helvetica Neue", Helvetica, sans-serif; cursor: pointer; }
.login.busy .login-go { opacity: .6; }
.login-msg { min-height: 16px; margin: 10px 0 0; font-size: 11.5px; color: #c4271d; }
.offline.usage { background: #eef4ff; border-color: #a9c3ec; color: #2c4c80; max-width: 560px; text-align: center; }
