/* Oil Find site. Shared by index, activated and recover. */
:root {
  --ink: #1d1d1f;
  --ink2: rgba(29, 29, 31, .62);
  --ink3: rgba(29, 29, 31, .42);
  --hair: rgba(29, 29, 31, .09);
  --blue: #2f7cf6;
  --blue-deep: #1f66d6;
  --sel: rgba(47, 124, 246, .16);
  --tint: rgba(47, 124, 246, .1);
  --key: rgba(29, 29, 31, .07);
  --surface: rgba(255, 255, 255, .74);
  --col: 800px;
  --ui: -apple-system, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  --display: -apple-system, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  /* Springs sampled from the app: panel 500/36, selection 1400/64, chip 900/50. */
  --spring-panel: linear(0, .043, .138, .242, .369, .491, .602, .698, .778, .843, .888, .928, .958, .979, .993, 1.002, 1.007, 1.01, 1.012, 1.011, 1.01, 1.009, 1.008, 1.006, 1);
  --spring-sel: linear(0, .022, .087, .153, .226, .303, .404, .477, .545, .628, .683, .732, .776, .825, .857, .883, .913, .931, .946, .962, .972, .979, .985, .991, 1);
  --spring-chip: linear(0, .033, .123, .22, .344, .446, .559, .643, .729, .789, .848, .887, .924, .947, .965, .981, .99, .997, 1.001, 1.004, 1.006, 1.006, 1.006, 1.006, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { margin: 0; }
body {
  font: 14px/1.55 var(--ui); color: var(--ink);
  background: radial-gradient(900px 600px at 82% -8%, rgba(47, 124, 246, .12), transparent 60%), linear-gradient(#eef1f5, #e6eaf0 900px, #eef1f5 1500px);
  background-repeat: no-repeat; background-color: #eef1f5;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
  text-autospace: normal; line-break: strict; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(47, 124, 246, .24); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.nw { white-space: nowrap; }

/* Top bar */
.bar { height: 64px; max-width: 1080px; margin-inline: auto; display: flex; align-items: center; padding: 0 28px; gap: 4px; font-size: 13px; }
.bar .brand { display: flex; flex: none; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; margin-right: auto; white-space: nowrap; }
.bar .brand img { width: 26px; height: 26px; display: block; }
.bar a.nav, .bar button.nav { color: var(--ink2); padding: 6px 10px; border-radius: 8px; border: 0; background: none; font: inherit; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.bar a.nav:hover, .bar button.nav:hover { color: var(--ink); background: rgba(29, 29, 31, .06); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 20px; border-radius: 10px; border: 0; font: 500 14px/1 var(--ui); cursor: pointer; white-space: nowrap;
  transition: transform .12s ease-out, background .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); transition-duration: .06s; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.blue:hover { background: var(--blue-deep); }
.btn.soft { background: var(--tint); color: var(--blue-deep); }
.btn.soft:hover { background: rgba(47, 124, 246, .17); }
.btn.big { height: 44px; padding: 0 28px; font-size: 15px; border-radius: 11px; }
.btn.small { height: 30px; padding: 0 13px; font-size: 13px; border-radius: 8px; margin-left: 6px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

kbd { font: 500 10.5px/18px var(--ui); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--key); color: var(--ink2); display: inline-block; text-align: center; margin-right: 5px; }

/* Sections share the panel's column */
.col { width: var(--col); max-width: calc(100vw - 32px); margin-left: auto; margin-right: auto; }
.sect { margin-top: 104px; }
.sect h2 { font: 600 28px/1.3 var(--display); letter-spacing: -.01em; margin: 0 0 10px; }
.sect .sub { margin: 0 0 28px; color: var(--ink2); font-size: 14.5px; }
.sheet { border-radius: 16px; background: var(--surface); border: 1px solid rgba(29, 29, 31, .08); overflow: hidden; }

/* Footer */
.end { margin-top: 96px; padding: 24px 0 56px; border-top: 1px solid var(--hair); }
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 40px; font-size: 13px; line-height: 1.7; color: var(--ink2); }
.notes b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 3px; }
.legal { margin-top: 36px; display: flex; gap: 18px; font-size: 12.5px; color: var(--ink3); flex-wrap: wrap; }
.legal a:hover { color: var(--ink); }
.legal .sp { flex: 1; }

.changelog { margin-top: 9vh; margin-bottom: 80px; }
.changelog-heading, .release-heading { display: flex; align-items: baseline; gap: 20px; justify-content: space-between; }
.changelog h1 { font: 600 30px/1.3 var(--display); margin: 0; }
.release { padding: 32px 0; border-bottom: 1px solid rgba(29, 29, 31, .08); }
.release h2 { font: 600 20px/1.3 var(--display); margin: 0; }
.release time { font: 12.5px var(--mono); color: var(--ink3); }
.release ul { padding-left: 20px; margin: 18px 0 0; color: var(--ink2); font-size: 14.5px; line-height: 1.7; }
.release li + li { margin-top: 8px; }
.release code { font: .9em var(--mono); color: var(--ink); }

/* Single-task pages: activated, recover */
.solo { width: 440px; max-width: calc(100vw - 32px); margin: 9vh auto 80px; text-align: center; }
.solo img.mark { width: 84px; height: 84px; display: block; margin: 0 auto 18px; }
.solo h1 { font: 600 26px/1.3 var(--display); letter-spacing: -.01em; margin: 0 0 8px; }
.solo p { margin: 0 0 22px; color: var(--ink2); font-size: 14.5px; }
.solo .btn { width: 100%; height: 44px; font-size: 15px; border-radius: 12px; }
.solo .fine { margin-top: 18px; font-size: 13px; color: var(--ink2); }
.solo .fine a { color: var(--blue-deep); }
.keybox { margin: 22px 0 0; border-radius: 12px; background: var(--surface); border: 1px solid rgba(29, 29, 31, .08); padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px; text-align: left; }
.keybox code { flex: 1; min-width: 0; font: 12px/1.6 var(--mono); color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.keybox .btn { width: auto; height: 30px; padding: 0 12px; font-size: 13px; border-radius: 8px; flex: none; min-width: 64px; }
.field { display: block; width: 100%; height: 44px; border-radius: 12px; border: 1px solid rgba(29, 29, 31, .14); background: #fff; padding: 0 14px; font: 15px var(--ui); color: var(--ink); margin-bottom: 12px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 124, 246, .18); }
.solo .msg { margin: 14px 0 0; font-size: 13px; color: var(--ink2); text-align: left; min-height: 20px; }
.solo .msg.err { color: #c0392b; }
.state[hidden] { display: none; }
.spin { width: 22px; height: 22px; margin: 40px auto; border-radius: 50%; border: 2px solid rgba(29, 29, 31, .14); border-top-color: var(--ink2); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pop { animation: pop .42s var(--spring-panel) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

@media (max-width: 640px) {
  .bar { padding: 0 16px; }
  .bar .hide-s { display: none; }
  .sect { margin-top: 76px; }
  .sect h2 { font-size: 24px; }
  .notes { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pop, .spin { animation: none; }
  .btn { transition: none; }
}
@media (max-width: 360px) {
  .bar { padding-inline: 12px; gap: 0; }
  .bar a.nav, .bar button.nav { padding-inline: 7px; }
  .bar .btn.small { padding-inline: 10px; margin-left: 4px; }
}
