/* Hibr v1.13.4.7 — internal viewer for spotlight/sidebar widgets */
.widget-view-shell{width:min(1240px,100%);margin:0 auto;padding:18px 0 34px}
.widget-view-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px;padding:20px 22px;border:1px solid #dfe9ec;border-radius:22px;background:#fff;box-shadow:0 12px 35px rgba(16,54,70,.05)}
.widget-view-head>div{min-width:0}.widget-view-head h1{margin:4px 0 6px;color:#123244;font-size:clamp(1.45rem,3vw,2.25rem)}.widget-view-head p{margin:0;color:#667b86;line-height:1.8}
.widget-view-source{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:8px 12px;border-radius:12px;background:#eef8f7;color:#45626e;font-size:.85rem}.widget-view-source b{color:#0b6e72;overflow-wrap:anywhere}
.widget-view-media,.widget-view-generic,.widget-view-image{width:100%;background:#071c27;border:1px solid #dce8eb;border-radius:22px;overflow:hidden;box-shadow:0 16px 48px rgba(8,37,49,.08)}
.widget-view-media iframe,.widget-view-generic iframe{display:block;width:100%;border:0;background:#fff}
.widget-view-media.is-video{aspect-ratio:16/9}.widget-view-media.is-video iframe{height:100%}
.widget-view-media.is-vertical{width:min(560px,100%);margin-inline:auto;aspect-ratio:9/16;max-height:82vh}.widget-view-media.is-vertical iframe{height:100%}
.widget-view-media.is-tweet{width:min(720px,100%);margin-inline:auto;min-height:580px;background:#fff}.widget-view-media.is-tweet iframe{height:650px}
.widget-view-generic{height:min(78vh,900px);min-height:560px;background:#fff}.widget-view-generic iframe{height:100%}.widget-view-generic.is-pdf{height:82vh}
.widget-view-image{background:#fff;padding:14px}.widget-view-image img{display:block;max-width:100%;height:auto;margin:auto;border-radius:14px}
.widget-view-note{margin:10px 4px 0;color:#768892;font-size:.86rem;line-height:1.7}
.widget-view-empty,.widget-view-error{padding:38px;text-align:center}.widget-view-error h1{margin-top:0}
@media(max-width:760px){.widget-view-shell{padding-top:8px}.widget-view-head{display:grid;padding:15px;border-radius:16px}.widget-view-head .btn{width:max-content}.widget-view-media,.widget-view-generic,.widget-view-image{border-radius:15px}.widget-view-generic{height:72vh;min-height:460px}.widget-view-media.is-tweet{min-height:520px}.widget-view-media.is-tweet iframe{height:560px}}


/* Hibr v1.13.4.8 — spotlight discussions + embed fallback */
.spotlight-action-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.spotlight-action-row>a{white-space:nowrap}.spotlight-chat-count{font-size:.74em;opacity:.78;margin-inline-start:4px}
.widget-view-source{justify-content:flex-start;flex-wrap:wrap}.widget-view-source-actions{margin-inline-start:auto;display:flex;gap:10px;flex-wrap:wrap}.widget-view-source-actions a{color:#087c77;text-decoration:none;font-weight:700}.widget-view-source-actions a:hover{text-decoration:underline}
.widget-view-fallback{min-height:420px;display:grid;place-items:center;align-content:center;gap:12px;text-align:center;padding:34px;border:1px solid #dce8eb;border-radius:22px;background:linear-gradient(180deg,#fff,#f5fafb);box-shadow:0 16px 48px rgba(8,37,49,.06)}.widget-view-fallback-icon{width:68px;height:68px;border-radius:22px;display:grid;place-items:center;background:#eaf7f6;color:#087c77;font-size:2rem;font-weight:900}.widget-view-fallback h2{margin:0;color:#163746}.widget-view-fallback p{max-width:680px;margin:0;color:#667b86;line-height:1.85}
.widget-chat-shell{width:min(980px,100%);margin:0 auto;padding:18px 0 40px}.widget-chat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px;margin-bottom:14px;border:1px solid #dfe9ec;border-radius:22px;background:#fff;box-shadow:0 12px 35px rgba(16,54,70,.05)}.widget-chat-head>div{min-width:0}.widget-chat-head h1{margin:4px 0 6px;color:#123244;font-size:clamp(1.45rem,3vw,2.25rem)}.widget-chat-head p{margin:0;color:#667b86;line-height:1.8}.widget-chat-resource{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:11px 14px;border-radius:14px;background:#eef8f7;color:#315d66}.widget-chat-window{border:1px solid #dce8eb;border-radius:24px;background:#eaf1f2;overflow:hidden;box-shadow:0 18px 55px rgba(10,44,58,.08);background-image:radial-gradient(rgba(11,58,76,.045) 1px,transparent 1px);background-size:22px 22px}.widget-chat-day{text-align:center;padding:10px;color:#607680;font-size:.82rem;background:rgba(255,255,255,.72);border-bottom:1px solid #dae5e8}.widget-chat-messages{height:min(62vh,680px);min-height:420px;overflow:auto;padding:18px;scroll-behavior:smooth}.widget-chat-empty-state{text-align:center;color:#78909a;margin:120px auto 0}.widget-chat-message{display:flex;align-items:flex-end;gap:8px;margin:8px 0;max-width:82%}.widget-chat-message.is-mine{margin-inline-start:auto;flex-direction:row-reverse}.widget-chat-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:50%;overflow:hidden;background:#d8e7ea;display:grid;place-items:center;color:#173b4c}.widget-chat-avatar img{width:100%;height:100%;object-fit:cover}.widget-chat-bubble{position:relative;background:#fff;border-radius:16px 16px 16px 5px;padding:9px 12px 8px;min-width:140px;box-shadow:0 4px 12px rgba(13,49,62,.07)}.widget-chat-message.is-mine .widget-chat-bubble{background:#d7f4eb;border-radius:16px 16px 5px 16px}.widget-chat-meta{display:flex;align-items:center;gap:9px;margin-bottom:4px;color:#58717c;font-size:.72rem}.widget-chat-meta b{color:#0a7270}.widget-chat-meta time{margin-inline-start:auto}.widget-chat-text{color:#163744;line-height:1.7;overflow-wrap:anywhere}.widget-chat-text blockquote{margin:6px 0;padding:6px 9px;border-inline-start:3px solid #16a39a;background:rgba(255,255,255,.55);border-radius:7px}.widget-chat-text code{direction:ltr;background:rgba(10,43,56,.08);padding:2px 5px;border-radius:5px}.widget-chat-admin{margin-top:5px;text-align:end}.widget-chat-admin button{border:0;background:transparent;color:#b44;font-size:.72rem;cursor:pointer}.widget-chat-composer{padding:12px;border-top:1px solid #d8e4e7;background:#fff}.widget-chat-guest{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.widget-chat-tools{display:flex;gap:6px;margin-bottom:7px}.widget-chat-tools button{width:34px;height:32px;border:1px solid #dbe7e9;border-radius:9px;background:#f7fafb;color:#173846;cursor:pointer}.widget-chat-emoji{display:flex;gap:5px;flex-wrap:wrap;padding:8px;margin-bottom:8px;border:1px solid #dce8eb;border-radius:12px;background:#f8fbfc}.widget-chat-emoji button{border:0;background:#fff;border-radius:8px;width:34px;height:34px;font-size:1.15rem;cursor:pointer}.widget-chat-sendrow{display:grid;grid-template-columns:minmax(0,1fr) 52px;gap:8px;align-items:end}.widget-chat-sendrow textarea{width:100%;min-height:54px;max-height:150px;resize:vertical;border:1px solid #cfdfe3;border-radius:16px;padding:12px 14px;font:inherit;line-height:1.55;outline:0}.widget-chat-sendrow textarea:focus{border-color:#74c7c0;box-shadow:0 0 0 3px rgba(32,184,174,.10)}.widget-chat-send{width:52px;height:52px;border:0;border-radius:50%;background:#0b6e80;color:#fff;font-size:1.25rem;cursor:pointer;box-shadow:0 8px 18px rgba(11,110,128,.2)}.widget-chat-composer>small{display:block;margin-top:6px;color:#7a8d96}.widget-chat-empty{text-align:center;padding:32px}
@media(max-width:760px){.widget-view-source-actions{width:100%;margin-inline-start:0}.widget-view-fallback{min-height:300px;border-radius:16px;padding:24px 16px}.widget-chat-shell{padding-top:8px}.widget-chat-head{display:grid;padding:15px;border-radius:16px}.widget-chat-resource{display:grid}.widget-chat-messages{height:58vh;min-height:350px;padding:12px 9px}.widget-chat-message{max-width:92%}.widget-chat-avatar{width:30px;height:30px;flex-basis:30px}.widget-chat-bubble{min-width:120px}.widget-chat-guest{grid-template-columns:1fr}.widget-chat-composer{position:sticky;bottom:74px;z-index:8;box-shadow:0 -10px 24px rgba(12,48,60,.08)}}

/* v1.13.4.9 — simple external-link card */
.widget-view-fallback-simple{min-height:330px;gap:20px;padding:42px 28px}
.widget-view-fallback-simple h2{
  max-width:820px;
  font-size:clamp(1.8rem,4vw,3.1rem);
  line-height:1.45;
  color:#123244;
  margin:0;
}
.widget-view-enter-btn{
  min-width:170px;
  padding:13px 28px;
  font-size:1.08rem;
  font-weight:800;
}
@media(max-width:760px){
  .widget-view-fallback-simple{min-height:260px;padding:30px 18px}
  .widget-view-fallback-simple h2{font-size:clamp(1.55rem,7vw,2.25rem)}
  .widget-view-enter-btn{width:min(100%,260px)}
}
