/* Workspace design system. Shared surfaces, rhythm, and controls. */
:root{--bg:#f3f5f4;--surface:#fff;--ink:#202c29;--muted:#6b7973;--line:#e1e7e3;--green:#17664e;--tint:#edf5f0;--nav:#162e27;--user-bubble:#f0f5f2}
html[data-theme=dark]{--bg:#111a16;--surface:#18231e;--ink:#e6eee8;--muted:#a2b0a7;--line:#304037;--green:#a1d5b8;--tint:#243a2e;--nav:#101d17;--user-bubble:#24352b}
body{letter-spacing:-.02em}
button,a,input,select,textarea{transition:background .15s,border-color .15s,box-shadow .15s}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #6aa88b;outline-offset:3px}
.assistant-shell{display:flex;flex-direction:column;min-height:100dvh}
.assistant-shell .sidebar{height:72px;min-height:72px;padding:0 28px;gap:40px;background:var(--nav);border:0;border-bottom:1px solid #ffffff0d}
.assistant-shell .official-brand img{width:112px;height:42px}
.assistant-shell .sidebar nav{height:100%;gap:8px}
.assistant-shell .sidebar .nav-item{height:42px;padding:0 18px;border-radius:8px;font-size:17px;font-weight:500;color:#bdcec5;border:1px solid transparent;box-shadow:none}
.assistant-shell .sidebar .nav-item:hover{background:#ffffff08;color:#fff}
.assistant-shell .sidebar .nav-item.active{background:#ffffff10;border-color:#ffffff16;color:#f2f8f4;box-shadow:none}
.assistant-shell .sidebar .nav-item .icon{width:20px;height:20px;stroke-width:1.6}
.assistant-shell .sidebar-account button{width:40px;height:40px;display:grid;place-items:center;border-radius:8px;color:#bdcec5}
.assistant-shell .main{margin:0;min-width:0;width:100%}
.assistant-shell .content{padding:20px;height:calc(100dvh - 72px);min-height:0;max-width:none;overflow:hidden}
.assistant-workspace{display:grid;height:100%;min-height:0;min-width:0;grid-template-columns:minmax(248px,.65fr) minmax(380px,1.05fr) minmax(420px,1.3fr);grid-template-rows:minmax(0,1fr);grid-template-areas:'sources opportunities chat';gap:20px}
.assistant-workspace>.source-rail,.assistant-workspace>.opportunities-panel,.assistant-workspace>.chat-panel{border:1px solid var(--line);background:var(--surface);border-radius:12px;box-shadow:0 2px 4px #142c2003;min-height:0;min-width:0;overflow:hidden}
.assistant-workspace>.source-rail{display:flex;flex-direction:column;padding:0;gap:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.assistant-workspace .rail-heading{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:1;background:var(--surface);padding:20px;margin:0;font-size:20px;font-weight:650;border-bottom:1px solid var(--line)}
.assistant-workspace .live-indicator,.assistant-shell .opportunities-head .number{font-size:14px;font-weight:600;background:var(--tint);color:var(--green);border:0;border-radius:6px;padding:2px 7px}
.assistant-workspace .source-link{width:auto;max-width:none;align-self:stretch;margin:0 8px;padding:14px 10px;gap:12px;border:0;border-radius:7px;flex-shrink:0;color:var(--ink);text-decoration:none}
.assistant-workspace .source-link:hover{background:var(--bg)}
.assistant-workspace .source-link b{font-size:17px;font-weight:550;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
.assistant-workspace .source-link small{font-size:14px;line-height:1.5;margin-top:3px;color:var(--muted)}
.assistant-workspace .source-link .site-icon{width:36px;height:36px;border:1px solid var(--line);border-radius:9px;background:white;box-shadow:none;flex-shrink:0}
.assistant-workspace .source-link>.icon{width:15px;height:15px;opacity:.5}
.assistant-workspace .source-led{width:5px;height:5px;margin-left:auto;flex-shrink:0}
.assistant-workspace .rail-updated{padding:18px 20px 10px;margin-top:auto;font-size:12px;border-top:1px solid var(--line)}
.assistant-workspace .rail-manage{padding:10px 20px 18px;margin:0;font-size:14px;min-height:44px}
.site-recommendations{margin:0 18px 6px;border-top:0;border-bottom:1px solid var(--line);padding:0 0 6px}
.site-recommendations summary{font-size:16px;padding:14px 0;font-weight:550}
.site-recommendations summary span{font-size:13px;color:var(--muted)}
.site-recommendations .recommended-site{box-shadow:none;padding:12px;margin:8px 0}
.site-recommendations .recommended-site header>a{font-size:16px;font-weight:550}
.site-recommendations .recommended-site p{font-size:14px;line-height:1.65}
.site-recommendations .recommended-site small{font-size:12px;line-height:1.6}
.assistant-workspace>.opportunities-panel{display:flex;flex-direction:column;padding:0}
.assistant-shell .opportunities-head{padding:18px 20px 12px;margin:0;min-height:64px}
.assistant-shell .opportunities-head h2{font-size:22px;letter-spacing:-.6px;font-weight:650;display:flex;align-items:center;gap:9px}
.assistant-shell .icon-btn{width:34px;height:34px;border:0;background:transparent;border-radius:7px;color:var(--muted)}
.assistant-shell .icon-btn:hover{background:var(--bg);color:var(--green)}
.assistant-shell .opportunities-controls{padding:0 20px;display:flex;flex-direction:column;align-items:stretch;gap:14px;margin:0}
.assistant-shell .opportunities-controls .filters{display:flex;gap:4px;flex-wrap:nowrap;border-bottom:1px solid var(--line)}
.assistant-shell .opportunities-controls .filters button{font-size:16px;padding:10px 8px 12px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--muted);white-space:nowrap}
.assistant-shell .opportunities-controls .filters button.active{border-bottom-color:var(--green);color:var(--green);font-weight:650}
.assistant-shell .opportunity-search{width:100%;max-width:none;background:var(--bg);border:1px solid transparent;border-radius:8px;padding:0 12px;gap:8px}
.assistant-shell .opportunity-search:focus-within{border-color:#7cae95}
.assistant-shell .opportunity-search input{font-size:16px;padding:10px 0;min-width:0}
.assistant-shell .opportunity-search .icon{width:18px;height:18px}
.assistant-shell .source-filter-row{padding:10px 20px 14px;margin:0;border-bottom:1px solid var(--line)}
.assistant-shell .source-filter-row select{font-size:14px;padding:6px 0;border:0;background:var(--surface);color:var(--muted);border-radius:0;min-height:32px}
.assistant-shell .home-notices{display:block;flex:1;min-height:0;max-height:none;overflow-y:auto;padding:0;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.assistant-shell .home-notices .business-card{padding:20px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--surface);box-shadow:none;min-height:0}
.assistant-shell .home-notices .business-card:hover{background:color-mix(in srgb,var(--surface) 70%,var(--bg))}
.assistant-shell .business-meta{gap:9px;align-items:center}
.assistant-shell .business-meta .site-icon{width:26px;height:26px;border-radius:6px;border:0;background:#fff;flex-shrink:0}
.assistant-shell .business-meta>b{font-size:14px;font-weight:500;color:var(--muted);min-width:0;line-height:1.4}
.assistant-shell .deadline-pill{font-size:13px;padding:3px 6px;border-radius:4px;font-weight:600;margin-left:auto}
.assistant-shell .business-title{font-size:21px;font-weight:600;line-height:1.55;letter-spacing:-.6px;padding:12px 0 10px;word-break:keep-all}
.assistant-shell .notice-facts{font-size:14px;line-height:1.7;gap:8px;color:var(--muted);display:flex;flex-wrap:wrap}
.assistant-shell .notice-conflict{font-size:13px;margin:8px 0 0}
.assistant-shell .business-card footer{border:0;padding:14px 0 0;gap:12px}
.assistant-shell .business-card footer a{font-size:14px;color:var(--muted)}
.assistant-shell .business-card footer .icon{width:15px;height:15px}
.assistant-shell .ask-notice{font-size:14px;font-weight:550;background:transparent;padding:6px 8px;border-radius:6px;margin-left:auto}
.assistant-shell .ask-notice:hover{background:var(--tint);box-shadow:none}
.assistant-shell .save-notice{font-size:23px;width:30px;height:30px}
.assistant-workspace>.chat-panel{display:flex;flex-direction:column;height:100%;max-height:none;position:relative}
.assistant-shell .chat-top{padding:18px 22px;min-height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center}
.assistant-shell .chat-top h1{font-size:18px;font-weight:600;letter-spacing:-.3px}
.assistant-shell .chat-top .icon-btn{margin-left:auto}
.assistant-shell .chat-context{position:absolute;top:21px;right:64px;padding:0;border:0;min-height:0;background:transparent}
.assistant-shell .chat-context button{font-size:12px;color:var(--muted)}
.assistant-shell .chat-messages{flex:1;min-height:0;padding:28px 26px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.assistant-shell .chat-message{font-size:15px;line-height:1.8;margin-bottom:28px}
.assistant-shell .message-byline{font-size:12px;margin-bottom:8px;font-weight:550}
.assistant-shell .message-byline span{font-size:11px}
.assistant-shell .chat-message.user .message-text{background:var(--user-bubble);border:0;border-radius:10px;padding:14px 16px}
.assistant-shell .chat-compose{position:relative;margin:0 18px 18px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 3px 14px #17382b05;flex-shrink:0}
.assistant-shell .chat-compose:focus-within{border-color:#86ac98;box-shadow:0 0 0 2px #6b9c7c0d;outline:0}
.assistant-shell .chat-compose textarea{height:64px;min-height:64px;max-height:180px;width:100%;padding:0 40px 0 0;margin:0;border:0;outline:none;box-shadow:none;resize:vertical;background:transparent;color:var(--ink);font-size:15px;line-height:1.6}
.assistant-shell .chat-compose .assistant-identity{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:8px 0 0;padding:0;border:0;border-radius:0;background:transparent;min-height:0;box-shadow:none}
.assistant-shell .chat-compose .model-glyph{display:none}
.assistant-shell .chat-compose .model-account{display:flex;align-items:center;gap:7px;min-width:0;flex:1;flex-wrap:wrap}
.assistant-shell .chat-compose .model-account select{height:28px;min-height:28px;width:80px;padding:0 2px;font-size:12px;font-weight:600;border:0;background:transparent;color:var(--ink)}
.assistant-shell .chat-compose .model-account small{font-size:11px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.assistant-shell .chat-compose .model-picker{flex:0 1 140px;max-width:140px;margin:0}
.assistant-shell .chat-compose .model-picker select{width:100%;height:28px;min-height:28px;padding:3px 5px;border:1px solid var(--line);border-radius:6px;font-size:11px;background:var(--bg)}
.assistant-shell .chat-compose .account-connect{font-size:11px;padding:4px 0;color:var(--muted)}
.assistant-shell .chat-compose .account-connect .icon{width:12px;height:12px}
.assistant-shell .compose-toolbar{padding:0;margin:6px 0 0;min-height:18px}
.assistant-shell .chat-compose .refresh-choice{font-size:11px;color:var(--muted);margin:0}
.assistant-shell .send-button,.assistant-shell .stop-send{position:absolute;right:12px;top:12px;width:34px;height:34px;border-radius:8px;padding:0;background:var(--green);color:var(--surface);display:grid;place-items:center}
.assistant-shell .send-button .icon{width:18px;height:18px}
.workspace-page .content{height:auto;min-height:calc(100dvh - 72px);padding:32px;overflow:visible;max-width:1800px;margin:0 auto}
.workspace-page .heading h1{font-size:28px;font-weight:600}
.workspace-page .heading p{font-size:14px;color:var(--muted)}
.workspace-page .heading{margin-bottom:28px}
.workspace-page .filters button,.workspace-page .btn,.workspace-page .searchbox input{font-size:16px}
.workspace-page .filters button{border-radius:7px;padding:9px 14px}
.workspace-page table{font-size:17px}
.workspace-page th{font-size:13px;padding:16px 20px;letter-spacing:0;font-weight:550}
.workspace-page td{padding:20px}
.workspace-page td.title-cell{max-width:480px}
.workspace-page td.title-cell button{font-weight:550}
.workspace-page td.title-cell small{font-size:14px;margin-top:5px}
.workspace-page .tag{font-size:13px;padding:4px 7px}
.workspace-page .panel{border-radius:10px;box-shadow:none}
.workspace-page .table-foot{font-size:12px}
.workspace-page .source-list h3{font-size:20px}
.workspace-page .source-list p,.workspace-page .source-list a{font-size:16px}
@media(min-width:1800px){.assistant-workspace{grid-template-columns:310px minmax(500px,1fr) minmax(600px,1.3fr)}.assistant-shell .content{padding:24px}.assistant-shell .business-title{font-size:23px}.assistant-workspace .source-link b{font-size:18px}}
@media(min-width:761px) and (max-width:1150px){.assistant-shell .content{overflow-x:auto;padding:14px}.assistant-workspace{min-width:1050px;gap:14px;grid-template-columns:248px 380px minmax(394px,1fr)}}
@media(max-width:760px){.assistant-shell .sidebar{height:auto;padding:12px 16px;gap:10px;flex-wrap:wrap}.assistant-shell .sidebar nav{order:3;width:100%;overflow:auto}.assistant-shell .sidebar .nav-item{font-size:15px;padding:0 12px}.assistant-shell .sidebar-account{margin-left:auto}.assistant-shell .content{height:auto;overflow:visible;padding:12px}.assistant-workspace{height:auto;min-width:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(600px,80dvh);grid-template-areas:'sources' 'opportunities' 'chat';gap:14px}.assistant-workspace>.source-rail{max-height:320px}.assistant-shell .home-notices{max-height:650px}.assistant-workspace>.opportunities-panel{min-height:0}.assistant-shell .chat-messages{padding:20px}.assistant-shell .chat-compose{margin:0 12px 12px}.workspace-page .content{padding:20px 12px}.workspace-page .toolbar{gap:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.assistant-shell .notice-facts{margin:0}
.assistant-shell .business-card footer .ask-notice{min-height:30px;height:30px;padding:4px 8px}
.assistant-shell .source-link>.icon{margin:0;width:14px;height:14px}
.assistant-shell .source-link{gap:9px}
.assistant-shell .chat-compose textarea{resize:none}

.notice-interest{display:inline-flex;gap:6px;flex-wrap:wrap}.business-card footer .interest-button{font-size:14px;line-height:1.3;padding:8px 10px;min-height:36px;border:1px solid var(--border,#dce5e0);border-radius:7px;background:transparent;color:inherit;white-space:nowrap}.business-card footer .interest-button.selected{background:#e7f1eb;border-color:#26735b;color:#185941}.business-card footer{flex-wrap:wrap}

.assistant-workspace .site-add-button{flex:0 0 64px;align-self:center;display:grid;place-items:center;width:64px;height:64px;min-height:64px;aspect-ratio:1;padding:0;margin:18px auto 22px;border:1px solid #176b53;border-radius:12px;font-size:40px;font-weight:600;line-height:1;color:#fff;background:#176b53;cursor:pointer}.assistant-workspace .site-add-button:hover{background:#10533f;border-color:#10533f}.assistant-workspace .site-add-button:focus-visible{outline:3px solid #75bda7;outline-offset:3px}.add-site-form{margin:8px 0 28px}.add-site-form>label{display:block;margin-bottom:10px;font-weight:600}.add-site-input{display:flex;gap:10px}.add-site-input input{flex:1;min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:17px}.add-site-form small{display:block;margin-top:10px;color:var(--muted)}.site-pick{display:flex;align-items:center;gap:14px;width:100%;padding:16px 0;border:0;border-bottom:1px solid var(--line);text-align:left;background:transparent;color:var(--ink)}.site-pick>span:nth-child(2){flex:1;min-width:0}.site-pick b{display:block;font-size:17px;overflow-wrap:anywhere}.site-pick small{display:block;margin-top:6px;color:var(--muted);font-size:14px}.site-pick>span:last-child{white-space:nowrap;font-size:14px}.site-pick:disabled{opacity:.55;cursor:default}.site-pick .site-icon{flex-shrink:0}

.drive-panel{margin-bottom:24px}.drive-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.drive-uri{overflow-wrap:anywhere;padding:16px;background:var(--bg);border:1px solid var(--line);border-radius:8px}#drive-folder label{display:block}#drive-folder input{display:block;width:100%;margin:10px 0 16px}#drive-client{display:block;max-width:100%;margin-top:10px}

/* Original geometry and palette; names carry the list hierarchy. */
.assistant-workspace .source-link{min-height:64px;border-bottom:1px solid var(--line);border-radius:0}
.assistant-workspace .source-link b{font-weight:600;color:var(--ink)}
.assistant-workspace .source-link>.icon{opacity:.7}
.assistant-workspace .rail-manage{align-self:flex-end;display:grid;place-items:center;padding:8px;margin:8px 12px;width:40px;height:40px}
.assistant-shell .business-title{font-weight:650;color:var(--ink);padding:12px 0 6px}
.assistant-shell .business-meta>b{font-weight:500}
.assistant-shell .notice-deadline{margin-left:auto;color:var(--muted);display:grid;place-items:center;width:32px;height:32px}
.assistant-shell .notice-conflict-glyph{color:var(--amber,#99712e);display:grid;place-items:center;width:32px;height:32px}
.assistant-shell .business-card footer{padding-top:8px;gap:6px}
.assistant-shell .business-card footer>a,.assistant-shell .business-card footer .ask-notice,.assistant-shell .business-card footer .interest-button{display:inline-grid;place-items:center;width:36px;height:36px;min-height:36px;padding:8px;border:0;border-radius:6px;color:var(--muted);background:transparent}
.assistant-shell .business-card footer .icon{width:19px;height:19px}
.assistant-shell .business-card footer a:hover,.assistant-shell .business-card footer button:hover{color:var(--green);background:var(--tint)}
.assistant-shell .business-card footer .interest-button.selected{color:var(--green);background:var(--tint);box-shadow:inset 0 0 0 1px var(--green)}
.assistant-shell .business-card footer .interest-button.selected .icon{stroke-width:2.4}
.assistant-shell .opportunities-controls .filters button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:10px 14px}
.assistant-shell .chat-context [data-chat-history]{display:grid;place-items:center;width:36px;height:36px;padding:8px}

/* Dates remain visible; summary labels have their own aligned column. */
.assistant-shell .notice-deadline{display:flex;gap:6px;width:auto;flex-shrink:0;font-size:13px;white-space:nowrap}
.assistant-shell .notice-deadline .icon{width:16px;height:16px}
.notice-summary{background:var(--surface);padding:18px;word-break:keep-all;overflow-wrap:break-word;text-align:left}
.notice-summary-rows{margin:0}
.notice-summary-rows>div{display:grid;grid-template-columns:3.5em minmax(0,1fr);gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}
.notice-summary-rows>div:first-child{padding-top:0}
.notice-summary-rows>div:last-child{padding-bottom:0;border-bottom:0}
.notice-summary-rows dt{font-weight:650;color:var(--ink)}
.notice-summary-rows dd{margin:0;min-width:0;line-height:1.7}
.notice-summary-rows dd p{margin:0 0 10px}
.notice-summary-rows dd p:last-child{margin:0}
@media(max-width:480px){.notice-summary-rows>div{grid-template-columns:1fr;gap:4px}}

/* Keep the stop control inside the same square as send, at every viewport. */
.assistant-shell .chat-compose .stop-send{padding:0;line-height:1;overflow:hidden;white-space:nowrap;display:grid;place-items:center}
.assistant-shell .stop-glyph{display:block;width:12px;height:12px;border-radius:2px;background:currentColor}
.assistant-shell .chat-compose .model-picker{flex:0 1 160px;max-width:160px;min-width:120px}

.assistant-workspace .source-link{padding:0 10px;gap:4px}
.assistant-workspace .source-filter{display:flex;align-items:center;gap:12px;flex:1;min-width:0;align-self:stretch;padding:14px 0;text-align:left;color:inherit;background:transparent;border:0}
.assistant-workspace .source-filter b{min-width:0}
.assistant-workspace .source-external{display:grid;place-items:center;flex:0 0 32px;height:36px;color:var(--muted);border-radius:6px}
.assistant-workspace .source-external .icon{width:15px;height:15px}
.assistant-workspace .source-external:hover{background:var(--tint);color:var(--green)}
.assistant-workspace .source-link.selected{background:var(--tint)}

.assistant-shell .source-filter-tags{display:flex;flex-wrap:wrap;gap:8px;padding:12px 20px 14px;border-bottom:1px solid var(--line)}
.assistant-shell .source-filter-tag{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 6px 4px 10px;border:1px solid var(--line);border-radius:6px;background:var(--tint);color:var(--ink);font-size:12px}
.assistant-shell .source-filter-tag>span{min-width:0;overflow-wrap:anywhere}
.assistant-shell .source-filter-tag button{display:grid;place-items:center;flex-shrink:0;width:26px;height:26px;padding:0;color:var(--muted)}
.assistant-shell .source-filter-tag .icon{width:14px;height:14px}
