/* Scoped styles: never change the ITS theme or phpBB appearance. */
.lan30c { --lc-border:#d9e0e7; --lc-soft:#f5f7f9; --lc-text:#243445; --lc-main:#1863a3; color:var(--lc-text); font:inherit; max-width:1180px; margin:24px auto; }
.lan30c *, .lan30c *:before, .lan30c *:after { box-sizing:border-box; }
.lan30c-header { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px; margin-bottom:20px; }
.lan30c-header h2 { margin:0; font-size:1.6em; }
.lan30c-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.lan30c-button { background:white; border:1px solid var(--lc-border); border-radius:7px; color:var(--lc-text); cursor:pointer; padding:7px 10px; text-decoration:none; font:inherit; font-size:.9em; line-height:1.3; white-space:normal; }
.lan30c-button:hover, .lan30c-button:focus-visible { background:#e9f1f7; color:#104e84; border-color:#b1cfdf; text-decoration:none; }
.lan30c-primary { background:var(--lc-main); color:white; border-color:var(--lc-main); }
.lan30c-primary:hover,.lan30c-primary:focus-visible { background:#104c7e; color:white; }
.lan30c-flat { border:0; color:var(--lc-main); background:transparent; padding:5px 7px; }
.lan30c-danger { background:transparent; color:#a52f35; border:0; padding:5px 7px; }
.lan30c-danger:hover { color:#7c1e22; background:#fff0f1; }
.lan30c-crumbs { padding:12px 14px; border:1px solid var(--lc-border); background:var(--lc-soft); border-radius:8px; min-height:46px; }
.lan30c-crumb { font-weight:500; }
.lan30c-separator { color:#87949e; padding:0 5px; }
.lan30c-status { min-height:28px; margin:12px 1px; color:#697886; font-size:.9em; }
.lan30c-error { color:#a52f35; }
.lan30c-items { border:1px solid var(--lc-border); border-radius:9px; background:white; overflow:hidden; }
.lan30c-line { display:grid; grid-template-columns:minmax(180px,1.4fr) minmax(110px,.5fr) minmax(210px,1.9fr); gap:12px; align-items:center; padding:13px 14px; border-bottom:1px solid var(--lc-border); }
.lan30c-line:last-child { border-bottom:0; }
.lan30c-line:hover { background:#f9fbfd; }
.lan30c-name { display:flex; gap:10px; align-items:center; min-width:0; }
.lan30c-file-icon { font-size:1.35em; flex:none; }
.lan30c-name-button, .lan30c-name-link { border:0; background:transparent; font:inherit; font-weight:600; color:#245477; padding:4px 0; text-decoration:none; text-align:left; overflow-wrap:anywhere; cursor:pointer; }
.lan30c-name-link:hover, .lan30c-name-button:hover { text-decoration:underline; }
.lan30c-meta { color:#687784; font-size:.83em; }
.lan30c-actions { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:3px; }
.lan30c-actions .lan30c-button { font-size:.78em; }
.lan30c-empty { padding:30px; color:#697886; text-align:center; }
.lan30c-notice { padding:18px; border:1px solid var(--lc-border); border-radius:8px; }
.lan30c-shade { position:fixed; z-index:999999; inset:0; background:rgba(15,32,44,.55); display:flex; padding:20px; align-items:center; justify-content:center; }
.lan30c-dialog { width:min(1080px,100%); max-height:88vh; overflow:auto; border-radius:12px; background:white; box-shadow:0 16px 80px rgba(0,0,0,.25); padding:22px; }
.lan30c-dialog-heading { display:flex; gap:16px; align-items:center; justify-content:space-between; margin:0 0 18px; }
.lan30c-dialog h3 { font-size:1.25em; margin:0; }
.lan30c-dialog h4 { margin:18px 0 8px; }
.lan30c-inherit { display:block; margin:10px 0; }
.lan30c-acl-help { font-size:.89em; color:#596d7a; }
.lan30c-acl-table { width:100%; overflow-x:auto; }
.lan30c-acl-row { min-width:1080px; display:grid; grid-template-columns:minmax(195px,2fr) repeat(8,minmax(90px,1fr)); gap:6px; align-items:center; padding:10px 6px; border-bottom:1px solid var(--lc-border); }
.lan30c-acl-row:nth-child(2n) { background:var(--lc-soft); }
.lan30c-acl-header { font-size:.82em; font-weight:600; }
.lan30c-acl-subject { overflow-wrap:anywhere; }
.lan30c-acl-check { text-align:center; }
.lan30c-acl-check input { width:18px; height:18px; accent-color:var(--lc-main); cursor:pointer; }
.lan30c-user-picker { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.lan30c-user-picker input { flex:1; min-width:220px; border:1px solid var(--lc-border); border-radius:6px; padding:8px; font:inherit; }
.lan30c-search-results { width:100%; display:flex; flex-wrap:wrap; gap:6px; }
.lan30c-select { width:100%; max-width:600px; padding:10px; border:1px solid var(--lc-border); border-radius:6px; margin:12px 0; }
.lan30c-dialog-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; margin-top:20px; }
@media(max-width:850px) {
 .lan30c-line { grid-template-columns:1fr; gap:4px; padding:12px; }
 .lan30c-actions { justify-content:flex-start; }
 .lan30c-header { align-items:flex-start; }
 .lan30c-toolbar { width:100%; }
 .lan30c-dialog { padding:14px; }
}

.lan30c-name-link.lan30c-disabled { color:#65727c; cursor:default; text-decoration:none; }

/* v0.2.3 — make individual grants immediately visible, outside the long role table. */
.lan30c-selected-users { display:grid; gap:10px; margin:12px 0 0; }
.lan30c-user-card { border:1px solid var(--lc-border); background:#f9fbfd; border-radius:8px; padding:11px 13px; }
.lan30c-user-card-head { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; margin-bottom:6px; }
.lan30c-user-rights { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:9px 12px; }
.lan30c-user-right { display:flex; align-items:center; gap:6px; font-size:.9em; cursor:pointer; }
.lan30c-user-right input { accent-color:var(--lc-main); width:18px; height:18px; margin:0; cursor:pointer; }
.lan30c-acl-feedback { min-height:1.5em; margin:12px 0 0; font-size:.9em; color:#265577; }
.lan30c-acl-feedback.lan30c-error { color:#a52f35; font-weight:600; }
.lan30c-user-result { background:#edf5fc; border-color:#bbd8eb; }
.lan30c-selected-users [hidden] { display:none!important; }

/* v0.2.4 — file previews and optional thumbnail layout. */
.lan30c-thumbnail { display:block; width:58px; height:46px; border-radius:6px; object-fit:cover; flex:none; background:var(--lc-soft); border:1px solid var(--lc-border); }
.lan30c-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px; border:0; background:transparent; overflow:visible; }
.lan30c-grid .lan30c-line { display:flex; flex-direction:column; align-items:stretch; justify-content:space-between; gap:10px; border:1px solid var(--lc-border); border-radius:10px; background:white; min-width:0; padding:14px; }
.lan30c-grid .lan30c-name { display:flex; flex-direction:column; align-items:center; text-align:center; min-width:0; }
.lan30c-grid .lan30c-file-icon { font-size:3em; line-height:1.4; }
.lan30c-grid .lan30c-thumbnail { width:100%; height:130px; object-fit:cover; }
.lan30c-grid .lan30c-name-button { text-align:center; overflow-wrap:anywhere; }
.lan30c-grid .lan30c-meta { text-align:center; }
.lan30c-grid .lan30c-actions { justify-content:center; }
.lan30c-preview-dialog { width:min(1100px,100%); }
.lan30c-preview-body { display:flex; flex-direction:column; min-height:230px; }
.lan30c-preview-meta { color:#637482; font-size:.88em; margin:0 0 12px; overflow-wrap:anywhere; }
.lan30c-preview-surface { flex:1; min-height:180px; max-height:69vh; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; overflow:auto; background:#f5f7f9; border-radius:8px; padding:12px; }
.lan30c-preview-image { max-width:100%; max-height:65vh; width:auto; height:auto; align-self:center; object-fit:contain; }
.lan30c-preview-video { width:100%; max-height:62vh; background:#0d1720; border-radius:5px; }
.lan30c-preview-pdf { display:block; border:1px solid var(--lc-border); width:100%; height:60vh; min-height:360px; background:white; }
.lan30c-preview-loading,.lan30c-preview-error { margin:20px auto; color:#526473; }
.lan30c-preview-error { color:#a52f35; }
.lan30c-preview-hint { font-size:.8em; color:#667681; margin:0 0 8px; }
.lan30c-reader-text,.lan30c-reader-docx,.lan30c-reader-csv { width:100%; max-width:100%; padding:18px 22px; background:white; border:1px solid var(--lc-border); border-radius:7px; line-height:1.6; overflow-wrap:anywhere; }
.lan30c-reader-docx { margin:0 auto; max-width:850px; min-height:300px; padding:clamp(16px,4vw,48px); font-family:Arial,Helvetica,sans-serif; color:#222; }
.lan30c-reader-docx p { margin:.45em 0; }
.lan30c-reader-docx h2,.lan30c-reader-docx h3,.lan30c-reader-docx h4 { margin:1.3em 0 .45em; line-height:1.3; font-weight:700; }
.lan30c-reader-pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; line-height:1.5; margin:0; }
.lan30c-reader-text p { margin:.22em 0; }
.lan30c-reader-mdcode { margin:0; font:inherit; font-family:ui-monospace,Consolas,monospace; padding:2px 8px; background:#f2f5f7; white-space:pre-wrap; }
.lan30c-reader-bullet { padding-left:18px; text-indent:-13px; }
.lan30c-reader-table-scroll { width:100%; max-width:100%; overflow-x:auto; margin:6px 0 15px; }
.lan30c-reader-table { width:100%; border-collapse:collapse; font-size:.9em; background:white; }
.lan30c-reader-table th,.lan30c-reader-table td { border:1px solid #d6dfe6; padding:7px 10px; vertical-align:top; text-align:left; }
.lan30c-reader-table th { background:#e9f1f7; font-weight:700; }
.lan30c-reader-table tr:nth-child(even) { background:#f8fafb; }
.lan30c-reader-table td p { margin:.2em 0; }
.lan30c-docx-img { display:block; max-width:100%; width:auto; height:auto; margin:8px auto; }
.lan30c-reader-note { color:#647888; font-size:.79em; font-style:italic; margin-top:18px; }
@media(max-width:650px) {
 .lan30c-grid { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
 .lan30c-preview-surface { padding:6px; }
 .lan30c-preview-pdf { min-height:280px; }
 .lan30c-reader-text,.lan30c-reader-docx,.lan30c-reader-csv { padding:12px; }
}


/* v0.2.5 — true, scrollable image zoom. Only affects image previews. */
.lan30c-image-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin:0 0 10px; }
.lan30c-image-toolbar .lan30c-button { padding:6px 11px; }
.lan30c-image-toolbar .lan30c-button:disabled { opacity:.45; cursor:default; }
.lan30c-image-zoom-button { font-size:1.2em!important; font-weight:700!important; min-width:40px; }
.lan30c-image-zoom-label { display:inline-block; min-width:62px; text-align:center; font-weight:600; font-variant-numeric:tabular-nums; color:var(--lc-text); }
.lan30c .lan30c-preview-image-surface { flex:0 0 auto; height:clamp(230px,55vh,650px); min-height:230px; max-height:none; display:block; padding:0; overflow:auto; overscroll-behavior:contain; touch-action:pan-x pan-y; }
.lan30c .lan30c-image-stage { display:flex; align-items:center; justify-content:center; margin:0; padding:0; }
.lan30c .lan30c-image-stage .lan30c-preview-image { display:block; flex:none; align-self:auto; object-fit:fill; max-width:none!important; max-height:none!important; margin:0; user-select:none; }
.lan30c .lan30c-preview-image-surface.lan30c-image-can-pan { cursor:grab; }
.lan30c .lan30c-preview-image-surface.lan30c-image-dragging { cursor:grabbing; }
@media(max-width:650px) {
 .lan30c .lan30c-preview-image-surface { height:52vh; min-height:200px; }
}

.lan30c-image-shortcuts { color:#526477; font-size:.80em; line-height:1.4; margin-left:auto; }
