@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
  font-family:Inter,system-ui,sans-serif;
  color:#303137;
  background:#f5f5f6;
  font-size:16px;
  font-synthesis:none;
  --muted:#72727c;
  --line:#dedee2;
  --accent:#393a40;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select {
  font:inherit;
}

a {
  color:inherit;
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:wait;
  opacity:.6;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid #8b5961;
  outline-offset:3px;
}

button,input,select {
  border-radius:7px;
}

button {
  border:1px solid #d4d4da;
  padding:10px 16px;
  background:white;
  color:#303137;
  font-weight:600;
  font-size:.875rem;
}

button:hover {
  background:#ededf0;
}

button.primary {
  background:var(--accent);
  border-color:var(--accent);
  color:white;
}

button.primary:hover {
  background:#65383f;
}

input,select {
  border:1px solid #d4d4da;
  background:white;
  color:#303137;
  padding:10px 12px;
  min-width:0;
  min-height:41px;
}

label {
  font-size:.875rem;
  font-weight:500;
  display:grid;
  gap:8px;
}

select {
  appearance:none;
  padding-right:32px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%2371717a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
}

.shell {
  display:flex;
  min-height:100vh;
}


.brand {
  display:flex;
  align-items:center;
  text-decoration:none;
  gap:13px;
  margin:0 12px 55px;
  font-size:1.45rem;
  font-weight:700;
  letter-spacing:.04em;
}

.brand-mark {
  display:grid;
  place-items:center;
  width:39px;
  height:43px;
  border:1px solid #5d9a9e;
  border-radius:9px;
  color:#79d8d4;
  font-size:1.6rem;
}

.brand-subtitle {
  display:block;
  font-size:.65rem;
  letter-spacing:.22em;
  font-weight:500;
  margin-top:4px;
  color:#9bb3bd;
}

.nav-label {
  font-size:.7rem;
  color:#93aab4;
  letter-spacing:.13em;
  margin:0 14px 13px;
}

nav {
  display:grid;
  gap:7px;
}

nav a {
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 12px;
  border-radius:7px;
  text-decoration:none;
  font-size:.875rem;
  line-height:1.5;
  color:#bbced5;
}

nav a>span {
  font-size:1.2rem;
  width:21px;
  text-align:center;
}

nav a:hover {
  background:#213d46;
  color:white;
}

nav a.active {
  background:#294a53;
  color:#fff;
  box-shadow:inset 3px 0 #50c7c1;
}

.management-label {
  margin-top:38px;
}

.sidebar-bottom {
  margin-top:auto;
  font-size:.8rem;
  padding:28px 13px 0;
  color:#d6e4e8;
}

.environment-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#76d6c7;
  margin-right:7px;
}

.sidebar-note {
  display:block;
  color:#95adb7;
  margin-top:8px;
  font-size:.75rem;
}

.workspace {
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
}

.topbar {
  height:80px;
  border-bottom:1px solid var(--line);
  background:white;
  padding:0 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:.85rem;
  color:var(--muted);
}

.profile {
  display:flex;
  align-items:center;
  gap:10px;
  color:#575760;
}

.avatar {
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  border-radius:50%;
  background:#ededf0;
  font-size:.75rem;
  font-weight:600;
}

main {
  padding:38px 40px 48px;
  flex:1;
  outline:none;
}

.page-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:25px;
}

.eyebrow {
  font-size:.75rem;
  font-weight:600;
  color:#777780;
  letter-spacing:.08em;
  margin:0 0 11px;
}

h1 {
  font-size:1.85rem;
  letter-spacing:-.04em;
  margin:0 0 10px;
  font-weight:600;
  line-height:1.3;
}

.description {
  font-size:.875rem;
  color:var(--muted);
  margin:0;
  line-height:1.7;
}

.badge {
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:.75rem;
  font-weight:500;
  padding:7px 10px;
  border-radius:5px;
  white-space:nowrap;
}

.badge.pending {
  color:#876127;
  background:#fff2d9;
}

.badge.success {
  background:#ededf0;
  color:#494a52;
}

.badge.error {
  background:#ffebeb;
  color:#9a3333;
}

.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:26px;
}

.metric {
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  padding:21px 22px;
}

.metric-label {
  font-size:.8rem;
  color:#70707a;
  margin:0 0 17px;
}

.metric-value {
  font-size:1.8rem;
  letter-spacing:-.04em;
  font-weight:600;
}

.metric-note {
  font-size:.75rem;
  color:#85858e;
  margin:9px 0 0;
}

.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
  margin-bottom:22px;
}

.panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:21px 24px;
  border-bottom:1px solid var(--line);
}

h2 {
  font-size:1rem;
  font-weight:600;
  margin:0;
}

h3 {
  font-size:1rem;
  font-weight:600;
  line-height:1.6;
  margin:14px 0 8px;
}

.panel-meta {
  font-size:.8rem;
  color:var(--muted);
}

.filters {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  padding:20px 24px;
  background:#fcfcfd;
  border-bottom:1px solid var(--line);
  align-items:end;
}

.filters label {
  flex:1;
  min-width:145px;
}

.filters .search-label {
  flex:1.5;
}

.table-wrap {
  overflow-x:auto;
}

table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  white-space:nowrap;
}

th {
  font-size:.75rem;
  color:#6b6b75;
  font-weight:500;
  background:#f8f8fa;
  padding:15px 22px;
  border-bottom:1px solid var(--line);
}

td {
  font-size:.875rem;
  padding:17px 22px;
  border-bottom:1px solid #eeeef1;
}

td.numeric,th.numeric {
  text-align:right;
}

.empty {
  text-align:center;
  padding:53px 22px 57px;
}

.empty-symbol {
  display:grid;
  place-items:center;
  margin:auto;
  width:49px;
  height:49px;
  border:1px solid #dedee4;
  background:#f3f3f6;
  border-radius:12px;
  font-size:1.7rem;
  color:#77757f;
}

.empty p {
  margin:0 auto 20px;
  max-width:470px;
  font-size:.875rem;
  color:var(--muted);
  line-height:1.8;
}

.empty a {
  display:inline-block;
  text-decoration:none;
  font-size:.875rem;
  color:var(--accent);
  font-weight:600;
}

.table-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 24px;
  color:var(--muted);
  font-size:.8rem;
  gap:14px;
}

.pagination {
  display:flex;
  align-items:center;
  gap:12px;
}

.pagination button {
  padding:7px 10px;
  font-weight:400;
  font-size:.8rem;
}

.notice {
  display:flex;
  gap:13px;
  background:#eeeef2;
  border:1px solid #dcdce3;
  border-radius:8px;
  padding:17px 20px;
  font-size:.85rem;
  color:#5b5964;
  line-height:1.75;
}

.notice p {
  margin:0;
}

.notice strong {
  font-weight:600;
}

.notice-icon {
  font-weight:600;
  flex-shrink:0;
  border:1px solid #b8b7c0;
  border-radius:50%;
  width:20px;
  height:20px;
  text-align:center;
  line-height:18px;
  margin-top:3px;
}

footer {
  padding:20px 40px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-size:.75rem;
  color:#85838e;
}

.import-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:22px;
}

.import-form {
  padding:24px;
}

.source-options {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:22px;
}

.dropzone {
  display:block;
  border:1.5px dashed #c0bec8;
  border-radius:8px;
  background:#fafafa;
  text-align:center;
  padding:32px 18px;
  margin-bottom:19px;
  cursor:pointer;
}

.dropzone.dragover {
  border-color:var(--accent);
  background:#f1ebed;
}

.upload-symbol {
  font-size:1.8rem;
  display:block;
  color:var(--accent);
  margin-bottom:13px;
}

.dropzone strong {
  display:block;
  font-size:.95rem;
  font-weight:500;
}

.dropzone small {
  display:block;
  font-size:.8rem;
  color:var(--muted);
  margin:10px 0 18px;
}

.dropzone input {
  width:100%;
  max-width:370px;
  font-size:.8rem;
  background:white;
}

.form-actions {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.form-actions span {
  font-size:.8rem;
  color:var(--muted);
}

.side-note {
  padding:23px;
}

.side-note h2 {
  margin-bottom:16px;
}

.side-note p,.side-note li {
  font-size:.85rem;
  line-height:1.8;
  color:var(--muted);
}

.side-note ul {
  padding-left:18px;
}

.side-note li {
  margin-bottom:10px;
}

.side-note .rule {
  border-top:1px solid var(--line);
  padding-top:16px;
  margin-top:18px;
}

.file-name {
  max-width:260px;
  overflow:hidden;
  text-overflow:ellipsis;
}

.result-detail {
  padding:0 24px 24px;
  font-size:.8rem;
  color:var(--muted);
  line-height:1.8;
}

.error-message {
  color:#9a3333;
  font-size:.875rem;
  line-height:1.8;
  padding:16px 24px;
  background:#fff6f5;
  margin:0;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}

#upload-message:not(:empty) {
  padding: 0 24px 20px;
  font-size: .875rem;
  line-height: 1.75;
}

.filters .activity-type-filter {
  min-width: 240px;
}

td.quality {
  white-space: normal;
  min-width: 220px;
  max-width: 380px;
  line-height: 1.6;
}

@media(min-width:1600px) {
  main {
    max-width:1450px;
    width:100%;
    margin:auto;
  }
}

@media(max-width:1150px) {
  main {
    padding:30px 25px;
  }
  .topbar,footer {
    padding-left:25px;
    padding-right:25px;
  }
  .import-layout {
    grid-template-columns:1fr;
  }
  .side-note {
    display:block;
  }
  .metrics {
    gap:10px;
  }
  .metric {
    padding:17px 15px;
  }
  .metric-label {
    min-height:30px;
  }
}

@media(max-width:760px) {
  .shell {
    display:block;
  }
  .brand {
    margin:0 0 20px;
    font-size:1.15rem;
  }
  .brand-mark {
    width:32px;
    height:34px;
  }
  .nav-label,.sidebar-bottom {
    display:none;
  }
  .topbar {
    height:56px;
    padding:0 18px;
    font-size:.75rem;
  }
  .profile {
    font-size:.7rem;
  }
  .avatar {
    display:none;
  }
  main {
    padding:25px 16px 35px;
  }
  .page-heading {
    flex-wrap:wrap;
    gap:9px;
  }
  .page-heading>button {
    margin-left:auto;
  }
  h1 {
    font-size:1.55rem;
  }
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .metric-label {
    min-height:0;
  }
  .metric {
    padding:16px;
  }
  .metric-value {
    font-size:1.5rem;
  }
  .panel-head,.filters {
    padding:17px;
  }
  .filters label {
    min-width:120px;
  }
  .empty {
    padding:35px 18px;
  }
  .table-bottom {
    padding:14px 17px;
    flex-wrap:wrap;
  }
  .source-options {
    grid-template-columns:1fr;
  }
  .import-form {
    padding:18px;
  }
  .form-actions {
    flex-wrap:wrap;
  }
  footer {
    padding:18px;
    flex-wrap:wrap;
  }
  .notice {
    padding:16px;
  }
  .badge {
    white-space:normal;
  }
}


/* Pivot hierarchy and assignment drill-through */
[hidden] { display:none !important; }
a.button {display:inline-flex;align-items:center;justify-content:center;border:1px solid #ccd4d7;border-radius:6px;padding:10px 14px;color:inherit;background:white;text-decoration:none;font-weight:600;font-size:13px;white-space:nowrap;}
.page-heading {flex-wrap:wrap;gap:12px;}
.page-heading > div {flex:1;}
.pivot-heading {padding:20px 24px 10px;}
.pivot-heading h3 {margin:0 0 8px;}
.pivot-heading p {font-size:12px;color:#73727c;}
.pivot-wrap {position:relative;isolation:isolate;max-height:min(70vh,780px);overflow:auto;scroll-padding-top:105px;scrollbar-gutter:stable;}
.pivot-table {border-collapse:separate;border-spacing:0;}
.pivot-table th,.pivot-table td {white-space:nowrap;}
.pivot-table thead {position:sticky;top:0;z-index:4;}
.pivot-table thead th {text-align:center;}
.pivot-table tbody th {font-weight:400;min-width:240px;background:white;}
.pivot-table .pivot-row-label {position:sticky;left:0;z-index:3;text-align:left;background:#fff;box-shadow:2px 0 0 #ccccd3;}
.pivot-table thead .pivot-row-label {z-index:5;background:#f8f8fa;}
.pivot-table .pivot-group {font-weight:700;font-size:.85rem;border-bottom:1px solid #ccccd3;}
.pivot-table .pivot-section-start {border-left:2px solid #c8c8d0;}
.pivot-table td.pivot-section-0,.pivot-table td.pivot-section-2 {background:#fff;}
.pivot-table td.pivot-section-1,.pivot-table td.pivot-section-3 {background:#f7f7f9;}
.pivot-table thead .pivot-section-0,.pivot-table thead .pivot-section-2 {background:#e8e8ed;}
.pivot-table thead .pivot-section-1,.pivot-table thead .pivot-section-3 {background:#dddde4;}
.pivot-table tbody .pivot-subtotal th,.pivot-table .pivot-subtotal td {background:#ededf1;font-weight:600;}
.pivot-table .pivot-depth-2 {padding-left:38px;}
.sla-period,.sla-date,.sla-weekday {display:block;}
.sla-period {font-size:11px;font-weight:600;letter-spacing:.02em;margin-bottom:7px;}
.sla-date {font-size:15px;font-weight:700;line-height:1.4;}
.sla-weekday {font-size:12px;font-weight:400;margin-top:3px;}
.pivot-table thead .pivot-group.sla-closed {background:#41434b;color:#fff;}
.pivot-table thead .sla-closed {background:#e0e1e5;color:#36373f;}
.pivot-table tbody td.sla-closed {background:#f0f0f3;}
.pivot-table .pivot-subtotal td.sla-closed {background:#dfe0e5;}
.pivot-table .sla-closed.pivot-section-start {border-left-color:#868892;}
.pivot-table thead .sla-in-progress .sla-period {color:#65515a;}
.pivot-table thead .sla-in-progress .sla-weekday {color:#62636e;}
.pivot-table .pivot-depth-3 {padding-left:60px;}
.productivity-pivot thead .productivity-week-group {background:#e5e7eb;color:#353842;font-weight:700;border-left:2px solid #b9bdc6;border-bottom:1px solid #b9bdc6;padding:11px 14px;}
.productivity-pivot thead tr:nth-child(2) th {background:#f8f9fb;min-width:116px;padding:12px 14px;}
.productivity-date,.productivity-weekday,.productivity-total-label {display:block;}
.productivity-date {font-weight:700;font-size:14px;line-height:1.4;}
.productivity-weekday {font-size:12px;font-weight:400;margin-top:4px;color:#666974;}
.productivity-pivot .productivity-week-start {border-left:2px solid #b9bdc6;}
.productivity-pivot thead tr:nth-child(2) .productivity-weekend {background:#e5e6e9;color:#60636d;}
.productivity-pivot tbody td.productivity-weekend {background:#f0f1f3;}
.productivity-pivot tbody .pivot-subtotal td.productivity-weekend {background:#e3e5e9;}
.productivity-pivot td.productivity-weekend .pivot-value:not(.points-low) {color:#626570;}
.productivity-pivot thead tr:nth-child(2) .productivity-week-total {background:#dce0e7;font-weight:700;border-left:1px solid #bdc2cc;border-right:2px solid #aeb5c0;}
.productivity-pivot tbody td.productivity-week-total {background:#e9ecf1;font-weight:700;border-left:1px solid #c8cdd5;border-right:2px solid #b9c0ca;}
.productivity-pivot tbody .pivot-subtotal td.productivity-week-total {background:#dce1e9;}
.productivity-pivot .productivity-week-total .pivot-value {font-weight:700;}
.productivity-pivot thead th.productivity-grand-total {background:#cfd5df;font-weight:700;border-left:2px solid #929cac;}
.productivity-pivot tbody td.productivity-grand-total {background:#e0e5ed;font-weight:700;border-left:2px solid #a8b1bf;}
.productivity-pivot tbody .pivot-subtotal td.productivity-grand-total {background:#d0d8e4;}
.productivity-pivot .productivity-grand-total .pivot-value {font-weight:700;}
.pivot-value {border:0;background:transparent;color:#36373f;padding:5px 8px;min-width:48px;text-align:right;cursor:pointer;text-decoration:none;}
.pivot-value:hover {background:#eaeaec;}
.pivot-value:disabled {color:#85858e;cursor:default;text-decoration:none;}
.tree-toggle {padding:1px 6px;margin-right:8px;min-width:25px;}
.metric-value[role="button"] {cursor:pointer;color:#36373f;text-decoration:none;}
.reference-body {padding:20px 24px;}
.reference-body details {margin-top:18px;border-top:1px solid #e0e0e5;padding-top:18px;}
.reference-body summary {cursor:pointer;font-weight:600;}
.reference-body p {font-size:13px;line-height:1.6;}
.reference-body select {max-width:320px;min-width:180px;}
.sync-row {display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;}
#assignment-details .panel-head {flex-wrap:wrap;gap:12px;}

/* Persistent cell notes: hover/focus affordance, always visible when annotated. */
.pivot-table td {position:relative;padding-right:32px;}
.comment-button {position:absolute;right:4px;top:4px;width:23px;height:23px;min-width:0;padding:3px;border:0;background:transparent;color:#77747f;opacity:0;z-index:1;}
.comment-button svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
.pivot-table td:hover .comment-button,.pivot-table td:focus-within .comment-button,.comment-button.has-comments {opacity:1;}
.comment-button.has-comments {color:#55515e;background:#e8e7ec;border-radius:4px;}
.annotated-cell::after {content:'';position:absolute;right:0;top:0;border-top:6px solid #77707d;border-left:6px solid transparent;pointer-events:none;}
.comment-load-error {padding:12px 24px;color:#9a3c21;}
.comment-dialog {width:min(560px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid #d0cdd6;border-radius:12px;padding:24px;box-shadow:0 16px 70px #23232944;color:#303137;}
.comment-dialog::backdrop {background:#22222877;}
.comment-dialog-head {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.comment-dialog h2 {margin:0;font-size:20px;}
#comment-context {font-size:13px;color:#74707c;line-height:1.6;}
.comment-dialog label {display:block;font-size:14px;font-weight:600;margin:18px 0 8px;}
.comment-dialog textarea {width:100%;resize:vertical;min-height:115px;border:1px solid #cfccd6;border-radius:6px;padding:12px;font:inherit;font-size:14px;line-height:1.6;}
.comment-actions {display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:18px;}
.comment-identity,.comment-meta,.no-comments {font-size:12px;color:#77717e;line-height:1.6;}
.saved-comment {border-left:3px solid #89818f;padding:8px 12px;background:#f4f3f6;border-radius:3px;margin:12px 0;}
.comment-meta {margin:0 0 5px;}
.comment-body {white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6;margin:0;}
#comment-message {font-size:13px;line-height:1.6;}
@media(hover:none) {.comment-button {opacity:.7;}}

/* Compact top navigation. Report colors are independent of this palette. */
.shell {display:block;}
.topbar {position:sticky;top:0;z-index:20;height:auto;min-height:64px;padding:0 28px;gap:24px;flex-wrap:nowrap;background:#27282d;border-bottom:1px solid #36373d;color:#ececef;}
.topbar .brand {margin:0;gap:12px;font-size:.92rem;color:#f4f4f6;flex-shrink:0;letter-spacing:.04em;}
.topbar .brand-mark {width:28px;height:30px;border:0;border-radius:0;color:#d47a80;background:none;font-size:1.05rem;font-weight:800;}
.topbar .brand-subtitle {color:#a9a9b3;font-size:.5rem;letter-spacing:.18em;margin-top:3px;}
.topbar .top-navigation {display:flex;align-items:stretch;flex-wrap:nowrap;gap:0;flex:1;min-width:0;align-self:stretch;}
.topbar .top-navigation a {padding:0 18px;min-height:64px;justify-content:center;color:#c4c4cc;font-size:.82rem;font-weight:500;white-space:nowrap;border-radius:0;border-bottom:3px solid transparent;text-decoration:none;}
.topbar .top-navigation a:hover {color:#fff;background:#303137;}
.topbar .top-navigation a.active {color:#fff;background:#303137;border-bottom-color:#bd5b63;box-shadow:none;}
.topbar .top-navigation a:focus-visible {outline:2px solid #d1848a;outline-offset:-4px;}
.topbar .top-navigation a>span {display:none;}
.topbar .top-navigation a:last-child {margin-left:auto;}
.topbar .profile {color:#a9a9b3;font-size:.7rem;white-space:nowrap;}
.topbar .avatar {display:none;}
@media(max-width:1100px) {
  .topbar {flex-wrap:wrap;gap:0;padding:0 24px;}
  .topbar .brand {min-height:58px;}
  .topbar .profile {margin-left:auto;}
  .topbar .top-navigation {order:3;flex-basis:100%;border-top:1px solid #36373d;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#6c5156 transparent;}
  .topbar .top-navigation a {min-height:48px;flex-shrink:0;padding:0 18px;}
}
@media(max-width:760px) {
  .topbar {padding:0 16px;}
  .topbar .brand {min-height:52px;font-size:.85rem;}
  .topbar .profile {font-size:.65rem;}
  .topbar .top-navigation a {min-height:48px;padding:0 15px;font-size:.78rem;}
  .topbar .top-navigation a:first-child {padding-left:0;}
  .topbar .top-navigation a:last-child {margin-left:0;}
}

.reference-actions {display:flex;justify-content:flex-end;padding:16px 0 4px;}
.point-rule-panel {border-bottom:1px solid #dedee5;}
.point-rule-panel summary {padding:16px 24px;font-weight:600;cursor:pointer;color:#484a53;}
.point-rules-body {padding:0 24px 20px;}
.point-rules-body p {font-size:13px;line-height:1.6;}
.point-rule-alert {background:#f7f1e5;border-left:3px solid #b49a66;padding:12px 15px;color:#675536;}
.point-admin-help {color:#72737b;}
.point-rules-table td {white-space:normal;min-width:130px;vertical-align:top;}
.point-rules-table small {color:#777984;line-height:1.5;}
.point-rules-table label {display:block;font-size:12px;margin-bottom:9px;}
.point-rules-table input {display:block;width:130px;margin-top:4px;}

.pivot-value.points-low {color:#a1373f;font-weight:600;}


/* Charcoal controls with restrained burgundy interaction accents. */
button:not(:disabled):hover,a.button:hover {background:#ededf0;color:#75434b;}
button.primary:not(:disabled):hover {background:#65383f;border-color:#65383f;color:#fff;}
.pivot-value:not(:disabled):hover {color:#75434b;background:#eaeaec;}
.pivot-value.points-low:not(:disabled):hover {color:#a1373f;background:transparent;}
.metric-value[role="button"]:hover {color:#75434b;}
@media(min-width:761px) {
  .metrics.metrics-backlog {grid-template-columns:repeat(5,minmax(0,1fr));}
}
.pivot-table.backlog-pivot .pivot-grand-total-column {border-left-color:#969aa6;}
.pivot-table.backlog-pivot thead .pivot-grand-total-column {background:#d5d7df;color:#30323b;}
.pivot-table.backlog-pivot td.pivot-grand-total-column {background:#e7e8ee;}
.pivot-table.backlog-pivot tbody tr.pivot-grand-total>th,
.pivot-table.backlog-pivot tbody tr.pivot-grand-total>td {background:#d9dbe3;border-top:2px solid #979ba8;border-bottom:2px solid #979ba8;font-weight:700;}
.pivot-table.backlog-pivot .pivot-grand-total .pivot-value,
.pivot-table.backlog-pivot .pivot-grand-total-column .pivot-value {font-weight:700;color:#30323b;}
.comment-button:not(:disabled):hover {background:#e9e6ea;color:#75434b;}
.topbar .top-navigation a:hover {background:#3c3035;color:#fff;}
:root { --ranking-bar: #55565f; }
.ranking-controls { display:flex; flex-wrap:wrap; gap:16px; padding:20px 24px 8px; }
.ranking-controls label { display:grid; gap:6px; font-size:13px; font-weight:600; }
.ranking-controls select { min-width:180px; }
.ranking-note { color:var(--muted, #737580); font-size:13px; padding:8px 24px; line-height:1.6; }
.ranking-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.ranking-group { padding:8px 24px 24px; min-width:0; }
.ranking-group h3 { margin-bottom:20px; }
.ranking-row { display:grid; grid-template-columns:minmax(130px,1.2fr) minmax(60px,1fr) 90px 64px; gap:10px; align-items:center; padding:10px 0; border-bottom:1px solid #eeeef1; }
.ranking-name { font-size:12px; overflow-wrap:anywhere; }
.ranking-track { width:100%; height:13px; border:0; background:#eeeef1; border-radius:8px; }
.ranking-track::-webkit-meter-bar { background:#eeeef1; border:0; }
.ranking-track::-webkit-meter-optimum-value { background:var(--ranking-bar); }
.ranking-track::-moz-meter-bar { background:var(--ranking-bar); }
.ranking-row:hover .ranking-track::-webkit-meter-optimum-value { background:#86505a; }
.ranking-value,.ranking-percent { text-align:right; font-size:13px; font-variant-numeric:tabular-nums; }
.ranking-value small { color:#737580; font-size:10px; }
.ranking-target { grid-column:2 / -1; color:#737580; font-size:11px; text-align:right; }
@media(max-width:1100px) { .ranking-columns { grid-template-columns:1fr; } }
@media(max-width:550px) { .ranking-row { grid-template-columns:minmax(90px,1fr) 50px 65px 50px; gap:5px; } .ranking-group { padding:8px 12px 20px; } }
.ranking-disclosure > summary { cursor:pointer; padding:22px 24px; font-weight:600; }
.ranking-disclosure > summary small { display:block; margin:10px 0 0 18px; font-size:13px; font-weight:400; color:#737580; }
.ranking-disclosure > summary:hover { color:#86505a; }
.ranking-disclosure > summary:focus-visible { outline:2px solid #86505a; outline-offset:-4px; }
.technician-notes-body { padding:0 24px 24px; }
.technician-notes-body > label { display:grid; gap:8px; max-width:480px; }
.technician-notes-body > p { font-size:13px; color:#737580; line-height:1.6; }
.technician-notes-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px; margin:16px 0; }
.technician-note-card { padding:18px; border:1px solid #e0e0e5; border-radius:10px; background:#fafafb; overflow-wrap:anywhere; }
.technician-note-card small { color:#737580; font-size:11px; }
.sla-chart { margin:20px 24px; padding:24px; border:1px solid #e2e2e8; border-radius:12px; background:#fff; }
.sla-chart-heading { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.sla-chart-heading h2 { margin:0; font-size:19px; }
.sla-chart-heading p,.sla-chart-note { color:#737580; font-size:12px; line-height:1.6; }
.sla-chart-legend { display:flex; gap:18px; font-size:12px; }
.sla-chart-legend span:first-child { color:#555a69; }
.sla-chart-legend span:last-child { color:#985562; }
.sla-chart-controls { display:flex; flex-wrap:wrap; gap:16px; margin:18px 0; }
.sla-chart-controls label { display:grid; gap:6px; font-size:12px; font-weight:600; }
.sla-plot-scroll { overflow-x:auto; }
.sla-plot-scroll svg { display:block; width:100%; min-width:680px; }
.sla-plot-scroll text { fill:#737580; font-size:11px; }
.sla-gridline { stroke:#eeeef2; stroke-dasharray:4 4; }
.sla-line { fill:none; stroke-width:3; }
.sla-line.in_ratio { stroke:#555a69; }
.sla-line.out_ratio { stroke:#985562; }
.sla-point { cursor:pointer; stroke:#fff; stroke-width:2; }
.sla-point.in_ratio { fill:#555a69; }
.sla-point.out_ratio { fill:#985562; }
.sla-point:hover,.sla-point:focus { stroke:#27282d; stroke-width:3; outline:none; }
@media(max-width:600px) { .sla-chart { margin:12px; padding:14px; } }
.sla-chart { background:linear-gradient(150deg,#fff 45%,#faf9fb); border-color:#ecebf0; box-shadow:0 6px 24px #27282d05; padding:24px 28px 14px; }
.sla-chart-heading h2 { font-size:17px; letter-spacing:-.3px; }
.sla-chart-heading p { margin:7px 0 0; }
.sla-chart-legend { align-items:center; gap:20px; }
.sla-chart-controls { padding:16px 0; margin:10px 0 4px; border-bottom:1px solid #efedf2; gap:12px; }
.sla-chart-controls label { color:#82818c; font-size:11px; }
.sla-chart-controls select { background:#fff; border-color:#e8e6ed; border-radius:9px; padding:9px 32px 9px 12px; min-height:36px; font-size:12px; }
.sla-line { stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.sla-line.in_ratio { stroke:#777c8b; }
.sla-line.out_ratio { stroke:#9e5b6b; }
.sla-point { cursor:default; }
.sla-plot-scroll svg .sla-value-label { font-size:12px; font-weight:600; }
.sla-plot-scroll svg .sla-value-label.in_ratio { fill:#646a7b; }
.sla-plot-scroll svg .sla-value-label.out_ratio { fill:#985566; }
.sla-plot-scroll text { font-size:11px; fill:#94919f; }
.sla-chart-note { margin:0; font-size:11px; color:#96929f; }
.monthly-sla-report .sla-plot-scroll svg { min-width:1800px; }
.sla-chart-legend span.in_ratio { color:#646a7b; }
.sla-chart-legend span.out_ratio { color:#985566; }

.pages-login { max-width: 420px; margin: 12vh auto; padding: 24px; }
