.gobooks-shell{max-width:1120px;padding-block:20px 44px}
.gobooks-shell h3,.gobooks-dialog h3{margin:0}
.gobooks-nav,.gobooks-actions,.gobooks-search{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.gobooks-nav{padding:6px;margin-bottom:18px;border:1px solid var(--line);border-radius:16px;background:#fff}
.gobooks-nav button,.gobooks-filters button{border:0;border-radius:10px;background:transparent;color:var(--green-900);min-height:44px;
 padding:7px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font:inherit;font-weight:650;cursor:pointer}
.gobooks-nav svg,.gobooks-location svg{width:20px;height:20px;flex:none}
.gobooks-nav button[aria-pressed="true"],.gobooks-filters button[aria-pressed="true"]{background:var(--green-50);color:var(--green-900)}
.gobooks-nav .gobooks-scan{margin-left:auto;background:var(--green-800);color:white}
.gobooks-search{display:grid;gap:12px;margin-bottom:14px;padding:16px;border-radius:18px;color:var(--green-900);
 background:linear-gradient(125deg,var(--green-50),#f7fbff);border:1px solid var(--line)}
.gobooks-location,.gobooks-location>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.gobooks-location>div{justify-content:flex-start}
.gobooks-location small{display:block}
.gobooks-search form{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.gobooks-search .field{flex:1;min-width:0;margin:0}
.gobooks-search input{width:100%;margin:0}
.gobooks-filters{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:10px 0 16px}
.gobooks-filters button{background:#fff;border:1px solid var(--line);border-radius:999px;min-height:44px}
.gobooks-result-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:14px 0 6px}
.gobooks-result-head p{margin:0;color:#475569;font-size:.875rem}
.gobooks-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin-top:12px}
.gobooks-grid--catalog{grid-template-columns:repeat(auto-fill,minmax(min(100%,205px),1fr));gap:14px}
.gobooks-grid--loans{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr))}
.gobooks-card,.gobooks-section{min-width:0;background:white;border:1px solid var(--line);border-radius:12px;padding:16px;overflow-wrap:anywhere}
.gobooks-catalog-card{display:flex;flex-direction:column;overflow:hidden;padding:0;border-radius:16px;box-shadow:0 3px 10px rgba(22,44,64,.055)}
.gobooks-art{min-height:122px;display:grid;place-items:center;position:relative;background:#e7f4f7;color:var(--green-800);overflow:hidden}
.gobooks-catalog-card:nth-child(3n+2) .gobooks-art{background:#edf1fb}
.gobooks-catalog-card:nth-child(3n+3) .gobooks-art{background:#f2f3e9}
.gobooks-art svg{width:42px;height:42px;opacity:.68}
.gobooks-art .gobooks-thumb{position:absolute;inset:0;margin:0;width:100%;height:100%;object-fit:contain;background:inherit;padding:8px}
.gobooks-card-body{padding:12px;display:flex;min-width:0;flex:1;flex-direction:column}
.gobooks-card-body h3{font-size:1.03rem;line-height:1.3}
.gobooks-card-body .gobooks-author,.gobooks-card-body .gobooks-provider{font-size:.85rem;color:#475569;margin-block:4px}
.gobooks-card-body .gobooks-price{margin:8px 0 10px;color:var(--green-900);font-weight:700}
.gobooks-price small{display:block;color:#475569;font-weight:500}
.gobooks-card-body .btn{justify-content:center;margin-top:auto;width:100%;min-height:44px}
.gobooks-card p,.gobooks-section p{margin:6px 0}
.gobooks-card ul{padding-inline-start:1.2em}
.gobooks-card .gobooks-actions,.gobooks-section .gobooks-actions{margin-top:12px}
.gobooks-status-label{display:inline-block;background:var(--green-50);color:var(--green-900);border-radius:999px;padding:4px 9px;font-weight:650;font-size:.83rem}
.gobooks-status-label[data-loan-status="disputed"],.gobooks-reminder{color:#8b3714;background:#fff1df}
.gobooks-reminder{padding:7px 9px;border-radius:8px;font-weight:650}
.gobooks-timeline{padding-left:20px}
.gobooks-timeline li{padding-block:7px}
.gobooks-timeline small{display:block}
.gobooks-timeline p{margin:4px 0}
.gobooks-review-list{display:grid;gap:8px;margin:10px 0 16px}
.gobooks-stock .text-button{display:block;min-height:44px}
.gobooks-stock li{margin-block:6px}
.gobooks-stock small{display:block;color:#475569}
.gobooks-stock code{font-weight:650;color:var(--green-900)}
.gobooks-inventory-search{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:12px}
.gobooks-inventory-search .field{min-width:0;margin:0}
.gobooks-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:16px}
.gobooks-lookup{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--green-50)}
.gobooks-lookup p{margin:0}
.gobooks-lookup-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
.gobooks-lookup-search .btn,.gobooks-inventory-search .btn{min-height:44px}
.gobooks-lookup-photo{max-height:120px;max-width:100%;object-fit:contain;border-radius:8px}
.gobooks-lookup-results{display:grid;gap:5px}
.gobooks-lookup-results:empty,.gobooks-lookup [role="status"]:empty{display:none}
.gobooks-lookup-results .btn{justify-content:flex-start;text-align:left;white-space:normal}
.gobooks-lookup [data-go-lookup-review]{color:var(--green-900);font-weight:650}
.gobooks-empty{padding:18px;border:1px dashed var(--line);border-radius:12px;background:#fff}
.gobooks-status:not(:empty){margin-block:10px 0;color:#a12218}
.gobooks-status:empty{display:none}
.gobooks-dialog .gobooks-form{display:grid;gap:12px}
.gobooks-dialog .field{min-width:0;margin:0}
.gobooks-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,168px),1fr));gap:10px}
.gobooks-options{display:grid;gap:10px;border:1px solid var(--line);border-radius:10px;padding:10px;min-width:0}
.gobooks-directory{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;padding:12px;border:1px solid var(--line);background:var(--green-50);color:var(--green-900);border-radius:10px;width:100%;margin:0 0 8px;cursor:pointer}
.gobooks-directory span{font-size:.82rem}
.gobooks-qr svg,.gobooks-evidence,.gobooks-cover,.gobooks-dialog video{display:block;max-width:100%;height:auto;margin:10px auto;border-radius:8px}
.gobooks-evidence,.gobooks-cover,.gobooks-dialog video{max-height:320px;object-fit:contain}
.gobooks-qr svg{width:min(230px,100%);background:white}
.gobooks-thumb{width:auto;height:96px;max-width:100%;object-fit:contain;border-radius:6px;margin-bottom:6px}
.gobooks-form [hidden]{display:none}
@media(max-width:540px){
 .gobooks-shell{padding-block:12px 24px}
 .gobooks-nav .btn,.gobooks-actions .btn{white-space:normal}
 .gobooks-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:3px}
 .gobooks-nav button{flex-direction:column;min-height:52px;font-size:.76rem;padding:5px 2px;gap:4px;text-align:center;line-height:1.15}
 .gobooks-nav svg{width:17px;height:17px}
 .gobooks-nav .gobooks-scan{margin-left:0}
 .gobooks-search{padding:12px}
 .gobooks-location .btn{font-size:.8rem;padding-inline:8px;min-height:44px;flex-shrink:0}
 .gobooks-grid--catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .gobooks-card-body{padding:9px}
 .gobooks-card-body h3{font-size:.94rem}
 .gobooks-art{min-height:102px}
 .gobooks-inventory-search{grid-template-columns:1fr}
}
