/* rc57: a game stage, with immutable left seats and a right-side player. */
.net-theatre{padding:10px;max-width:560px;background:linear-gradient(150deg,#193e32,#0c271f);color:#fff5d5;border:2px solid #b5964e;overflow:hidden}.net-theatre .net-theatre-head{display:flex;justify-content:space-between;align-items:center;color:#fff5d5;text-align:left;gap:8px}.net-lot{display:flex;align-items:center;gap:9px;min-width:0}.net-lot>img{width:48px;height:64px;object-fit:cover;object-position:50% 25%;border:1px solid #b5964e;border-radius:7px;flex:none}.net-lot small{font-size:10px;line-height:1.3}.net-theatre .net-lot h2{font-size:17px;margin:2px 0;line-height:1.2;overflow-wrap:anywhere}.net-theatre .net-clock{font-size:11px;text-align:center;white-space:nowrap;color:#ffe29b;background:#112e24;border:1px solid #ab8847;border-radius:20px;padding:8px}.net-theatre .net-clock-urgent{color:#ffd1b0;background:#6a3226;animation:none}
.net-arena{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr) 70px;gap:5px;margin:10px -2px 0;min-height:285px;border-top:1px solid #bda25855;border-bottom:1px solid #bda25855;background:radial-gradient(ellipse at 50% 80%,#d4ac4938,transparent 60%)}.net-opponents{display:grid;grid-template-rows:repeat(4,1fr);gap:4px;padding:7px 0}.net-bidder{text-align:center;position:relative;min-width:0;display:grid;grid-template-columns:39px 1fr;align-items:center;column-gap:3px;padding:4px 2px;border-radius:8px;border:1px solid transparent;background:#0a201b66}.net-face{grid-row:1/3;width:39px;height:45px;overflow:hidden;border-radius:7px;border:1px solid #c2ab74;box-shadow:0 2px 5px #0006}.net-theatre .net-face .social-mini{display:block;width:100%;height:100%;border:0;border-radius:0;margin:0;min-width:0;max-width:none;background-repeat:no-repeat}.net-bidder b{font-size:10px;line-height:1.2;overflow-wrap:anywhere}.net-bidder small{font-size:8px;line-height:1.3;color:#d0dac4}.net-bidder.is-leading{background:#c9a24233;border-color:#f8d26d}.net-bidder.is-withdrawn{opacity:.45;filter:grayscale(.9)}.net-bidder.is-heated:not(.is-leading){border-color:#df8a53}.net-empty{display:flex;justify-content:center;gap:3px;color:#769885}.net-player{align-self:center;min-width:0;text-align:center;border:1px solid #7d8453;border-radius:9px;padding:4px;background:#142b22;position:relative}.net-player.is-leading{border-color:#f8d26d;box-shadow:0 0 16px #e8c45c44}.net-player-face{height:114px;overflow:hidden;border-radius:6px;background:#dccba2}.net-player-face img{height:140px;max-width:none;width:110px;object-fit:cover;object-position:center top;margin-left:-21px}.net-player>b{font-size:12px;display:block;margin-top:5px;overflow-wrap:anywhere}.net-player>small{font-size:9px;display:block;color:#e4cf88}.net-player-word{display:block;font-size:11px;line-height:1.4;margin:7px -4px -4px;padding:5px 1px;border-radius:0 0 8px 8px;background:#e8dbb9;color:#27372d;overflow-wrap:anywhere}.net-center{position:relative;min-width:0;text-align:center;padding-top:14px;display:flex;flex-direction:column;align-items:center}.net-current-label{font-size:10px;color:#e0c78d;letter-spacing:2px}.net-theatre .net-price{display:block;background:none;border:none;border-radius:0;padding:2px 0;margin:0}.net-theatre .net-price strong{font-family:Georgia,'Noto Serif CJK JP',serif;color:#ffe291;font-size:clamp(22px,7vw,36px);line-height:1.25;letter-spacing:-1px;white-space:normal;overflow-wrap:anywhere;animation:none;text-shadow:0 2px 12px #dfb64c33}.net-leading{font-size:10px;line-height:1.4;color:#e6dcc3;margin:2px 0 5px;min-height:29px}.net-money-pile{position:relative;width:100%;height:127px;max-width:190px;margin-top:auto;perspective:400px;isolation:isolate}.net-money-pile:before{content:'';position:absolute;bottom:3px;left:5%;width:90%;height:23px;transform:rotateX(35deg);border-radius:50%;background:#c39a4c44;box-shadow:0 0 22px #b58c3255}.net-cash,.net-flying-cash{position:absolute;display:block;width:44px;height:23px;bottom:calc(10px + var(--level,0)*13px);left:calc(50% - 66px + var(--column,0)*42px);border:1px solid #63865d;background:repeating-linear-gradient(0deg,#dbe6b5 0 2px,#91a678 2px 3px);box-shadow:0 4px 0 #5a744b,1px 5px 3px #0006;transform:skewY(-8deg);border-radius:2px;z-index:calc(1 + var(--bundle,0));font-style:normal}.net-cash:after,.net-flying-cash:after{content:'';position:absolute;top:-1px;left:17px;width:8px;height:26px;background:#eee5c2;border:1px solid #c2b886}.net-cash span,.net-flying-cash span{font-size:5px;color:#456140;position:absolute;right:1px;top:4px}.net-flying-cash{opacity:0;bottom:50px;left:calc(50% - 22px);z-index:25}.net-stack-note{font-size:8px;color:#b9c9ad;margin:3px 0 9px}.net-stage-flash{position:absolute;top:110px;left:-14px;right:-14px;font-size:19px;color:#fff1b8;font-weight:900;line-height:1.2;text-shadow:0 2px 5px #000;pointer-events:none;opacity:0;z-index:30}.net-gavel{position:absolute;right:15px;bottom:20px;font-size:50px;opacity:0;z-index:26}
.net-dialogue{min-height:62px;box-sizing:border-box;margin:9px 0 5px;background:#f5ead0;color:#273c2c;border:1px solid #b49a5a;border-radius:9px;padding:6px 10px;box-shadow:0 3px 0 #0003}.net-dialogue>b{font-size:10px;color:#865d20}.net-dialogue p{font-size:13px;line-height:1.45;margin:1px 0}.net-theatre .net-standing{font-size:10px;line-height:1.4;background:#ffffff0b;border:0;color:#f1ddb2;padding:3px 5px;margin:2px 0}.net-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:7px 0}.net-theatre .net-tools button{font-size:11px;min-height:44px;padding:5px 2px;background:#19392d;color:#e9dfbd;border:1px solid #8a8451}.net-bid-dock{background:#f4ecd8;color:#203c2b;border-radius:9px;padding:9px;position:relative}.net-funds{display:flex;justify-content:space-between;gap:6px;font-size:10px;flex-wrap:wrap;margin:0}.net-funds b{font-size:12px}.net-funds small{font-size:9px}.net-theatre form{margin:6px 0 0}.net-theatre form label{font-size:11px;font-weight:700}.net-theatre form label>small{float:right;font-size:9px;font-weight:400}.net-theatre .net-bid-input{gap:5px;margin-top:4px}.net-theatre .net-bid-input input{background:#fffdf5;color:#21392b;font-size:18px;border:1px solid #afa277;min-height:44px}.net-theatre .net-bid-input button{font-size:20px;background:#fff9e9;color:#254132;border:1px solid #afa277;min-width:44px;min-height:44px}.net-theatre .net-bid-dock>button,.net-theatre form button[type=submit]{width:100%;min-height:48px;background:linear-gradient(#e3bf66,#ba8b30);border:1px solid #987026;color:#12281c;font-size:16px;font-weight:900;margin-top:7px;box-shadow:0 3px #8b6625}.net-theatre button:disabled{opacity:.5}.net-live-controls{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;margin-top:7px}.net-live-controls>span{width:100%;text-align:center;font-size:10px;color:#d7d8b9}.net-theatre .net-live-controls button{min-height:44px;font-size:11px;background:transparent;color:#e7dcc0;border:1px solid #728160}.net-help{font-size:10px;color:#cbd8bf;line-height:1.5;margin-top:5px}.net-help summary{min-height:32px;padding:8px;cursor:pointer}.net-help p{margin:4px 6px}.net-theatre[data-reduced-motion=true] *{animation:none!important}
@media(min-width:450px){.net-arena{grid-template-columns:106px minmax(0,1fr) 96px;min-height:320px}.net-face{width:50px;height:54px}.net-bidder{grid-template-columns:50px 1fr}.net-bidder b{font-size:12px}.net-bidder small{font-size:10px}.net-player-face{height:146px}.net-player-face img{height:180px;width:140px;margin-left:-23px}.net-money-pile{height:150px}.net-cash{width:50px}.net-player-word{font-size:12px}}
@media(max-width:350px){.net-arena{grid-template-columns:65px minmax(0,1fr) 61px;gap:3px}.net-bidder{grid-template-columns:32px 1fr}.net-face{width:32px;height:42px}.net-bidder b{font-size:9px}.net-player-face{height:105px}.net-player-face img{width:95px;margin-left:-20px}.net-cash{width:33px;left:calc(50% - 51px + var(--column,0)*33px)}.net-cash:after{left:12px}.net-theatre .net-price strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){.net-theatre *{animation:none!important;scroll-behavior:auto!important}}
/* rc75: acquisition ceremony and seasonal on-site catalog. */
.auction-acquisition{box-sizing:border-box;width:100%;max-width:520px;padding:18px 14px;text-align:center;color:#f7e7b8;background:radial-gradient(ellipse at 50% 35%,#376451,#102d25 75%);border:2px solid #c4a65b;border-radius:16px;overflow-wrap:anywhere}.auction-acquisition-kicker{font-family:Georgia,serif;font-size:clamp(26px,8vw,40px);font-style:italic;color:#ffe191;margin:0 0 8px;text-shadow:0 2px 8px #0008}.auction-acquisition-art{width:min(100%,280px);height:230px;margin:auto;background:radial-gradient(ellipse,#f0d68b66,transparent 70%);border-radius:50%;overflow:hidden}.auction-acquisition-art img{width:100%;height:100%;object-fit:contain}.auction-acquisition h2{font-size:clamp(19px,5.5vw,26px);line-height:1.45;color:inherit;margin:12px 0 6px}.auction-acquisition p{line-height:1.6}.auction-acquisition-price strong{display:block;font-size:28px;color:#ffe191}.auction-acquisition-copy{font-size:13px}.auction-acquisition-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.auction-acquisition-actions button{min-height:48px;white-space:normal}.auction-acquisition-actions .primary{background:#dfbd68;color:#203c2b}.net-settlement-status{font-size:13px;line-height:1.5;text-align:center;padding:10px 0}
.sale-entrances,.seasonal-sale{max-width:680px;margin:auto;overflow-wrap:anywhere}.sale-entrances>p{font-size:13px}.sale-entrance{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;margin:10px 0;border:1px solid #ac9765;border-radius:12px;background:#f6efdf;color:#283e30}.sale-entrance h4{margin:0 0 6px}.sale-entrance p{font-size:12px;margin:4px 0}.sale-entrance button{min-height:48px;flex-shrink:0}.sale-closed{font-size:12px;white-space:nowrap}.sale-venue-head{padding:22px 15px;text-align:center;background:linear-gradient(140deg,#183e31,#315b47);color:#f9e9b8;border:2px solid #c8a868;border-radius:14px}.sale-venue-head h2{color:inherit;font-size:24px;margin:6px 0}.sale-venue-head>p{font-size:12px;letter-spacing:1px;margin:5px}.sale-roster{display:grid;gap:10px;margin:12px 0}.sale-lot{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px 12px;border:1px solid #b7a580;border-radius:12px;padding:12px;background:#fffaf0;color:#293c30}.sale-select{grid-column:1/-1;display:flex;gap:10px;align-items:center;min-height:44px;cursor:pointer;font-weight:700}.sale-select input{width:24px;height:24px;accent-color:#315d44;flex:none}.sale-lot>:is(img,.sale-lot-portrait){width:90px;height:130px;object-fit:contain}.sale-lot-info h3{font-size:17px;margin:3px 0}.sale-lot-info p{font-size:12px;line-height:1.5;margin:5px 0}.sale-lot-info button{min-height:44px}.sale-start-dock{padding:12px;border-radius:12px;background:#f3e6c7;border:1px solid #b8a16c;color:#233e2d}.sale-start-dock p{font-size:12px;line-height:1.6}.sale-start-dock button{width:100%;min-height:52px;font-size:20px;background:#315c43;color:#fff}.sale-start-dock small{display:block;text-align:center;margin-top:7px}.sale-progress{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px;margin:12px 0;background:#e9f0e4;color:#24402c;border:1px solid #8ea580;border-radius:12px}.sale-progress>strong{flex:1;min-width:150px}.sale-progress>span{font-size:12px}.sale-progress progress{width:100%;height:12px;accent-color:#547e4b}.sale-progress button{min-height:44px;flex:1}.net-theatre .sale-progress button{color:#25432e;background:#fff8e4;border:1px solid #81956a}
@media(max-width:350px){.auction-acquisition{padding:12px 8px}.auction-acquisition-art{height:190px}.sale-lot{grid-template-columns:70px minmax(0,1fr);gap:8px}.sale-lot>:is(img,.sale-lot-portrait){width:70px;height:105px}.sale-entrance{padding:10px;gap:6px}.sale-venue-head h2{font-size:20px}}
.auction-acquisition-detail{margin:12px 0;text-align:left;background:#ffffff0b;padding:0 10px;border-radius:8px;font-size:13px}.auction-acquisition-detail summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.auction-acquisition-actions{grid-template-columns:1fr}
.net-loan-quote{font-size:12px;line-height:1.65;padding:9px;background:#fff8e6;border:1px solid #ba9b56;border-radius:7px}
.net-theatre .net-face{position:relative}.net-heat-badge{position:absolute;right:0;bottom:0;z-index:3;font-size:23px;line-height:1.1;filter:drop-shadow(0 1px 2px #461900);background:#3b190acc;border-radius:7px;padding:1px;pointer-events:none}.net-theatre [data-auction-settlement-retry][hidden],.net-theatre [data-auction-settlement-pending][hidden]{display:none!important}.net-theatre [data-auction-settlement-retry]>button{width:100%;min-height:48px}
/* rc80: the live price and bid controls share one phone viewport. Extra information
   uses native details; the existing auction controller pauses while it is open. */
#panel:has(.net-single-screen){width:min(100vw,580px);max-width:100vw;height:100svh;height:100dvh;max-height:100svh;max-height:100dvh;margin:auto;border-radius:0;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);box-sizing:border-box}
#panel:has(.net-single-screen)>.panel-head{min-height:44px;padding:2px 6px}
#panel:has(.net-single-screen)>.panel-head h2{font-size:14px;margin:0}
#panel:has(.net-single-screen) #panel-goal .home-goal-header{margin:0;padding:3px 7px}
#panel:has(.net-single-screen) #panel-body{flex:1;min-height:0;padding:3px;overflow-y:auto;scroll-padding-bottom:12px}
.net-single-screen{box-sizing:border-box;width:100%;max-width:none;min-height:100%;padding:6px;display:flex;flex-direction:column;gap:4px;overflow:visible;border-radius:10px}
.net-single-screen>*{flex-shrink:0}
.net-single-screen .net-lot>img{height:42px;width:34px}.net-single-screen .net-lot h2{font-size:15px;margin:0}.net-single-screen .net-lot small{font-size:10px}
.net-single-screen .net-clock{padding:7px;font-size:12px;font-weight:800}
.net-single-screen .net-arena{flex:1 0 auto;min-height:160px;max-height:215px;margin:0;grid-template-columns:96px minmax(0,1fr) 60px;gap:4px}
.net-single-screen .net-opponents{gap:2px;padding:3px 0}.net-single-screen .net-bidder{grid-template-columns:30px minmax(0,1fr);padding:1px;gap:3px}.net-single-screen .net-face{width:30px;height:32px}.net-single-screen .net-bidder b{font-size:10px}.net-single-screen .net-bidder small{font-size:8px}
.net-single-screen .net-center{padding-top:6px}.net-single-screen .net-price strong{font-size:clamp(19px,5.4vw,29px);letter-spacing:-.5px;line-height:1.2;white-space:nowrap}.net-single-screen .net-leading{font-size:10px;min-height:0;margin:3px 0}.net-single-screen .net-money-pile{height:82px;max-width:125px}.net-single-screen .net-cash{width:32px;height:18px;left:calc(50% - 48px + var(--column,0)*31px);bottom:calc(5px + var(--level,0)*9px)}.net-single-screen .net-cash:after{left:12px;height:20px;width:6px}.net-single-screen .net-stack-note{margin:2px 0;font-size:8px}.net-single-screen .net-stage-flash{top:68px;font-size:16px}
.net-single-screen .net-player{padding:2px}.net-single-screen .net-player-face{height:70px}.net-single-screen .net-player-face img{height:86px;width:70px;margin-left:-8px}.net-single-screen .net-player>b{font-size:10px;margin-top:2px}.net-single-screen .net-player-word{font-size:9px;padding:2px;margin:2px -2px -2px}
.net-single-screen .net-dialogue{min-height:0;margin:0;padding:4px 7px;max-height:64px;overflow-y:auto;overscroll-behavior:contain}.net-single-screen .net-dialogue>b{font-size:10px}.net-single-screen .net-dialogue p{font-size:12px;line-height:1.35;margin:0}
.net-single-screen .net-bid-dock{padding:6px;position:sticky;bottom:0;z-index:35;box-shadow:0 -2px 8px #071f1a55;scroll-margin-bottom:8px}
.net-single-screen .net-funds{font-size:10px;gap:2px 6px}.net-single-screen .net-funds b{font-size:11px}.net-single-screen form{margin:3px 0 0}.net-single-screen .net-bid-input{margin-top:2px;gap:3px}.net-single-screen .net-bid-input input{font-size:18px;padding:5px;min-height:44px}.net-single-screen form button[type=submit]{min-height:46px;margin-top:4px;padding:6px;font-size:16px}.net-single-screen .net-bid-warning{font-size:10px;line-height:1.3;margin:5px 0 0}
.net-single-screen .net-live-controls{margin:0;gap:3px;display:grid;grid-template-columns:1fr 1fr}.net-single-screen .net-live-controls>span{grid-column:1/-1;font-size:10px}.net-single-screen .net-live-controls button{padding:4px;min-height:44px}
.net-single-screen .net-help{margin:0;position:relative;font-size:11px}.net-single-screen .net-help>summary{min-height:44px;box-sizing:border-box;padding:11px 7px;cursor:pointer;border:1px solid #8a8451;border-radius:7px;color:#fff0c8}
.net-single-screen .net-help[open]{z-index:40}.net-single-screen .net-help-body{padding:6px;background:#12382c;border:1px solid #c1a15a;border-radius:7px;max-height:50svh;max-height:50dvh;overflow:auto;overscroll-behavior:contain}.net-single-screen .net-help[open]>.net-help-body{position:absolute;bottom:100%;left:0;right:0;box-shadow:0 -8px 24px #0009}.net-single-screen .net-help button{min-height:44px}.net-single-screen .net-tools{margin:2px 0 6px}.net-single-screen .sale-progress{margin:6px 0;padding:8px}
.net-single-screen .net-loan-quote{font-size:11px;line-height:1.4;margin:4px 0;padding:5px}
@media(max-height:740px){
 .net-single-screen{gap:3px;padding:4px}.net-single-screen .net-arena{min-height:130px;max-height:155px;grid-template-columns:88px minmax(0,1fr) 52px}.net-single-screen .net-face{height:27px;width:27px}.net-single-screen .net-bidder{grid-template-columns:27px minmax(0,1fr)}.net-single-screen .net-money-pile{height:55px;transform:scale(.8);transform-origin:center bottom}.net-single-screen .net-stack-note,.net-single-screen .net-player-word{display:none}.net-single-screen .net-player-face{height:58px}.net-single-screen .net-dialogue{max-height:45px;padding:3px 6px}.net-single-screen .net-dialogue p{font-size:11px}.net-single-screen .net-lot>img{height:32px;width:28px}.net-single-screen .net-lot small:last-child{display:none}
}
@media(max-height:590px){
 /* Keyboard/landscape: controls stay in normal scroll order, never clipped. */
 #panel:has(.net-single-screen) #panel-goal{display:none}.net-single-screen{min-height:0}.net-single-screen .net-arena{min-height:100px;max-height:115px;grid-template-columns:100px minmax(0,1fr)}.net-single-screen .net-player,.net-single-screen .net-money-pile,.net-single-screen .net-stack-note{display:none}.net-single-screen .net-opponents{grid-template-rows:repeat(2,1fr);grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}.net-single-screen .net-bidder{display:flex;flex-direction:column;justify-content:center}.net-single-screen .net-face{display:none}.net-single-screen .net-center{justify-content:center;padding:0}.net-single-screen .net-dialogue{display:none}.net-single-screen .net-bid-dock{position:sticky;bottom:0}.net-single-screen .net-live-controls>span{font-size:9px}
}
/* Both seasonal catalogues use one sticky form dock, never a second queue action. */
.seasonal-sale form[data-form="seasonalSaleStart"] > .sale-start-dock,.seasonal-sale .sale-walk-start{position:sticky;top:0;z-index:12}
.seasonal-sale .sale-start-dock{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 0;padding:6px 8px;box-shadow:0 2px 6px #233e2d33}
.seasonal-sale .sale-start-dock p{margin:0;min-width:0}
.seasonal-sale .sale-start-dock button{width:auto;min-height:44px;min-width:6em;font-size:15px;white-space:nowrap;flex:none}
.seasonal-sale .sale-start-dock form{margin:0;flex:none}
.seasonal-sale .sale-roster input{scroll-margin-top:80px}
.net-bid-input>span{white-space:nowrap}
.sale-return-tools{display:flex;justify-content:flex-end;margin:6px 0}
.sale-return-button{min-height:44px;white-space:normal}
.sale-return-presentation{display:flex;align-items:center;gap:10px}
.sale-return-presentation img{width:clamp(70px,24vw,120px);height:116px;object-fit:contain;object-position:center bottom;flex:none}
.sale-return-presentation p{margin:0}
.net-single-screen .net-bid-dock .sale-return-button{margin-top:6px}
#confirm:has(.sale-return-presentation) .confirm-body{padding-bottom:max(20px,env(safe-area-inset-bottom,0px))}
#confirm:has(.sale-return-presentation) .actions button{min-height:44px}
@media(max-height:420px){.sale-return-presentation img{height:76px}}

/* Read-only mare catalogue, independent of the sale form behind the dialog. */
:is(.sale-lot-info,.stock-row-title) button.market-mare-name{display:inline-flex;align-items:center;gap:5px;min-height:44px;margin:0;padding:2px 3px;border:0;border-radius:4px;background:transparent;color:#174d38;box-shadow:none;text-decoration:underline;text-underline-offset:3px;text-align:left;white-space:normal;overflow-wrap:anywhere;font:inherit}
:is(.sale-lot-info,.stock-row-title) button.market-mare-name:focus-visible,.mare-inspection-dialog :is(button,summary):focus-visible{outline:3px solid #9b681c;outline-offset:2px}
dialog.mare-inspection-dialog{position:fixed;inset:0;width:min(100% - 22px,620px);height:min(89dvh,790px);max-height:89dvh;max-width:none;margin:auto;padding:0;overflow:hidden;border:1px solid #8ca18f;border-radius:15px;background:#f2f3e8;color:#233c30;box-shadow:0 18px 52px #132c2470}
dialog.mare-inspection-dialog[open]{display:flex;flex-direction:column}
.mare-inspection-dialog::backdrop{background:#132b25b8}
.mare-inspection-head{display:flex;align-items:center;gap:11px;flex:none;padding:8px 11px;background:#1e4d3b;color:#fffdf2;border-bottom:2px solid #bfa268}
.mare-inspection-head>div{min-width:0}
.mare-inspection-head small{display:block;color:#f3e4ba;font-size:11px;font-weight:700}
.mare-inspection-head h2{margin:2px 0 0;color:#fffdf2;font-size:clamp(17px,5vw,24px);line-height:1.2;overflow-wrap:anywhere}
.mare-inspection-head h2:focus{outline:none}
.mare-inspection-head button{flex:none;min-height:44px;margin:0;padding:6px 8px;border:1px solid #cbb780;border-radius:7px;background:#fff6da;color:#214a38;font-size:12px;font-weight:750;white-space:nowrap}
.mare-inspection-body{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:9px 9px max(12px,env(safe-area-inset-bottom,0px));scrollbar-gutter:stable}
.mare-inspection-card,.mare-own-records{margin:0 0 8px;padding:9px;border:1px solid #bbc9b7;border-radius:10px;background:#fffdf5;color:#253e31}
.mare-inspection-card h3{margin:0 0 4px;color:#234b39;font-size:15px}
.mare-inspection-card p{margin:4px 0;line-height:1.55}
.mare-inspection-note{color:#425649;font-size:12px;line-height:1.5}
.mare-pedigree{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto repeat(8,minmax(44px,auto));gap:3px;margin-top:6px}
.mare-pedigree>span{padding:3px;background:#e7edde;color:#354e40;font-size:11px;font-weight:700;text-align:center}
.mare-pedigree-node{display:grid;align-items:stretch;min-width:0;border:1px solid #c8cec0;border-radius:5px;background:#f6f4e9;color:#526256;font-size:11px;overflow-wrap:anywhere;line-height:1.35}
.mare-pedigree-node>span{align-self:center;padding:3px 4px}
.mare-pedigree-node.has-record{background:#edf4e8;border-color:#a7c0a6}
.mare-inspection-dialog button[data-mare-record]{color:#174d38;text-decoration:underline;text-underline-offset:2px;background:#edf4e8;border:1px solid #a4bda8;border-radius:5px;min-height:44px;margin:0;padding:4px 5px;white-space:normal;overflow-wrap:anywhere;font-size:12px;font-weight:700;text-align:left;box-shadow:none}
.mare-pedigree-node button[data-mare-record]{display:flex;align-items:center;justify-content:space-between;gap:2px;border:0;min-width:0;min-height:0}
.mare-pedigree-node button>span:first-child{min-width:0}
.mare-pedigree-more summary,.mare-own-records summary{min-height:44px;display:flex;align-items:center;gap:5px;cursor:pointer;font-weight:750;color:#23553d;font-size:13px}
.mare-pedigree-more summary:before,.mare-own-records summary:before{content:'▸';color:#486b55}
:is(.mare-pedigree-more,.mare-own-records)[open] summary:before{content:'▾'}
.mare-pedigree-more>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.mare-pedigree-more button small{display:block;font-size:10px}
.mare-inspection-results,.mare-inspection-family{list-style:none;margin:4px 0;padding:0}
.mare-inspection-results li{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:5px 0;border-bottom:1px solid #d9dfce;font-size:12px;overflow-wrap:anywhere}
.mare-inspection-results li:last-child{border-bottom:0}
.mare-inspection-results :is(small,strong){min-width:0}
.mare-inspection-results li small{color:#526354;font-size:11px}
.mare-inspection-results li b{margin-left:auto;white-space:nowrap;color:#204c37}
.mare-inspection-grade{padding:1px 4px;border-radius:4px;background:#f4e6ba;color:#644b1a;font-size:10px;font-weight:750;white-space:nowrap}
.mare-inspection-family>li{padding:5px 0;border-bottom:1px solid #d9dfce}
.mare-inspection-family>li:last-child{border:0}
.mare-inspection-family>li>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:13px}
.mare-inspection-family>li>div>span{color:#516457;font-size:11px}
.mare-inspection-dialog .mare-appraisal-stage{font-size:12px;font-weight:750;color:#3a5b47}
.mare-appraisal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:5px 0}
.mare-appraisal-grid>div{min-width:0;padding:5px;background:#edf2e5;border-radius:5px;overflow-wrap:anywhere}
.mare-appraisal-grid dt{font-size:11px;color:#415749}
.mare-appraisal-grid dd{margin:2px 0 0;color:#214734;font-size:14px;font-weight:750}
.mare-pedigree-name-only{display:grid;gap:2px;min-width:0;padding:5px;border:1px solid #c8cec0;border-radius:5px;background:#f6f4e9;color:#526256;font-size:12px;overflow-wrap:anywhere}
.mare-pedigree-name-only small{font-size:10px}
