:root {
  --orange: #ff5a1f;
  --orange-deep: #e23d00;
  --ink: #171513;
  --muted: #6d6560;
  --line: #ece6df;
  --paper: #f4f1ec;
  --card: #fff;
  --dark: #1c1916;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
a { color: var(--orange-deep); text-decoration: none; }
img { max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 18px; height: 18px; display: block; }
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.desk-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.desk-overlay, .desk-close { display: none; }
.side {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 18px 14px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.side__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.side__brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 750; letter-spacing: -0.03em;
  margin: 0; line-height: 1.2; min-width: 0; flex: 1;
}
.side__mark {
  width: 36px; height: 36px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-size: 0.8rem;
  background: linear-gradient(160deg, #ff8a4c, var(--orange-deep));
}
.side > a:not(.side__brand), .side__foot a { display: flex; align-items: center; justify-content: flex-start; gap: 8px; color: var(--ink); padding: 8px 10px; border-radius: 10px; margin: 1px 0; }
.side > a.is-on, .side > a:not(.side__brand):hover, .side__foot a:hover { background: #fff1e8; color: var(--orange-deep); }
.side-ico { display: inline-flex; color: var(--orange-deep); flex: 0 0 auto; }
.side > a b { margin-left: auto; }
.side__group { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 16px 10px 6px; font-weight: 700; }
.side b { background: var(--orange); color: #fff; border-radius: 99px; padding: 0 6px; font-size: 0.72rem; }
.side__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.desk { min-width: 0; }
.desk__bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.desk__title { display: flex; align-items: center; gap: 12px; }
.desk__title p { margin: 0; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.desk__title strong { display: block; font-size: 1.05rem; letter-spacing: -0.03em; }
.desk__tools { display: flex; align-items: center; gap: 10px; }
.desk-burger { display: none; }
.desk-burger__icon { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.desk-burger__icon::before, .desk-burger__icon::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
}
.desk-burger__icon::before { top: -7px; }
.desk-burger__icon::after { top: 7px; }
.who {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 12px; font-weight: 650; font-size: 0.88rem;
}
.main { padding: 22px; }
h1 { font-size: 2rem; letter-spacing: -0.04em; margin: 0 0 8px; line-height: 1.05; }
h2 { font-size: 1.05rem; margin: 0; letter-spacing: -0.03em; }
.welcome {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; align-items: center;
  background: linear-gradient(120deg, #2a211c 0%, #e23d00 78%);
  color: #fff; border-radius: 24px; padding: 22px; margin: 0 0 16px;
  overflow: hidden; min-height: 190px;
}
.welcome p { color: #ffe8dc; max-width: 42rem; }
.welcome h1 { color: #fff; }
.welcome .btn--paper { background: #fff; color: var(--orange-deep); box-shadow: none; }
.welcome img { width: 100%; height: 190px; object-fit: cover; border-radius: 18px; }
.stack, .grid label { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid #e4dbd3; border-radius: 12px; width: 100%; background: #fff; color: var(--ink); }
textarea { min-height: 110px; }
button, .btn {
  background: linear-gradient(180deg, #ff7a3d, var(--orange-deep));
  color: #fff; border: 0; border-radius: 999px; padding: 10px 16px;
  font: inherit; font-weight: 680; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn.quiet, button.quiet { background: #fff; color: var(--ink); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: transparent; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; font-size: 0.92rem; }
th { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.card { background: var(--card); border: 1px solid #fff; border-radius: 20px; padding: 16px; margin: 0 0 16px; box-shadow: 0 10px 30px rgba(28, 21, 16, 0.04); }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stats a, .stats div {
  background: #fff; border-radius: 18px; padding: 14px 16px; color: inherit;
  box-shadow: 0 10px 24px rgba(28, 21, 16, 0.04); display: flex; flex-direction: column; gap: 4px;
}
.stats span, .stats em { color: var(--muted); font-style: normal; font-size: 0.82rem; }
.stats .stat-ico {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 6px;
  display: grid; place-items: center; background: #fff1e8; color: var(--orange-deep);
}
.stats strong { font-size: 1.7rem; letter-spacing: -0.04em; }
.stats small { color: var(--orange-deep); font-weight: 750; margin-top: 4px; }
.dash-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 16px; align-items: start; }
.dash-side { min-width: 0; }
.chart { width: 100%; height: 190px; display: block; margin: 0 0 8px; }
.bars { display: flex; align-items: end; gap: 18px; height: 140px; margin: 4px 0 0; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: end; gap: 6px; }
.bars--years { justify-content: flex-start; gap: 22px; height: 120px; }
.bars--years div { flex: 0 0 52px; }
.bars--years span { max-width: 36px; }
.bars span { display: block; width: 100%; max-width: 28px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #ffb088, var(--orange-deep)); }
.bars small { color: var(--muted); font-size: 0.68rem; }
.pill { display: inline-flex; border-radius: 999px; background: #fff1e8; color: var(--orange-deep); padding: 2px 8px; font-size: 0.75rem; font-weight: 700; }
.review-list, .project-tiles { list-style: none; margin: 0; padding: 0; }
.review-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.review-list li:first-child { border-top: 0; padding-top: 0; }
.person { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; background: #fff1e8; color: var(--orange-deep);
  font-size: 0.75rem; font-weight: 750;
}
.review-list span, .project-tiles span { display: block; color: var(--muted); font-size: 0.82rem; }
.review-list p { margin: 6px 0 0; }
.stars { color: var(--orange); letter-spacing: 0.12em; margin: 6px 0 0; }
.project-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project-tiles li { background: #faf7f4; border-radius: 18px; overflow: hidden; }
.project-tiles a { color: inherit; display: flex; flex-direction: column; }
.project-tiles strong, .project-tiles span { padding: 0 14px; }
.project-tiles strong { padding-top: 12px; font-size: 1.05rem; letter-spacing: -0.03em; }
.project-tiles span { padding-bottom: 14px; }
.shot { width: 100%; height: 210px; object-fit: cover; border-radius: 0; max-width: none; }
.main form img, .stack img { max-width: 140px; }
.flash { padding: 10px 12px; background: #e7f6ea; border: 1px solid #b7e0be; border-radius: 12px; margin-bottom: 12px; }
.flash.err { background: #fde8e4; border-color: #f0b2a8; }
fieldset { border: 1px solid var(--line); border-radius: 16px; margin: 12px 0; padding: 12px; background: #fff; }
legend { padding: 0 6px; }
small, .hint { color: var(--muted); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-log { max-height: 420px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.bubble { margin: 0 0 10px; padding: 8px 10px; background: #fff1e6; border-radius: 12px; }
.bubble.admin { background: var(--dark); color: #fff; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #2a211c, #e23d00); }
.login-card { width: min(420px, calc(100% - 24px)); background: #fff; padding: 28px; border-radius: 24px; }
.checkline { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.checkline input { width: auto; }
@media (max-width: 1100px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .dash-grid, .welcome { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell, .grid, .project-tiles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .side {
    display: flex; position: fixed; top: 0; left: 0; bottom: 0;
    width: min(320px, 86vw); height: 100vh; z-index: 70;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    pointer-events: none;
    box-shadow: 16px 0 40px rgba(23, 21, 19, 0.16);
  }
  .desk-toggle:checked ~ .side { transform: translateX(0); pointer-events: auto; }
  .desk-overlay { position: fixed; inset: 0; background: rgba(23, 21, 19, 0.48); z-index: 60; cursor: pointer; }
  .desk-toggle:checked ~ .desk-overlay { display: block; }
  body:has(.desk-toggle:checked) { overflow: hidden; }
  .desk-close {
    display: block; position: relative; width: 42px; height: 42px; flex: 0 0 auto;
    border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff;
  }
  .desk-close::before, .desk-close::after {
    content: ""; position: absolute; left: 11px; top: 20px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  }
  .desk-close::before { transform: rotate(45deg); }
  .desk-close::after { transform: rotate(-45deg); }
  .desk-burger {
    display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
    border: 0; padding: 0; cursor: pointer; border-radius: 12px; background: transparent;
  }
  .main, .desk__bar { padding-left: 14px; padding-right: 14px; }
  .desk__tools .who { display: none; }
  .welcome h1 { font-size: 1.6rem; }
  .shot { height: 180px; }
}
