:root{
  --bg: #ffffff;
  --ink: #0B1220;
  --muted: #667085;

  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.18);

  --glass: rgba(255,255,255,0.70);
  --glass-strong: rgba(255,255,255,0.82);

  --shadow: 0 18px 55px rgba(2, 6, 23, 0.14);
  --shadow-soft: 0 12px 30px rgba(2, 6, 23, 0.10);

  --accent: #2563EB;
  --accent-ink: #1D4ED8;

  --danger: #DC2626;

  --radius: 22px;
  --radius-sm: 14px;

  --wrap: 1240px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--ink);
  line-height: 1.55;

  background-image:
    radial-gradient(circle at 18% 12%, rgba(37,99,235,0.14), transparent 56%),
    radial-gradient(circle at 82% 22%, rgba(2,6,23,0.06), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,1));
  background-attachment: fixed;
}

.wrap{
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.muted{ color: var(--muted); }

.skip{
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 10px 12px;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
  z-index: 9999;
}
.skip:focus{ transform: translateY(0%); }

.top{
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
}

.top__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.mark{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 950;
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.22);
  color: var(--accent-ink);
  box-shadow: 0 12px 26px rgba(2,6,23,0.10);
}

.name{ font-weight: 950; letter-spacing: -0.01em; }
.sub{ color: var(--muted); font-size: 0.92rem; }

.panel{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  padding: 18px;
  margin-top: 16px;
}

.panel.hero{
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.60));
  border-color: rgba(15,23,42,0.10);
}

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.col{ flex: 1 1 420px; }

.tools{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav{ display: flex; gap: 10px; align-items: center; }

.btn{
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border 0.12s ease;
  user-select: none;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(2,6,23,0.14);
  background: rgba(255,255,255,0.86);
}

.btn:active{ transform: translateY(0px); }

.btn--primary{
  border-color: rgba(37,99,235,0.28);
  background: rgba(37,99,235,0.12);
  color: var(--accent-ink);
}

.btn--danger{
  border-color: rgba(220,38,38,0.22);
  background: rgba(220,38,38,0.08);
  color: #991B1B;
}

.file input{ display: none; }

.input, .textarea{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255,255,255,0.86);
  font-weight: 650;
  outline: none;
  transition: box-shadow 0.12s ease, border 0.12s ease, background 0.12s ease;
}

.input:focus, .textarea:focus{
  border-color: rgba(37,99,235,0.28);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
  background: rgba(255,255,255,0.94);
}

.textarea{ resize: vertical; }

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


.grid{
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 14px;
  align-items: start;
}

.list #list{
  display: grid;
  gap: 10px;
}

.item{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(255,255,255,0.80);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform 0.12s ease, background 0.12s ease, border 0.12s ease, box-shadow 0.12s ease;
}

.item:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.94);
  border-color: rgba(15,23,42,0.16);
  box-shadow: 0 14px 30px rgba(2,6,23,0.10);
}

.item strong{ display: block; font-weight: 950; letter-spacing: -0.01em; }
.item .muted{ font-size: 0.90rem; margin-top: 2px; }

.item.is-active{
  border-color: rgba(37,99,235,0.30);
  background: rgba(37,99,235,0.10);
}

.form{
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

label span{
  display: block;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.two{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.buttons{ justify-content: flex-start; }

.imgprev{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  padding: 10px 12px;
  box-shadow: 0 12px 26px rgba(2,6,23,0.10);
  height: 100%;
}

.imgprev__label{
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 8px;
}

.imgprev__box{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(248,250,252,1);
  height: 118px;
  display: grid;
  place-items: center;
}

.imgprev__box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; 
} 

code{
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(15,23,42,0.10);
  padding: 2px 6px;
  border-radius: 10px;
}


@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .two{ grid-template-columns: 1fr; }
  .tools{ justify-content: flex-start; }
  .wrap{ width: min(var(--wrap), calc(100% - 26px)); }
}
