@charset "UTF-8";
/* One conversation, within the active DFVN theme. */
.mate-page{padding-top:14px;padding-bottom:28px}
#dfvn-mate-root{--mate-toolbar-offset:0px;--mate-prompt-icon-size:24px;--mate-tip-bg:#303638;--mate-tip-ink:#fff;--mate-tip-padding:7px 12px;--mate-tip-radius:10px;--mate-tip-size:13px;--mate-tip-leading:1.4;--mate-control-size:40px;--mate-voice-gap:12px;--mate-voice-height:40px;font-family:var(--dfvn-body-font,inherit);color:var(--ink);font-size:16px;line-height:1.6;max-width:1060px;margin-inline:auto;position:relative}
.admin-bar.dfvn-mate-page #dfvn-mate-root{--mate-toolbar-offset:32px}
@media(max-width:782px){.admin-bar.dfvn-mate-page #dfvn-mate-root{--mate-toolbar-offset:46px}}
#dfvn-mate-root *{box-sizing:border-box}
#dfvn-mate-root [hidden]{display:none!important}
#dfvn-mate-root .mate-image-preview{grid-column:1/-1;position:relative;width:88px;margin:var(--space-2,8px);border-radius:var(--card-radius,16px);overflow:hidden;background:var(--bg)}
#dfvn-mate-root .mate-image-preview img{display:block;width:88px;height:88px;object-fit:cover}
#dfvn-mate-root #remove-image{position:absolute;top:3px;right:3px;width:25px;height:25px;min-width:25px;min-height:25px;background:var(--bg);color:var(--ink);border-radius:50%;padding:5px}
#dfvn-mate-root #remove-image svg{width:15px;height:15px}
#dfvn-mate-root #attach-image{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:10px;border:0;border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}
#dfvn-mate-root #attach-image svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.7}
#dfvn-mate-root #attach-image:disabled{opacity:.4;cursor:default}
#dfvn-mate-root #attach-image:hover:enabled{background:var(--bg)}
#dfvn-mate-root .mate-image-status{font-size:var(--type-small-size,12px);color:var(--muted);margin:var(--space-2,8px) 0 0;text-align:center}
#dfvn-mate-root .mate-image-status:empty{display:none}
#dfvn-mate-root .message-attachment{display:block;max-width:100%;width:280px;max-height:300px;object-fit:contain;border-radius:var(--card-radius,16px);margin-bottom:var(--space-2,8px)}
#dfvn-mate-root .message-image-note{display:block;font-size:var(--type-small-size,12px);color:var(--muted);margin-bottom:var(--space-2,8px)}
#dfvn-mate-root svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#dfvn-mate-root svg use[href$="spark"]{fill:currentColor;stroke:none}
#dfvn-mate-root .icon-defs{position:absolute;width:0;height:0;overflow:hidden}
#dfvn-mate-root button,#dfvn-mate-root textarea{font:inherit}
#dfvn-mate-root button{cursor:pointer}
#dfvn-mate-root button:disabled{opacity:.45;cursor:default}
#dfvn-mate-root :focus-visible{outline:2px solid var(--ink);outline-offset:4px}
#dfvn-mate-root .sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
#dfvn-mate-root .mate-chat{height:calc(100svh - var(--header-height,112px) - var(--mate-toolbar-offset,0px) - 42px);min-height:480px;max-height:920px;border:1px solid var(--line);border-radius:var(--card-radius,32px);background:var(--bg);display:flex;flex-direction:column;overflow:visible;box-shadow:0 10px 45px color-mix(in srgb,var(--ink) 3%,transparent)}
#dfvn-mate-root .mate-chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 22px;border-bottom:1px solid var(--line);flex-shrink:0;background:var(--surface)}
#dfvn-mate-root .mate-identity{display:flex;gap:11px;align-items:center;min-width:0;position:relative}
#dfvn-mate-root .mate-avatar{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:var(--accent-ink,var(--ink));width:38px;height:38px;border-radius:50%;flex-shrink:0}
#dfvn-mate-root .mate-identity h1{font-family:var(--dfvn-body-font);font-size:17px;font-weight:500;line-height:1.35;margin:0;letter-spacing:-.02em;display:inline-block;vertical-align:middle}
#dfvn-mate-root .mate-identity p{font-size:12px;line-height:1.5;color:var(--muted);margin:1px 0 0}
#dfvn-mate-root .mate-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
#dfvn-mate-root .mate-icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:0;min-width:0;padding:8px;border:1px solid var(--line);border-radius:50%;background:var(--bg);color:var(--ink);text-decoration:none;flex-shrink:0;transition:background .15s ease}
#dfvn-mate-root .mate-icon-button:hover{background:var(--accent)}
#dfvn-mate-root .mate-icon-button svg{width:17px;height:17px}
#dfvn-mate-root .mate-quiet-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:0;min-width:0;padding:7px 12px;border:1px solid var(--line);font-weight:500;border-radius:999px;background:var(--surface);color:var(--ink);font-size:14px;line-height:1.4;box-shadow:none;transition:background .15s ease}
#dfvn-mate-root .mate-quiet-button:hover{background:var(--surface)}
#dfvn-mate-root .mate-quiet-button svg{width:16px;height:16px}
#dfvn-mate-root [data-saved-count]{font-size:12px;min-width:15px;text-align:center;color:var(--muted)}
#dfvn-mate-root .conversation-scroll{flex:1;min-height:0;overflow-y:auto;padding:22px clamp(20px,4vw,52px) 28px;scrollbar-width:thin;scrollbar-color:var(--line) transparent;overscroll-behavior:contain;scroll-padding:20px}
#dfvn-mate-root .conversation-scroll:focus{outline-offset:-4px}
#dfvn-mate-root .welcome{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px 0 22px}
#dfvn-mate-root .welcome-avatar{width:54px;height:54px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:var(--accent);color:var(--accent-ink,var(--ink));margin-bottom:18px;transform:rotate(-7deg)}
#dfvn-mate-root .welcome-avatar svg{width:29px;height:29px;transform:rotate(7deg)}
#dfvn-mate-root .welcome h1{font-family:var(--dfvn-title-font,inherit);font-size:clamp(30px,3.5vw,48px);font-weight:500;line-height:1.16;letter-spacing:-.035em;margin:0}
#dfvn-mate-root .welcome>p{font-size:16px;color:var(--muted);line-height:1.6;margin:14px 0 22px}
#dfvn-mate-root .prompt-list{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:8px}
#dfvn-mate-root .prompt-list button{display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;line-height:1.4;min-height:0;padding:10px 13px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);transition:background .15s}
#dfvn-mate-root .prompt-list button:hover{background:var(--accent)}
#dfvn-mate-root .prompt-list svg{width:var(--mate-prompt-icon-size);height:var(--mate-prompt-icon-size)}
#dfvn-mate-root .prompt-symbol{font:18px Georgia,serif;line-height:1;letter-spacing:-1px}
#dfvn-mate-root .message{overflow-wrap:anywhere;animation:mate-enter .2s ease both}
#dfvn-mate-root .message+.message{margin-top:26px}
#dfvn-mate-root .message-user{max-width:76%;width:fit-content;margin-left:auto;background:var(--surface);padding:12px 18px;border-radius:20px 20px 5px 20px;font-size:16px;line-height:1.7}
#dfvn-mate-root .message-user p{margin:0;white-space:pre-wrap}
#dfvn-mate-root .message-failed{display:block;color:var(--muted);font-size:12px;margin-top:5px}
#dfvn-mate-root .message-model{font-size:17px;line-height:1.8}
#dfvn-mate-root .message-model>p{margin:0 0 16px;white-space:pre-wrap;max-width:80ch}
#dfvn-mate-root .message-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;gap:12px}
#dfvn-mate-root .message-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;line-height:1.5;color:var(--muted)}
#dfvn-mate-root .message-label svg{width:17px;height:17px;color:var(--ink)}
#dfvn-mate-root .message-copy{width:30px;height:30px;padding:6px;border:0;background:transparent;color:var(--muted)}
#dfvn-mate-root .message-copy svg{width:16px;height:16px}
#dfvn-mate-root .message-fonts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(235px,100%),1fr));gap:14px;margin:20px 0 8px}
#dfvn-mate-root .font-card{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--bg);min-width:0}
#dfvn-mate-root .font-artwork{height:142px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--surface);color:var(--muted);text-decoration:none;font-size:15px;text-align:center}
#dfvn-mate-root .font-artwork img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
#dfvn-mate-root .font-artwork:hover img{transform:scale(1.025)}
#dfvn-mate-root .font-artwork>span{padding:18px}
#dfvn-mate-root .font-card-body{padding:15px}
#dfvn-mate-root .font-card h3{font-family:var(--dfvn-body-font);font-weight:500;font-size:16px;line-height:1.4;letter-spacing:-.015em;margin:0}
#dfvn-mate-root .font-card h3 a{color:var(--ink);text-decoration:none}
#dfvn-mate-root .font-card-meta{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:5px 10px;font-size:13px;line-height:1.6;color:var(--muted);margin-top:5px}
#dfvn-mate-root .font-role{font-size:12px}
#dfvn-mate-root .font-reason{font-size:14px;line-height:1.65;color:var(--muted);margin:10px 0 0}
#dfvn-mate-root .font-reason strong{display:block;font-weight:600;color:var(--ink)}
#dfvn-mate-root .font-evidence{display:block;margin-top:10px;color:var(--muted);font-size:var(--type-small-size,12px);line-height:1.5;text-underline-offset:.17em}
#dfvn-mate-root .mate-open-compare{display:inline-flex;margin-top:var(--space-3,12px);background:var(--surface)}
#dfvn-mate-root #mate-compare-dialog{width:min(1020px,calc(100vw - 24px));max-width:none}
#dfvn-mate-root #mate-compare-dialog h2{margin:0}
#dfvn-mate-root #mate-compare-form{display:grid;gap:var(--space-2,8px);margin-block:var(--space-3,12px)}
#dfvn-mate-root #mate-compare-form label{display:grid;flex:1 1 190px;min-width:0;gap:var(--space-2,8px);font-size:var(--type-small-size,13px);font-weight:600}
#dfvn-mate-root .mate-compare-controls{display:flex;align-items:end;flex-wrap:wrap;gap:var(--space-3,12px)}
#dfvn-mate-root .mate-compare-controls input{width:100%;min-width:0;min-height:44px;border:0;border-radius:var(--card-radius,16px);padding:10px 14px;background:var(--surface);color:var(--ink);font:inherit;font-size:1rem;font-weight:400}
#dfvn-mate-root #mate-compare-status{color:var(--muted);font-size:var(--type-small-size,13px);margin:var(--space-2,8px) 0 0}
#dfvn-mate-root #mate-compare-status:empty{display:none}
#dfvn-mate-root #mate-compare-cards .font-artwork img{object-fit:contain}
#dfvn-mate-root #mate-compare-cards .mate-project-samples{display:grid;gap:1px;background:var(--line)}
#dfvn-mate-root .mate-project-samples figure{display:grid;align-content:start;margin:0;min-width:0;background:var(--surface)}
#dfvn-mate-root .mate-project-samples figcaption{padding:var(--space-3,12px) var(--space-4,16px) 0;color:var(--muted);font-size:var(--type-small-size,13px)}
#dfvn-mate-root .mate-project-samples img{display:block;width:100%;height:auto;max-width:560px;margin-inline:auto}
#dfvn-mate-root .mate-coverage summary{cursor:pointer;color:var(--ink)}
#dfvn-mate-root .mate-coverage p{margin:var(--space-2,8px) 0 0;overflow-wrap:anywhere}
#dfvn-mate-root .mate-sample-status{background:var(--surface);color:var(--muted);margin:0;padding:6px 15px 0;font-size:var(--type-small-size,12px)}
#dfvn-mate-root .font-card-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin-top:13px;padding-top:11px;border-top:1px solid var(--line)}
#dfvn-mate-root .font-detail{display:inline-flex;align-items:center;min-height:36px;padding:7px 10px;border-radius:999px;background:var(--surface);color:var(--ink);font-size:13px;line-height:1.5;text-decoration:none}
#dfvn-mate-root .font-detail:hover{background:var(--accent)}
#dfvn-mate-root .font-save{width:36px;height:36px;margin-left:auto;border:0;background:var(--surface)}
#dfvn-mate-root .font-save[aria-pressed=true]{background:var(--accent)}
#dfvn-mate-root .font-save[aria-pressed=true] svg{fill:currentColor}
#dfvn-mate-root .followups{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}
#dfvn-mate-root .followups button{font-size:13px;padding:7px 11px;color:var(--muted);text-align:left}
#dfvn-mate-root .thinking{display:flex;align-items:center;gap:10px;margin-top:24px;font-size:14px;line-height:1.6;color:var(--muted)}
#dfvn-mate-root .thinking .mate-avatar{width:28px;height:28px}
#dfvn-mate-root .thinking svg{width:16px;height:16px}
#dfvn-mate-root .thinking-dots{display:flex;gap:3px;align-items:center;margin-left:2px}
#dfvn-mate-root .thinking-dots i{width:4px;height:4px;background:var(--muted);border-radius:50%;animation:mate-breathe 1.2s ease infinite}
#dfvn-mate-root .thinking-dots i:nth-child(2){animation-delay:.15s}
#dfvn-mate-root .thinking-dots i:nth-child(3){animation-delay:.3s}
#dfvn-mate-root .chat-error{font-size:14px;line-height:1.7;padding:13px 16px;border:1px solid var(--line);border-left:3px solid var(--muted);background:var(--surface);border-radius:12px;margin-top:18px}
#dfvn-mate-root .chat-error button{display:flex;width:fit-content;margin-top:9px;font-size:13px}
#dfvn-mate-root #send-message:disabled{opacity:.45;cursor:wait}
#dfvn-mate-root .composer-area{flex-shrink:0;padding:0 clamp(16px,3vw,32px) 12px;background:var(--bg);position:relative}
#dfvn-mate-root .composer{display:block;padding:0;border:1px solid var(--line);border-radius:23px;background:var(--surface);box-shadow:0 -12px 25px var(--bg);margin:0}
#dfvn-mate-root .composer:focus-within{border-color:var(--muted)}
#dfvn-mate-root .composer textarea{display:block;width:100%;min-height:58px;max-height:144px;box-shadow:none;outline:0;border:0;resize:none;background:transparent;color:var(--ink);font-size:16px;line-height:1.6;padding:15px 18px 4px;border-radius:23px 23px 0 0;margin:0}
#dfvn-mate-root .composer textarea::placeholder{color:var(--muted)}
#dfvn-mate-root .composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 12px 11px 18px}
#dfvn-mate-root .composer-bottom>span{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.5;color:var(--muted)}
#dfvn-mate-root .composer-bottom>span svg{width:13px;height:13px}
#dfvn-mate-root #send-message{display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:0;min-width:0;padding:8px;border:0;border-radius:50%;background:var(--ink);color:var(--bg)}
#dfvn-mate-root #send-message:hover{background:var(--accent);color:var(--accent-ink,var(--ink))}
#dfvn-mate-root #send-message svg{width:18px;height:18px}
#dfvn-mate-root #stop-message{font-size:14px;line-height:1.5;min-height:0;padding:7px 14px;border:0;border-radius:999px;background:var(--ink);color:var(--bg)}
#dfvn-mate-root .composer-footnote{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;color:var(--muted);font-size:12px;line-height:1.5}
#dfvn-mate-root .composer-footnote>p{margin:0}
#dfvn-mate-root .privacy-note{position:relative;display:inline-block;vertical-align:middle;margin-left:8px;font-size:13px;font-weight:400;letter-spacing:normal}
#dfvn-mate-root .privacy-note summary{font-size:11px;line-height:1.5;cursor:pointer;list-style:none;padding:3px 9px;border-radius:999px;background:var(--accent);color:var(--ink);text-decoration:none}
#dfvn-mate-root .privacy-note .mate-beta-tip{position:absolute;z-index:30;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 48px);padding:var(--mate-tip-padding);border-radius:var(--mate-tip-radius);background:var(--mate-tip-bg);color:var(--mate-tip-ink);font-size:var(--mate-tip-size);line-height:var(--mate-tip-leading);box-shadow:0 8px 24px color-mix(in srgb,var(--ink) 12%,transparent)}
#dfvn-mate-root .privacy-content{position:absolute;bottom:calc(100% + 5px);right:20px;z-index:5;background:var(--bg);border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 36px color-mix(in srgb,var(--ink) 12%,transparent);padding:18px;width:min(410px,calc(100% - 40px));font-size:14px;line-height:1.6;text-align:left}
#dfvn-mate-root .privacy-content p{margin:0 0 12px}
#dfvn-mate-root .privacy-content a{color:var(--ink);text-decoration:underline}
#dfvn-mate-root #clear-local{font-size:13px;line-height:1.5;min-height:0;border:0;background:none;padding:3px 0;color:var(--ink);text-decoration:underline}
#dfvn-mate-root .connection-note{font-size:13px;color:var(--muted);margin-bottom:10px;text-align:center}
#dfvn-mate-root .mate-dialog{border:1px solid var(--line);border-radius:28px;background:var(--bg);color:var(--ink);font-family:var(--dfvn-body-font);padding:25px;width:min(760px,calc(100vw - 40px));max-height:82svh;overflow-y:auto;overscroll-behavior:contain;margin:auto;box-shadow:0 20px 100px color-mix(in srgb,var(--ink) 15%,transparent)}
#dfvn-mate-root .mate-dialog::backdrop{background:color-mix(in srgb,var(--ink) 30%,transparent);backdrop-filter:blur(4px)}
#dfvn-mate-root .mate-dialog>header{--mate-note-margin:6px 0 0;display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:18px;border-bottom:1px solid var(--line)}
#dfvn-mate-root .mate-dialog .eyebrow{font-size:11px;color:var(--muted)}
#dfvn-mate-root .mate-dialog h2{font-family:var(--dfvn-title-font);font-size:clamp(24px,3vw,30px);font-weight:500;line-height:1.25;letter-spacing:-.025em;margin:7px 0 0}
#dfvn-mate-root #saved-content{padding-top:5px}
#dfvn-mate-root .saved-empty{padding:45px 15px;text-align:center;max-width:450px;margin:auto}
#dfvn-mate-root .saved-empty>svg{width:34px;height:34px;color:var(--muted)}
#dfvn-mate-root .saved-empty h3{font-family:var(--dfvn-title-font);font-size:25px;line-height:1.3;font-weight:500;margin:16px 0 10px}
#dfvn-mate-root .saved-empty p{font-size:15px;color:var(--muted);line-height:1.6;margin:0}
#dfvn-mate-root :is(#reset-dialog,#delete-dialog){max-width:460px}
#dfvn-mate-root :is(#reset-dialog,#delete-dialog) p{font-size:15px;color:var(--muted);line-height:1.7;margin:16px 0 24px}
#dfvn-mate-root .dialog-actions{display:flex;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin-top:var(--mate-actions-margin,18px)}
#dfvn-mate-root .mate-primary-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:14px;font-weight:500;line-height:1.5;min-height:0;padding:9px 14px;border:0;border-radius:999px;background:var(--ink);color:var(--bg)}
#dfvn-mate-root .toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:var(--bg);border:1px solid var(--line);border-radius:999px;padding:10px 17px;font-size:14px;line-height:1.5;max-width:calc(100vw - 32px);text-align:center;z-index:2000;box-shadow:0 5px 25px color-mix(in srgb,var(--ink) 12%,transparent)}
@keyframes mate-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes mate-breathe{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}

/* Mate: one conversation, with a compact typography-led starting point. */
.mate-page{padding-top:6px;padding-bottom:18px}
#dfvn-mate-root{--mate-lane:1140px;max-width:1280px}
#dfvn-mate-root .mate-chat{height:calc(100svh - var(--header-height,112px) - var(--mate-toolbar-offset,0px) - 28px);min-height:520px;max-height:none;border:0;border-radius:0;background:transparent;box-shadow:none}
#dfvn-mate-root .mate-chat-header{padding:12px 24px 18px;border:0;background:transparent}
#dfvn-mate-root .mate-identity h1{font-size:18px;font-weight:600}
#dfvn-mate-root .mate-identity p{font-size:13px}
#dfvn-mate-root .mate-mascot{background:transparent;color:var(--ink);width:38px;height:38px}
#dfvn-mate-root .mate-mascot svg{width:38px;height:38px}
#dfvn-mate-root .mate-header-actions{gap:8px}
#dfvn-mate-root .mate-header-actions .mate-icon-button,#dfvn-mate-root .mate-header-actions .mate-quiet-button{background:transparent}
#dfvn-mate-root .mate-header-actions button:hover,#dfvn-mate-root .mate-header-actions a:hover{background:var(--surface)}
#dfvn-mate-root .mate-icon-button,#dfvn-mate-root .mate-quiet-button,#dfvn-mate-root .prompt-list button{border:0}
#dfvn-mate-root .conversation-scroll{padding:20px max(24px,calc((100% - var(--mate-lane))/2)) 32px}
#dfvn-mate-root .message+.message{margin-top:32px}
#dfvn-mate-root .message-model{font-size:17px;line-height:1.8}
#dfvn-mate-root .message-user{font-size:16px;padding:12px 18px;border-radius:22px}
#dfvn-mate-root .message-header{margin-bottom:12px}
#dfvn-mate-root .message-label{font-size:14px}
#dfvn-mate-root .composer-area{width:min(100%,calc(var(--mate-lane) + 48px));margin-inline:auto;padding:0 24px 10px;background:transparent}
#dfvn-mate-root .composer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding:7px;background:var(--surface);border:0;border-radius:24px;box-shadow:none}
#dfvn-mate-root .composer textarea{min-height:48px;padding:12px;font-size:16px;line-height:24px;border-radius:18px}
#dfvn-mate-root .composer-bottom{padding:4px;min-height:48px;align-items:center;gap:0}
#dfvn-mate-root .composer-bottom>span{display:none}
#dfvn-mate-root #send-message{width:40px;height:40px}
#dfvn-mate-root .composer:focus-within{border:0;outline:2px solid var(--muted);outline-offset:4px}
#dfvn-mate-root .composer-footnote{font-size:12px;margin-top:12px;gap:7px;color:var(--muted)}
#dfvn-mate-root .composer-footnote>p{color:inherit}
#dfvn-mate-root .privacy-trigger{font-size:12px;line-height:1.5;color:var(--muted);background:transparent;border:0;border-radius:0;min-height:0;padding:0;text-decoration:underline;text-underline-offset:3px}
#dfvn-mate-root .welcome{min-height:0;padding:24px 0 0;animation:mate-enter .35s ease both}
#dfvn-mate-root .welcome>*{flex-shrink:0}
#dfvn-mate-root .welcome-greeting{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:20px;color:var(--muted);font-size:15px}
#dfvn-mate-root .welcome-avatar{width:42px;height:42px;margin:0;border-radius:50%;background:var(--accent);color:var(--ink);transform:rotate(-7deg)}
#dfvn-mate-root .welcome-avatar svg{width:30px;height:30px;transform:rotate(7deg)}
#dfvn-mate-root .welcome h1{font-family:var(--dfvn-body-font,inherit);font-size:clamp(34px,3.5vw,48px);font-weight:500;line-height:1.15;letter-spacing:-.045em;max-width:720px}

#dfvn-mate-root .welcome>p{font-size:16px;line-height:1.65;margin:18px 0 28px;color:var(--muted)}
#dfvn-mate-root.is-start .conversation-scroll{flex:0 0 auto;overflow:visible;margin-top:0;padding:0 24px}
#dfvn-mate-root.is-start .composer-area{padding-bottom:0}
#dfvn-mate-root.is-start .composer{padding:12px;border-radius:24px}
#dfvn-mate-root.is-start .composer textarea{min-height:64px;padding:18px 12px;font-size:17px}
#dfvn-mate-root.is-start .composer-bottom{min-height:64px;align-items:center;padding:12px 4px}
#dfvn-mate-root .starter-prompts{width:min(100%,calc(var(--mate-lane) + 48px));padding:0 24px 32px;margin:20px auto 0;flex-shrink:0}
#dfvn-mate-root .starter-prompts .prompt-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#dfvn-mate-root .starter-prompts button{display:flex;align-items:center;justify-content:flex-start;text-align:left;gap:12px;min-height:88px;padding:15px 14px;border-radius:18px;background:var(--surface);transition:background .2s ease,transform .2s ease}
#dfvn-mate-root .starter-prompts button:hover{background:color-mix(in srgb,var(--accent) 30%,var(--surface));transform:translateY(-2px)}
#dfvn-mate-root .prompt-sample{width:var(--mate-prompt-icon-size);height:var(--mate-prompt-icon-size);color:var(--ink);flex-shrink:0}
#dfvn-mate-root .prompt-copy{display:flex;flex-direction:column;min-width:0}
#dfvn-mate-root .prompt-copy strong{font-size:14px;line-height:1.4;font-weight:500}
#dfvn-mate-root .prompt-copy small{font-size:12px;line-height:1.45;color:var(--muted)}
#dfvn-mate-root .font-card{border:0;background:var(--surface);border-radius:18px}
#dfvn-mate-root .message-fonts{grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:12px}
#dfvn-mate-root .message-fonts:has(>.font-card:only-child){max-width:380px}
#dfvn-mate-root .font-artwork{height:auto;aspect-ratio:2}
#dfvn-mate-root .font-card-actions{border:0;padding-top:4px}
#dfvn-mate-root .font-detail,#dfvn-mate-root .font-save{background:var(--bg)}
#dfvn-mate-root .font-save[aria-pressed=true]{background:var(--accent)}
#dfvn-mate-root .followups button{background:var(--surface);padding:8px 12px;font-size:14px}
#dfvn-mate-root .mate-dialog,#dfvn-mate-root .mate-dialog>header,#dfvn-mate-root .toast,#dfvn-mate-root .chat-error{border:0}
#dfvn-mate-root #privacy-dialog{max-width:560px}
#dfvn-mate-root .privacy-body{font-size:15px;line-height:1.75;color:var(--muted);padding-top:2px}
#dfvn-mate-root .privacy-body p{margin:12px 0}
#dfvn-mate-root #privacy-dialog #clear-local{font-size:14px;padding:9px 13px;border:0;background:var(--surface);color:var(--ink);text-decoration:none;border-radius:999px;margin-top:6px}
@media(max-width:700px){
 .mate-page{padding-top:0;padding-bottom:10px}
 #dfvn-mate-root .mate-chat{height:calc(100svh - var(--header-height,96px) - var(--mate-toolbar-offset,0px) - 16px);min-height:610px}
 #dfvn-mate-root .mate-chat-header{padding:8px 0 14px}
 #dfvn-mate-root .mate-identity{gap:8px}
 #dfvn-mate-root .mate-identity h1{font-size:16px}
 #dfvn-mate-root .mate-identity p{font-size:12px}
 #dfvn-mate-root .mate-mascot,#dfvn-mate-root .mate-mascot svg{width:32px;height:32px}
 #dfvn-mate-root .mate-settings,#dfvn-mate-root .saved-label{display:none}
 #dfvn-mate-root .mate-header-actions{gap:4px}
 #dfvn-mate-root .mate-header-actions .mate-quiet-button{padding:7px 8px;gap:3px}
 #dfvn-mate-root .mate-header-actions .mate-icon-button{width:32px;height:32px;padding:6px}
 #dfvn-mate-root .conversation-scroll{padding:16px 2px 24px}
 #dfvn-mate-root.is-start .conversation-scroll{padding:0 2px}
 #dfvn-mate-root .welcome{padding:12px 0 0}
 #dfvn-mate-root .welcome-greeting{margin-bottom:15px;font-size:14px;gap:8px}
 #dfvn-mate-root .welcome-avatar{width:36px;height:36px}
 #dfvn-mate-root .welcome-avatar svg{width:27px;height:27px}
 #dfvn-mate-root .welcome h1{font-size:34px}
 #dfvn-mate-root .welcome>p{font-size:14px;margin:14px 0 22px}
 #dfvn-mate-root .composer-area{padding:0 0 10px}
 #dfvn-mate-root .composer{padding:4px;gap:0;border-radius:22px}
 #dfvn-mate-root.is-start .composer{padding:6px;border-radius:22px}
 #dfvn-mate-root.is-start .composer textarea{padding:14px 10px;min-height:54px;font-size:16px}
 #dfvn-mate-root.is-start .composer-bottom{min-height:54px;padding:7px 4px}
 #dfvn-mate-root .composer-footnote{font-size:11px;gap:5px;margin-top:10px}
 #dfvn-mate-root .privacy-trigger{font-size:11px}
 #dfvn-mate-root .starter-prompts{padding:0 2px 20px;margin-top:18px}
 #dfvn-mate-root .starter-prompts .prompt-list{grid-template-columns:1fr;gap:7px}
 #dfvn-mate-root .starter-prompts button{min-height:52px;padding:10px 14px;border-radius:14px;gap:12px}
 #dfvn-mate-root .prompt-sample{width:var(--mate-prompt-icon-size);height:var(--mate-prompt-icon-size)}
 #dfvn-mate-root .prompt-copy{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;width:100%}
 #dfvn-mate-root .prompt-copy strong{font-size:13px}
 #dfvn-mate-root .prompt-copy small{font-size:11px;max-width:125px;text-align:right}
 #dfvn-mate-root .message-model{font-size:16px;line-height:1.75}
 #dfvn-mate-root .message-fonts{grid-template-columns:1fr}
 #dfvn-mate-root .message-user{max-width:88%;font-size:15px}
 #dfvn-mate-root .mate-dialog{padding:20px;width:calc(100vw - 24px);border-radius:23px;max-height:86svh}
}
@media(min-width:701px) and (max-height:780px){
 #dfvn-mate-root .welcome{padding-top:4px}
 #dfvn-mate-root .welcome-greeting{margin-bottom:12px}
 #dfvn-mate-root .welcome h1{font-size:38px}
 #dfvn-mate-root .welcome>p{margin:14px 0 20px}
 #dfvn-mate-root .starter-prompts{margin-top:18px;padding-bottom:20px}
 #dfvn-mate-root .starter-prompts button{min-height:76px;padding:12px}
}
@media(prefers-reduced-motion:reduce){#dfvn-mate-root *,#dfvn-mate-root *::before,#dfvn-mate-root *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Compact header shares the conversation axis; no decorative frame. */
#dfvn-mate-root .mate-chat-header{width:min(100%,calc(var(--mate-lane) + 48px));margin-inline:auto;padding:10px 24px 16px;gap:16px}
#dfvn-mate-root .mate-identity{gap:10px}
#dfvn-mate-root .mate-mascot{width:34px;height:34px}
#dfvn-mate-root .mate-mascot svg{width:34px;height:34px}
#dfvn-mate-root .mate-identity h1{font-size:17px;line-height:1.3;letter-spacing:-.025em}
#dfvn-mate-root .mate-identity p{font-size:12px;margin-top:3px}
#dfvn-mate-root .mate-header-actions{gap:6px}
#dfvn-mate-root .mate-header-actions #new-chat{background:var(--surface);padding:10px 13px;font-size:13px;gap:7px;min-height:38px}
#dfvn-mate-root .mate-header-actions #open-saved{font-size:13px;padding:10px 11px;gap:6px}
#dfvn-mate-root .privacy-body select{width:100%;max-width:100%;height:auto;min-height:44px;padding:11px 38px 11px 14px;border:0;border-radius:12px;background-color:var(--bg);color:var(--ink);font:inherit;margin-top:7px}
#dfvn-mate-root .mate-header-actions svg{width:17px;height:17px}
#dfvn-mate-root #stop-message{display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;min-height:40px;border:0;padding:9px;border-radius:50%;background:var(--ink);color:var(--bg)}
#dfvn-mate-root #send-message svg,#dfvn-mate-root #stop-message svg{width:22px;height:22px}
#dfvn-mate-root #send-message svg{stroke-width:2}
#dfvn-mate-root .composer:focus-within{outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--ink) 8%,transparent)}
#dfvn-mate-root .mate-service-link{display:inline-flex;align-items:center;min-height:40px;padding:9px 15px;border:0;border-radius:12px;background:var(--ink);color:var(--bg);font-size:14px;line-height:1.5;text-decoration:none;margin:4px 0 0}
#dfvn-mate-root .mate-service-link:hover{background:var(--accent);color:var(--ink)}
@media(max-width:700px){
 #dfvn-mate-root .mate-chat-header{padding:8px 0 14px;gap:8px}
 #dfvn-mate-root .mate-identity{gap:7px}
 #dfvn-mate-root .mate-identity h1{font-size:16px}
 #dfvn-mate-root .mate-identity p{font-size:11px}
 #dfvn-mate-root .mate-mascot,#dfvn-mate-root .mate-mascot svg{width:30px;height:30px}
 #dfvn-mate-root .mate-header-actions{gap:3px}
 #dfvn-mate-root .mate-header-actions #new-chat{font-size:12px;padding:8px 10px;min-height:36px}
 #dfvn-mate-root .mate-header-actions #open-saved{padding:8px;gap:3px}
}

#dfvn-mate-root .message-model>p{max-width:100%}

/* 1.8: quiet toolbar, shared axis and a handwritten accent. */

#dfvn-mate-root{--mate-lane:1200px;max-width:1360px}
#dfvn-mate-root .mate-chat-header{padding-block:8px 20px;min-height:74px}
#dfvn-mate-root .mate-mascot{width:42px;height:42px;background:var(--surface);border-radius:14px}
#dfvn-mate-root .mate-mascot svg{width:30px;height:30px}
#dfvn-mate-root .mate-identity{gap:12px}
#dfvn-mate-root .mate-identity h1{font-size:17px;font-weight:600;letter-spacing:-.03em}
#dfvn-mate-root .mate-identity p{font-size:11px;line-height:1.4;margin-top:2px}
#dfvn-mate-root .mate-header-actions{gap:8px}
#dfvn-mate-root .mate-header-actions .mate-quiet-button{min-height:38px;padding:9px 12px;border-radius:12px;font-size:13px}
#dfvn-mate-root .mate-header-actions #new-chat{background:var(--ink);color:var(--bg);border-radius:12px}
#dfvn-mate-root .mate-header-actions #new-chat:hover{background:color-mix(in srgb,var(--ink) 85%,var(--bg))}
#dfvn-mate-root .mate-header-actions #open-saved,#dfvn-mate-root .mate-header-actions #open-history,#dfvn-mate-root .mate-header-actions #open-purchases{background:var(--surface)}
#dfvn-mate-root [data-saved-count]{font-size:11px;min-width:18px;height:18px;line-height:18px;border-radius:50%;background:var(--bg);color:var(--ink)}
#dfvn-mate-root .conversation-scroll{scrollbar-width:none;-ms-overflow-style:none}
#dfvn-mate-root .conversation-scroll::-webkit-scrollbar{width:0;height:0;display:none}
#dfvn-mate-root.is-start .conversation-scroll{margin-top:0}
#dfvn-mate-root .welcome{padding-top:0}
#dfvn-mate-root .welcome-greeting{font-size:13px;gap:8px;margin-bottom:20px}
#dfvn-mate-root .welcome-avatar{background:transparent;width:28px;height:28px;transform:none}
#dfvn-mate-root .welcome-avatar svg{width:28px;height:28px;transform:none}
#dfvn-mate-root .welcome h1{font-size:clamp(36px,3.4vw,50px);line-height:1.2;letter-spacing:-.045em;max-width:900px}
#dfvn-mate-root .welcome h1 em{display:inline-block;font-family:'Momo Signature',cursive;font-size:1.12em;font-style:normal;font-weight:400;letter-spacing:0;margin-top:0}
#dfvn-mate-root .welcome>p{font-size:15px;line-height:1.65;margin:10px 0 28px}
#dfvn-mate-root.is-start .composer-area,#dfvn-mate-root .starter-prompts{width:min(100%,calc(var(--mate-lane) + 48px))}
#dfvn-mate-root.is-start .composer{padding:10px 12px;border-radius:22px}
#dfvn-mate-root.is-start .composer textarea{min-height:56px;font-size:16px;padding:14px 12px}
#dfvn-mate-root.is-start .composer-bottom{min-height:56px;padding:8px 2px}
#dfvn-mate-root .starter-prompts{margin-top:20px;margin-bottom:0}
#dfvn-mate-root .starter-prompts button{background:transparent;border-radius:16px;min-height:76px;padding:14px 12px;gap:14px}
#dfvn-mate-root .starter-prompts button:hover{background:var(--surface);transform:translateY(-2px)}
#dfvn-mate-root .prompt-sample{width:var(--mate-prompt-icon-size);height:var(--mate-prompt-icon-size)}
#dfvn-mate-root .prompt-copy strong{font-size:13px}
#dfvn-mate-root .prompt-copy small{font-size:11px}
#dfvn-mate-root #send-message,#dfvn-mate-root #stop-message{display:grid;place-items:center;flex:none;padding:0;line-height:0;width:40px;height:40px;min-width:40px;min-height:40px;margin:0;transform:none}
#dfvn-mate-root #send-message .dfvn-icon{display:grid;place-items:center;width:22px;height:22px;line-height:0;flex:none;margin:0;padding:0}
#dfvn-mate-root #send-message svg,#dfvn-mate-root #stop-message svg{display:block;width:22px;height:22px;margin:0;transform:none;flex:none}
#dfvn-mate-root .message-copy svg{width:16px;height:16px}
#dfvn-mate-root .message-copy{display:grid;place-items:center;width:34px;height:34px;padding:8px}
#dfvn-mate-root .mate-login-note{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;background:var(--surface);border-radius:20px;font-size:14px;margin-bottom:10px}
#dfvn-mate-root .mate-login-note a{white-space:nowrap;font-size:13px;padding:10px 15px;text-decoration:none;display:flex;align-items:center;gap:12px}
#dfvn-mate-root.login-required #chat-form,#dfvn-mate-root.login-required .starter-prompts{display:none}
#dfvn-mate-root .history-note{font-size:13px;color:var(--muted);margin:var(--mate-note-margin,16px 0 0)}
#dfvn-mate-root .history-row{display:flex;align-items:center;gap:12px;padding:16px;margin:10px 0;background:var(--surface);border-radius:18px;width:100%}
#dfvn-mate-root .history-load{text-decoration:none;display:flex;flex-direction:column;gap:5px;align-items:flex-start;text-align:left;padding:0;background:transparent;border:0;border-radius:0;flex:1;min-width:0;color:var(--ink)}
#dfvn-mate-root .history-load strong{font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
#dfvn-mate-root .history-load small{font-size:11px;color:var(--muted)}
#dfvn-mate-root .history-delete{color:var(--muted);background:transparent;border:0;border-radius:0;font-size:13px;line-height:1.4;min-height:0;min-width:0;box-shadow:none;padding:6px 2px;flex-shrink:0}
#dfvn-mate-root .history-delete:hover{color:var(--ink);text-decoration:underline}
@media(max-width:700px){
 #dfvn-mate-root .mate-chat-header{padding:4px 2px 12px;gap:8px;min-height:62px;flex-wrap:wrap}
 #dfvn-mate-root .mate-mascot{width:34px;height:34px;border-radius:11px}
 #dfvn-mate-root .mate-mascot svg{width:25px;height:25px}
 #dfvn-mate-root .mate-identity{gap:8px}
 #dfvn-mate-root .mate-identity h1{font-size:15px}
 #dfvn-mate-root .mate-identity p{font-size:10px}
 #dfvn-mate-root .mate-header-actions{gap:3px}
 #dfvn-mate-root .mate-header-actions .mate-quiet-button,#dfvn-mate-root .mate-header-actions #open-saved,#dfvn-mate-root .mate-header-actions #new-chat{padding:9px;min-height:34px;gap:5px;font-size:12px}
 #dfvn-mate-root .mate-header-actions #open-history span,#dfvn-mate-root .mate-header-actions #open-purchases span,#dfvn-mate-root .mate-header-actions #open-saved .saved-label,#dfvn-mate-root .mate-header-actions #new-chat span{display:none}
 #dfvn-mate-root.is-start .conversation-scroll{margin-top:0}
 #dfvn-mate-root .welcome h1{font-size:32px}
 #dfvn-mate-root .welcome h1 em{font-size:1.03em;}
 #dfvn-mate-root .welcome-greeting{font-size:12px;margin-bottom:16px}
 #dfvn-mate-root .welcome>p{font-size:13px;margin:10px 0 24px}
 #dfvn-mate-root .starter-prompts{margin-top:14px}
 #dfvn-mate-root .starter-prompts button{min-height:52px;padding:10px 12px}
 #dfvn-mate-root .mate-login-note{flex-direction:column;text-align:center;gap:12px;font-size:13px}
 #dfvn-mate-root .mate-login-note a{justify-content:center;width:100%}
}
@media(min-width:701px) and (max-height:780px){#dfvn-mate-root.is-start .conversation-scroll{margin-top:0}#dfvn-mate-root .welcome h1{font-size:38px}#dfvn-mate-root .welcome>p{margin:6px 0 18px}#dfvn-mate-root .welcome-greeting{margin-bottom:12px}}

@media(max-width:700px){
 #dfvn-mate-root .prompt-copy{flex-direction:column;align-items:flex-start;justify-content:center;gap:3px}
 #dfvn-mate-root .prompt-copy small{max-width:none;text-align:left}
 #dfvn-mate-root .starter-prompts button{min-height:62px}
}

/* 1.9: calm controls, contextual toolbar and account saves. */
#dfvn-mate-root .welcome h1 em{font-size:.96em;}
#dfvn-mate-root .welcome h1{max-width:900px}
#dfvn-mate-root .mate-chat-header[hidden]{display:none!important}
#dfvn-mate-root .starter-prompts button{background:var(--surface);transition:background .18s ease;transform:none}
#dfvn-mate-root .starter-prompts button:hover{background:color-mix(in srgb,var(--accent) 20%,var(--surface));transform:none}
#dfvn-mate-root button .dfvn-roll-text,#dfvn-mate-root button:hover .dfvn-roll-text,#dfvn-mate-root button:focus-visible .dfvn-roll-text{transform:none!important;animation:none!important;transition:none!important;filter:none!important}
#dfvn-mate-root button .dfvn-roll-text::after{display:none!important}
#dfvn-mate-root .composer,#dfvn-mate-root .composer:focus-within{border:0;outline:0;box-shadow:none}
#dfvn-mate-root .composer textarea,#dfvn-mate-root .composer textarea:focus,#dfvn-mate-root .composer textarea:focus-visible{border:0;outline:0;box-shadow:none;background:transparent}
#dfvn-mate-root .mate-start-tools{display:none;justify-content:center;gap:6px;margin:20px auto 0;padding:5px;width:fit-content;background:var(--surface);border-radius:999px;flex-shrink:0}
#dfvn-mate-root.is-start .mate-start-tools{display:flex}
#dfvn-mate-root .mate-start-tools button{color:var(--ink);font-size:12px;background:var(--bg);padding:9px 14px}
#dfvn-mate-root .mate-start-tools svg{width:15px;height:15px}
#dfvn-mate-root.is-start .starter-prompts{margin-bottom:0}
#dfvn-mate-root .welcome-avatar svg,#dfvn-mate-root .mate-mascot svg{animation:mate-wave 8s ease-in-out infinite;transform-origin:50% 60%}
#dfvn-mate-root .mate-eye{transform-box:fill-box;transform-origin:center;animation:mate-blink 6s ease-in-out infinite}
@keyframes mate-wave{0%,18.75%,34%,100%{transform:rotate(0)}23%{transform:rotate(-9deg)}29%{transform:rotate(6deg)}}
@keyframes mate-blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.1)}}
#dfvn-mate-root #saved-dialog{width:min(660px,calc(100vw - 32px));padding:26px;max-height:80svh;border-radius:24px}
#dfvn-mate-root #saved-dialog h2{font-family:var(--dfvn-body-font);font-size:26px;font-weight:500;letter-spacing:-.04em}
#dfvn-mate-root #saved-content{padding-top:12px}
#dfvn-mate-root .saved-empty{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;max-width:none;margin:0;padding:14px 16px;background:var(--surface);border:0;border-radius:16px;min-height:0}
#dfvn-mate-root .saved-empty>svg{width:24px;height:24px;padding:0;margin-bottom:12px;color:var(--muted)}
#dfvn-mate-root .saved-empty h3{font-family:var(--dfvn-body-font);font-size:16px;font-weight:500;line-height:1.4;letter-spacing:-.025em;margin:0}
#dfvn-mate-root .saved-empty p{font-size:13px;line-height:1.7;max-width:none;margin:0;color:var(--muted)}
#dfvn-mate-root .saved-list{display:grid;gap:10px}
#dfvn-mate-root .saved-item{display:grid;grid-template-columns:90px minmax(0,1fr) auto;align-items:center;gap:14px;padding:10px;background:var(--surface);border-radius:16px}
#dfvn-mate-root .saved-item img{display:block;width:90px;height:72px;object-fit:cover;border-radius:10px}
#dfvn-mate-root .saved-item .saved-item-art{display:grid;place-items:center;width:90px;height:72px;background:var(--bg);border-radius:10px;color:var(--muted);font:28px Georgia,serif;text-decoration:none}
#dfvn-mate-root .saved-item h3{font-family:var(--dfvn-body-font);font-size:16px;font-weight:500;line-height:1.5;margin:0 0 5px;overflow-wrap:anywhere}
#dfvn-mate-root .saved-item h3 a{color:var(--ink);text-decoration:none}
#dfvn-mate-root .saved-item p{font-size:12px;color:var(--muted);margin:0}
#dfvn-mate-root .saved-item .font-save{background:var(--bg)}
#dfvn-mate-root .privacy-body details{font-size:14px;margin:0 0 18px;padding:18px;background:var(--surface);border-radius:18px}
#dfvn-mate-root .privacy-body summary{cursor:pointer;color:var(--ink);font-size:14px;font-weight:500}
#dfvn-mate-root .privacy-body details p{font-size:13px;color:var(--muted)}
#dfvn-mate-root #voice-input{display:grid;place-items:center;width:36px;height:40px;padding:7px;border:0;border-radius:50%;background:transparent;color:var(--muted);flex:none;margin-right:5px}
#dfvn-mate-root #voice-input svg{width:21px;height:21px}
#dfvn-mate-root #voice-input[aria-pressed=true]{background:var(--accent);color:var(--ink);animation:mate-listen 1.2s ease-in-out infinite}
#dfvn-mate-root .voice-status{font-size:12px;text-align:center;color:var(--muted);padding:10px 0 0}
#dfvn-mate-root .voice-toolbar{display:flex;align-items:center;gap:var(--mate-voice-gap);width:100%;min-height:var(--mate-voice-height);grid-column:1/-1}
#dfvn-mate-root .voice-toolbar canvas{display:block;flex:1;min-width:0;width:100%;height:var(--mate-voice-height);color:var(--ink)}
@keyframes mate-listen{50%{opacity:.55}}
@media(max-width:700px){
 #dfvn-mate-root .welcome h1 em{font-size:.93em}
 #dfvn-mate-root .mate-start-tools{gap:8px;margin-bottom:0}
 #dfvn-mate-root #saved-dialog{padding:20px}
 #dfvn-mate-root .saved-item{grid-template-columns:70px minmax(0,1fr) auto;gap:10px;padding:9px}
 #dfvn-mate-root .saved-item img,#dfvn-mate-root .saved-item .saved-item-art{width:70px;height:62px}
 #dfvn-mate-root .saved-item h3{font-size:15px}
}
@media(prefers-reduced-motion:reduce){#dfvn-mate-root .mate-eye,#dfvn-mate-root .welcome-avatar svg,#dfvn-mate-root .mate-mascot svg,#dfvn-mate-root #voice-input{animation:none!important}}

#dfvn-mate-root .composer textarea{scrollbar-width:none}
#dfvn-mate-root .composer textarea::-webkit-scrollbar{display:none;width:0;height:0}

/* 1.10: the panel owns its scroll area, inset from the rounded outer edge. */
#dfvn-mate-root #saved-dialog,#dfvn-mate-root #history-dialog,#dfvn-mate-root #purchases-dialog{overflow:hidden;max-height:82svh;padding:24px}
#dfvn-mate-root #saved-dialog[open],#dfvn-mate-root #history-dialog[open],#dfvn-mate-root #purchases-dialog[open]{display:flex;flex-direction:column}
#dfvn-mate-root #saved-dialog>header,#dfvn-mate-root #history-dialog>header,#dfvn-mate-root #purchases-dialog>header{flex:0 0 auto;padding-bottom:12px}
#dfvn-mate-root #saved-content,#dfvn-mate-root #history-content,#dfvn-mate-root #purchases-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;scrollbar-gutter:stable;padding:2px 10px 4px 0}
#dfvn-mate-root #saved-content::-webkit-scrollbar,#dfvn-mate-root #history-content::-webkit-scrollbar,#dfvn-mate-root #purchases-content::-webkit-scrollbar{width:5px}
#dfvn-mate-root #saved-content::-webkit-scrollbar-thumb,#dfvn-mate-root #history-content::-webkit-scrollbar-thumb,#dfvn-mate-root #purchases-content::-webkit-scrollbar-thumb{background:var(--line);border-radius:5px}

/* 1.9.4: compact saved panel and centered guest introduction. */
#dfvn-mate-root #saved-dialog{height:min(620px,82svh)}
#dfvn-mate-root #saved-content,#dfvn-mate-root #purchases-content{flex:1 1 auto}
#dfvn-mate-root .saved-footer{--mate-actions-margin:0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;flex:0 0 auto;padding-top:16px;font-size:12px;color:var(--muted)}
#dfvn-mate-root .saved-footer:has(#saved-progress:empty){display:none}
#dfvn-mate-root .saved-footer button{margin-left:auto;font-size:13px;line-height:1.4;padding:8px 9px;min-height:36px;border:0}

#dfvn-mate-root.is-start .mate-chat{justify-content:center;min-height:0;max-height:none;height:auto;min-height:calc(100svh - var(--header-height,112px) - var(--mate-toolbar-offset) - 42px);overflow:visible;padding-block:30px;box-sizing:border-box}
#dfvn-mate-root.is-start .conversation-scroll{margin:0;flex:0 0 auto}
#dfvn-mate-root.is-start .welcome{min-height:0;padding-bottom:8px}
#dfvn-mate-root.is-start .composer-area{flex:0 0 auto;margin:0 auto}
#dfvn-mate-root.guest-intro-off #welcome{display:none}
#dfvn-mate-root .welcome .mate-custom-title em{font-family:var(--dfvn-body-font);font-weight:400}
#dfvn-mate-root .mate-login-note:not(:has(>span)){justify-content:center;background:transparent}
#dfvn-mate-root .mate-login-button{justify-content:center;line-height:1.45;transition:background .18s ease}
#dfvn-mate-root .mate-login-button:hover{background:color-mix(in srgb,var(--ink) 86%,var(--muted))}
#dfvn-mate-root #voice-input{width:40px;height:40px;color:var(--ink);border-radius:50%}
#dfvn-mate-root #voice-input:hover{background:color-mix(in srgb,var(--ink) 8%,transparent)}
#dfvn-mate-root #voice-input svg{width:20px;height:20px}
#dfvn-mate-root .voice-toolbar button{display:grid;place-items:center;flex:none;width:var(--mate-control-size);height:var(--mate-control-size);min-width:0;min-height:0;padding:var(--space-2,8px);border:0;border-radius:50%;background:var(--bg);color:var(--ink)}
#dfvn-mate-root .composer:has(.voice-toolbar:not([hidden]))>:is(textarea,.composer-bottom){display:none}

#dfvn-mate-root .mate-tool-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
#dfvn-mate-root .mate-tool-links .mate-service-link{font-size:14px;font-weight:400;border-radius:999px;margin:0}

.mate-source-link{display:block;width:fit-content;max-width:100%;margin:16px 0 24px;font-size:.85em;color:var(--muted);text-underline-offset:4px;overflow-wrap:anywhere}.mate-source-link:hover{color:var(--ink)}

/* Image region selection stays in the browser until Send. */
#dfvn-mate-root .mate-image-preview{width:max-content;max-width:100%;display:flex;align-items:center;gap:12px;padding-right:12px}
#dfvn-mate-root #remove-image{left:60px;right:auto}
#dfvn-mate-root .mate-crop-button{font-size:13px}
#dfvn-mate-root .mate-crop-dialog{width:min(680px,calc(100vw - 28px));max-height:90svh;overflow:auto;padding:22px;border:1px solid var(--line,#ccc);border-radius:22px;background:var(--bg,#fff);color:var(--ink,#191c18);font:inherit}
#dfvn-mate-root .mate-crop-dialog::backdrop{background:rgba(0,0,0,.65)}
#dfvn-mate-root .mate-crop-dialog h2{font-size:22px;margin:0 0 8px}
#dfvn-mate-root .mate-crop-dialog p{font-size:14px;line-height:1.5;margin:8px 0 14px}
#dfvn-mate-root .mate-crop-stage{position:relative;width:fit-content;max-width:100%;margin:0 auto;touch-action:none;cursor:crosshair;overflow:hidden;line-height:0}
#dfvn-mate-root .mate-crop-stage img{display:block;max-width:100%;max-height:50svh;width:auto;height:auto;user-select:none}
#dfvn-mate-root .mate-crop-selection{position:absolute;border:2px solid #d3f37b;box-shadow:0 0 0 9999px rgba(0,0,0,.5);pointer-events:none;min-width:0;min-height:0}
#dfvn-mate-root .mate-crop-selection:focus-visible{outline:2px solid #fff;outline-offset:-4px}
#dfvn-mate-root .mate-crop-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
#dfvn-mate-root .mate-crop-actions button{font-size:14px;padding:9px 14px;border:1px solid var(--line,#ccc);border-radius:999px;background:var(--surface,#eee);color:inherit}
#dfvn-mate-root .mate-crop-actions [data-crop="use"]{background:var(--accent,#d3f37b);color:var(--accent-ink,#191c18)}

/* Lime controls use a fixed dark foreground; surface controls retain theme ink. */
#dfvn-mate-root .privacy-note summary,#dfvn-mate-root #send-message:hover,#dfvn-mate-root .font-detail:hover,#dfvn-mate-root #voice-input[aria-pressed=true],#dfvn-mate-root .mate-service-link:hover{color:#191c18}
#dfvn-mate-root .welcome-avatar{color:var(--accent)}

#dfvn-mate-root .welcome-avatar{background:transparent}

#dfvn-mate-root .welcome-avatar{--mate-face:#191c18}
[data-theme="dark"] #dfvn-mate-root{--mate-face:#191c18}

/* Starter cards retain the palette foreground on their muted hover surface. */
#dfvn-mate-root .starter-prompts button:is(:hover,:focus-visible){color:var(--ink)}
/* Only an accent-filled bookmark needs a dark icon. Saved-list controls use palette ink. */
#dfvn-mate-root .font-save{color:var(--ink)}
#dfvn-mate-root .font-save:is(:hover,:focus-visible),#dfvn-mate-root .font-save[aria-pressed=true]{background:var(--accent);color:#191c18}
#dfvn-mate-root .saved-item .font-save,#dfvn-mate-root .saved-item .font-save:is(:hover,:focus-visible){background:var(--bg);color:var(--ink)}
/* Reuse the theme's product-save-button tooltip; adapt its placement to clipped panels. */
#dfvn-mate-root .font-save[data-tooltip]::after{z-index:5;line-height:1.4;white-space:nowrap;text-align:center}
#dfvn-mate-root .font-card .font-save[data-tooltip]::after{top:auto;bottom:calc(100% + 10px)}
#dfvn-mate-root .saved-item .font-save[data-tooltip]::after{top:50%;right:calc(100% + 10px);transform:translateY(-50%)}
