/* Additions for the photo picker and small demo notice. styles.css is the
   original program stylesheet, copied without alterations. */
.demo-notice{color:var(--muted);font-size:.88rem;line-height:1.5;position:relative;z-index:1}
.demo-notice a,.library-credit a,.demo-photo-credits a,.credit-item a{color:var(--accent)}
.demo-photo-credits{font-size:.8rem;line-height:1.5;overflow-wrap:anywhere;display:grid;gap:8px;color:var(--muted)}
.photo-library{margin:auto;width:min(1050px,calc(100% - 32px));max-height:calc(100dvh - 48px);border:1px solid var(--panel-border);border-radius:22px;background:#f4faff;color:var(--ink);padding:0;box-shadow:var(--shadow)}
.photo-library::backdrop{background:rgba(16,35,72,.5);backdrop-filter:blur(3px)}
.library-shell{padding:24px;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto auto;gap:18px;height:min(860px,calc(100dvh - 48px))}
.library-shell .section-header{margin:0}.library-shell .section-header h2{font-size:1.4rem}
.library-intro{margin:6px 0 0;color:var(--muted);font-size:.9rem;line-height:1.45}.library-browse-controls{display:grid;gap:12px}.library-tabs{display:flex;gap:8px}.library-tabs button[aria-pressed=true]{background:#e2f0ff;color:var(--accent);border-color:var(--accent);font-weight:700}.library-room-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px}.library-room-toolbar[hidden],#library-browse-controls[hidden]{display:none}
.library-controls{display:grid;grid-template-columns:1fr 220px;gap:16px}
.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:16px;min-height:0;overflow-y:auto;padding:3px}
.library-card{border:1px solid var(--panel-border);border-radius:16px;background:white;overflow:hidden;min-width:0;display:flex;flex-direction:column}
.library-card[data-selected=true]{outline:2px solid var(--accent);outline-offset:0}
.library-photo{padding:0;border:0;border-radius:0;text-align:left;background:white;color:var(--ink);position:relative;flex:none}
.library-photo img{display:block;width:100%;height:145px;object-fit:cover}
.library-photo-name{padding:10px 12px 3px;display:block;font-size:.9rem;font-weight:600}
.library-photo-type{display:block;padding:0 12px 10px;font-size:.8rem;color:var(--muted)}
.room-set-collage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));height:145px;overflow:hidden;gap:2px;background:#eaf3fa}.room-set-collage img{display:block;width:100%;height:100%;min-width:0;object-fit:cover}.room-set-collage img:only-child{grid-column:1/-1}.room-set-description{display:block;padding:0 12px 12px;color:var(--muted);font-size:.8rem;line-height:1.4}.room-set-open{height:100%}.room-set-card .library-photo-name{font-size:1rem}.angle-card .library-photo img{height:200px}.angle-card .library-check{z-index:1}.angle-card[data-selected=true]{background:#f2f8ff}
.library-check{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:white;box-shadow:0 2px 8px #0003}
.library-card[data-selected=true] .library-check{background:var(--accent);color:white}
.library-credit{font-size:.7rem;padding:10px 12px;color:var(--muted);line-height:1.5;border-top:1px solid var(--panel-border);overflow-wrap:anywhere}
.library-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.library-footer .dashboard-meta{flex:1}.library-empty{grid-column:1/-1;padding:28px;text-align:center;color:var(--muted)}
.library-feedback{min-height:1.3em;color:var(--muted);font-size:.88rem}
.photo-library button:focus-visible,.demo-notice a:focus-visible{outline:3px solid #147fe2;outline-offset:3px}
.credits-list{display:grid;gap:24px}.credit-item{overflow:hidden;overflow-wrap:anywhere}.credit-item img{float:right;width:200px;height:150px;object-fit:contain;margin:0 0 12px 20px}.credit-item p{line-height:1.5;margin-top:8px;color:var(--muted)}
@media(max-width:720px){.library-shell{padding:18px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.library-controls{grid-template-columns:1fr}.library-photo img,.room-set-collage{height:120px}.angle-card .library-photo img{height:150px}.library-footer{align-items:start}.library-footer .actions{width:100%}.photo-library{max-height:calc(100dvh - 24px)}.credit-item img{float:none;width:100%;margin:0 0 18px}}
@media(max-width:420px){.library-grid{grid-template-columns:minmax(0,1fr)}.angle-card .library-photo img{height:190px}}
@media(max-width:360px){.controls{grid-template-columns:minmax(0,1fr)}.row>div{min-width:0}.dims-editor{grid-template-columns:repeat(3,minmax(0,1fr))}.control input,.control select,.control textarea{min-width:0;max-width:100%}}
