:root {
  color-scheme: light;
  --blue: #0c66e4;
  --blue-hover: #0055cc;
  --blue-soft: #e9f2ff;
  --navy: #172b4d;
  --text: #172b4d;
  --muted: #626f86;
  --subtle: #f1f2f4;
  --canvas: #f7f8f9;
  --border: #dcdfe4;
  --white: #fff;
  --green: #1f845a;
  --green-soft: #d9f2e6;
  --purple: #6e5dc6;
  --yellow: #e2b203;
  --shadow: 0 8px 20px rgba(9,30,66,.15), 0 0 1px rgba(9,30,66,.31);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--text); background: var(--canvas); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #85b8ff; outline-offset: 2px; }

.app-bar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(9,30,66,.08); }
.app-brand { display: inline-flex; align-items: center; gap: 9px; margin-right: 2px; color: var(--navy); font-weight: 650; text-decoration: none; white-space: nowrap; }
.brand-mark, .project-icon { display: grid; place-items: center; border-radius: 5px; background: linear-gradient(145deg, #0c66e4, #579dff); color: white; font-size: 11px; font-weight: 750; }
.brand-mark { width: 30px; height: 30px; }
.brand-product { font-size: 16px; letter-spacing: -.02em; }
.app-switcher { display: grid; grid-template-columns: repeat(3, 3px); gap: 3px; width: 32px; height: 32px; place-content: center; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.app-switcher:hover { background: var(--subtle); }
.app-switcher span { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.global-search, .board-search { display: flex; align-items: center; gap: 8px; border: 1px solid #8590a2; border-radius: 4px; background: white; }
.global-search { width: min(520px, 38vw); height: 34px; margin-right: auto; padding: 0 9px; }
.global-search:focus-within, .board-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.global-search svg, .board-search svg { flex: 0 0 auto; width: 17px; color: var(--muted); }
.global-search input, .board-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.global-search kbd { padding: 2px 6px; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); background: var(--subtle); font-size: 10px; }
.app-actions { display: flex; align-items: center; gap: 8px; }
.language-switch { display: inline-flex; padding: 2px; border-radius: 4px; background: var(--subtle); }
.language-switch button { min-width: 32px; height: 28px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 650; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: white; color: var(--blue); box-shadow: 0 1px 2px rgba(9,30,66,.15); }
.top-download { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 4px; background: var(--blue); color: white; font-size: 12px; font-weight: 600; text-decoration: none; }
.top-download:hover { background: var(--blue-hover); }
.top-download svg { width: 16px; }
.profile-avatar, .mini-avatar { display: grid; place-items: center; border-radius: 50%; background: #6554c0; color: white; font-weight: 700; text-decoration: none; }
.profile-avatar { width: 32px; height: 32px; font-size: 11px; }

.app-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.project-sidebar { position: sticky; top: 56px; display: flex; flex-direction: column; align-self: start; height: calc(100vh - 56px); padding: 24px 16px 18px; overflow-y: auto; background: #f4f5f7; border-right: 1px solid var(--border); }
.project-identity { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; }
.project-icon { flex: 0 0 auto; width: 42px; height: 42px; font-size: 13px; }
.project-identity strong, .project-identity span { display: block; }
.project-identity strong { margin-bottom: 3px; font-size: 14px; }
.project-identity span { color: var(--muted); font-size: 11px; }
.project-nav { display: grid; gap: 3px; }
.project-nav a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 40px; padding: 0 10px; border-radius: 4px; color: #44546f; text-decoration: none; }
.project-nav a:hover { background: #e9ebee; }
.project-nav a.is-active { background: var(--blue-soft); color: #0052cc; font-weight: 600; }
.project-nav svg { width: 18px; }
.nav-count { min-width: 22px; padding: 2px 6px; border-radius: 10px; background: #dcdfe4; color: var(--muted); font-size: 11px; text-align: center; }
.sidebar-footer { margin-top: auto; padding: 18px 10px 3px; border-top: 1px solid var(--border); }
.sidebar-footer p { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.sidebar-footer small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.5; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 24px; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 650; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; }
.status-open { background: var(--green-soft); color: #216e4e; }
.status-open i { background: var(--green); }

.workspace { min-width: 0; padding: 24px 32px 48px; }
.project-overview, .experience-workspace, .details-section, .contact-panel, .workspace > footer { max-width: 1440px; margin-inline: auto; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.breadcrumbs b { font-weight: 400; }
.profile-header { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-bottom: 24px; }
.profile-header > img { width: 88px; height: 88px; border: 3px solid white; border-radius: 8px; object-fit: cover; box-shadow: var(--shadow); }
.issue-type { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .04em; }
.issue-type i { width: 9px; height: 9px; background: var(--purple); transform: rotate(45deg); }
h1 { margin: 0 0 5px; color: #172b4d; font-size: clamp(30px, 4vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
.profile-title > p { margin: 0; color: var(--muted); font-size: 15px; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.profile-buttons { display: flex; align-items: center; gap: 8px; }
.jira-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 12px; border: 0; border-radius: 4px; background: var(--subtle); color: #172b4d; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; }
.jira-button:hover { background: #dcdfe4; }
.jira-primary { background: var(--blue); color: white; }
.jira-primary:hover { background: var(--blue-hover); }

.summary-grid { display: grid; grid-template-columns: minmax(360px, 2fr) repeat(4, minmax(120px, .7fr)); gap: 12px; }
.summary-card, .metric-card, .detail-card, .education-list, .contact-panel { border: 1px solid var(--border); border-radius: 8px; background: white; box-shadow: 0 1px 1px rgba(9,30,66,.08); }
.summary-card { padding: 18px 20px; }
.card-heading { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 650; }
.card-menu { color: var(--muted); letter-spacing: 2px; }
.summary-card p { margin: 0; color: #44546f; line-height: 1.6; }
.metric-card { display: flex; flex-direction: column; min-height: 145px; padding: 18px; }
.metric-card > span { color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-card strong { margin: auto 0 3px; color: #0c66e4; font-size: clamp(27px, 2.6vw, 39px); letter-spacing: -.05em; white-space: nowrap; }
.metric-card small { color: var(--muted); line-height: 1.35; }

.experience-workspace, .details-section { padding-top: 58px; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-title-row.compact { margin-bottom: 16px; }
.section-kicker { margin: 0 0 6px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
h2 { margin: 0; color: #172b4d; font-size: 26px; letter-spacing: -.02em; }
.section-title-row p:last-child { margin: 7px 0 0; color: var(--muted); }
.view-tabs { display: flex; align-items: center; padding: 2px; border-radius: 4px; background: var(--subtle); }
.view-tabs button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); cursor: pointer; }
.view-tabs button.is-active { background: white; color: var(--blue); font-weight: 650; box-shadow: 0 1px 3px rgba(9,30,66,.18); }
.board-toolbar { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 9px 0; border-top: 1px solid var(--border); }
.board-search { width: 230px; height: 34px; padding: 0 8px; }
.filter-button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: #44546f; cursor: pointer; }
.filter-button:hover, .filter-button.is-active { background: var(--blue-soft); color: #0052cc; }
.filter-button b { padding: 1px 6px; border-radius: 8px; background: #dcdfe4; font-size: 10px; }
.board-people { display: flex; align-items: center; margin-left: auto; }
.board-people img, .board-people span { width: 28px; height: 28px; border: 2px solid white; border-radius: 50%; }
.board-people img { object-fit: cover; }
.board-people span { display: grid; place-items: center; margin-left: -6px; background: #6554c0; color: white; font-size: 9px; font-weight: 700; }
.view-panel { min-width: 0; }
.kanban-board { display: grid; grid-template-columns: repeat(3, minmax(290px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.kanban-column { min-height: 510px; padding: 8px; border-radius: 8px; background: #f1f2f4; scroll-snap-align: start; }
.kanban-column > header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-height: 38px; padding: 0 7px; color: var(--muted); font-size: 11px; font-weight: 650; }
.kanban-column > header b { justify-self: start; padding: 2px 6px; border-radius: 8px; background: #dcdfe4; font-size: 10px; }
.kanban-column > header i { font-style: normal; letter-spacing: 1px; }
.column-cards { display: grid; gap: 9px; }
.issue-card { position: relative; padding: 14px; border: 1px solid transparent; border-radius: 4px; background: white; box-shadow: 0 1px 1px rgba(9,30,66,.25), 0 0 1px rgba(9,30,66,.31); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.issue-card:hover { border-color: #85b8ff; box-shadow: 0 4px 12px rgba(9,30,66,.2); transform: translateY(-2px); }
.issue-card.is-filtered { display: none; }
.issue-card-top { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: var(--muted); font-size: 10px; }
.issue-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 2px; color: white; font-size: 9px; font-style: normal; }
.issue-icon.epic { background: var(--purple); }
.issue-icon.story { background: var(--green); }
.issue-icon.task { background: var(--blue); }
.issue-key { font-weight: 600; }
.priority { margin-left: auto; color: #fca700; font-size: 16px; font-weight: 700; }
.priority.highest { color: #c9372c; }
.issue-card h3 { margin: 0 0 5px; font-size: 15px; line-height: 1.3; }
.issue-company { margin: 0 0 9px; color: var(--blue); font-size: 11px; font-weight: 600; }
.issue-card > p:not(.issue-company) { margin: 0; color: #44546f; font-size: 12px; line-height: 1.5; }
.issue-labels { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.issue-labels span { padding: 3px 7px; border-radius: 3px; background: var(--subtle); color: #44546f; font-size: 10px; }
.issue-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 11px; border-top: 1px solid #ebecf0; }
.status-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 3px; font-size: 9px; font-weight: 750; letter-spacing: .03em; }
.status-chip.in-progress { background: var(--blue-soft); color: #0052cc; }
.status-chip.done { background: var(--green-soft); color: #216e4e; }
.mini-avatar { width: 24px; height: 24px; font-size: 8px; }
.empty-state { padding: 60px 20px; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); text-align: center; }

.timeline-board { min-width: 780px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: white; }
[data-view-panel="timeline"] { overflow-x: auto; padding-bottom: 8px; }
.timeline-header, .timeline-row { display: grid; grid-template-columns: 310px minmax(460px, 1fr); width: 100%; min-height: 52px; border: 0; border-bottom: 1px solid var(--border); background: white; text-align: left; }
.timeline-header { color: var(--muted); font-size: 11px; font-weight: 650; }
.timeline-header > span, .timeline-row > span { display: flex; align-items: center; padding: 0 16px; border-right: 1px solid var(--border); }
.timeline-years { display: flex; align-items: center; justify-content: space-between; padding: 0 15px; }
.timeline-row { position: relative; cursor: pointer; }
.timeline-row:hover { background: #f7f8f9; }
.timeline-row > span { color: var(--muted); font-size: 11px; }
.timeline-row b { margin-left: 5px; color: var(--text); font-size: 12px; }
.timeline-row i { position: relative; align-self: center; display: block; width: max(18px, var(--size)); height: 24px; margin-left: var(--start); border-radius: 4px; background: var(--blue); box-shadow: inset 0 -3px rgba(0,0,0,.1); }
.timeline-row:nth-child(3) i { background: #22a06b; }
.timeline-row:nth-child(4) i { background: #6e5dc6; }
.timeline-row:nth-child(5) i { background: #e2b203; }
.timeline-row:nth-child(6) i { background: #579dff; }
.timeline-row:nth-child(7) i { background: #0c66e4; }

.details-grid { display: grid; grid-template-columns: 1.15fr 1fr .75fr; gap: 12px; }
.detail-card { padding: 20px; }
.detail-card h3 { margin: 0 0 15px; font-size: 15px; }
.detail-card p { margin: 0 0 10px; color: #44546f; font-size: 12px; line-height: 1.6; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud span { padding: 5px 9px; border-radius: 3px; background: var(--blue-soft); color: #0052cc; font-size: 11px; }
.language-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.language-list li { display: flex; justify-content: space-between; gap: 12px; }
.language-list b { color: var(--muted); font-size: 11px; font-weight: 500; }
.education-list { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.education-list article { display: flex; gap: 12px; min-height: 130px; padding: 20px; }
.education-list article + article { border-left: 1px solid var(--border); }
.education-icon { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border-radius: 3px; background: var(--blue); color: white; font-size: 10px; }
.education-list h3 { margin: 2px 0 7px; font-size: 14px; line-height: 1.35; }
.education-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 58px; padding: 26px; border-left: 5px solid var(--blue); }
.contact-panel h2 { margin-top: 12px; }
.contact-panel p { margin: 7px 0 0; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.workspace > footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px 4px 0; color: var(--muted); font-size: 10px; }

.issue-overlay { position: fixed; z-index: 180; inset: 0; background: rgba(9,30,66,.54); }
.issue-drawer { position: fixed; z-index: 200; top: 0; right: 0; bottom: 0; width: min(680px, 92vw); overflow-y: auto; background: white; box-shadow: -12px 0 32px rgba(9,30,66,.25); transform: translateX(105%); transition: transform .22s ease; }
.issue-drawer.is-open { transform: translateX(0); }
.issue-drawer > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 24px; border-bottom: 1px solid var(--border); background: white; }
.issue-drawer > header > div { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.issue-drawer > header button { width: 34px; height: 34px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; }
.issue-drawer > header button:hover { background: var(--subtle); }
.drawer-content { padding: 30px 34px 44px; }
.drawer-label { margin: 0 0 7px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.drawer-content h2 { font-size: 28px; }
.drawer-company { margin: 8px 0 18px; color: var(--blue); font-weight: 600; }
.drawer-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.drawer-content hr { margin: 25px 0; border: 0; border-top: 1px solid var(--border); }
.drawer-content h3 { margin: 24px 0 10px; font-size: 13px; }
[data-drawer-details] > p { color: #44546f; line-height: 1.65; }
[data-drawer-details] ul { margin: 14px 0 0; padding-left: 21px; color: #344563; line-height: 1.6; }
[data-drawer-details] li + li { margin-top: 8px; }
.drawer-actions { display: flex; gap: 8px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); }
body.drawer-open { overflow: hidden; }

@media (min-width: 921px) {
  body.nav-collapsed .app-layout { grid-template-columns: 72px minmax(0, 1fr); }
  body.nav-collapsed .project-sidebar { padding-inline: 10px; }
  body.nav-collapsed .project-identity { justify-content: center; padding-inline: 0; }
  body.nav-collapsed .project-identity > div, body.nav-collapsed .project-nav a > span, body.nav-collapsed .nav-count, body.nav-collapsed .sidebar-footer { display: none; }
  body.nav-collapsed .project-nav a { display: grid; grid-template-columns: 1fr; justify-items: center; padding: 0; }
}

@media (max-width: 1180px) {
  .summary-grid { grid-template-columns: repeat(4, 1fr); }
  .summary-about { grid-column: 1 / -1; }
  .education-list { grid-template-columns: repeat(2, 1fr); }
  .education-list article:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .education-list article:nth-child(4) { border-top: 1px solid var(--border); }
}

@media (max-width: 920px) {
  .app-layout { display: block; }
  .project-sidebar { position: sticky; top: 56px; z-index: 70; display: block; width: 100%; height: auto; padding: 7px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .project-identity, .sidebar-footer { display: none; }
  .project-nav { display: flex; width: max-content; gap: 4px; }
  .project-nav a { grid-template-columns: 20px auto auto; min-height: 36px; padding-inline: 9px; }
  .workspace { padding-inline: 20px; }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .details-grid .detail-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .brand-product, .global-search kbd, .top-download span { display: none; }
  .global-search { width: auto; min-width: 120px; flex: 1; }
  .top-download { width: 34px; padding: 0; justify-content: center; }
  .profile-header { grid-template-columns: 66px 1fr; align-items: start; }
  .profile-header > img { width: 66px; height: 66px; }
  .profile-buttons { grid-column: 1 / -1; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 120px; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .view-tabs { align-self: stretch; }
  .view-tabs button { flex: 1; }
  .board-toolbar { flex-wrap: wrap; }
  .board-search { width: 100%; }
  .board-people { margin-left: 0; }
  .kanban-board { grid-template-columns: repeat(3, minmax(276px, 82vw)); }
  .details-grid { grid-template-columns: 1fr; }
  .details-grid .detail-card:first-child { grid-column: auto; }
  .education-list { grid-template-columns: 1fr; }
  .education-list article + article { border-left: 0; border-top: 1px solid var(--border); }
  .contact-panel { align-items: flex-start; flex-direction: column; }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .app-bar { padding-inline: 8px; gap: 7px; }
  .app-switcher { display: none; }
  .global-search { min-width: 0; }
  .global-search input::placeholder { color: transparent; }
  .language-switch button { min-width: 27px; }
  .profile-avatar { display: none; }
  .project-nav svg { display: none; }
  .project-nav a { grid-template-columns: auto auto; }
  .workspace { padding: 18px 12px 36px; }
  .profile-header { gap: 13px; }
  .profile-title > p { font-size: 13px; line-height: 1.45; }
  .profile-buttons { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .summary-grid { gap: 8px; }
  .summary-card { padding: 15px; }
  .metric-card { min-height: 110px; padding: 14px; }
  .metric-card strong { font-size: 28px; }
  .experience-workspace, .details-section { padding-top: 44px; }
  .filter-button { padding-inline: 8px; font-size: 11px; }
  .board-people { display: none; }
  .kanban-board { grid-template-columns: repeat(3, minmax(268px, 88vw)); }
  .contact-actions { display: grid; width: 100%; }
  .workspace > footer { align-items: flex-start; flex-direction: column; }
  .drawer-content { padding: 24px 20px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
  .app-bar, .project-sidebar, .board-toolbar, .view-tabs, .issue-overlay, .issue-drawer { display: none !important; }
  .app-layout { display: block; }
  .workspace { padding: 0; }
  .kanban-board { grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .issue-card, .summary-card, .metric-card, .detail-card { break-inside: avoid; box-shadow: none; }
}
