/* Ported verbatim from docs/gitempo-figma-board.html's design system, adapted
   for a real page instead of a multi-frame board (no .frame/.grid/.board-head
   canvas chrome; body plays the role the mockup's .frame did). */

:root {
  --text: #292A2E; --subtle: #505258; --subtlest: #6B6E76;
  --border: #0B120E24; --border-bold: #7D818A; --border-input: #8C8F97;
  --brand: #1868DB; --brand-text: #1558BC; --selected-bg: #E9F2FE;
  --surface: #FFFFFF; --sunken: #F8F8F8; --neutral: #0515240F; --neutral-2: #DDDEE1;
  --danger-text: #AE2E24; --danger-bold: #C9372C; --danger-bg: #FFECEB;
  --chart: #357DE8;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--surface);
  font-family: 'Atlassian Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Ubuntu, Helvetica, Arial, sans-serif;
  color: var(--text); font-size: 14px; line-height: 20px;
}
h1, h2, h3 { margin: 0; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; table-layout: fixed; }

.small { font-size: 12px; line-height: 16px; }
.sub { color: var(--subtle); }
.subtlest { color: var(--subtlest); }
.h-lg { font-size: 24px; line-height: 28px; font-weight: 653; }
.h-md { font-size: 20px; line-height: 24px; font-weight: 653; }
.h-sm { font-size: 16px; line-height: 20px; font-weight: 653; }
.lbl { font-size: 12px; line-height: 16px; color: var(--subtle); }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }

.btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--subtle); border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; flex: none; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-p { background: var(--brand); color: #FFFFFF; border-color: transparent; }
.btn-sub { border-color: transparent; }
.btn-del { color: var(--danger-text); border-color: transparent; }
.btn-danger { background: var(--danger-bold); color: #FFFFFF; border-color: transparent; }
.btn-c { padding: 2px 8px; }
.btn-ico { width: 32px; height: 32px; padding: 0; justify-content: center; }
.sel { background: var(--selected-bg); color: var(--brand-text); border-color: var(--brand); }

.inp { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--border-input); border-radius: 6px; padding: 6px; font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 400; }
.inp-err { border-color: #E2483D; }
.ph { color: var(--subtlest); }
textarea.inp { resize: vertical; }

.loz { display: inline-flex; align-items: center; height: 20px; padding: 2px 4px; border-radius: 4px; font-size: 12px; line-height: 16px; border: 1px solid var(--border-bold); background: var(--neutral); }
.loz-i { background: #CFE1FD; color: #123263; border-color: var(--chart); }
.loz-s { background: #D3F1A7; color: #37471F; border-color: #6A9A23; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 2px 4px; border-radius: 4px; font-size: 12px; line-height: 16px; border: 1px solid var(--border-bold); background: transparent; }

.av { width: 24px; height: 24px; flex: none; border-radius: 9999px; background: var(--neutral-2); color: var(--subtle); display: grid; place-items: center; font-size: 12px; }
.av-brand { background: #CFE1FD; color: var(--brand-text); font-weight: 500; }
.mark { width: 24px; height: 24px; box-sizing: border-box; border-radius: 6px; background: var(--brand); color: #FFFFFF; display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 3px 4px 0; font-size: 14px; line-height: 1; font-weight: 653; flex: none; }

.nav { display: flex; align-items: center; gap: 24px; height: 48px; padding: 0 32px; border-bottom: 1px solid var(--border); }
.nav-items { display: flex; align-items: center; gap: 4px; }
.navitem { border-radius: 6px; padding: 6px 8px; font-weight: 500; color: var(--subtle); text-decoration: none; }
.navitem.on { background: var(--selected-bg); color: var(--brand-text); }
.main { padding: 32px; max-width: 1440px; margin: 0 auto; }

.tabs { display: flex; align-items: center; gap: 4px; margin-top: 24px; border-bottom: 1px solid var(--border); }
.tab { padding: 6px 8px; font-weight: 500; color: var(--subtle); text-decoration: none; }
.tab.on { color: var(--brand-text); box-shadow: inset 0 -2px 0 0 var(--brand); }

.metrics { display: flex; align-items: flex-start; gap: 48px; margin-top: 24px; flex-wrap: wrap; }
.metric { display: flex; flex-direction: column; gap: 4px; flex: none; }
.metric .v { font-size: 24px; line-height: 28px; font-weight: 653; white-space: nowrap; }

.bar { height: 8px; background: var(--neutral); border-radius: 2px; display: block; }
.bar > span { height: 8px; background: var(--chart); border-radius: 2px; display: block; }
.bar-s { height: 4px; background: var(--neutral-2); border-radius: 2px; display: block; }
.bar-s > span { height: 4px; background: var(--chart); border-radius: 2px; display: block; }
.prow { display: grid; grid-template-columns: 144px 1fr 48px; align-items: center; gap: 12px; }

th { text-align: left; font-size: 12px; line-height: 16px; font-weight: 653; color: var(--subtle); padding: 4px 8px; border-bottom: 2px solid var(--border); }
td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.r { text-align: right; }
.link { color: var(--brand); text-decoration: underline; }
a.link { cursor: pointer; }

.card { background: #F1F2F4; border: 1px solid var(--border); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.well { background: var(--sunken); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 34rem; height: 100%; }
.well-today { border: 1px solid var(--brand); }
.grp { font-size: 12px; line-height: 16px; font-weight: 653; color: var(--subtle); margin-top: 4px; }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; margin-top: 16px; }
.msg { display: flex; gap: 16px; border-radius: 8px; padding: 16px; }
.msg-err { background: var(--danger-bg); }
.msg-ok { background: #EFFFD6; }
.signin-card { width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.picker-list { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 8px; }
.picker-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.picker-row:hover { background: var(--neutral); }
.sugg { background: var(--sunken); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.sugg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; text-decoration: none; color: inherit; }
.sugg-row:hover { border-color: var(--brand); background: var(--selected-bg); }
.hint { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--chart); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.hint-num { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--brand-text); flex: none; }
.hint:hover { border-left-width: 4px; }
.blanket { position: fixed; inset: 0; background: #050C1F75; display: grid; place-items: center; z-index: 60; }
.dialog { width: 400px; background: var(--surface); border-radius: 12px; box-shadow: 0 8px 12px #1E1F2126, 0 0 1px #1E1F214F; }
.menu { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 12px #1E1F2126, 0 0 1px #1E1F214F; min-width: 208px; padding: 4px; z-index: 50; display: none; }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border-radius: 6px; border: none; background: transparent; font-family: inherit; font-size: 14px; line-height: 20px; text-align: left; cursor: pointer; color: var(--text); text-decoration: none; }
.menu-item:hover { background: var(--neutral); }
.menu-item:disabled { opacity: 0.5; cursor: not-allowed; }
.menu-sep { height: 1px; background: var(--border); margin: 4px 0; }
.settings-menu { width: 280px; gap: 0; }
.profile-menu { width: 304px; }
.swatch { display: flex; flex-direction: column; gap: 6px; }
.chip { width: 96px; height: 56px; border-radius: 6px; border: 1px solid var(--border); }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { flex: none; }
