/* CreatorMatch — member pages (sign in, account, admin). Builds on styles.css. */

.m-top { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 241, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.m-top .in { max-width: 1100px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-top nav { display: flex; align-items: center; gap: 6px; }
.m-top nav a, .m-top nav button { border: 0; background: none; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.m-top nav a:hover, .m-top nav button:hover { background: var(--paper-2); color: var(--ink); }
.m-top nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.m-top .logo { flex: none; }
.m-top.two-rows .in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 6px; }
.m-top.two-rows nav { flex: 1 0 100%; justify-content: space-between; }
.m-top.two-rows nav a, .m-top.two-rows nav button { padding-left: 5px; padding-right: 5px; }
/* Icons never shrink to make room: when the links don't fit, nav.js gives them their own row instead */
.m-top nav .nav-ico { flex: none; }
.m-top nav .nav-ico svg { display: none; max-width: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Admin pages: Applications / Briefs to review */
.sub-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--paper-2); border-radius: 999px; }
.sub-tabs a { text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); }
.sub-tabs a:hover { color: var(--ink); }
.sub-tabs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 19, 28, .12); }

.m-wrap { max-width: 760px; margin: 0 auto; padding: 36px 20px 80px; }
.m-wrap.wide { max-width: 1100px; }
.m-wrap h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.035em; }
.m-lede { color: var(--ink-2); margin: 10px 0 0; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 22px; }
.panel h2 { font-size: 22px; margin-bottom: 4px; }
.panel .hint { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.panel .videos-hint { margin: 6px 0 12px; }
.panel .videos-hint b { color: var(--ink); }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field label small { font-weight: 500; color: var(--muted); }
.field .field-hint { font-size: 13px; color: var(--muted); line-height: 1.4; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 79, 63, .12); }
.field input[readonly] { background: var(--paper); color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 4px 0 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--coral); flex: none; }
.form-msg { font-size: 14px; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.form-msg.err { background: #fff0ee; color: #a32314; }
.form-msg.ok { background: #e6f8f0; color: #0f6b47; }
.form-msg:empty { display: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.linkish { border: 0; background: none; padding: 0; color: var(--coral); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* Status */
.status-card { display: flex; gap: 18px; align-items: flex-start; }
.status-card .dot { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; }
.status-card h2 { margin-bottom: 4px; }
.status-card p { margin: 0; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.pill.draft { background: var(--paper-2); color: var(--ink-2); }
.pill.pending { background: #fff4cc; color: #8a5a00; }
.pill.approved { background: #e6f8f0; color: #0f6b47; }
.pill.rejected { background: #fff0ee; color: #a32314; }
.pill.role { background: #eee9ff; color: #4a3a99; }
.pill.flag { background: #e1f4ff; color: #0b5a8a; }
.pill.music { background: #16131c; color: #ffc53d; } /* artists, managers and labels on admin.html */

/* Next steps (account page, once submitted) */
.next-steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; }
.next-steps li::before { content: counter(step); grid-row: span 2; width: 34px; height: 34px; border-radius: 11px; background: var(--sun); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.next-steps b { font-size: 16px; }
.next-steps span { color: var(--ink-2); font-size: 15px; }
.brief-preview { margin-top: 20px; background: var(--paper); border-radius: 16px; padding: 16px 18px; }
.brief-preview small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.brief-preview p { margin: 6px 0; white-space: pre-line; }
.brief-preview span { color: var(--muted); font-size: 14px; }
.invite { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.invite b { display: block; }
.invite span { color: var(--muted); font-size: 14.5px; }
.invite-link { display: flex; gap: 8px; }
.invite-link input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-2); }
.edit-toggle { margin-top: 18px; text-align: center; }

/* Sign-in card */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 34px 30px; box-shadow: var(--shadow); }
.auth-card .logo { margin-bottom: 26px; }
.auth-card h1 { font-size: 34px; letter-spacing: -0.03em; margin-bottom: 6px; }
.auth-card > p { color: var(--ink-2); margin: 0 0 22px; }
.auth-card .btn { width: 100%; padding: 15px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.auth-foot a { color: var(--coral); font-weight: 600; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 14px 0; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* Admin */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; text-align: left; transition: border-color .15s; }
.stat b { display: block; font-family: var(--font-display); font-size: 32px; letter-spacing: -0.03em; line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }
.stat[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 22px 0 12px; }
/* Form fields stay at 16px or more: iPhones zoom in on anything smaller when it's tapped */
.toolbar input, .toolbar select { font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.toolbar input { flex: 1; min-width: 180px; }
.toolbar .btn { margin-left: auto; }
.people { display: grid; gap: 8px; }
.person { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; transition: border-color .15s; }
.person:hover { border-color: #cfc6ba; }
.person .avatar { width: 42px; height: 42px; font-size: 14px; }
.person b { display: block; font-size: 16px; }
.person .sub { color: var(--muted); font-size: 14px; }
.person .tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; border: 2px dashed var(--line); border-radius: 18px; }

.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(22, 19, 28, .45); }
.drawer .sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--paper); overflow-y: auto; padding: 26px 26px 40px; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .4); }
.drawer .close { float: right; border: 0; background: var(--paper-2); width: 38px; height: 38px; border-radius: 50%; font-size: 20px; line-height: 1; }
.drawer h2 { font-size: 28px; margin: 4px 0 6px; }
.facts { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; margin: 20px 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { color: var(--coral); }
.review-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.notice { background: #fff4cc; border: 1px dashed #e0b23e; color: #6b4600; border-radius: 16px; padding: 16px 18px; font-size: 15px; }

@media (max-width: 480px) { .m-top .logo > span:last-child { display: none; } }
@media (max-width: 640px) {
  .m-top .in { padding: 0 12px; }
  .m-top nav { gap: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .m-top nav::-webkit-scrollbar { display: none; }
  .m-top nav a, .m-top nav button { font-size: 13.5px; padding: 8px 5px; }
  .m-top nav .nav-ico svg { display: block; }
  .m-top nav .nav-ico span { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .panel { padding: 22px 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: auto 1fr; }
  .person .tags { grid-column: 1 / -1; justify-content: flex-start; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .toolbar .btn { margin-left: 0; }
}
