/* Old Picture Art — Art Passport. Uses existing light/dark design tokens. */
.passport-page {color:var(--text);}
.passport-main {max-width:1200px;margin:0 auto;padding:2.5rem max(1rem, min(4vw, 3rem)) 4rem;}
.passport-header {display:flex;align-items:center;justify-content:space-between;gap:2rem;border-bottom:1px solid var(--border);padding-bottom:2rem;}
.passport-header h1 {font-family:var(--ff-text);font-size:clamp(2.2rem,5vw,4.4rem);line-height:1.08;margin:.35rem 0 1rem;}
.passport-header .eyebrow {text-transform:uppercase;letter-spacing:.15em;color:var(--muted);font:var(--fs-sm) var(--ff-data);}
.passport-intro {font-size:clamp(1rem,1.5vw,1.2rem);line-height:1.6;max-width:700px;color:var(--text-2);margin:0 0 .8rem;}
.passport-owner {font:var(--fs-sm) var(--ff-data);color:var(--muted);margin:0;}
.passport-emblem {width:145px;height:178px;border:3px double #aa8a52;background:linear-gradient(155deg,var(--panel),var(--card-bg));display:flex;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;color:var(--text);box-shadow:0 8px 24px var(--shadow);transform:rotate(3deg);}
.passport-emblem span {font:700 2.8rem var(--ff-text);border-top:1px solid #aa8a52;border-bottom:1px solid #aa8a52;padding:.2rem;}
.passport-emblem small {font:var(--fs-xs) var(--ff-data);letter-spacing:.1em;}
.passport-info,.passport-note {padding:.9rem 1.1rem;border-left:3px solid #b59b6b;background:var(--history-bg);color:var(--text-2);line-height:1.5;font-size:var(--fs-sm);}
.passport-info {margin:1.7rem 0;}
.passport-stats {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.7rem;margin:1.5rem 0 2rem;}
.passport-stat {background:var(--card-bg);border:1px solid var(--border);min-height:116px;padding:1.15rem .85rem;display:flex;flex-direction:column;gap:.45rem;justify-content:center;}
.passport-stat-number {font:600 clamp(1.7rem,3vw,2.6rem) var(--ff-text);color:var(--text);font-variant-numeric:tabular-nums;}
.passport-stat span {font-size:.78rem;color:var(--muted);line-height:1.35;}
.passport-tabs {display:flex;gap:.3rem;overflow-x:auto;border-bottom:1px solid var(--border);padding:.35rem 0;margin:1rem 0 1.5rem;scrollbar-width:thin;}
.passport-tabs button {white-space:nowrap;background:transparent;border:1px solid transparent;color:var(--text-2);border-radius:0;padding:.8rem 1.1rem;font:var(--fs-sm) var(--ff-data);cursor:pointer;}
.passport-tabs button[aria-pressed="true"] {border-color:var(--border);border-bottom-color:var(--active);color:var(--text);background:var(--card-bg);}
.passport-tabs button:hover {background:var(--panel);}
.passport-panel {min-height:280px;}
.passport-section-title {font-family:var(--ff-text);font-size:clamp(1.4rem,2.4vw,2rem);margin:2rem 0 .8rem;}
.passport-panel > .passport-section-title:first-child {margin-top:.3rem;}
.passport-small {color:var(--muted);line-height:1.5;font-size:var(--fs-sm);margin:.5rem 0 1.2rem;}
.passport-work-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1rem 0 2rem;}
.passport-work-card {display:flex;flex-direction:column;border:1px solid var(--border);background:var(--card-bg);min-width:0;overflow:hidden;}
.passport-work-art {aspect-ratio:1.35;display:flex;align-items:center;justify-content:center;background:var(--panel);}
.passport-work-art img {width:100%;height:100%;object-fit:contain;}
.passport-work-body {padding:.9rem;display:flex;flex-direction:column;gap:.45rem;flex:1;}
.passport-work-title {font:600 1rem var(--ff-text);line-height:1.35;color:var(--text);text-decoration:none;}
.passport-work-title:hover,.passport-directory a:hover {text-decoration:underline;}
.passport-work-meta {font-size:.75rem;line-height:1.4;color:var(--muted);margin:.2rem 0;}
.passport-work-body .passport-toggle {margin-top:auto;}
.passport-empty {border:1px dashed var(--border);padding:1.4rem;margin:1rem 0 1.5rem;background:var(--panel);}
.passport-empty p {margin:0 0 .7rem;}
.passport-text-link {color:var(--link);}
.passport-shortcuts {display:flex;flex-wrap:wrap;gap:.7rem;margin:1rem 0 1.8rem;}
.passport-shortcuts button,.passport-tool-buttons button,.passport-import,.passport-collection-actions button,.passport-search-row button,.passport-primary,.passport-more {padding:.65rem .9rem;border:1px solid var(--border);background:var(--card-bg);color:var(--text);font:var(--fs-sm) var(--ff-data);cursor:pointer;}
.passport-shortcuts button:hover,.passport-tool-buttons button:hover,.passport-collection-actions button:hover,.passport-search-row button:hover {border-color:var(--active);}
.passport-link-list {display:flex;flex-wrap:wrap;gap:.6rem;margin:.8rem 0 1.7rem;}
.passport-link-list a {display:inline-block;border:1px solid var(--border);background:var(--card-bg);padding:.5rem .7rem;color:var(--text-2);font-size:var(--fs-sm);text-decoration:none;}
.passport-link-list a:hover {border-color:var(--active);}
.passport-search {width:100%;max-width:600px;min-height:43px;padding:.6rem .75rem;background:var(--card-bg);border:1px solid var(--input-border);color:var(--text);font:var(--fs-sm) var(--ff-data);}
.passport-search-row {display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;}
.passport-search-row .passport-search {flex:1;}
.passport-directory {margin:1rem 0 2rem;border-top:1px solid var(--border);}
.passport-dir-row {display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:.8rem .2rem;border-bottom:1px solid var(--rule-soft);}
.passport-dir-row a {color:var(--text);font-size:var(--fs-base);text-decoration:none;}
.passport-toggle {border:1px solid var(--border);background:var(--card-bg);padding:.5rem .75rem;color:var(--text);min-height:38px;cursor:pointer;white-space:nowrap;font:var(--fs-xs) var(--ff-data);}
.passport-toggle.is-checked,.passport-toggle[aria-pressed="true"] {background:var(--accent-soft);color:var(--link);border-color:var(--active);}
.passport-toggle:hover,.passport-more:hover {border-color:var(--active);}
.passport-more {display:block;margin:1rem auto 2rem;}
.passport-collection {background:var(--card-bg);border:1px solid var(--border);padding:1.15rem;margin:1rem 0;}
.passport-collection-head {display:flex;gap:1rem;justify-content:space-between;align-items:center;}
.passport-collection-head h3 {font:600 1.4rem var(--ff-text);margin:.2rem 0;}
.passport-collection-actions {display:flex;gap:.5rem;flex-wrap:wrap;margin:.7rem 0 1.2rem;}
.passport-collection-actions button {font-size:.73rem;padding:.5rem .65rem;}
.passport-collection-actions button.passport-danger {color:var(--error);}
.passport-primary {background:var(--active);color:var(--on-active);margin:.3rem 0 1rem;}
.passport-collection-list {border-top:1px solid var(--rule-soft);}
.passport-collection-item {display:flex;align-items:center;gap:.8rem;justify-content:space-between;padding:.65rem 0;border-bottom:1px solid var(--rule-soft);}
.passport-collection-item a {color:var(--link);text-decoration:none;line-height:1.4;}
.passport-collection-item button {border:0;background:transparent;cursor:pointer;color:var(--muted);font:var(--fs-xs) var(--ff-data);}
.passport-tools {border-top:1px solid var(--border);padding-top:1.4rem;margin-top:3rem;color:var(--muted);font-size:var(--fs-sm);line-height:1.5;}
.passport-tools a {color:var(--link);}
.passport-tool-buttons {display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin-top:1.1rem;}
.passport-import {position:relative;display:inline-flex;align-items:center;}
.passport-import input {position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;}
.passport-import:focus-within {outline:2px solid var(--active);outline-offset:2px;}
.passport-feedback {font-size:.8rem;min-height:1.5rem;}
.passport-dialog-overlay {position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:10000;display:flex;align-items:center;justify-content:center;padding:1rem;}
.passport-dialog {background:var(--card-bg);color:var(--text);border:1px solid var(--border);padding:1.3rem;max-width:670px;width:100%;max-height:85vh;overflow:auto;box-shadow:0 10px 35px var(--shadow-strong);position:relative;}
.passport-dialog h2 {font:1.5rem var(--ff-text);padding-right:2.5rem;}
.passport-dialog-close {position:absolute;top:.8rem;right:.8rem;min-width:36px;min-height:36px;border:1px solid var(--border);background:var(--panel);color:var(--text);cursor:pointer;}
.passport-picker-results {margin-top:1rem;max-height:50vh;overflow:auto;}
.passport-picker-results .passport-dir-row span {overflow-wrap:anywhere;}
.passport-page button:focus-visible,.passport-page a:focus-visible {outline:2px solid var(--active);outline-offset:2px;}
/* Action buttons on existing artist, museum and artwork pages. */
.opa-passport-actionbar {display:flex;flex-wrap:wrap;gap:.55rem;margin:1rem 0;}
.opa-passport-actionbar a,.opa-passport-actionbar button {min-height:38px;border:1px solid var(--border);background:var(--card-bg);padding:.55rem .8rem;color:var(--text);font:var(--fs-sm) var(--ff-data);text-decoration:none;cursor:pointer;}
.opa-passport-actionbar button[aria-pressed="true"] {color:var(--link);border-color:var(--active);background:var(--accent-soft);}
@media(max-width:1000px){.passport-stats{grid-template-columns:repeat(3,minmax(0,1fr));}.passport-work-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:650px){.passport-main{padding:1rem .8rem 2.5rem;}.passport-emblem{width:85px;height:110px;transform:none;}.passport-emblem span{font-size:1.6rem;}.passport-emblem small{font-size:.55rem;}.passport-header{gap:1rem;}.passport-stats{grid-template-columns:repeat(2,minmax(0,1fr));}.passport-stat{min-height:90px;padding:.8rem;}.passport-work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;}.passport-work-body{padding:.55rem;}.passport-work-title{font-size:.9rem;}.passport-tabs button{padding:.7rem .8rem;}.passport-dir-row{gap:.45rem;}.passport-dir-row a{font-size:.94rem;}.passport-toggle{white-space:normal;font-size:.66rem;}.passport-search-row{flex-direction:column;align-items:stretch;}.passport-search-row .passport-search{max-width:none;}}

/* Art passport v3 — diary, albums, accessible dialogs and personal map. */
.passport-syncbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;}
.passport-syncbar span{flex:1;}
.passport-syncbar button{background:var(--card-bg);border:1px solid var(--active);color:var(--text);padding:.55rem .8rem;cursor:pointer;}
.passport-syncbar button:disabled{opacity:.5;cursor:not-allowed;}
.passport-stat{cursor:pointer;text-align:left;font:inherit;color:inherit;border:1px solid var(--border);}
.passport-stat:hover{border-color:var(--active);}
.passport-shortcuts{display:flex;gap:.5rem;flex-wrap:wrap;margin:.6rem 0 1.25rem;}
.passport-shortcuts button,.passport-panel>button,.passport-inline-actions button,.passport-collection-actions button,.passport-text-button,.passport-album>button{background:var(--card-bg);border:1px solid var(--border);color:var(--text);padding:.55rem .85rem;min-height:39px;cursor:pointer;font:var(--fs-sm) var(--ff-data);}
.passport-shortcuts button[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--active);color:var(--link);}
.passport-shortcuts button.passport-primary,.passport-panel>button.passport-primary,.passport-collection-actions button.passport-primary,.passport-form-actions .passport-primary{background:var(--active);color:var(--on-active);border-color:var(--active);}
.passport-small{overflow-wrap:anywhere;}
.passport-search-container{margin:.9rem 0 2rem;}
.passport-search{min-width:0;width:100%;max-width:620px;padding:.78rem .9rem;border:1px solid var(--border);background:var(--card-bg);color:var(--text);font:var(--fs-base) var(--ff-data);border-radius:3px;}
.passport-inline-actions{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap;}
.passport-inline-actions a{color:var(--link);text-decoration:none;padding:.45rem;}
.passport-dir-row{min-height:52px;}
.passport-dir-row>span{min-width:0;overflow-wrap:anywhere;}
.passport-dir-row a{overflow-wrap:anywhere;}
.passport-dir-row button{white-space:normal;}
.passport-history{display:grid;gap:.85rem;margin:1rem 0 2rem;}
.passport-history-entry{background:var(--card-bg);border:1px solid var(--border);border-left:3px solid var(--active);padding:1rem 1.2rem;min-width:0;}
.passport-history-entry h3{font:600 clamp(1.1rem,2.1vw,1.4rem) var(--ff-text);margin:.55rem 0;}
.passport-history-entry .passport-small{white-space:pre-wrap;}
.passport-history-entry time{display:block;}
.passport-album-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:.8rem 0 2rem;}
.passport-album{min-width:0;display:flex;flex-direction:column;gap:.5rem;}
.passport-album-cover{height:150px;background:var(--panel);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--muted);overflow:hidden;text-align:center;}
.passport-album-cover img{width:100%;height:100%;object-fit:cover;}
.passport-album-title{font:600 1.2rem var(--ff-text);line-height:1.25;overflow-wrap:anywhere;}
.passport-collection-head{align-items:flex-start;}
.passport-collection-head .passport-album{width:min(100%,290px);flex:0 1 290px;}
.passport-collection-head .passport-album-cover{height:185px;}
.passport-collection .passport-work-grid{margin-top:1rem;}
.passport-collection .passport-card-actions{display:flex;flex-direction:column;gap:.35rem;}
.passport-order-actions{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;}
.passport-order-actions button,.passport-card-actions>button{min-height:35px;border:1px solid var(--border);background:var(--panel);color:var(--text);cursor:pointer;padding:.3rem .5rem;}
.passport-order-actions .passport-remove{color:var(--error);}
.passport-modal{width:min(94vw,640px);max-height:86vh;overflow:auto;background:var(--card-bg);color:var(--text);border:1px solid var(--border);border-radius:5px;box-shadow:0 20px 55px rgba(0,0,0,.32);padding:1.1rem 1.35rem 1.45rem;}
.passport-modal::backdrop{background:rgba(0,0,0,.68);backdrop-filter:blur(2px);}
.passport-modal-header{display:flex;justify-content:space-between;align-items:center;gap:.8rem;border-bottom:1px solid var(--border);margin-bottom:1rem;padding-bottom:.8rem;}
.passport-modal-header h2{font:600 clamp(1.25rem,2.4vw,1.7rem) var(--ff-text);margin:0;}
.passport-modal-header button{border:1px solid var(--border);background:var(--panel);color:var(--text);font-size:1.4rem;min-width:42px;min-height:42px;cursor:pointer;}
.passport-form{display:grid;gap:1rem;}
.passport-field{display:grid;gap:.4rem;font:var(--fs-sm) var(--ff-data);color:var(--text);}
.passport-field-control{width:100%;background:var(--panel);color:var(--text);border:1px solid var(--border);padding:.7rem .8rem;min-height:42px;font:var(--fs-base) var(--ff-data);}
.passport-field-control:focus-visible{outline:2px solid var(--active);outline-offset:1px;}
.passport-form-actions{display:flex;justify-content:flex-end;gap:.7rem;flex-wrap:wrap;margin-top:.8rem;}
.passport-form-actions button{min-height:40px;padding:.55rem 1rem;border:1px solid var(--border);background:var(--card-bg);color:var(--text);cursor:pointer;}
.passport-form-actions .passport-danger{border-color:var(--error);color:var(--error);}
.passport-modal-choices{display:grid;gap:.5rem;max-height:40vh;overflow:auto;}
.passport-modal-choices button{display:block;width:100%;text-align:left;border:1px solid var(--border);background:var(--panel);color:var(--text);padding:.7rem;cursor:pointer;}
.passport-modal-choices button[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--active);}
.passport-inline-form{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.1rem;}
.passport-inline-form input{flex:1;min-width:130px;padding:.7rem;border:1px solid var(--border);background:var(--panel);color:var(--text);}
.passport-inline-form button{border:1px solid var(--active);background:var(--active);color:var(--on-active);padding:.7rem;cursor:pointer;}
.passport-picker-results{max-height:50vh;overflow:auto;margin-top:1rem;}
.passport-picker-row{display:flex;align-items:center;gap:.7rem;border-bottom:1px solid var(--border);padding:.5rem .2rem;}
.passport-picker-row>span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:var(--fs-sm);}
.passport-picker-row>button{background:var(--panel);color:var(--text);border:1px solid var(--border);padding:.55rem;cursor:pointer;}
.passport-picker-thumb{width:48px;height:55px;flex:0 0 48px;background:var(--panel);}
.passport-picker-thumb img{width:100%;height:100%;object-fit:cover;}
.passport-exhibition-row{border:1px solid var(--border);background:var(--card-bg);padding:1rem;margin:.8rem 0;}
.passport-exhibition-row strong{font:600 1.3rem var(--ff-text);}
.passport-map{height:clamp(320px,55vh,570px);width:100%;border:1px solid var(--border);margin:1rem 0 1.5rem;z-index:0;}
.passport-chart{margin:1.5rem 0 2rem;}
.passport-chart-row{margin:.8rem 0;}
.passport-chart-header{display:flex;justify-content:space-between;gap:1rem;color:var(--text-2);font:var(--fs-sm) var(--ff-data);}
.passport-chart-track{height:9px;background:var(--panel);margin-top:.35rem;}
.passport-chart-fill{height:100%;min-width:2px;background:var(--active);}
.passport-page .passport-modal button:focus-visible,.passport-page .passport-modal input:focus-visible{outline:2px solid var(--active);outline-offset:2px;}
@media(max-width:900px){.passport-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){
 .passport-syncbar{align-items:flex-start;flex-direction:column;}
 .passport-syncbar button{align-self:flex-start;}
 .passport-album-grid{gap:.6rem;}
 .passport-album-cover{height:110px;}
 .passport-collection-head{flex-direction:column;}
 .passport-collection-head .passport-album{width:100%;}
 .passport-history-entry{padding:.8rem;}
 .passport-tabs{scrollbar-width:thin;}
 .passport-tabs button{min-height:42px;}
 .passport-dir-row{align-items:flex-start;}
 .passport-inline-actions{flex-shrink:0;}
 .passport-inline-actions button{font-size:.7rem;}
 .passport-modal{padding:.9rem;width:96vw;}
 .passport-map{height:340px;}
}

/* Passport v3.1 — responsive fixes, site-styled form controls and shared museum-map language. */
.passport-page{-webkit-text-size-adjust:100%;text-size-adjust:100%;}
.passport-page *, .passport-page *::before,.passport-page *::after{box-sizing:border-box;}
.passport-main,.passport-panel,.passport-collection,.passport-history-entry{min-width:0;}
.passport-work-grid{align-items:stretch;grid-auto-flow:row;}
.passport-work-card{height:100%;min-width:0;}
.passport-work-art{flex:none;aspect-ratio:4/3;min-width:0;}
.passport-work-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;min-height:4.05em;overflow-wrap:anywhere;}
.passport-work-meta{overflow-wrap:anywhere;}
.passport-work-card .passport-work-meta{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;min-height:4.15em;}
.passport-work-body{min-width:0;height:100%;}
.passport-card-actions{margin-top:auto;min-width:0;}
.passport-card-actions>button{width:100%;white-space:normal;}
.passport-collection,.passport-album{min-width:0;}
.passport-collection-head{min-width:0;}
.passport-dir-row>a,.passport-dir-row>span{flex:1 1 auto;min-width:0;overflow-wrap:break-word;word-break:normal;line-height:1.45;}
.passport-dir-row>.passport-inline-actions{flex:0 0 auto;max-width:52%;}
.passport-inline-actions button,.passport-inline-actions a{white-space:normal;overflow-wrap:break-word;}
.passport-stat{min-width:0;min-height:110px;}
.passport-stat span{overflow-wrap:break-word;}
.passport-shortcuts button{min-width:0;white-space:normal;line-height:1.45;}
.passport-page button,.passport-page input,.passport-page select,.passport-page textarea{touch-action:manipulation;}
.passport-page .passport-modal{width:min(820px,calc(100vw - 32px));max-height:min(86dvh,820px);max-width:calc(100vw - 24px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-padding-top:92px;scroll-padding-bottom:100px;padding:1rem 1.45rem 1.1rem;}
.passport-modal-header{position:sticky;top:-1rem;z-index:5;background:var(--card-bg);padding:.75rem 0 .9rem;margin:-.75rem 0 1rem;}
.passport-modal-header h2{min-width:0;overflow-wrap:break-word;line-height:1.25;}
.passport-modal-header button{flex:none;}
.passport-modal .passport-form{min-width:0;}
.passport-form-actions{position:sticky;bottom:-1.1rem;z-index:4;background:var(--card-bg);padding:1rem 0;box-shadow:0 -9px 14px -16px var(--text);}
.passport-form-actions button{min-height:44px;}
.passport-form .passport-field{min-width:0;}
.passport-field-control{min-width:0;max-width:100%;font-size:16px;line-height:1.4;border-radius:0;}
.passport-field-control:focus,.passport-select-search:focus,.passport-date-input:focus{border-color:var(--active);outline:2px solid var(--active);outline-offset:1px;}
.passport-select-search-wrap{display:grid;gap:.45rem;min-width:0;}
.passport-select-search{min-height:44px;width:100%;min-width:0;padding:.75rem .8rem;border:1px solid var(--border);background:var(--card-bg);color:var(--text);font:16px var(--ff-data);}
.passport-select-count{font:var(--fs-xs) var(--ff-data);color:var(--muted);}
.passport-date-widget{display:grid;grid-template-columns:minmax(0,1fr) 44px;position:relative;min-width:0;}
.passport-date-input{width:100%;min-width:0;}
.passport-date-trigger{min-height:44px;width:44px;background:var(--card-bg);color:var(--text);border:1px solid var(--border);border-left:0;cursor:pointer;font-size:24px;}
.passport-date-popup{position:absolute;top:calc(100% + 4px);left:0;z-index:18;width:min(320px,100%);padding:.85rem;border:1px solid var(--active);background:var(--card-bg);color:var(--text);box-shadow:0 12px 30px var(--shadow-strong);}
.passport-date-popup[hidden]{display:none;}
.passport-date-nav{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:.25rem;text-align:center;margin-bottom:.6rem;font:var(--fs-sm) var(--ff-data);}
.passport-date-nav button{background:var(--panel);color:var(--text);border:1px solid var(--border);width:40px;height:40px;cursor:pointer;font-size:20px;}
.passport-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center;}
.passport-calendar-weekday{padding:.45rem 0;font:var(--fs-xs) var(--ff-data);color:var(--muted);}
.passport-calendar-day{height:37px;min-width:0;border:1px solid transparent;background:transparent;color:var(--text);font:var(--fs-sm) var(--ff-data);cursor:pointer;}
.passport-calendar-day:hover,.passport-calendar-day:focus-visible{border-color:var(--active);background:var(--panel);}
.passport-calendar-day[aria-current="date"]{background:var(--active);color:var(--on-active);}
.passport-calendar-day.is-today:not([aria-current="date"]){border-color:var(--active);}
.passport-date-footer{display:flex;justify-content:space-between;border-top:1px solid var(--rule-soft);margin-top:.45rem;padding-top:.45rem;gap:.5rem;}
.passport-date-footer button{border:0;background:transparent;color:var(--link);cursor:pointer;padding:.4rem .6rem;}
.passport-picker-row{min-width:0;}
.passport-picker-row>span{overflow-wrap:break-word;}
.passport-picker-row>button{min-height:40px;}
.passport-map-toolbar{display:flex;align-items:center;justify-content:flex-end;margin:.6rem 0;}
.passport-map-toolbar button{background:var(--card-bg);border:1px solid var(--active);color:var(--text);cursor:pointer;padding:.6rem .9rem;font:var(--fs-sm) var(--ff-data);min-height:42px;}
.passport-map{border:1px solid var(--border);}
.passport-map .leaflet-popup-content{font:var(--fs-sm) var(--ff-data);line-height:1.35;}
.passport-map .leaflet-popup-content strong{display:block;margin-right:14px;font-size:1rem;overflow-wrap:break-word;}
.passport-map .passport-map-place{color:var(--muted);margin:.5rem 0;}
.passport-map .leaflet-popup-content a{color:var(--link);}
.passport-map.map-dark .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.85);}
.passport-map .opa-pin,.passport-map .opa-cluster{background:none;border:0;display:flex;flex-direction:column;align-items:center;}
.passport-map .pin-card{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:18px;padding:0 5px;background:var(--card-bg);color:var(--active);border:1px solid var(--active);border-radius:2px;font:11px/1 var(--ff-data);white-space:nowrap;box-shadow:0 1px 3px var(--shadow);}
.passport-map .pin-stem{width:1px;height:9px;background:var(--active);}
.passport-map .pin-dot{width:5px;height:5px;border-radius:50%;background:var(--active);}
.passport-map .opa-pin.visit-only .pin-card{background:var(--active);color:var(--card-bg);}
.passport-map .opa-pin.approx .pin-card{border-style:dashed;opacity:.75;}
.passport-map .cl-stack{position:relative;width:34px;height:24px;}
.passport-map .cl{position:absolute;left:0;top:0;width:28px;height:19px;background:var(--card-bg);border:1px solid var(--active);border-radius:2px;}
.passport-map .cl-2{transform:translate(5px,5px);opacity:.4;}
.passport-map .cl-1{transform:translate(2.5px,2.5px);opacity:.7;}
.passport-map .cl-0{display:flex;align-items:center;justify-content:center;color:var(--active);font:12px var(--ff-data);}
body.passport-map-is-fullscreen{overflow:hidden;}
.passport-map.passport-map-fullscreen{position:fixed;inset:0;margin:0;width:100vw;height:100dvh!important;z-index:10000;border:0;}
.passport-map-is-fullscreen .passport-map-toolbar{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:10004;margin:0;}
.passport-map-is-fullscreen .passport-map-toolbar button{box-shadow:0 2px 9px rgba(0,0,0,.2);}
@media(max-width:1000px){
 .passport-main{max-width:100%;padding-left:clamp(12px,3vw,28px);padding-right:clamp(12px,3vw,28px);}
 .passport-work-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:650px){
 .passport-main{padding:1rem max(12px,3.2vw) 2.5rem;}
 .passport-header{align-items:flex-start;}
 .passport-header h1{font-size:clamp(1.7rem,7vw,2.5rem);overflow-wrap:break-word;}
 .passport-emblem{width:66px;height:85px;flex-basis:66px;}
 .passport-emblem span{font-size:1.15rem;}
 .passport-emblem small{font-size:.45rem;}
 .passport-section-title{font-size:clamp(1.35rem,5vw,1.75rem);line-height:1.23;}
 .passport-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 .passport-stat{min-height:86px;padding:.75rem;}
 .passport-stat-number{font-size:clamp(1.7rem,7vw,2.2rem);}
 .passport-tabs{margin-inline:-2px;gap:.25rem;scroll-padding-left:6px;}
 .passport-tabs button{flex:none;min-height:46px;padding:.6rem .8rem;font-size:.86rem;}
 .passport-work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 .passport-work-title{font-size:.96rem;line-height:1.3;min-height:3.9em;}
 .passport-work-body{padding:.65rem;gap:.4rem;}
 .passport-work-card .passport-work-meta{font-size:.75rem;min-height:4.2em;}
 .passport-card-actions,.passport-order-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:.4rem;}
 .passport-card-actions button,.passport-order-actions button{width:100%;white-space:normal;font-size:.8rem;min-height:40px;}
 .passport-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;}
 .passport-shortcuts button{width:100%;min-height:48px;text-align:center;overflow-wrap:break-word;}
 .passport-panel>.passport-primary{max-width:100%;white-space:normal;}
 .passport-search,.passport-select-search,.passport-field-control{font-size:16px;}
 .passport-directory{margin-top:.9rem;}
 .passport-dir-row{display:grid;grid-template-columns:minmax(0,1fr);gap:.8rem;align-items:start;justify-content:stretch;padding:1rem .15rem;min-width:0;}
 .passport-dir-row>a,.passport-dir-row>span{width:100%;max-width:100%;font-size:1rem;line-height:1.4;hyphens:auto;overflow-wrap:break-word;}
 .passport-dir-row>.passport-inline-actions{width:100%;max-width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;}
 .passport-dir-row>.passport-inline-actions button{min-width:0;width:100%;min-height:44px;font-size:.78rem;line-height:1.35;padding:.55rem .35rem;}
 .passport-history-entry{padding:1rem;}
 .passport-history-entry h3{overflow-wrap:break-word;}
 .passport-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 .passport-album-title{font-size:1rem;}
 .passport-collection{padding:.8rem;}
 .passport-collection-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
 .passport-collection-actions button{width:100%;min-height:42px;}
 .passport-modal[open]{position:fixed;top:var(--passport-dialog-top,8px);left:50%;right:auto;bottom:auto;transform:translateX(-50%);margin:0;width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:var(--passport-dialog-height,calc(100dvh - 16px));padding:.85rem .9rem 1.05rem;border-radius:3px;}
 .passport-modal-header{top:-.85rem;margin:-.6rem 0 1rem;padding:.6rem 0 .8rem;}
 .passport-modal-header h2{font-size:clamp(1.3rem,5.5vw,1.65rem);}
 .passport-form-actions{bottom:-1.05rem;margin:.25rem 0 0;padding:.8rem 0;}
 .passport-form-actions button{flex:1;min-height:46px;}
 .passport-date-popup{position:relative;top:auto;left:auto;grid-column:1/-1;width:100%;margin-top:.25rem;box-shadow:none;}
 .passport-calendar-day{height:42px;}
 .passport-picker-row{display:grid;grid-template-columns:42px minmax(0,1fr);gap:.4rem .6rem;}
 .passport-picker-thumb{width:42px;height:46px;flex:none;grid-row:span 2;}
 .passport-picker-row>span{font-size:.9rem;line-height:1.4;}
 .passport-picker-row>button{grid-column:2;min-height:40px;width:100%;}
 .passport-map{height:380px;}
 .passport-map .leaflet-control-layers{max-width:55vw;}
}
@media(max-width:360px){
 .passport-shortcuts{grid-template-columns:1fr;}
 .passport-work-grid{gap:7px;}
 .passport-work-body{padding:.48rem;}
 .passport-dir-row>.passport-inline-actions{gap:6px;}
}

/* Art Passport v3.2: overview controls match across mobile and desktop. */
.passport-overview-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;align-items:stretch;gap:.65rem;}
.passport-overview-actions>button{display:flex;align-items:center;justify-content:center;min-width:0;width:100%;min-height:66px;height:100%;margin:0;box-sizing:border-box;padding:.8rem .55rem;text-align:center;line-height:1.35;white-space:normal;overflow-wrap:anywhere;}
@media(max-width:900px){.passport-overview-actions{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:360px){.passport-overview-actions{grid-template-columns:repeat(2,minmax(0,1fr));}.passport-overview-actions>button{min-height:72px;padding:.6rem .3rem;}}
/* Calendar is part of the scrollable form, so it cannot be cropped by the dialog. */
.passport-date-widget{min-width:0;}
.passport-page .passport-date-popup{position:relative;top:auto;left:auto;grid-column:1/-1;width:min(100%,390px);max-width:100%;justify-self:start;margin-top:.4rem;box-shadow:none;overflow:visible;}
.passport-page .passport-date-popup[hidden]{display:none;}
.passport-date-popup{scroll-margin-top:85px;scroll-margin-bottom:70px;}
.passport-page .passport-calendar-day{min-height:36px;height:36px;}
.passport-page .passport-modal{overflow-y:auto;overscroll-behavior:contain;}
@media(max-width:650px){
  .passport-overview-actions>button{min-height:76px;font-size:clamp(.77rem,3.1vw,1rem);}
  .passport-page .passport-calendar-day{min-height:40px;height:40px;}
  .passport-page .passport-date-popup{padding:.55rem;width:100%;}
}
