/* 2026-10-22 usability pass */
.header-actions>.btn:not(.laptop-studio-toggle){display:none!important}.app-title{justify-content:flex-start}.app-title input{flex:0 1 470px}.app-title #saveState{flex:0 0 auto;margin-left:0;color:#4f6077;font-size:13px}.notebook-item>span:nth-child(2){min-width:0}.notebook-item strong{display:-webkit-box;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.45}.notebook-item small{font-size:13px;line-height:1.4}.source-count-button{border:0;background:none;padding:2px 0;color:#53637a;font-size:13px}.source-count-button:hover{color:#234fc0;text-decoration:underline}.source-item{min-height:0!important;padding-bottom:48px!important}.source-meta small{font-size:13px!important;color:#526178!important}.studio-panel{min-height:0}.studio-grid{flex:0 1 auto;max-height:50%;transition:max-height .2s ease,padding .2s ease}.studio-panel.tools-collapsed .studio-grid{max-height:0!important;padding-block:0!important;overflow:hidden}.studio-divider{display:grid;grid-template-columns:auto 1fr auto;gap:8px}.studio-collapse{border:0;background:#eef3ff;color:#2b56bd;border-radius:8px;min-height:34px;padding:0 9px;font-size:12px;font-weight:700}.output-list{min-height:40%;flex:1 1 40%}.output-actions{display:flex;flex-wrap:wrap;gap:7px}.output-actions button,.output-actions .btn{min-height:38px!important;font-size:13px!important}.selected-source-bar{display:flex;align-items:center;gap:9px;margin-bottom:8px;border:0;cursor:pointer;font-size:13px!important}.selected-source-bar small{color:#4f6077;font-size:13px}.composer-wrap>small,.chat-welcome>p,.empty-state p,.dialog-card>p,.settings-section p,.settings-toggle small,.pane-head span{font-size:13px!important;color:#4f5e72!important}.citation-btn{display:inline-flex;align-items:center;gap:6px;min-height:38px!important;font-size:13px!important}.citation-btn.weak{border-color:#e0b967;background:#fff7df;color:#75520b}.citation-weak{border-radius:999px;background:#f2d58d;padding:2px 6px;font-size:11px;font-weight:800}.source-highlight{background:#fff0a8;border-radius:3px;padding:1px 2px}.chat-cancel{background:#a43d3d!important}.mobile-nav button{position:relative}.mobile-unread{position:absolute;top:7px;left:calc(50% + 11px);width:8px;height:8px;border-radius:50%;background:#d43b52;box-shadow:0 0 0 2px #fff}.mobile-nav button.active{color:#183f9f!important;font-weight:800}.notebooks-panel{box-shadow:none!important}.usage-dialog,.source-selection-dialog{width:min(560px,calc(100vw - 28px));padding:0;border:0;background:transparent;overflow:visible}.usage-card,.source-selection-card{max-height:calc(100dvh - 30px);overflow:auto;padding:28px;border:1px solid #dfe5ee;border-radius:20px;background:#fff;box-shadow:0 28px 90px rgba(16,31,53,.24)}.usage-card>header,.source-selection-card>header{display:flex;justify-content:space-between;gap:18px}.usage-card h2,.source-selection-card h2{margin:4px 0}.usage-card header p,.source-selection-card header p{font-size:13px;color:#4f5e72}.usage-breakdown{display:grid;gap:10px;margin:22px 0}.usage-row{padding:13px;border:1px solid #dfe5ee;border-radius:13px}.usage-row header{display:flex;justify-content:space-between;font-size:13px}.usage-meter{height:7px;margin-top:9px;border-radius:99px;background:#e8edf4;overflow:hidden}.usage-meter i{display:block;height:100%;background:#3563e9}.usage-blocked{padding:12px;border-radius:11px;background:#fff2d2;color:#6e4c05;font-size:13px}.source-selection-list{display:grid;gap:8px;margin:18px 0;max-height:52vh;overflow:auto}.source-choice{display:flex;align-items:center;gap:12px;min-height:48px;padding:9px 11px;border:1px solid #dfe5ee;border-radius:12px}.source-choice input{width:20px;height:20px}.source-choice span{min-width:0;font-size:13px}.settings-secondary{min-height:42px;margin-top:14px;border:1px solid #dce3ed;border-radius:11px;background:#fff;color:#33435b;padding:0 14px;font-size:13px;font-weight:700}.citation-source-sheet{position:fixed;z-index:90;inset:0 0 0 auto;width:min(520px,100vw);border:0;border-left:1px solid #dce3ed;background:#fff;padding:0;box-shadow:-18px 0 60px rgba(20,33,55,.18)}.citation-source-sheet article{height:100%;display:flex;flex-direction:column;padding:24px}.citation-source-sheet header{display:flex;justify-content:space-between;gap:12px}.citation-source-content{overflow:auto;white-space:pre-wrap;font-size:14px;line-height:1.8;color:#263650}.stream-stage{color:#53637a;font-size:13px;margin-bottom:8px}.empty-action{margin-top:14px}.settings-actions button{font-size:13px!important}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid rgba(53,99,233,.38)!important;outline-offset:2px!important}
@media(max-width:760px){.app-title input{cursor:pointer}.app-title #saveState{display:none}.title-edit-button{display:none}.source-selection-dialog{width:100%;max-width:none;margin:auto 0 0;height:auto}.source-selection-card{border-radius:20px 20px 0 0;padding:22px 16px;max-height:82dvh}.studio-grid{max-height:45vh}.studio-divider{grid-template-columns:1fr auto}.studio-divider>span{display:none}.composer-wrap{padding-top:20px!important}.selected-source-bar{width:max-content;max-width:100%;margin-bottom:8px}.selected-source-bar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.usage-card{padding:22px 17px}.citation-source-sheet{width:100vw}.citation-source-sheet article{padding:18px}.source-item{padding-bottom:52px!important}}
@media(prefers-reduced-motion:reduce){.studio-grid{transition:none}}
.audio-transcript{margin-top:14px;border:1px solid #dfe5ee;border-radius:12px;background:#f8fafc;overflow:hidden}.audio-transcript summary{min-height:44px;display:flex;align-items:center;padding:0 14px;color:#29405f;font-size:13px;font-weight:800;cursor:pointer}.audio-transcript>div{padding:0 14px 12px}.audio-transcript p{display:grid;grid-template-columns:52px 1fr;gap:10px;margin:10px 0;font-size:13px;line-height:1.65}.audio-transcript p strong{color:#3563e9}.audio-transcript p span{color:#27384f}.output-note{margin:12px 0 0;padding:11px 12px;border-radius:10px;background:#f3f6fb;color:#45566d;font-size:13px;line-height:1.65}.home-empty-examples small,.custni-help small{font-size:13px!important;color:#4f5e72!important}
#sourceTabSearch select{width:100%;min-height:44px;margin-top:7px;border:1px solid #cad4e1;border-radius:11px;background:#fff;padding:0 12px;color:#253750;font:inherit}.search-cost-note,.search-progress{font-size:13px;color:#4f5e72;line-height:1.55}.search-progress{min-height:22px;margin-top:12px}.source-tab .btn+.btn{margin-top:8px}
.empty-examples,.home-empty-examples{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:12px 0}.empty-examples span,.home-empty-examples span{padding:6px 9px;border-radius:999px;background:#eef3fb;color:#455873;font-size:13px;line-height:1.4}.turnstile-wrap{margin:4px 0 12px}.turnstile-wrap p{margin:5px 0 0;font-size:13px;color:#4f5e72}
/* Minimum auxiliary text size and contrast */
.app-page small,.home-view small,.custni-help small{font-size:13px!important;color:#4f5e72}.studio-collapse,.studio-group h3,.panel-heading small,.pane-head span,.job-status,.home-count,.home-kicker,.home-section-heading .text-button,.home-sort,.custni-help__eyebrow,.custni-help__header p,.custni-help__close,.custni-help__clear,.custni-help__count,.custni-help__categories button,.citation-weak{font-size:13px!important}.usage-row>small{display:block;margin-top:8px;color:#4f5e72;font-size:13px}.custni-help__header p{color:#d4dbe7!important}.custni-help__count{color:#4f5e72!important}
.chat-table{max-width:100%;margin:14px 0;overflow:auto;border:1px solid #dbe2ec;border-radius:12px;background:#fff}.chat-table table{width:100%;min-width:440px;border-collapse:collapse;font-size:13px;line-height:1.55}.chat-table th,.chat-table td{padding:10px 12px;border-right:1px solid #e4e9f0;border-bottom:1px solid #e4e9f0;text-align:left;vertical-align:top}.chat-table th:last-child,.chat-table td:last-child{border-right:0}.chat-table tr:last-child td{border-bottom:0}.chat-table th{background:#eef3fb;color:#243a58;font-weight:800}
/* Final Studio result legibility and collapsed focus behavior */
.output-card .table-scroll{max-width:100%;overflow-x:auto}.output-card .table-scroll table{min-width:560px!important;font-size:13px!important;line-height:1.55}.output-card .table-scroll th,.output-card .table-scroll td{padding:10px 12px!important;font-size:13px!important;vertical-align:top}.studio-panel.tools-collapsed .studio-grid{display:none!important}
@media(max-width:760px){.output-card .table-scroll table{min-width:520px!important}}
/* Compact source cards: controls use a narrow right rail instead of reserved bottom space. */
.source-item{display:grid!important;grid-template-columns:20px 34px minmax(0,1fr) 32px!important;grid-template-rows:auto auto;column-gap:8px;row-gap:4px;align-items:start!important;min-height:0!important;padding:10px 8px!important}.source-item .source-check-hit{grid-column:1;grid-row:1 / span 2}.source-item .source-type{grid-column:2;grid-row:1}.source-item .source-meta{grid-column:3;grid-row:1 / span 2;align-self:start}.source-item .source-delete,.source-item .source-delete:nth-last-child(2),.source-item .source-delete:last-child{position:static!important;right:auto!important;bottom:auto!important;width:32px!important;height:32px!important;min-width:32px;opacity:1!important}.source-item .source-delete:nth-last-child(2){grid-column:4;grid-row:1}.source-item .source-delete:last-child{grid-column:4;grid-row:2}
@media(max-width:760px){.source-item{grid-template-columns:44px 34px minmax(0,1fr) 44px!important;padding:10px 8px!important}.source-item .source-delete,.source-item .source-delete:nth-last-child(2),.source-item .source-delete:last-child{width:44px!important;height:44px!important;min-width:44px}}
