/* Visual language follows the V4.5 mockup (example/). */
:root {
  --nav: #101c32; --canvas: #f5f7fb; --card: #fff; --ink: #1b2b43; --muted: #738198;
  --line: #e4ebf5; --blue: #4259d6; --teal: #11816e; --red: #c4495b; --shadow: 0 5px 20px #24354e08;
}
* { box-sizing: border-box; }
body { margin: 0; font: 13px/1.45 Inter, ui-sans-serif, -apple-system, "Segoe UI", Arial, sans-serif; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: #3b56c9; text-decoration: none; }

.app-shell { display: grid; grid-template-columns: 255px minmax(0, 1fr); min-height: 100vh; }
.side { height: 100vh; position: sticky; top: 0; background: var(--nav); padding: 22px 12px 20px; color: #cfdaec; overflow: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 13px 22px; }
.brandmark { width: 39px; height: 39px; border-radius: 11px; background: #fff; color: #304ecc; display: grid; place-items: center; font-weight: 900; letter-spacing: -2px; }
.brand.dark .brandmark { background: var(--blue); color: #fff; }
.brand strong { font-size: 16px; color: #fff; display: block; letter-spacing: .4px; }
.brand.dark strong { color: var(--ink); }
.brand small { color: #91a3bc; letter-spacing: 1px; font-size: 9px; }
.side-group { margin: 17px 13px 7px; font-size: 10px; letter-spacing: 1.5px; color: #7e91aa; font-weight: 800; text-transform: uppercase; }
.sidenav { color: #c2cede; border-radius: 9px; padding: 10px 13px; display: flex; align-items: center; gap: 10px; font-size: 12px; margin: 2px 0; }
.sidenav:hover, .sidenav.active { background: #2b4068; color: #fff; }
.sidenav .em { font-size: 15px; width: 19px; text-align: center; }

.main { min-width: 0; }
.bar { height: 68px; position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 0 27px; background: #fff; border-bottom: 1px solid var(--line); }
.bar-actions { display: flex; align-items: center; gap: 12px; }
.bar-actions form { margin: 0; }
.crumb { color: #65758c; font-size: 12px; }
.crumb strong { color: #263c61; }
.crumb .sep { color: #c4cddc; }
.body { padding: 27px 29px 70px; max-width: 1650px; margin: 0 auto; }
.bare { min-height: 100vh; display: grid; place-items: center; padding: 16px; }

.heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 20px; }
.heading h1 { font-size: 27px; letter-spacing: -.7px; margin: 5px 0; }
.heading p { margin: 0; color: var(--muted); max-width: 920px; line-height: 1.7; }
.eyebrow { font-size: 10px; color: var(--blue); letter-spacing: 1.7px; font-weight: 800; text-transform: uppercase; }

.btn { padding: 9px 13px; border-radius: 9px; background: #fff; border: 1px solid #dce4ef; font-weight: 700; color: #34445f; font-size: 12px; }
.btn:hover { border-color: #9fb4d8; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.small { padding: 5px 9px; font-size: 10px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 13px; margin-bottom: 17px; }
.stat, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.stat { padding: 18px; }
.stat .m { font-size: 11px; color: var(--muted); }
.stat strong { display: block; font-size: 27px; margin: 8px 0 2px; letter-spacing: -.8px; }
.stat small { font-size: 11px; color: #7f8da2; }
.panel { padding: 19px; margin-bottom: 15px; min-width: 0; }
.panel h3 { font-size: 15px; margin: 0 0 13px; }
.panel-sub { color: var(--muted); font-size: 11px; margin: -8px 0 12px; }
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 15px; }
.gridEqual { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.quick { display: block; border: 1px solid var(--line); padding: 13px; border-radius: 10px; margin-bottom: 9px; background: #fff; color: inherit; }
.quick:hover { border-color: #a8b9e7; }
.quick b { display: block; font-size: 12px; margin: 5px 0; }
.small { color: var(--muted); font-size: 11px; }
.news { border-bottom: 1px solid var(--line); padding: 11px 2px; }
.news:last-child { border-bottom: 0; }
.empty { text-align: center; padding: 30px; color: #8b9aae; font-size: 12px; }
.notebox { padding: 12px 15px; border: 1px solid #d7e3f8; background: #f1f6ff; color: #405e8e; border-radius: 11px; font-size: 11px; margin-bottom: 14px; }
.alert { padding: 10px 13px; border-radius: 9px; background: #ffeef1; color: #af3d52; margin-bottom: 12px; font-size: 12px; }

.tag { display: inline-block; background: #eef1ff; color: #485bc8; font-size: 10px; font-weight: 750; padding: 4px 7px; border-radius: 6px; white-space: nowrap; }
.tag.green { background: #e7f7f0; color: #147c60; }
.tag.amber { background: #fff1dc; color: #a46918; }
.tag.red { background: #ffeef1; color: #af3d52; }
.tag.gray { background: #f0f3f7; color: #6e7b90; }
.tag.purple { background: #f1edff; color: #7355ae; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 14px; }
.filter { min-width: 115px; max-width: 220px; flex: 1; }
.filter label, form.stack label { display: block; color: #7c879b; font-size: 10px; font-weight: 750; margin-bottom: 5px; }
.filter input, .filter select, form.stack input, form.stack select, form.stack textarea, .login input {
  display: block; width: 100%; padding: 9px 10px; background: #fff; border-radius: 8px; border: 1px solid #dbe3ef; color: #273c58; font-size: 12px;
}
form.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; }
form.stack .wide { grid-column: 1 / -1; }

.login { width: 100%; max-width: 360px; display: grid; gap: 14px; }
.login label { color: #7c879b; font-size: 11px; font-weight: 750; }
.login input { margin-top: 5px; }

.kanban { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 11px; overflow-x: auto; padding-bottom: 8px; }
.lane { background: #edf2f8; border-radius: 12px; padding: 12px; min-height: 360px; }
.lane.dragover { background: #dce8ff; box-shadow: inset 0 0 0 2px #9cb3ff; }
.lane h4 { margin: 0 0 10px; font-size: 12px; display: flex; justify-content: space-between; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px; margin-bottom: 8px; cursor: grab; }
.card b { display: block; font-size: 12px; margin: 4px 0; }
.card .blocker { color: var(--red); font-size: 11px; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .grid2, .gridEqual { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bar { height: 58px; padding: 0 16px; }
  .body { padding: 17px 16px; }
  .heading { display: block; }
  .kanban { grid-template-columns: repeat(5, 210px); }
}
