:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #151515;
  background: #ececec;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #ececec; }
button, input { font: inherit; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 430px) 1fr;
}
.sidebar {
  background: #111;
  color: #fff;
  padding: 28px;
  border-right: 6px solid #ed1c24;
  overflow-y: auto;
}
.brand {
  background: #fff;
  padding: 12px;
  border: 4px solid #000;
  margin-bottom: 22px;
}
.brand img { width: 100%; display: block; }
.title-block { margin-bottom: 26px; }
.eyebrow {
  color: #ed1c24;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 900;
  margin: 0 0 6px;
}
h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.title-block p:last-child { color: #bbb; line-height: 1.5; }

form { display: grid; gap: 18px; }
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}
input {
  width: 100%;
  background: #fff;
  color: #111;
  border: 2px solid #555;
  border-radius: 4px;
  padding: 13px 14px;
  outline: none;
}
input:focus { border-color: #ed1c24; }
.password-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.notice {
  background: #211;
  border-left: 4px solid #ed1c24;
  color: #ddd;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.45;
}
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
button {
  border: 0;
  border-radius: 4px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
}
button.primary { background: #ed1c24; color: #fff; }
button.danger { background: #fff; color: #b00000; border: 2px solid #ed1c24; }
button.secondary { background: #2b2b2b; color: #fff; border: 1px solid #555; }
button.small { padding: 9px 12px; font-size: 12px; }
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .55; cursor: wait; }
.status { min-height: 22px; font-size: 13px; font-weight: 700; color: #ddd; }
.status.success { color: #7CFC98; }
.status.error { color: #ff8f8f; }

.preview-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#previewFrame {
  width: 100%;
  flex: 1;
  min-height: calc(100vh - 86px);
  border: 1px solid #bbb;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 6px solid #ed1c24; }
  .preview-panel { min-height: 800px; }
  #previewFrame { min-height: 760px; }
}
