/* ============================================================
   Brand settings drawer (white-label)
   The slide-in panel where a thread-holder sets their logo + colours.
   ============================================================ */
.btn.icon { padding: 6px 10px; font-size: 15px; line-height: 1; }

.drawer-overlay {
    position: fixed; inset: 0; background: rgba(16,32,56,.28);
    opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 80;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer-panel {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(380px, 92vw);
    background: var(--card); border-left: 1px solid var(--line); box-shadow: -6px 0 24px rgba(16,32,56,.18);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .24s ease;
}
.drawer-overlay.open .drawer-panel { transform: none; }
.drawer-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { margin: 0; }
.drawer-head .sub { color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.drawer-head .x { cursor: pointer; border: none; background: none; font-size: 24px; line-height: 1; color: var(--ink-soft); padding: 0 4px; }
.drawer-head .x:hover { color: var(--ink); }
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

.hint { color: var(--ink-soft); font-size: 12px; display: block; }

.brand-logo-preview {
    height: 84px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
    display: flex; align-items: center; justify-content: center; padding: 10px; margin-bottom: 8px;
    overflow: hidden;
}
.brand-logo-preview img { max-height: 100%; max-width: 100%; min-width: 0; width: auto; height: auto; object-fit: contain; display: block; }

.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type="color"] {
    width: 46px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px;
    background: #fff; cursor: pointer; flex: none;
}
.color-field .color-hex {
    width: 120px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; text-transform: lowercase;
}
