/* Card chrome — calm teal, Infima-proof buttons */ .wrap { margin: 1.5rem 0 2rem; border: 1px solid #d6d3d1; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04); } .header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid #e7e5e4; background: #fafaf9; } .title { margin: 0; font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.01em; color: #292524; } .openBtn { appearance: none !important; display: inline-flex !important; align-items: center; justify-content: center; margin: 0 !important; border: 1px solid #0f766e !important; border-radius: 999px !important; background: #0f766e !important; color: #fff !important; font: inherit !important; font-size: 0.8125rem !important; font-weight: 650 !important; line-height: 1 !important; padding: 0.55rem 1.05rem !important; cursor: pointer !important; box-shadow: 0 1px 2px rgba(15, 118, 110, 0.28); transition: background 0.15s ease, border-color 0.15s ease; } .openBtn:hover { background: #0d9488 !important; border-color: #0d9488 !important; color: #fff !important; } .openBtn:focus-visible { outline: 2px solid #5eead4 !important; outline-offset: 2px; } /* Fixed-height frame: fill width, crop from the top. Tall diagrams stay readable instead of shrink-to-fit with empty side gutters. */ .previewFrame { position: relative; overflow: hidden; background: linear-gradient(#e7e5e4 1px, transparent 1px), linear-gradient(90deg, #e7e5e4 1px, transparent 1px); background-size: 18px 18px; background-color: #fafaf9; } .preview { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; } .previewFade { position: absolute; left: 0; right: 0; bottom: 0; height: 2.75rem; pointer-events: none; background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0) 100%); } /* Fullscreen lightbox — absolute regions so TransformWrapper height can't collapse */ .overlay { position: fixed; inset: 0; z-index: 2147483000; background: rgba(28, 25, 23, 0.9); backdrop-filter: blur(8px); } .toolbar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding: 0.85rem 1.1rem; background: rgba(28, 25, 23, 0.94); border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: #fafaf9; } .toolbarTitle { margin: 0; font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.01em; } .toolbarActions { display: flex; flex-wrap: wrap; gap: 0.5rem; } .toolBtn, .toolBtnPrimary { appearance: none !important; margin: 0 !important; border-radius: 999px !important; font: inherit !important; font-size: 0.8125rem !important; font-weight: 650 !important; line-height: 1 !important; padding: 0.55rem 0.95rem !important; cursor: pointer !important; box-shadow: none !important; } .toolBtn { border: 1px solid rgba(255, 255, 255, 0.22) !important; background: rgba(255, 255, 255, 0.1) !important; color: #fafaf9 !important; } .toolBtn:hover { background: rgba(255, 255, 255, 0.18) !important; color: #fff !important; } .toolBtnPrimary { border: 1px solid #0d9488 !important; background: #0f766e !important; color: #fff !important; } .toolBtnPrimary:hover { background: #0d9488 !important; color: #fff !important; } .stage { position: absolute; top: 3.4rem; bottom: 2.4rem; left: 0; right: 0; cursor: grab; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.07), transparent 55%), #1c1917; } .stage:active { cursor: grabbing; } .stageTransform { width: 100% !important; height: 100% !important; } .stageContent { width: 100%; height: 100%; display: flex !important; align-items: center; justify-content: center; } .fullImg { display: block; max-width: none; width: auto; height: auto; user-select: none; pointer-events: none; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5); background: #fff; } .lightboxHint { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 0.6rem 1.1rem; font-size: 0.75rem; color: rgba(250, 250, 249, 0.75); text-align: center; background: rgba(28, 25, 23, 0.94); border-top: 1px solid rgba(255, 255, 255, 0.08); } @media (max-width: 640px) { .preview { max-height: 180px; } .toolbarTitle { width: 100%; } .stage { top: 5.5rem; } }