/* Account pages, matching the Lookfind canvas design (App-Home, App-Video, App-Connect, Auth). */
:root {
  --paper: #edebe7;
  --chalk: #f7f6f3;
  --line: #e2dfd9;
  --line-2: #d6d2cb;
  --well: #e4e1db;
  --ink: #151412;
  --graphite: #5e5a55;
  --stone: #8c8781;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: var(--graphite); }
button { font-family: var(--sans); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); }
.muted { color: var(--graphite); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; text-decoration: none; padding: 11px 18px; border-radius: 8px;
  background: var(--ink); color: var(--chalk); }
.btn:hover { color: var(--chalk); opacity: .88; }
.btn.light { background: var(--chalk); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.light:hover { color: var(--ink); background: #fff; }
.btn.small { font-size: 14px; padding: 9px 14px; border-radius: 7px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* App shell */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--chalk); border-right: 1px solid var(--line);
  padding: 28px 18px; display: flex; flex-direction: column; gap: 28px; }
.brand { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; padding: 0 10px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; font-size: 15px;
  color: var(--graphite); padding: 11px 12px; border-radius: 8px; }
.nav a.on { background: var(--line); color: var(--ink); font-weight: 500; }
.nav .count { font-family: var(--mono); font-size: 12px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.meter { background: var(--paper); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.meter b { font-size: 14px; font-weight: 500; }
.bar { height: 4px; border-radius: 2px; background: var(--line-2); }
.bar > i { display: block; height: 4px; border-radius: 2px; background: var(--ink); }
.meter a { font-size: 14px; font-weight: 500; }
.who { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-size: 14px; color: var(--graphite); }
.who .av { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--chalk);
  display: grid; place-items: center; font-size: 14px; font-weight: 500; text-transform: uppercase; flex: none; }
.who form { margin: 0 0 0 auto; }
.who button { border: 0; background: none; color: var(--graphite); font-size: 13px; cursor: pointer; text-decoration: underline; }

.main { padding: 36px 48px 64px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
h1 { margin: 0; font-size: 44px; letter-spacing: -0.04em; font-weight: 500; line-height: 1.05; }

/* Link box */
.linkbox { display: flex; gap: 6px; width: 520px; max-width: 100%; background: var(--chalk); padding: 5px; border-radius: 10px;
  margin: 0; box-shadow: 0 0 0 1px var(--line-2); }
.linkbox input { flex-grow: 1; min-width: 0; border: 0; background: transparent; font-family: var(--sans); font-size: 15px;
  padding: 11px 12px; outline: none; color: var(--ink); }
.linkbox:focus-within { box-shadow: 0 0 0 2px var(--ink); }

.notice { background: var(--chalk); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.notice.err { box-shadow: inset 3px 0 0 #b3402a; }

/* Processing card */
@keyframes lfPulse { 50% { opacity: .25; } }
.proc { display: flex; align-items: center; gap: 16px; background: var(--chalk); border-radius: 12px; padding: 12px 16px 12px 12px;
  text-decoration: none; }
.proc .ph { width: 44px; height: 78px; object-fit: cover; border-radius: 6px; background: var(--well); flex: none; display: block; }
.proc .t { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; min-width: 0; }
.proc .t b { font-size: 15px; font-weight: 500; }
.steps { display: flex; gap: 18px; font-size: 13px; color: var(--graphite); flex-wrap: wrap; }
.steps .now { color: var(--ink); display: flex; align-items: center; gap: 6px; }
.steps .now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: lfPulse 1.2s ease-in-out infinite; }
.steps .todo { color: var(--stone); }
.eta { font-family: var(--mono); font-size: 12px; color: var(--graphite); flex: none; }

/* Tabs */
.tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tab { border: 0; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--chalk); color: var(--ink); }
.tab.on { background: var(--ink); color: var(--chalk); }
.tab.on:hover { color: var(--chalk); }
.tab .n { font-family: var(--mono); font-size: 12px; opacity: .7; }
.tabs .right { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--graphite); }

/* Finds grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card .pic { position: relative; height: 240px; border-radius: 12px; background: var(--well); display: grid; place-items: center;
  overflow: hidden; text-decoration: none; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .pic .none { font-family: var(--mono); font-size: 11px; color: var(--stone); text-align: center; padding: 0 20px; line-height: 1.5; }
.card .src { position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--chalk);
  display: grid; place-items: center; }
.card .new { position: absolute; right: 10px; top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  background: var(--ink); color: var(--chalk); padding: 4px 7px; border-radius: 3px; }
.card .name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.card .meta { font-family: var(--mono); font-size: 12px; color: var(--graphite); }
.card .via { font-size: 13px; color: var(--stone); }
.card .acts { display: flex; gap: 6px; }
.card .acts .btn { flex-grow: 1; }
.x { border: 0; background: var(--chalk); border-radius: 7px; width: 38px; cursor: pointer; display: grid; place-items: center; }
.x:hover { background: #fff; }
.badge { font-size: 12px; font-weight: 500; padding: 5px 9px; border-radius: 999px; background: var(--line-2); white-space: nowrap; }
.badge.sim { background: transparent; color: var(--graphite); box-shadow: inset 0 0 0 1px #b9b4ad; }

.empty { min-height: 420px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 40px; }
.empty b { font-size: 26px; letter-spacing: -0.02em; font-weight: 500; }
.empty span { font-size: 16px; color: var(--graphite); max-width: 400px; }

/* One video */
.back { font-size: 14px; color: var(--graphite); text-decoration: none; }
.vid { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 40px; align-items: start; }
.vid .left { display: flex; flex-direction: column; gap: 14px; }
.vid .poster { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--ink); }
.vid .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid .chip { position: absolute; left: 12px; top: 12px; background: var(--chalk); padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.vid .cap { font-size: 15px; line-height: 1.45; }
.vid .by { font-size: 13px; color: var(--graphite); }
.rows { background: var(--chalk); border-radius: 14px; padding: 6px 22px; }
.row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto 38px; gap: 14px; align-items: center; padding: 18px 0;
  border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .im { width: 72px; height: 88px; border-radius: 8px; background: var(--paper); overflow: hidden; display: grid; place-items: center; }
.row .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row .im .none { font-family: var(--mono); font-size: 9px; color: var(--stone); text-align: center; }
.row .nm { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.row .nm b { font-size: 17px; font-weight: 500; }
.row .nm span { font-size: 13px; color: var(--graphite); line-height: 1.4; }
.row .pr { font-family: var(--mono); font-size: 15px; text-align: right; }
.row .nm .badge { align-self: flex-start; margin-top: 2px; }
.row .btn { justify-self: end; }

/* Connections */
.conns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.conn { background: var(--chalk); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.conn .top { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; }
.conn .top .badge { margin-left: auto; }
.conn p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--graphite); }
.dark { background: var(--ink); color: var(--chalk); border-radius: 14px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.dark p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: #b9b4ad; }

/* Videos list */
.vlist { display: flex; flex-direction: column; gap: 10px; }
.vrow { display: flex; align-items: center; gap: 16px; background: var(--chalk); border-radius: 12px; padding: 12px 18px 12px 12px; text-decoration: none; }
.vrow img, .vrow .ph { width: 44px; height: 78px; object-fit: cover; border-radius: 6px; background: var(--well); flex: none; display: block; }
.vrow .t { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 0; }
.vrow .t b { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrow .t span { font-size: 13px; color: var(--graphite); }

/* Auth */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) 620px; min-height: 100vh; }
.auth .l { padding: 32px 80px; display: flex; flex-direction: column; }
.auth .box { margin: auto 0; width: 440px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; padding: 40px 0; }
.seg { display: flex; gap: 4px; background: var(--line); padding: 4px; border-radius: 10px; align-self: flex-start; }
.seg a { font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 7px; text-decoration: none; }
.seg a.on { background: var(--chalk); }
.auth h1 { font-size: 52px; letter-spacing: -0.045em; }
.auth form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.auth label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--graphite); }
.auth input { border: 0; background: var(--chalk); font-family: var(--sans); font-size: 16px; padding: 14px; border-radius: 9px;
  box-shadow: inset 0 0 0 1px var(--line-2); outline: none; color: var(--ink); }
.auth input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.auth .go { margin-top: 6px; padding: 15px; border-radius: 9px; font-size: 16px; }
.auth .legal { font-size: 13px; line-height: 1.5; color: var(--stone); }
.waiting { display: flex; align-items: center; gap: 12px; background: var(--chalk); border-radius: 12px; padding: 12px 14px; }
.waiting .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; animation: lfPulse 1.2s ease-in-out infinite; }
.waiting b { font-size: 14px; font-weight: 500; display: block; }
.waiting span { font-family: var(--mono); font-size: 12px; color: var(--graphite); word-break: break-all; }
.auth .r { position: relative; background: var(--well); overflow: hidden; }
.auth .r img { position: absolute; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(21,20,18,.22)); display: block; }
.auth .r .tag { position: absolute; left: 280px; top: 120px; font-family: var(--mono); font-size: 12px; background: var(--ink);
  color: var(--chalk); padding: 7px 10px; border-radius: 3px; transform: rotate(4deg); }

@media (max-width: 1100px) {
  .auth { grid-template-columns: 1fr; }
  .auth .r { display: none; }
  .row { grid-template-columns: 64px minmax(0, 1fr) auto 38px; }
  .row .im { width: 64px; height: 64px; }
  .row .pr { grid-column: 2; grid-row: 2; text-align: left; }
  .vid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; }
  .nav { flex-direction: row; }
  .side-foot { margin: 0 0 0 auto; }
  .side-foot .meter, .side-foot .who > span:not(.av) { display: none; }
  .main { padding: 24px 16px 48px; }
  h1 { font-size: 34px; }
  .auth .l { padding: 24px 16px; }
  .auth h1 { font-size: 40px; }
  .conns { grid-template-columns: 1fr; }
  .vid .poster { max-width: 320px; }
}

/* "Tell us what we missed" on a video page */
.feedback { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line, #e3e0da); }
.feedback label { font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.feedback textarea { font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2, #d8d4cd); background: #fff; resize: vertical; }
.feedback .btn { align-self: flex-start; }
