automatic-writing / style.css
jejunepixels's picture
Remove in-app sign-in; explain the GPU allowance on the intro page
a31b411 verified
Raw History Blame Contribute Delete
22.1 kB
.gradio-container { max-width: 1600px !important; margin: auto; }
/* Start page, eyebrow, title, dock and round return button: see brand.css (shared-ui/). */
#page textarea { font: 18px/1.65 Georgia, 'Times New Roman', serif !important; padding: 14px 20px !important; }
.inspector { padding: 22px; border: 1px solid #82968b40; border-radius: 14px; min-height: 230px; }
.inspector h3 { font: 26px/1.2 Georgia, serif; margin: 12px 0; }
.inspector p, .inspector small { opacity: .75; line-height: 1.6; }
.candidate { padding: 8px 10px; margin: 6px 0; border-radius: 8px; }
.candidate.selected { background: #f4bf6726; outline: 1px solid #f4bf6780; }
.candidate-label { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.candidate-label code { white-space: pre-wrap; overflow-wrap: anywhere; }
.candidate small { font-size: 10px; }
.track { height: 5px; background: #82968b20; border-radius: 8px; margin: 7px 0 3px; overflow: hidden; }
.track div { height: 100%; background: #f4bf67; border-radius: 8px; }
#flow-workspace { gap:10px; }
#workspace-top textarea { font-size:11px; }
#sampling-controls { gap:8px; }
#space-scene { padding:0 !important; border:0 !important; }
#token-universe { position:relative; height:clamp(340px,55vh,800px); overflow:hidden; border-radius:16px; background:#080f18; color:#bdd8dd; }
#token-universe canvas { width:100%; height:100%; display:block; cursor:grab; touch-action:none; }
#token-universe canvas:active { cursor:grabbing; }
.space-top,.space-bottom { position:absolute; left:22px; right:22px; display:flex; justify-content:space-between; gap:16px; pointer-events:none; font:11px/1.5 system-ui,sans-serif; }
.space-top { top:18px; letter-spacing:.12em; }
.space-bottom { bottom:16px; opacity:.6; }
.space-brand { color:#f4bf67; }
.space-empty { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; pointer-events:none; font:clamp(20px,3vw,34px)/1.4 Georgia,serif; color:#b9d0d4; }
.space-empty small { font:13px/1.5 system-ui,sans-serif; opacity:.65; }
.space-transport { display:none !important; }
@media(max-width:640px) { .space-bottom { font-size:9px;left:12px;right:12px; } .space-top { left:12px;right:12px;font-size:9px; } }
.space-tools { position:absolute; top:48px; left:22px; right:22px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; font:12px/1.4 system-ui,sans-serif; }
.space-tools label { display:flex; align-items:center; gap:7px; color:#c2dadc; }
.space-tools select,.space-tools button { border:1px solid #577f89; border-radius:7px; padding:6px 8px; background:#112530; color:#d6e9e9; cursor:pointer; font:inherit; }
.space-detail { position:absolute; left:22px; bottom:44px; max-width:min(650px,85%); padding:8px 12px; border-radius:7px; background:#0a1726d9; color:#c4d8da; font:11px/1.5 system-ui,sans-serif; pointer-events:none; }
@media(max-width:640px){ .space-tools{top:43px;left:12px;right:12px;gap:7px;font-size:10px;} .space-detail{left:12px;bottom:55px;font-size:10px;} .space-bottom{flex-wrap:wrap;} }
/* Loaded experience: a viewport-sized canvas with text and controls above it. */
.gradio-container { max-width:none !important; min-height:100dvh !important; }
#flow-workspace { position:fixed !important; inset:0 !important; width:100vw !important; height:100dvh !important; margin:0 !important; padding:0 !important; gap:0 !important; overflow:hidden !important; background:#080f18; z-index:50; }
#space-scene { position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; z-index:0; }
#token-universe { width:100%; height:100% !important; border-radius:0 !important; }
#page { position:absolute !important; top:max(18px,env(safe-area-inset-top)); left:clamp(16px,4vw,72px); right:clamp(16px,4vw,72px); width:auto !important; z-index:2; padding:0 !important; border:1px solid #b4dad52b !important; border-radius:16px !important; background:#091622 !important; backdrop-filter:blur(10px); box-shadow:0 10px 40px #0003; }
#page textarea { height:clamp(110px,22vh,240px) !important; min-height:110px !important; max-height:45vh !important; overflow-y:auto !important; resize:vertical !important; color:#e0eeeb !important; background:transparent !important; border:none !important; font:clamp(16px,1.5vw,21px)/1.7 Georgia,serif !important; padding:20px 24px !important; scrollbar-color:#668c8b #10232d; }
#page > div { background:transparent !important; }
#control-dock { position:absolute !important; bottom:max(16px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); width:min(940px,calc(100vw - 32px)) !important; max-height:65dvh; overflow-y:auto; z-index:4; padding:12px !important; gap:8px !important; }
#stream-buttons { gap:10px !important; flex-wrap:nowrap !important; }
#stream-buttons button { min-height:44px; min-width:0 !important; }
#settings-drawer { border:0 !important; background:transparent !important; }
#sampling-controls { flex-wrap:wrap; }
#sampling-controls > div { min-width:180px !important; }
.space-top { top:auto !important; bottom:8px; left:18px; right:18px; font-size:9px; opacity:.5; }
.space-tools { top:auto !important; bottom:150px; left:24px; right:24px; justify-content:center; gap:10px; z-index:1; }
.space-detail { bottom:203px; left:24px; max-width:min(720px,calc(100vw - 48px)); z-index:1; }
.space-bottom { display:none !important; }
@media(max-width:640px) { #page { left:12px;right:12px;top:12px; } #page textarea { height:20vh !important; font-size:16px !important; padding:12px 16px !important; } #control-dock { bottom:12px;width:calc(100vw - 24px) !important;padding:8px !important;max-height:60dvh; } .space-tools { bottom:145px;left:12px;right:12px;font-size:10px;gap:6px; } .space-detail { bottom:228px;left:12px;max-width:calc(100vw - 24px);font-size:10px; } }
#token-universe { position:fixed !important; inset:0 !important; width:100vw !important; height:100dvh !important; }
#stream-buttons { position:sticky; top:0; z-index:6; background:#eaf2eff2; }
#page[data-token-inspection="true"] textarea { display:none !important; }
.paused-token-reader { position:relative; height:clamp(110px,22vh,240px); max-height:45vh; overflow-y:auto; padding:14px 24px 20px; color:#e0eeeb; font:clamp(16px,1.5vw,21px)/1.7 Georgia,serif; scrollbar-color:#668c8b #10232d; }
.token-reader-hint { position:sticky; top:-14px; padding:6px 0 10px; background:#0c1c27f5; color:#f4bf67; font:11px/1.4 system-ui,sans-serif; letter-spacing:.04em; z-index:1; }
.paused-token-content { white-space:pre-wrap; overflow-wrap:anywhere; }
.paused-token-reader button.text-token { all:unset; display:inline; white-space:pre-wrap; font:inherit; color:inherit; cursor:pointer; border-radius:4px; }
.paused-token-reader button.text-token:hover { background:#ffffff20; box-shadow:0 0 0 1px #f4bf6766; }
.paused-token-reader button.text-token.is-selected { background:#f4bf67; color:#17242b; box-shadow:0 0 0 2px #f4bf6755; }
.paused-token-reader button.text-token:focus-visible { outline:2px solid #f4bf67; outline-offset:2px; }
.token-piece-choices { margin-top:8px; color:#b4cdd2; font:12px/1.7 ui-monospace,monospace; }
@media(max-width:640px){.paused-token-reader { height:20vh;padding:12px 16px;font-size:16px; }}
.generation-proxy { display:none !important; }
#generation-toggle { border:0 !important; padding:0 !important; background:transparent !important; flex:3 !important; min-width:0 !important; }
.generation-toggle-button { width:100%; min-height:44px; padding:10px 18px; border:0; border-radius:10px; background:#f4bf67; color:#17242b; font:600 16px/1.4 system-ui,sans-serif; cursor:pointer; box-shadow:0 2px 8px #173c381a; }
.generation-toggle-button:hover { background:#e7aa45; }
.generation-toggle-button:disabled { opacity:.65; cursor:wait; }
.generation-toggle-button:focus-visible { outline:3px solid #f4bf67; outline-offset:2px; }
/* Model caption and compact reset remain outside the expandable dock. */
#text-overlay { position:absolute !important; top:max(18px,env(safe-area-inset-top)); left:clamp(16px,4vw,72px); right:clamp(16px,4vw,72px); width:auto !important; gap:7px !important; z-index:2; }
#model-name { padding:0 24px !important; border:0 !important; min-height:18px !important; background:transparent !important; color:#c5e2dd; text-align:left; font:600 13px/1.5 system-ui,sans-serif; overflow-wrap:anywhere; }
#page { position:relative !important; top:auto !important; left:auto !important; right:auto !important; width:100% !important; }
#flow-workspace { --brand-return-label:"Change model"; }
#control-dock { width:min(940px,calc(100vw - 120px)) !important; }
@media(max-width:640px) { #text-overlay { top:12px;left:12px;right:12px;gap:5px !important; } #model-name { font-size:12px;padding:0 16px !important; } #control-dock { left:12px;transform:none;width:calc(100vw - 72px) !important; } }
/* Override theme colours on rendered HTML children and the textbox's form shell. */
#model-name, #model-name * { color:var(--brand-stage-caption) !important; opacity:1 !important; font:600 13px/1.5 var(--brand-sans) !important; }
#text-overlay { --body-text-color:#d9f6ef; --body-text-color-subdued:#a8c9c5; --block-background-fill:transparent; --input-background-fill:#091622; }
#text-overlay > .form { background:transparent !important; border:0 !important; border-radius:16px !important; box-shadow:none !important; overflow:hidden !important; }
#page { overflow:hidden !important; background:#091622 !important; background-image:none !important; box-shadow:none !important; }
#page > div, #page label, #page .input-container, #page .input-container:focus-within { background:transparent !important; background-image:none !important; border:0 !important; box-shadow:none !important; }
#page textarea { background:transparent !important; background-image:none !important; border-radius:0 !important; box-shadow:none !important; resize:none !important; }
/* Amber links the title punctuation, primary actions, focus and selections. */
.gradio-container { --primary-400:#f8d49a !important; --primary-500:#f4bf67 !important; --primary-600:#b77a20 !important; --color-accent:#f4bf67 !important; --color-accent-soft:#f4bf6726 !important; }
.space-tools button:hover,.space-tools select:focus-visible { border-color:#f4bf67; }
/* A readable attention inspector, with raw weights rather than renormalized bars. */
.space-detail { width:440px; max-width:calc(100vw - 48px); max-height:42dvh; overflow-y:auto; padding:18px 20px; border:1px solid #78949d45; border-radius:14px; background:#0a1726f5; color:#d5e3e6; font:14px/1.55 system-ui,sans-serif; pointer-events:auto; scrollbar-color:#687c88 #0a1726; }
.attention-title { margin:0 0 6px; color:#f4bf67 !important; font:600 18px/1.35 system-ui,sans-serif; overflow-wrap:anywhere; }
.attention-intro { margin:0 0 6px; color:#d5e3e6 !important; }
.attention-meta { margin:0 0 14px; color:#9fb5bd !important; font-size:12px; }
.attention-list { display:grid; gap:9px; }
.attention-item { display:grid; grid-template-columns:minmax(80px,1fr) minmax(65px,1.15fr) 48px; gap:12px; align-items:center; }
.attention-token { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e0ebed !important; font:13px/1.5 ui-monospace,monospace; }
.attention-bar { height:7px; overflow:hidden; border-radius:4px; background:#ffffff15; }
.attention-bar-fill { display:block; height:100%; background:#f4bf67; border-radius:4px; }
.attention-percent { color:#f4bf67 !important; text-align:right; font-variant-numeric:tabular-nums; font-size:13px; }
.attention-coverage { margin:14px 0 0; color:#a8bdc4 !important; font-size:12px; }
.attention-help { margin-top:12px; border-top:1px solid #ffffff18; padding-top:10px; color:#b8cbd1 !important; font-size:12px; }
.attention-help summary { cursor:pointer; color:#f4bf67; }
.attention-help p { margin:9px 0 0; color:#b8cbd1 !important; }
@media(max-width:640px) { .space-detail { bottom:228px; width:calc(100vw - 24px); max-width:calc(100vw - 24px); max-height:30dvh; padding:14px; font-size:13px; box-sizing:border-box; } .attention-title { font-size:16px; } .attention-item { grid-template-columns:minmax(65px,1fr) minmax(50px,1fr) 43px; gap:8px; } }
.layer-controls { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0; }
.layer-controls label { display:flex; flex-direction:column; gap:4px; color:#bacdd4; font:12px/1.4 system-ui,sans-serif; }
.layer-controls select { padding:6px 8px; border:1px solid #6b8796; border-radius:6px; background:#112530; color:#e0ebed; font:inherit; }
.layer-filter { flex:1 1 100%; }
.layer-filter input { width:100%; accent-color:#f4bf67; }
.layer-caption { margin:10px 0; color:#a8bdc4 !important; font:12px/1.5 system-ui,sans-serif; }
.layer-legend { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:15px; }
.layer-chip,.layer-restore { padding:4px 8px; border:1px solid; border-radius:6px; background:#ffffff08; font:600 12px/1.5 system-ui,sans-serif; cursor:pointer; }
.layer-chip[aria-pressed="false"] { opacity:.35; text-decoration:line-through; }
.layer-chip:focus-visible,.layer-restore:focus-visible { outline:2px solid #f4bf67; outline-offset:2px; }
.layer-restore { border-color:#78949d; color:#d5e3e6; }
.attention-layer + .attention-layer { margin-top:16px; padding-top:12px; border-top:1px solid #ffffff18; }
.attention-layer > .attention-meta { border-left:3px solid; padding-left:8px; }
.space-edge-tooltip { position:fixed; z-index:9; max-width:260px; padding:8px 10px; border:1px solid #78949d66; border-radius:7px; background:#07121ff5; color:#e2edf0; font:12px/1.5 system-ui,sans-serif; pointer-events:none; }
.space-edge-tooltip[hidden] { display:none !important; }
.layer-controls label,.layer-controls label > span { color:#bacdd4 !important; }
.layer-settings > summary { cursor:pointer; color:#f4bf67 !important; font:600 12px/1.5 system-ui,sans-serif; margin:10px 0; }
.layer-caption-mobile { display:none; }
:is(.layer-controls,.representation-layer-label,.dimension-axes-options) input[type="range"] { appearance:none; height:20px; padding:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important; }
:is(.layer-controls,.representation-layer-label,.dimension-axes-options) input[type="range"]::-webkit-slider-runnable-track { height:5px; border-radius:4px; background:#354654; }
:is(.layer-controls,.representation-layer-label,.dimension-axes-options) input[type="range"]::-webkit-slider-thumb { appearance:none; width:14px; height:14px; margin-top:-4.5px; border:0; border-radius:50%; background:#f4bf67; cursor:ew-resize; }
:is(.layer-controls,.representation-layer-label,.dimension-axes-options) input[type="range"]::-moz-range-track { height:5px; border-radius:4px; background:#354654; }
:is(.layer-controls,.representation-layer-label,.dimension-axes-options) input[type="range"]::-moz-range-thumb { width:14px; height:14px; border:0; border-radius:50%; background:#f4bf67; }
:is(.layer-controls,.representation-layer-label,.dimension-axes-options) input[type="range"]:focus-visible { outline:2px solid #f4bf67; outline-offset:3px; }
@media(max-width:640px) { .space-detail { max-height:max(160px,min(40dvh,calc(100dvh - 440px))); } .layer-caption-desktop { display:none; } .layer-caption-mobile { display:inline; } }
/* HTML theme rules set colours on child spans, so specify HUD text explicitly. */
.layer-caption,.layer-caption span { color:#a8bdc4 !important; }
.layer-restore { color:#d5e3e6 !important; }
.space-tools [data-space-step],.space-empty small { color:#b8cbd1 !important; }
.space-top .space-count { color:#8aa4ad !important; }
.space-top .space-brand { color:#f4bf67 !important; }
/* Keep native popup options and explanatory text readable on the dark canvas. */
#token-universe select,#token-universe select option { color:#f4f7f8 !important; background-color:#112530 !important; color-scheme:dark; opacity:1 !important; }
.space-tools label,.layer-controls label,.layer-controls label > span,.layer-caption,.layer-caption span,.attention-intro,.attention-meta,.attention-coverage,.attention-help p { color:#eef3f5 !important; }
.connection-explanation,.connection-note,.connection-selected,.connection-token { color:#eef3f5 !important; }
.connection-explanation { margin:8px 0 12px; font:14px/1.6 system-ui,sans-serif; }
.connection-note { margin:10px 0; font:13px/1.6 system-ui,sans-serif; }
.connection-selected { margin:16px 0 10px; font:600 13px/1.5 system-ui,sans-serif; overflow-wrap:anywhere; }
.connection-matches { display:grid; gap:9px; margin:12px 0; }
.connection-match { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.connection-token { min-width:0; overflow-wrap:anywhere; font:13px/1.5 ui-monospace,monospace; }
.connection-score { color:#f4bf67 !important; flex-shrink:0; font:12px/1.5 ui-monospace,monospace; }
.representation-controls[hidden] { display:none !important; }
.representation-controls { border-bottom:1px solid #ffffff26; padding-bottom:15px; margin-bottom:15px; }
.representation-note,.representation-stage,.representation-layer-label,.representation-actions label { color:#eef3f5 !important; font:13px/1.55 system-ui,sans-serif; }
.representation-note { margin:8px 0 12px; }
.representation-layer-label { display:flex; flex-direction:column; gap:8px; }
.representation-layer-label input { width:100%; accent-color:#f4bf67; color-scheme:dark; }
.representation-stage { font-weight:600; color:#f4bf67 !important; margin:8px 0 12px; }
.representation-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.representation-actions button { border:1px solid #f4bf67; border-radius:7px; padding:6px 10px; background:#f4bf67; color:#17242b !important; font:600 13px/1.5 system-ui,sans-serif; cursor:pointer; }
.representation-actions button:disabled { opacity:.5; cursor:default; }
.representation-actions label { display:flex; align-items:center; gap:7px; }
.representation-actions input { accent-color:#f4bf67; }
.connection-detail { color:#eef3f5 !important; }
.representation-connection-details > summary { display:none; }
@media(max-width:640px) {
#token-universe[data-position-mode="representations"] .space-detail { max-height:210px; }
#token-universe[data-position-mode="representations"] .representation-controls { margin-bottom:8px;padding-bottom:8px; }
#token-universe[data-position-mode="representations"] .representation-controls > .attention-title { display:none; }
#token-universe[data-position-mode="representations"] .representation-note { font-size:11px;line-height:1.35;margin:0 0 6px;max-height:32px;overflow:auto; }
#token-universe[data-position-mode="representations"] .representation-layer-label { font-size:0;line-height:0;gap:0; }
#token-universe[data-position-mode="representations"] .representation-stage { font-size:12px;margin:4px 0 8px; }
#token-universe[data-position-mode="representations"] .representation-actions { gap:8px; }
#token-universe[data-position-mode="representations"] .representation-actions button { font-size:12px;padding:4px 8px; }
#token-universe[data-position-mode="representations"] .representation-actions label { font-size:11px; }
#token-universe[data-position-mode="representations"] .representation-controls .attention-help { margin-top:6px;padding-top:6px; }
#token-universe[data-position-mode="representations"] .representation-connection-details > summary { display:list-item;color:#f4bf67 !important;cursor:pointer;font:12px/1.5 system-ui,sans-serif;margin:6px 0; }
}
.dimension-axes-controls { position:absolute; right:24px; bottom:203px; z-index:1; width:360px; max-width:calc(50vw - 36px); max-height:42dvh; overflow-y:auto; box-sizing:border-box; padding:18px 20px; border:1px solid #78949d45; border-radius:14px; background:#0a1726f5; color:#eef3f5; scrollbar-color:#687c88 #0a1726; }
@media(min-width:641px) { .space-detail { box-sizing:border-box; max-width:calc(50vw - 36px); } }
.dimension-axes-top { display:flex;align-items:center;justify-content:space-between;gap:8px; }
.dimension-axes-top label { display:flex;align-items:center;flex-wrap:wrap;gap:5px;font:600 12px/1.4 system-ui,sans-serif; }
.dimension-axes-top input[type="checkbox"] { appearance:none !important; -webkit-appearance:none !important; display:inline-block !important; position:relative; flex:0 0 22px; width:22px !important; height:22px !important; margin:0 5px 0 0 !important; padding:0 !important; border:2px solid #eef3f5 !important; border-radius:4px; background:#112530 !important; cursor:pointer; }
.dimension-axes-top input[type="checkbox"]:checked { border-color:#f4bf67 !important; background:#f4bf67 !important; }
.dimension-axes-top input[type="checkbox"]:checked::after { content:""; position:absolute; left:6px; top:2px; width:6px; height:11px; border:solid #091622; border-width:0 3px 3px 0; transform:rotate(45deg); }
.dimension-axes-top input[type="checkbox"]:focus-visible { outline:2px solid #f4bf67 !important; outline-offset:4px; }
.dimension-axes-top button { padding:3px 7px;border:1px solid #6b8796;border-radius:5px;background:#112530;color:#eef3f5 !important;font:12px/1.4 system-ui,sans-serif;cursor:pointer; }
.dimension-axes-options[hidden] { display:none !important; }
.dimension-axes-options { padding-top:10px; }
.dimension-axes-options label { display:flex;flex-direction:column;gap:6px;margin:9px 0;font:12px/1.5 system-ui,sans-serif; }
.dimension-axes-options select { padding:5px 8px;border:1px solid #6b8796;border-radius:6px;background:#112530; }
.dimension-axes-options p { font:12px/1.55 system-ui,sans-serif; margin:8px 0; }
.dimension-axes-controls label,.dimension-axes-controls span,.dimension-axes-controls p { color:#eef3f5 !important; }
.dimension-axis-status { color:#f4bf67 !important; }
@media(max-width:640px) { .dimension-axes-controls { right:12px; top:calc(20dvh + 100px); bottom:auto; width:calc(100vw - 24px); max-width:360px; max-height:22dvh; padding:12px 14px; } .dimension-axes-top label { font-size:11px; } .dimension-axes-top button { font-size:11px; } }