:root {
  font-family: "Inter", system-ui, sans-serif;
  color: #22271e;
  background: #f8f7f3;
  --ink: #22271e;
  --olive: #313e2c;
  --muted: #62655c;
  --line: #dfdfd6;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #9b854d; outline-offset: 3px; }
.login {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(24px, 6vh, 72px) 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #3b4a37, #202b22 78%);
}
.login::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, #141c13a8, #18221942 37%, #161c13a3),
    radial-gradient(ellipse at center, #16221533 20%, transparent 75%);
}
.access { width: min(100%, 640px); }
.brand { display: flex; align-items: center; gap: 0; font-size: 1.42rem; font-weight: 720; letter-spacing: -.075em; white-space: nowrap; }
.brand > span:last-child { color: #5a6549; }
.brand-mark { transform: rotate(10deg); display: grid; grid-template-columns: repeat(2, 8px); gap: 2px; margin-right: 10px; }
.brand-mark i { width: 8px; height: 8px; border-radius: 6px 0 6px 0; background: #465638; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: #879071; }
h1, h2, p { margin-top: 0; }
.access h1 {
  margin: 0 0 21px;
  color: #fffaf0;
  font: 400 clamp(2.65rem, 5.45vw, 4.75rem)/.98 Georgia, serif;
  letter-spacing: -.065em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 3px 22px #10170ff0;
}
.access-body {
  width: min(100%, 405px);
  margin-inline: auto;
  padding: clamp(20px, 6vw, 34px);
  border: 1px solid #ffffff92;
  border-radius: 18px;
  background: #faf9f5f7;
  box-shadow: 0 22px 60px #17201870;
}
.access .brand { justify-content: center; font-size: 1.75rem; margin-bottom: 26px; }
label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 8px; }
input:not([type=checkbox]), select { width: 100%; border: 1px solid var(--line); min-height: 48px; padding: 11px 13px; color: var(--ink); background: #fffefa; border-radius: 8px; }
input::placeholder { color: #696d63; opacity: 1; }
#login-email { margin-bottom: 17px; }
.password { position: relative; }
.password input { padding-right: 80px; }
.password button { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: .83rem; }
.primary, .secondary { border: 1px solid transparent; border-radius: 8px; min-height: 45px; padding: 10px 17px; font-weight: 670; }
.primary { background: var(--olive); color: #fff; }
.primary:hover { background: #46563e; }
.secondary { background: white; border-color: var(--line); color: var(--olive); }
.secondary:hover { background: #f5f5ed; }
.enter { width: 100%; margin-top: 19px; }
.text-button { background: none; border: 0; color: #44543b; padding: 5px 2px; font-weight: 670; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.demo { display: block; margin: 16px auto 2px; }
.small { font-size: .81rem; color: var(--muted); text-align: center; margin: 7px 0 0; }
.error { color: #a02e28; margin: 12px 0 0; font-size: .88rem; }
.collage {
  --panel-width: 12.5%;
  --overhang: clamp(12px, 4.4vw, 82px);
  position: absolute;
  z-index: -2;
  inset: 0;
}
.photo {
  --index: 0;
  --bevel: calc(2 * var(--overhang));
  position: absolute;
  top: 0;
  left: calc(var(--index) * var(--panel-width) - var(--overhang));
  width: calc(var(--panel-width) + var(--bevel));
  height: 100%;
  margin: 0;
  clip-path: polygon(var(--bevel) 0, 100% 0, calc(100% - var(--bevel)) 100%, 0 100%);
}
.photo:first-child {
  left: 0;
  width: calc(var(--panel-width) + var(--overhang));
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--bevel)) 100%, 0 100%);
}
.photo:nth-child(2) { --index: 1; }
.photo:nth-child(3) { --index: 2; }
.photo:nth-child(4) { --index: 3; }
.photo:nth-child(5) { --index: 4; }
.photo:nth-child(6) { --index: 5; }
.photo:nth-child(7) { --index: 6; }
.photo:last-child {
  --index: 7;
  width: calc(var(--panel-width) + var(--overhang));
  clip-path: polygon(var(--bevel) 0, 100% 0, 100% 100%, 0 100%);
}
.photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.portrait img { object-position: 48% 24%; }
@media (prefers-reduced-motion: no-preference) {
  .photo {
    animation: photo-arrival 1000ms cubic-bezier(.2, .75, .23, 1) both;
    animation-delay: calc(100ms + var(--index) * 130ms);
  }
}
@keyframes photo-arrival {
  from { transform: translateX(100vw); }
  to { transform: translateX(0); }
}
.app { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100svh; }
.rail { background: #fdfcf8; border-right: 1px solid var(--line); padding: 27px 18px; display: flex; flex-direction: column; }
.rail .brand { margin: 0 9px 37px; }
.rail nav { display: grid; gap: 5px; }
.rail nav button { border: 0; border-radius: 8px; text-align: left; padding: 12px 14px; color: var(--muted); background: transparent; white-space: nowrap; }
.rail nav button:hover, .rail nav [aria-current=page] { font-weight: 650; background: #eaf0e3; color: var(--olive); }
.logout { align-self: start; margin: auto 8px 0; padding-top: 20px; }
.top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 20px clamp(20px, 4vw, 58px); background: #fdfcf8; font-weight: 650; }
.demo-tag, .pill { display: inline-block; border-radius: 100px; background: #e9eddf; color: #374932; padding: 5px 10px; font-size: .83rem; }
.pill.neutral { background: #efede6; color: #54534d; }
.workspace-inner { max-width: 1310px; margin: auto; padding: 36px clamp(20px, 4vw, 58px); }
.page-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.page-heading h1 { font: 400 3rem/1 Georgia, serif; letter-spacing: -.055em; margin-bottom: 8px; }
.page-heading p { color: var(--muted); margin: 0; line-height: 1.45; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats:empty { display: none; }
.stat, .records { background: #fffefa; border: 1px solid var(--line); border-radius: 12px; }
.stat { padding: 15px 16px; margin-bottom: 22px; color: var(--muted); font-size: .88rem; }
.stat strong { display: block; color: var(--ink); font: 400 2rem Georgia, serif; margin-top: 4px; }
.filters { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.filters > * { max-width: 260px; }
select { appearance: none; padding-right: 32px; background: #fffefa linear-gradient(45deg, transparent 44%, #536349 45%, #536349 57%, transparent 58%) right 17px center / 6px 6px no-repeat; }
.record { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, .9fr) auto; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.record-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.open-company { display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; min-height: 36px; font-size: .87rem; padding: 6px 10px; }
.record:last-child { border-bottom: 0; }
.record > * { min-width: 0; overflow-wrap: anywhere; }
.record strong, .record small { display: block; }
.record small { color: var(--muted); margin-top: 4px; font-size: .82rem; }
.empty, .panel-status { padding: 15px; color: var(--muted); }
.empty { margin: 0; }
dialog { max-height: calc(100dvh - 28px); width: min(500px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 14px; padding: 23px; color: var(--ink); background: #fffefa; }
dialog::backdrop { background: #171f18a0; }
.dialog-title, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-title h2 { font: 400 1.9rem Georgia, serif; margin: 0; }
.dialog-title button { font-size: 1.7rem; line-height: 1; }
#editor-fields > label, fieldset { margin: 14px 0 7px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 11px; }
legend { font-weight: 650; font-size: .9rem; }
.check { display: flex; gap: 9px; align-items: center; font-weight: 500; }
.check:last-child { margin-bottom: 0; }
.check input { accent-color: var(--olive); }
.dialog-actions { justify-content: end; margin-top: 18px; }
@media (max-width: 700px) {
  .access h1 { margin-bottom: 17px; }
  .access .brand { margin-bottom: 21px; }
  .app { display: block; }
  .rail { display: grid; grid-template-columns: 1fr auto; padding: 15px 20px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail .brand { margin: 0; }
  .rail nav { grid-row: 2; grid-column: span 2; display: flex; padding-top: 10px; }
  .rail nav button { padding: 9px 10px; }
  .logout { grid-row: 1; grid-column: 2; margin: 0; padding-top: 5px; }
  .top { padding-block: 12px; }
  .workspace-inner { padding-top: 24px; }
  .record { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .record > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .record > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .record > :nth-child(4) { grid-column: 2; grid-row: 1; }
  .record-actions { flex-wrap: wrap; gap: 3px 8px; }
}
