/* ============================================================
   TEN Effects -- account pages (/account/). Builds on ten.css;
   everything here is prefixed acct-.
   ============================================================ */

.acct-page { --live: var(--violet-sig); --acct-ok: #4FE0C4; --acct-bad: #F0806F; }

.acct-band { padding: 44px 0 64px; }

.acct-narrow { max-width: 540px; }

.acct-grid {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 340px);
  gap: 48px;
  align-items: start;
}

.acct-hint {
  margin: 7px 0 0;
  font-size: 14px;
  color: var(--bone-3);
}

.acct-alt {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--bone-2);
}

.acct-aside {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--live);
  border-radius: 4px;
  padding: 20px 22px;
  font-size: 15px;
  color: var(--bone-2);
}
.acct-aside p { margin: 0; }
.acct-aside .acct-aside-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--live);
  margin-bottom: 8px;
}

.acct-ok, .acct-note {
  border: 1px solid #1F5A50;
  background: #121D1B;
  border-radius: 4px;
  padding: 14px 18px;
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--acct-ok);
  max-width: 720px;
}
.acct-note { border-color: var(--line); background: var(--ink-2); color: var(--bone-2); }

.ten-formerror a, .ten-err a { color: inherit; text-decoration: underline; }

/* ---------- account home ---------- */

.acct-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 0 0 44px;
  max-width: 900px;
}
.acct-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 22px;
}
.acct-card-accent { border-top: 3px solid var(--bridgeofvibes-sig); }
.acct-card-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 106;
  font-weight: 600;
  font-size: 20px;
}
.acct-card p { margin: 0 0 14px; color: var(--bone-2); font-size: 16px; }
.acct-card p:last-child { margin-bottom: 0; }

.acct-details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 18px;
  margin: 0 0 16px;
  font-size: 15px;
}
.acct-details dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-3);
  padding-top: 3px;
}
.acct-details dd { margin: 0; overflow-wrap: anywhere; }

.acct-inline { margin: 0; }
.acct-link-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--live);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
}
.acct-link-btn:hover { border-color: var(--live); }

.acct-card-accent .acct-btn-link {
  display: inline-block;
  background: var(--bridgeofvibes-sig);
  text-decoration: none;
}

.acct-section { margin: 0 0 44px; max-width: 540px; }

.acct-danger {
  border: 1px solid #4A2526;
  border-radius: 4px;
  padding: 16px 20px;
  background: #171112;
}
.acct-danger summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acct-bad);
}
.acct-danger p { color: var(--bone-2); font-size: 15px; margin: 14px 0 18px; }
.acct-danger-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  color: var(--acct-bad);
  border: 1px solid var(--acct-bad);
  border-radius: 3px;
  padding: 12px 22px;
  cursor: pointer;
}
.acct-danger-btn:hover { background: rgba(240, 128, 111, 0.08); }

@media (max-width: 900px) {
  .acct-grid { grid-template-columns: 1fr; gap: 28px; }
  .acct-band { padding: 32px 0 48px; }
}

/* ============================================================
   Offers, My pedals, owner tools
   ============================================================ */

.acct-wide { max-width: 960px; }
.acct-section-lede { color: var(--bone-2); max-width: 64ch; margin: -4px 0 20px; }

.acct-owner-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 15px;
}
.acct-owner-bar span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--live);
  border-radius: 2px;
  padding: 3px 8px;
}

/* members' offers */
.acct-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.acct-offer {
  background: var(--ink-2);
  border: 1px dashed var(--live);
  border-radius: 6px;
  padding: 18px 20px;
}
.acct-offer p { margin: 0 0 10px; }
.acct-offer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bridgeofvibes-sig);
}
.acct-offer-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 106;
  font-weight: 600;
  font-size: 20px;
}
.acct-offer-details { color: var(--bone-2); font-size: 15px; }
.acct-offer-code span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-3);
  margin-right: 6px;
}
.acct-offer-code code {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--bone);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3px 9px;
  user-select: all;
}
.acct-offer-ends { font-size: 13px; color: var(--bone-3); margin-bottom: 0 !important; }

/* my pedals */
.acct-follow {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15px;
}
.acct-follow th, .acct-follow td {
  text-align: left;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.acct-follow thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.acct-follow tbody th { font-weight: 600; }
.acct-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.acct-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--live);
  margin: 0;
}
.acct-follow .acct-check-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* owner tabs */
.acct-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 30px;
  border-bottom: 1px solid var(--line);
}
.acct-tabs a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-2);
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}
.acct-tabs a:hover { color: var(--bone); }
.acct-tabs a[aria-current="page"] { color: var(--live); border-bottom-color: var(--live); }
.acct-tabs .acct-tabs-back { margin-left: auto; color: var(--bone-3); }

.acct-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 0 0 40px;
  max-width: 960px;
}
.acct-stat {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 18px;
}
.acct-stat-n {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.acct-stat-l { font-size: 14px; color: var(--bone-3); }

.acct-table-wrap { overflow-x: auto; max-width: 100%; position: relative; }   /* keeps hidden labels (acct-sr) inside the scroller */
.acct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.acct-table th, .acct-table td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.acct-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.acct-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.acct-table code { font-family: var(--font-mono); font-size: 13px; color: var(--bone-2); }
.acct-row-actions { white-space: nowrap; text-align: right !important; }
.acct-row-actions form { display: inline-block; margin-left: 6px; }

.acct-state {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 2px 7px;
  white-space: nowrap;
}
.acct-state.is-live { color: var(--acct-ok); }
.acct-state.is-scheduled { color: #C7C67E; }
.acct-state.is-ended, .acct-state.is-off { color: var(--bone-3); }

.acct-link-danger { color: var(--acct-bad); }
.acct-link-danger:hover { border-color: var(--acct-bad); }

/* compose + preview */
.acct-compose { max-width: 720px; margin-bottom: 44px; }
.acct-compose textarea { min-height: 120px; }
.acct-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 18px;
}
.acct-select {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 11px 12px;
}
.acct-select:focus { outline: none; border-color: var(--live); }
.ten-field input[type="datetime-local"] { color-scheme: dark; }

.acct-preview { max-width: 760px; }
.acct-email {
  background: #F4F1EA;
  color: #1B1A1D;
  border-radius: 4px;
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 22px;
}
.acct-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.acct-actions form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.acct-confirm { font-size: 15px; color: var(--bone-2); margin: 0 0 18px; }
.acct-actions .acct-confirm { margin: 0; }
.ten-submit:disabled { background: var(--ink-3); color: var(--bone-3); cursor: not-allowed; }
a.acct-link-btn { display: inline-block; text-decoration: none; }

@media (max-width: 640px) {
  .acct-follow thead { display: none; }
  .acct-follow tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .acct-follow th, .acct-follow td { display: block; border: 0; padding: 4px 0; }
  .acct-follow .acct-check-text { position: static; width: auto; height: auto; clip: auto; }
}

/* ============================================================
   Presets: My presets, shared preset page, owner moderation
   ============================================================ */

.acct-count { color: var(--bone-3); white-space: nowrap; }
.acct-pending { max-width: 960px; }
.acct-pending p { margin: 0; }
.acct-pending a { color: var(--live); }

.acct-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.acct-preset {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: 24px;
}
.acct-preset:target { border-color: var(--live); }
.acct-preset p { margin: 0; }
.acct-preset-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.acct-preset-title {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 106;
  font-weight: 600;
  font-size: 19px;
  overflow-wrap: anywhere;
}
.acct-preset-meta { font-size: 13px; color: var(--bone-3); }
.acct-preset-notes { font-size: 15px; color: var(--bone-2); overflow-wrap: anywhere; }
.acct-preset-removed { font-size: 14px; color: var(--acct-bad); }
.acct-preset-removed a { color: inherit; }
.acct-preset-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.acct-preset-actions form { margin: 0; }
.acct-preset-more { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.acct-preset-more summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.acct-preset-more summary:hover { color: var(--bone); }
.acct-preset-more .ten-form { margin-top: 14px; }
.acct-preset-more .ten-field { margin-bottom: 14px; }
.acct-preset-delete summary { color: var(--acct-bad); }
.acct-preset-delete p { font-size: 14px; color: var(--bone-2); margin: 12px 0; }

.acct-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 2px 6px;
  white-space: nowrap;
}
.acct-badge-shared { color: var(--acct-ok); }
.acct-badge-featured { color: #F2C14E; }
.acct-badge-removed { color: var(--acct-bad); }

.acct-share-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-3);
  margin-bottom: 6px;
}
.acct-share-row { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-share-url {
  flex: 1 1 100%;
  min-width: 0;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 10px;
}
.acct-share-url:focus { outline: none; border-color: var(--live); }

/* the shared preset page */
.acct-shared {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 300px);
  gap: 44px;
  align-items: start;
  margin-bottom: 40px;
}
.acct-shared-aside { position: sticky; top: 24px; }
.acct-shared-aside p + p { margin-top: 12px; }
.acct-shared-aside .acct-btn-link { display: inline-block; text-decoration: none; }
.acct-shared-notes { font-size: 17px; color: var(--bone); margin: 0 0 22px; max-width: 60ch; overflow-wrap: anywhere; }
.acct-shared-facts { margin-bottom: 30px; }
.acct-featured { margin: 0 0 18px; }
.acct-featured span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: #F2C14E;
  border-radius: 2px;
  padding: 4px 9px;
}
.acct-settings { margin: 0 0 30px; }
.acct-settings-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 106;
  font-weight: 600;
  font-size: 20px;
}
.acct-settings-table th[scope="row"] { font-weight: 400; color: var(--bone-2); }
.acct-settings-table td { font-variant-numeric: tabular-nums; }
.acct-settings-group th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--live);
  padding-top: 18px !important;
}
.acct-report {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 18px;
}
.acct-report summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.acct-report p { color: var(--bone-2); font-size: 15px; margin: 12px 0 16px; }

/* owner moderation */
.acct-reason { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 46ch; color: var(--bone-2); }
.acct-muted { color: var(--bone-3); }

@media (max-width: 900px) {
  .acct-shared { grid-template-columns: 1fr; gap: 28px; }
  .acct-shared-aside { position: static; }
}
.acct-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acct-link-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.acct-stat a { color: inherit; text-decoration: none; }
.acct-stat-alert { border-color: var(--acct-bad); }
.acct-stat-alert .acct-stat-n { color: var(--acct-bad); }

/* Load onto my pedal (panel styles live in /css/pedal-load.css) */
.acct-shared-aside .pl { margin-top: 4px; }
.acct-shared-file { margin-top: 14px !important; }
.acct-preset-actions > form, .acct-preset-actions > a, .acct-preset-actions > button { flex: 0 0 auto; width: auto; }
.acct-preset-actions .ten-form, .acct-preset-actions form { display: inline-flex; }

/* shared preset: at a glance (chart drawn by js/pedal-tools/preset-view.js) */
.acct-glance-line { margin: 0 0 8px; color: var(--bone); font-size: 15px; max-width: 70ch; }
.acct-glance-chart { margin: 14px 0 0; padding: 14px 16px 12px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 4px; }

/* ---- My pedals and a pedal's history ---- */
.acct-pedals { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.acct-pedal {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border: 1px solid var(--line); border-top: 3px solid var(--live); border-radius: 0 0 6px 6px;
  background: var(--ink-2); color: inherit; text-decoration: none;
}
.acct-pedal:hover { background: var(--ink-3); }
.acct-pedal-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--bone); }
.acct-pedal-meta { font-size: 14px; color: var(--bone-2); }
.acct-pedal-go { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--live); }
.acct-history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.acct-history-item {
  display: grid; grid-template-columns: 170px 150px minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.acct-history-when { font-family: var(--font-mono); font-size: 12px; color: var(--bone-3); }
.acct-history-kind { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--live); }
.acct-history-what { color: var(--bone); overflow-wrap: anywhere; }
.acct-history-what a { margin-left: 8px; font-size: 14px; }
.acct-history-read .acct-history-kind, .acct-history-read .acct-history-what { color: var(--bone-3); }
@media (max-width: 760px) {
  .acct-history-item { grid-template-columns: 1fr auto; }
  .acct-history-what { grid-column: 1 / -1; }
}

/* ---------- the preset library (/presets/) ---------- */
.lib-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin: 0 0 18px;
}
.lib-filters .ten-field { margin: 0; flex: 0 1 170px; }
.lib-filters .lib-search { flex: 1 1 280px; }
.lib-filters .ten-submit { margin: 0; }
.lib-check { display: inline-flex; align-items: center; gap: 8px; color: var(--bone-2); font-size: 15px; padding-bottom: 12px; }
.lib-count { margin: 0 0 18px; color: var(--bone-3); font-family: var(--font-mono); font-size: 13px; }
.lib-empty { padding: 28px 0 40px; color: var(--bone-2); max-width: 60ch; }
.lib-grid {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.lib-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  box-sizing: border-box;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--bridgeofvibes-sig);
  border-radius: 4px;
  padding: 14px 16px 16px;
  color: var(--bone);
  text-decoration: none;
}
.lib-card:hover, .lib-card:focus-visible { border-color: var(--live); outline: none; }
.lib-chart { aspect-ratio: 320 / 120; margin: 0 0 6px; border-radius: 3px; overflow: hidden; background: var(--ink-3); }
.lib-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 106;
  font-weight: 600;
  font-size: 19px;
  overflow-wrap: anywhere;
}
.lib-meta { color: var(--bone-2); font-size: 14px; }
.lib-notes { color: var(--bone-2); font-size: 14px; overflow-wrap: anywhere; }
.lib-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  color: var(--bone-3);
  font-family: var(--font-mono);
  font-size: 12px;
}
.lib-pages { display: flex; gap: 18px; align-items: center; margin: 0 0 30px; color: var(--bone-3); font-family: var(--font-mono); font-size: 13px; }
.lib-share { margin-top: 10px; }
@media (max-width: 560px) {
  .lib-filters .ten-field { flex: 1 1 100%; }
}

/* ---------- owner tools: pedals ---------- */
.adm-pedal-cards { max-width: none; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.adm-sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-3); }
.adm-bars th { font-weight: 500; white-space: nowrap; }
.adm-bar-cell { width: 55%; position: relative; }
.adm-bar { display: inline-block; height: 10px; border-radius: 2px; background: var(--bridgeofvibes-sig); vertical-align: middle; min-width: 2px; }
.adm-bar-pct { margin-left: 8px; color: var(--bone-3); font-family: var(--font-mono); font-size: 12px; }
.acct-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; max-width: 640px; }
.acct-search input[type="search"] {
  flex: 1 1 260px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 11px 12px;
}
.acct-search input[type="search"]:focus { outline: none; border-color: var(--live); }
.acct-search .ten-submit { margin: 0; }

/* My clips */
.acct-clip-audio { width: 100%; max-width: 420px; height: 36px; margin: 4px 0 2px; }
.acct-clip-delete { margin-top: 12px; }
