body {
  background: #1e1e1e;
  color: #eee;
  font-family: Roboto, Arial, sans-serif;
  padding: 20px;
}

.login-form, .editor-form {
  max-width: 820px;
  margin: 20px auto;
  background: #2c2c2c;
  padding: 28px;
  border-radius: 10px;
}

.login-form h1, .editor-form h1 {
  margin-bottom: 18px;
  color: #EC9600;
}

.login-form input[type="password"],
.editor-form input[type="text"],
.editor-form input[type="date"],
.editor-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 12px;
  border: none;
  border-radius: 6px;
  background: #161616;
  color: #eee;
}

.editor-form label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 700;
  color: #ddd;
}

.pn-block {
  margin-top: 18px;
  padding: 14px;
  background: #1a1a1a;
  border-radius: 8px;
}

.pn-block h2 { 
  margin-bottom: 10px; 
  color: #EC9600; 
}

.pn-actions { 
  margin-top: 8px; 
}

.btn, .btn-submit, .btn.add-entry {
  background: linear-gradient(#EC9600,#E53C00);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.message {
  margin-bottom: 14px;
  padding: 10px;
  background: #28412b;
  border-radius: 6px;
  color: #def2d8;
}

.after-publish {
  margin-top: 28px;
  text-align: center;
}

.after-publish .btn {
  display: inline-block;
  margin: 0 8px;
  padding: 10px 20px;
  border-radius: 6px;
}

.form-actions { 
  text-align: center; 
  margin-top: 28px; 
}

form .btn-submit {
  display: inline-block;
  padding: 12px 28px;
  min-width: 220px;
  max-width: 100%;
  box-sizing: border-box;
}

.importance-group { 
  margin-top: 6px; 
  margin-bottom: 16px; 
}

.importance-group label { 
  display:inline-flex; 
  align-items:center; 
  gap:6px; 
  margin-right: 12px; 
  color:#ddd; 
}

.pn-list-container { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  min-height: 6px; 
}

.pn-entry {
  display: flex; 
  gap: 8px; 
  align-items: flex-start;
  background: #222; 
  padding: 8px; 
  border-radius: 6px;
}

.pn-entry textarea {
  flex: 1; 
  min-height: 60px; 
  padding: 8px; 
  border-radius: 6px; 
  border: none; 
  background: #151515; 
  color: #eee;
}

.entry-controls { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  margin-left: 6px; 
}

.entry-controls button {
  background: #333; 
  color: #fff; 
  border: none; 
  padding: 6px 8px; 
  border-radius: 6px; 
  cursor: pointer; 
  font-weight: 700;
}

.entry-controls button:hover { 
  background:#444; 
}

.entry-controls button[data-action="up"]::after { 
  content:"▲"; 
}

.entry-controls button[data-action="down"]::after { 
  content:"▼"; 
}

.entry-controls button[data-action="del"]::after { 
  content:"✖"; 
}

@media (max-width:480px) {
  .pn-entry { 
    flex-direction: column; 
  }

  .entry-controls { 
    flex-direction:row; 
    margin-left:0; 
  }

  form .btn-submit { 
    width: 100%; 
    display:block; 
  }

  .after-publish .btn { 
    display:block; 
    width:100%; 
    margin:8px 0; 
  }
}
