/* Owner dashboard (/dashboard/) and login (/login/). Loaded after app.css and marketing.css. */
.dash-login { max-width: 440px; text-align: left; }
.dash-login h1, .dash-login > div:first-child { text-align: center; }
.dash-login .field { display: block; margin: 0 0 12px; }
.dash-login .field span { display: block; font-weight: 700; margin: 0 0 6px; }
.dash-login .btn { width: 100%; }
.dash-msg { min-height: 1.4em; font-weight: 700; margin: 10px 0; }
.dash-msg.bad { color: #b42318; }
.dash-msg.ok { color: #0f6b47; }
.dash-main { padding-top: 22px; padding-bottom: 50px; max-width: 760px; display: grid; gap: 18px; }
.dash-main h1 { margin: 0; font-size: clamp(26px, 7vw, 38px); line-height: 1.08; }
.dash-sec { background: #fff; border-radius: 22px; padding: 20px 18px; box-shadow: var(--shadow); }
.dash-sec h2 { margin: 0 0 10px; font-size: 21px; }
.dash-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; background: #e8f6ee; color: #0f6b47; }
.dash-pill.off { background: #fdecea; color: #b42318; }
.dash-pill.warn { background: #fff4e5; color: #8a4b00; }
.dash-facts { margin: 12px 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 16px; }
.dash-facts b { font-weight: 800; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.dash-actions .btn { flex: 1 1 160px; }
.dash-danger { color: #b42318 !important; }
.dash-field { display: block; margin: 0 0 14px; }
.dash-field > span { display: block; font-weight: 700; margin: 0 0 6px; }
.dash-pars { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.dash-pars label { display: grid; gap: 2px; font-size: 12px; font-weight: 800; color: var(--muted); text-align: center; }
.dash-pars input { text-align: center; padding: 8px 4px; }
.dash-colors { display: flex; gap: 18px; flex-wrap: wrap; }
.dash-colors label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dash-colors input[type="color"] { width: 54px; height: 44px; border: 0; padding: 0; background: none; }
.dash-logo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dash-logo img { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; background: #f4f6f8; }
.dash-disclosure { background: var(--brand-softer, #f3f8f4); border: 1px solid #cfe5d8; border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; }
.dash-disclosure p { margin: 0 0 6px; font-size: 15px; line-height: 1.45; }
.dash-agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 650; margin: 0 0 12px; }
.dash-agree input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
#sq-card { min-height: 90px; margin: 0 0 12px; }
.dash-sandbox { font-size: 13px; color: #8a4b00; font-weight: 700; }
.dash-reused { border-color: #f0c36d; background: #fff8e6; }
.dash-reused p { font-size: 16px; }
.dash-comp { margin: 0 0 6px; font-size: 16px; }
.dash-row { display: flex; gap: 12px; }
.dash-row > * { flex: 1; min-width: 0; }
.dash-tax { margin: 6px 0; }
.dash-tax-hold { color: #8a4b00; }
.dash-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; }
.dash-check input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.dash-terms { margin-top: 10px; }
.dash-terms summary { cursor: pointer; font-weight: 700; }
.dash-terms p { margin: 6px 0; }
#ref-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }

/* NB-11: long course links wrap instead of pushing the page sideways at 320 px */
.dash-link a, .dash-main code { overflow-wrap: anywhere; word-break: break-word; }
.dash-main { grid-template-columns: minmax(0, 1fr); }
.dash-sec { min-width: 0; overflow-wrap: anywhere; }
.dash-sec fieldset { min-width: 0; }   /* fieldsets default to min-content width */
.dash-sec input[type="file"] { max-width: 100%; min-width: 0; width: 100%; }

/* Oct 12 redesign: clean, mobile-first cards with one spacing scale */
.dash-main { gap: 14px; padding-top: 16px; max-width: 680px; }
.dash-sec { border-radius: 18px; padding: 18px 16px; box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 8px rgba(16,24,40,.05); border: 1px solid #e7ece9; }
.dash-sec h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #667085); margin: 0 0 12px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dash-head h1 { font-size: clamp(24px, 6vw, 32px); }
.dash-link { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.dash-price { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.dash-tax p { margin: 0 0 6px; }
.dash-facts { font-size: 15px; gap: 4px; margin: 10px 0; color: #344054; }
.dash-actions { gap: 8px; }
.dash-actions .btn { flex: 1 1 140px; }
.dash-row { flex-wrap: wrap; }
.dash-holes { flex: 0 0 96px !important; }
.dash-field { margin-bottom: 16px; }
.dash-acct { margin: 0 0 4px; font-weight: 700; overflow-wrap: anywhere; }
.dash-sec .swatches { margin: 4px 0 0; }
@media (min-width: 720px) { .dash-sec { padding: 22px 24px; } }

/* held Add card (no address yet): tooltip on hover/focus (desktop), shown on tap (touch) */
.tip-wrap { position: relative; display: inline-block; }
.btn.is-disabled { opacity: .55; cursor: not-allowed; }
.tip-wrap .tip { position: absolute; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: 240px;
  background: #1f2937; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; padding: 7px 10px; border-radius: 8px; z-index: 20;
  opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; text-align: center; }
.tip-wrap .tip::after { content: ''; position: absolute; top: 100%; left: 24px; border: 6px solid transparent; border-top-color: #1f2937; }
@media (hover: hover) { .tip-wrap:hover .tip { opacity: 1; visibility: visible; } }
.tip-wrap:focus-within .tip, .tip-wrap.show .tip { opacity: 1; visibility: visible; }

/* address autocomplete (Photon) */
.ac-field { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #cbd5e1;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(15,23,42,.14); z-index: 30; max-height: 280px; overflow-y: auto; }
.ac-list [role=option] { padding: 9px 12px; font-size: 14px; cursor: pointer; line-height: 1.3; }
.ac-list [role=option]:hover, .ac-list [aria-selected=true] { background: #eef7f1; }
.ac-list .ac-credit { padding: 4px 12px 2px; font-size: 11px; color: #64748b; }
.ac-hint { display: block; margin-top: 3px; font-size: 12px; }

/* Copy link buttons */
.copy-btn { min-height: 36px; padding: 4px 12px; font-size: 14px; margin-left: 6px; vertical-align: middle; }

/* challenges editor */
.ch-list { margin: 8px 0; padding-left: 22px; display: grid; gap: 6px; }
.ch-row { display: flex; gap: 6px; align-items: center; }
.ch-row .input { flex: 1; min-width: 0; }
.ch-row .btn-sm { min-height: 36px; padding: 4px 9px; }
@media (max-width: 420px) { .ch-row { flex-wrap: wrap; } .ch-row .input { flex-basis: 100%; } }
#ch-editor summary { cursor: pointer; padding: 6px 0; }
.ch-list { max-height: 340px; overflow-y: auto; padding-right: 4px; }
.dash-highlight { outline: 3px solid #f5a524; outline-offset: 2px; }
/* multi-course switcher */
.dash-courses { padding-bottom: 0; }
.dash-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-tab small { opacity: .75; font-weight: 400; margin-left: 4px; }

/* BUG-4: keep the tab price ("$9/mo") on one line at 375px */
.dash-tab small, .nowrap { white-space: nowrap; }
