/* First-class object pages and focused record editing */
.object-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;padding:clamp(28px,5vw,48px);margin-bottom:20px;border-radius:22px;background:linear-gradient(135deg,#174d35 0%,#113c2a 100%);color:#fff;box-shadow:0 16px 36px rgba(16,36,27,.13)}
.object-hero-copy{min-width:0}.object-hero .eyebrow{margin:0 0 8px}.object-hero h1{max-width:16ch;margin:0;font:700 clamp(2.7rem,7vw,5rem)/.94 Georgia,'Times New Roman',serif;letter-spacing:-.045em;overflow-wrap:anywhere}.object-hero-copy>p:last-child{max-width:58ch;margin:14px 0 0;color:#dce9e0;font-size:1.05rem}
.object-hero-actions{display:flex;align-items:flex-start;justify-content:flex-end;flex-wrap:wrap;gap:9px}.object-hero .button.quiet{border-color:rgba(255,255,255,.38);background:transparent;color:#fff!important}.object-hero .button.quiet:hover{background:rgba(255,255,255,.1)}
.object-metrics{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:8px 0 0;overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(255,255,255,.15)}.object-metrics div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:14px 16px;background:rgba(8,34,23,.44)}.object-metrics dt{color:#bcd3c6;font-size:.7rem;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.object-metrics dd{margin:0;font:700 1.45rem/1 Georgia,'Times New Roman',serif}
.league-overview-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:20px;align-items:start}.league-overview-grid>.card{height:100%}.section-heading-row>div>p:last-child{margin-bottom:0}.league-events .empty-state{padding:24px 0}.compact-member-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.compact-member-row:last-child{border-bottom:0}.compact-member-row .member-avatar{width:42px;height:42px;flex-basis:42px}.compact-member-row form{margin:0}
.invitation-workspace{padding:clamp(22px,4vw,34px)}.invitation-workspace-heading{align-items:center;padding-bottom:20px;border-bottom:1px solid var(--line)}.invitation-workspace-heading h2{font-size:clamp(1.8rem,4vw,2.6rem)}.invitation-workspace-heading p{max-width:62ch;margin:.45rem 0 0;color:#5d6a62}.invitation-list{display:grid}.invitation-row{padding:18px 0;border-bottom:1px solid var(--line)}.invitation-list>.invitation-row:last-child{border-bottom:0}.invitation-row-main{display:flex;align-items:center;justify-content:space-between;gap:18px}.invitation-title-line{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.invitation-title-line h3{margin:0;font:700 1.25rem/1.2 Georgia,'Times New Roman',serif}.invitation-scope,.invitation-summary{margin:.35rem 0 0}.invitation-summary{color:#46584d;font-size:.86rem}.invitation-row-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.invitation-details{margin-top:8px}.invitation-details>summary,.invitation-archive>summary{display:inline-flex;min-height:44px;align-items:center;color:var(--green);font-size:.85rem;font-weight:800;cursor:pointer}.invitation-details>summary::marker{content:''}.compact-facts{margin-top:8px}.invitation-archive{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.invitation-archive>summary{gap:8px;font-size:.95rem}.invitation-archive>summary span{display:grid;min-width:24px;height:24px;place-items:center;border-radius:999px;background:#e8eddc;font-size:.72rem}.approval-queue{margin:18px 0;padding:18px;border:1px solid #d8bd76;border-radius:14px;background:#fff9e9}.approval-queue h3{margin:.15rem 0}.approval-queue .eyebrow{color:#765b27}.approval-queue .request-row:last-child{border-bottom:0}.record-action-menu{position:relative}.record-action-menu>summary{list-style:none}.record-action-menu>summary::-webkit-details-marker{display:none}.record-action-panel{position:absolute;z-index:20;top:calc(100% + 6px);right:0;min-width:170px;padding:7px;border:1px solid #c7cbbf;border-radius:11px;background:#fff;box-shadow:0 15px 35px rgba(16,36,27,.18)}.record-action-panel form{margin:0}.record-action-panel .text-button{width:100%;justify-content:flex-start;padding:9px 10px}.league-admin-footer{display:flex;justify-content:space-between;gap:16px;margin:4px 0 18px;padding:10px 4px;color:#627068;font-size:.86rem}.league-admin-footer a{color:var(--green);font-weight:800}.access-callout{display:flex;align-items:center;justify-content:space-between;gap:22px}.access-callout h2,.access-callout p{margin:.15rem 0}.access-callout>div>p:last-child{color:#5d6a62}
.record-dialog{width:min(620px,calc(100vw - 28px));max-height:min(88dvh,820px);padding:0;border:0;border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 28px 80px rgba(6,24,15,.35);overflow:hidden}.record-dialog-wide{width:min(780px,calc(100vw - 28px))}.record-dialog::backdrop{background:rgba(8,23,15,.7);backdrop-filter:blur(3px)}.record-dialog-shell{display:grid;grid-template-rows:auto minmax(0,1fr);max-height:inherit}.record-dialog-header{display:flex;height:auto;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 26px 18px;border-bottom:1px solid var(--line);background:#faf9f4;color:var(--ink)}.record-dialog-header .eyebrow{margin:0 0 3px;color:var(--green)}.record-dialog-header h2{margin:0;font:700 clamp(1.8rem,4vw,2.35rem)/1.05 Georgia,'Times New Roman',serif}.record-dialog-header p:last-child{margin:.45rem 0 0;color:#5e6b63}.record-dialog-body{padding:22px 26px 26px;overflow-y:auto}.record-dialog-body>label:first-child,.record-edit-form>label:first-child{margin-top:0}.record-dialog-actions{position:sticky;bottom:-26px;display:flex;justify-content:flex-end;gap:10px;margin:24px -26px -26px;padding:16px 26px;border-top:1px solid var(--line);background:#fff}.icon-button{display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;border:0;border-radius:50%;background:transparent;color:#4b5a51;font:400 1.75rem/1 system-ui;cursor:pointer}.icon-button:hover{background:#e9ede3}.field-help{margin:-6px 0 14px;color:#5f6d64;font-size:.88rem}.dialog-cancel-after-form{margin-top:14px}.record-dialog .invite-builder{margin:0}.record-dialog .invite-builder>.button{margin-top:8px}.profile-dialog-photo{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center;padding-bottom:22px;border-bottom:1px solid var(--line)}.profile-dialog-photo h3{margin:0}.profile-dialog-photo .field-help{margin:3px 0 10px}.profile-dialog-photo+.record-edit-form{padding-top:18px}.profile-summary-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:20px;align-items:center}.profile-summary-copy{display:grid;gap:3px;min-width:0}.profile-summary-copy strong{font:700 1.35rem/1.2 Georgia,'Times New Roman',serif}.profile-summary-copy span{color:#526159;overflow-wrap:anywhere}.profile-summary-copy p{margin:.35rem 0 0;color:#657169;font-size:.88rem}
@media(max-width:760px){.object-hero{grid-template-columns:1fr;padding:28px 22px}.object-hero-actions{justify-content:flex-start;order:2}.object-metrics{grid-template-columns:repeat(2,1fr);order:3}.league-overview-grid{grid-template-columns:1fr}.invitation-row-main{align-items:flex-start;flex-direction:column}.invitation-row-actions{width:100%}.invitation-row-actions>.button{flex:1}.record-action-menu{flex:1}.record-action-menu>summary{width:100%}.invitation-workspace-heading,.access-callout{align-items:flex-start;flex-direction:column}.invitation-workspace-heading>.button,.access-callout>.button{width:100%}.compact-member-row{align-items:flex-start}.profile-summary-row{grid-template-columns:auto minmax(0,1fr)}.profile-summary-row>.button{grid-column:1/-1;width:100%}}
@media(max-width:560px){.record-dialog{width:100vw;max-width:none;max-height:100dvh;height:100dvh;border-radius:0}.record-dialog-shell{height:100dvh}.record-dialog-header{padding:20px 18px 15px}.record-dialog-body{padding:18px}.record-dialog-actions{bottom:-18px;margin:22px -18px -18px;padding:14px 18px}.record-dialog-actions .button{flex:1}.profile-dialog-photo{grid-template-columns:72px minmax(0,1fr);align-items:start}.profile-dialog-photo .profile-avatar-large{width:72px;height:72px}.object-hero h1{font-size:clamp(2.45rem,13vw,3.5rem)}.object-metrics div{padding:12px}.invitation-workspace{padding:19px}.invitation-title-line{align-items:flex-start;flex-direction:column;gap:6px}.compact-facts{grid-template-columns:1fr 1fr}.approval-queue{padding:15px}.approval-queue .request-row{align-items:flex-start;flex-direction:column}.approval-queue .button-row{margin-top:8px}.league-admin-footer{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.record-dialog::backdrop{backdrop-filter:none}}
