/* Lumi on a computer (user 2026-11-02 via ⓪: "电脑版…有自己的结构，又自适应电脑的结构"): the app's features laid out
   the way a desktop app is: a sidebar, columns side by side, a details panel on the right, hover, shortcuts, ⌘K.
   1024 to 1920 wide and everything between; under 861 the phone's layout takes over (app.css). */
@media (min-width: 861px) {
  .shell { --side-w: 220px; }
  .main { overflow: hidden; }
  .tabbar { display: none !important; }
}
@media (min-width: 861px) and (max-width: 1080px) { .shell { --side-w: 68px; } }

/* ----- the sidebar (its look is kit.css) ----- */
.sidebar .sep-line { height: .5px; background: var(--line); margin: 10px; }
.sidebar a.nav .kbd { opacity: 0; transition: opacity .15s; }
.sidebar a.nav:hover .kbd, .sidebar a.nav:focus-visible .kbd { opacity: 1; }
.sidebar a.nav .badge:not(.hidden) + .kbd { display: none; }
.sidebar a.nav .avatar { margin: 0 -1px; }
.sidebar .you .avatar { flex: none; }
@media (max-width: 1080px) {
  .sidebar .kbd { display: none; }
  .sidebar .sep-line { width: 32px; margin: 8px auto; }
  .sidebar a.nav .badge { position: absolute; top: 3px; right: 3px; }
}
.kbd { font-size: 11px; font-weight: 600; color: var(--fg3); border: .5px solid var(--edge-strong); border-radius: 5px; padding: 1px 5px; font-family: inherit; white-space: nowrap; line-height: 16px; }

/* ----- columns ----- */
.d-col { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.d-main { flex: 1; min-width: 0; position: relative; }
.split .list-pane.d-list, .d-list { width: 320px; flex: none; border-right: .5px solid var(--sep); display: flex; flex-direction: column; height: 100%; }
.d-list.d-list-narrow { width: 280px; }
@media (max-width: 1360px) { .split .list-pane.d-list, .d-list { width: 296px; } .d-list.d-list-narrow { width: 260px; } }
@media (max-width: 1080px) { .split .list-pane.d-list, .d-list { width: 276px; } .d-list.d-list-narrow { width: 240px; } }
.d-list .list-scroll, .d-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 0 16px; }
.d-split { display: flex; height: 100%; }
.d-bar { flex: none; height: 48px; display: flex; align-items: center; gap: 4px; padding: 0 12px 0 18px; border-bottom: .5px solid var(--line); background: var(--bg); }
.d-bar h1 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; flex: 1; min-width: 0; }
.d-bar .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; }
.d-bar .who > div { min-width: 0; }
.d-bar .who b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-bar .who small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--fg2); white-space: nowrap; }
.d-bar .who small .icon { width: 11px; height: 11px; }
.d-bar .who small .live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.d-search { padding: 10px 12px 6px; }
.d-search .searchfield { height: 34px; }
.d-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.d-list-label { font-size: 11px; font-weight: 600; color: var(--fg2); text-transform: uppercase; letter-spacing: .05em; padding: 12px 18px 4px; }
.split .placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.split .placeholder p { font-size: 14px; color: var(--fg2); max-width: 300px; text-align: center; line-height: 1.45; }
.placeholder { height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--fg2); font-size: 14px; text-align: center; padding: 24px; }

/* ----- the chat list ----- */
.d-convo { display: flex; align-items: center; gap: 11px; padding: 9px 10px; margin: 1px 8px; border-radius: 8px; position: relative; transition: background-color .12s; color: var(--fg); }
button.d-convo { width: calc(100% - 16px); text-align: left; }
@media (hover: hover) { .d-convo:hover { background: var(--hover); } }
.d-convo:active { background: var(--press); }
.d-convo.on { background: var(--fill2); }
.d-convo .words { flex: 1; min-width: 0; }
.d-convo .top { display: flex; align-items: center; gap: 5px; }
.d-convo .top b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-convo .top .icon { width: 11px; height: 11px; color: var(--fg3); flex: none; }
.d-convo .top time { font-size: 12px; color: var(--fg2); flex: none; margin-left: 3px; }
.d-convo p { font-size: 13.5px; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; display: flex; gap: 5px; align-items: center; }
.d-convo p .icon { width: 13px; height: 13px; flex: none; }
.d-convo.unread .top b { font-weight: 700; }
.d-convo.unread p { color: var(--fg); }
.d-convo .dot, .d-ai-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; }
.d-convo .hover-actions { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: none; gap: 1px; background: var(--card-solid); border-radius: 999px; box-shadow: var(--shadow-md); padding: 2px; }
@media (hover: hover) { .d-convo:hover .hover-actions { display: flex; } .d-convo:hover time, .d-convo:hover .dot { visibility: hidden; } }
.d-ai-row { margin: 6px 8px 4px; padding: 10px 12px; border-radius: 8px; display: flex; align-items: center; gap: 12px; color: var(--fg); transition: box-shadow .15s, filter .15s; }
.d-ai-row b { font-size: 14.5px; font-weight: 600; display: block; }
.d-ai-row small { font-size: 12.5px; color: var(--fg2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-ai-row .words { flex: 1; min-width: 0; }
.d-ai-row > .icon { color: var(--fg2); }
@media (hover: hover) { .d-ai-row:hover { background: var(--hover); } }
.d-ai-row.on { background: var(--fill2); }
.d-nav-list .d-convo { margin: 0 0 6px; }

/* ----- a conversation ----- */
.d-chatwrap { display: flex; height: 100%; position: relative; }
.d-chatwrap > .convo { flex: 1; min-width: 0; }
.convo.dk { --gutter: 28px; }
.convo.dk .messages { padding: 16px var(--gutter) 10px; }
.convo.dk .messages.own { padding-top: 16px; }
.convo.dk .mrow { padding: 2px 0; gap: 8px; }
.convo.dk .mcol { max-width: min(62%, 640px); gap: 3px; }
.convo.dk .messages.own .mcol { max-width: min(68%, 680px); }
.convo.dk .messages.own .mrow.out .mcol { max-width: min(62%, 640px); }
.convo.dk .ident { width: 36px; height: 38px; }
.convo.dk .ident > .avatar { left: 0; top: 2px; }
.convo.dk .ident-ai { padding: 1.5px; }
.convo.dk .bubble { font-size: 15px; line-height: 21px; padding: 8px 13px; border-radius: 18px; }
.convo.dk .mrow.out .bubble:not(.withdrawn) { background: var(--fg); color: var(--bg); }
.convo.dk .mrow.out .bubble a { color: inherit; }
.convo.dk .replied-text { font-size: 13.5px; padding: 6px 12px; }
.convo.dk .typing { height: 38px; }
.convo.dk .chat-card { margin: 4px 0; }
.convo.dk .own-empty { margin: 24px 0 0; max-width: 520px; }
.convo.dk .timediv { font-size: 11.5px; margin: 14px 0 6px; }
.convo.dk .composer { padding: 6px var(--gutter) 4px; }
.convo.dk .cbox { background: var(--bg); box-shadow: inset 0 0 0 .5px var(--edge-strong); border-radius: 22px; min-height: 46px; padding: 3px 4px; transition: box-shadow .15s; }
.convo.dk .cbox:focus-within { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 45%, var(--edge-strong)); }
.convo.dk .cbox textarea { font-size: 15px; line-height: 21px; padding: 10px 4px; min-height: 40px; }
.convo.dk .cbtn { width: 40px; height: 40px; border-radius: 50%; transition: background-color .12s; }
.convo.dk .cbtn:hover { background: var(--hover); }
.convo.dk .cbtn .icon { width: 21px; height: 21px; }
.convo.dk .glass-send:hover { background: none; }
.convo.dk .ended-bar { margin: 6px var(--gutter) 14px; border-radius: 10px; padding: 12px 20px; }
.hint-line { flex: none; display: flex; gap: 14px; padding: 0 calc(var(--gutter) + 14px) 12px; font-size: 11.5px; color: var(--fg3); white-space: nowrap; overflow: hidden; }
.d-drop { position: absolute; inset: 64px 16px 16px; z-index: 6; border-radius: 10px; border: 2px dashed var(--edge-strong); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--fg2); font-size: 15px; font-weight: 500; pointer-events: none; }
/* Hovering a message, with a mouse: three reactions, Reply and ···. */
.mtools { position: absolute; top: -14px; left: var(--tools-left, 77px); z-index: 2; display: none; gap: 1px; padding: 2px; border-radius: 999px; background: var(--card-solid); box-shadow: var(--shadow-md); }
.mrow.out .mtools { left: auto; right: var(--tools-right, 20px); }
.messages.own .mrow { --tools-left: 20px; }
.convo.dk .mrow { --tools-left: 46px; --tools-right: 0px; }
.convo.dk .messages.own .mrow { --tools-left: 0px; }
@media (hover: hover) { .mrow:hover .mtools { display: flex; } }
.mtools button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--fg2); transition: background-color .12s, transform .15s var(--spring); }
.mtools button:hover { background: var(--fill2); color: var(--fg); }
.mtools button:active { transform: scale(.9); }
.mtools .react { font-size: 16px; }
.mtools .icon { width: 16px; height: 16px; }

/* ----- the details panel: like iMessage's, no cards, no tints ----- */
.d-panel { width: 300px; flex: none; border-left: .5px solid var(--sep); overflow-y: auto; background: var(--bg); padding-bottom: 28px; }
.d-panel:not(.open) { display: none; }
@media (max-width: 1360px) { .d-panel { width: 280px; } }
@media (max-width: 1179px) { .d-panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 8; box-shadow: -8px 0 30px rgba(0, 0, 0, .08); } }
.d-panel-head { display: grid; justify-items: center; gap: 3px; padding: 32px 20px 14px; text-align: center; }
.d-panel-head h2 { font-size: 17px; font-weight: 700; margin-top: 10px; }
.d-panel-head small { font-size: 13px; color: var(--fg2); }
.d-panel-actions { display: flex; gap: 4px; justify-content: center; padding: 0 12px 20px; }
.d-panel-actions .act { width: 62px; display: grid; justify-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: var(--fg2); padding: 4px 0; border-radius: 10px; }
.d-panel-actions .act-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--fg); transition: background-color .12s, transform .15s var(--spring); }
.d-panel-actions .act-icon .icon { width: 20px; height: 20px; }
@media (hover: hover) { .d-panel-actions .act:hover .act-icon { background: var(--hover); } }
.d-panel-actions .act:active .act-icon { transform: scale(.92); background: var(--press); }
.d-panel-actions .act.on .act-icon { color: var(--fg2); }
.plist { display: flex; flex-direction: column; padding: 8px 10px; border-top: .5px solid var(--line); }
.prow { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 9px; font-size: 14.5px; color: var(--fg); text-align: left; width: 100%; transition: background-color .12s; }
.prow .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .v { font-size: 13.5px; color: var(--fg2); }
@media (hover: hover) { a.prow:hover, button.prow:hover, label.prow:hover { background: var(--hover); } }
a.prow:active, button.prow:active { background: var(--press); }
.prow.danger { color: var(--red); }
.prow.label { min-height: 34px; cursor: default; }
.prow.label .t { font-size: 13px; color: var(--fg2); font-weight: 500; }
.d-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 10px; overflow: hidden; margin: 2px 10px 6px; }
.d-media img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg2); cursor: zoom-in; }
.d-panel-section { padding: 10px 20px 0; border-top: .5px solid var(--line); display: grid; gap: 14px; }
.d-panel-section .segmented { margin-top: 6px; }
.panel-note { font-size: 13.5px; color: var(--fg2); line-height: 1.45; padding: 8px 2px; }

/* ----- AI pages: who the AI is on the left, talking to it on the right ----- */
.d-aipage { height: 100%; display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); min-width: 0; }
.d-aiprofile { border-right: .5px solid var(--sep); overflow-y: auto; padding: 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.d-aiprofile .aihead { padding: 0; }
.d-aiprofile .aipage-body { width: 100%; }
.d-aiprofile h1 { font-size: 22px; }
.d-aiprofile .owner { color: var(--fg2); font-size: 14px; }
.d-aiprofile .btn-row { justify-content: center; }
.d-aiprofile .note { font-size: 12.5px; color: var(--fg2); max-width: 300px; line-height: 1.45; display: flex; gap: 7px; text-align: left; margin-top: 6px; }
.d-aiprofile .note .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.d-aipage .d-main > .placeholder { height: 100%; }
.d-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 28px 12px; }
.d-thread-inner { display: flex; flex-direction: column; gap: 6px; }
.d-composer { flex: none; padding: 8px 28px 18px; }
.d-composer .visitor-input { max-width: none; margin: 0; }

/* ----- Moments: the Feed in one column, in the middle ----- */
.d-moments { height: 100%; overflow-y: auto; padding: 0 32px; }
.d-feed { max-width: 620px; margin: 0 auto; padding: 0 0 80px; min-width: 0; }
.d-feed-bar { position: sticky; top: 0; z-index: 5; height: 64px; display: flex; align-items: center; gap: 8px; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.d-feed-bar h1 { flex: 1; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.d-feed-bar .map-pill { margin-right: 2px; }
.d-feed .stories { padding-left: 0; padding-right: 0; }
.d-feed .posts { margin: 0; }
.d-feed .activity-wrap { padding-left: 0; padding-right: 0; }

/* ----- Me and Settings: the list on the left, the page on the right ----- */
.d-me-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; color: var(--fg); }
.d-me-head b { font-size: 15px; font-weight: 700; display: block; }
.d-me-head small { font-size: 12.5px; color: var(--fg2); }
.d-me-head .words { flex: 1; min-width: 0; }
.d-nav-list { padding: 4px 8px 20px; display: grid; gap: 1px; align-content: start; }
.d-nav-list .d-list-label { padding: 14px 10px 5px; }
.d-nav-list .d-ai-row { margin: 0 0 8px; }
.d-nav-list .d-account { padding: 8px 10px; margin-bottom: 6px; border-radius: 8px; transition: background-color .12s; }
.d-nav-list .d-account:hover { background: var(--hover); }
.d-nav-list .d-account.on { background: var(--fill2); }
.d-nav-row { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; font-size: 14px; color: var(--fg); transition: background-color .12s; }
.d-nav-row .rowicon { width: 26px; height: 26px; border-radius: 7px; }
.d-nav-row .rowicon .icon { width: 16px; height: 16px; }
.d-nav-row .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .d-nav-row:hover { background: var(--hover); } }
.d-nav-row:active { background: var(--press); }
.d-nav-row.on { background: var(--fill2); font-weight: 600; }
.d-detail { overflow: hidden; }
.d-detail > .page { height: 100%; padding-bottom: 40px; }
.d-detail .navbar { height: 48px; padding: 0 16px 0 max(40px, calc((100% - 720px) / 2 + 40px)); border-bottom: .5px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); }
.d-detail .navbar .side:first-child { display: none; }
.d-detail .navbar .title { text-align: left; font-size: 15px; font-weight: 700; }
.d-detail .navbar .side.end { width: auto; }
.d-detail .page-inner { max-width: 720px; padding: 24px 40px 40px; margin: 0 auto; }
.d-detail .agent-bar .round:first-child { visibility: hidden; }
.d-detail .settings-list { display: grid; gap: 22px; }
.account-head { display: flex; align-items: center; gap: 14px; }
.account-head b { font-size: 17px; display: block; }
.account-head small { color: var(--fg2); font-size: 13px; }
.theme-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: 16px; }
.theme-pick button { display: grid; gap: 8px; justify-items: center; font-size: 13px; font-weight: 500; }
.theme-pick .shot { width: 100%; aspect-ratio: 1.45; border-radius: 10px; box-shadow: 0 0 0 .5px var(--edge-strong); background: #fff; position: relative; overflow: hidden; transition: box-shadow .15s; }
.theme-pick .shot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 26%; background: #f2f2f7; }
.theme-pick .shot::after { content: ""; position: absolute; left: 34%; right: 12%; top: 22%; height: 14%; border-radius: 99px; background: #e5e5ea; box-shadow: 0 18px 0 #e5e5ea, 0 36px 0 #000; }
.theme-pick .shot.dark { background: #1c1c1e; }
.theme-pick .shot.dark::before { background: #2c2c2e; }
.theme-pick .shot.dark::after { background: #3a3a3c; box-shadow: 0 18px 0 #3a3a3c, 0 36px 0 #fff; }
.theme-pick .shot.auto { background: linear-gradient(90deg, #fff 50%, #1c1c1e 50%); }
.theme-pick button:hover .shot { box-shadow: 0 0 0 1px var(--edge-strong), var(--shadow-md); }
.theme-pick button.on .shot { box-shadow: 0 0 0 2.5px var(--blue); }
.srow .kbd { font-size: 12px; }

/* What your AI would add to a page: Add or No. */
.ai-notes { display: grid; gap: 10px; margin-top: 22px; }
.ai-notes:empty { display: none; }
.ai-note { border-radius: 8px; background: var(--fill); padding: 12px 14px; font-size: 14px; line-height: 1.45; display: flex; gap: 10px; align-items: center; }
.ai-note > .icon { width: 17px; height: 17px; flex: none; align-self: flex-start; margin-top: 2px; }
.ai-note > span { flex: 1; }
.ai-note .btn-row { flex-wrap: nowrap; }

/* ----- ⌘K ----- */
.palette-scrim { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, 0); display: flex; justify-content: center; align-items: flex-start; padding: 13vh 20px 20px; transition: background .15s; }
.palette-scrim.in { background: rgba(0, 0, 0, .2); }
.palette { width: min(580px, 100%); border-radius: 12px; background: var(--glass-strong); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); box-shadow: var(--glass-hi), var(--pop-shadow); overflow: hidden; transform: translateY(-6px) scale(.98); opacity: 0; transition: transform .16s var(--ease), opacity .12s; }
.palette-scrim.in .palette { transform: none; opacity: 1; }
.palette-q { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-bottom: .5px solid var(--line); }
.palette-q .icon { color: var(--fg2); }
.palette-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--fg); }
.palette-q input::placeholder { color: var(--fg3); }
.palette-results { max-height: min(440px, 60vh); overflow-y: auto; padding: 4px 6px 8px; }
.palette-group small { display: block; font-size: 11px; font-weight: 600; color: var(--fg2); text-transform: uppercase; letter-spacing: .05em; padding: 10px 10px 4px; }
.palette-item { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 5px 10px; border-radius: 9px; font-size: 14px; text-align: left; color: var(--fg); }
.palette-item .rowicon { width: 26px; height: 26px; border-radius: 7px; }
.palette-item .rowicon .icon { width: 15px; height: 15px; }
.palette-item .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item em { font-style: normal; font-size: 12.5px; color: var(--fg2); flex: none; max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item.on { background: var(--fill2); }
.palette-none { padding: 22px; text-align: center; font-size: 14px; color: var(--fg2); }
.d-aiprofile .aipage-body { flex: none; }
.d-visitor-hint { margin: 40px auto 0; max-width: 320px; text-align: center; font-size: 14px; color: var(--fg2); line-height: 1.45; }
.d-thread-inner .visitor-chat:not(:empty) ~ .d-visitor-hint, .d-thread-inner:has(.vbubble) .d-visitor-hint { display: none; }

@media (min-width: 861px) { .sidebar { background: var(--bg); } .capsule.soft, .pill { font-weight: 500; } }
.capsule.soft, .pill:not(.primary) { font-weight: 500; }
.d-nav-row .v { font-size: 13px; color: var(--fg2); flex: none; }
.d-nav-gap { height: 10px; }
