/* Shared website spacing, profile settings and compact record pages. */
.profile-settings{max-width:420px}.profile-settings .profile-preview{display:flex;justify-content:center;margin:14px 0}.profile-preview .face.big{width:88px;height:88px}.profile-photo-actions{display:flex;justify-content:center;gap:8px;margin-bottom:22px}.profile-settings .f{margin-top:16px}.profile-error,.cm-error{color:#b32e58;min-height:1.5em}.acctmenu .am button{display:block;width:100%;text-align:left;padding:12px;background:none;border:0;color:inherit;font:inherit;border-radius:7px;cursor:pointer}.acctmenu .am button:hover{background:#fff0f8}.acctmenu .who>div>span:empty{display:none}
.snav{display:flex;flex-direction:column;gap:5px}.snav a{display:flex;align-items:center;gap:10px!important;border-radius:7px!important;min-height:44px!important;font-size:14px!important}.snav .nav-divider{border-top:1px solid #e1e6f0;margin:10px 0}.snav .nav-icon{width:18px;height:18px;flex:none;display:grid;place-items:center;font-size:15px;color:#8c9ab1}.snav a.on .nav-icon{color:#dc409d}
.class-settings,.student-records,.student-summary,.student-detail-bar,.class-history{background:white;border:1px solid #e0e7f1;border-radius:12px;padding:22px}.class-settings{max-width:1040px}.cm-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:18px}.cm-heading h2,.cm-heading h3{margin:0 0 5px}.cm-heading p{margin:0;color:#72849e;font-size:13px}.cm-heading h3 span{font-size:14px;color:#b94692;margin-left:10px}.cm-basic{display:grid;grid-template-columns:110px 110px minmax(180px,1fr);gap:18px;padding-bottom:24px;border-bottom:1px solid #e6ebf4;margin-bottom:26px}.cm-basic label{display:block;font-size:14px;margin-bottom:8px}.cm-unit{position:relative}.cm-unit input{width:100%;height:46px;border:1px solid #cbd7e5;border-radius:7px;padding:8px 40px 8px 12px;font:inherit;color:inherit}.cm-unit span{position:absolute;right:13px;top:13px;font-size:13px;color:#8b97ab}.cm-custom .in{height:46px!important}.cm-custom small{color:#98a3b5}.cm-roster{border:1px solid #dde6ef;border-radius:8px;margin-top:12px}.cm-roster table{width:100%;border-collapse:collapse}.cm-roster th{text-align:left;font-size:13px;color:#73839a;background:#f5f8fc;padding:12px 16px}.cm-roster td{padding:8px 16px;border-top:1px solid #edf0f5}.cm-roster th:first-child{width:100px}.cm-roster th:nth-child(2){width:45%}.cm-roster input{width:100%;height:38px;border:1px solid #d9e3ed;border-radius:5px;padding:7px 10px;font:inherit;color:inherit}.cm-roster input[readonly]{border-color:transparent;background:#f5f8fb;text-align:center}.cm-status{font-size:12px;color:#69849c;white-space:nowrap}.cm-status.new{color:#bd388c;background:#fff0f8;padding:3px 7px;border-radius:4px}.cm-delete{background:none;border:0;color:#a17687;font:13px Free,sans-serif;padding:6px;cursor:pointer}.cm-bottom{display:flex;justify-content:flex-end;gap:10px;padding-top:20px}.cm-empty{padding:28px!important;text-align:center;color:#8999ad}#cmImportStatus{color:#a23b85;font-size:13px}.cm-error{margin-top:12px}
.record-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.record-toolbar>div:first-child{margin-right:auto}.record-toolbar h2{font-size:21px;margin:0 0 4px}.record-toolbar .in{width:auto;min-height:38px;height:40px;font-size:14px;padding:6px 10px}.record-toolbar input{flex:1;max-width:300px;min-width:180px}.record-date{font-size:13px;font-weight:600;color:#708199;margin:24px 0 10px}.history-row{display:grid;grid-template-columns:minmax(180px,1fr) 118px 118px 22px;align-items:center;gap:20px;padding:17px 14px;border-bottom:1px solid #e9edf4;text-decoration:none;color:#283f60}.history-row:hover{background:#f8faff}.history-row small{display:block;color:#8491a6;font-size:12px;font-weight:400;margin-bottom:5px}.history-row strong{font-size:16px;font-weight:700}.history-row b{font-size:16px}.history-row i{font-size:12px;font-style:normal;color:#8b9bb0;font-weight:400}.history-title{display:flex;align-items:center;gap:16px;min-width:0}.history-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-title small{margin:0;flex:none}.history-chevron{color:#9cabbc;font-size:25px}.record-pages{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:22px}.record-pages span{color:#6e809a;font-size:13px}
.student-detail-bar{display:flex;align-items:center;gap:12px;margin-bottom:12px;padding:12px 16px}.student-detail-bar>span{font-size:14px}.student-summary{padding:20px 24px;margin-bottom:18px}.student-identity{display:flex;align-items:center;justify-content:center;gap:22px;padding:0 0 20px}.student-identity img{width:118px;height:118px;object-fit:contain;image-rendering:pixelated}.student-identity img.none{opacity:.5;filter:grayscale(1)}.student-identity h2{font-size:24px;margin:0 0 8px}.student-identity span{font-size:13px;color:#8a98ab}.student-metrics{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #e6ecf4;padding-top:18px}.student-metrics>div{padding:3px 24px;border-right:1px solid #e2e9f2}.student-metrics>div:last-child{border:0}.student-metrics small{display:block;color:#8290a5;font-size:12px;margin-bottom:7px}.student-metrics strong{font-size:21px;color:#2b4161}.student-tabs{display:flex;gap:20px}.student-tabs button{border:0;background:none;border-bottom:2px solid transparent;color:#8997ab;font:700 15px Free,sans-serif;padding:8px 0;cursor:pointer}.student-tabs button.on{border-color:#f06dbb;color:#bd388c}.student-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}.student-table th{font-size:12px;font-weight:500;background:#f7f9fc;color:#72839b;text-align:left;padding:12px;border-top:1px solid #e2e9f2;border-bottom:1px solid #e2e9f2;white-space:nowrap}.student-table td{padding:14px 12px;border-bottom:1px solid #edf0f5}.student-table small{display:block;font-size:11px;color:#8b99ad;margin-top:5px;white-space:nowrap}.study-table td:not(:first-child){text-align:center;white-space:nowrap}.study-table th:not(:first-child){text-align:center}.study-table .sticky-title{position:sticky;left:0;z-index:1;min-width:240px;max-width:270px;background:white;box-shadow:1px 0 #e3e9f2}.study-table th.sticky-title{background:#f7f9fc}.sticky-title a{display:block;color:#293e60;font-weight:700;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.answer-cell{min-width:56px;color:#8c9daf}.answer-cell.correct{background:#edf9ef;color:#39975a}.answer-cell.wrong{background:#fff0f2;color:#d8526b}.answer-cell.na{background:#f8f9fc}.answer-cell.missing{color:#b0bac7}.record-legend{font-size:12px;color:#8a98ad;margin:15px 0 0}.student-admin{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 5px}.student-admin summary{color:#8795a9;font-size:13px;cursor:pointer}.student-admin p{font-size:14px}.coin-change{color:#398a62;background:#eef8f1;border-radius:5px;padding:4px 8px;white-space:nowrap}.coin-change.minus{color:#c04967;background:#fff0f3}
@media(max-width:700px){.class-settings,.student-records,.student-summary,.class-history{padding:16px}.cm-basic{grid-template-columns:1fr 1fr}.cm-custom{grid-column:1/-1}.cm-heading .row{gap:6px}.cm-roster th,.cm-roster td{padding:8px}.cm-roster th:first-child{width:70px}.history-row{grid-template-columns:minmax(120px,1fr) 66px 76px;gap:9px;padding:14px 2px}.history-chevron{display:none}.history-title{display:block}.history-title strong{display:block;font-size:14px}.history-title small{font-size:11px;margin-bottom:5px}.history-row b{font-size:14px}.history-row i{font-size:10px}.record-toolbar input{max-width:none;min-width:150px;flex:1}.record-toolbar .in{font-size:13px}.student-detail-bar{flex-wrap:wrap;padding:10px;gap:7px}.student-identity{gap:12px}.student-identity img{width:92px;height:92px}.student-metrics{grid-template-columns:1fr 1fr;gap:16px}.student-metrics>div{padding:4px 10px}.student-metrics>div:nth-child(2){border:0}.student-metrics strong{font-size:19px}.student-table td{padding:11px 9px}.study-table .sticky-title{min-width:170px;max-width:190px}.sticky-title a{max-width:170px}}

.compact-library .pickrow{display:none!important}.compact-library .library-dropdowns{display:flex;gap:12px;flex-wrap:wrap;padding:16px 0 10px;border-bottom:1px solid #e6ebf4}.library-dropdowns select{max-width:180px;min-height:34px;padding:4px 22px 4px 8px;border:0;background:#fff;color:#6d7d94;font:13px Free,sans-serif}.compact-library .filters{grid-template-columns:minmax(0,1fr) 150px!important;gap:18px!important}.compact-library #q{height:48px!important;max-width:820px;font-size:15px}.compact-library .phead h1{font-family:Free,sans-serif!important;font-size:28px!important}.compact-library .vsw{font-size:12px}.compact-library .qgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 24px!important;border:0!important;background:none!important;border-radius:0!important}.compact-library .qgrid.list{grid-template-columns:1fr!important}.compact-library .qgrid .qc{display:grid!important;grid-template-columns:116px minmax(0,1fr)!important;gap:10px 16px!important;align-items:start!important;flex-direction:row!important;padding:20px 0!important;background:none!important;border:0!important;border-bottom:1px solid #e5ebf3!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}.compact-library .qgrid .qc .im{grid-row:1/3;width:116px!important;height:86px!important;aspect-ratio:auto!important;min-width:0!important;border-radius:10px!important;align-self:center;overflow:hidden}.compact-library .qc .tx{padding:0!important;min-width:0}.compact-library .qc .tx b{font-size:15px!important;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.compact-library .qc .tx .meta{font-size:11px;margin:0 0 4px;color:#7d8ca2}.compact-library .qc .by{font-size:12px;margin:5px 0 0}.compact-library .qgrid .qc .ac{grid-column:2;padding:0!important;gap:6px!important;display:flex!important;flex-wrap:nowrap!important}.compact-library .qc .ac .btn{height:30px!important;min-height:30px!important;font-size:12px!important;padding:0 10px!important;flex:0 1 auto!important;border-radius:6px!important}.compact-library .qc .im .au{font-size:9px;top:5px;right:5px;padding:2px 5px}.compact-library .lrail section{box-shadow:none;border-radius:10px;padding:14px}.compact-library .lrail{gap:18px}
@media(max-width:1000px){.compact-library .qgrid{grid-template-columns:1fr!important}.compact-library .library-dropdowns{gap:6px}.library-dropdowns select{max-width:145px}}
@media(max-width:600px){.compact-library .filters{grid-template-columns:1fr 110px!important;gap:8px!important}.compact-library .filters .wide{grid-column:auto!important}.compact-library .qgrid .qc{grid-template-columns:90px minmax(0,1fr)!important;gap:8px 12px!important;padding:16px 0!important}.compact-library .qgrid .qc .im{width:90px!important;height:74px!important}.compact-library .qc .tx b{font-size:14px!important}.compact-library .qc .ac .btn{padding:0 8px!important}.compact-library .phead h1{font-size:24px!important}.compact-library .vsw{display:none}.student-admin{flex-wrap:wrap}}

.student-list-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0 22px}.student-list-tools .in{height:36px;min-height:36px;font-size:13px;padding:5px 9px;width:auto}.student-list-tools input{max-width:240px}.student-view-switch{display:flex;gap:2px;padding:3px;border:1px solid #e1e7ef;border-radius:6px;background:#f4f7fb}.student-view-switch button{width:30px;height:28px;background:none;color:#8797ad;font-size:19px;border-radius:4px;cursor:pointer}.student-view-switch button.on{background:white;color:#c13e91;box-shadow:0 1px 3px #263d6020}.student-count{font-size:16px;margin:0 0 14px}.student-count span{font-size:13px;color:#8c99ab;font-weight:400}.student-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.student-card{min-width:0;border:1px solid #e0e6f0;border-radius:10px;background:linear-gradient(#f5f7ff 0 72%,#fff 72%);padding:12px;text-align:left;color:#273d6c;cursor:pointer}.student-card:hover{border-color:#eda8d2}.student-card>img{display:block;width:92px;height:92px;object-fit:contain;margin:0 auto 7px;image-rendering:pixelated}.student-card>img.none{opacity:.5;filter:grayscale(1)}.student-card-name{display:flex;align-items:center;gap:5px;margin-bottom:10px}.student-card-name small{font-size:10px;color:#8c9bb0}.student-card-name b{font:600 13px Free,sans-serif;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.student-card-name i{margin-left:auto;font-style:normal;color:#9daabe}.student-card-coin{display:block;text-align:center;background:white;border:1px solid #e2e6ef;border-radius:6px;padding:6px;font:12px Free,sans-serif}.student-card-coin>span{color:#e174c4;font-size:14px}.student-name-button{display:flex;align-items:center;gap:10px;background:none;color:inherit;padding:0;text-align:left;cursor:pointer}.student-name-button img{width:30px;height:30px;object-fit:contain;image-rendering:pixelated}.student-name-button small{margin:0}.student-name-button b{font-size:13px}.student-code,.student-qr,.student-more{background:white;border:1px solid #dce4ee;border-radius:6px;padding:5px 8px;font:12px Free,sans-serif;color:#6c8099;cursor:pointer}.student-qr{margin-left:6px}.student-more{border:0;background:none;font-size:22px}.student-list-table tr:nth-child(even) td{background:#f6f8fc}.student-list-table td{padding:10px 12px}.student-list-table td:nth-child(3){font-size:12px;color:#8596aa}.student-list-tools .btn{height:36px;min-height:36px;font-size:12px;padding:0 12px}
@media(max-width:650px){.student-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.student-list-tools{gap:7px}.student-list-tools input{width:140px!important;min-width:110px}.student-list-tools .grow{display:none}.student-list-tools .btn{padding:0 8px}.student-list-table{min-width:570px}}

/* Filters are optional: a second click clears the choice. */
body.compact-library .pickrow{display:flex!important;flex-wrap:wrap;align-items:center;gap:7px;margin:10px 0}
body.compact-library .pickrow[hidden]{display:none}
body.compact-library .pickrow b{min-width:50px;font:400 13px Free,sans-serif;color:#61718a}
body.compact-library .pickrow button{border:1px solid transparent;background:#f0f3f8;color:#52617c;border-radius:8px;min-height:34px;padding:6px 12px;font:400 14px Free,sans-serif;box-shadow:none}
body.compact-library .pickrow button.on{background:#fff0f8;color:#ba387e;border-color:#ed8ac2;box-shadow:none}
body.compact-library .pickrow button:focus-visible{outline:2px solid #dc70b0;outline-offset:2px}

.start.startC .twoC{display:block!important}.start.startC .maps{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));max-height:65vh;overflow:auto;padding:3px 4px 12px}
.startC .mapc .map-level{display:flex;justify-content:center;gap:5px;padding:6px 10px 10px}.startC .map-level [data-v]{display:grid;place-items:center;min-width:34px;height:28px;border:1px solid #dbe2ed;border-radius:6px;color:#596b85;background:#f8fafe;font:400 14px Free,sans-serif}
.startC .map-level [data-v].on{color:#b72c7e;border-color:#e778b8;background:#ffedf7}.startC .map-level [data-v]:focus-visible{outline:2px solid #d954a5;outline-offset:2px}

/* Selected C: native scene plus large map name inside the poster. */
.startC .mapc{position:relative;overflow:hidden}.startC .mapc>img{display:block;width:100%;aspect-ratio:1.6;object-fit:cover;border-radius:8px 8px 0 0}.startC .mapc>.map-poster-name{position:relative;display:block;margin:-40px 0 0!important;height:40px;box-sizing:border-box;padding:12px 8px 5px!important;background:linear-gradient(transparent,#172e51eb);color:white!important;text-align:left;font:400 18px/1.2 Free,sans-serif!important;text-shadow:0 1px 2px #17314f80;z-index:1}

/* Readability repair, Nov 28: no duplicate sidebar board or decorative menu icons. */
.snav a{padding:11px 15px!important;font-size:15px!important;gap:0!important}.snav .nav-icon{display:none!important}
.dlg.profile-dialog{width:min(460px,calc(100vw - 32px));max-width:460px;padding:24px;box-sizing:border-box}.profile-dialog .profile-settings{max-width:none;width:100%}.profile-dialog .dhead{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.profile-dialog .dhead h2{margin:0;font:400 21px Free,sans-serif}.profile-dialog .dhead .x{width:34px;height:34px;margin:0}.profile-dialog #profileName{width:100%;box-sizing:border-box}.profile-dialog .profile-error{min-height:20px}.profile-dialog .profile-preview{margin:12px 0 16px}.profile-dialog .profile-photo-actions{margin-bottom:24px}
body.my-page .my-empty{width:100%;max-width:720px;display:flex;align-items:center;gap:24px;padding:24px;text-align:left;min-height:150px;box-sizing:border-box}body.my-page .my-empty>img{width:82px;height:95px;margin:0;flex:none}body.my-page .my-empty>div{min-width:0;flex:1}body.my-page .my-empty b{font-size:18px}body.my-page .my-empty p{font-size:14px;line-height:1.6}body.my-page .my-empty .row{justify-content:flex-start!important;gap:9px}body.my-page .phead>div:first-child{min-width:0}body.my-page .phead p{white-space:normal;font-size:15px;line-height:1.6}
.start.startC .maps{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;max-height:66vh;padding:4px 6px 12px!important}.startC .mapc{min-width:0!important;border-radius:10px!important;padding:0!important}.startC .mapc>img{height:auto!important;aspect-ratio:1.6!important}.startC .mapc>.map-poster-name{height:44px!important;margin-top:-44px!important;padding:18px 11px 8px!important;background:linear-gradient(transparent,#11253a 65%)!important;font-size:19px!important;line-height:1!important;white-space:nowrap!important;text-overflow:ellipsis;overflow:hidden}
.startC .map-level-hint{display:grid;place-items:center;height:52px;font:400 13px Free,sans-serif;color:#71829b}.startC .mapc:not(.on) .map-level{display:none!important}.startC .mapc.on .map-level-hint{display:none}.startC .mapc.on .map-level{display:flex!important;justify-content:center;gap:5px;height:52px;align-items:center;padding:8px!important;box-sizing:border-box}.startC .map-level [data-v]{flex:1;min-width:0!important;min-height:34px!important;height:34px!important;padding:0 3px;font:400 13px Free,sans-serif!important;white-space:nowrap}.startC .dhead2 .cls>b{white-space:nowrap}.startC .dhead2{gap:12px}.startC .dhead2 h2{font-size:21px}
.compact-library .libm{min-width:0;container-type:inline-size}.compact-library .qgrid{gap:14px 20px!important}.compact-library .qgrid .qc{grid-template-columns:128px minmax(0,1fr)!important;background:#fff!important;border:1px solid #e0e6ef!important;border-radius:10px!important;padding:16px!important;gap:9px 16px!important;box-sizing:border-box!important}.compact-library .qgrid .qc .im{width:128px!important;height:100px!important}.compact-library .qc .tx b{font:400 18px/1.5 Free,sans-serif!important;color:#233b5b!important;-webkit-line-clamp:2}.compact-library .qc .tx .meta{font-size:13px!important;color:#64748b!important;margin-bottom:6px}.compact-library .qc .by{font-size:13px!important;margin-top:6px}.compact-library .qc .by .bdi{width:16px;height:16px}.compact-library .qc .ac{margin-top:1px}.compact-library .qc .ac .btn{height:35px!important;min-height:35px!important;font:400 14px Free,sans-serif!important;padding:0 13px!important}
@container(max-width:820px){.compact-library .qgrid{grid-template-columns:1fr!important}}
@media(max-width:960px){.start.startC .maps{grid-template-columns:repeat(3,minmax(0,1fr))!important}.startC .mapc>.map-poster-name{font-size:17px!important}.startC .map-level [data-v]{font-size:12px!important}}
@media(max-width:600px){.start.startC .maps{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.startC .mapc>.map-poster-name{font-size:16px!important;padding-left:8px!important}.startC .map-level [data-v]{font-size:11px!important}.compact-library .qgrid .qc{grid-template-columns:94px minmax(0,1fr)!important;gap:8px 12px!important;padding:12px!important}.compact-library .qgrid .qc .im{width:94px!important;height:88px!important}.compact-library .qc .tx b{font-size:16px!important}.compact-library .qc .tx .meta{font-size:12px!important}.compact-library .qc .ac .btn{min-height:38px!important;height:38px!important;padding:0 10px!important;font-size:13px!important}body.my-page .my-empty{gap:14px;padding:18px}body.my-page .my-empty>img{width:55px;height:70px}.dlg.profile-dialog{padding:20px}}

.history-map{width:76px;height:54px;object-fit:cover;border-radius:7px;flex:none}.history-copy{min-width:0;display:block}.history-copy strong{display:block}.history-copy small{margin-bottom:5px}@media(max-width:700px){.history-title{display:flex;gap:9px}.history-map{width:52px;height:42px}.history-copy small{font-size:10px}.history-copy strong{font-size:13px}}

body.compact-library .qc .tx b,body.compact-library .qgrid.list .qc .tx b{font-family:Free,sans-serif!important;font-weight:700!important;font-synthesis:none}.history-copy strong{font-family:Free,sans-serif;font-weight:700}

/* One difficulty control above the maps; card bottoms remain image-only. */
.startC .map-level-toolbar{display:flex;align-items:center;gap:8px;padding:8px 3px 12px;color:#273d6c}.startC .map-level-toolbar>b{margin-right:4px;font-size:14px}.startC .map-level-toolbar button{width:46px;height:36px;border:1px solid #dbe2ed;border-radius:9px;background:white;color:#273d6c;font:700 15px Free,sans-serif}.startC .map-level-toolbar button.on{background:#ffedf7;border-color:#ff66c4;color:#b72c7e}.startC .map-level-toolbar button:focus-visible{outline:2px solid #49b5f2;outline-offset:2px}

/* Shared 16:9 covers remain legible in both library views. */
body.compact-library .qgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important}
body.compact-library .qgrid:not(.list) .qc{display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important;background:#fff!important;border:1px solid #e1e7f1!important;border-radius:16px!important;overflow:hidden!important}
body.compact-library .qgrid:not(.list) .qc .im{width:100%!important;height:auto!important;aspect-ratio:16/9!important;align-self:stretch}
body.compact-library .qgrid:not(.list) .qc .tx{padding:14px 16px 4px!important;width:100%;box-sizing:border-box}
body.compact-library .qgrid:not(.list) .qc .ac{padding:12px 16px 16px!important;width:100%;box-sizing:border-box}
body.compact-library .qgrid .qc .tx b{font-size:18px!important;line-height:1.5!important}
body.compact-library .qgrid .qc .tx .meta{font-size:13px!important}
body.compact-library .qgrid .qc .ac .btn{font-size:14px!important;min-height:38px!important;height:38px!important}
body.compact-library .qgrid.list{grid-template-columns:1fr!important;gap:0!important}
body.compact-library .qgrid.list .qc{grid-template-columns:minmax(230px,34%) minmax(0,1fr)!important;gap:8px 22px!important;padding:18px 0!important}
body.compact-library .qgrid.list .qc .im{width:100%!important;height:auto!important;aspect-ratio:16/9!important;align-self:start}
@media(max-width:900px){body.compact-library .qgrid{grid-template-columns:1fr!important}}
@media(max-width:600px){body.compact-library .qgrid.list .qc{display:flex!important;flex-direction:column!important;gap:10px!important}body.compact-library .qgrid.list .qc .im{width:100%!important;height:auto!important;aspect-ratio:16/9!important}body.compact-library .qgrid.list .qc .tx,body.compact-library .qgrid.list .qc .ac{width:100%;box-sizing:border-box}}

/* Compact 16:9 gallery: image ratio does not dictate oversized cards. */
body.compact-library .qgrid:not(.list){grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
body.compact-library .qgrid:not(.list) .qc .tx{padding:10px 12px 2px!important}
body.compact-library .qgrid:not(.list) .qc .ac{padding:8px 12px 12px!important}
body.compact-library .qgrid:not(.list) .qc .tx b{font-size:16px!important;line-height:1.4!important}
@media(max-width:1599px){body.compact-library .qgrid:not(.list){grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:1000px){body.compact-library .qgrid:not(.list){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){body.compact-library .qgrid:not(.list){grid-template-columns:1fr!important}}

.quiz-preview-cover{height:auto!important;max-width:520px;margin:12px auto!important}.quiz-preview-cover>.im{width:100%;aspect-ratio:16/9}.popular-cover{width:56px!important;height:32px!important;flex:none;display:block;overflow:hidden;border-radius:6px}.popular-cover>.im{width:56px!important;height:32px!important;aspect-ratio:16/9}body.my-page .qcard>.im{width:100%;aspect-ratio:16/9;flex:none;min-height:0}

.lrail #pop li button{display:grid!important;grid-template-columns:18px 56px minmax(0,1fr)!important;gap:8px!important;justify-content:start!important;align-items:center!important;padding:7px 0!important;min-height:46px!important;width:100%!important}.lrail #pop li button>i{width:18px!important;margin:0!important}.lrail #pop li button>span:last-child{text-align:left!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lrail #pop{padding:0!important;margin:8px 0 0!important}.lrail #pop li{margin:0!important}.lrail .popular-cover img{object-fit:contain!important}

/* A real compact list: fixed 16:9 miniature, metadata, then actions. */
body.compact-library #list.qgrid.list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;max-width:100%;min-width:0}
body.compact-library #list.qgrid.list>.qc{display:grid!important;grid-template-columns:128px minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;gap:16px!important;padding:14px 12px!important;min-height:100px!important;max-width:100%!important;width:100%!important;margin:0!important;border:0!important;border-bottom:1px solid #e3e8f1!important;border-radius:0!important;overflow:hidden!important}
body.compact-library #list.qgrid.list>.qc>.im{grid-column:1!important;grid-row:1!important;width:128px!important;height:72px!important;aspect-ratio:16/9!important;min-height:0!important;min-width:0!important;border-radius:7px!important}
body.compact-library #list.qgrid.list>.qc>.tx{grid-column:2!important;grid-row:1!important;min-width:0!important;padding:0!important;width:auto!important}
body.compact-library #list.qgrid.list>.qc>.tx>b{font-size:15px!important;line-height:1.4!important;-webkit-line-clamp:2!important}
body.compact-library #list.qgrid.list>.qc>.tx .meta{font-size:11px!important;margin-bottom:3px!important}
body.compact-library #list.qgrid.list>.qc>.tx .by{font-size:11px!important;margin:0!important}
body.compact-library #list.qgrid.list>.qc>.ac{grid-column:3!important;grid-row:1!important;align-self:center!important;display:flex!important;flex-wrap:nowrap!important;padding:0!important;gap:6px!important}
body.compact-library #list.qgrid.list>.qc>.ac>.btn{height:32px!important;min-height:32px!important;padding:0 10px!important;font-size:12px!important;flex:none!important}
body.compact-library #list.qgrid.list .quiz-card-by{justify-content:flex-start!important;gap:16px!important;margin-top:5px!important}
body.compact-library #list.qgrid.list .quiz-stats{margin-left:0!important}
@media(max-width:700px){body.compact-library #list.qgrid.list>.qc{grid-template-columns:96px minmax(0,1fr)!important;gap:7px 12px!important;padding:12px 0!important}body.compact-library #list.qgrid.list>.qc>.im{width:96px!important;height:54px!important;grid-row:1/3!important}body.compact-library #list.qgrid.list>.qc>.ac{grid-column:2!important;grid-row:2!important}body.compact-library #list.qgrid.list>.qc>.tx>b{font-size:14px!important}body.compact-library #list.qgrid.list .quiz-card-by{flex-wrap:wrap;gap:5px 12px!important}}

.btn[data-openroom],#pvOpen{background:var(--blue,#49B5F2)!important;border-color:var(--blue,#49B5F2)!important;color:#fff!important}#pvCopy{background:#fff!important;border-color:#dbe2ee!important;color:#273D6C!important}#go.btn.go{background:var(--brand,#FF66C4)!important;border-color:var(--brand,#FF66C4)!important}

/* Scale the entire cover, including inherited text and badges, as one image. */
.lrail .popular-cover>.im{width:320px!important;height:180px!important;transform:scale(.175);transform-origin:top left}.lrail .popular-cover .cover-main span,.lrail .popular-cover .cover-caption span{font:inherit!important;max-width:none;overflow:visible;text-overflow:clip}.lrail .popular-cover .cover-avatar{border-radius:0}

.quiz-cover-mini{width:44px!important;height:44px!important;display:block!important;overflow:hidden!important;border-radius:9px!important;background:var(--mini-bg)!important}.quiz-cover-mini img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.lrail #pop li button{grid-template-columns:18px 44px minmax(0,1fr)!important;min-height:58px!important}

#view:has(.class-settings){max-width:1040px;margin-inline:auto}.class-settings{box-sizing:border-box;width:100%;margin-inline:auto}.cm-basic{grid-template-columns:minmax(190px,1.2fr) 100px 100px minmax(170px,1fr)}.cm-school .in{height:46px}.hall-empty{display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;gap:8px;min-height:140px}.hall-empty b{display:block}.hall-empty p{margin:0;color:#7a8aa2}@media(max-width:800px){.cm-basic{grid-template-columns:1fr 1fr}.cm-school,.cm-custom{grid-column:1/-1}}

.profile-preview .face{border:2px solid #d9e1ef!important;box-sizing:border-box;outline:0!important;border-radius:50%!important;background:#fff;isolation:isolate}.profile-preview .face img{border-radius:50%;inset:0;width:100%;height:100%}

#cmSchoolResults{display:grid;gap:5px;margin-top:6px}#cmSchoolResults button{border:1px solid #dce5ef;background:#fff;text-align:left;padding:9px 10px;border-radius:7px;color:#273d6c;font:inherit;font-size:13px;cursor:pointer}#cmSchoolResults button:hover{background:#edf7ff;border-color:#49b5f2}#cmSchoolSelected{display:block;margin-top:6px;color:#6f839a;font-size:12px}

/* Keep the mobile navigation in one 44px row above the editor and library. */
@media(max-width:900px){body.jm-side .snav{flex-direction:row;align-items:stretch;gap:0;min-width:0}body.jm-side .snav a{flex:1 0 auto;min-height:44px;padding:0 10px!important;font-size:13px!important;white-space:nowrap}body.jm-side .side{height:45px;min-height:45px;box-sizing:border-box}body.jm-side .snav .nav-divider{display:none}}

/* Keep the sort arrow outside the Korean label. */
.student-list-tools select.in{min-width:104px;padding-right:34px;background-position:right 10px center;white-space:nowrap}

/* Shared open-room and lesson map picker. */
.map-picker .dhead2{align-items:center;margin-bottom:18px}.map-picker .dhead2 .tt{min-width:180px}.map-picker .dhead2 h2{font-size:21px;margin:4px 0 0}.map-picker .gohint{font-size:13px;line-height:1.6;color:#73839a;margin:-4px 6px 14px}.map-picker .mapc{position:relative;transition:border-color .15s,box-shadow .15s}.map-picker .mapc:hover{border-color:#ffb8df!important;box-shadow:0 3px 12px #273d6c16}.map-picker .mapc:focus-visible{outline:3px solid #49b5f2;outline-offset:2px}.map-picker .mapc>em{position:absolute;left:10px;top:10px;z-index:2;background:#fffffff0;color:#6b7c97;border-radius:99px;padding:4px 9px;font:400 12px/1.2 Free,sans-serif;box-shadow:0 1px 5px #17314f18}.map-picker .mapc>em.on{color:#168156;background:#effff7}.map-picker .mapc>.map-poster-name{font-weight:700!important}.map-picker .mapc.on{border-color:#ff66c4!important}@media(max-width:600px){.map-picker .dhead2{gap:8px}.map-picker .dhead2 .tt{flex:1 1 100%}.map-picker .dhead2 .cls{flex:1}.map-picker .dhead2 .cls select{min-width:0;width:100%}.map-picker .gohint{font-size:12px}.map-picker .mapc>em{left:6px;top:6px;font-size:11px;padding:3px 6px}}

.map-picker .dhead2 h2{font-size:26px!important;line-height:1.35!important;word-break:keep-all;overflow-wrap:anywhere;margin:8px 0 0!important}.map-picker .dhead2 .tt{min-width:0!important}.lrail #pop .popular-copy{display:block;min-width:0;white-space:normal!important}.lrail #pop .popular-meta{display:block;font-size:11px;font-weight:400;line-height:17px;color:#7b88a0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.lrail #pop .popular-title{display:block;font-size:13px;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.lrail #pop li button{min-height:62px!important}@media(max-width:600px){.map-picker .dhead2 h2{font-size:22px!important}}

/* Fit the complete map chooser into the viewport; no nested or modal scrolling. */
.dim:has(.map-picker){padding:12px!important;overflow:hidden!important}.dlg:has(.map-picker){box-sizing:border-box;height:min(880px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;padding:22px!important;overflow:hidden!important;display:flex;flex-direction:column}.map-picker{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}.map-picker .dhead2{flex:none;margin-bottom:12px!important}.map-picker .gohint{flex:none;margin:0 4px 10px!important}.map-picker.start.startC .twoC{display:flex!important;flex:1;min-height:0}.map-picker.start.startC .maps{flex:1;min-height:0;width:100%;box-sizing:border-box;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:minmax(0,1fr)!important;gap:10px!important;max-height:none!important;overflow:visible!important;padding:4px!important}.map-picker.startC .mapc{height:100%;min-height:0;position:relative}.map-picker.startC .mapc>img{width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:cover!important}.map-picker.startC .mapc>.map-poster-name{position:absolute!important;inset:auto 0 0!important;margin:0!important;height:36px!important;padding:12px 9px 7px!important;font-size:16px!important;line-height:17px!important}.map-picker.openroom .eyebrow,.map-picker.openroom #openGo{background:#49B5F2!important;border-color:#49B5F2!important;color:white!important}.map-picker #openGo{min-height:52px;padding:0 26px;font-size:1.05rem}.map-picker.openroom .mapc:hover{border-color:#a6dfff!important}.map-picker.openroom .mapc.on{border-color:#49B5F2!important;box-shadow:0 0 0 3px #c3ebff!important}.map-picker.openroom .mapc.on:after{background-color:#49B5F2!important}
@media(max-width:600px){.dim:has(.map-picker){padding:8px!important}.dlg:has(.map-picker){width:calc(100vw - 16px)!important;height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:14px!important}.map-picker.start.startC .maps{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.map-picker .dhead2{gap:6px!important;margin-bottom:8px!important}.map-picker .dhead2 .btn{min-height:38px!important;height:38px!important;padding:0 15px!important}.map-picker .dhead2 .cls .in{min-height:38px;height:38px}.map-picker .dhead2 h2{margin-top:5px!important;font-size:20px!important;line-height:1.25!important}.map-picker .eyebrow{margin:0!important}.map-picker .gohint{font-size:11px;line-height:1.4}.map-picker.startC .mapc>.map-poster-name{height:29px!important;padding:9px 6px 4px!important;font-size:13px!important;line-height:16px!important}.map-picker .mapc>em{font-size:10px!important;padding:3px 5px!important;top:4px!important;left:4px!important}}
@media(max-height:500px) and (min-width:500px){.dlg:has(.map-picker){padding:10px 14px!important}.map-picker.start.startC .maps{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:6px!important}.map-picker .dhead2{gap:7px!important;margin-bottom:7px!important}.map-picker .dhead2 .tt{flex:1 1 180px!important;min-width:0!important}.map-picker .dhead2 h2{font-size:18px!important;line-height:1.2!important;margin-top:3px!important}.map-picker .eyebrow{margin:0!important;font-size:10px!important;padding:3px 7px!important}.map-picker .dhead2 .btn{min-height:36px!important;height:36px!important;padding:0 12px!important;font-size:13px!important}.map-picker .dhead2 .cls{gap:5px;font-size:11px}.map-picker .dhead2 .cls .in{min-width:100px!important;min-height:34px!important;height:34px!important;font-size:12px!important}.map-picker .gohint{font-size:10px;line-height:1.3;margin-bottom:6px!important}.map-picker.startC .mapc>.map-poster-name{height:27px!important;padding:10px 4px 3px!important;font-size:11px!important;line-height:14px!important}.map-picker .mapc>em{top:3px!important;left:3px!important;padding:2px 4px!important;font-size:9px!important}.map-picker .mapc.on:after{width:20px;height:20px;right:4px;top:4px}}

body.jm-class-page #view{max-width:1040px!important;width:100%;margin-inline:auto!important}body.jm-class-page .matf{max-width:none!important;width:100%;box-sizing:border-box;padding:22px!important;border:1px solid #e0e7f1;border-radius:12px;gap:0}body.jm-class-page .matf .cm-heading{margin-bottom:22px}.material-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.material-fields label{display:block;font-size:14px;line-height:1.5}.material-fields label>.in{display:block;margin-top:8px;height:46px}.material-fields label>textarea.in{height:auto;min-height:112px}.material-fields small{color:#8b98ad;margin-left:4px;font-size:12px}.material-full{grid-column:1/-1}.material-spaces{display:flex;gap:8px;margin-top:8px}.material-spaces button{flex:1;min-height:44px;border:1px solid #dbe3ed;border-radius:9px;background:white;font:inherit;font-size:14px;color:#61738f}.material-spaces button.on{background:#fff0f8;border-color:#ff66c4;color:#bf3383}.material-spaces button:focus-visible{outline:2px solid #49b5f2;outline-offset:2px}.material-file{display:flex;align-items:center;gap:12px;padding-top:4px}body.jm-class-page .matl,body.jm-class-page #view .posts{max-width:none!important;width:100%;box-sizing:border-box}@media(max-width:600px){body.jm-class-page .matf{padding:16px!important}.material-fields{grid-template-columns:1fr;gap:14px}.material-spaces{gap:5px}.material-spaces button{font-size:12px;padding:0 5px}.material-file{flex-wrap:wrap}}

.map-picker.start.startC .twoC{align-items:stretch!important;flex:1 1 0px!important;height:0!important}.map-picker.start.startC .twoC>.maps{height:100%!important;align-self:stretch!important}

.map-picker .dhead2 [data-close]{margin-left:auto}.map-picker #openGo,.map-picker #runGo{width:auto!important;flex:0 0 auto!important}

body.my-page #quizzes{grid-template-columns:repeat(auto-fill,var(--my-quiz-card-size,300px))!important;gap:14px!important}body.my-page #quizzes .qcard[data-id]{border-radius:16px;border:1px solid #e1e7f1;overflow:hidden}body.my-page #quizzes .qcard[data-id]>.im{height:auto!important;aspect-ratio:16/9!important;border-radius:10px!important;overflow:hidden!important}body.my-page #quizzes .qbody{padding:10px 12px 12px;gap:4px}body.my-page #quizzes .qbody h3{font-size:16px;line-height:1.4;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}body.my-page #quizzes .qbody>.meta{font-size:13px;color:#7d8ca2}.my-quiz-actions{margin-top:auto!important;padding-top:8px!important}.my-quiz-actions>.btn{height:38px!important;min-height:38px!important;font-size:14px!important;padding:0 10px!important}
.dlg:has(.give2){width:min(960px,96vw)!important}.give2 .nums{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px!important}.give2 .nums button,.give2 .nums .nin{height:62px!important;min-width:0!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:8px!important;border-radius:12px!important}.give2 .nums em{font-style:normal!important;font-size:25px!important}.give2 .nums small{font-size:12px!important}.give2 .nums .nin input{width:66px!important;min-width:0!important;font-size:17px!important;text-align:center}.give2 .sgrid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;max-height:320px;overflow:auto;padding:3px}.give2 .st{border-radius:10px!important}.give2 .gsec{margin-top:18px}.give2 .gfoot{margin-top:20px!important;padding-top:14px!important;border-top:1px solid #e8edf5}.give2 .gl{font-size:14px!important}@media(max-width:700px){.give2 .nums{grid-template-columns:repeat(3,minmax(0,1fr))}.give2 .sgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body #askFab{right:20px!important;bottom:20px!important;width:56px!important;height:56px!important}}

.dlg:has(.hall-entry){width:min(380px,94vw)!important}.hall-entry .dhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.hall-entry label{display:block;font-size:14px;margin-bottom:8px}.hall-entry #hallJoinCode{height:54px;text-align:center;font-size:24px;letter-spacing:7px}.hall-entry>button{width:100%;margin-top:12px;background:#49b5f2!important;border-color:#49b5f2!important;color:white!important}

.cm-nickname{font-size:13px;color:#536c92;white-space:nowrap}.cm-roster th:nth-child(2){width:32%}.cm-roster th:nth-child(3){min-width:92px}.cm-roster th:nth-child(4){min-width:80px}

.map-picker .map-new{position:absolute;left:8px;right:auto;top:8px;z-index:3;margin:0;display:block!important;padding:3px 6px;border-radius:5px;background:#ff66c4;color:#fff;font:700 10px/1.2 Arial,sans-serif;letter-spacing:.6px;box-shadow:0 1px 3px #273d6c22}@media(max-height:500px){.map-picker .map-new{left:4px;top:4px;padding:2px 4px;font-size:9px}}

body.jm-class-page #view{max-width:none!important;margin-inline:0!important}body.jm-class-page #view:has(>.chero),body.jm-class-page #view:has(.class-settings){max-width:1040px!important;margin-inline:auto!important}
body.jm-plaza-page #gplaza,body.jm-plaza-page #halls{grid-template-columns:repeat(auto-fill,var(--quiz-card-size,300px))!important;gap:14px!important}body.jm-plaza-page .gpc,body.jm-plaza-page .hall-map-card{border:1px solid #e1e7f1;border-radius:16px;box-shadow:0 2px 8px #273d6c0a}body.jm-plaza-page .gpc>img,body.jm-plaza-page .hall-map-picture{aspect-ratio:16/9;border-radius:10px;overflow:hidden}body.jm-plaza-page .gpc .bd{padding:12px;gap:8px;min-height:64px;box-sizing:border-box}body.jm-plaza-page .gpc b,body.jm-plaza-page .hall-map-body h3{font-size:16px;line-height:1.4}body.jm-plaza-page .gpc .go{display:inline-flex;align-items:center;justify-content:center;height:38px;box-sizing:border-box;border-radius:6px;padding:0 12px;background:#49b5f2;font-size:14px}body.jm-plaza-page .hall-map-body{padding:10px 12px 12px}body.jm-plaza-page .hall-map-body h3{margin:0 0 12px}body.jm-plaza-page .hall-map-body .row>.btn{min-height:38px;height:38px;padding:0 12px;border-radius:6px;font-size:14px}body.jm-plaza-page .hall-map-body [data-joinhall]{background:#49b5f2;border-color:#49b5f2;color:#fff}body.jm-plaza-page .gpc:hover{transform:translateY(-2px)}body.jm-plaza-page .hall-more{font-size:11px}

body.my-page #quizzes .qbody{min-height:152px;box-sizing:border-box}.my-quiz-by{font-size:14px;line-height:1.55;font-weight:700;color:var(--navy);margin:4px 0 2px}

.map-picker.openroom .mapc:has(.map-new) em{left:8px!important;top:28px!important}@media(max-height:500px){.map-picker.openroom .mapc:has(.map-new) em{left:44px!important;top:4px!important;max-width:calc(100% - 50px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:350px) and (max-height:650px){.map-picker.start.startC .maps{grid-template-columns:repeat(3,minmax(0,1fr))!important}}

.class-history .record-toolbar select.in,.student-records .record-toolbar select.in{min-width:105px;padding-inline:12px 32px;background-position:right 10px center}.history-entry{display:flex;align-items:center;gap:8px;border-bottom:1px solid #e9edf4}.history-entry .history-row{flex:1;min-width:0;border-bottom:0}.history-entry .history-delete{color:#ac315b;flex:none}.history-copy .history-subject{margin:3px 0 0}@media(max-width:700px){.history-entry .history-row{grid-template-columns:minmax(0,1fr) 54px 67px}.history-entry .history-delete{padding-inline:7px}}

/* Approved occupied-map badge: empty maps have no badge. */
@media(max-width:960px),(max-height:500px){.map-picker.openroom #orMaps .mapc>.map-poster-name{height:56px!important;padding:5px 6px 30px!important;font-size:12px!important}.map-picker.openroom #orMaps .mapc>em{font-size:10px!important;padding:3px 5px!important;right:5px!important;bottom:5px!important}}.map-picker.openroom #orMaps .mapc>em{inset:auto 8px 8px auto!important;width:max-content!important;height:auto!important;min-width:0!important;min-height:0!important;display:inline-flex!important;align-items:center!important;transform:none!important}.map-picker.openroom #orMaps .mapc>em:after,.map-picker.openroom #orMaps .mapc>em:before{content:none!important}.map-picker.openroom .mapc>em{left:auto!important;top:auto!important;right:8px!important;bottom:8px!important;z-index:3;background:#fff!important;color:#24566c!important;border:1px solid #d5edf5;box-shadow:0 1px 5px #10293d26;font:700 12px/1.2 Free,sans-serif!important;padding:4px 7px!important;white-space:nowrap}.map-picker.openroom .mapc>em.full{background:#fff1e7!important;color:#a34c18!important;border-color:#ffd4b5}.map-picker.openroom .mapc:has(>em)>.map-poster-name{padding-right:100px!important}.map-picker.openroom .mapc:has(>em.full)>.map-poster-name{padding-right:138px!important}@media(max-width:600px){.map-picker.openroom .mapc>em{right:5px!important;bottom:5px!important;font-size:11px!important;padding:3px 5px!important}.map-picker.openroom .mapc>.map-poster-name{height:56px!important;padding-top:5px!important}.map-picker.openroom .mapc:has(>em)>.map-poster-name{padding-right:5px!important}.map-picker.openroom .mapc>em{bottom:5px!important}}


/* Shared close control: a dedicated top corner, independent of heading layout. */
.dim>.dlg:has(>.jm-dialog-close){position:relative;padding-top:68px!important}
.dim>.dlg>.jm-dialog-close{position:absolute!important;inset:16px 16px auto auto!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border:0!important;border-radius:10px!important;clip-path:none!important;cursor:pointer;z-index:5;background:transparent url(img/ui/dialog-close.svg) center/24px 24px no-repeat!important;image-rendering:auto!important;box-shadow:none!important;transform:none!important}
.dim>.dlg>.jm-dialog-close:hover{background-color:rgba(0,0,0,.04)!important}
.dim>.dlg>.jm-dialog-close:focus-visible{outline:3px solid #49b5f2;outline-offset:3px}
.dim>.dlg .pv-heading{grid-template-columns:128px minmax(0,1fr)}
@media(max-width:600px){.dim>.dlg .pv-heading{grid-template-columns:88px minmax(0,1fr)}}

/* Match the room badge to the adjacent map-order button. */
.map-picker .dhead2 .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding-block: 0;
  line-height: 1;
  clip-path: none;
  border-radius: 4px;
}
@media (max-height: 500px) and (min-width: 500px) {
  .map-picker .dhead2 .eyebrow { min-height: 20px; padding-block: 0 !important; }
}
