/* Post editor (post.latte) — form chrome lifted from
   docs/forum-theme/samples/post.html (glossy bar, grid rows, BBCode toolbar,
   tinted controls). Shared chrome lives in forum.css. */

/* glossy plastic title bar (matches .bar in forum.css) */
.glossbar{color:#fff; border-bottom:1px solid var(--bar-edge); padding:6px 12px;
  font-weight:bold; font-size:13px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.40) 0%, rgba(255,255,255,.06) 48%,
                    rgba(255,255,255,0) 49%, rgba(0,0,0,.04) 100%),
    linear-gradient(to bottom, var(--bar-top), var(--bar-bot));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}

/* form rows */
.frow{display:grid; grid-template-columns:150px 1fr; border-bottom:1px solid var(--rule)}
.frow>.lab{padding:10px 12px; background:#f6f9fd; border-right:1px solid var(--rule);
  font-weight:bold; color:#33506f}
.frow>.lab .hint{display:block; font-weight:normal; color:var(--muted); font-size:11px; margin-top:4px}
.frow>.fld{padding:10px 12px; min-width:0}
.fld .hint{color:var(--muted); font-size:11px; margin-top:5px}
.fld .hint b{color:#33506f}

input[type=text]{box-sizing:border-box; border:1px solid #b9c6dd; border-radius:3px;
  padding:5px 7px; font-family:inherit; font-size:13px}
input[type=checkbox],input[type=radio]{accent-color:#4f78b3; width:14px; height:14px;
  vertical-align:-2px; cursor:pointer}

.subjrow{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.subject-in{flex:1; min-width:240px; max-width:520px}
.prefix{height:28px; border:1px solid #aebfda; border-radius:3px;
  background:linear-gradient(#fff,#f3f7fc); font-size:12px; padding:0 4px}
.iconpick{display:flex; align-items:center; gap:6px; flex-wrap:wrap}
.iconchoice{display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:30px;
  box-sizing:border-box; border:1px solid #c6d4e6; border-radius:4px; background:#fff; cursor:pointer}
.iconchoice input{position:absolute; opacity:0; pointer-events:none}
.iconchoice span{display:flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 4px;
  color:#33506f; font-size:11px}
.iconchoice img{display:block; max-width:20px; max-height:20px}
.iconchoice:hover{border-color:#7ba0d0; background:#f4f8fe}
.iconchoice:has(input:checked){border-color:#4f78b3; background:#e8f1fe; box-shadow:inset 0 0 0 1px #9fc0e8}
.iconchoice.none{min-width:44px}

.threadopts{display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px}
.threadopt{display:inline-flex; align-items:center; gap:6px; color:#33506f}
.threadopt span{font-weight:bold}
.threadopt em{font-style:normal; color:var(--muted); font-size:12px}
.creditopt input{width:86px; box-sizing:border-box; border:1px solid #b9c6dd; border-radius:3px;
  padding:4px 6px; font-family:inherit; font-size:13px}
.checkopt{cursor:pointer}

/* BBCode editor */
.editor{border:1px solid #b9c6dd; border-radius:4px; overflow:hidden}
.ebar{display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:6px 8px;
  background:linear-gradient(#fbfdff,#eef3fb); border-bottom:1px solid #cdd8ea}
.bgrp{display:inline-flex; border:1px solid #aebfda; border-radius:3px; overflow:hidden;
  box-shadow:inset 0 1px 0 #fff}
.eb{display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:24px;
  padding:0 7px; box-sizing:border-box; font-size:13px; color:#13386b; cursor:pointer;
  background:linear-gradient(#fff,#eef4fc); border-right:1px solid #cdd8ea; user-select:none}
.eb:last-child{border-right:0}
.eb:hover{background:linear-gradient(#fff,#e0ecfb)}
.eb.b{font-weight:bold} .eb.i{font-style:italic} .eb.u{text-decoration:underline}
.editor textarea{display:block; width:100%; box-sizing:border-box; border:0; padding:10px 12px;
  min-height:230px; font-family:Consolas,"Courier New",SimSun,monospace; font-size:13px;
  resize:vertical; outline:none}
.charcount{min-height:18px; margin-top:6px; color:var(--muted); font-size:11px}
.charcount.show{color:#33506f}

/* option checklist */
.opts{display:grid; grid-template-columns:1fr 1fr; gap:5px 22px; max-width:560px; margin-top:10px}
.opts label{display:flex; align-items:center; gap:7px; cursor:pointer; color:#33506f}

.pollbox{max-width:660px}
.polltoggle{display:inline-flex; align-items:center; gap:7px; cursor:pointer; color:#33506f; font-weight:bold}
.pollfields{margin-top:10px; padding:10px; border:1px solid #c6d4e6; border-radius:4px; background:#f8fbff}
.pollhead{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px}
.pollhead b{color:#33506f}
.pollhead .hint{display:block; margin-top:1px}
.polloptions{display:grid; gap:6px}
.pollopt{display:grid; grid-template-columns:24px minmax(180px,1fr) 28px; align-items:center; gap:7px}
.pollopt .num{display:inline-flex; align-items:center; justify-content:center; height:24px;
  border:1px solid #c6d4e6; border-radius:3px; background:#fff; color:#33506f; font-weight:bold; font-size:11px}
.pollopt input{width:100%; max-width:none}
.mini-btn,.icon-btn{display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; cursor:pointer;
  border:1px solid #9fc0e8; border-radius:3px; color:#13386b; background:linear-gradient(#fbfdff,#dceafd)}
.mini-btn{height:26px; gap:5px; padding:0 9px; font-size:12px; white-space:nowrap}
.icon-btn{width:28px; height:26px; padding:0}
.mini-btn:hover,.icon-btn:hover{background:linear-gradient(#fff,#e8f1fe)}
.icon-btn:disabled{opacity:.45; cursor:default}
.pollsettings{margin-top:9px; padding-top:8px; border-top:1px solid #dce5f1}
.switch{display:inline-flex; align-items:center; gap:7px; color:#33506f; cursor:pointer}

/* primary / secondary buttons */
.actions{display:flex; gap:10px; justify-content:center; padding:14px}
.pbtn{height:30px; padding:0 22px; box-sizing:border-box; border:1px solid #3f6aa6; border-radius:3px;
  color:#fff; font-weight:bold; font-size:13px; cursor:pointer;
  background:linear-gradient(to bottom,#7BA0D0,#5C84BE);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4); text-shadow:0 1px 0 rgba(0,0,0,.15)}
.pbtn:hover{background:linear-gradient(to bottom,#86abd9,#5e8ac5)}
.sbtn{height:30px; padding:0 18px; box-sizing:border-box; border:1px solid #9fc0e8; border-radius:3px;
  color:#13386b; font-weight:bold; font-size:13px; cursor:pointer;
  background:linear-gradient(#fbfdff,#dceafd); box-shadow:inset 0 1px 0 #fff}
.sbtn:hover{background:linear-gradient(#fff,#e8f1fe)}
