body {
  margin: 0;
  background: #f7f7f7;
  font-family: Arial, sans-serif;
  color: #222;
}

.toprow {
  background: #3b3;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 26px;
  font-weight: bold;
}

.navlinks a {
  color: #fff;
  margin-left: 14px;
  text-decoration: none;
  font-size: 16px;
}

.navlinks a:hover {
  text-decoration: underline;
}

.bigwrap {
  max-width: 1150px;
  margin: 25px auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

.leftcol h1 {
  margin-top: 0;
}

.note {
  margin-top: 25px;
  font-size: 14px;
  color: #666;
}

.svcgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 15px;
}

.svcitem {
  background: #fff;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.svcitem h3 {
  margin-top: 0;
}

.svcitem a {
  color: #333;
}

.rightcol {
  display: flex;
  justify-content: flex-end;
}

.loginbox {
  border: 2px solid #3b3;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  width: 100%;
  max-width: 320px;
}

.loginbox input[type=text],
.loginbox input[type=password] {
  width: 95%;
  padding: 5px;
  margin-bottom: 10px;
}

.loginbox input[type=submit] {
  padding: 6px 12px;
  cursor: pointer;
}

#logmsg {
  margin-top: 8px;
  color: blue;
}

.appwrap {
  max-width: 1150px;
  margin: 25px auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.bigview {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  min-height: 360px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.bigview img {
  max-width: 100%;
  max-height: 320px;
}

.ctrlbox {
  margin-top: 12px;
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.ctrlbox label,
.ctrlbox input,
.ctrlbox select {
  display: block;
  margin-bottom: 8px;
}

.thumbwrap {
  background: #fff;
  padding: 10px;
  height: 560px;
  overflow-y: auto;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.thumbbox {
  width: 120px;
  height: 80px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
}

.thumbbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbbox.on {
  border-color: #3b3;
}

.toprow .rightinfo a {
  color: #fff;
  margin-left: 12px;
  text-decoration: none;
}

.toprow .rightinfo a:hover {
  text-decoration: underline;
}

