* { box-sizing: border-box; }
body { margin: 0; font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
       background: #f6f4ef; color: #26241f; line-height: 1.65; }
header { display: flex; justify-content: space-between; align-items: center;
         padding: 12px 20px; background: #33424f; color: #fff; }
header .brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
header .logout { display: flex; gap: 10px; align-items: center; }
header button { background: transparent; color: #fff; border: 1px solid #ffffff66; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
main { max-width: 860px; margin: 24px auto; padding: 0 16px; }
footer { text-align: center; color: #8a8578; font-size: 13px; padding: 24px 0 40px; }
.card { background: #fff; border: 1px solid #e5e0d3; border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.card.narrow { max-width: 420px; margin: 40px auto; }
h1 { font-size: 24px; margin: 6px 0 14px; }
h2 { font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
input, select, textarea { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #cfc9b8;
  border-radius: 8px; font: inherit; background: #fffdf8; }
textarea { line-height: 1.7; resize: vertical; }
button, .button { display: inline-block; padding: 9px 16px; border-radius: 8px; border: 1px solid #b9b29c;
  background: #fff; color: #26241f; text-decoration: none; cursor: pointer; font: inherit; font-size: 14px; }
button.primary, .button.primary { background: #b4552d; border-color: #b4552d; color: #fff; font-weight: 700; }
button.danger { color: #a33; border-color: #d9a7a7; }
button.small { padding: 3px 9px; font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.flash { background: #fdf3d8; border: 1px solid #e8d48b; border-radius: 8px; padding: 8px 14px; margin-bottom: 16px; }
.flash p { margin: 4px 0; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.cats a { margin-right: 6px; padding: 6px 12px; border-radius: 999px; background: #e9e4d6; color: #4c4636;
  text-decoration: none; font-size: 14px; }
.cats a.on { background: #33424f; color: #fff; }
.search { display: flex; gap: 6px; flex: 1; min-width: 200px; }
.search input { margin-top: 0; }
.doclist, .filelist { list-style: none; margin: 0; padding: 0; }
.doclist li { padding: 12px 2px; border-bottom: 1px solid #eee8da; }
.doclist li:last-child { border-bottom: none; }
.doclist .title { font-size: 17px; font-weight: 700; color: #26241f; text-decoration: none; }
.badge { font-size: 12px; background: #eef2f5; color: #33424f; border-radius: 999px; padding: 2px 9px; margin-left: 6px; }
.badge.shared { background: #fdeeda; color: #9a5a13; }
.meta { color: #8a8578; font-size: 13px; margin-top: 3px; }
.empty { color: #8a8578; }
.body { font-size: 16.5px; }
.body h2 { margin-top: 26px; }
.body blockquote { margin: 14px 0; padding: 8px 16px; border-left: 3px solid #b4552d; background: #faf6ee; color: #4c4636; }
.body img { max-width: 100%; }
.sharebox { margin-top: 18px; background: #faf6ee; border-radius: 10px; padding: 16px; }
.shareurl { font-size: 13px; }
.upload { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.upload input[type=file] { width: auto; margin-top: 0; }
.hint { color: #8a8578; font-size: 12.5px; }
.filelist li { display: flex; justify-content: space-between; align-items: center; padding: 7px 2px; border-bottom: 1px solid #f0ebdd; }
.filelist form { margin: 0; }
.sharedfoot { text-align: center; color: #8a8578; font-size: 13px; }
hr { border: none; border-top: 1px solid #eee8da; margin: 20px 0; }
