@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin.260c81a4759b.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #737373;
  --line: #e5e5e5;
  --accent: #3f76ff;
  --accent-hover: #3464de;
  --accent-soft: #eef3ff;
  --paper: #fff;
  --sidebar: #fafafa;
  --radius: 6px;
}

/* Workspace density follows the Plane reference supplied by the user. */

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #315fd5; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.topbar { height: 56px; border-bottom: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; gap: 20px; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 17px; letter-spacing: -.5px; }
.brand:hover { text-decoration: none; }
/* Display the original square logo inside a compact mark without changing its bitmap. */
.brand-mark { position: relative; display: inline-block; width: 32px; height: 39px; overflow: hidden; flex: 0 0 32px; }
.brand-mark img { position: absolute; width: 65px; height: 65px; max-width: none; left: -18px; top: -14px; }
.brand-divider { color: #d4d4d4; font-weight: 400; margin: 0 4px; }
.brand-caption { color: #737373; font-size: 13px; font-weight: 450; letter-spacing: 0; }
nav { display: flex; align-items: center; gap: 18px; font-size: 12px; }
nav form { margin: 0; }
.account { color: var(--muted); font-size: 12px; }
.text-button { border: 0; background: none; color: #525252; padding: 8px 0; }

.workspace-sidebar { position: fixed; inset: 56px auto 0 0; width: 228px; padding: 20px 12px; border-right: 1px solid var(--line); background: var(--sidebar); display: flex; flex-direction: column; }
.workspace-name { display: flex; align-items: center; gap: 10px; padding: 0 10px 28px; min-width: 0; }
.company-avatar { width: 30px; height: 30px; border: 1px solid #dbe3fc; border-radius: 5px; background: var(--accent-soft); color: #315fd5; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.workspace-name > div { min-width: 0; }
.workspace-name strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.workspace-name div > span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.sidebar-label { padding: 0 10px 10px; font-size: 11px; font-weight: 500; color: #8c8c8c; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: #525252; font-size: 13px; border-radius: 5px; margin-bottom: 4px; }
.sidebar-link > span { font-size: 17px; width: 20px; text-align: center; line-height: 20px; }
.sidebar-link:hover { background: #f0f0f0; text-decoration: none; }
.sidebar-link.active { background: #eee; color: #171717; font-weight: 550; }
.sidebar-bottom { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--line); color: #737373; font-size: 11px; }
.sidebar-bottom span { display: block; margin-top: 4px; color: #8c8c8c; font-size: 10px; }

.container { max-width: 1120px; min-height: calc(100vh - 113px); margin: auto; padding: 40px 32px 60px; }
.workspace .container { max-width: none; margin-left: 228px; padding: 36px 40px 56px; }
.eyebrow { font-size: 11px; letter-spacing: .6px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
h1 { font-size: 26px; line-height: 1.3; letter-spacing: -.75px; font-weight: 600; margin: 0 0 10px; }
h2 { font-size: 14px; line-height: 1.4; font-weight: 600; margin: 0 0 5px; }
h3 { font-size: 14px; line-height: 1.4; font-weight: 550; margin: 0 0 10px; }
p { margin: 0 0 18px; }
.intro, .page-heading p { color: var(--muted); font-size: 13px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading p { margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--accent); color: white; border: 1px solid transparent; border-radius: 5px; padding: 7px 12px; font-size: 12px; font-weight: 500; white-space: nowrap; min-height: 34px; }
.button:hover { background: var(--accent-hover); text-decoration: none; }
.secondary { background: var(--paper); border: 1px solid var(--line); color: #525252; border-radius: 5px; padding: 6px 10px; }
.secondary:hover { background: #fafafa; }
.small { font-size: 12px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); font-size: 12px; }
.filter { display: flex; align-items: center; gap: 8px; }
.filter label { font-size: 11px; color: var(--muted); }
.filter select { width: auto; min-height: 30px; font-size: 12px; padding: 4px 24px 4px 8px; }
.ticket-row { display: flex; align-items: center; gap: 12px; color: var(--ink); padding: 15px 20px; border-bottom: 1px solid #f0f0f0; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { background: #fafafa; text-decoration: none; }
.ticket-kind { width: 28px; height: 28px; flex-shrink: 0; background: #f5f5f5; border: 1px solid #ededed; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #737373; font-size: 19px; }
.ticket-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.ticket-text strong { font-size: 13px; overflow-wrap: anywhere; font-weight: 500; }
.ticket-text > span { color: var(--muted); font-size: 11px; }
.badge { display: inline-block; border: 1px solid #e5e5e5; border-radius: 4px; padding: 2px 8px; white-space: nowrap; font-size: 11px; font-weight: 450; background: #fafafa; color: #737373; }
.badge.progress { border-color: #e0d9fc; background: #f5f2ff; color: #7456b6; }
.badge.resolved { border-color: #d2e7dc; background: #eff8f2; color: #39805c; }
.badge.cancelled { border-color: #eddada; background: #fbf3f3; color: #ab6565; }
.chevron { color: #8c8c8c; }
.empty { padding: 72px 24px; text-align: center; }
.empty p { font-size: 12px; max-width: 380px; margin: 10px auto 20px; color: var(--muted); }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #fafafa; border: 1px solid var(--line); border-radius: 8px; color: #737373; font-size: 24px; margin-bottom: 18px; }
.empty h3 { font-size: 15px; font-weight: 550; }
.empty a { font-size: 12px; }
.help-note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); padding: 18px 0; }
.help-note > span { color: #8c8c8c; }
.help-note p { font-size: 11px; }
.help-note strong { color: #525252; font-weight: 500; }
.pagination { justify-content: center; border-top: 1px solid var(--line); padding: 14px; font-size: 12px; }
.back { display: inline-block; margin-bottom: 24px; font-size: 12px; color: #737373; }
.narrow { max-width: 680px; margin: auto; }
.form-panel { padding: 24px; margin-top: 24px; }
.field { margin: 0 0 20px; }
.field label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 7px; }
input, textarea, select { width: 100%; background: var(--paper); border: 1px solid #d9d9d9; border-radius: 5px; min-height: 36px; padding: 8px 10px; color: var(--ink); font-size: 13px; }
input::placeholder, textarea::placeholder { color: #8c8c8c; }
input:hover, textarea:hover, select:hover { border-color: #bfbfbf; }
textarea { resize: vertical; line-height: 1.6; }
input[type=file] { font-size: 12px; padding: 9px; background: #fafafa; }
input[type=file]::file-selector-button { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; color: #525252; margin-right: 12px; font: inherit; }
.field-help, .helptext { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.field-help ul, .helptext ul { padding-left: 18px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
.form-actions a { font-size: 12px; color: #737373; }
.errorlist { font-size: 12px; color: #c03e3e; padding-left: 18px; }
.notice { background: var(--accent-soft); color: #3159b3; border: 1px solid #dbe3fc; border-radius: 5px; padding: 11px 14px; margin-bottom: 22px; font-size: 12px; }

.auth-page .container { display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 80px; }
.auth-card { padding: 0; width: 100%; max-width: 370px; border: 0; border-radius: 0; overflow: visible; }
.auth-card h1 { font-size: 23px; font-weight: 600; letter-spacing: -.6px; }
.auth-card > p { font-size: 13px; color: var(--muted); }
.auth-card form { margin-top: 30px; }
.auth-card .button { min-height: 38px; font-size: 13px; }
.auth-card input { min-height: 40px; }
.full { width: 100%; }
.auth-link { font-size: 12px; display: block; text-align: center; margin-top: 18px; }
.invitation-note { text-align: center; font-size: 11px !important; color: #737373 !important; margin: 20px 0 0 !important; line-height: 1.7; }
.invitation-note + .invitation-note { border-top: 1px solid var(--line); padding-top: 18px; }
.centered { margin: auto; }

.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 28px; }
.detail-heading h1 { font-size: 24px; overflow-wrap: anywhere; margin: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; align-items: start; }
.conversation { padding: 22px; }
.conversation h2 { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.message { padding: 22px 0; border-bottom: 1px solid var(--line); }
.message-meta { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.message-meta strong { font-weight: 550; }
.message-meta time { margin-left: auto; color: #737373; font-size: 10px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; flex-shrink: 0; border-radius: 5px; font-size: 10px; background: #f0f0f0; color: #737373; }
.team .avatar { background: var(--accent-soft); color: #315fd5; font-size: 18px; }
.message-body { margin: 12px 0 0 34px; font-size: 13px; overflow-wrap: anywhere; }
.pending-note { font-size: 10px; color: #997c3a; margin: 10px 0 0 34px; }
.attachment { display: block; margin: 12px 0 0 34px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; overflow-wrap: anywhere; }
.attachment span { color: var(--muted); margin-left: 8px; }
.reply-form { padding-top: 24px; }
.reply-form h3 { margin-bottom: 20px; }
.sidebar-card { padding: 20px; background: #fafafa; }
.sidebar-card p { font-size: 12px; color: var(--muted); }
.sidebar-card p:last-child { margin: 0; }
.sidebar-card hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
footer { padding: 18px 24px; margin: auto; border-top: 1px solid #f0f0f0; font-size: 10px; color: #8c8c8c; display: flex; justify-content: space-between; gap: 20px; }
.workspace footer { margin-left: 228px; padding-left: 40px; padding-right: 40px; }
.skip { position: absolute; left: 12px; top: -100px; background: var(--paper); padding: 10px; z-index: 10; }
.skip:focus { top: 10px; }

@media (max-width: 1050px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid aside { order: -1; }
  .sidebar-card { padding: 15px 18px; }
  .sidebar-card p, .sidebar-card hr { display: none; }
  .sidebar-card h3 { margin: 0; font-size: 12px; }
  .sidebar-card .eyebrow { margin-bottom: 4px; font-size: 10px; }
}
@media (max-width: 800px) {
  .workspace-sidebar { position: static; width: auto; padding: 10px 18px; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; gap: 8px; }
  .workspace-name, .sidebar-label, .sidebar-bottom { display: none; }
  .sidebar-link { margin: 0; padding: 6px 10px; font-size: 12px; }
  .workspace .container { margin-left: 0; padding: 28px 22px 44px; min-height: calc(100vh - 167px); }
  .workspace footer { margin-left: 0; padding: 18px 22px; }
  .account { display: none; }
}
@media (max-width: 540px) {
  .container { padding: 28px 20px 45px; }
  .topbar { padding: 0 18px; }
  .brand { gap: 7px; font-size: 16px; }
  .brand-caption { font-size: 12px; }
  .brand-divider { margin: 0; }
  nav { gap: 10px; font-size: 11px; }
  .workspace .container { padding: 24px 16px 40px; }
  h1 { font-size: 23px; }
  .page-heading { display: block; margin-bottom: 24px; }
  .page-heading .button { margin-top: 18px; }
  .panel-heading { padding: 15px; align-items: flex-start; flex-direction: column; gap: 14px; }
  .filter { width: 100%; }
  .filter select { flex: 1; }
  .filter label { display: none; }
  .ticket-row { gap: 10px; padding: 14px; flex-wrap: wrap; }
  .ticket-text { flex-basis: calc(100% - 45px); }
  .ticket-row .badge { margin-left: 38px; }
  .chevron { margin-left: auto; }
  .form-panel, .conversation { padding: 18px 15px; }
  .auth-card h1 { font-size: 22px; }
  .detail-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .detail-heading h1 { font-size: 22px; }
  .message-meta { flex-wrap: wrap; }
  .message-meta time { margin-left: 34px; flex-basis: 100%; }
  .message-body, .attachment, .pending-note { margin-left: 0; }
  .empty { padding: 50px 20px; }
}

/* Compact light workspace */
.topbar { height: 40px; padding: 0 16px; background: #fff; }
.brand { font-size: 14px; }
.brand-mark { width: 24px; height: 29px; flex-basis: 24px; border-radius: 5px; background: #fff; }
.brand-mark img { width: 50px; height: 50px; left: -14px; top: -11px; }
.workspace-sidebar { inset: 40px auto 0 0; width: 250px; padding: 16px 12px; }
.workspace .container { margin-left: 250px; min-height: calc(100vh - 97px); padding: 24px 28px 40px; }
.workspace footer { margin-left: 250px; }
.auth-page .container { min-height: calc(100vh - 97px); }
.list-page .container { padding: 0; min-height: calc(100vh - 40px); }
.list-page footer { display: none; }
.work-items-heading { min-height: 48px; padding: 8px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.breadcrumbs { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 13px; }
.breadcrumbs > span:not(.project-dot):not(.breadcrumb-divider):not(.item-count) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs h1 { font-size: 13px; font-weight: 550; letter-spacing: 0; margin: 0; }
.breadcrumb-divider { color: #8c8c8c; }
.project-dot { width: 10px; height: 10px; border-radius: 50%; background: #7ca3df; flex-shrink: 0; }
.item-count { border-radius: 9px; padding: 0 7px; color: #315fd5; font-size: 10px; background: #eef3ff; }
.work-items-heading .button { min-height: 30px; padding: 5px 10px; }
.work-items-toolbar { min-height: 48px; padding: 8px 24px; border-bottom: 1px solid var(--line); background: #fafafa; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.work-items-toolbar h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; font-weight: 500; }
.toolbar-count { color: #737373; font-size: 11px; }
.work-items .ticket-row { min-height: 47px; padding: 10px 24px; gap: 14px; }
.work-items .ticket-kind { width: 17px; height: 20px; border: 0; background: none; font-size: 15px; color: #737373; }
.work-items .ticket-text { flex-direction: row; flex-wrap: wrap; gap: 5px 12px; align-items: center; }
.work-items .ticket-text strong { font-size: 13px; font-weight: 500; }
.work-items .pending-note { margin: 0; font-size: 10px; }
.work-items .badge { display: inline-flex; align-items: center; gap: 6px; padding: 1px 6px; background: transparent; font-size: 11px; line-height: 17px; }
.status-dot { width: 9px; height: 9px; border: 1.5px dotted #8c8c8c; border-radius: 50%; }
.progress .status-dot { border-style: solid; border-color: #7456b6; background: #b9a5d6; }
.resolved .status-dot { border-style: solid; border-color: #39805c; background: #39805c; }
.cancelled .status-dot { border-style: solid; border-color: #ab6565; }
.ticket-date { color: #737373; font-size: 10px; min-width: 42px; text-align: right; }
.new-row { min-height: 44px; padding: 11px 24px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); color: #525252; font-size: 12px; }
.new-row:hover { background: #fafafa; text-decoration: none; }
.new-row > span { font-size: 16px; color: #737373; }
.panel { background: #fff; }
input, textarea, select { background: #fff; }
footer { border-color: var(--line); }
@media (max-width: 800px) {
  .workspace-sidebar { position: static; width: auto; padding: 8px 14px; }
  .workspace .container { margin-left: 0; padding: 22px 18px 40px; min-height: calc(100vh - 145px); }
  .workspace footer { margin-left: 0; }
  .list-page .container { padding: 0; }
  .work-items-heading, .work-items-toolbar { padding-left: 16px; padding-right: 16px; }
  .work-items .ticket-row { padding: 11px 16px; }
}
@media (max-width: 540px) {
  .breadcrumbs { gap: 8px; font-size: 12px; }
  .breadcrumbs h1 { font-size: 12px; }
  .project-dot, .ticket-date { display: none; }
  .work-items-heading { gap: 12px; flex-wrap: wrap; }
  .work-items-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .work-items .ticket-row { gap: 10px; flex-wrap: nowrap; }
  .work-items .ticket-text { flex: 1; min-width: 0; }
  .work-items .ticket-text strong { font-size: 12px; }
  .work-items .ticket-row .badge { margin-left: 0; font-size: 10px; }
  .work-items .chevron { display: none; }
}

/* Private image previews inside the conversation. */
.attachment-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 260px)); gap: 12px; margin: 16px 0 0 34px; }
.capture-card { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.capture-image { display: block; background: #fafafa; border-bottom: 1px solid var(--line); }
.capture-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 240px; object-fit: contain; }
.capture-image:hover { background: #f0f3fa; }
.capture-card figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 10px 4px; font-size: 11px; }
.capture-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.capture-size { color: var(--muted); flex-shrink: 0; font-size: 10px; }
.capture-actions { display: flex; justify-content: space-between; gap: 12px; padding: 5px 10px 10px; font-size: 11px; }
.attachment-gallery .file-card { margin: 0; display: flex; align-items: center; gap: 10px; padding: 14px; align-self: start; }
.file-card > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.file-card small { display: block; color: var(--muted); margin-top: 3px; }
.file-type { color: #737373; border: 1px solid var(--line); border-radius: 4px; padding: 7px 4px; font-size: 10px; }
@media (max-width: 540px) { .attachment-gallery { margin-left: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 260px)); } }

.live-update-status { font-size: 11px; color: var(--muted); margin: -12px 0 22px; }

/* Keep the request focused on its conversation and reply. */
.workspace .container { min-height: calc(100vh - 40px); }
.detail-page .container { max-width: 1440px; }
.detail-page .back { margin-bottom: 18px; }
.detail-page .detail-heading { align-items: flex-start; margin-bottom: 22px; gap: 18px; }
.detail-heading > div { min-width: 0; }
.detail-page .detail-heading h1 { font-size: 22px; }
.ticket-visibility { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.detail-page .conversation { padding: 18px 22px; }
.detail-page .conversation h2 { padding-bottom: 12px; }
.detail-page .message { padding: 16px 0; }
.detail-page .reply-form { padding-top: 18px; }
.detail-page .reply-form .field { margin-bottom: 12px; }
.detail-page .reply-form .field label { font-size: 14px; margin-bottom: 10px; }
.detail-page .reply-form textarea { min-height: 100px; height: 100px; }
.compact-attachments { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.attach-button { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; padding: 6px 10px; color: #525252; font-size: 12px; overflow: hidden; }
.attach-button:hover { background: #fafafa; }
.attach-button:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.attach-button input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; }
.reply-submit { margin-top: 16px; }
.live-update-status { margin: 0 0 16px; }
@media (max-width: 540px) {
  .detail-page .conversation { padding: 16px 14px; }
  .detail-page .detail-heading h1 { font-size: 20px; }
  .compact-attachments { gap: 8px; }
  .compact-attachments .muted { font-size: 11px; }
}
