/* Ben's existing saved AI Office, shown natively in Daythread's Office home. */
.ai-hub { margin: 1.1rem 0 1.5rem; padding: clamp(1rem, 3vw, 1.6rem); color: #f4f7f3; background: linear-gradient(135deg,#153d35,#152d36); border: 1px solid #54766e; border-radius: 1.35rem; }
.ai-hub * { box-sizing: border-box; }
.ai-head h2 { margin: .4rem 0 .45rem; font-size: clamp(1.45rem,5.2vw,2.4rem); line-height: 1.14; color: #fff; }
.ai-head p { margin: 0 0 1rem; color: #cfe1dc; line-height: 1.5; font-size: .97rem; }
.ai-kicker { color: #e1ba86; font-size: .8rem; font-weight: 750; letter-spacing: .13em; }
.ai-toolbar { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.ai-search-label { display: block; flex: 1 1 230px; min-width: 0; }
.ai-search-label input { width: 100%; min-height: 3.1rem; padding: .8rem 1rem; border: 1px solid #6d918a; border-radius: .9rem; background: #0c2929; color: #fff; font: inherit; }
.ai-search-label input::placeholder { color: #b4d2ca; }
.ai-hub button, .ai-hub input, .ai-hub select, .ai-hub textarea { font: inherit; }
.ai-hub button { cursor: pointer; }
.ai-toolbar > button, .ai-compose > button, .ai-detail form button { border: 0; background: #d2ad79; color: #12352e; border-radius: .85rem; padding: .72rem 1rem; font-weight: 750; }
.ai-hub button:disabled { opacity: .65; cursor: default; }
.ai-tabs { display: flex; gap: .45rem; margin: 1rem 0 .25rem; border-bottom: 1px solid #718d854f; }
.ai-tabs button { background: transparent; color: #daebe5; border: none; border-bottom: 3px solid transparent; padding: .6rem .8rem; font-weight: 700; }
.ai-tabs button[aria-current="page"] { color: #e1bc81; border-bottom-color: #e1bc81; }
.ai-feedback { margin: .7rem 0; color: #cbe1d9; font-size: .85rem; }
.ai-results-title { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin: 1.15rem 0 .6rem; }
.ai-results-title strong { font-size: 1.08rem; }
.ai-results-title button, .ai-detail-actions button, .ai-detail > button { padding: .55rem .75rem; border-radius: .75rem; background: #194c47; color: #e7f6f0; border: 1px solid #7eac9f; }
.ai-job, .ai-thread-item { display: flex; flex-direction: column; align-items: stretch; text-align: left; width: 100%; padding: .95rem 1rem; margin: .55rem 0; color: #ecf6f2; background: #0e2b38; border: 1px solid #47636d; border-radius: 1rem; gap: .4rem; }
.ai-job:hover, .ai-thread-item:hover, .ai-job:focus-visible, .ai-thread-item:focus-visible { border-color: #e1bc81; }
.ai-job-heading { display: flex; gap: .5rem; justify-content: space-between; flex-wrap: wrap; }
.ai-job-heading strong, .ai-thread-item strong { font-size: 1rem; }
.ai-job small, .ai-thread-item small { color: #c1d9d6; font-size: .8rem; }
.ai-job span:not(.ai-status):not(.ai-job-heading), .ai-thread-item span { font-size: .86rem; line-height: 1.45; color: #d0e0dd; }
.ai-status { display: inline-flex; align-items: center; align-self: start; padding: .18rem .5rem; border-radius: 100px; color: #e8f8f3; background: #28594e; font-size: .73rem; font-weight: 700; white-space: nowrap; }
.ai-status.ai-requested { background: #704f37; color: #ffe2b9; }
.ai-status.ai-waiting { background: #5d4e30; }
.ai-status.ai-done { background: #215a49; }
.ai-empty { color: #d0e0dd; margin: .6rem 0; }
.ai-compose, .ai-detail { display: flex; flex-direction: column; gap: .7rem; padding: 1rem; margin: .7rem 0; border: 1px solid #66877d; border-radius: 1rem; background: #102e2e; }
.ai-compose label, .ai-detail label { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; }
.ai-compose textarea, .ai-detail textarea, .ai-detail input, .ai-detail select { width: 100%; background: #eaf2ec; color: #173a33; border: 1px solid #73968b; border-radius: .6rem; padding: .65rem; font-weight: 400; }
.ai-compose p, .ai-detail p { margin: 0; line-height: 1.48; }
.ai-detail h3 { margin: .2rem 0; color: #fff; line-height: 1.24; }
.ai-detail a { color: #e8c38b; }
.ai-detail summary { cursor: pointer; padding: .6rem 0; font-weight: 700; }
.ai-detail details form { display: flex; flex-direction: column; gap: .8rem; padding: .5rem 0; }
.ai-detail-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.ai-messages { display: flex; flex-direction: column; gap: .6rem; max-height: 32rem; overflow-y: auto; }
.ai-message { padding: .85rem; background: #184544; border-radius: .85rem; }
.ai-message.mine { background: #254658; margin-left: min(1.2rem,5vw); }
.ai-message small { display: block; font-size: .75rem; color: #d4e9e4; margin-bottom: .3rem; }
.ai-attachments { display: flex; flex-direction: column; gap: .6rem; }
.ai-attachments button { text-align: left; background: #254b4c; color: white; border: 1px solid #789e93; border-radius: .55rem; padding: .6rem; overflow-wrap: anywhere; }
.ai-hub [hidden] { display: none !important; }
@media (max-width: 540px) { .ai-hub { padding: 1rem .85rem; } .ai-toolbar > button { width: 100%; } .ai-job { padding: .8rem; } .ai-job-heading { flex-direction: column; } }
