@import url("./design-components.css");

:root {
  --bg: var(--jtl-workspace-paper); --side: var(--jtl-workspace-side); --ink: var(--jtl-workspace-ink); --muted: var(--jtl-workspace-muted); --line: var(--jtl-workspace-line); --rail: 212px;
  font: var(--jtl-workspace-text)/1.45 var(--jtl-font-workspace);
  color: var(--ink); background: var(--bg); color-scheme: light; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button { border: 0; background: none; }
button, a, label { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--jtl-workspace-focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.brand .icon, .mobile-brand .icon { flex: none; display: block; }
.icon-button { display: inline-grid; place-items: center; min-width: var(--jtl-control-compact); min-height: var(--jtl-control-compact); padding: 5px; border-radius: var(--jtl-radius-control); color: var(--muted); }
.icon-button:hover { background: #0000000a; }
.rail { position: fixed; z-index: 5; inset: 4px auto 4px 4px; width: var(--rail); border: 1px solid var(--line); border-radius: 13px; padding: var(--jtl-space-3); background: var(--side); display: flex; flex-direction: column; }
.brand-row { display: flex; align-items: center; justify-content: space-between; min-height: 75px; padding: 3px 5px 13px 6px; }
.brand { display:inline-flex;align-items:center;gap:var(--jtl-brand-gap);font-size:var(--jtl-brand-title);font-weight:740;letter-spacing:-.045em;color:#171717 }
.brand .icon { width:var(--jtl-brand-mark-width);height:var(--jtl-brand-mark-height) }
.brand-name { display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1;font-family:var(--jtl-font-ui) }
.brand-name small { margin-top:var(--jtl-brand-line-gap);color:inherit;font-size:var(--jtl-brand-caption);font-weight:560;line-height:1;letter-spacing:.12em;padding-inline-start:.12em }
.side-nav { display: grid; gap: 4px; }
.side-nav a, .side-job { display: flex; align-items: center; gap: var(--jtl-space-4); padding: 12px 13px; border-radius: 11px; color: var(--muted); min-height: var(--jtl-control-touch); }
.side-nav b, .side-job b { font-weight: 650; }
.side-nav a:hover, .side-job:hover { background: #ecebea; }
.side-nav a.active, .side-job.active { background: #242424; color: white; }
.projects { margin-top: 27px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 650; }
.project-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; }

.project-toggle[aria-expanded=false] .icon { transform: rotate(-90deg); }
#project-list { min-height: 0; overflow-y: auto; }
.project-item { display: block; width: 100%; text-align: left; padding: 6px 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.project-item:hover { color: var(--ink); }
.side-nav small { margin-left: auto; color: inherit; font-size: 11px; font-variant-numeric: tabular-nums; }
#project-list { margin-bottom: 15px; }
.progress-card { background: linear-gradient(#fff 3%,#ddd3fa); border: 1px solid #e9e4f5; border-radius: 12px; padding: 12px; margin-bottom: 35px; }
.progress-card > div { display: flex; justify-content: space-between; margin-bottom: 11px; font-size: 12px; font-weight: 700; }
.progress-card strong { color: #7860b9; }
.progress-card button { width: 100%; }
.side-job { margin-bottom: 19px; }
main { margin-left: calc(var(--rail) + 4px); min-height: 100vh; }
.wrap { width: calc(87.5% - 45px); margin-inline: auto; }
.mist { background: linear-gradient(180deg,var(--bg),#cfc4ff 425px,var(--bg) 850px); }
body.filtered .mist { background: var(--bg); }
.mobile-head { display: none; }
.mist > .wrap { container-type: inline-size; }
.headbar { min-height: 88px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.location-name { white-space: nowrap; font-size: 17px; letter-spacing: -.035em; }
.categories { display: flex; align-items: center; gap: 2px; padding-block: 2px; overflow: auto; scrollbar-width: none; }
.categories a { min-height: var(--jtl-control-regular); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 24px; font-weight: 650; color: var(--muted); }
.categories a:hover { background: #0000000b; }
.categories a.active { background: #2a2929; color: #fff; }

.toolbar { display: flex; margin-left: auto; align-items: center; gap: var(--jtl-space-2); }
.toolbar .search { width: clamp(200px,25vw,380px); }
.search { height: var(--jtl-control-touch); flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--jtl-space-3); padding: 0 14px; border: 1px solid var(--jtl-workspace-line); border-radius: var(--jtl-radius-control); background: var(--jtl-white); color: var(--jtl-workspace-ink); }

.search input { width: 100%; min-width: 0; border: 0; outline: none; background: none; text-overflow: ellipsis; }
.search:focus-within { border-color: var(--jtl-workspace-focus); outline: 2px solid var(--jtl-workspace-focus); outline-offset: 2px; }
.search kbd { color: #736f77; border: 1px solid #c9c6cf; border-radius: 8px; padding: 3px 7px; font: 12px/1.5 Arial,sans-serif; white-space: nowrap; }
.pill { border-radius: 999px; min-height: 38px; padding: 0 15px; background: #00000008; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; white-space: nowrap; }
.pill:hover { filter: brightness(.92); }

.pill.square { width: 40px; padding: 0; margin-left: 8px; }
.toolbar .pill { min-height: var(--jtl-control-touch); border-radius: var(--jtl-radius-control); }
.toolbar .pill.square { width: var(--jtl-control-touch); margin-left: 0; border: 1px solid var(--jtl-workspace-line); background: var(--jtl-white); }
.toolbar .new-button { border-radius: var(--jtl-radius-pill); }
.pill.dark { background: #292929; color: white; }
.pill.light { background: white; color: #181818; }
.favorite-count .icon { color: #8269c4; }
.intro { text-align: center; width: min(100%,884px); margin-inline: auto; padding-top: 126px; }
.intro h1 { margin: 0; font-size: 56px; letter-spacing: -.045em; line-height: 1; font-weight: 550; color: #171619; }
.intro > p { margin: 12px 0 48px; font-size: 16px; line-height: 22px; color: #202020; }
.prompt { display: flex; align-items: center; gap: 15px; background: #fff; border-radius: 13px; padding: 16px; min-height: 76px; }
.prompt textarea { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; font-size: 20px; line-height: 25px; padding: 0; resize: none; }
.attach { cursor: pointer; position: relative; width: 44px; height: 44px; flex: none; border: 1px solid #e8e7e8; color: #6a6869; border-radius: 8px; display: grid; place-items: center; }
.attach:hover { background: #f5f4f6; }
.attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.attach:focus-within { outline: 2px solid #7865bf; }
.send { opacity: 0; pointer-events: none; }
.prompt:focus-within .send, .prompt:has(textarea:not(:placeholder-shown)) .send, .prompt.has-ref .send { opacity: 1; pointer-events: auto; }
.attachment { display: flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; margin-top: 8px; padding: 3px 6px 3px 3px; border-radius: 8px; background: #ffffffbe; font-size: 12px; }
.attachment img { width: 28px; height: 28px; object-fit: cover; border-radius: 5px; }
.attachment span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.quick { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 24px; margin-top: 24px; }
.tool-card { display: block; min-width: 0; text-align: left; }
.tool-with-details > .pill { margin-top: 8px; min-height: 40px; font-size: 13px; }
.quick .tool-card { text-align: center; }
.cover { display: block; position: relative; overflow: hidden; aspect-ratio: 4/3; border-radius: 8px; background: #d7d3d4; }
.quick .cover { aspect-ratio: 5/4; border-radius: 12px; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .23s; }
.tool-card:hover img { transform: scale(1.035); }
.tag { position: absolute; top: 10px; left: 10px; border-radius: 999px; background: #fff589; padding: 2px 8px; font-size: 11px; font-weight: 750; color: #171717; }
.quick .tag { top: 8px; left: 8px; font-size: 10px; padding: 1px 6px; }
.tool-card strong { display: block; font-size: 16px; margin: 11px 0 3px; }
.quick .tool-card strong { font-size: 14px; line-height: 19px; font-weight: 550; margin: 8px 0 0; }
.tool-card small, .draft-card small { display: block; color: var(--muted); font-size: 13px; }
.catalog { padding-block: 43px 80px; }
.catalog h2 { font-size: 25px; margin: 0; line-height: 1.25; letter-spacing: -.03em; }
.section { margin-top: 59px; padding-top: 56px; border-top: 1px solid var(--line); }
.section:first-child { padding-top: 0; margin-top: 0; border: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 22px; }
.section-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.section-links .pill { font-size: 13px; min-height: 32px; }
.personal-note { margin: -9px 0 22px; color: var(--muted); font-size: 13px; }
.row-actions { display: flex; gap: 5px; }
.row-actions .pill { min-width: var(--jtl-control-compact); min-height: var(--jtl-control-compact); padding: 0 10px; font-size: 12px; }
.row-actions button:disabled { opacity: .36; cursor: default; }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 45px)/4); gap: 15px; overflow: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.cards .tool-card { scroll-snap-align: start; }
.cards.expanded, .tiles { display: grid; grid-auto-flow: row; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 25px 15px; }
.empty { color: var(--muted); margin: 20px 0; }
.draft-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; text-align: left; background: #fbfaf8; }
.draft-card strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0; overflow-wrap: anywhere; }
.draft-card img { width: 100%; height: 92px; object-fit: cover; border-radius: 7px; }
.compact { --rail: 63px; }
.compact .rail { padding: 7px; }
.compact .brand, .compact .projects, .compact #project-list, .compact .progress-card, .compact .side-nav small, .compact .side-nav b, .compact .side-job b { display: none; }
.compact .brand-row, .compact .side-nav a, .compact .side-job { justify-content: center; padding-inline: 0; }
dialog { width: min(480px,calc(100vw - 32px)); max-height: 85vh; max-height: 85dvh; padding: 0; border: 1px solid #e1dfdd; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 24px 90px #17131c38; }
dialog::backdrop { background: #201d294d; backdrop-filter: blur(4px); }
.close { position: absolute; z-index: 1; top: 12px; right: 12px; width: var(--jtl-control-compact); height: var(--jtl-control-compact); color: #242424; background: #fffffff0; border: 1px solid #e8e6e4; border-radius: 50%; }
.close:hover { background: white; }
.dialog-photo { display: block; width: 100%; height: 169px; object-fit: cover; background: var(--bg); }
.dialog-photo.study-board { object-fit: contain; background: #f5f2e8; }
.dialog-panel { padding: 24px; }
.dialog-panel:first-child { padding-top: 31px; }
.dialog-panel h2 { margin: 0 28px 8px 0; font-size: 28px; line-height: 1.2; letter-spacing: -.04em; }
.dialog-panel > p { margin: 10px 0; color: #64605e; }
.steps { margin: 17px 0 20px; padding-left: 22px; }
.steps li { margin-top: 8px; }
.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.draft-form { display: grid; gap: 14px; margin-top: 16px; }
.draft-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 650; }
.draft-form textarea, .draft-form select { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #faf9f7; padding: 10px; font-size: 15px; font-weight: 400; }
.draft-form textarea { resize: vertical; min-height: 100px; }
.draft-form .dialog-actions { margin-top: 0; }
.draft-ref { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.draft-ref img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.draft-ref span { overflow-wrap: anywhere; }
.idea { display: block; width: 100%; text-align: left; padding: 12px 0; border-top: 1px solid var(--line); }
.idea:hover { color: #69509d; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 6; margin: 0; background: #282629; color: white; border-radius: 999px; font-size: 13px; }
.toast:not(:empty) { padding: 9px 18px; }
@media (min-width:1024px) {
  .toolbar .favorite-count { min-width: 69px; }
  .toolbar > .dark { min-width: 118px; }
  .categories a:not(:first-child) { min-width: 86px; }
}
@media (max-width:1023px) {
  :root, body.compact { --rail: 0px; }
  main { margin: 0; }
  .wrap { width: calc(100% - 24px); }
  .rail { display: none; }
  .rail.mobile-open { display: flex; width: 195px; inset: 7px auto 7px 7px; box-shadow: 9px 0 50px #211b3528; }
  .rail.mobile-open .brand, .rail.mobile-open .projects, .rail.mobile-open .side-nav b, .rail.mobile-open .side-job b, .rail.mobile-open .side-nav small, .rail.mobile-open #project-list { display: revert; }
  .rail.mobile-open .brand, .rail.mobile-open .projects { display: flex; }
  .rail.mobile-open .brand-row { justify-content: space-between; }
  .rail.mobile-open .side-nav a, .rail.mobile-open .side-job { justify-content: flex-start; padding-inline: 12px; }
  .mobile-head { position: sticky; top: 0; z-index: 2; height: 64px; padding: 0 12px; background: var(--bg); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  #open-rail { justify-self: start; }
  .mobile-brand { grid-column: 2; }
  .mobile-brand, .rail .brand { font-size:var(--jtl-brand-title-compact); font-weight:740; letter-spacing:-.045em; }
  .mobile-brand small, .rail .brand small { font-size:var(--jtl-brand-caption-compact); }
  .rail .brand .icon { width:var(--jtl-brand-mark-width-compact); height:var(--jtl-brand-mark-height-compact); }
  .mobile-actions { display: flex; justify-self: end; align-items: center; gap: 4px; }
  .icon-button, .row-actions .pill, .project-toggle, .dialog-actions .pill, .send { min-width: var(--jtl-control-touch); min-height: var(--jtl-control-touch); }
  .mobile-head button { width: var(--jtl-control-touch); height: var(--jtl-control-touch); }

  .mobile-actions .mobile-new { background: var(--jtl-ink); color: white; border-radius: var(--jtl-radius-pill); }
  .headbar { display: none; }
  .show-mobile-search .headbar { display: block; min-height: 0; padding-top: 8px; }
  .location-name, .toolbar > :not(.search), .search kbd { display: none; }
  .toolbar .search { width: 100%; }
  .categories { padding-top: 12px; }
  .intro { padding-top: 128px; }
  .quick .tool-card strong { line-height: 19px; }
}
@media (max-width:767px) {
  .headbar { display: none; }
  .show-mobile-search .headbar { display: block; padding-top: 0; }
  .show-mobile-search .toolbar { margin-top: 9px; }
  .categories a { min-height: 44px; padding-inline: 15px; font-size: 14px; }
  .search { height: var(--jtl-control-touch); padding-inline: 13px; gap: var(--jtl-space-2); }
  .intro { padding-top: 64px; }
  .intro h1 { font-size: clamp(26px,9.24vw,36px); }
  .intro > p { max-width: 258px; margin: 12px auto 32px; font-size: 14px; line-height: 19px; min-height: 38px; }
  .prompt { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; min-height: 156px; gap: 12px; padding: 16px; }
  .prompt textarea { order: -1; grid-column: 1/-1; height: 67px; font-size: 16px; line-height: 22px; }
  .attach { width: 44px; height: 44px; }
  .send { min-height: var(--jtl-control-touch); align-self: center; }
  .quick { grid-template-columns: repeat(7,minmax(68px,1fr)); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; }
  .quick .tool-card { scroll-snap-align: start; }
  .quick .cover { border-radius: 8px; }
  .quick .tag { top: 3px; left: 3px; padding: 0 3px; font-size: 8px; }
  .quick .tool-card strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 16px; font-size: 12px; }
  .catalog h2 { font-size: 21px; }
  .section { margin-top: 33px; padding-top: 30px; }
  .cards { grid-auto-columns: 42%; }
  .cards.expanded, .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 10px; }
  .row-actions { gap: 3px; }
  .row-actions .pill { padding-inline: 6px; }
}
@media (max-height:610px) { .rail .progress-card { display: none; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; } }

.bottom-nav, .rail-scrim { display: none; }
.draft-delete { color: #8d3330; }
@media (max-width:1023px) {
  :root { --bottom-space: calc(60px + env(safe-area-inset-bottom,0px)); }
  main { padding-bottom: var(--bottom-space); }
  .bottom-nav { position: fixed; z-index: 3; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: repeat(4,1fr); background: var(--side); border-top: 1px solid var(--line); padding: 4px 8px calc(4px + env(safe-area-inset-bottom,0px)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; font-size: 11px; color: #655f64; }
  .bottom-nav a > span { border-radius: 20px; padding: 3px 15px; }
  .bottom-nav a.active { color: #211d24; font-weight: 700; }
  .bottom-nav a.active > span { background: #e7dffa; }

  .toast { bottom: calc(var(--bottom-space) + 10px); }
  .rail.mobile-open { overflow-y: auto; width: min(270px, 82vw); }
  .rail.mobile-open .brand-row { flex: none; }
  .rail-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 4; background: #24202859; }
  .drawer-open { overflow: hidden; }
  .drawer-open .bottom-nav { visibility: hidden; }
 
}

.personal-home .mist { background: linear-gradient(180deg, var(--bg) 4%, #ece8f9 57%, var(--bg)); }
.personal-home .intro { width: 100%; padding-top: clamp(24px, 3.2vw, 48px); text-align: left; }
.personal-head, .resume-draft, .resume-action { display: flex; align-items: center; }
.personal-head { justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.personal-head h1 { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.12; }
.all-drafts { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; color: #554f60; }
.all-drafts:hover { color:var(--ink) }
.resume-draft { gap: 22px; width: 100%; min-height: 138px; padding: 24px; border: 1px solid #d9d4e4; border-radius: 16px; background: #fff; text-align: left; }
.resume-draft:hover { border-color: #a79bb7; }
.resume-draft img { width: 86px; height: 86px; border-radius: 9px; object-fit: cover; flex: none; }
.resume-copy { flex: 1; min-width: 0; }
.resume-copy strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.03em; line-height: 1.35; }
.resume-copy small { display: block; color: #69636d; font-size: 13px; margin-top: 8px; }
.resume-action { flex: none; gap: 6px; padding: 10px 14px; border-radius: 22px; font-size: 14px; color: white; background: #29272c; }

.personal-home .prompt { border: 1px solid #d9d4e4; }
.design-launcher { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(140px,1fr); align-items:center; gap:clamp(16px,4vw,58px); margin:16px 0 24px; padding:clamp(18px,3vw,32px); border:1px solid var(--jtl-workspace-line); border-radius:var(--jtl-radius-card); background:var(--jtl-paper); }
.design-launcher h2 { margin:0; font-size:clamp(24px,3vw,38px); line-height:1.12; letter-spacing:-.04em; }
.design-launcher p { margin:8px 0 16px; color:var(--jtl-muted); }
.design-launcher figure { margin:0; min-width:0; }
.design-launcher figure div { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.design-launcher img { display:block; width:100%; height:clamp(72px,9vw,130px); object-fit:contain; border-radius:4px; background:var(--jtl-white); }
.design-launcher figcaption { margin-top:5px; color:var(--jtl-muted); font-size:var(--jtl-text-caption); }
.lab-draft-tile { position:relative; display:grid; }
.lab-draft-tile .draft-card { padding-bottom:42px; }
.lab-draft-tile .draft-manage { position:absolute; right:9px; bottom:5px; min-height:36px; padding:5px 9px; border-radius:var(--jtl-radius-control); font-size:13px; background:transparent; }
@media (max-width:600px) {
  .design-launcher { grid-template-columns:minmax(0,1fr); gap:12px; }
  .design-launcher figure div { max-width:260px; }
  .design-launcher img { height:74px; }
}
.personal-home .send { opacity: 1; pointer-events: auto; }
.tool-shortcuts { margin-top: clamp(40px, 4vw, 60px); }
.tool-shortcuts .section-head { margin-bottom: 8px; }
.tool-shortcuts h2 { margin: 0; font-size: clamp(21px, 2vw, 25px); line-height: 1.25; letter-spacing: -.03em; }
.tool-shortcuts .quick { margin-top: 0; }
.personal-home .catalog { padding-top: clamp(38px, 4vw, 58px); }
@media (max-width: 767px) {
  .personal-home .wrap { width: calc(100% - 32px); }
  .personal-head { margin-bottom: 13px; }
  .resume-draft { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .resume-draft img { width: 54px; height: 54px; }
  .resume-copy { min-width: min(150px, 100%); }
  .resume-action { font-size: 12px; padding: 7px 11px; margin-left: auto; }
  .tool-shortcuts { margin-top: 30px; }
}

.mobile-brand { display:inline-flex; align-items:center; gap:var(--jtl-brand-gap); }
.mobile-brand .icon { width:var(--jtl-brand-mark-width-compact); height:var(--jtl-brand-mark-height-compact); }
.draft-intro { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: #545050; }
.prompt .attach { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 10px; width: auto; min-width: 78px; border-radius: 9px; font-size: 13px; }

.quick .tool-card small { margin-top: 4px; font-size: 12px; line-height: 1.45; }
.quick .tool-card { padding-bottom: 3px; }
.draft-ref { flex-wrap: wrap; }
.draft-form .edit-reference { position: relative; display: inline-flex; cursor: pointer; min-height: 38px; align-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); }
.edit-reference:focus-within { outline: 2px solid #7059b1; }
.edit-reference input { position: absolute; opacity: 0; inset: 0; width: 100%; cursor: pointer; }
#proposal-results { margin-top: 22px; }
#proposal-results h2 { margin: 0 0 8px; font-size: 18px; }
.proposal-result { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 48px; padding: 8px 3px; border-bottom: 1px solid #d7d3dd; }
.proposal-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-weight: 550; }
.proposal-result span { flex: none; color: #554f60; font-size: 13px; }
.proposal-result:hover span { color:var(--ink) }
@media (max-width:767px) {
  .quick { grid-template-columns: repeat(7, minmax(100px, 1fr)); }
  .quick .tool-card { text-align: left; }
  .quick .tool-card strong { font-size: 14px; line-height: 1.35; }
  .prompt .attach { justify-self: start; }
}

/* The account stays outside the scrolling navigation and recent drafts. */
.rail .brand-row, .account-entry { flex-shrink: 0; }
.rail-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.rail-scroll #project-list { overflow: visible; }
.account-entry {
  display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 7px 3px;
  margin-top: 6px; border-top: 1px solid var(--line); color: var(--ink);
}
.account-entry:hover, .account-entry.active { background: #eeede8; }
.account-mark { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; justify-content: center; align-items: center; border-radius: 50%; background: #e9e8e2; }
.account-entry.active .account-mark { background: var(--ink); color: white; }

.account-copy { display: grid; flex: 1; min-width: 0; }
.account-copy b, .account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy b { font-size: 14px; font-weight: 650; }
.account-copy small { font-size: 11px; color: #66645e; }

.account-page { max-width: 780px; margin-bottom: 85px; }
.back-to-workspace { display: inline-flex; align-items: center; min-height: var(--jtl-control-touch); margin-bottom: 8px; gap:6px; color:#645f64; font-weight:550; }
.account-page h1 { margin: 0 0 22px; font-size: clamp(29px,3.2vw,46px); font-weight: 630; letter-spacing: -.045em; line-height: 1.15; }
.account-section { padding: 20px 0; border-top: 1px solid var(--line); }
.account-section h2 { margin: 0 0 6px; font-size: 20px; overflow-wrap: anywhere; }
.account-section p { margin: 0 0 12px; max-width: 38em; color: #64635f; }
.account-section label { display: block; margin: 10px 0 4px; font-size: 14px; font-weight: 600; }
.account-section input { min-width: 0; width: min(100%,340px); min-height: var(--jtl-control-touch); padding: 8px 12px; border: 1px solid #aaa9a0; border-radius: var(--jtl-radius-control); background: white; }
.account-section input[aria-invalid=true] { border-color: #8b3827; }
.account-section .pill, .account-page .signout { min-height: var(--jtl-control-touch); }
.account-input-row,.account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.account-links a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; }
#account-signin { max-width: 340px; }
#account-signin button { display: block; margin-top: 14px; }
.account-feedback { min-height: 1.5em; margin: 10px 0; }
.workspace-library { width: 100%; min-width: 0; }
.workspace-library .channel-status { margin: 2rem; }
.workspace-resource-view .toolbar .search, .workspace-account-view .toolbar .search, .workspace-account-view #open-search { display: none; }
@media(min-width:1024px) {
  .compact .account-entry { justify-content: center; padding-inline: 0; }
  .compact .account-copy, .compact .account-chevron { display: none; }
}
@media(max-width:1023px) {
  .rail.mobile-open { overflow: hidden; }
  .account-entry { padding-bottom: max(7px,env(safe-area-inset-bottom)); }
  .bottom-nav { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .account-page { width: calc(100% - 32px); }
}

.public-exit { display: inline-flex; align-items: center; min-height: 44px; margin: 10px 14px; color: var(--muted); font-size: 13px; }
.compact .public-exit { display: none; }
.channel-switch { display: none; }
.favorite-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 20px; }
.favorite-filters .pill[aria-current="page"], .channel-switch .active { background: var(--ink, #252424); color: white; }
.favorite-cover:has(> svg) { display: grid; place-items: center; background: var(--side); color: var(--muted); }
.favorite-cover > svg { width: 32px; height: 32px; }
.workspace-reader-view .mist, .workspace-reader-view #open-search { display: none; }
@media(max-width:1023px) {
  .channel-switch { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; padding: 4px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .channel-switch a { display: grid; place-items: center; min-height: var(--jtl-control-touch); padding: 0 4px; border-radius: 999px; font-size: 13px; }
  .favorite-filters .pill { min-height: 44px; }
}
