:root{
  --bg:#f4efe4;
  --panel:#fffdf8;
  --line:#d7b166;
  --line-strong:#be9546;
  --text:#2e2a25;
  --muted:#72675c;
  --shadow:0 24px 60px rgba(62,43,8,.12);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  min-height:100vh;
  font-family:"Segoe UI",Tahoma,Verdana,sans-serif;
  color:var(--text);
  background:
    linear-gradient(135deg,rgba(230,216,190,.6),rgba(255,255,255,.92) 38%),
    radial-gradient(circle at top right,rgba(215,177,102,.22),transparent 24%),
    linear-gradient(180deg,#f5efe3,#ece3d4);
}
a{color:inherit}
.shell{
  max-width:1440px;
  margin:0 auto;
  padding:32px 20px 56px;
}
.hero{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  margin-bottom:24px;
}
.hero h1,.hero h2{
  margin:0 0 10px;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:500;
}
.hero p{
  margin:0;
  color:var(--muted);
  max-width:760px;
  line-height:1.5;
}
.card,.login-card,.home-card{
  background:rgba(255,253,248,.94);
  border:1px solid rgba(190,149,70,.2);
  border-radius:28px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(6px);
}
.workspace{
  display:grid;
  grid-template-columns:minmax(320px,440px) minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.panel{
  padding:24px;
}
.panel h3{
  margin:0 0 8px;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:500;
}
.panel p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.45;
}
.preview-card{
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
  backdrop-filter:none;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(215,177,102,.14);
  color:#7b612d;
  font-size:13px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.field{
  margin-bottom:16px;
}
.field label{
  display:block;
  margin-bottom:8px;
  font-size:14px;
  font-weight:600;
}
.field input,.field select,.field textarea{
  width:100%;
  border:1px solid rgba(98,75,34,.18);
  border-radius:16px;
  padding:14px 16px;
  font:inherit;
  color:var(--text);
  background:#fff;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.field textarea{
  min-height:112px;
  resize:vertical;
}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--line-strong);
  box-shadow:0 0 0 4px rgba(215,177,102,.12);
}
.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.actions{
  display:flex;
  gap:12px;
  margin-top:22px;
  flex-wrap:wrap;
}
.button,.ghost{
  appearance:none;
  border:0;
  border-radius:16px;
  padding:14px 18px;
  font:inherit;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;
}
.button{
  background:linear-gradient(135deg,#d8b468,#b68535);
  color:#fff;
  box-shadow:0 16px 32px rgba(190,149,70,.28);
}
.ghost{
  background:#fff;
  color:var(--text);
  border:1px solid rgba(98,75,34,.16);
}
.button:hover,.ghost:hover{transform:translateY(-1px)}
.meta{
  margin-top:14px;
  font-size:14px;
  color:var(--muted);
  min-height:21px;
}
.canvas-wrap{
  background:transparent;
  border-radius:0;
  border:0;
  padding:0;
}
.canvas-wrap canvas{
  display:block;
  width:100%;
  height:auto;
  border-radius:0;
  background:#fff;
  box-shadow:none;
}
.hint-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}
.hint{
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(190,149,70,.16);
}
.hint strong{
  display:block;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#8a6c32;
  margin-bottom:6px;
}
.hint span{
  display:block;
  line-height:1.4;
  color:var(--muted);
  font-size:14px;
}
.login-shell,.home-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px 18px;
}
.login-card,.home-card{
  width:min(520px,100%);
  padding:32px;
}
.login-card p,.home-card p{
  line-height:1.7;
}
.login-card form{margin-top:18px}
.employee-list{
  display:grid;
  gap:14px;
  margin-top:22px;
}
.employee-shortcut{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
  text-decoration:none;
  color:#7b612d;
  border-bottom:1px solid rgba(123,97,45,.3);
}
.employee-shortcut strong{
  font-size:16px;
  font-weight:600;
}
.employee-shortcut span{
  color:var(--muted);
  font-size:15px;
}
.error{
  margin:12px 0 0;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(176,45,45,.08);
  color:#8f2f2f;
  border:1px solid rgba(176,45,45,.14);
}
.employee-link{
  display:inline-flex;
  margin-top:18px;
  color:#7b612d;
  text-decoration:none;
  border-bottom:1px solid rgba(123,97,45,.3);
}
@media (max-width:1080px){
  .workspace{grid-template-columns:1fr}
}
@media (max-width:720px){
  .shell{padding:22px 14px 38px}
  .hero{display:block}
  .row,.hint-grid{grid-template-columns:1fr}
  .login-card,.home-card,.panel{padding:20px}
  .employee-shortcut{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
}
