:root {
  color-scheme: light;
  font: 15px/1.5 system-ui, sans-serif;
  color: #172333;
  background: #f4f6fa;
  --muted: #556479;
  --line: #dfe5ee;
  --accent: #2148cf;
  --nav: #111c32;
}
.member-preview { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 12px 20px 0; padding: 10px 14px; border: 1px solid #a9bbfc; border-radius: 8px; background: #eef2ff; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #6385ff; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.14; letter-spacing: -.045em; }
h2 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -.02em; }
h3 { font-size: 1rem; }
small { font-size: .81rem; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 1rem; left: 1rem; padding: .7rem; z-index: 2; background: white; }
.shell { min-height: 100dvh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { background: var(--nav); color: #e7edfb; display: flex; flex-direction: column; padding: 31px 17px 20px; }
.brand { display: flex; align-items: center; gap: 12px; padding-left: 9px; margin-bottom: 47px; font-size: 1.65rem; font-weight: 750; letter-spacing: -.065em; line-height: .95; }
.brand small { display: block; font-size: .56rem; font-weight: 700; letter-spacing: .19em; margin-top: .45rem; color: #aab9d5; }
.mark { display: grid; place-items: center; background: #496cff; color: white; width: 40px; height: 40px; border-radius: 11px; font-size: 1.48rem; }
nav { display: grid; gap: 5px; }
nav button { text-align: left; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 8px; padding: 11px 10px; color: #bac8e1; background: none; font-size: .89rem; font-weight: 620; }
nav button span { width: 19px; text-align: center; font-size: 1.08rem; }
nav button:hover, nav button[aria-current] { color: white; background: #26395f; }
.sidebar-end { margin-top: auto; padding: 22px 9px 0; color: #aab9d5; font-size: .78rem; }
.demo-dot { display: inline-block; width: 7px; height: 7px; background: #5bdfa6; border-radius: 50%; margin-right: 5px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 46px); background: #fff; border-bottom: 1px solid var(--line); }
.crumb, .role { color: var(--muted); font-size: .82rem; }
.crumb strong { color: #263650; }
.role { display: flex; align-items: center; gap: 8px; }
.topbar-actions, .dialog-tools { display: flex; align-items: center; gap: 8px; }
.topbar-actions { flex-wrap: wrap; justify-content: end; }
.topbar-utilities, .language-flags { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.flag-button { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 6px; }
.flag-button svg { width: 22px; height: 14px; border: 1px solid #b8c4d7; border-radius: 2px; }
.flag-button[aria-pressed="true"] { border-color: var(--accent); background: #e8eeff; }
.project-work-list p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0; }
.project-work-people { display: grid; gap: 6px; margin: 8px 0; border: 1px solid var(--line); }
.project-work-people label { display: flex; align-items: center; gap: 8px; }
.project-work-people input { width: auto; }
.help-button { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--accent); font-weight: 750; }
.help-button:hover { background: #eaf0ff; border-color: #9caff5; }
.workspace { max-width: 1400px; margin: auto; padding: 36px clamp(16px, 4vw, 46px) 44px; }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.eyebrow { color: var(--accent); font-weight: 750; letter-spacing: .115em; font-size: .68rem; margin-bottom: 7px; }
.subtitle { color: var(--muted); margin-top: 9px; }
.primary, .secondary, .arrow, .close { border: 1px solid transparent; border-radius: 8px; padding: 9px 13px; font-weight: 680; font-size: .86rem; }
.primary { color: white; background: var(--accent); }
.primary:hover { background: #1737a9; }
.danger { background: #a12621; }
.danger:hover { background: #7e1e1a; }
.secondary, .arrow, .close { color: #273c60; background: #fff; border-color: var(--line); }
.secondary:hover, .arrow:hover, .close:hover { background: #f0f4fe; }
.notification-button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; }
#notification-count { min-width: 1.35em; padding: 0 4px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .75rem; text-align: center; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 24px; }
.metric, .project-card { color: inherit; border: 1px solid var(--line); background: #fff; text-align: left; border-radius: 12px; }
.metric { display: grid; padding: 15px; gap: 3px; font-size: .81rem; color: var(--muted); }
.metric:hover, .project-card:hover { border-color: #9caff5; box-shadow: 0 3px 12px #1723330a; }
.metric-count { color: #172333; font-size: 1.9rem; font-weight: 730; line-height: 1.25; }
.metric-icon, .project-code { display: grid; place-items: center; justify-self: start; width: 33px; height: 33px; margin-bottom: 5px; border-radius: 8px; color: #2349bd; background: #eaf0ff; font-weight: 750; }
.metric-icon.review, .badge.review { color: #815004; background: #fff2ce; }
.metric-icon.changes, .badge.changes { color: #973b1e; background: #fcebe4; }
.metric-icon.accepted, .badge.accepted, .project-code.mint { color: #176344; background: #e1f5eb; }
.project-code.violet { color: #5942a6; background: #f0ebff; }
.panel { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel-header { padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-header p { color: var(--muted); font-size: .84rem; margin-top: 3px; }
.table-wrap { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: .86rem; }
thead { background: #f7f8fc; color: #4e607b; }
th, td { padding: 11px 15px; border-top: 1px solid var(--line); }
th { font-size: .76rem; }
td:first-child { width: 45%; white-space: normal; min-width: 190px; }
td small { display: block; color: var(--muted); margin-top: 3px; }
.task-name { background: none; border: 0; color: #1a2d50; text-align: left; font-weight: 720; padding: 0; }
.task-name:hover { color: var(--accent); text-decoration: underline; }
.arrow, .close { width: 33px; height: 33px; padding: 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #254397; background: #eaf0ff; border-radius: 20px; padding: 4px 9px; font-size: .75rem; font-weight: 690; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 25px 0 11px; }
.section-title span, .project-id, .project-progress { font-size: .8rem; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.project-card { padding: 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px; text-decoration: none; overflow-wrap: anywhere; }
.project-code { font-size: .64rem; margin: 0; }
.project-card strong, .project-progress, progress { grid-column: 1 / -1; }
.list-position { margin-inline-end: .45rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-owner { grid-column: 1 / -1; }
.project-back { display: inline-block; margin-bottom: 15px; font-size: .86rem; }
.project-heading h1 { overflow-wrap: anywhere; }
.project-filter-link { padding: 0 18px 12px; font-size: .86rem; }
.project-details { margin-bottom: 12px; }
.project-material { padding: 0 18px 16px; overflow-wrap: anywhere; }
.project-material p { white-space: pre-wrap; }
.project-material p + a { display: inline-block; margin-top: 8px; }
.effort-chart { margin-bottom: 16px; }
.effort-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.effort-credit { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.effort-chart { --effort-low: #2148cf; --effort-high: #a9bbfc; --effort-height: 200px; }
.effort-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 8px 0 12px; padding: 0; color: var(--muted); font-size: .8rem; }
.effort-legend li { display: flex; align-items: center; gap: 6px; }
.effort-key { width: 10px; height: 10px; border-radius: 2px; }
.effort-key-low { background: var(--effort-low); }
.effort-key-high { background: var(--effort-high); }
.effort-plot { display: flex; align-items: start; max-width: 100%; overflow-x: auto; padding-top: 4px; }
.effort-axis { position: sticky; left: 0; z-index: 1; flex: 0 0 3.25rem; background: #fff; text-align: right; padding-right: 8px; color: var(--muted); }
.effort-axis > span { display: block; height: 1.5rem; font-size: .8rem; }
.effort-axis ol { position: relative; display: grid; grid-template-rows: repeat(4, 1fr); height: var(--effort-height); list-style: none; margin: 0; padding: 0; font-size: .8rem; line-height: 1; }
.effort-axis li { align-self: start; transform: translateY(-50%); }
.effort-axis li:last-child { position: absolute; top: 100%; right: 0; }
.effort-days { position: relative; display: flex; flex: 1 0 auto; min-width: 0; padding-top: 1.5rem; }
.effort-days::before { content: ''; position: absolute; inset: 1.5rem 0 auto; height: var(--effort-height); border-left: 1px solid #bac6da; border-bottom: 1px solid #bac6da; background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 25%); pointer-events: none; }
.effort-day { display: flex; flex: 1 0 auto; flex-direction: column; min-width: 6rem; text-align: center; }
.effort-columns { display: flex; flex: 1; justify-content: center; }
.effort-column { position: relative; width: 6rem; display: flex; flex-direction: column; align-items: center; padding: 0 4px; border: 0; border-radius: 4px; background: transparent; color: inherit; }
.effort-column:hover, .effort-column:focus-visible { background: #2148cf0d; }
.effort-column:focus-visible { outline-offset: -3px; }
.effort-column svg { display: block; width: 80px; height: var(--effort-height); }
.effort-bar-high { fill: var(--effort-high); }
.effort-bar-low { fill: var(--effort-low); }
.effort-column small, .effort-value { padding: 3px 0; overflow-wrap: anywhere; }
.effort-value { font-size: .8rem; font-weight: 650; }
.effort-day time { display: block; padding: 4px; font-size: .8rem; color: var(--muted); }
.effort-x-label { text-align: center; color: var(--muted); font-size: .8rem; }
.project-material .event-list + h3 { margin-top: 16px; }
.project-progress { display: flex; justify-content: space-between; }
.team-list { list-style: none; margin: 0; padding: 0; }
.team-list > li { padding: 16px 18px; overflow-wrap: anywhere; }
.team-list > li + li { border-top: 1px solid var(--line); }
.team-list a { font-weight: 680; }
.team-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px 24px; }
.team-name { font-size: 1rem; }
.team-meta { display: block; color: var(--muted); font-size: .86rem; margin-top: 3px; }
.team-row .specialties { margin-top: 8px; padding: 0; }
.team-projects-label { color: var(--muted); font-size: .81rem; font-weight: 680; }
.team-project-list { display: grid; gap: 6px; list-style: none; margin: 5px 0 0; padding: 0; }
.team-project-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.team-project-role { color: var(--muted); font-size: .78rem; }
.team-more { display: inline-block; margin-top: 6px; font-size: .83rem; }
.pending-members { margin-top: 16px; }
.pending-member { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.invitation-result { display: grid; gap: 12px; }
.email-draft { text-decoration: none; }
.member-section + .member-section { margin-top: 12px; }
.member-empty { padding: 0 18px 16px; color: var(--muted); }
.specialties { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0 18px 16px; }
.specialties li { padding: 4px 10px; border-radius: 16px; background: #eaf0ff; color: #254397; font-size: .86rem; overflow-wrap: anywhere; }
.member-projects { border-top: 1px solid var(--line); }
progress { width: 100%; height: 6px; accent-color: var(--accent); }
.filter-fields { display: flex; flex-wrap: wrap; gap: 10px; }
label { display: grid; gap: 4px; color: #354562; font-size: .84rem; font-weight: 650; }
input, select, textarea { width: 100%; color: #1c2e4d; background: #fff; border: 1px solid #cbd5e3; border-radius: 7px; padding: 7px 9px; }
textarea { resize: vertical; }
.empty { padding: 22px; color: var(--muted); }
.empty button { margin-top: 8px; }
dialog { width: min(650px, calc(100% - 26px)); max-height: 90dvh; margin: auto; padding: 22px; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 15px 60px #0c173e33; }
dialog::backdrop { background: #101a33a6; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.dialog-heading h2 { font-size: 1.48rem; overflow-wrap: anywhere; }
.help-steps { margin: 0 0 20px; padding-inline-start: 1.5em; }
.help-steps li + li { margin-top: 10px; }
.close { flex-shrink: 0; font-size: 1.27rem; }
form, .form-grid { display: grid; gap: 12px; }
.guided-field { display: grid; align-content: start; gap: 4px; min-width: 0; }
.handover-fields { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.handover-fields legend { padding: 0 4px; font-weight: 700; }
.handover-fields label { overflow-wrap: anywhere; }
.handover-fields small { color: var(--muted); }
.guided-field small, .task-hint { color: var(--muted); }
.task-hint { margin-top: 4px; font-size: .86rem; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.criteria { padding: 13px; background: #f4f7fc; border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; }
.criteria p, .history p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }
.action-form, .history { margin-top: 16px; }
.event-list { list-style: none; padding: 0; margin: 6px 0 0; }
.event-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.history small { display: block; color: var(--muted); }
.notification-list { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.notification-list button { width: 100%; display: grid; gap: 4px; text-align: start; overflow-wrap: anywhere; }
.notification-list button[data-unread] { background: #edf2ff; border-color: #9caff5; }
.notification-list small { color: var(--muted); font-weight: 400; }
.review-target { margin: 0; }
.error { color: #a02621; font-size: .86rem; }
.auth-panel { max-width: 460px; padding: 24px; margin: 32px auto; }
.auth-panel h1 { font-size: 1.85rem; }
.auth-panel form { margin-top: 20px; }
.auth-panel .primary { justify-self: end; }
.notice { position: fixed; right: 18px; bottom: 18px; max-width: calc(100% - 36px); border-radius: 9px; padding: 11px 15px; background: #173d35; color: white; box-shadow: 0 3px 16px #0002; }
@media (max-width: 930px) { .shell { grid-template-columns: 192px minmax(0, 1fr); } .sidebar { padding-inline: 10px; } }
@media (max-width: 700px) {
  .shell { display: block; }
  .sidebar { padding: 12px; display: flex; gap: 10px; }
  .brand { margin: 0; }
  nav { display: flex; flex-wrap: wrap; }
  nav button { padding: 7px; }
  .sidebar-end, .crumb { display: none; }
  .topbar { justify-content: end; }
  .workspace { padding-top: 22px; }
  .metrics, .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heading, .filters { align-items: start; flex-direction: column; }
  .team-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 390px) { .projects, .form-grid { grid-template-columns: 1fr; } .panel-header { flex-wrap: wrap; } }
