:root {
  color-scheme: light;
  --ink: #192437;
  --muted: #747f91;
  --accent: #2d6bf3;
  --accent-soft: #eaf0ff;
  --soft: #f2f5fb;
  --line: #e6eaf1;
  --paper: #fff;
  --canvas: #edf1f8;
  --danger: #b54146;
  --radius: 26px;
  --shadow: 0 5px 18px -9px rgb(40 60 100 / 12%);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: radial-gradient(ellipse at 92% 0%, #e5ebfc 0, transparent 40%), radial-gradient(ellipse at 0 90%, #e7f2f0 0, transparent 45%), var(--canvas);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; outline-offset: 4px; }
:focus-visible { outline: 3px solid #91b5ff; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 40px; font-weight: 650; line-height: 1.14; letter-spacing: -1.55px; }
h2 { font-size: 21px; font-weight: 620; letter-spacing: -.5px; }
h3 { font-size: 15px; margin: 24px 0 8px; }
p + p { margin-top: 10px; }
.muted, .hint { color: var(--muted); }
.small, .hint { font-size: 12px; }
.hint { display: block; line-height: 1.65; margin-top: 6px; font-weight: 400; }
.ui-icon { width: 21px; height: 21px; flex: none; }
.glass-surface {
  position: relative;
  background: rgb(255 255 255 / 62%);
  border: 1px solid rgb(255 255 255 / 80%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  backdrop-filter: blur(28px) saturate(145%);
  box-shadow: 0 12px 44px -24px rgb(43 62 100 / 22%);
  isolation: isolate;
}
.glass-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--glass-x, 50%) var(--glass-y, 50%), rgb(255 255 255 / 50%), transparent 75%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
  z-index: -1;
}
@media (hover: hover) { .glass-surface:hover::before { opacity: 1; } }
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 18px auto 18px 18px;
  width: 230px;
  border-radius: 30px;
  padding: 28px 15px 20px;
  display: flex;
  flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 650; letter-spacing: -.65px; padding: 0 10px; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: white; flex-shrink: 0; }
.brand-mark svg { width: 28px; height: 28px; }
.brand small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.nav-caption { font-size: 11px; color: #8a94a5; padding: 0 15px; margin: 42px 0 13px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 13px 15px; margin-bottom: 6px; border-radius: 16px; color: #657186; font-weight: 500; font-size: 14px; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--ink); background: rgb(255 255 255 / 70%); }
.nav-link.active { background: var(--accent); color: #fff; box-shadow: 0 5px 12px -6px #2d6bf370; }
.sidebar-bottom { margin-top: auto; padding-top: 36px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin: 0 6px 16px; padding: 8px; border: 1px solid #ffffffb3; border-radius: 18px; background: #ffffff73; color: #647086; }
.sidebar-user-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.sidebar-user-name small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.timezone { color: var(--muted); font-size: 10px; padding: 16px 15px 12px; }
.logout { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 15px; font-size: 12px; color: #667186; }
.logout .ui-icon { width: 17px; height: 17px; }
.mobile-logout-form { display: none; }
.main { margin-left: 260px; padding: 40px 34px 60px; max-width: 1700px; min-width: 0; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; color: var(--accent); font-size: 12px; font-weight: 600; border-radius: 50%; background: #e1eafd; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 27px; }
.page-header p { margin-top: 11px; font-size: 14px; color: #7b8597; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 15px; min-height: 44px; padding: 11px 20px; border-radius: 50px; font-size: 13px; font-weight: 550; border: 1px solid transparent; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.button:active { transform: scale(.98); }
.primary { background: var(--accent); color: white; box-shadow: 0 7px 18px -9px #2d6bf380; }
.primary:hover { background: #1e5ce0; }
.secondary { background: #fff; border-color: #e3e9f3; color: #45536a; }
.secondary:hover { background: #f5f8ff; border-color: #d3dff4; }
.text-link, .text-button { color: var(--accent); font-size: 13px; }
.text-button { border: 0; padding: 0; background: transparent; text-align: left; }
.text-link:hover, .text-button:hover { text-decoration: underline; }
.metrics { display: grid; grid-template-columns: 1.12fr 1fr 1fr 1.1fr; gap: 16px; margin-bottom: 18px; }
.metrics > div { display: flex; flex-direction: column; justify-content: space-between; min-height: 140px; padding: 22px 24px; gap: 14px; background: #ffffffe8; border: 1px solid #ffffffc9; border-radius: var(--radius); box-shadow: var(--shadow); }
.metrics > div:first-child { background: #dfeaff; border-color: #e6efff; }
.metrics strong { font-size: 42px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -1.8px; }
.metrics > div:first-child strong { color: var(--accent); }
.metrics span { font-size: 12px; color: #6c7a91; }
.setup-note { display: flex; align-items: center; gap: 12px; background: #ffffffa6; border: 1px solid #ffffffba; border-radius: 19px; padding: 15px 20px; font-size: 12px; color: #67758b; margin-bottom: 24px; }
.setup-note a { margin-left: auto; white-space: nowrap; color: var(--accent); font-weight: 500; }
.small-dot { height: 7px; width: 7px; border-radius: 50%; background: #d6a257; flex: none; }
.small-dot.on { background: #39a989; }
.filters { display: flex; gap: 10px; align-items: center; padding: 12px; background: #ffffffbd; border-radius: 22px; border: 1px solid #ffffffdb; margin: 24px 0 22px; }
.filters input, .filters select { margin: 0; min-width: 0; height: 44px; border: 0; }
.filters .search { flex: 1.8; min-width: 180px; background-color: #edf1f8; }
.filters select { flex: 1; min-width: 145px; background-color: #f4f6fb; font-size: 12px; }
.filter-checks { position: relative; flex: 1; min-width: 145px; z-index: 5; }
.filter-check-trigger { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 44px; padding: 0 32px 0 14px; border: 0; border-radius: 15px; background: #f4f6fb; color: var(--ink); font-size: 12px; text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; }
.filter-check-trigger:hover, .filter-checks[data-open="true"] .filter-check-trigger { background: #eaf0fb; }
.filter-check-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.filter-check-trigger::after { content: ""; position: absolute; right: 14px; width: 7px; height: 7px; border-right: 1.5px solid #748079; border-bottom: 1.5px solid #748079; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.filter-checks[data-open="true"] .filter-check-trigger::after { transform: translateY(2px) rotate(225deg); }
.filter-checks[data-open="true"] { z-index: 20; }
.filter-check-options { position: absolute; inset: calc(100% + 7px) 0 auto; z-index: 30; max-height: 270px; overflow-y: auto; padding: 7px; border: 1px solid #e4e9f2; border-radius: 15px; background: #fff; box-shadow: 0 12px 30px rgb(34 55 95 / 15%); }
.filter-check-options[hidden] { display: none; }
.filter-check-options label { display: flex; flex-direction: row; align-items: center; gap: 9px; min-height: 36px; margin: 0; padding: 6px 9px; border-radius: 9px; color: #536178; font-size: 12px; cursor: pointer; }
.filter-check-options label:hover { background: #f2f5fb; }
.filter-check-options input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.telegram-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.telegram-tools h2 { margin: 0; }
.telegram-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.telegram-actions button:disabled { opacity: .55; cursor: not-allowed; }
.telegram-tools > .hint { flex-basis: 100%; margin-top: 0; }
.filters .score-input { width: 86px; flex: none; background: #f4f6fb; }
.filters .button { background: #e7efff; color: var(--accent); border: 0; padding-inline: 19px; }
.list-meta { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: #7b8697; padding: 0 6px 16px; }
.list-meta > span:first-child { font-weight: 600; color: #59667d; }
.project-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.list-heading { display: none; }
.project-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 18px; align-items: start; padding: 24px 26px 18px; background: #fff; border: 1px solid #dce4f0; border-radius: var(--radius); box-shadow: 0 6px 20px -12px rgb(34 55 95 / 32%); transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, height .32s ease, opacity .24s ease, transform .32s ease, padding .32s ease, margin .32s ease; min-width: 0; }
.project-row > div:first-child { min-width: 0; }
.project-card-link { position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.project-card-link:focus-visible { outline: 3px solid #91b5ff; outline-offset: 4px; }
@media (hover: hover) { .project-row:hover { background-color: #f8faff; border-color: #b9c9e4; box-shadow: 0 12px 24px -12px rgb(40 65 110 / 24%); } }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; font-size: 10px; color: #78869c; margin-bottom: 12px; }
.row-meta span:first-child { padding: 3px 7px; color: #5c7ab1; background: #eef3fd; border-radius: 6px; font-weight: 500; }
.project-title { display: block; font-weight: 600; font-size: 18px; line-height: 1.45; letter-spacing: -.35px; overflow-wrap: anywhere; }
.project-title:hover { color: var(--accent); }
.preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #6e7c92; font-size: 12px; margin-top: 10px; line-height: 1.75; max-width: 800px; }
.budget { font-size: 13px; font-weight: 550; margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.score-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; text-align: right; padding-top: 3px; }
.score { font-size: 30px; line-height: 1.1; letter-spacing: -1px; font-weight: 600; white-space: nowrap; }
.score small { font-size: 10px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 3px; }
.score.good { color: #21866a; }
.score.medium { color: #ac8233; }
.score.low, .unrated { color: #b1bbcb; }
.unrated { font-size: 30px; line-height: 1.1; }
.score-cell .small { font-size: 10px; color: #78869c; }
.row-status { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-height: 38px; padding-top: 13px; margin-top: 1px; border-top: 1px solid #edf0f5; }
.tag { font-size: 10px; border-radius: 50px; padding: 5px 10px; display: inline-flex; align-items: center; line-height: 1.3; white-space: nowrap; }
.tag.neutral { background: #f0f3f9; color: #7a879b; }
.tag.green { background: #e8f4ed; color: #26805b; }
.row-open { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; min-height: 29px; padding: 0 10px; border-radius: 50px; color: #5e7598; background: #f0f4fb; font-size: 11px; white-space: nowrap; }
.empty { grid-column: 1 / -1; padding: 85px 24px; text-align: center; background: #ffffffc9; border-radius: var(--radius); }
.empty p { font-size: 13px; color: var(--muted); margin-top: 12px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 24px; font-size: 12px; }
.notice { padding: 16px 22px; border-radius: 18px; margin-bottom: 22px; font-size: 13px; }
.notice ul { margin-bottom: 0; }
.notice.success { background: #e5f2ed; color: #2c7359; }
.notice.error { background: #f9e8e8; color: var(--danger); }
.error-text { color: var(--danger); }
label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; margin-bottom: 22px; }
input, textarea, select { width: 100%; background: #f6f8fc; color: var(--ink); border: 1px solid #e7ebf3; border-radius: 13px; padding: 12px 15px; font-size: 13px; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #9aa4b4; }
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus { border-color: #8db2ff; background-color: #fff; outline: 3px solid #2d6bf30b; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.check { flex-direction: row; align-items: center; font-size: 12px; font-weight: 400; gap: 11px; }
.check input[type=hidden] { display: none; }
.check input[type=checkbox]:not([name=confirmed]) { appearance: none; padding: 0; width: 37px; height: 23px; border: 0; border-radius: 20px; background: #d8dfeb; position: relative; cursor: pointer; transition: background .18s; }
.check input[type=checkbox]:not([name=confirmed])::before { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #52648226; transition: transform .18s; }
.check input[type=checkbox]:not([name=confirmed]):checked { background: var(--accent); }
.check input[type=checkbox]:not([name=confirmed]):checked::before { transform: translateX(14px); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.settings-section { padding: 28px 30px; border: 1px solid #fff; background: #ffffffec; border-radius: var(--radius); margin-bottom: 18px; box-shadow: var(--shadow); }
.settings-section > h2, .settings-section > .section-title { margin-bottom: 22px; }
.settings-section > .muted, .settings-section > .hint { margin-bottom: 20px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.copy-button .ui-icon { width: 16px; height: 16px; }
.section-title .check { margin: 0; }
.narrow { max-width: 850px; }
.short-field { max-width: 330px; margin-top: 20px; }
.version { font-size: 11px; color: #7b8aa4; background: #ffffffa6; border: 1px solid #ffffffb3; padding: 7px 13px; border-radius: 50px; white-space: nowrap; }
.form-footer { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.form-footer .hint { margin: 0; }
.direction-editor { border: 1px solid #fff; background: #ffffffec; padding: 28px 30px 8px; border-radius: var(--radius); margin: 0 0 20px; min-width: 0; box-shadow: var(--shadow); }
.direction-editor h2 { font-size: 23px; }
.direction-editor .section-title > .text-button { font-size: 11px; }
.back-link { font-size: 12px; color: #75849e; display: inline-block; margin-bottom: 22px; }
.detail-header { align-items: flex-start; padding: 29px 30px; background: #ffffff9c; border: 1px solid #ffffffc9; border-radius: var(--radius); }
.detail-header h1 { font-size: 29px; line-height: 1.3; max-width: 850px; }
.detail-header .button { margin-top: 14px; }
.detail-budget { font-size: 17px !important; color: var(--accent); font-weight: 550; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; padding: 0 0 24px; }
.detail-grid > section, .evaluation { background: #ffffffeb; border: 1px solid #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.description { white-space: pre-wrap; font-size: 14px; line-height: 1.9; margin-top: 20px; overflow-wrap: anywhere; }
.evaluation { align-self: start; font-size: 13px; line-height: 1.75; }
.direction-result { padding: 20px 0; border-bottom: 1px solid var(--line); }
.direction-result > div { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.direction-result ul, .evaluation ul { padding-left: 18px; margin: 12px 0; }
.direction-result li + li, .evaluation li + li { margin-top: 7px; }
.draft-section { background: #ffffffeb; border: 1px solid #fff; padding: 28px 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.draft-section textarea { font-size: 14px; line-height: 1.8; }
.save-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 20px; }
.save-row label { margin: 0; min-width: 220px; }
.draft-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0; }
.project-row-actions { display: none; }
.project-row.selected .project-row-actions { position: relative; z-index: 2; grid-column: 1 / -1; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.project-row-actions form { display: inline-flex; width: max-content; margin: 0; }
.project-row-actions .button { width: auto; min-width: 0; min-height: 34px; padding: 7px 13px; border-radius: 12px; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.delivery-note { font-size: 12px; background: #f1f5fc; padding: 16px; border-radius: 15px; }
.delivery-note form { margin-top: 10px; }
.history { background: #ffffffb3; padding: 20px 25px; border-radius: 20px; margin-top: 22px; }
.history summary { font-size: 13px; cursor: pointer; color: #697b97; }
.section-space { margin-top: 22px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { font-weight: 400; color: var(--muted); font-size: 11px; }
td, th { padding: 14px 12px 14px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
td { overflow-wrap: anywhere; max-width: 400px; }
.code-input, .code-preview { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px; line-height: 1.8; }
.code-preview { background: #ffffffc9; border-radius: 20px; padding: 22px; overflow: auto; max-height: 600px; white-space: pre-wrap; overflow-wrap: anywhere; }
.break { overflow-wrap: anywhere; }
.guest { margin: 0; padding: 32px; max-width: none; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.guest > .notice { width: 100%; max-width: 420px; margin: 0 0 20px; }
.login-layout { width: 100%; max-width: 420px; }
.login-shell { display: grid; justify-items: center; gap: 30px; padding: 38px 36px 36px; border: 1px solid #fff; border-radius: 25px; background: #fff; box-shadow: 0 18px 40px -28px rgb(34 52 83 / 40%); }
.login-shell .login-mark { width: 54px; height: 54px; border-radius: 17px; }
.login-shell .login-mark svg { width: 32px; height: 32px; }
.login-google { display: inline-flex; min-height: 41px; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #747775; border-radius: 24px; background: #fff; color: #1f1f1f; font: 500 14px/20px "Google Sans", Arial, sans-serif; white-space: nowrap; }
.login-google:hover { background: #f7f8f8; }
.login-google:active { background: #eef0f1; }
.login-google img { flex: 0 0 18px; object-fit: contain; }
.login-unavailable { color: var(--muted); font-size: 14px; text-align: center; }
.login-form { width: 100%; margin-top: 0; }
.login-form label { margin-bottom: 9px; color: #60708a; font-size: 12px; }
.login-form input { height: 52px; background: #f4f6fb; border-color: #e1e7f1; padding-inline: 15px; border-radius: 15px; margin-bottom: 23px; }
.login-form input:focus { background: #ffffffd9; border-color: #9cbaf3; }
.password-field { position: relative; }
.password-field input { padding-right: 85px; }
.password-toggle { position: absolute; top: 0; right: 12px; height: 52px; padding: 0 3px; border: 0; background: transparent; color: #8b9ab3; font-size: 10px; }
.login-form .button { width: 100%; min-height: 52px; border-radius: 17px; justify-content: center; padding-inline: 22px; font-size: 14px; margin-top: 3px; }
.login-form .button span { font-size: 20px; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
select { appearance: none; 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='%23748079'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { background-image: none; padding-right: 15px; white-space: nowrap; }
  select::picker-icon { color: var(--muted); transition: rotate .15s; }
  select:open::picker-icon { rotate: 180deg; }
  ::picker(select) { border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 10px 25px #192b2714; background: #fff; }
  option { padding: 11px 14px; font-size: 13px; }
  option:hover, option:focus { background: #f0f5ff; }
  option:checked { background: #e9f0ff; color: var(--accent); }
}
@media (min-width: 1700px) { .main { padding-left: 52px; padding-right: 52px; } }
@media (max-width: 1250px) {
  .sidebar { width: 210px; }
  .main { margin-left: 236px; padding-inline: 24px; }
  .brand { font-size: 19px; gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .nav-link { font-size: 13px; gap: 10px; padding: 13px 11px; }
  .metrics > div { padding: 21px; }
  .filters { flex-wrap: wrap; }
  .filters .search { flex-basis: 100%; }
  .project-row { padding: 22px; gap: 15px; grid-template-columns: minmax(0, 1fr) 58px; }
  .login-shell { padding: 34px; }
}
@media (max-width: 1000px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics > div { min-height: 125px; }
  .project-list { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .guest { padding-inline: 30px; }
  .login-shell { padding: 30px; }
}
@media (max-width: 760px) {
  body { background: radial-gradient(ellipse at 90% 0, #e2eafb, transparent 65%), #eef2f8; background-attachment: fixed; }
  .sidebar { position: fixed; inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px; width: auto; height: 72px; padding: 6px; border-radius: 27px; background: #ffffffe6; backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); box-shadow: 0 5px 30px -10px #304e8129; }
  .sidebar .brand, .nav-caption, .sidebar-bottom { display: none; }
  .sidebar nav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); height: 100%; gap: 3px; }
  .mobile-logout-form { display: block; min-width: 0; }
  .mobile-logout { width: 100%; height: 100%; border: 0; background: transparent; color: #657186; font: inherit; }
  .nav-link { flex-direction: column; justify-content: center; gap: 5px; padding: 5px 2px; margin: 0; font-size: 9px; font-weight: 500; border-radius: 21px; }
  .nav-link .ui-icon { width: 21px; height: 21px; }
  .nav-link.active { background: #e5eeff; color: #2d6bf3; box-shadow: none; }
  .main { margin: 0; padding: 22px 18px calc(108px + env(safe-area-inset-bottom)); }
  .page-header { align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .page-header h1 { font-size: 32px; letter-spacing: -1.1px; }
  .page-header p { font-size: 12px; line-height: 1.7; max-width: 235px; }
  .page-header .button { padding: 10px 13px; font-size: 11px; gap: 9px; min-height: 40px; }
  .page-header > form { padding-top: 2px; }
  .metrics { gap: 12px; margin-bottom: 15px; }
  .metrics > div { min-height: 103px; padding: 18px 21px; border-radius: 24px; gap: 10px; }
  .metrics strong { font-size: 35px; }
  .metrics span { font-size: 11px; }
  .setup-note { flex-wrap: wrap; font-size: 11px; gap: 8px; padding: 16px; border-radius: 20px; }
  .setup-note > div, .setup-note > span:not(.small-dot) { flex: 1; min-width: 230px; }
  .setup-note a { margin-left: 15px; }
  .filters { border-radius: 22px; gap: 9px; padding: 11px; margin: 22px 0; }
  .filters select { min-width: 125px; font-size: 11px; }
  .filters .score-input { width: 85px; }
  .filters .button { padding-inline: 17px; min-height: 42px; }
  .filters input { font-size: 12px; }
  .list-meta { font-size: 10px; align-items: flex-start; padding-inline: 2px; }
  .list-meta span:last-child { text-align: right; max-width: 190px; }
  .project-list { gap: 13px; }
  .project-row { grid-template-columns: minmax(0, 1fr) 58px; gap: 14px; padding: 21px 20px 16px; border-radius: 25px; }
  .project-title { font-size: 17px; line-height: 1.45; }
  .row-meta { font-size: 9px; gap: 6px; }
  .preview { font-size: 12px; }
  .budget { font-size: 12px; }
  .score { font-size: 25px; }
  .score-cell .small { font-size: 9px; line-height: 1.6; }
  .score small { font-size: 9px; margin-left: 1px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .settings-section, .direction-editor { padding: 24px 21px 12px; border-radius: 25px; }
  .settings-section { padding-bottom: 24px; }
  .section-title { align-items: flex-start; gap: 12px; }
  .section-title h2 { font-size: 19px; }
  .section-title .check { max-width: 165px; font-size: 11px; }
  .direction-editor .section-title { flex-wrap: wrap; }
  .form-footer { flex-wrap: wrap; gap: 13px; }
  .detail-header { flex-wrap: wrap; padding: 24px; }
  .detail-header h1 { font-size: 24px; }
  .detail-header .button { margin-top: 0; }
  .detail-grid { gap: 16px; }
  .detail-grid > section, .evaluation { padding: 23px; border-radius: 25px; }
  .draft-section { padding: 24px 21px; border-radius: 25px; }
  .save-row { align-items: stretch; flex-direction: column; gap: 16px; }
  .draft-actions { align-items: flex-start; flex-direction: column; }
  .pagination { gap: 12px; }
  .pagination .button { padding: 8px 14px; }
  .description { font-size: 13px; }
  .guest { padding: 32px 20px; }
  .login-shell { padding: 29px 25px; gap: 25px; }
  .login-shell h1 { font-size: 26px; }
  input, textarea, select { font-size: 16px; }
  .filters input, .filters select { font-size: 12px; }
  .login-form input { font-size: 16px; }
}
@media (max-width: 370px) {
  .main { padding-inline: 14px; }
  .page-header { flex-wrap: wrap; }
  .page-header p { max-width: none; }
  .page-header > form { padding: 0; }
  .nav-link { font-size: 8px; }
  .guest { padding: 25px 17px; }
  .login-shell { padding: 25px 21px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-surface { background: #f8faff; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass-surface, .sidebar { background: #f8faff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .project-row:hover { transform: none; }
  .glass-surface::before { display: none; }
}

/* Direction overview and separate edit pages. */
.direction-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.direction-card { display: flex; flex-direction: column; min-width: 0; padding: 26px 28px; border-radius: var(--radius); background: #ffffffed; border: 1px solid #fff; box-shadow: var(--shadow); }
.direction-card .section-title { margin-bottom: 20px; }
.direction-threshold { color: #7b89a0; font-size: 12px; }
.direction-card h2 { font-size: 23px; line-height: 1.35; overflow-wrap: anywhere; }
.direction-card h2 a:hover { color: var(--accent); }
.direction-summary { font-size: 13px; color: #75839a; line-height: 1.8; margin-top: 13px; overflow-wrap: anywhere; }
.direction-words { display: flex; flex-wrap: wrap; gap: 9px 20px; font-size: 11px; color: #8693a7; margin: 23px 0; }
.direction-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; margin-top: auto; border-top: 1px solid var(--line); }
.direction-delete { font-size: 12px; color: #8b7d85; }
.direction-delete:hover { color: var(--danger); }
@media (max-width: 1050px) { .direction-list { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .direction-card { padding: 24px 22px; } .direction-card h2 { font-size: 21px; } }

.profile-short { display: none; }
.profile-long { font-size: 12px; white-space: nowrap; }
@media (max-width: 760px) { .profile-long { display: none; } .profile-short { display: inline; } }

@media (max-width: 760px) { .directions-header { flex-wrap: wrap; } .directions-header > div { min-width: 0; } .directions-header p { max-width: none; } }

.project-feed > .filters { margin: 0 0 16px; }
.overview-details { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 25px; margin: 24px 0 30px; }
.overview-details dt { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.overview-details dd { margin: 0; font-size: 15px; font-weight: 500; }
.overview-actions { display: flex; align-items: center; gap: 22px; }
@media (max-width: 760px) { .overview-details { grid-template-columns: 1fr; gap: 18px; } .overview-actions { flex-wrap: wrap; gap: 16px; } .dashboard-header { flex-wrap: wrap; } }

/* Compact project feed: task on the left, budget and assessment on the right. */
.project-feed .project-row { grid-template-columns: minmax(0, 1fr) 310px; align-items: center; gap: 28px; padding: 20px 24px; border-radius: 22px; }
.project-content { min-width: 0; }
.project-feed .row-meta { gap: 5px 9px; margin-bottom: 8px; }
.project-feed .row-meta .tag { font-size: 9px; padding: 3px 7px; }
.project-feed .project-title { font-size: 17px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.project-feed .preview { margin-top: 6px; max-width: 850px; font-size: 12px; line-height: 1.7; }
.project-aside { display: grid; grid-template-columns: minmax(0, 1fr) 78px auto; align-items: center; gap: 18px; min-width: 0; }
.project-aside .budget { display: block; margin: 0; text-align: right; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.project-aside .score-cell { padding: 0; gap: 4px; }
.project-aside .score { font-size: 26px; }
.project-aside .unrated { font-size: 25px; }
.project-aside .small { line-height: 1.45; }
.project-aside .row-open { width: max-content; min-height: 28px; margin: 0; justify-self: end; grid-column: -2 / -1; }
@media (max-width: 1100px) { .filters { flex-wrap: wrap; } .filters .search { flex: 1 1 260px; } .filters select { flex: 1 1 200px; } }
@media (max-width: 1250px) { .project-feed .project-row { grid-template-columns: minmax(0, 1fr) 275px; gap: 20px; } .project-aside { gap: 13px; grid-template-columns: minmax(0, 1fr) 70px auto; } }
@media (max-width: 1000px) { .project-feed .project-row { grid-template-columns: minmax(0, 1fr); gap: 15px; } .project-aside { grid-template-columns: minmax(0, 1fr) 100px auto; } .project-aside .budget { text-align: left; } }
@media (max-width: 760px) { .project-feed .project-row { padding: 18px 20px; border-radius: 21px; } .project-feed .project-title { font-size: 16px; } .project-aside .budget { font-size: 13px; } .project-aside .score { font-size: 23px; } .project-aside { grid-template-columns: minmax(0, 1fr) 90px auto; gap: 12px; } }

.load-more { display: block; margin: 18px auto 0; }
.infinite-status { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.infinite-sentinel { height: 1px; }

.load-more[hidden], .infinite-status[hidden] { display: none; }

.pagination[hidden] { display: none; }

.detail-panel-toolbar { display: flex; justify-content: flex-end; min-height: 34px; margin-bottom: 8px; }
.detail-close { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #edf1f8; color: #697991; transition: background .15s, color .15s, transform .15s; }
.detail-close:hover { background: #e1e9f7; color: var(--ink); transform: scale(1.04); }
.detail-close .ui-icon { width: 16px; height: 16px; }

@media (min-width: 1251px) {
  .project-workspace { display: grid; grid-template-columns: minmax(330px, .88fr) minmax(450px, 1.12fr); align-items: start; gap: 16px; }
  .project-list-pane, .project-detail-panel { height: calc(100vh - 220px); min-height: 420px; min-width: 0; }
  .project-list-pane { overflow-y: auto; overscroll-behavior: contain; padding: 0 10px 12px 0; scrollbar-gutter: stable; }
    .project-list-pane .project-list { gap: 12px; }
  .project-list-pane .project-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px; border-radius: 17px; box-shadow: 0 4px 15px -11px rgb(34 55 95 / 40%); background: #fff; border-color: #dce4f0; }
  .project-list-pane .project-row.selected { border-color: #79a2ff; background: #f2f6ff; box-shadow: 0 0 0 2px #dce8ff, 0 6px 18px -10px rgb(45 107 243 / 38%); }
  @media (hover: hover) { .project-list-pane .project-row:hover:not(.selected) { background: #edf3ff; border-color: #7fa6ff; box-shadow: 0 0 0 2px #dce8ff, 0 8px 20px -12px rgb(45 107 243 / 38%); } }
  .project-list-pane .project-title { font-size: 14px; line-height: 1.4; }
  .project-list-pane .preview { font-size: 11px; line-height: 1.5; margin-top: 5px; }
  .project-list-pane .row-meta { gap: 4px 7px; font-size: 9px; margin-bottom: 6px; }
  .project-list-pane .project-aside { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .project-list-pane .project-aside .budget { justify-self: start; text-align: left; font-size: 11px; }
  .project-list-pane .project-aside .score-cell { align-items: flex-end; }
  .project-list-pane .project-aside .score { font-size: 18px; }
  .project-list-pane .project-aside .unrated { font-size: 18px; }
  .project-detail-panel { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 18px; scrollbar-gutter: stable; border: 1px solid #ffffffd9; border-radius: 24px; background: #ffffffa8; box-shadow: var(--shadow); }
  .project-detail-panel .detail-header { flex-wrap: wrap; gap: 12px; padding: 18px; margin-bottom: 14px; border-radius: 20px; }
  .project-detail-panel .detail-header h1 { font-size: 24px; line-height: 1.35; letter-spacing: -.7px; }
  .project-detail-panel .detail-header .button { margin-top: 0; }
  .project-detail-panel .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 14px; }
  .project-detail-panel .detail-grid > section, .project-detail-panel .evaluation, .project-detail-panel .draft-section { padding: 20px; border-radius: 20px; }
  .project-detail-panel .description { font-size: 13px; line-height: 1.7; margin-top: 12px; }
  .project-detail-panel .history { margin-top: 14px; padding: 16px; }
  .detail-placeholder { min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px; color: #65738a; }
  .detail-placeholder strong { font-size: 19px; color: var(--ink); }
  .detail-placeholder p { max-width: 340px; margin-top: 10px; font-size: 13px; line-height: 1.7; }
}
@media (max-width: 1250px) {
  .project-workspace { display: block; }
  .project-detail-panel { display: none; }
  .project-workspace[data-selected="true"] .project-list-pane { display: none; }
  .project-workspace[data-selected="true"] .project-detail-panel { display: block; max-height: none; height: auto; overflow: visible; }
}

.project-row.is-saving { opacity: .75; }
.project-row.is-collapsing { min-height: 0 !important; height: 0 !important; margin-block: 0 !important; padding-block: 0 !important; border-width: 0 !important; opacity: 0; transform: scaleY(.94); overflow: hidden; }
.project-status-feedback { color: #b4534b; font-size: 10px; white-space: nowrap; }

.notice.toast-notification { position: fixed; z-index: 10000; top: max(20px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); width: min(380px, calc(100vw - 40px)); margin: 0; padding: 14px 18px; border: 1px solid #ffffffd9; border-radius: 18px; background: #e5f2edeb; box-shadow: 0 16px 42px -16px rgb(25 36 55 / 35%); backdrop-filter: blur(20px) saturate(1.35); -webkit-backdrop-filter: blur(20px) saturate(1.35); animation: toast-enter .28s cubic-bezier(.2,.8,.2,1) both; transition: opacity .24s ease, transform .24s ease; }
.notice.toast-notification.is-hiding { opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; }
@keyframes toast-enter { from { opacity: 0; transform: translateY(-9px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .notice.toast-notification { animation: none; transition: none; } }
@media (max-width: 1450px) {
  .project-feed > .filters { flex-wrap: wrap; }
  .project-feed > .filters .search { flex: 1 1 100%; }
}

/* Compact project filters: keep the daily controls visible and group the rest. */
.filters { display: block; padding: 8px; margin: 0 0 14px; overflow: visible; }
.filter-toolbar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.filter-scroll { display: flex; flex: 1 1 auto; align-items: center; gap: 8px; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 0 0 4px; scrollbar-width: thin; scrollbar-color: #cbd5e5 transparent; overscroll-behavior-inline: contain; }
.filter-scroll > * { flex: 0 0 auto; }
.filter-scroll > .filter-checks { width: 160px; min-width: 160px; flex: 0 0 160px; }
.filter-scroll .filter-checks[data-filter-floating] { z-index: 100; }
.filter-scroll .filter-checks[data-filter-floating] .filter-check-options { position: fixed; inset: auto; z-index: 1000; max-height: min(270px, calc(100vh - 24px)); }
.filter-search-toggle { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 0; border-radius: 14px; background: #f4f6fb; color: #64748b; cursor: pointer; }
.filter-search-toggle:hover, .filter-search-toggle[aria-expanded="true"] { background: #e8efff; color: var(--accent); }
.filter-search-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.filters .search { width: 0; min-width: 0; flex: 0 0 0; height: 42px; padding: 0; border: 0; opacity: 0; overflow: hidden; transition: width .18s ease, opacity .15s ease, padding .18s ease; }
.filters .search[hidden] { display: none; }
.filters .search.is-open { width: min(260px, 35vw); min-width: 190px; flex: 0 0 auto; padding: 10px 14px; opacity: 1; }
.filter-scroll > select { width: 155px; min-width: 155px; height: 42px; flex: 0 0 155px; }
.filter-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.filter-more-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 42px; padding: 0 12px; border: 0; border-radius: 14px; background: #f4f6fb; color: #536178; font-size: 12px; cursor: pointer; }
.filter-more-toggle[aria-expanded="true"] { color: var(--accent); background: #e8efff; }
.filter-more-count { display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e3e9f3; color: #6b7890; font-size: 10px; }
.filter-submit { height: 42px; min-height: 42px; padding: 0 16px !important; }
.filter-advanced { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 2px 2px; }
.filter-advanced[hidden] { display: none; }
.filter-advanced > select, .filter-advanced > .filter-checks { flex: 1 1 175px; min-width: 150px; }
.filter-advanced .score-input { width: 100px; flex: 0 1 100px; height: 44px; }
.filter-reset { display: inline-block; margin: -7px 0 10px 8px; font-size: 12px; }
.filter-fixed-status { display: inline-flex; align-items: center; padding: 0 7px; color: #536178; font-size: 12px; white-space: nowrap; }
@media (max-width: 700px) {
  .filters { padding: 6px; border-radius: 18px; }
  .filter-toolbar { gap: 5px; }
  .filter-scroll { gap: 6px; }
  .filter-scroll > select { width: 145px; min-width: 145px; flex-basis: 145px; }
  .filter-scroll > .filter-checks { width: 150px; min-width: 150px; flex-basis: 150px; }
  .filter-actions { gap: 5px; }
  .filter-more-toggle { width: 42px; padding: 0; font-size: 0; }
  .filter-more-toggle::before { content: "···"; font-size: 19px; line-height: 1; letter-spacing: 1px; }
  .filter-more-count { position: absolute; transform: translate(15px,-14px); }
  .filter-submit { min-width: 42px; width: 42px; padding: 0 !important; font-size: 0; }
  .filter-submit::before { content: "✓"; font-size: 15px; }
  .filter-advanced > select, .filter-advanced > .filter-checks { flex-basis: calc(50% - 4px); min-width: min(145px, calc(50% - 4px)); }
}
@media (prefers-reduced-motion: reduce) {
  .filters .search { transition: none; }
}
/* Styled date range picker and deterministic checkbox menus. */
.filter-advanced .filter-checks { flex: 1 1 175px; min-width: 150px; }
.filter-advanced .filter-check-trigger { height: 44px; }
.filter-scroll .filter-check-trigger { height: 42px; }
.filter-scroll .filter-check-options[data-floating="true"] { position: fixed; inset: auto; z-index: 1000; max-height: min(270px, calc(100vh - 24px)); }
.date-picker { position: relative; flex: 0 0 auto; }
.date-picker-toggle { display: inline-flex; align-items: center; gap: 8px; min-width: 122px; max-width: 220px; height: 42px; padding: 0 13px; border: 0; border-radius: 14px; background: #f4f6fb; color: #536178; font-size: 12px; white-space: nowrap; cursor: pointer; }
.date-picker-toggle:hover, .date-picker-toggle[aria-expanded="true"] { background: #e8efff; color: var(--accent); }
.date-picker-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.date-picker-toggle span { overflow: hidden; text-overflow: ellipsis; }
.date-calendar { position: absolute; inset: calc(100% + 8px) auto auto 0; z-index: 1000; width: 326px; padding: 15px; border: 1px solid #e4eaf4; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 20px 55px rgb(31 48 75 / 22%); }
.date-calendar[hidden] { display: none; }
.date-calendar[data-floating="true"] { position: fixed; inset: auto; }
.date-calendar-head { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 8px; margin-bottom: 13px; }
.date-calendar-head strong { text-align: center; font-size: 14px; font-weight: 600; text-transform: capitalize; }
.date-calendar-head button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 12px; background: #f2f5fa; color: #586982; cursor: pointer; }
.date-calendar-head button:hover { color: var(--accent); background: #e8efff; }
.date-calendar-head svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.date-calendar-weekdays, .date-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.date-calendar-weekdays { margin-bottom: 5px; }
.date-calendar-weekdays span { display: grid; place-items: center; height: 26px; color: #8a96a9; font-size: 10px; font-weight: 500; }
.date-calendar-day { display: grid; place-items: center; min-width: 0; height: 36px; padding: 0; border: 0; border-radius: 11px; background: transparent; color: #344157; font-size: 12px; cursor: pointer; }
.date-calendar-day:hover { background: #edf2fb; }
.date-calendar-day.is-outside { color: #aeb8c8; }
.date-calendar-day.is-in-range { border-radius: 7px; background: #eef3ff; color: #4065ad; }
.date-calendar-day.is-selected { border-radius: 11px; background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgb(45 107 243 / 25%); }
.date-calendar-day[aria-current="date"]:not(.is-selected) { box-shadow: inset 0 0 0 1px #8aa9e5; }
.date-calendar-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 43px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #edf0f5; }
.date-calendar-footer > span { min-width: 0; color: #7a879c; font-size: 10px; }
.date-calendar-footer > div { display: flex; align-items: center; gap: 6px; }
.date-calendar-footer button { height: 31px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: #66758d; font-size: 10px; cursor: pointer; white-space: nowrap; }
.date-calendar-footer button:hover { background: #f2f5fa; }
.date-calendar-footer .date-calendar-done { background: #e8efff; color: var(--accent); font-weight: 600; }
.date-calendar-footer .date-calendar-done:hover { background: #dce8ff; }
.filter-check-trigger:focus-visible, .date-picker-toggle:focus-visible, .date-calendar button:focus-visible { outline: 3px solid #91b5ff; outline-offset: 2px; }
@media (max-width: 700px) {
  .date-calendar { width: min(326px, calc(100vw - 24px)); }
  .date-calendar-day { height: 38px; }
  .date-picker-toggle { max-width: 190px; }
}


/* Quick project views */
.project-quick-tabs { display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0 0 11px; padding: 0 4px; border-bottom: 1px solid #dfe5ef; overflow-x: auto; scrollbar-width: none; }
.project-quick-tabs::-webkit-scrollbar { display: none; }
.project-quick-tab { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 39px; padding: 0 12px 9px; color: #748198; font-size: 12px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: color .15s ease; }
.project-quick-tab:hover, .project-quick-tab.active { color: var(--accent); }
.project-quick-tab.active { font-weight: 600; }
.project-quick-tab.active::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); content: ""; }
.project-quick-tab small { padding: 2px 6px; border-radius: 8px; background: #edf1f8; color: #7a879a; font-size: 9px; font-weight: 500; }
.project-quick-tab.active small { background: #e8efff; color: #4775ce; }
.project-quick-tab:focus-visible { outline: 2px solid #91b5ff; outline-offset: -2px; border-radius: 8px; }

@media (max-width: 420px) {
  .project-quick-tabs { gap: 0; padding-inline: 0; }
  .project-quick-tab { gap: 5px; padding-inline: 8px; }
  .project-quick-tab.active::after { right: 7px; left: 7px; }
}
