/* Remove residual puff particles on every mascot instance. */
.chat-mascot__puff{display:none!important}
body>header .ibi-pricing-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:1px solid var(--ibi-line,#dce1d7);border-radius:12px;background:var(--ibi-surface,#fff);color:inherit;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}
body>header .ibi-pricing-link:hover{border-color:#c39a29;background:var(--ibi-brandSoft,#fff5cc)}
body>header .ibi-pricing-link:focus-visible{outline:2px solid #d6a619;outline-offset:3px}
#plans{scroll-margin-top:24px}
@media(max-width:600px){body>header{flex-wrap:wrap;gap:12px;padding:16px!important}body>header>a:first-child{flex:1}body>header>nav{order:3;display:flex;width:100%;justify-content:space-between;gap:8px!important;margin:0!important}body>header .landing-preview-mount{gap:8px!important}body>header .ibi-pricing-link{padding:0 10px}body>header nav>.button{padding-inline:12px!important}body>header .landing-preview-register{padding-inline:10px!important}body>header>.ibi-public-theme{margin-left:0}}

/* Footer link feedback, without shifting text or changing layout. */
.marketing-footer a{transition:color 140ms ease,text-decoration-color 140ms ease;text-underline-offset:3px}
.marketing-footer a:hover,.marketing-footer a:focus-visible{color:#886000;text-decoration-color:currentColor}
html[data-theme="dark"] .marketing-footer a:hover,html[data-theme="dark"] .marketing-footer a:focus-visible{color:#ffd24d}
.marketing-footer a:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:2px}
@media(prefers-reduced-motion:reduce){.marketing-footer a{transition:none}}

/* Shared graphite palette for public pages, authentication and the app. */
html[data-theme="dark"]{--ibi-canvas:#1e1e1e!important;--ibi-surface:#292929!important;--ibi-ink:#eeeeee!important;--ibi-muted:#b9b9b9!important;--ibi-line:#424242!important;--ibi-brandSoft:#3d3930!important}
html[data-theme="dark"] body,html[data-theme="dark"] :is(.auth-page,.onboarding,.guest-learning,.tax-page){background:#1e1e1e;color:#eeeeee}
html[data-theme="dark"] :is(.auth-card,.guest-compose,.guest-tile,.guest-message,.ibi-public-theme__menu,.landing-preview-panel,.ibi-file-chip){background:#292929;border-color:#424242;color:#eeeeee}

/* Keep a readable dark label on the yellow consent action in either theme. */
.ibi-analytics-actions button[data-choice="yes"]{color:#262a27!important;-webkit-text-fill-color:#262a27!important}

/* Larger consent action; smaller close glyph with a comfortable hit area. */
.ibi-analytics-actions button[data-choice="yes"]{min-width:120px;min-height:52px;padding:14px 22px;font-size:16px;font-weight:600;line-height:1.25}
.ibi-analytics-actions .ibi-analytics-close{font-size:18px!important;line-height:1!important;min-width:44px;min-height:44px}

/* Top-edge resizing replaces the browser's bottom-corner grip. */
.ibi-resizable-composer{position:relative}
textarea[data-top-resize]{resize:none!important;overflow-y:auto}
.ibi-composer-grip{position:absolute;top:-8px;left:20px;right:20px;height:16px;z-index:3;cursor:ns-resize;touch-action:none;user-select:none;border-radius:8px;outline:none}
.ibi-composer-grip:after{content:"";position:absolute;left:50%;top:6px;transform:translateX(-50%);height:3px;width:44px;border-radius:4px;background:var(--ibi-muted,#777);opacity:0;transition:opacity 120ms ease}
.ibi-composer-grip:hover:after,.ibi-composer-grip:focus-visible:after,.ibi-composer-grip.is-dragging:after{opacity:.85}
.ibi-composer-grip:focus-visible{outline:2px solid var(--ibi-brand,#ffd24d);outline-offset:2px}
@media(pointer:coarse){.ibi-composer-grip{top:-22px;height:44px}.ibi-composer-grip:after{top:20px;opacity:.45}}
@media(prefers-reduced-motion:reduce){.ibi-composer-grip:after{transition:none}}
/* Remove only voice-transcription information, not the microphone or quota help. */
.voice-input-info{display:none!important}

.workspace-composer-footer > .ibi-quota{position:relative;display:flex;align-items:center;gap:2px;margin:0 auto 0 0;padding:0;min-height:44px;flex-wrap:nowrap;flex-shrink:0}
.workspace-composer-footer .ibi-quota .workspace-quota-details{position:static;margin:0}
.workspace-composer-footer .ibi-quota summary{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 6px;list-style:none;cursor:pointer;border-radius:10px;color:var(--ibi-muted,#666)}
.workspace-composer-footer .ibi-quota summary::-webkit-details-marker{display:none}
.workspace-composer-footer .ibi-quota summary::before,.workspace-composer-footer .ibi-quota summary::after{display:none!important}
.workspace-composer-footer .ibi-quota details{border:0;padding:0}
.workspace-composer-footer .ibi-quota-copy{font:600 12px/1.2 'Golos Text',sans-serif;white-space:nowrap}
.workspace-composer-footer .ibi-quota--low summary,.workspace-composer-footer .ibi-quota--empty summary{color:#b42318;background:#fff0ed}
html[data-theme="dark"] .workspace-composer-footer .ibi-quota--low summary,html[data-theme="dark"] .workspace-composer-footer .ibi-quota--empty summary{color:#ffaaa3;background:#452a29}
.workspace-composer-footer .ibi-paw-button{width:44px;height:44px;min-width:44px;min-height:44px;margin:0}
.workspace-composer-footer .ibi-paw-button svg{width:32px;height:32px}
.workspace-composer-footer .ibi-quota .workspace-quota-tooltip,.ibi-quota-warning{position:absolute;bottom:calc(100% + 10px);left:0;right:auto;width:min(280px,calc(100vw - 64px));box-sizing:border-box;z-index:20;background:var(--ibi-surface,#fff);color:var(--ibi-ink,#262a27);border:1px solid var(--ibi-line,#ddd);border-radius:14px;padding:12px;box-shadow:0 8px 24px #0002;font:400 13px/1.5 'Golos Text',sans-serif;white-space:normal}
.ibi-quota-warning{display:flex;align-items:flex-start;gap:4px}
.ibi-quota-warning button{flex:0 0 44px;min-height:44px;border:0;background:transparent;color:inherit;font-size:20px;cursor:pointer}
.ibi-quota summary:focus-visible,.ibi-quota-warning button:focus-visible{outline:2px solid #ffd24d;outline-offset:2px}

/* Quiet quota ring: explicit colours avoid inherited light button styles. */
.workspace-composer-footer .ibi-quota summary{width:44px;height:44px;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#525252!important;box-shadow:none!important}
.workspace-composer-footer .ibi-quota summary:hover,.workspace-composer-footer .ibi-quota details[open] summary{background:#0000000a!important}
html[data-theme="dark"] .workspace-composer-footer .ibi-quota summary{color:#dedede!important;background:transparent!important}
html[data-theme="dark"] .workspace-composer-footer .ibi-quota summary:hover,html[data-theme="dark"] .workspace-composer-footer .ibi-quota details[open] summary{background:#ffffff0d!important}
.workspace-composer-footer .ibi-quota-ring{display:block;width:22px!important;height:22px!important;flex:none;overflow:visible}
.ibi-quota-ring-track{stroke:currentColor;opacity:.22}
.ibi-quota-ring-value{stroke:currentColor;stroke-linecap:round}
.workspace-composer-footer .ibi-quota--low summary,.workspace-composer-footer .ibi-quota--empty summary{color:#b42318!important}
html[data-theme="dark"] .workspace-composer-footer .ibi-quota--low summary,html[data-theme="dark"] .workspace-composer-footer .ibi-quota--empty summary{color:#ff938a!important}
.workspace-composer-footer .ibi-quota .workspace-quota-tooltip{background:#fff;color:#303030;border-color:#d6d6d6;pointer-events:auto}
html[data-theme="dark"] .workspace-composer-footer .ibi-quota .workspace-quota-tooltip{background:#292929;color:#eee;border-color:#454545}
.workspace-composer-footer .ibi-quota .ibi-quota-count{display:block;margin-bottom:6px;font-size:14px;line-height:1.4;font-weight:650;color:inherit}
