:root {
  color-scheme: light;
  --ink: #151b2b;
  --muted: #525b6d;
  --line: #e0e4ed;
  --blue: #254fdd;
  --blue-soft: #e9edfd;
  --sidebar: 260px;
  font-family: 'Onest Variable', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.45; }
body:has(.drawer) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #5075f5; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 2.55vw, 40px); line-height: 1.17; font-weight: 750; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: 27px; line-height: 1.22; font-weight: 730; letter-spacing: -.035em; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 710; }
.ti { font-size: 1.25em; line-height: 1; flex: none; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  display: flex; flex-direction: column; gap: 45px; padding: 30px 18px 34px;
  border-right: 1px solid var(--line); background: #fdfdfe;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 750; letter-spacing: -.04em; }
.sidebar .brand { padding: 0 9px; }
.brand .ti { color: var(--blue); font-size: 28px; }
.sidebar nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 18px; padding: 12px 14px; min-height: 49px; border-radius: 9px; }
.nav-link .ti { font-size: 23px; }
.nav-link:hover { background: #f3f5fa; }
.nav-link.active { background: var(--blue-soft); color: #1846cf; font-weight: 610; }
.account { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; position: relative; }
.account summary { display: flex; align-items: center; gap: 12px; padding: 3px 9px; }
.account summary::-webkit-details-marker { display: none; }
.account summary span { flex: 1; }
.avatar { background: #f0f2f6; padding: 7px; border-radius: 50%; }
.account-menu {
  position: absolute; bottom: 55px; left: 0; right: 0; z-index: 1; display: grid; gap: 10px;
  background: #fff; border: 1px solid var(--line); padding: 14px; border-radius: 9px;
  box-shadow: 0 8px 24px #101a3020; font-size: 14px;
}
.account-menu a:hover, .plain:hover { color: var(--blue); }
.plain { background: none; border: 0; padding: 0; color: inherit; }
.workspace { margin-left: var(--sidebar); padding: 36px 28px 72px 40px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 42px; }
.head-actions, .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.head-actions .primary { min-width: 208px; }
.date-today { font-size: 16px; color: var(--muted); padding-right: 24px; margin-right: 14px; border-right: 1px solid var(--line); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px;
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-weight: 620; color: var(--ink); text-align: center;
}
.button:hover { background: #f3f5fa; border-color: #c7d0e3; }
.button.primary { background: var(--blue); border-color: var(--blue); color: white; padding-inline: 18px; }
.button.primary:hover { background: #1c40b9; border-color: #1c40b9; }
.button:disabled { opacity: .6; cursor: wait; }
.button.icon-only { width: 42px; padding: 0; }
.deadlines { margin-bottom: 46px; }
.deadlines h2 { margin-bottom: 20px; }
.deadline-row {
  display: grid; grid-template-columns: 39% minmax(0, 1fr) minmax(155px, 23%); gap: 12px; align-items: center;
  min-height: 58px; padding: 9px 11px; border-top: 1px solid var(--line); font-size: 18px;
}
.deadline-row:last-child { border-bottom: 1px solid var(--line); }
.deadline-row time { justify-self: end; text-align: right; }
.deadline-row:hover, .list-row:hover, .registry tbody tr:hover { background: #f8faff; }
.late, .error { color: #b51f2e; }
.filters { display: flex; gap: 18px; align-items: center; margin: 25px 0 18px; }
.search { position: relative; width: min(580px, 65%); }
.search .ti { position: absolute; color: var(--muted); left: 16px; top: 12px; }
.search input { padding-left: 47px; }
input, textarea, select {
  border: 1px solid #d2d8e5; border-radius: 8px; background: #fff; color: var(--ink);
  width: 100%; min-height: 44px; padding: 9px 12px; min-width: 0;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--blue); flex: none; }
textarea { resize: vertical; }
.filters select { width: auto; min-width: 195px; max-width: 45%; }
.registry { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.registry :is(th, td) { border-bottom: 1px solid var(--line); padding: 14px 10px; overflow-wrap: anywhere; }
.registry th { font-weight: 530; font-size: 16px; color: var(--muted); }
.registry td { height: 61px; font-size: 18px; }
.registry th:nth-child(2) { width: 26%; }
.registry th:nth-child(3) { width: 23%; }
.registry a:hover, .notice a, .crumb, .account-menu a:hover { color: var(--blue); }
.client-name { font-weight: 660; }
.status { display: inline-flex; align-items: baseline; gap: 12px; }
.status::before { content: ''; display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #818a9b; }
.status.red::before { background: #c72838; }
.status.blue::before { background: #2b53df; }
.status.amber::before { background: #a85d00; }
.status.green::before { background: #248052; }
.muted, small { color: var(--muted); }
.empty { padding: 19px 11px; color: var(--muted); border-top: 1px solid var(--line); }
.notice { max-width: 680px; padding: 16px; background: #f2f5ff; border-radius: 8px; }
.notice a { text-decoration: underline; }
.crumb { display: inline-block; font-size: 14px; margin-bottom: 12px; }
.fields { display: grid; gap: 15px; }
.fields label:not(.check) { display: grid; gap: 7px; align-content: start; font-size: 14px; font-weight: 600; }
.fields :is(input, textarea, select) { font-size: 16px; font-weight: 400; }
.editor { max-width: 830px; }
.form-grid, .metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .wide { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 9px; }
.fields .actions { margin-top: 5px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.list-row small { display: block; margin-top: 3px; font-size: 13px; }
.scrim { position: fixed; inset: 0; background: #18223825; z-index: 2; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(610px, 100%); z-index: 3; overflow-y: auto; background: white; padding: 29px 28px 38px; box-shadow: -12px 0 36px #161d3514; }
.drawer-heading { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.drawer-heading h2 { overflow-wrap: anywhere; }
.eyebrow { font-size: 13px; margin-bottom: 7px; color: var(--muted); overflow-wrap: anywhere; }
.drawer-summary { display: flex; justify-content: space-between; gap: 12px; margin: 21px 0 17px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 0; border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--blue); border-color: var(--blue); font-weight: 620; }
.tabs span { color: var(--muted); font-size: 13px; }
.metrics { margin: 22px 0; }
.metrics dt { color: var(--muted); font-size: 13px; }
.metrics dd { margin: 4px 0 0; font-weight: 610; }
.drawer-block { display: grid; gap: 11px; padding: 18px 0; border-top: 1px solid var(--line); }
.drawer-block.actions { display: flex; }
.drawer-block.actions:empty { display: none; }
.fold { padding: 10px 0; }
.fold summary { color: var(--blue); }
.fold form { margin-top: 15px; }
.sign-in { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #f8f9fc; }
.login-card { width: min(100%, 400px); border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 30px; }
.login-card h1 { margin: 24px 0 20px; font-size: 29px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
  :root { --sidebar: 200px; }
  .workspace { padding-inline: 24px; }
  .registry td, .deadline-row { font-size: 16px; }
  .date-today { display: none; }
}
@media (max-width: 700px) {
  .sidebar { position: static; width: auto; display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { padding: 0; font-size: 20px; }
  .sidebar nav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 3px; }
  .nav-link { flex: 1; justify-content: center; padding: 7px 4px; gap: 4px; min-height: 42px; font-size: 13px; }
  .nav-link .ti { font-size: 16px; }
  .account { margin: 0; border: 0; padding: 0; }
  .account summary { padding: 0; }
  .account-menu { left: auto; bottom: auto; top: 42px; min-width: 185px; }
  .workspace { margin: 0; padding: 22px 15px 45px; }
  .page-header { margin-bottom: 26px; gap: 10px; flex-wrap: wrap; }
  .page-header .button { font-size: 14px; padding-inline: 10px; }
  .head-actions .primary { min-width: 0; }
  h2 { font-size: 23px; }
  .deadlines { margin-bottom: 29px; }
  .deadline-row { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 4px; gap: 4px 10px; }
  .deadline-client { grid-row: 2; font-size: 13px; color: var(--muted); }
  .deadline-row time { grid-column: 2; grid-row: 1 / 3; max-width: 110px; font-size: 13px; }
  .filters { gap: 7px; margin-block: 16px; }
  .filters input, .filters select { font-size: 13px; }
  .filters select { min-width: 0; }
  .search { flex: 1; width: auto; min-width: 0; }
  .search .ti { left: 10px; top: 14px; font-size: 16px; }
  .search input { padding-left: 32px; }
  .registry, .registry tbody { display: block; }
  .registry thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .registry tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; border-bottom: 1px solid var(--line); padding: 11px 4px; }
  .registry td { display: block; height: auto; padding: 0; border: 0; font-size: 14px; }
  .registry td:nth-child(2n) { text-align: right; }
  .registry td:last-child a { color: var(--blue); }
  .drawer { padding: 21px 16px 34px; }
}
@media (max-width: 425px) {
  .editor .form-grid { grid-template-columns: 1fr; }
  .drawer .form-grid { grid-template-columns: 1fr; }
}
