/* Conversation-first Work, shared by phone and installed web app. */
#yap-usage-counter,#yap-web-work-counter,#usage,.statusline #usage,#assistant-space,#yap-tools-menu,#yap-work-open{display:none!important}
.yap-mode-controls{display:flex;gap:6px;align-items:center;margin-left:auto;min-width:0}.yap-mode-controls select{font:600 14px system-ui;min-height:42px;max-width:145px;width:auto;padding:8px;border:1px solid #dbe5dd;border-radius:12px;background:#fff;color:#214732}.yap-mode-controls select[hidden]{display:none}.yap-mode-controls #yap-project-picker{max-width:150px;font-weight:400}
.yap-work-message{box-sizing:border-box;flex:none!important;max-width:800px;width:100%;padding:18px;margin:12px auto;border:1px solid #dbe5dd;border-radius:18px;background:#f8f9f3;color:#214732;white-space:normal;font:15px/1.55 system-ui}.yap-work-message h3{margin:0 0 10px}.yap-work-message label{display:block;margin:10px 0 4px;font-size:13px}.yap-work-message input,.yap-work-message textarea,.yap-work-message select{box-sizing:border-box;width:100%;min-height:44px;font:16px/1.5 system-ui;border:1px solid #cbd9c4;border-radius:10px;padding:10px;color:#214732;background:#fff;max-height:380px}.yap-work-message textarea{min-height:100px;resize:vertical}.yap-work-message details textarea{font:13px/1.6 ui-monospace,Consolas,monospace;min-height:240px}.yap-work-message summary{cursor:pointer;padding:12px;border-bottom:1px solid #dbe5dd;overflow-wrap:anywhere}.yap-work-message button{min-height:44px;margin:10px 8px 0 0;padding:10px 14px;font:inherit;color:#214732;background:#eaf3e5;border:1px solid #cbd9c4;border-radius:10px}.yap-work-message pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.5 ui-monospace,monospace;max-height:320px;overflow:auto}.yap-work-message a{color:#24553c;display:block;margin-top:12px}.yap-start-options{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:8px}.yap-start-options[hidden]{display:none}.yap-start-options button{font:14px system-ui;min-height:40px;border:1px solid #dbe5dd;border-radius:999px;background:transparent;color:inherit;padding:8px 14px}
body.yap-app-chat #yap-usage-menu{margin:0}body.yap-app-chat #yap-usage-menu summary{min-height:44px;padding:12px;cursor:pointer}body.yap-app-chat #yap-usage-menu p{font-size:13px;padding:0 12px}
@media(max-width:650px){.yap-mode-controls select{max-width:86px;font-size:13px;padding:7px}.yap-mode-controls #yap-project-picker{max-width:120px}.yap-work-message{padding:14px}.topline>strong{font-size:17px}}

@media(max-width:450px){.app-header:has(#yap-project-picker:not([hidden])) .brand{font-size:0;gap:0}.app-header:has(#yap-project-picker:not([hidden])) .brand img{width:30px;height:30px}}

/* Keep task detail secondary to the conversation. */
.yap-work-message{background:transparent;border:0;border-left:3px solid #cbd9c4;border-radius:0;padding:12px 18px}.yap-work-message h3{font-size:16px}.yap-work-message details{margin:8px 0}.yap-work-message details>summary{font-size:13px;color:#526957;border:0;padding:10px 0}.yap-work-message p{margin:8px 0}.yap-mode-controls select{border-color:transparent;background:transparent}.yap-work-message button:focus-visible,.yap-work-message summary:focus-visible{outline:2px solid #24553c;outline-offset:3px}

.yap-activity{display:flex;align-items:center;gap:8px;max-width:800px;margin:8px auto;padding:6px 4px;color:#526957;font:13px/1.5 system-ui;flex-wrap:wrap}.yap-source-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:25px;height:25px;border-radius:8px;background:#eaf3e5;color:#24553c;font-weight:750;font-size:12px}.yap-source-yapthing{background:#d6f58a;font-size:18px}.yap-source-github{background:#24292f;color:white;font-size:20px}.yap-source-google{color:#4285f4;background:white;border:1px solid #dadce0;font-size:18px}.yap-source-dc{background:#def4ef;color:#126457}.yap-activity-provider{font-weight:600}.yap-activity[aria-busy="true"] .yap-source-icon{animation:yapActivityPulse 1.7s ease-in-out infinite}.yap-activity-done{opacity:.85}.yap-activity-error{color:#7b503b}@keyframes yapActivityPulse{50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.yap-activity[aria-busy="true"] .yap-source-icon{animation:none}}

.yap-sources a .yap-source-icon,.yap-cited-sources button .yap-source-icon{margin-right:6px;vertical-align:middle;width:22px;height:22px}

/* Quiet navigation: projects and chats first, settings secondary. */
#yap-tool-menu .yap-project-navigation,#yap-tool-menu .yap-recent-navigation{margin:12px 0;padding:8px 0;border-top:1px solid #dbe5dd}#yap-tool-menu h3{font:600 12px/1.4 system-ui;color:#637567;margin:4px 10px 8px}#yap-tool-menu .yap-project-row,#yap-tool-menu #history button{display:block;width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:44px;padding:10px;border:0;background:transparent;color:inherit;border-radius:10px;font:14px system-ui}#yap-tool-menu .yap-project-row:hover,#yap-tool-menu #history button:hover,#yap-tool-menu .yap-project-row[aria-current="true"]{background:#eaf3e5;color:#214732}#yap-tool-menu .yap-menu-empty{font-size:13px;color:#637567;margin:10px}#yap-tool-menu #history{max-height:270px;overflow:auto}#yap-menu-settings>summary{min-height:44px;padding:10px;cursor:pointer;font-size:14px}#yap-menu-settings .top-actions{padding:10px;gap:6px}#yap-menu-settings{border-top:1px solid #dbe5dd;margin-top:12px}#yap-project-picker,.yap-start-options{display:none!important}

#yap-tool-menu .yap-project-navigation>button,#yap-tool-menu #new,#yap-tool-menu #assistant-new{background:transparent;color:inherit;border:0;text-align:left;border-radius:10px}#yap-tool-menu #new:hover,#yap-tool-menu #assistant-new:hover,#yap-tool-menu .yap-project-navigation>button:hover{background:#eaf3e5;color:#214732}

.yap-project-folder{margin:4px 0}.yap-project-folder>summary{padding:10px;border-radius:10px;cursor:pointer;font-size:14px;overflow-wrap:anywhere}.yap-project-folder[open]>summary{background:#eaf3e5;color:#214732}#yap-tool-menu .yap-project-folder>button{display:block;min-height:40px;padding:8px 12px 8px 26px;background:transparent;border:0;text-align:left;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:inherit}#yap-tool-menu .yap-project-chat[aria-current="page"]{background:#eaf3e5;color:#214732;border-radius:10px}.yap-project-caption{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:13px system-ui;color:#526957}.yap-project-caption[hidden]{display:none}@media(max-width:600px){.yap-project-caption{max-width:95px}}

.yap-project-editor{display:grid;gap:8px;padding:12px 0;border-top:1px solid var(--border)}.yap-project-editor input,.yap-project-editor textarea,.yap-project-editor select{box-sizing:border-box;min-width:0;max-width:100%;width:100%;padding:9px;background:var(--panel);color:var(--fg);border:1px solid var(--border);border-radius:8px}.yap-project-editor details{min-width:0}.yap-project-error{color:#b42318}.yap-project-editor h3{margin:4px 0}
