/* Object card shares the portal's navy surfaces, cobalt actions and clear hierarchy. */
/* Keep centred arrows under the pointer throughout press/release; a moving hit
   target can turn a normal click into a backdrop click that closes the viewer. */
#photo-modal #modal-prev,#photo-modal #modal-next,
#photo-modal #modal-prev:active,#photo-modal #modal-next:active {
  transform: translateY(-50%);
  transition-property: background-color,color;
}
body[data-design-page="card"] { --canvas: #091426; }
body[data-design-page="card"] > #page-card { margin-left: var(--sidebar); width: calc(100% - var(--sidebar))!important; }
body[data-design-page="card"] .portal-sidebar { display: flex; background: #0b1729; border-right-color: #213650; padding-top: 27px; }
body[data-design-page="card"] .portal-brand { font-size: 16px; }
body[data-design-page="card"] .brand-symbol { background: #1465ef; border-color: #428cff; color: white; box-shadow: 0 6px 26px #145fe533; }
body[data-design-page="card"] .sidebar-label { color: #7d99bb; font-size: 9px; padding-top: 38px; }
body[data-design-page="card"] .portal-nav { gap: 8px; }
body[data-design-page="card"] .portal-nav a { color: #b9cce6; font-size: 13px; padding: 14px 13px; }
body[data-design-page="card"] .portal-nav a.is-current { background: linear-gradient(110deg,#1569f5,#175bce); border-color: #478dff; box-shadow: 0 5px 22px #005dff30; }
body[data-design-page="card"] .portal-nav a.is-current .material-symbols-outlined { color: white; }
body[data-design-page="card"] .sidebar-account { background: #13233a; border-color: #2a4160; }
body[data-design-page="card"] .sidebar-region { color: #9ab6d9; border-color: #273d58; }

#page-card .card-workspace { display: flex; flex-direction: column; height: 100dvh; width: 100%; min-width: 0; background: radial-gradient(ellipse at 100% 0%,#193f6c55,transparent 40%),#091426; }
#page-card .card-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 30px; flex: none; }
.card-breadcrumb { display: flex; align-items: center; gap: 10px; color: #809abd; font-size: 11px; }
.card-breadcrumb a { color: #b4cbea; }
.card-breadcrumb a:hover { color: #80d8ff; }
.card-breadcrumb .material-symbols-outlined { font-size: 16px; color: #45617f; }
.card-breadcrumb strong { font-size: 10px; font-weight: 500; background: #1b3453; border: 1px solid #335175; color: #8dc9ff; border-radius: 5px; padding: 4px 7px; margin-left: 3px; }
.card-back-link { display: inline-flex; align-items: center; gap: 8px; color: #b6cce9; font-size: 11px; padding: 6px 0; }
.card-back-link .material-symbols-outlined { font-size: 18px; }
.card-back-link:hover { color: white; }
#page-card .card-workspace > main.card-scroll { display: block!important; flex: 1; min-height: 0; overflow-y: auto!important; overflow-x: hidden!important; padding: 0 30px; scroll-padding-top: 65px; scrollbar-color: #365576 #0a172a; }
#page-card .card-hero { display: flex; align-items: flex-start; gap: 20px; padding: 17px 26px; border: 1px solid #32567e; border-radius: 14px; background: radial-gradient(ellipse at 20% 0%,#21539766,transparent 70%),linear-gradient(110deg,#142d4c,#102137); position: relative; }
.card-hero-symbol { width: 62px; height: 69px; border-radius: 12px; background: linear-gradient(140deg,#227cff,#1559c7); border: 1px solid #5c9bff; color: white; display: grid; place-items: center; box-shadow: 0 8px 28px #0962ea30; flex: none; margin-top: 2px; }
.card-hero-symbol .material-symbols-outlined { font-size: 34px; }
.card-hero-copy { min-width: 0; flex: 1; }
.card-eyebrow { font-size: 9px; color: #8eafd7; font-weight: 500; letter-spacing: 1.3px; }
#page-card #card-address-slot { margin: 10px 0 15px; font-size: 27px; line-height: 1.28; font-weight: 700; letter-spacing: -.5px; color: #f0f6ff; }
#page-card #card-address-header { display: block; font: inherit!important; letter-spacing: inherit; }
.card-location-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
#page-card #card-header-status { font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; border-radius: 5px; padding: 5px 8px; }
.card-coordinate-wrap { display: flex; align-items: center; gap: 5px; }
.card-coordinate-wrap .material-symbols-outlined { font-size: 16px; color: #77b3e7; }
#page-card #card-address-coords { color: #93b1d5; font-size: 10px; }
.card-hero-actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 148px; padding-top: 2px; }
#page-card .card-hero-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 12px; border-radius: 7px; border: 1px solid #416086; background: #1b3453; color: #d8eaff; font-size: 11px; font-weight: 500; white-space: nowrap; box-shadow: none; transition: background .2s,transform .2s; }
#page-card .card-hero-actions button:hover { background: #2c5079; transform: translateY(-1px); }
.card-hero-actions .material-symbols-outlined { font-size: 17px; }
#page-card .card-scroll #card-metrics-row { display: grid; align-items: stretch; grid-template-columns: .85fr .85fr 1.15fr .85fr 1.6fr; gap: 12px; padding: 0; margin: 16px 0 9px; border: 0!important; background: none!important; }
#page-card #card-metrics-row > .card-metric { grid-column: auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 11px; min-width: 0; padding: 15px 17px; background: #14253d; border: 1px solid #2a4261; border-radius: 10px; }
#page-card #card-metrics-row > .card-metric > span:first-child { display: block; font-size: 10px; color: #94accd; font-weight: 400; text-transform: none; letter-spacing: 0; }
#page-card #card-metrics-row > .card-metric > :last-child { font-size: 21px; font-weight: 600; color: #e3efff; line-height: 1.3; }
#page-card #card-metrics-row #metric-uk { font-size: 13px; white-space: normal; overflow: visible; text-overflow: clip; }
#page-card .dossier-tabs { display: flex; gap: 24px; border-bottom: 1px solid #304662; margin-bottom: 20px; position: sticky; top: 0; z-index: 30; background: #091426ed; backdrop-filter: blur(14px); padding-top: 5px; }
.dossier-tabs button { display: inline-flex; align-items: center; gap: 8px; color: #8fa9cb; font-size: 12px; padding: 16px 3px; font-weight: 500; border-bottom: 2px solid transparent; background: none; transition: color .18s,border-color .18s; white-space: nowrap; }
.dossier-tabs button .material-symbols-outlined { font-size: 18px; }
.dossier-tabs button[aria-selected="true"] { color: #84d2ff; border-color: #3399ff; }
.dossier-tabs button:hover { color: #e7f3ff; }
#card-doc-count { border-radius: 4px; background: #1d3656; color: #9bc7ef; padding: 2px 5px; font-size: 9px; }
#page-card .dossier-panel[hidden], #page-card [hidden] { display: none!important; }
.dossier-panel { animation: none; }
#page-card .dossier-overview { display: grid; grid-template-columns: minmax(0,1fr) 290px; align-items: start; gap: 18px; }
.card-overview-main, .card-overview-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
#page-card .dossier-surface { background: #112139!important; border: 1px solid #2b4565!important; border-radius: 12px!important; padding: 20px; box-shadow: none; }
.dossier-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.dossier-panel-heading > div { display: flex; align-items: center; gap: 9px; }
.dossier-panel-heading .material-symbols-outlined { color: #78bfff; font-size: 20px; }
#page-card .dossier-panel-heading h2 { font-size: 14px; font-weight: 600; color: #e8f1ff; }
.dossier-panel-heading > span { font-size: 10px; color: #8faaca; white-space: nowrap; }
#page-card .card-photo-panel { height: auto!important; min-height: 190px; display: flex; flex-direction: column; }
#page-card #photo-gallery-new { min-height: 120px; overflow: visible; gap: 10px; grid-template-columns: repeat(4,minmax(0,1fr))!important; }
#page-card #photo-gallery-new > [data-gallery-idx] { aspect-ratio: 16/10; border-radius: 8px!important; border-color: #355477; }
#page-card #photo-gallery-new > [data-gallery-idx]:hover { border-color: #5eb8ff; }
#page-card #photo-gallery-new .opacity-50 { opacity: 1; color: #809abb; }
#page-card #photo-gallery-new .opacity-50 .material-symbols-outlined { color: #587fae; font-size: 34px; margin-bottom: 11px; }
#page-card #photo-gallery-new p { text-transform: none; font-size: 11px; font-weight: 400; letter-spacing: 0; }
#page-card .card-photo-panel[data-empty="true"] #photo-gallery-new { border: 1px dashed #344d6b; border-radius: 9px; background: #102038; }
#page-card .card-summary h3 { font-size: 14px; font-weight: 600; color: #e4efff; margin-bottom: 15px; }
#page-card .card-summary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
#page-card .card-summary dl > div { display: block; padding: 11px 0; border-bottom: 1px solid #2a3f5d; }
#page-card .card-summary dt { font-size: 10px; color: #8ba5c7; margin-bottom: 7px; }
#page-card .card-summary dd { color: #d5e5f9; font-size: 12px; text-align: left; overflow-wrap: anywhere; }
#page-card .card-condition-panel { display: flex; flex-direction: column; align-items: center; text-align: center; background: radial-gradient(ellipse at 50% 5%,#20578a42,transparent 75%),#112139!important; }
#page-card .card-wear-label { align-self: stretch; text-align: left; font-size: 14px; font-weight: 600; color: #e3efff; text-transform: none; letter-spacing: 0; }
#page-card .card-wear-visual { width: 134px; height: 134px; margin: 20px auto 8px; background: conic-gradient(var(--wear-color,#2993f6) var(--percent,0%),#28415f 0); }
#page-card .card-wear-visual::before { inset: 12px; background: #112139; }
#page-card #card-mkd-wear { font-size: 36px; color: #ecf6ff; font-weight: 600; }
#page-card .card-wear-caption { margin-top: 7px; color: #9eb9d9; font-size: 11px; }
.card-condition-caption { font-size: 11px; color: #819dc2; line-height: 1.6; margin: 13px 0 18px; }
#page-card .card-condition-link { border-top: 1px solid #2e4767; padding-top: 15px; display: flex; justify-content: space-between; width: 100%; align-items: center; color: #83c6ff; font-size: 11px; background: none; }
.card-condition-link .material-symbols-outlined { font-size: 18px; }
.card-materials-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #a59bff; border: 1px solid #514982; background: #302d5144; border-radius: 8px; margin-bottom: 13px; }
.card-materials-icon .material-symbols-outlined { font-size: 21px; }
.card-materials-teaser h2 { font-size: 13px; font-weight: 600; color: #dfebfc; }
.card-materials-teaser p { font-size: 11px; color: #90a7c9; line-height: 1.6; margin: 8px 0 16px; }
.card-materials-teaser button { display: flex; justify-content: space-between; gap: 7px; align-items: center; width: 100%; color: #aacdff; background: none; font-size: 11px; }
.card-materials-teaser button .material-symbols-outlined { font-size: 17px; }
#page-card .dossier-systems { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 18px; align-items: start; }
#page-card .card-system-selector { grid-column: 2; grid-row: 1; padding: 17px; min-width: 0; }
.card-system-detail-column { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
#page-card .card-system-detail-column { gap: 0; }
#page-card .card-system-detail-column #system-content-new { position: relative; min-height: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
#page-card .card-system-detail-column #system-photos-section { margin-top: 20px; padding: 18px 0 0; border: 0; border-top: 1px solid #2d4665; border-radius: 0; background: transparent; }
#page-card #system-photos-section h3 { font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; padding-left: 0; }
#page-card #system-photos-section:has(#system-photos-gallery:empty) #system-overview-photos-section { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
#page-card #systems-horizontal { overflow: visible; padding: 0; gap: 8px; }
#page-card #systems-horizontal .system-card { background: #162c48!important; border: 1px solid #2f4a6d!important; padding: 12px; border-radius: 8px!important; cursor: pointer; min-width: 0; }
#page-card #systems-horizontal .system-card:hover { background: #203e62!important; border-color: #4a729c!important; }
#page-card #systems-horizontal .system-card[class*="bg-primary/10"] { background: linear-gradient(100deg,#1c579a,#16477e)!important; border-color: #4f95e2!important; box-shadow: inset 3px 0 #78c7ff; }
[data-system-category="1"] { --category-bg: #174d3b; --category-border: #359c72; }
[data-system-category="2"] { --category-bg: #61501d; --category-border: #bd9639; }
[data-system-category="3"] { --category-bg: #663b20; --category-border: #ce803e; }
[data-system-category="4"] { --category-bg: #642e37; --category-border: #d06977; }
#page-card #systems-horizontal .system-card[data-system-category]:not([data-system-category=""]),.system-transfer-ghost[data-system-category]:not([data-system-category=""]) { background: linear-gradient(110deg,var(--category-bg),color-mix(in srgb,var(--category-bg) 78%,#102039))!important; border-color: var(--category-border)!important; box-shadow: none; }
#page-card #systems-horizontal .system-card[data-system-category]:not([data-system-category=""]):hover { background: color-mix(in srgb,var(--category-bg) 85%,white)!important; border-color: color-mix(in srgb,var(--category-border) 70%,white)!important; }
#page-card #systems-horizontal .system-card[data-system-category]:not([data-system-category=""]) .text-slate-400 { color: #d5e1ea; }
#page-card .card-system-detail-column[data-system-category]:not([data-system-category=""]) { background: linear-gradient(135deg,color-mix(in srgb,var(--category-bg) 82%,#112139),#112139 75%)!important; border-color: color-mix(in srgb,var(--category-border) 75%,#2b4565)!important; }
#page-card .system-evidence-layout { display: grid; grid-template-columns: minmax(220px,.75fr) minmax(0,1.25fr); align-items: start; gap: 20px; }
#page-card .system-evidence-layout:has(> #system-photos-section[style*="display: none"]) { grid-template-columns: minmax(0,1fr); }
#page-card .system-evidence-layout > :only-child { grid-column: 1/-1; }
#page-card .system-evidence-layout .system-defect-details { min-width: 0; }
#page-card .system-evidence-layout #system-photos-section { margin: 0; padding: 0 18px 0 0; border: 0; border-right: 1px solid #91acc533; }
#page-card .system-evidence-layout #system-photos-gallery,#page-card .system-evidence-layout #system-overview-photos-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
#page-card .system-defect-details [id^="systabcontent"] > div { flex-wrap: wrap; }
#page-card .system-defect-details [id^="systabcontent"] > div > p { min-width: 130px; }
@media(max-width:1250px) {
  #page-card .system-evidence-layout { grid-template-columns: minmax(0,1fr); }
  #page-card .system-evidence-layout #system-photos-section { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid #91acc533; }
  #page-card .system-evidence-layout #system-photos-gallery,#page-card .system-evidence-layout #system-overview-photos-gallery { grid-template-columns: repeat(auto-fill,minmax(95px,130px)); }
}
#page-card #systems-horizontal .system-card .truncate { white-space: normal; color: #dcecff; font-size: 11px; font-weight: 500; }
#page-card #systems-horizontal .system-card [class*="text-[10px]"] { font-size: 10px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.card-systems-note { color: #7e99bc; font-size: 10px; line-height: 1.65; border-top: 1px solid #2a4262; padding-top: 13px; margin-top: 15px; }
#page-card #system-content-new { min-height: 270px; padding: 23px; scroll-margin-top: 66px; }
#page-card #system-content-new h2 { font-size: 21px; color: #edf5ff; font-weight: 600; }
#page-card #system-content-new .bg-white\/5 { background: #1b304b; border-color: #304a69; }
#page-card #system-content-new p.text-white { color: #d7e7fb; }
#page-card #system-content-new [class*="text-[10px]"] { text-transform: none; letter-spacing: 0; font-weight: 400; color: #99b1d1; font-size: 11px; }
#page-card #system-content-new .systab-btn { font-size: 11px; border-radius: 6px; padding: 8px 10px; }
#page-card #system-content-new .systab-btn.bg-primary { background: #277ff5; }
#page-card #system-content-new .systab-btn ~ button { white-space: normal; }
.card-system-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 220px; padding: 15px; gap: 13px; }
.card-system-placeholder > .material-symbols-outlined { color: #6fa8e7; font-size: 36px; }
#page-card .card-system-placeholder h2 { font-size: 18px!important; }
.card-system-placeholder p { color: #8fa8c9; font-size: 12px; line-height: 1.6; }
.card-loading-dot { width: 28px; height: 28px; border: 2px solid #2b527c; border-top-color: #66bdff; border-radius: 50%; animation: card-loader .8s linear infinite; }
#page-card #system-photos-section { width: 100%; min-width: 0; }
#page-card #system-photos-gallery, #page-card #system-overview-photos-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
#page-card #repairs-btn-wrapper { margin-top: 12px; }
#page-card #btn-repairs { border: 1px solid #4e5884; background: #343153; color: #c2b9ff; font-size: 11px; padding: 10px 12px; }
#page-card .card-documents-intro { margin-bottom: 21px; }
.card-documents-intro h2 { color: #e5f0ff; font-size: 23px; font-weight: 600; margin-top: 8px; }
.card-documents-intro p { color: #91a9ca; font-size: 12px; margin-top: 8px; }
#page-card #card-document-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
#page-card .card-document-tile { display: flex; text-align: left; align-items: center; justify-content: flex-start; gap: 14px; background: #152a46!important; border: 1px solid #355376!important; border-radius: 11px!important; padding: 20px!important; box-shadow: none; color: #daeafd!important; transition: border-color .2s,background .2s; }
#page-card .card-document-tile[style*="display: none"], #page-card .card-document-tile[style*="display:none"], #page-card .card-document-tile.hidden { display: none!important; }
#page-card .card-document-tile:hover:enabled { background: #20416a!important; border-color: #559de9!important; }
#page-card .card-document-tile > .material-symbols-outlined:first-child { font-size: 27px; color: #7abfff; }
#page-card .card-document-tile > .material-symbols-outlined:last-child { margin-left: auto; color: #8baed6; font-size: 18px; }
.card-document-tile strong { display: block; font-size: 13px; font-weight: 600; }
.card-document-tile small { display: block; font-size: 10px; color: #93accd; margin-top: 6px; font-weight: 400; line-height: 1.5; }
#page-card .card-document-tile:disabled { opacity: .5; cursor: default; }
#page-card .card-documents-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 240px; margin-top: 17px; }
.card-documents-empty > .material-symbols-outlined { background: #203b5c; border: 1px solid #37587d; color: #83baf6; padding: 15px; border-radius: 12px; font-size: 30px; }
#page-card .card-documents-empty h3 { color: #dceaff; font-size: 17px; font-weight: 600; margin-top: 18px; }
.card-documents-empty p { color: #8aa5c7; font-size: 12px; margin-top: 9px; }
#page-card #card-schemas-section, #page-card #sogl-panel { margin-top: 17px; }
#page-card #sogl-panel-content { flex-wrap: wrap; }
#page-card #sogl-panel-content > div { min-width: 0; flex: 1 1 230px; }
#page-card #card-schemas-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
#page-card .card-footer { display: flex; justify-content: space-between; gap: 20px; color: #6987ae; font-size: 9px; padding: 20px 0; }
#page-card :is(button,a,[role="button"],[role="tabpanel"]):focus-visible { outline: 2px solid #72d1ff; outline-offset: 3px; }
/* Selected systems leave the list; the remaining rows animate into their new positions. */
#page-card #systems-horizontal .system-card { position: relative; height: 56px; width: 100%; }
#page-card #systems-horizontal .system-card[data-transferred="true"] { display: none; }
#page-card #systems-horizontal .system-card[data-returning="true"] { visibility: hidden; pointer-events: none; }
.system-transfer-ghost { position: fixed; z-index: 1100; pointer-events: none; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 18px; border: 1px solid #63afff; background: linear-gradient(115deg,#235a94,#143555); box-shadow: 0 14px 45px #0005; color: #e9f4ff; box-sizing: border-box; }
.system-transfer-ghost strong { font-size: 14px; font-weight: 600; }
.system-transfer-ghost span { font-size: 10px; color: #bddcff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#page-card .system-access-note { display: flex; gap: 10px; padding: 14px; border: 1px solid #36516e; border-radius: 9px; background: #172c44; color: #abc1db; font-size: 12px; line-height: 1.6; }
.system-access-note > span { font-size: 20px; color: #80b5e3; }
#page-card .card-photo-panel { min-height: 0; }
#page-card #photo-gallery-new { min-height: 96px; grid-template-columns: repeat(4,minmax(0,1fr))!important; }
#page-card #photo-gallery-new > [data-gallery-idx] { aspect-ratio: 4/3; }
#page-card .card-photo-panel[data-empty="true"] #photo-gallery-new { display: flex; align-items: center; justify-content: center; }
#page-card #system-photos-gallery,#page-card #system-overview-photos-gallery { grid-template-columns: repeat(auto-fill,minmax(96px,130px)); gap: 10px; }
#page-card #system-photos-gallery > div,#page-card #system-overview-photos-gallery > div { aspect-ratio: 4/3; border-radius: 8px; }
@keyframes dossier-panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes card-loader { to { transform: rotate(360deg); } }

@media(max-width:1150px) {
  #page-card .card-topbar { padding: 17px 22px; }
  #page-card .card-workspace > main.card-scroll { padding: 0 22px; }
  #page-card .card-hero { padding: 12px 20px; gap: 15px; flex-wrap: wrap; }
  .card-hero-actions { flex-direction: row; flex: 1 1 100%; padding: 0; }
  #page-card #card-address-slot { font-size: 23px; }
  .card-hero-symbol { width: 49px; height: 57px; }
  #page-card .dossier-overview { grid-template-columns: minmax(0,1fr) 250px; gap: 14px; }
  #page-card .dossier-systems { grid-template-columns: minmax(0,1fr) 250px; gap: 14px; }
  #page-card .dossier-surface { padding: 17px; }
  #page-card .card-scroll #card-metrics-row { gap: 8px; }
  #page-card #card-metrics-row > .card-metric { padding: 13px 12px; }
  #page-card .card-summary dl { grid-template-columns: 1fr; }
  #page-card #photo-gallery-new { grid-template-columns: repeat(2,minmax(0,1fr))!important; }
}
@media(max-width:900px) {
  #page-card .dossier-overview { grid-template-columns: 1fr; }
  .card-overview-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  #page-card .dossier-systems { display: flex; flex-direction: column; }
  #page-card .card-system-selector, .card-system-detail-column { width: 100%; }
  #page-card #systems-horizontal { display: grid; grid-template-columns: 1fr 1fr; }
  #page-card .card-scroll #card-metrics-row { grid-template-columns: repeat(4,minmax(0,1fr)); }
  #page-card #card-metrics-row > .card-metric:last-child { grid-column: 1/-1; }
  #page-card .card-summary dl { grid-template-columns: 1fr 1fr; }
}
@media(max-width:700px) {
  body[data-design-page="card"] .portal-sidebar { display: none; }
  #page-card .card-workspace { height: calc(100dvh - 62px); }
  #page-card .card-topbar { padding: 14px; gap: 10px; }
  .card-breadcrumb { gap: 7px; font-size: 10px; flex-wrap: wrap; }
  .card-breadcrumb > span:not(.material-symbols-outlined) { display: none; }
  .card-breadcrumb strong { font-size: 9px; margin: 0; }
  .card-back-link { font-size: 10px; gap: 4px; flex: none; }
  #page-card .card-workspace > main.card-scroll { padding: 0 14px; }
  #page-card .card-hero { padding: 12px 18px; gap: 13px; border-radius: 11px; }
  .card-hero-symbol { width: 40px; height: 45px; border-radius: 9px; }
  .card-hero-symbol .material-symbols-outlined { font-size: 26px; }
  .card-eyebrow { font-size: 8px; letter-spacing: .8px; line-height: 1.6; }
  #page-card #card-address-slot { font-size: 20px; margin-top: 8px; line-height: 1.35; }
  .card-hero-copy { flex-basis: calc(100% - 55px); }
  .card-location-line { gap: 9px; }
  #page-card .card-hero-actions button { flex: 1; padding: 10px; font-size: 10px; gap: 6px; }
  #page-card .card-scroll #card-metrics-row { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; overflow: visible; }
  #page-card #card-metrics-row > .card-metric { min-width: 0; padding: 12px; gap: 8px; }
  #page-card #card-metrics-row > .card-metric > :last-child { font-size: 19px; }
  #page-card #card-metrics-row #metric-uk { font-size: 12px; }
  #page-card .dossier-tabs { gap: 15px; margin-bottom: 15px; overflow-x: auto; }
  .dossier-tabs button { font-size: 11px; gap: 6px; padding: 14px 2px; }
  .dossier-tabs button .material-symbols-outlined { display: none; }
  #page-card .dossier-surface { padding: 16px; }
  #page-card .dossier-overview { gap: 14px; }
  .card-overview-main, .card-overview-side { gap: 14px; }
  .card-overview-side { display: flex; }
  #page-card .card-summary dl { gap: 0 16px; }
  #page-card .card-summary dt { font-size: 10px; line-height: 1.5; }
  #page-card .card-summary dd { font-size: 11px; }
  #page-card #system-content-new { padding: 17px; }
  #page-card #system-content-new h2 { font-size: 19px; }
  #page-card #system-content-new .systab-btn { padding: 7px; font-size: 10px; }
  #page-card #system-content-new [id^="systabcontent"] > div { flex-wrap: wrap; }
  #page-card #systems-horizontal .system-card { padding: 11px; min-height: 48px; }
  #page-card #systems-horizontal .system-card .truncate { font-size: 10px; }
  #page-card #systems-horizontal .system-card > span { display: none; }
  #page-card #system-photos-gallery, #page-card #system-overview-photos-gallery, #page-card #card-schemas-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #page-card #card-document-actions { grid-template-columns: 1fr; }
  .card-documents-intro h2 { font-size: 21px; }
  .card-documents-intro p { font-size: 11px; }
  #page-card .card-document-tile { padding: 16px!important; }
  #page-card .card-footer { font-size: 8px; gap: 12px; line-height: 1.5; }
}
@media(prefers-reduced-motion:reduce) {
  #page-card, #page-card *, #page-card *::before { animation-duration: .001ms!important; transition-duration: .001ms!important; scroll-behavior: auto!important; }
}
#page-card #show-on-map-btn{display:flex;align-items:center;gap:10px;padding:10px 15px;border:1px solid #3e91d8;border-radius:30px;background:linear-gradient(120deg,#15457a,#163351);color:#d8efff;box-shadow:0 4px 18px #03172b44;min-width:0;white-space:nowrap;font-size:12px;transition:background .2s,box-shadow .2s}
#page-card #show-on-map-btn:hover{background:linear-gradient(120deg,#2065a8,#1b476f);box-shadow:0 4px 24px #189dff30}
#show-on-map-btn>.material-symbols-outlined{font-size:17px;color:#77cdfa}
.map-locator-pulse{position:relative;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#176fba;color:#adf2ff;flex-shrink:0}
.map-locator-pulse:before{content:'';position:absolute;inset:0;border:1px solid #69d5ff;border-radius:50%;animation:locator-pulse 2.8s ease-out infinite}
.map-locator-pulse>.material-symbols-outlined{font-size:18px}
@keyframes locator-pulse{0%{transform:scale(1);opacity:.7}70%,100%{transform:scale(1.7);opacity:0}}
@media(prefers-reduced-motion:reduce){.map-locator-pulse:before{animation:none}}
#page-card #design-card-summary{padding:26px 28px}
#page-card #design-card-summary h3{font-size:19px;line-height:1.35;margin-bottom:18px}
#page-card #design-card-facts{gap:0 34px}
#page-card #design-card-facts>div{padding:16px 0}
#page-card #design-card-facts dt{font-size:13px;line-height:1.5;margin-bottom:8px;color:#a9bfd9}
#page-card #design-card-facts dd{font-size:16px;line-height:1.5;font-weight:500;color:#e6f1ff}
@media(max-width:700px){#page-card #design-card-summary{padding:20px}#page-card #design-card-facts{grid-template-columns:1fr}#page-card #design-card-facts>div{padding:13px 0}}
.card-inline-systems{grid-column:1/-1;scroll-margin-top:70px}
#page-card .card-hero-actions{align-items:stretch}
#page-card .card-hero-actions .card-hero-documents{display:flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 15px;border-radius:24px;background:#183952;border:1px solid #386383;color:#d9edff;font-size:12px;transition:background .2s,border-color .2s}
#page-card .card-hero-documents>.material-symbols-outlined{font-size:19px;color:#8accf2}
#page-card .card-hero-actions .card-hero-documents:hover,#page-card .card-hero-actions .card-hero-documents[aria-pressed=true]{background:#20527c;border-color:#53a6e3}
@media(max-width:700px){#page-card .card-hero-actions{flex-direction:column}}
@media(min-width:1101px){
 #page-card .dossier-overview{align-items:stretch}
 #page-card .card-overview-main,#page-card .card-overview-side{align-self:stretch}
 #page-card .card-photo-panel,#page-card .card-condition-panel{flex:1}
 #page-card #photo-gallery-new{flex:1;grid-auto-rows:1fr}
 #page-card #photo-gallery-new>[data-gallery-idx]{aspect-ratio:auto;min-height:150px}
}

#page-card .dossier-overview > #card-schemas-section{grid-column:1 / -1;margin-top:0}
