@font-face{font-family:RedSans;src:url('assets/fonts/NotoSansSC-Light.ttf') format('truetype');font-weight:300;font-display:swap}
@font-face{font-family:RedLatin;src:url('assets/fonts/Manrope.ttf') format('truetype');font-weight:200 800;font-display:swap}
/* One blue accent for the library and the three work areas. */
:root {
  --theme-blue: #334d87;
  --theme-blue-deep: #293e70;
  --theme-blue-light: #edf2ff;
  --accent: var(--theme-blue);
  --accent-hover: var(--theme-blue-deep);
  --accent-soft: var(--theme-blue-light);
  --ink: #22314d;
  --muted: #52637e;
  --canvas: #fff;
  --surface: #f4f6fa;
  --surface-soft: var(--surface);
  --border: #dfe5f0;
  --control: #b6c1d6;
  --brand: var(--accent);
  --brand-hover: var(--accent-hover);
  --focus: var(--accent);
  --error: #253550;
  --error-bg: #eef2f9;
  --success: var(--theme-blue);
  --shadow: 0 16px 48px #22314d14;
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: RedLatin,RedSans,sans-serif;
}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}.red-app{min-width:1100px;margin:0;background:var(--canvas);color:var(--ink);font-family:var(--font);font-size:15px;font-weight:300;line-height:1.7;-webkit-font-smoothing:antialiased}.red-app [hidden]{display:none!important}.red-app button,.red-app input,.red-app select,.red-app textarea{font:inherit;color:inherit}.red-app button,.red-app a,.red-app summary{touch-action:manipulation}.red-app button,.red-app summary{cursor:pointer}.red-app button:disabled{cursor:not-allowed;opacity:.45}.red-app a{color:inherit;text-decoration:none}.red-app button,.red-app a{ -webkit-tap-highlight-color:transparent}.red-app :focus-visible{outline:2px solid var(--focus);outline-offset:4px}.red-app ::selection{background:#d5e4ff;color:#22314d}.red-app input,.red-app textarea{caret-color:var(--accent)}.red-app ::placeholder{color:#52637e;opacity:1}.red-app ::-webkit-scrollbar{width:7px;height:7px}.red-app ::-webkit-scrollbar-thumb{background:#cdcdca;border:2px solid #fff;border-radius:var(--corner-compact);corner-shape:squircle}.red-app ::-webkit-scrollbar-track{background:#fff}.red-app h1,.red-app h2,.red-app h3,.red-app h4,.red-app strong,.red-app b{font-weight:300}.red-app h1{font-size:40px;font-weight:300;line-height:1.35;letter-spacing:-.03em;text-wrap:balance}.red-app h2{font-size:22px;line-height:1.5}.red-app h3{font-size:17px;line-height:1.6}.red-app p{line-height:1.8}.red-app .icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.red-app .icon-defs{position:absolute;width:0;height:0;overflow:hidden}.red-app .sidebar{display:none}.red-app .shell{margin:0;padding:0}.red-app main,.red-app.comparing main{width:100%;max-width:1720px;margin:auto;padding:38px 48px 60px}.red-app .heading{margin:0 0 30px}.red-app .heading h1{margin:0 0 10px;font-size:40px;font-weight:300}.red-app .heading h1 .page-en{font:300 21px RedLatin,sans-serif;color:#52637e;margin-left:16px;letter-spacing:-.02em}.red-app .heading p{margin:0;color:var(--muted);font-size:14px}.red-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:36px;height:92px;padding:0 42px;background:#fffffffa;border-bottom:1px solid var(--border);font-size:14px}.red-brand{display:flex;align-items:center;gap:11px;flex-shrink:0}.red-monogram{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:var(--corner-control);corner-shape:squircle;color:white;background:var(--accent);font:400 29px/1 RedLatin,sans-serif;padding-bottom:4px}.red-wordmark{font-size:20px;letter-spacing:-.03em;line-height:1.4}.red-wordmark small{display:block;font:300 10px/1.8 RedLatin,sans-serif;letter-spacing:.06em;color:var(--muted)}.red-nav{display:flex;align-self:stretch;gap:28px;margin:auto}.red-nav a{position:relative;display:flex;justify-content:center;flex-direction:column;gap:0;min-width:76px;color:var(--muted);white-space:nowrap;transition:color .18s}.red-nav a>span{font-size:14px}.red-nav a small{font:300 11px/1.5 RedLatin,sans-serif;color:#52637e}.red-nav a:hover,.red-nav a[aria-current]{color:var(--accent)}.red-nav a[aria-current]:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--accent)}.red-nav #navCount{display:none}.red-header-right{display:flex;gap:16px;align-items:center;flex-shrink:0}.red-workspace{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.red-workspace:before{content:'';width:6px;height:6px;background:var(--accent);border-radius:50%;corner-shape:round}.red-app .preview-badge{display:flex;align-items:center;gap:6px;color:var(--muted);background:none;border:0;padding:0;font-size:12px}.red-app .preview-badge .icon{width:15px;height:15px}.red-app .connection-button{min-height:38px;border:1px solid var(--border);border-radius:var(--corner-pill);corner-shape:round;background:white;padding:7px 13px;font-size:12px;display:flex;align-items:center;gap:7px}.red-app .connection-dot{width:6px;height:6px;border-radius:50%;corner-shape:round;background:#999}.red-app .connected .connection-dot{background:var(--success)}
.red-app .primary,.red-app .secondary,.red-app .red-button,.red-app .more-button{position:relative;overflow:hidden;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;border-radius:var(--corner-pill);corner-shape:round;padding:11px 21px;border:0;line-height:1.5;font-size:14px;font-weight:300;white-space:nowrap;transition:background .18s,color .18s,transform .15s,box-shadow .18s;text-decoration:none}.red-app .primary,.red-app .red-button{background:var(--accent);color:#fff}.red-app .primary:hover,.red-app .red-button:hover{background:var(--accent-hover);box-shadow:0 6px 18px #334d8720}.red-app .secondary,.red-app .more-button{background:var(--surface);color:var(--ink)}.red-app .secondary:hover,.red-app .more-button:hover{background:var(--accent-soft)}.red-app button:active:not(:disabled),.red-app .red-button:active{transform:translateY(1px) scale(.975)}.red-app .text-button{background:transparent;border:0;padding:9px 4px;min-height:40px;font-size:13px;text-decoration:underline;text-underline-offset:5px;color:var(--muted)}.red-app .text-button:hover{color:var(--accent)}.red-app input:not([type=file]):not([type=radio]):not([type=checkbox]),.red-app select,.red-app textarea{border:1px solid var(--control);border-radius:var(--corner-control);corner-shape:squircle;background:#fff;box-shadow:none;transition:border-color .18s,box-shadow .18s;min-height:44px}.red-app input:focus,.red-app textarea:focus,.red-app select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #334d871a}.red-app input,.red-app textarea{padding:12px 14px}.red-app select{padding:10px 34px 10px 14px}.red-app .button-spinner,.red-app .generation-spinner{display:inline-block;width:17px;height:17px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;corner-shape:round;animation:red-spin .8s linear infinite}.red-press{position:absolute;pointer-events:none;border-radius:50%;corner-shape:round;background:currentColor;opacity:.13;z-index:-1;animation:red-press .55s var(--ease) forwards}.red-app .section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px}.red-app .section-heading h2{margin:0 0 6px}.red-app .section-heading p{font-size:13px;color:var(--muted);margin:0}.red-app .muted{color:var(--muted);font-size:13px}.red-app footer{display:flex;justify-content:space-between;gap:24px;margin-top:64px;padding-top:23px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}.red-app .empty,.red-app .product-empty,.red-app .red-empty{padding:70px 20px;background:var(--surface);text-align:center;border:0;border-radius:var(--corner-control);corner-shape:squircle;color:var(--muted)}.red-app .empty h3,.red-app .red-empty h3{color:var(--ink)}.red-app .empty button{border:0;background:white;padding:12px 20px;border-radius:var(--corner-pill);corner-shape:round}.red-app .notice,.red-app #collectionStatus{background:var(--surface);border:0;border-radius:var(--corner-control);corner-shape:squircle;font-size:13px;padding:14px 18px;color:var(--ink);margin:16px 0}.red-app .notice.error,.red-app #collectionStatus.error{background:var(--error-bg);color:var(--error)}.red-app dialog{border:0;padding:0;border-radius:var(--corner-card);corner-shape:squircle;box-shadow:var(--shadow);background:white;color:var(--ink)}.red-app dialog::backdrop{background:#21212159;backdrop-filter:blur(4px)}.red-app .skip-link{position:fixed;top:-70px;left:30px;z-index:100}.red-app .skip-link:focus{top:12px;background:white;padding:12px}
/* The library is a continuous image surface; metadata remains outside the image. */
.red-library .heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:24px}.red-library .heading p{max-width:48ch}.red-library .collector{margin:0 0 34px;padding:20px 0 18px;background:none;border:0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);border-radius:0}.red-library .collector-title{display:none}.red-library #collectForm{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:16px;align-items:center;margin:0}.red-library .input-label{display:block;position:static;width:auto;height:auto;clip:auto;overflow:visible;font-size:14px;font-weight:300}.red-library #noteUrl{min-height:48px;border-radius:var(--corner-pill);corner-shape:round;background:var(--surface);border-color:var(--border);padding-left:20px}.red-library #analyze{min-height:48px}.red-library .collect-foot{display:flex;justify-content:space-between;margin:10px 0 0 136px;color:var(--muted);font-size:11px}.red-library .library-title{display:flex;justify-content:space-between;align-items:center;margin:0 0 22px}.red-library .library-title h2{margin:0;font-size:23px;display:flex;align-items:center;gap:12px}.red-library .library-title h2 b{font-weight:300}.red-library #total{font:300 14px RedLatin,sans-serif;color:var(--muted);background:none;padding:0}.red-library .library-title p{display:none}.red-library .sample-label{font-size:12px;color:var(--muted);background:transparent;padding:0}.red-library .sample-label i{display:none}.red-library .toolbar{display:flex;flex-direction:column;align-items:stretch;gap:18px;margin:0 0 20px}.red-library .tabs{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;padding:0;border:0}.red-library .tabs button{display:flex;align-items:center;gap:7px;padding:8px 16px;border:0;background:transparent;color:var(--muted);border-radius:var(--corner-pill);corner-shape:round;min-height:40px;font-size:14px;font-weight:300;white-space:nowrap}.red-library .tabs button.selected{background:var(--accent-soft);color:var(--accent)}.red-library .tabs button:hover{background:var(--surface);color:var(--ink)}.red-library .tab-count{font:300 11px RedLatin,sans-serif;opacity:.85}.red-library .controls{display:flex;align-items:center;gap:12px;width:100%;margin:0}.red-library .search{display:flex;align-items:center;gap:10px;order:-1;max-width:400px;flex:1;border:1px solid var(--border);border-radius:var(--corner-pill);corner-shape:round;padding:0 15px;background:#fff}.red-library .search input{width:100%;min-height:40px!important;background:none!important;border:0!important;padding:8px 0!important;box-shadow:none!important;font-size:13px}.red-library .search .icon{width:17px;height:17px;color:var(--muted)}.red-library .controls select{width:auto;min-height:40px;background:white;border-color:var(--border);border-radius:var(--corner-pill);corner-shape:round;font-size:12px}.red-library #sourceFilter{margin-left:auto}.red-library .list-meta{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:0 0 20px}.red-library .grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:28px 22px;align-items:stretch}.red-library .card{display:inline-block;vertical-align:top;break-inside:avoid;position:relative;width:100%;min-height:0;margin:0 0 28px;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;text-align:left;overflow:visible;transform:none!important}.red-library .card-open{display:block;width:100%;padding:0;border:0;background:var(--surface);border-radius:var(--corner-control);corner-shape:squircle;overflow:hidden;cursor:zoom-in}.red-library .cover{display:block;position:static;width:100%;height:auto;max-height:330px;min-height:100px;object-fit:contain;border-radius:var(--corner-control);corner-shape:squircle;transition:filter .2s}.red-library .card-open:hover .cover{filter:brightness(1.025)}.red-library .card-body{padding:12px 0 0}.red-library .card-category{position:static;display:block;margin:0 0 5px;background:none;color:var(--muted);padding:0;font-size:10px;line-height:1.5;letter-spacing:0;border-radius:0}.red-library .card h3{font-size:14px;line-height:1.65;font-weight:300;min-height:0;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.red-library .card-author{display:none}.red-library .metrics{display:flex;align-items:center;justify-content:flex-start;gap:10px;color:#60605e;font-size:10px;border:0;padding:0;margin:0}.red-library .metrics span{display:inline-flex;align-items:center;gap:4px}.red-library .metrics .icon{width:12px;height:12px}.red-library .metrics b{font:300 11px RedLatin,sans-serif}.red-library .collection-state{font-size:10px;line-height:1.5;color:var(--muted);margin:7px 0 11px}.red-library .card-create{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:36px;padding:8px 12px;background:var(--surface);border:0;border-radius:var(--corner-card);corner-shape:squircle;color:var(--ink);font-size:11px;transition:background .2s,color .2s}.red-library .card-create .icon{width:14px;height:14px;color:var(--accent);transition:transform .2s}.red-library .card-create:hover{color:var(--accent);background:var(--accent-soft)}.red-library .card-create:hover .icon{transform:translateX(3px)}.red-library .catalog-audit{margin:30px 0 0;padding:15px 0;border:0;border-top:1px solid var(--border);border-radius:0;background:transparent;font-size:12px}.red-library .catalog-audit summary{display:flex;justify-content:space-between;gap:24px;color:var(--muted)}.red-library .audit-stats{display:flex;gap:40px;background:none;margin:20px 0}.red-library .audit-stats>div{background:none;padding:0}.red-library .audit-stats strong{font-size:22px;font-weight:300}.red-library .more-button{display:flex;margin:25px auto}.red-library .skeleton-card{break-inside:avoid;margin-bottom:25px;height:320px;border-radius:var(--corner-control);corner-shape:squircle;background:var(--surface);animation:red-skeleton 1.4s ease-in-out infinite}.red-library #detail{width:min(1220px,calc(100vw - 80px));height:calc(100dvh - 64px);max-width:none;max-height:none;overflow:hidden}.red-library .detail-header{height:66px;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border);background:#fff}.red-library .detail-header>span{display:flex;align-items:center;gap:14px;font-size:15px}.red-library #detailBadge{color:var(--muted);font-size:11px;font-weight:300}.red-library .detail-header-actions{display:flex;align-items:center;gap:20px}.red-library #closeDetail{width:36px;height:36px;border:0;border-radius:50%;corner-shape:round;background:var(--surface);display:grid;place-items:center}.red-library .detail-layout{display:grid;grid-template-columns:44% 56%;height:calc(100% - 66px);max-height:none;overflow-y:auto;background:#fff}.red-library .detail-gallery{padding:25px;border-right:1px solid var(--border);background:#fafafa}.red-library #detailCover{display:block;width:100%;height:auto;max-height:600px;object-fit:contain;border-radius:var(--corner-control);corner-shape:squircle;cursor:zoom-in}.red-library #imageStrip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 0;overflow:visible}.red-library #imageStrip button{border:0;padding:0;background:#f0f0ee;border-radius:var(--corner-control);corner-shape:squircle;overflow:hidden;cursor:zoom-in}.red-library #imageStrip img{display:block;width:100%;height:auto;max-height:300px;object-fit:contain}.red-library .note-pane{padding:28px;overflow:visible;height:auto;max-height:none;background:#fff}.red-library .note-copy{padding:0}.red-library .author-line{font-size:12px;color:var(--muted)}.red-library #detailTitle{font-size:23px;margin:15px 0;line-height:1.6}.red-library .detail-metrics{gap:22px;border:0;padding:0;font-size:12px;display:flex}.red-library .detail-metrics span{display:flex;align-items:center;gap:5px}.red-library .detail-metrics .icon{width:15px;height:15px}.red-library .body-copy{font-size:15px;line-height:2;white-space:pre-wrap;margin-top:22px}.red-library .note-actions{display:flex;align-items:center;gap:18px;margin-top:18px;font-size:12px}.red-library .note-actions a{display:flex;align-items:center;gap:5px}.red-library .note-actions button{background:none;border:0;text-decoration:underline;text-underline-offset:4px;font-size:12px;color:var(--muted)}.red-library .category-info{display:none}.red-library #sourceLink{display:inline-block;font-size:12px;color:var(--muted);margin:24px 0 5px}.red-library .comments-pane{border:0;border-top:1px solid var(--border);padding:25px 0 0;margin-top:30px;background:none;overflow:visible;max-height:none}.red-library .comments-title{display:flex;align-items:center;justify-content:space-between;gap:16px}.red-library .comments-title h2{font-size:17px;margin:0}.red-library #commentCount,.red-library .comment-order,.red-library .comment-notice{font-size:10px;color:var(--muted)}.red-library .comment-notice{padding:10px 0;background:none;border:0}.red-library .comment{display:flex;gap:12px;border-top:1px solid var(--border);padding:16px 0}.red-library .comment .avatar{font:300 11px RedLatin,sans-serif;width:28px;height:28px;background:var(--surface);color:var(--muted);border-radius:50%;corner-shape:round;display:grid;place-items:center;flex-shrink:0}.red-library .comment-name{display:flex;justify-content:space-between;font-size:11px}.red-library .comment-name b{font-size:10px;color:var(--muted)}.red-library .comment p{font-size:13px;margin:6px 0}.red-library .comment-meta{font-size:10px;color:var(--muted)}
.red-app .red-lightbox{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;background:#151515ed;box-shadow:none;cursor:zoom-out;overflow:hidden}.red-app .red-lightbox::backdrop{background:transparent}.red-lightbox-stage{display:flex;width:100%;height:100%;align-items:center;justify-content:center;padding:65px 45px 35px}.red-lightbox-stage img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border-radius:var(--corner-control);corner-shape:squircle}.red-lightbox-close{position:absolute;right:24px;top:18px;width:40px;height:40px;display:grid;place-items:center;background:white;border:0;border-radius:50%;corner-shape:round;z-index:2}.red-lightbox-caption{position:absolute;left:35px;top:25px;font-size:12px;color:#f5f5f5}.red-app .red-inline-link{color:var(--accent);text-decoration:underline;text-underline-offset:4px}.red-app .red-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:120;max-width:700px;background:var(--ink);color:#fff;border-radius:var(--corner-pill);corner-shape:round;padding:12px 24px;font-size:13px;box-shadow:var(--shadow)}
@keyframes red-spin{to{transform:rotate(360deg)}}@keyframes red-press{from{transform:scale(0)}to{transform:scale(2.3);opacity:0}}@keyframes red-skeleton{50%{opacity:.5}}
@view-transition{navigation:auto}::view-transition-group(red-cover){animation-duration:.42s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}::view-transition-old(root),::view-transition-new(root){animation-duration:.18s}
@media(max-width:1350px){.red-header{padding-inline:32px;gap:24px}.red-nav{gap:22px}.red-app main,.red-app.comparing main{padding-inline:32px}.red-library .grid{grid-template-columns:repeat(5,minmax(0,1fr));column-gap:20px}.red-workspace{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.red-app *,.red-app *:before,.red-app *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation-duration:.01ms!important}}
.red-nav{position:absolute;left:50%;transform:translateX(-50%);height:100%;margin:0}.red-header-right{margin-left:auto}.red-library .input-label{grid-column:1;grid-row:1}.red-library #noteUrl{grid-column:2;grid-row:1}.red-library #analyze{grid-column:3;grid-row:1}.red-library .library{margin-top:0}.red-library .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center}.red-library .tabs{gap:3px}.red-library .tabs button{padding-inline:12px}.red-library .controls{width:auto;gap:9px}.red-library .search{width:180px;min-width:140px;max-width:200px;flex:none}.red-library .controls select{max-width:125px}.red-library #sourceFilter{margin-left:0}.red-app #workSearch,.red-app #productSearch{border:0;border-radius:0;box-shadow:none;background:transparent}.red-library .collect-foot{font-size:11px}.red-library .collector{margin-bottom:28px}
.red-library .card-create{font-size:12px;min-height:40px}.red-works .work-open{font-size:12px;min-height:40px}
.red-library .note-actions #downloadNote{background:var(--surface);color:var(--ink);padding:11px 16px;border-radius:var(--corner-pill);corner-shape:round;min-height:42px}.red-library .note-actions #downloadNote:hover{background:var(--accent-soft)}.red-library #detailBadge{background:var(--surface);padding:5px 9px;border-radius:var(--corner-badge);corner-shape:squircle}.red-library .detail-metrics{background:var(--surface);padding:10px 14px;border-radius:var(--corner-control);corner-shape:squircle}.red-library .cover{background:var(--surface)}
@media(max-width:1350px){.red-library .tabs button{padding-inline:9px;font-size:12px}.red-library .tabs{gap:1px}.red-library .controls{gap:7px}.red-library .controls select{max-width:110px}.red-library .search{width:160px}.red-library .toolbar{gap:12px}}

.red-app .review-field,.red-app .row-heading strong,.red-app .asset-slot-head strong,.red-app .section-heading h2,.red-app .input-label,.red-app .settings-head h2{font-weight:300}

/* Library covers and their action form one continuous note. */
.red-library .card{display:flex;flex-direction:column;vertical-align:initial;break-inside:auto;margin:0;border:1px solid var(--border);border-radius:var(--corner-control);corner-shape:squircle;overflow:hidden;background:var(--canvas)}
.red-library .card:hover{border-color:var(--control);box-shadow:none}
.red-library .card-open{flex-shrink:0;aspect-ratio:3/4;border-radius:0;background:var(--surface)}
.red-library .cover{width:100%;height:100%;max-height:none;min-height:0;aspect-ratio:auto;object-fit:cover;object-position:center top;border-radius:0}
.red-library .card-body{display:flex;flex-direction:column;flex:1;padding:12px 12px 0}
.red-library .card h3{min-height:3.3em}
.red-library .metrics{margin-top:auto}
.red-library .card-create{position:relative;isolation:isolate;overflow:hidden;width:100%;min-height:46px;margin:14px 0 12px;padding:6px 6px 6px 15px;border:1px solid #dededb;border-radius:var(--corner-card);corner-shape:squircle;background:var(--surface-subtle,#fafafa);color:var(--ink);font-size:13px;font-weight:300;cursor:pointer;transition:color .2s,border-color .2s,transform .18s}
.red-library .card-create::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;corner-shape:inherit;background:var(--ink);clip-path:circle(0 at calc(100% - 22px) 50%);transition:clip-path .42s cubic-bezier(.16,1,.3,1)}
.red-library .card-create-label{position:relative;letter-spacing:.015em}
.red-library .card-create .icon{position:relative;width:32px;height:32px;padding:8px;flex:none;border-radius:50%;corner-shape:round;background:var(--accent);color:var(--canvas);transform:rotate(-35deg);transition:transform .32s cubic-bezier(.16,1,.3,1),background .2s}
.red-library .card-create:is(:hover,:focus-visible){background:var(--surface-subtle,#fafafa);border-color:var(--ink);color:var(--canvas)}
.red-library .card-create:is(:hover,:focus-visible)::before{clip-path:circle(150% at calc(100% - 22px) 50%)}
.red-library .card-create:is(:hover,:focus-visible) .icon{transform:rotate(0)}
.red-library .card-create:active{transform:scale(.975)}
.red-library .card-create:active .icon{background:var(--accent-hover);transform:translateX(2px)}
.red-library .card-create:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.red-library .card-new{position:absolute;top:10px;right:10px;z-index:1;display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:var(--corner-badge);corner-shape:squircle;background:var(--success);color:#fff;font-size:12px;font-weight:300;line-height:1;pointer-events:none}
@media(prefers-reduced-motion:reduce){.red-library .card-create,.red-library .card-create::before,.red-library .card-create .icon{transition:none}.red-library .card-create:active,.red-library .card-create .icon{transform:none}}

.red-lightbox-frame { display: contents; }
.red-lightbox-gallery .red-lightbox-frame {
  display: flex;
  align-items: center;
  position: relative;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  height: 100%;
}
.red-app .red-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #fff9;
  border-radius: 50%; corner-shape: round;
  background: #ffffffc9;
  color: #35303d;
  box-shadow: 0 2px 10px #1e182b26;
}
.red-app .red-lightbox-nav[data-lightbox-step="-1"] { left: 8px; }
.red-app .red-lightbox-nav[data-lightbox-step="1"] { right: 8px; }
.red-app .red-lightbox-nav:hover:not([aria-disabled="true"]) { background: #fff; }
.red-app .red-lightbox-nav[aria-disabled="true"] { opacity: .48; cursor: default; }
.red-app .red-lightbox-nav:active:not(:disabled) { transform: translateY(-50%); }

/* Account actions share the workbench navigation row. */
.red-account-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.red-header > .red-account-nav { margin-inline-start: auto; }
.red-header .red-account-action {
  min-height: 44px;
  padding: 0 6px 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.red-header .red-account-action:hover { color: var(--accent); }
.slate-theme .red-header .red-account-action {
  padding-block: 16px 0;
  color: #ffffffb3;
  font-size: 13px;
}
.slate-theme .red-header .red-account-action:hover { color: #fff; }
.slate-theme .red-header .red-account-action:focus-visible { outline-color: #fff; }

.red-account-balance {
  padding-inline: 6px;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.red-header .red-account-balance { padding-block-end: 16px; color: var(--muted); }
.slate-theme .red-header .red-account-balance { padding-block: 16px 0; color: #ffffffe6; }
@media (min-width: 1100px) and (max-width: 1350px) {
  .red-header:has(.red-account-nav) .red-nav { left: 43%; gap: 12px; }
  .red-header .red-account-nav { gap: 2px; }
}
