* { box-sizing: border-box; }
body { margin: 0; padding: 10px; background: #26354a; font: 12px/1.65 Tahoma, "Malgun Gothic", Dotum, sans-serif; color: #222; }
a { color: #1f4e8c; }
a:hover { color: #c4620a; }
#wrap { width: 960px; max-width: 100%; margin: 0 auto; background: #eef1f5; border: 1px solid #0e1826; box-shadow: 0 0 0 3px #3a4d66; }
#top { background: linear-gradient(#2d5b93, #14304f); border-bottom: 3px solid #e08a1e; padding: 14px 18px; }
#logo { display: inline-block; font: italic bold 30px Georgia, "Times New Roman", serif; color: #fff; text-decoration: none; text-shadow: 1px 1px 0 #000; letter-spacing: 1px; }
#logo small { display: block; font: normal 11px Tahoma, sans-serif; color: #b9cde6; text-shadow: none; letter-spacing: 0; }
#nav { display: flex; flex-wrap: wrap; background: #d3dbe6; border-bottom: 1px solid #8b9bb0; }
#nav a { padding: 7px 18px; border-right: 1px solid #8b9bb0; color: #14304f; text-decoration: none; font-weight: bold; }
#nav a:hover, #nav a.on { background: #fff; }
#cols { display: flex; gap: 12px; padding: 12px; align-items: flex-start; }
#main { flex: 1; min-width: 0; }
#side { width: 210px; flex: none; }
#foot { padding: 12px; border-top: 1px solid #8b9bb0; background: #d3dbe6; text-align: center; color: #44546a; font-size: 11px; }
.box { background: #fff; border: 1px solid #8b9bb0; margin-bottom: 12px; }
.box h2 { margin: 0; padding: 5px 10px; font-size: 12px; color: #fff; background: linear-gradient(#5b82b0, #33567f); border-bottom: 1px solid #1f3a5c; }
.box .in { padding: 10px; }
.links a { display: block; margin-bottom: 6px; padding: 5px 8px; border: 1px solid #8b9bb0; background: linear-gradient(#fff, #dfe6ef); text-decoration: none; font-weight: bold; text-align: center; }
.links a:last-child { margin-bottom: 0; }
.links a:hover { background: #fff3df; border-color: #e08a1e; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { background: #e3e9f1; border-bottom: 1px solid #8b9bb0; padding: 5px 6px; font-weight: bold; text-align: center; }
table.list td { border-bottom: 1px solid #dde3ea; padding: 5px 6px; text-align: center; }
table.list td.t { text-align: left; }
table.list tr:hover td { background: #f6f9fd; }
input[type=text], input[type=email], input[type=password], textarea { width: 100%; padding: 4px 6px; border: 1px solid #8b9bb0; font: inherit; background: #fff; }
textarea { resize: vertical; min-height: 90px; }
label { display: block; margin: 8px 0 2px; font-weight: bold; }
button, .btn { padding: 4px 14px; border: 1px solid #5a6e88; background: linear-gradient(#fff, #cfd8e4); font: inherit; cursor: pointer; color: #14304f; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: #fff3df; border-color: #e08a1e; color: #14304f; }
button.main { background: linear-gradient(#4f7db3, #2d5b93); color: #fff; border-color: #14304f; font-weight: bold; }
button.main:hover { background: #3a6aa3; color: #fff; }
.err { color: #b3261e; margin: 8px 0; }
.ok { color: #1c6b2e; margin: 8px 0; }
.tabs { margin-bottom: 8px; }
.tabs a { display: inline-block; padding: 4px 14px; border: 1px solid #8b9bb0; background: #e3e9f1; text-decoration: none; margin-right: 2px; }
.tabs a.on { background: #fff; font-weight: bold; border-bottom-color: #fff; }
.post-head { border-bottom: 1px solid #8b9bb0; padding-bottom: 6px; margin-bottom: 8px; }
.post-head h3 { margin: 0 0 4px; font-size: 14px; }
.meta { color: #6b7a8f; font-size: 11px; }
.body { white-space: pre-wrap; word-break: break-all; min-height: 80px; padding: 6px 0 14px; }
.cmt { border-top: 1px dotted #b3bfce; padding: 6px 0; }
.cmt .body { min-height: 0; padding: 2px 0; }
.dm { display: flex; gap: 12px; align-items: flex-start; }
.dm .left { width: 200px; flex: none; }
.dm .right { flex: 1; min-width: 0; }
.tl { border: 1px solid #b3bfce; }
.tl a { display: block; padding: 6px 8px; border-bottom: 1px solid #dde3ea; text-decoration: none; }
.tl a:hover, .tl a.on { background: #fff3df; }
.tl small { display: block; color: #6b7a8f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#msgs { height: 300px; overflow-y: auto; border: 1px solid #b3bfce; background: #fafbfd; padding: 6px 8px; margin-bottom: 6px; }
#msgs div { margin-bottom: 4px; word-break: break-all; }
#msgs .mine b { color: #c4620a; }
#msgs .their b { color: #1f4e8c; }
.news li { margin-bottom: 4px; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  #cols { flex-direction: column; }
  #side { width: 100%; }
  .dm { flex-direction: column; }
  .dm .left { width: 100%; }
  #nav a { padding: 7px 10px; }
}
