:root {
  --orange: #f58220;
  --orange-dark: #cf5f00;
  --ink: #111111;
  --muted: #666b73;
  --line: #e6e7ea;
  --surface: #f6f7f9;
  --white: #ffffff;
  --green: #247a52;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Montserrat", Arial, sans-serif;
}

button, input { font: inherit; }
a { color: inherit; }

.partner-shell { min-height: 100vh; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100vh;
  background: var(--ink);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 56px clamp(32px, 6vw, 96px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(17, 17, 17, .97), rgba(17, 17, 17, .72)),
    url("images/kanto-talks-hero.jpg") center/cover;
}

.login-story::after {
  position: absolute;
  right: -180px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 76px solid rgba(245, 130, 32, .2);
  border-radius: 50%;
  content: "";
}

.story-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 680px);
}

.brand-logo { width: 178px; height: auto; }
.story-copy { margin: auto 0; padding: 70px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--orange);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before { width: 28px; height: 2px; background: currentColor; content: ""; }
.story-copy h1 { max-width: 600px; margin: 0 0 22px; font-size: clamp(2.6rem, 5vw, 5.6rem); line-height: .98; letter-spacing: -.045em; }
.story-copy p { max-width: 560px; margin: 0; color: #d7d7d7; font-size: 1.08rem; line-height: 1.8; }

.story-points { display: flex; flex-wrap: wrap; gap: 12px 24px; color: #d7d7d7; font-size: .84rem; font-weight: 600; }
.story-points span::before { margin-right: 8px; color: var(--orange); content: "●"; }

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px clamp(24px, 5vw, 76px);
  background: var(--white);
}

.login-card { width: min(100%, 470px); }
.mobile-logo { display: none; width: 154px; margin-bottom: 40px; filter: invert(1); }
.login-card h2 { margin: 0 0 10px; font-size: clamp(2rem, 3vw, 2.75rem); letter-spacing: -.035em; }
.login-lead { margin: 0 0 34px; color: var(--muted); line-height: 1.7; }

.field { margin-bottom: 20px; }
.field-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.field label { font-size: .82rem; font-weight: 700; }
.field a { color: var(--orange-dark); font-size: .78rem; font-weight: 700; text-decoration: none; }
.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #d9dadd;
  border-radius: 10px;
  outline: 0;
  transition: .2s;
}
.field input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245, 130, 32, .12); }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 72px; }
.password-toggle { position: absolute; top: 50%; right: 14px; border: 0; color: var(--muted); background: transparent; font-size: .75rem; font-weight: 700; cursor: pointer; transform: translateY(-50%); }

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 10px 22px rgba(245, 130, 32, .24);
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
}
.primary-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.primary-btn:disabled { cursor: wait; opacity: .7; transform: none; }
.login-note { margin: 24px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.6; text-align: center; }
.login-note a { color: var(--orange-dark); font-weight: 700; text-decoration: none; }

.demo-message { display: none; margin: 18px 0 0; padding: 13px 15px; border-radius: 8px; color: #75410e; background: #fff3e8; font-size: .8rem; line-height: 1.5; }
.demo-message.show { display: block; }
.demo-message[data-type="error"] { color: #8d2525; background: #fdecec; }
.demo-message[data-type="success"] { color: #1d6947; background: #e9f6ef; }

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 30px 22px; color: var(--white); background: var(--ink); }
.sidebar-logo { width: 154px; margin: 0 8px 38px; }
.sidebar-label { margin: 0 10px 12px; color: #818181; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.side-nav { display: grid; gap: 5px; }
.side-nav a { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 9px; color: #c9c9c9; font-size: .84rem; font-weight: 650; text-decoration: none; }
.side-nav a:hover, .side-nav a.active { color: var(--white); background: rgba(245, 130, 32, .15); }
.side-nav a.active { box-shadow: inset 3px 0 var(--orange); }
.nav-icon { display: grid; width: 24px; height: 24px; place-items: center; color: var(--orange); font-size: 1rem; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; border-top: 1px solid #303030; }
.account-menu { position: relative; }
.member-chip { display: flex; align-items: center; width: 100%; gap: 11px; padding: 8px; border: 0; border-radius: 10px; color: var(--white); background: transparent; text-align: left; cursor: pointer; transition: .2s; }
.member-chip:hover, .member-chip[aria-expanded="true"] { background: #202020; }
.avatar { display: grid; flex: 0 0 40px; height: 40px; border-radius: 50%; color: var(--white); background: var(--orange); font-size: .78rem; font-weight: 800; place-items: center; }
.account-summary { display: block; min-width: 0; flex: 1; }
.member-chip strong, .member-chip .member-role { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-chip strong { font-size: .76rem; }
.member-chip .member-role { margin-top: 3px; color: #939393; font-size: .67rem; }
.account-chevron { flex: 0 0 auto; color: #898989; font-size: .8rem; transition: transform .2s; }
.member-chip[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }
.account-popover { position: absolute; right: 0; bottom: calc(100% + 10px); left: 0; z-index: 5; padding: 16px; border: 1px solid #393939; border-radius: 12px; color: var(--white); background: #202020; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.account-popover p { margin: 0 0 7px; color: #8f8f8f; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.account-popover > strong, .account-popover > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-popover > strong { font-size: .78rem; }
.account-popover > span { margin-top: 5px; color: #ababab; font-size: .65rem; }
.account-logout { display: flex; align-items: center; justify-content: center; width: 100%; gap: 8px; margin-top: 14px; padding: 10px 12px; border: 1px solid #4a4a4a; border-radius: 8px; color: var(--white); background: #151515; font-size: .7rem; font-weight: 800; cursor: pointer; }
.account-logout:hover { border-color: var(--orange); color: var(--orange); }
.account-logout:disabled { cursor: wait; opacity: .65; }

.dashboard-main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 15px clamp(22px, 4vw, 54px); border-bottom: 1px solid var(--line); background: var(--white); }
.topbar h1 { margin: 0; font-size: 1rem; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.status-pill { padding: 8px 12px; border-radius: 999px; color: var(--green); background: #eaf6f0; font-size: .69rem; font-weight: 800; }
.icon-btn { display: grid; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--white); cursor: pointer; place-items: center; }
.mobile-menu { display: none; }

.dashboard-content { width: min(100%, 1450px); margin: 0 auto; padding: clamp(26px, 4vw, 54px); }
.welcome { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.welcome h2 { margin: 4px 0 9px; font-size: clamp(1.9rem, 3vw, 3rem); letter-spacing: -.04em; }
.welcome p { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.65; }
.partner-level { min-width: 210px; padding: 17px 18px; border: 1px solid #f3d0b2; border-radius: 12px; background: #fff8f2; }
.partner-level span { display: block; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.partner-level strong { display: block; margin-top: 7px; color: var(--orange-dark); font-size: 1rem; }
.partner-level small { display: block; margin-top: 7px; color: var(--orange-dark); font-size: .65rem; font-weight: 850; letter-spacing: .04em; }

.hero-card { position: relative; display: grid; grid-template-columns: 1.35fr .65fr; min-height: 270px; margin-bottom: 34px; overflow: hidden; border-radius: 18px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); }
.hero-card-copy { z-index: 1; padding: clamp(30px, 5vw, 58px); }
.hero-card .eyebrow { margin-bottom: 14px; }
.hero-card h3 { max-width: 620px; margin: 0 0 15px; font-size: clamp(1.65rem, 3vw, 2.7rem); line-height: 1.15; letter-spacing: -.035em; }
.hero-card p { max-width: 600px; margin: 0 0 26px; color: #c7c7c7; line-height: 1.65; }
.outline-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 17px; border: 1px solid #555; border-radius: 9px; color: var(--white); background: transparent; font-size: .78rem; font-weight: 800; text-decoration: none; }
.hero-art { position: relative; min-height: 230px; background: linear-gradient(145deg, rgba(245,130,32,.25), transparent); }
.hero-art::before, .hero-art::after { position: absolute; border-radius: 50%; content: ""; }
.hero-art::before { top: 30px; right: 34px; width: 190px; height: 190px; border: 34px solid var(--orange); }
.hero-art::after { right: 150px; bottom: -75px; width: 180px; height: 180px; border: 1px solid #646464; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 18px; }
.section-head h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.section-head a { color: var(--orange-dark); font-size: .75rem; font-weight: 800; text-decoration: none; }

.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 38px; }
.media-hub-feature { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); overflow: hidden; margin-bottom: 30px; border: 1px solid #efd5c0; border-radius: 24px; background: #fff9f4; box-shadow: 0 18px 45px rgba(17,17,17,.08); }
.media-hub-visual { min-height: 330px; background: #111; }
.media-hub-visual img, .media-hub-preview { display: block; width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.media-hub-copy { display: flex; flex-direction: column; justify-content: center; padding: 38px; }
.media-hub-copy h3 { margin: 7px 0 13px; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; }
.media-hub-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.media-hub-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 25px; }
.media-hub-topics span { padding: 8px 11px; border: 1px solid #efc6a4; border-radius: 999px; background: #fff; color: #6e3b16; font-size: .67rem; font-weight: 750; }
.media-hub-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; width: fit-content; min-width: 250px; padding: 15px 18px; border: 0; border-radius: 11px; background: var(--orange); color: #111; font: inherit; font-size: .76rem; font-weight: 850; text-decoration: none; cursor: pointer; transition: .2s; }
.media-hub-button:hover { background: #eb6b00; transform: translateY(-2px); }
.partner-video-library { margin: -8px 0 32px; padding: 28px; border: 1px solid #2e2e2e; border-radius: 22px; background: #111; color: #fff; box-shadow: 0 18px 45px rgba(17,17,17,.16); }
.partner-video-library[hidden] { display: none !important; }
.video-library-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.video-library-head h3 { margin: 5px 0 7px; font-size: 1.45rem; }
.video-library-head p:not(.eyebrow) { margin: 0; color: #aaa; font-size: .77rem; }
.video-library-close { padding: 9px 12px; border: 1px solid #444; border-radius: 9px; background: #222; color: #fff; font: inherit; font-size: .68rem; cursor: pointer; }
.video-library-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(255px, .75fr); gap: 24px; align-items: start; }
.video-player-panel { overflow: hidden; border: 1px solid #333; border-radius: 16px; background: #080808; }
.video-player-panel video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-now-playing { display: flex; flex-direction: column; gap: 5px; padding: 15px 18px 17px; }
.video-now-playing span { color: var(--orange); font-size: .61rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.video-now-playing strong { font-size: .82rem; }
.video-playlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 520px; overflow-y: auto; padding-right: 5px; }
.video-playlist-button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 9px 11px; border: 1px solid #333; border-radius: 10px; background: #1d1d1d; color: #ddd; font: inherit; font-size: .66rem; font-weight: 750; text-align: left; cursor: pointer; }
.video-playlist-button span { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 50%; background: #333; color: #fff; font-size: .6rem; }
.video-playlist-button:hover, .video-playlist-button.is-active { border-color: var(--orange); background: #342013; color: #fff; }
.video-playlist-button.is-active span { background: var(--orange); color: #111; }
.resource-card { display: flex; flex-direction: column; min-height: 235px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); transition: .2s; }
.resource-card:hover { border-color: #f3c7a2; box-shadow: 0 12px 30px rgba(17,17,17,.07); transform: translateY(-2px); }
.resource-type { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.file-icon { display: grid; width: 43px; height: 43px; border-radius: 11px; color: var(--orange-dark); background: #fff0e3; font-size: .73rem; font-weight: 900; place-items: center; }
.tag { padding: 6px 9px; border-radius: 999px; color: var(--muted); background: var(--surface); font-size: .61rem; font-weight: 800; text-transform: uppercase; }
.resource-card h4 { margin: 0 0 9px; font-size: .96rem; line-height: 1.42; }
.resource-card p { margin: 0 0 22px; color: var(--muted); font-size: .75rem; line-height: 1.58; }
.resource-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.resource-action span { color: var(--muted); font-size: .66rem; }
.resource-action .resource-secondary-download { color: var(--muted); font-size: .63rem; font-weight: 750; text-decoration: none; }
.resource-action .resource-secondary-download:hover { color: var(--orange-dark); text-decoration: underline; }
.download-btn { border: 0; color: var(--orange-dark); background: transparent; font-size: .74rem; font-weight: 850; text-decoration: none; cursor: pointer; }

.onboarding-form-panel { margin: -10px 0 38px; padding: 30px; border-color: #efc49f; background: linear-gradient(145deg, #fffaf6, #fff); }
.onboarding-form-panel[hidden] { display: none !important; }
.onboarding-form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.onboarding-form-head .eyebrow { margin: 0 0 7px; }
.onboarding-form-head h3 { margin: 0 0 8px; font-size: 1.35rem; }
.onboarding-form-head p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.6; }
.onboarding-form-close { padding: 9px 12px; border: 1px solid #ddd; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: .68rem; cursor: pointer; }
.partner-onboarding-form { display: grid; gap: 22px; }
.partner-onboarding-form fieldset { margin: 0; padding: 22px; border: 1px solid #e6ddd5; border-radius: 13px; background: #fff; }
.partner-onboarding-form legend { padding: 0 9px; color: var(--ink); font-size: .82rem; font-weight: 850; }
.onboarding-fields { display: grid; gap: 16px; }
.onboarding-fields.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.onboarding-fields label { display: grid; gap: 7px; color: #292929; font-size: .72rem; font-weight: 750; }
.onboarding-fields input, .onboarding-fields textarea { width: 100%; border: 1px solid #d7d7d7; border-radius: 8px; padding: 11px 12px; background: #fff; color: var(--ink); font: inherit; font-size: .76rem; }
.onboarding-fields input { min-height: 44px; }
.onboarding-fields input[readonly] { border-color: #efc49f; background: #fff7ef; color: var(--orange-dark); font-weight: 850; }
.onboarding-fields textarea { resize: vertical; }
.onboarding-fields input:focus, .onboarding-fields textarea:focus { outline: 3px solid rgba(245,130,32,.16); border-color: var(--orange); }
.onboarding-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.onboarding-checks label { display: flex; align-items: flex-start; gap: 9px; color: #444; font-size: .7rem; line-height: 1.5; }
.onboarding-checks input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--orange); }
.onboarding-checks.acknowledgements { grid-template-columns: 1fr; }
.signature-fields { margin-top: 20px; }
.onboarding-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.onboarding-submit-row p { margin: 0; color: var(--muted); font-size: .68rem; }
.onboarding-submit { min-width: 210px; border-color: var(--orange); color: #111; background: var(--orange); cursor: pointer; }
.onboarding-submit:hover { border-color: #df6d0b; background: #df6d0b; transform: translateY(-1px); }
.form-honeypot { position: absolute !important; left: -9999px !important; }

.company-details { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: -10px 0 38px; padding: 24px 26px; border: 1px solid #f0c9a8; border-radius: 15px; background: linear-gradient(110deg, #fff8f2, #fff); }
.company-details-copy { display: flex; align-items: center; gap: 18px; }
.company-mark { display: grid; flex: 0 0 54px; height: 54px; border-radius: 13px; color: var(--white); background: var(--ink); box-shadow: inset 0 -3px var(--orange); font-size: .8rem; font-weight: 900; letter-spacing: .08em; place-items: center; }
.company-details .eyebrow { margin: 0 0 6px; font-size: .6rem; }
.company-details h3 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.company-nzbn { margin: 6px 0 0; color: var(--muted); font-size: .75rem; }
.company-nzbn strong { color: var(--ink); letter-spacing: .025em; }
.company-ird { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.company-ird strong { color: var(--ink); letter-spacing: .025em; }
.company-download { display: flex; align-items: center; min-width: 290px; gap: 12px; padding: 12px 14px; border: 1px solid #e2a875; border-radius: 10px; color: var(--ink); background: var(--white); text-decoration: none; transition: .2s; }
.company-download:hover { border-color: var(--orange); box-shadow: 0 8px 22px rgba(207,95,0,.12); transform: translateY(-1px); }
.company-download-icon { display: grid; flex: 0 0 38px; height: 38px; border-radius: 9px; color: var(--orange-dark); background: #fff0e3; font-size: .62rem; font-weight: 900; place-items: center; }
.company-download > span:nth-child(2) { min-width: 0; flex: 1; }
.company-download strong, .company-download small { display: block; }
.company-download strong { font-size: .72rem; }
.company-download small { margin-top: 4px; color: var(--muted); font-size: .62rem; }
.company-download > span:last-child { color: var(--orange-dark); font-weight: 900; }

.lower-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.panel h3 { margin: 0 0 20px; font-size: 1rem; }
.checklist { display: grid; gap: 15px; }
.check-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; }
.check { display: grid; width: 28px; height: 28px; border-radius: 8px; color: var(--green); background: #eaf6f0; font-size: .7rem; font-weight: 900; place-items: center; }
.check.pending { color: #9c6a34; background: #fff2df; }
.check-item strong, .check-item span { display: block; }
.check-item strong { font-size: .76rem; }
.check-item span { margin-top: 3px; color: var(--muted); font-size: .67rem; }
.check-item > span { margin: 0; font-weight: 700; }
.check-action { justify-self: end; padding: 8px 10px; border: 1px solid #e5a56f; border-radius: 8px; color: var(--orange-dark); background: #fff8f2; font: inherit; font-size: .62rem; font-weight: 850; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.check-action:hover { border-color: var(--orange); background: #fff0e3; }
.announcement { padding: 15px 0; border-bottom: 1px solid var(--line); }
.announcement:first-of-type { padding-top: 0; }
.announcement:last-child { padding-bottom: 0; border-bottom: 0; }
.announcement time { color: var(--orange-dark); font-size: .63rem; font-weight: 800; text-transform: uppercase; }
.announcement h4 { margin: 7px 0 5px; font-size: .8rem; }
.announcement p { margin: 0; color: var(--muted); font-size: .69rem; line-height: 1.55; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 360px; padding: 15px 18px; border-radius: 10px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); font-size: .78rem; line-height: 1.5; opacity: 0; pointer-events: none; transform: translateY(14px); transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .media-hub-feature { grid-template-columns: 1fr; }
  .media-hub-visual, .media-hub-visual img, .media-hub-preview { min-height: 260px; max-height: 380px; }
  .video-library-layout { grid-template-columns: 1fr; }
  .video-playlist { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 280px; }
  .login-shell { grid-template-columns: 1fr 470px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card { grid-template-columns: 1fr .42fr; }
}

@media (max-width: 820px) {
  .login-shell { display: block; background: var(--white); }
  .login-story { display: none; }
  .login-panel { padding: 42px 24px; }
  .mobile-logo { display: block; filter: none; }
  .dashboard-layout { display: block; }
  .sidebar { position: fixed; z-index: 30; width: 268px; transform: translateX(-100%); transition: .25s; }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .mobile-menu { display: grid; }
  .topbar { padding-inline: 18px; }
  .welcome { align-items: stretch; flex-direction: column; }
  .partner-level { min-width: 0; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-art { position: absolute; inset: 0 0 0 auto; width: 38%; opacity: .55; }
  .lower-grid { grid-template-columns: 1fr; }
  .company-details { align-items: stretch; flex-direction: column; }
  .company-download { min-width: 0; width: 100%; }
}

@media (max-width: 580px) {
  .partner-video-library { padding: 18px; }
  .video-library-head h3 { font-size: 1.2rem; }
  .video-playlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-grid { grid-template-columns: 1fr; }
  .dashboard-content { padding: 24px 16px 42px; }
  .hero-card-copy { padding: 30px 24px; }
  .hero-art { display: none; }
  .status-pill { display: none; }
  .section-head { align-items: start; flex-direction: column; }
  .onboarding-form-panel { padding: 22px 16px; }
  .onboarding-form-head, .onboarding-submit-row { align-items: stretch; flex-direction: column; }
  .onboarding-fields.two-column, .onboarding-checks { grid-template-columns: 1fr; }
  .onboarding-submit { width: 100%; }
  .check-item { grid-template-columns: 30px 1fr; }
  .check-action { grid-column: 2; justify-self: start; }
}
.invite-panel{margin-top:28px}
.invite-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:16px;align-items:end;margin-top:20px}
.invite-form label{display:grid;gap:8px;color:#242424;font-size:.82rem;font-weight:700}
.invite-form label span{color:#777;font-weight:500}
.invite-form input{min-height:46px;border:1px solid #d7d7d7;border-radius:7px;padding:0 14px;background:#fff;color:#171717;font:inherit;font-weight:500}
.invite-form input:focus{outline:2px solid rgba(245,130,32,.28);border-color:#f58220}
.invite-form .outline-btn{min-height:46px;white-space:nowrap}
.invite-message{grid-column:1/-1;min-height:22px;margin:0;font-size:.9rem;font-weight:600}
.invite-message[data-type="success"]{color:#187343}
.invite-message[data-type="error"]{color:#b3261e}
.invite-note{margin:8px 0 0;color:#777;font-size:.82rem}
@media(max-width:850px){.invite-form{grid-template-columns:1fr}.invite-form .outline-btn{width:100%}}
