:root { color-scheme: light; --ink: #18263c; --muted: #596b82; --blue: #254edb; --line: #e0e6ee; }
* { box-sizing: border-box; }
body { margin: 0; background: #f5f7fb; color: var(--ink); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 17px; background: var(--blue); border: 1px solid var(--blue); color: white; border-radius: 7px; font-weight: 600; cursor: pointer; text-align: center; }
button:hover, .button:hover { background: #1b3db9; text-decoration: none; }
.secondary { background: white; color: var(--ink); border-color: #cbd5e1; }
.secondary:hover { background: #eef2f8; }
:focus-visible { outline: 3px solid #6686f4; outline-offset: 3px; }
input, select, textarea { max-width: 100%; padding: 10px 12px; border: 1px solid #aab8ca; border-radius: 6px; color: var(--ink); background: white; }
input::placeholder, textarea::placeholder { color: #6d7b8d; }
textarea { min-height: 130px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--blue); vertical-align: middle; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(26px, 3vw, 34px); line-height: 1.25; font-weight: 650; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { margin-bottom: 20px; font-size: 18px; line-height: 1.35; font-weight: 650; letter-spacing: -.02em; }
small { display: block; color: var(--muted); font-size: 12px; }
.muted, .subtle-link { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 10; padding: 12px; background: white; }
.skip:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; background: white; border-right: 1px solid var(--line); padding: 30px 18px 18px; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 18px; line-height: 1.1; letter-spacing: .035em; font-weight: 750; padding: 0 12px 30px; }
.brand:hover { text-decoration: none; }
.brand small { font-size: 9px; letter-spacing: .24em; margin-top: 6px; font-weight: 550; }
.brand-mark { display: block; width: 36px; height: 36px; flex-shrink: 0; }
.nav-label { margin: 22px 12px 10px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .065em; text-transform: uppercase; }
.sidebar nav > a { display: flex; justify-content: space-between; color: #52647b; padding: 10px 13px; margin: 3px 0; border-radius: 6px; font-weight: 550; }
.sidebar nav > a:hover { background: #f5f7fc; text-decoration: none; }
.sidebar nav > a[aria-current] { color: var(--blue); background: #edf1ff; }
.profile { margin-top: auto; padding: 22px 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.profile strong, .profile > span { display: block; }
.profile > span { font-size: 12px; color: var(--muted); margin: 3px 0; }
.text-button { padding: 3px 0; min-height: 32px; color: var(--muted); border: 0; background: none; font-weight: 400; }
.text-button:hover { background: none; text-decoration: underline; }
.workspace { margin-left: 232px; }
.topbar { height: 66px; display: flex; justify-content: space-between; align-items: center; padding: 0 38px; border-bottom: 1px solid var(--line); background: white; color: var(--muted); font-size: 12px; }
.slash { margin: 0 14px; color: #9ba8bb; }
.environment { display: inline-flex; align-items: center; gap: 8px; }
.environment i { width: 6px; height: 6px; border-radius: 50%; background: #2d8061; }
main { max-width: 1460px; margin: auto; padding: 38px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.page-heading > div { min-width: 0; }
.page-heading p:last-child { margin-bottom: 0; }
.page-heading .button { flex-shrink: 0; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .035em; margin-bottom: 10px; }
.status-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.status-strip a { background: white; border: 1px solid var(--line); padding: 18px 22px; border-radius: 9px; color: var(--muted); }
.status-strip a:hover { text-decoration: none; border-color: #829df2; }
.status-strip a[aria-current] { border-color: var(--blue); }
.status-strip strong { display: block; color: var(--ink); font-size: 27px; font-weight: 600; line-height: 1.4; margin-top: 4px; font-variant-numeric: tabular-nums; }
.panel { background: white; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 22px; min-width: 0; }
.padded { padding: 25px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px 22px; }
.search-field { flex: 1; min-width: 170px; }
.search-field input { width: 100%; }
.filters select { max-width: 240px; }
.filters > a { padding: 9px 4px; font-size: 12px; }
.table-meta { padding: 15px 23px; display: flex; justify-content: space-between; gap: 12px; border-block: 1px solid var(--line); font-size: 12px; }
.table-meta > span:first-child { font-weight: 600; }
.table-meta > span:last-child { color: var(--muted); }
.count { display: inline-block; margin-left: 5px; padding: 1px 7px; border-radius: 5px; background: #eef2f7; color: #52647b; font-size: 11px; vertical-align: middle; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 23px; font-size: 11px; font-weight: 500; color: var(--muted); background: #fafbfe; white-space: nowrap; }
td { padding: 18px 23px; border-top: 1px solid #edf0f5; font-size: 13px; overflow-wrap: anywhere; }
td a { color: var(--ink); }
td small { margin-top: 4px; }
tbody tr:hover { background: #fafbff; }
.primary-cell { min-width: 220px; width: 40%; font-weight: 550; }
.nowrap { white-space: nowrap; }
.badge { display: inline-block; white-space: nowrap; padding: 3px 9px; background: #edf1f6; color: #53677e; border-radius: 5px; font-size: 11px; font-weight: 550; }
.badge.in_progress { background: #edf1ff; color: #2346be; }
.badge.review { background: #fff4dd; color: #876012; }
.badge.done { background: #e8f5ef; color: #25654c; }
.empty { padding: 45px 24px; text-align: center; }
.empty-symbol { display: inline-block; color: #8092ae; font-size: 30px; margin-bottom: 10px; }
.empty h2 { margin-bottom: 8px; }
.empty p { color: var(--muted); }
.pagination { display: flex; gap: 20px; align-items: center; justify-content: flex-end; padding: 15px 23px; font-size: 12px; border-top: 1px solid var(--line); }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.action-bar .button { font-size: 12px; min-height: 38px; padding: 8px 12px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
.detail-main, .detail-side { min-width: 0; }
.prose { overflow-wrap: anywhere; line-height: 1.85; }
dl { margin: 0; }
dt { font-size: 11px; color: var(--muted); margin: 20px 0 4px; }
dt:first-child { margin-top: 0; }
dd { margin: 0; overflow-wrap: anywhere; }
.participant { border-top: 1px solid var(--line); padding: 16px 0; }
.participant:last-child { padding-bottom: 0; }
.participant strong { font-weight: 550; }
.participant a { font-size: 11px; }
.participant-group + .participant-group { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.participant-group h3 { color: var(--muted); font-size: 12px; font-weight: 550; margin: 0 0 9px; }
.participant-list { list-style: none; margin: 0; padding: 0; }
.participant-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; padding: 3px 0; }
.participant-list li > span { min-width: 0; overflow-wrap: anywhere; }
.participant-remove { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; color: var(--muted); border-radius: 5px; font-size: 20px; line-height: 1; }
.participant-remove:hover { background: #fff0f1; color: #a02031; text-decoration: none; }
.comment { padding: 20px 0; border-top: 1px solid var(--line); }
.comment:last-child { padding-bottom: 0; }
.comment-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.comment-meta time { color: var(--muted); font-size: 11px; }
.section-heading, .item-row, .member-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-heading { margin-bottom: 10px; }
.section-heading h2 { margin: 0; }
.section-heading a { font-size: 12px; }
.item-row, .member-row { padding: 17px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.item-row { color: var(--ink); }
.item-row:first-of-type { margin-top: 15px; }
.row-actions { display: flex; flex-direction: column; gap: 6px; font-size: 11px; flex-shrink: 0; }
.form-panel { max-width: 780px; padding: 28px; }
.field { margin-bottom: 24px; }
.field label { display: block; font-weight: 550; margin-bottom: 7px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; }
.field div > label { font-weight: 400; }
.field .helptext { display: block; color: var(--muted); font-size: 12px; margin: 7px 0; }
.field .helptext ul { padding-left: 18px; }
.form-actions { display: flex; align-items: center; gap: 20px; padding-top: 10px; }
.form-hint { padding: 16px 20px; color: #385175; background: #eaf0ff; border-left: 3px solid #7999ed; margin-bottom: 24px; border-radius: 0 6px 6px 0; }
.errorlist { color: #a02031; padding-left: 20px; font-size: 13px; }
.errorlist.nonfield { background: #fff0f1; padding: 15px 20px 15px 35px; border-radius: 6px; }
[aria-invalid="true"] { border-color: #b1263c; }
.notice { background: #e8f5ef; color: #25654c; border: 1px solid #b9dfcb; padding: 12px 18px; border-radius: 7px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.choice-card { display: flex; justify-content: space-between; padding: 25px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; }
.choice-card:hover { border-color: var(--blue); text-decoration: none; }
pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.8 ui-monospace, monospace; background: #f5f7fb; padding: 18px; border-radius: 6px; }
.guest { margin-left: 0; }
.guest main { max-width: 490px; padding: 30px; margin: 8vh auto; }
.login-card { padding: 30px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.login-card .brand { padding: 0 0 30px; }
.login-card h1 { font-size: 26px; }
.login-card button { width: 100%; }
.demo-guide { margin-top: 24px; padding: 24px 8px; border-top: 1px solid var(--line); }
.demo-guide h2 { font-size: 19px; }
.demo-guide code { font-size: 13px; overflow-wrap: anywhere; }
.demo-guide dl > div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.demo-guide dd { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) { .sidebar { width: 200px; } .workspace { margin-left: 200px; } main { padding: 28px 22px; } .topbar { padding: 0 22px; } .guest { margin-left: 0; } .detail-grid { grid-template-columns: minmax(0, 1fr) 245px; } td, th { padding-inline: 17px; } }
@media (max-width: 800px) { .sidebar { position: static; width: 100%; padding: 16px 16px 10px; border-right: 0; border-bottom: 1px solid var(--line); } .brand { padding: 0 0 14px; font-size: 15px; } .brand-mark { width: 30px; height: 30px; font-size: 23px; } .nav-label { display: none; } .sidebar nav { display: flex; gap: 4px; overflow-x: auto; } .sidebar nav > a { white-space: nowrap; padding: 8px 12px; font-size: 12px; } .sidebar nav a span { display: none; } .profile { padding: 10px 0 0; margin-top: 8px; display: flex; align-items: center; gap: 12px; font-size: 11px; } .profile > span { display: none; } .profile form { margin-left: auto; } .workspace { margin-left: 0; } .topbar { height: 44px; font-size: 10px; } main { padding: 24px 16px; } .detail-grid { grid-template-columns: 1fr; gap: 0; } .detail-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; } .page-heading { align-items: flex-start; } .status-strip { gap: 10px; } .status-strip a { padding: 14px; font-size: 12px; } }
@media (max-width: 520px) { .page-heading { flex-direction: column; gap: 16px; } .page-heading .button { width: 100%; } .status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .table-meta > span:last-child { display: none; } .filters { padding: 16px; } .search-field { flex-basis: 100%; } .filters > div:not(.search-field) { flex: 1; min-width: 0; } .filters select { width: 100%; } .filters .secondary { flex: 1; } .topbar .environment { display: none; } .detail-side { display: block; } .padded, .form-panel { padding: 20px; } .section-heading, .member-row { align-items: flex-start; flex-direction: column; gap: 12px; } .row-actions { flex-direction: row; flex-wrap: wrap; gap: 14px; } .guest main { padding: 16px; margin: 4vh auto; } .login-card { padding: 25px; } }

/* Task discussion: one level of replies with links to the original comment. */
.comment-composer { padding: 18px 0 24px; border-bottom: 1px solid var(--line, #e5e9f0); }
.comment-composer textarea { min-height: 110px; resize: vertical; }
.comment-composer .form-actions { margin-top: 12px; }
.comment-composer .form-hint { margin: 8px 0 0; font-size: 12px; background: none; border: 0; padding: 0; }
.comment-composer .form-hint:empty { display: none; }
.mention-field { position: relative; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.comment-quote, .reply-preview { display: flex; gap: 12px; padding: 12px 14px; margin: 12px 0; border-left: 3px solid #8fa6c5; background: #f3f6fb; border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.comment-quote { flex-direction: column; gap: 4px; color: #465a76; font-size: 13px; }
.comment-quote span { white-space: pre-wrap; }
.reply-preview { justify-content: space-between; align-items: flex-start; }
.reply-preview p { margin: 6px 0 0; font-size: 13px; }
.reply-preview[hidden], .mention-options[hidden] { display: none; }
.comment-reply { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; }
.comment-time { color: #64748b; font-size: 12px; }
.comment:target { background: #f2f6fc; outline: 2px solid #aec5e6; outline-offset: 8px; border-radius: 4px; }
.mention { color: #163c74; background: #eaf1fc; border-radius: 4px; padding: 1px 3px; box-decoration-break: clone; }
.mention-options { position: absolute; z-index: 5; top: 100%; margin-top: 4px; left: 0; width: min(100%, 380px); max-height: 230px; overflow-y: auto; border: 1px solid #ccd7e5; background: white; border-radius: 8px; box-shadow: 0 8px 24px #162c4824; }
.mention-options [role='option'] { padding: 12px 14px; cursor: pointer; overflow-wrap: anywhere; }
.mention-options [aria-selected='true'], .mention-options [role='option']:hover { background: #eaf1fc; color: #12386c; }
.notification-count { min-width: 22px; padding: 1px 6px; text-align: center; border-radius: 12px; background: #d9e7ff; color: #12386c; font-weight: 700; }
.notification-unread { border-left: 3px solid #426da7; padding-left: 16px; }
.notification-title { font-size: 16px; margin: 12px 0 8px; }

.topbar { position: sticky; top: 0; z-index: 30; }
.topbar-actions { display: flex; align-items: center; gap: 24px; }
.skip { z-index: 50; }
[id^="comment-"], #comments, #comment-form { scroll-margin-top: 86px; }
.notification-menu { position: relative; }
.notification-bell { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; color: #24426b; cursor: pointer; list-style: none; }
.notification-bell::-webkit-details-marker { display: none; }
.notification-bell:hover, .notification-menu[open] .notification-bell { background: #edf2fa; }
.bell-count { position: absolute; top: 0; right: -4px; min-width: 18px; padding: 1px 4px; border-radius: 10px; background: #254edb; color: white; font-size: 10px; line-height: 16px; font-weight: 650; text-align: center; }
.notification-popover { position: absolute; right: 0; top: 50px; width: 360px; max-width: calc(100vw - 32px); max-height: min(620px, 75vh); overflow-y: auto; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px #14253c26; color: var(--ink); }
.notification-popover-heading { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.notification-popover-heading strong { font-size: 16px; }
.notification-preview { padding: 16px 20px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.notification-preview.is-unread { background: #f4f7ff; box-shadow: inset 3px 0 #416bdb; }
.notification-preview > strong, .notification-preview > span { display: block; }
.notification-preview > span { margin: 5px 0; }
.notification-preview p { margin: 6px 0; color: var(--muted); }
.notification-preview .text-button { color: var(--blue); font-size: 12px; }
.notification-empty { padding: 24px 20px; margin: 0; }
.rich-editor { min-width: 0; width: 100%; }
.rich-editor .ql-toolbar { border: 1px solid #aab8ca; border-radius: 6px 6px 0 0; background: #f8faff; padding: 6px; display: flex; flex-wrap: wrap; gap: 2px; }
.rich-editor .ql-toolbar button { min-height: 34px; width: 34px; height: 34px; padding: 7px; border: 0; border-radius: 4px; background: transparent; }
.rich-editor .ql-toolbar button:hover, .rich-editor .ql-toolbar button.ql-active { background: #e4ebfb; }
.rich-editor .ql-container { border: 1px solid #aab8ca; border-top: 0; border-radius: 0 0 6px 6px; font: inherit; background: white; }
.rich-editor .ql-editor { min-height: 160px; max-height: 560px; padding: 14px; overflow-y: auto; line-height: 1.7; }
.rich-editor .ql-editor:focus-visible { outline-offset: -2px; border-radius: 0 0 6px 6px; }
.rich-editor .ql-editor.ql-blank::before { font-style: normal; color: var(--muted); }
.rich-editor img, .rich-content img { display: inline-block; max-width: 100%; max-height: 600px; height: auto; object-fit: contain; vertical-align: middle; border-radius: 4px; }
.rich-content { overflow-wrap: anywhere; line-height: 1.75; white-space: normal; }
.rich-content p { margin: 0 0 .75em; white-space: pre-wrap; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content ul, .rich-content ol { padding-left: 1.6em; margin: .5em 0 1em; }
.rich-content li { white-space: pre-wrap; }
.rich-content blockquote { border-left: 3px solid #c3cfe4; margin: .5em 0; padding: 4px 16px; color: var(--muted); white-space: pre-wrap; }
.rich-content a { text-decoration: underline; }
.editor-hint, .editor-status { font-size: 12px; line-height: 1.5; margin: 7px 0 0; color: var(--muted); }
.editor-status:not(:empty) { color: #274677; }
.editor-status:empty { display: none; }
.editor-link-dialog { width: min(460px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.editor-link-dialog::backdrop { background: #15203966; }
.editor-link-dialog label { display: grid; gap: 8px; }
.editor-link-dialog .form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
@media (max-width: 800px) { .topbar-actions { gap: 12px; } .notification-bell { height: 36px; width: 36px; } .notification-popover { top: 42px; } }

/* The application supplies a keyboard-accessible Russian link dialog. */
.rich-editor .ql-tooltip { display: none !important; }
/* Readable, task-scoped deadline history; the administrative audit stays separate. */
.deadline-event { padding: 14px 0; border-top: 1px solid #e2e8f0; }
.deadline-event p { margin: 0 0 6px; }
.deadline-event time { font-size: 12px; }
