/* app.skootly.com — same look as the Skootly extension: cream paper, ink outlines,
   offset pastel shadows, chunky rounded type, Skoot the mascot. */
:root {
  --ink: #17151b; --bg: #fff7f0; --card: #ffffff; --muted: #6b6470; --line: #eadfd4;
  --yellow: #fdd85d; --mint: #9de8c7; --lav: #c9b8ff; --peach: #ffdec8; --blue: #2f5fd0;
  --warn-bg: #fef3c7; --warn-fg: #7a3d06; --ok-bg: #e9fbf2; --ok-fg: #166534;
  --head: Manrope, "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { position: relative; margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--ink); background: var(--bg);
  font: 16px/1.55 "DM Sans", system-ui, -apple-system, sans-serif; }
.wrap { width: min(860px, 100% - 32px); margin-inline: auto; }
a { color: var(--blue); }
h1, h2 { font-family: var(--head); letter-spacing: -.03em; }
h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.05; margin: 6px 0 14px; font-weight: 800; }
h2 { font-size: 20px; margin: 0 0 12px; font-weight: 800; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* playful shapes */
.shape { position: absolute; pointer-events: none; z-index: 0; }
.shape.tri { top: 120px; right: 8%; width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent; border-bottom: 38px solid var(--yellow); transform: rotate(18deg); }
.shape.sq { top: 118px; right: 30%; width: 26px; height: 26px; background: var(--lav); border: 2.5px solid var(--ink); transform: rotate(12deg); }
.shape.blob { top: 330px; left: -60px; width: 120px; height: 120px; border-radius: 50%; background: var(--mint); border: 2.5px solid var(--ink); }
@media (max-width: 700px) { .shape.blob, .shape.tri { display: none; } }
header, main { position: relative; z-index: 1; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 20px 0 8px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark { display: grid; line-height: 1; }
.wordmark > span { font-family: var(--head); font-weight: 800; font-size: 30px; letter-spacing: -.04em; }
.wordmark small { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.badge { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--mint); }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); box-shadow: 3px 3px 0 var(--yellow); }

/* mascot */
.buddy { display: flex; align-items: flex-end; gap: 12px; margin: 14px 0 18px; }
.buddy img { image-rendering: pixelated; background: #1f2a2a; border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--lav);
  animation: bob 2.6s ease-in-out infinite; }
.bubble { margin: 0 0 14px; padding: 11px 16px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 18px 18px 18px 4px;
  font-weight: 700; box-shadow: 3px 3px 0 var(--yellow); max-width: 520px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(2deg); } }

/* cards */
.card { background: var(--card); border: 2.5px solid var(--ink); border-radius: 22px; padding: 20px 22px; margin-bottom: 20px; box-shadow: 5px 5px 0 var(--ink); }
.card.narrow { max-width: 460px; }
.shadow-mint { box-shadow: 5px 5px 0 var(--mint); }
.shadow-lav { box-shadow: 5px 5px 0 var(--lav); }
.shadow-yellow { box-shadow: 5px 5px 0 var(--yellow); }
.tilt-l { transform: rotate(-.6deg); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid .card { margin-bottom: 0; }
.grid { margin-bottom: 20px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pill { display: inline-block; margin: 0 0 6px; padding: 5px 12px; border: 2.5px solid var(--ink); border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 3px 3px 0 var(--mint); }

/* big sheet button */
.sheet-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); margin-bottom: 22px;
  padding: 16px 20px; border: 2.5px solid var(--ink); border-radius: 22px; background: var(--mint); box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-.8deg); transition: transform .12s ease; }
.sheet-card:hover { transform: rotate(0) translate(-2px, -2px); }
.sheet-icon { font-size: 34px; }
.sheet-text { display: grid; flex: 1; min-width: 0; }
.sheet-text b { font-family: var(--head); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.sheet-text span { color: #2b4a3d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrow { font-weight: 800; font-size: 24px; }

/* buttons + inputs */
.btn { cursor: pointer; display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; padding: 12px 16px; margin-top: 10px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font: 700 15px/1.2 "DM Sans", system-ui, sans-serif;
  text-decoration: none; transition: transform .1s ease; }
.btn:hover { transform: translate(-1px, -1px); }
.btn:active { transform: translate(1px, 1px); }
.btn.dark { background: var(--ink); color: var(--bg); box-shadow: 3px 3px 0 var(--lav); }
.btn.google { box-shadow: 3px 3px 0 var(--mint); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.g { font-family: var(--head); font-weight: 800; color: #4285f4; }
.link { cursor: pointer; border: 0; background: none; padding: 0; color: var(--blue); font: 600 15px "DM Sans", system-ui, sans-serif; }
.or { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 4px; }
input { width: 100%; font: inherit; padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--card); color: var(--ink); }
input:focus { outline: none; box-shadow: 3px 3px 0 var(--yellow); }
#code-input { font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: 10px; text-align: center; }

/* credit card */
.credit { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 14px 10px; padding: 16px 18px;
  border: 2.5px solid var(--ink); border-radius: 16px; background: linear-gradient(135deg, var(--lav), var(--peach)); margin-bottom: 8px; }
.chip { width: 34px; height: 24px; border-radius: 6px; background: var(--yellow); border: 2px solid var(--ink); }
.cbrand { justify-self: end; font-family: var(--head); font-weight: 800; text-transform: capitalize; }
.cnum { font-family: var(--head); font-weight: 800; font-size: 18px; letter-spacing: .12em; }
.cexp { justify-self: end; align-self: end; font-size: 13px; font-weight: 700; }

/* communities */
#communities { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.community { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 2.5px solid var(--ink);
  border-radius: 14px; background: var(--peach); box-shadow: 3px 3px 0 var(--ink); text-decoration: none; color: var(--ink); }
.community b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.community .meta { flex: none; font-size: 13px; color: #5c4a40; }
.community .go { flex: none; font-weight: 800; }

/* notices + footer */
.banner { padding: 12px 16px; border-radius: 16px; margin-bottom: 18px; border: 2.5px solid var(--ink); background: var(--ok-bg); color: var(--ok-fg); font-weight: 600; }
.banner.warn { background: var(--warn-bg); color: var(--warn-fg); }
.foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 18px 0 40px; border-top: 2.5px dashed var(--line); margin-top: 10px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .buddy img { animation: none; } .btn, .sheet-card { transition: none; } }

/* Sheet setup: one click first, Apps Script under Advanced */
.sheet-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: -8px 0 18px; font-size: 14px; }
.advanced { margin-top: 14px; }
.advanced summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); }
.advanced ol { font-size: 14px; padding-left: 20px; }
.script-form { display: flex; flex-wrap: wrap; gap: 8px; }
.script-form input { flex: 1; min-width: 220px; font: inherit; padding: 10px 12px; border: 2.5px solid var(--ink); border-radius: 12px; }
.script-form .btn { width: auto; margin: 0; }

/* 👤 Profile settings */
.section-title { font: 800 22px var(--head); margin: 6px 0 14px; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--yellow); overflow: hidden; font: 800 var(--head); color: var(--ink); flex: none; text-decoration: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.big { width: 84px; height: 84px; font-size: 34px; box-shadow: 3px 3px 0 var(--ink); }
.avatar.small { width: 36px; height: 36px; font-size: 15px; }
.avatar-row { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.avatar-btns { display: grid; gap: 6px; justify-items: start; }
.file-btn { width: auto; margin: 0; cursor: pointer; }
.name-form { display: grid; gap: 4px; margin-bottom: 12px; }
.name-row { display: flex; gap: 8px; }
.name-row input { flex: 1; min-width: 0; font: inherit; padding: 9px 12px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--ink); }
.name-row .btn { width: auto; margin: 0; }

/* Top menu on Account / CRM / HQ: same pills everywhere, never squished */
.appnav, .topnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 800; }
.appnav a, .appnav b, .topnav a, .topnav b { padding: 7px 14px; border-radius: 999px; border: 2px solid transparent; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 15px; }
.appnav a:hover, .topnav a:hover { border-color: var(--ink); background: var(--card); }
.appnav b, .topnav b { background: var(--yellow); border-color: var(--ink); }
.appnav .badge { margin-left: 4px; }
.appnav .avatar.small { padding: 0; border: 2.5px solid var(--ink); margin-left: 2px; }

/* 💛 Billing: plan line, paused box, cancel-or-pause pop-up */
.plan-line { font-weight: 800; margin: 4px 0 8px; }
.paused-box { background: #eef7ff; border: 2.5px solid var(--ink); border-radius: 16px; padding: 12px 14px; margin: 8px 0 12px; display: grid; gap: 6px; }
.paused-box.ending { background: #fff3c4; }
.paused-box .btn { margin: 4px 0 0; }
.cancel-link { display: block; margin: 14px auto 0; color: var(--muted); }
dialog.leave { border: 2.5px solid var(--ink); border-radius: 24px; padding: 0; max-width: min(520px, 100vw - 24px); width: 100%; background: var(--bg); color: var(--ink); box-shadow: 8px 8px 0 var(--lav); }
dialog.leave::backdrop { background: rgba(23, 21, 27, .45); }
.leave-in { padding: 24px; display: grid; gap: 12px; }
.leave-in h2 { font: 800 26px var(--head); margin: 0; }
.leave-in p { margin: 0; }
.leave-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.leave-list li { background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; font-size: 14px; }
.leave-list b { display: block; font: 800 22px var(--head); }
.leave-warn { background: #fff3c4; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 14.5px; }
.pause-offer { background: var(--mint); border: 2.5px solid var(--ink); border-radius: 16px; padding: 14px; display: grid; gap: 6px; }
.pause-offer .btn, .leave-in > .btn { margin: 4px 0 0; }
.cancel-anyway summary { cursor: pointer; color: var(--muted); font-weight: 700; text-align: center; padding: 6px; }
.cancel-anyway[open] { display: grid; gap: 8px; }
.cancel-anyway select { font: inherit; padding: 9px 12px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--card); }
.warn-btn { background: #ffd9d2; }

/* 🤖 AI assistant keys */
.key-form { display: grid; gap: 8px; margin: 10px 0; }
.key-form input:not([type=checkbox]) { padding: 10px 12px; border: 2px solid #17151b; border-radius: 12px; font: inherit; }
.key-rw { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.key-new { margin: 10px 0; padding: 12px; border: 2px dashed #17151b; border-radius: 14px; background: #fff7f0; }
.key-new code#key-value { display: block; padding: 8px 10px; margin: 6px 0; border-radius: 10px; background: #17151b; color: #fff7f0; word-break: break-all; font-size: 13px; }
.key-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.key-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border: 2px solid #eadfd4; border-radius: 12px; }
.key-list .meta { color: #6b6470; font-size: 13px; }
.key-list button { margin-left: auto; }
