:root {
  --ink:#152e28; --muted:#50635b; --paper:#f5f6f0; --green:#126650;
  --deep:#123e35; --line:#d9e1d8; --mint:#bfebc8;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); line-height:1.5; }
[hidden] { display:none!important; }
button,input,select { font:inherit; }
a { color:var(--green); }
button {
  border:1px solid var(--green); border-radius:9px; background:var(--green); color:#fff;
  min-height:44px; padding:9px 16px; font-weight:650; cursor:pointer;
}
button.secondary { background:#fff; color:var(--deep); }
:focus-visible { outline:3px solid #26856d; outline-offset:3px; }

.seven-admin {
  display:grid; grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);
  grid-template-rows:auto 1fr; width:min(100%,1600px); padding:18px; margin:0 auto;
  min-height:100vh; min-height:100svh;
}
.seven-photo {
  position:relative; isolation:isolate; overflow:hidden; grid-column:1; grid-row:1/3;
  margin:0; border-radius:22px; min-height:590px; display:flex; align-items:end;
  padding:clamp(28px,4.3vw,70px); background:#143b30; color:white;
}
.seven-photo img {
  position:absolute; z-index:-2; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:50% 45%; filter:saturate(.84);
}
.seven-photo::after {
  position:absolute; z-index:-1; inset:0; content:"";
  background:linear-gradient(0deg,rgba(6,34,26,.98) 1%,rgba(6,33,25,.74) 25%,rgba(9,43,33,.08) 64%),
    linear-gradient(90deg,rgba(7,35,27,.25),transparent 68%);
}
.seven-photo figcaption { display:grid; gap:11px; }
.seven-photo strong { font-size:clamp(3.35rem,7.25vw,7.3rem); font-weight:800; line-height:.88; letter-spacing:-.08em; }
.seven-photo figcaption span { color:var(--mint); font-size:1rem; font-weight:680; margin-left:3px; }
.seven-admin-header {
  grid-column:2; grid-row:1; display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:12px clamp(18px,4.3vw,70px) 0; min-height:66px;
}
.seven-brand { display:flex; align-items:center; }
.seven-brand img { display:block; width:96px; height:67px; object-fit:contain; }
.seven-back {
  display:inline-flex; align-items:center; gap:10px; font-size:.875rem;
  text-decoration:none; color:var(--deep); font-weight:650; min-height:44px;
}
.seven-back::before {
  content:""; display:block; width:7px; height:7px; border:solid currentColor;
  border-width:0 0 1.5px 1.5px; transform:rotate(45deg); flex:none;
}
.seven-back:hover { text-decoration:underline; text-underline-offset:4px; }
.seven-auth {
  grid-column:2; grid-row:2; align-self:center; width:min(100%,488px);
  margin:0 auto; padding:36px clamp(22px,3.8vw,50px) 62px;
}
.seven-auth h1,.seven-dashboard h1 {
  margin:0 0 12px; font-size:clamp(2.15rem,3.8vw,3.4rem); line-height:1.05;
  font-weight:780; letter-spacing:-.055em;
}
.seven-auth-intro { color:var(--muted); margin:0 0 27px; font-size:1rem; }
.seven-auth form { display:grid; gap:17px; }
.seven-auth label { display:block; font-size:.875rem; font-weight:700; margin-bottom:6px; }
.seven-auth input {
  width:100%; min-height:52px; border-radius:10px; padding:10px 13px;
  border:1px solid #b5c5ba; background:#fff; color:var(--ink); font-size:1rem;
}
.seven-auth input::placeholder { color:#566861; opacity:1; }
.seven-auth input:focus { border-color:#26856d; }
.seven-password { position:relative; }
.seven-password input { padding-right:86px; }
.seven-auth .seven-link-button {
  border:0; border-radius:5px; background:transparent; color:#165a47;
  font-size:.875rem; padding:8px 4px; min-height:44px;
}
.seven-link-button:hover:not(:disabled) { text-decoration:underline; text-underline-offset:4px; }
.seven-link-button:disabled { opacity:.6; cursor:wait; }
.seven-auth .seven-toggle-password { position:absolute; top:4px; right:9px; }
.seven-auth-controls { display:grid; gap:3px; margin-top:2px; }
.seven-auth .seven-submit {
  border:0; border-radius:10px; min-height:52px; width:100%; background:#145c48;
  font-size:1rem;
}
.seven-submit:hover:not(:disabled) { background:#0e4838; }
.seven-submit:disabled { opacity:.65; cursor:wait; }
.seven-auth-status {
  margin:13px 0 0; font-size:.875rem; color:var(--muted); line-height:1.45;
}
.seven-auth-status:empty { display:none; }
.seven-auth #retryAdmin { font-size:.875rem; display:inline-block; margin-top:10px; }
.seven-verification h2 { margin:8px 0; font-size:1.2rem; }
.seven-verification p { margin:6px 0 17px; color:var(--muted); }

.seven-dashboard {
  grid-column:1/-1; grid-row:3; width:min(1120px,100%); margin:0 auto 50px;
}
.seven-admin:has(#management:not([hidden])) {
  display:block; width:min(1180px,100%); padding:24px clamp(16px,4vw,36px) 0;
}
.seven-admin:has(#management:not([hidden])) .seven-photo,
.seven-admin:has(#management:not([hidden])) .seven-auth-heading { display:none; }
.seven-admin:has(#management:not([hidden])) .seven-admin-header {
  padding:0 0 12px; border-bottom:1px solid var(--line); margin-bottom:20px;
}
.seven-admin:has(#management:not([hidden])) .seven-auth { width:100%; padding:0 0 9px; }
.seven-admin:has(#management:not([hidden])) .seven-auth-status { margin:0; }
.seven-dashboard h1 { font-size:clamp(2rem,4.5vw,3rem); }
.seven-dashboard .league-admin-nav { margin:22px 0 24px; gap:8px; }
.seven-dashboard .league-admin-nav a {
  font-size:.9rem; border:1px solid var(--line); background:#fff;
  border-radius:8px; text-decoration:none; color:var(--deep); padding:8px 13px;
}
.seven-dashboard .league-admin-nav a:hover { background:#e4efe6; }
.seven-dashboard .league-admin-panel { border-radius:14px; padding:clamp(16px,3.4vw,27px); margin-bottom:16px; }
.seven-dashboard .league-admin-panel h2 { margin-top:0; letter-spacing:-.02em; }

@media(max-width:760px) {
  .seven-admin { display:flex; flex-direction:column; padding:12px; min-height:100svh; }
  .seven-admin-header { order:-1; padding:0 8px 10px; min-height:58px; }
  .seven-brand img { width:77px; height:54px; }
  .seven-photo { min-height:0; height:clamp(166px,35vw,245px); border-radius:16px; padding:18px 20px; }
  .seven-photo img { object-position:50% 37%; }
  .seven-photo strong { font-size:clamp(2.45rem,8vw,4.2rem); }
  .seven-photo figcaption { gap:6px; }
  .seven-photo figcaption span { font-size:.8125rem; }
  .seven-auth { padding:25px 12px 35px; }
  .seven-auth-intro { margin-bottom:19px; }
  .seven-auth form { gap:14px; }
}
@media(max-width:355px) {
  .seven-back { font-size:.78rem; gap:6px; }
  .seven-dashboard .league-form-grid { grid-template-columns:1fr; }
}