/* v2.3 — FoziScribe-style sidebar and header, Help/Support/Policies, imports. */
.app{grid-template-columns:260px 1fr}
.sidebar{padding:22px 12px 16px;position:sticky;top:0;height:100vh;overflow-y:auto}
.brand{display:flex;align-items:center;gap:10px;padding:0 6px 22px;text-align:left}
.brandSvg{width:38px;height:38px;stroke:#fff;stroke-width:4;filter:drop-shadow(0 0 14px #9566ff55)}
.brand strong{font-size:21px;letter-spacing:.2px;font-weight:750}
.grad,.grad2{background:linear-gradient(90deg,#b28cff,#38cfff);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand small{font-size:9.5px;letter-spacing:.2px;color:#8f8aa8;margin-top:3px;white-space:nowrap}
.sidebar .navtitle{font-size:10.5px;font-weight:650;color:#6f6c88;letter-spacing:1.4px;padding:0 12px;margin:18px 0 8px}
.sidebar .nav{gap:12px;padding:10px 12px;margin-bottom:3px;font-size:14px;font-weight:550;color:#dcdaea;border-radius:10px;border:1px solid transparent;opacity:1}
.sidebar .nav svg{width:18px;height:18px;color:var(--ic,#b28cff);stroke-width:1.9}
.sidebar .nav.active{background:#9566ff14;border-color:#9566ff66;box-shadow:0 0 0 3px #9566ff14;color:#fff}
.sidebar .nav:hover{background:#ffffff08}
.navBadge{margin-left:auto;font-style:normal;font-size:9px;font-weight:750;letter-spacing:.6px;padding:3px 7px;border-radius:5px;background:#3a2a0c;color:#ffc34d;border:1px solid #6b4d12}
.sidebottom{padding-top:18px}
.devby{font-size:10px;color:#5f5c77;text-align:center;margin:0}
/* Header */
.topbar{justify-content:space-between;gap:16px}
.searchBox{position:relative;display:flex;align-items:center;gap:9px;flex:0 1 330px;min-width:0;height:40px;padding:0 10px 0 14px;border:1px solid #33304a;border-radius:11px;background:#15131f;color:#8d8aa6}
.searchBox:focus-within{border-color:#9566ff;box-shadow:0 0 0 3px #9566ff22}
.searchBox svg{width:16px;height:16px}
.searchBox input{flex:1;min-width:0;background:none;border:0;outline:0;color:var(--text);font-size:13px}
.searchBox input::-webkit-search-cancel-button{display:none}
.searchBox kbd{font:600 10px 'Segoe UI',sans-serif;color:#8d8aa6;background:#221f31;border:1px solid #37334d;border-radius:6px;padding:3px 6px;white-space:nowrap}
.searchResults{position:absolute;top:46px;left:0;right:0;z-index:50;background:#171422;border:1px solid #3a3350;border-radius:12px;padding:6px;box-shadow:0 18px 50px #000a}
.searchResults button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:8px;text-align:left;font-size:13px;color:#dcdaea}
.searchResults button svg{color:var(--ic);width:17px;height:17px}
.searchResults button:hover,.searchResults button.first{background:#9566ff1c}
.searchResults p{margin:8px 10px;color:var(--muted);font-size:12px}
.creditPill{display:flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:999px;background:#2b2210;border:1px solid #7a5a16;color:#ffc34d;font-weight:700;font-size:13px}
.creditPill svg{width:16px;height:16px}
.bellWrap{position:relative}
.bellBtn{position:relative;width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#cfcbe4}
.bellBtn:hover{background:#ffffff0a}
.bellBadge{position:absolute;top:1px;right:1px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#ef3b3b;color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center;border:2px solid #0e0d16}
.bellBadge[hidden]{display:none}
.notifMenu{position:absolute;right:-60px;top:46px;z-index:45;width:330px;max-height:430px;overflow:auto;background:linear-gradient(145deg,#1d1629,#13101b 70%);border:1px solid #4a3a60;border-radius:14px;box-shadow:0 20px 60px #000b;padding:8px}
.notifHead{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 10px}
.notifHead b{font-size:13px}
.notifItem{display:flex;gap:10px;width:100%;text-align:left;padding:10px;border-radius:9px}
.notifItem:hover{background:#ffffff08}
.notifItem i{width:8px;height:8px;border-radius:50%;margin-top:5px;flex-shrink:0;background:transparent}
.notifItem.unread i{background:#9566ff;box-shadow:0 0 8px #9566ff}
.notifItem b{display:block;font-size:12.5px}
.notifItem small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.notifEmpty{color:var(--muted);font-size:12px;text-align:center;margin:18px 0}
.account .avatar,.menuIdentity .avatar{width:36px;height:36px}
.hasPhoto{overflow:hidden;padding:0}
.hasPhoto img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.accountMenu{top:70px}
/* Auth */
.googleBtn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:44px;margin-top:6px;border-radius:10px;background:#fff;color:#1f1f1f;font-weight:600;border:1px solid #dadce0}
.googleBtn svg{width:20px;height:20px}
.googleBtn:disabled{opacity:.5;cursor:not-allowed}
.googleOff{margin-top:8px;color:#b99a6a}
.orLine{display:flex;align-items:center;gap:12px;margin:18px 0 4px;color:var(--muted);font-size:11px}
.orLine:before,.orLine:after{content:"";flex:1;height:1px;background:#2d2a3d}
.policyAccept{margin-top:14px}
/* Avatar editor */
.avatarEdit{display:flex;align-items:center;gap:14px}
.avatarEdit .largeAvatar{width:64px;height:64px;font-size:20px}
.avatarButtons{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.avatarButtons small{flex-basis:100%;font-size:10px;color:#95809f}
.smallBtn{padding:7px 12px;font-size:11px;cursor:pointer}
/* Folder import */
.folderRow{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 0 4px}
.folderPick{display:inline-flex;align-items:center;gap:7px;cursor:pointer;padding:8px 12px;font-size:12px}
.folderPick svg{width:16px;height:16px;color:#ffcf5a}
.folderRow small{flex-basis:100%;font-size:10.5px;color:var(--muted)}
/* Help */
.helpWrap{max-width:560px;margin:0 auto}
.helpHero{border-radius:22px 22px 0 0;padding:26px 28px 70px;background:linear-gradient(160deg,#6d3cf0,#3a7bf2 70%,#38cfff);color:#fff}
.helpHeroTop{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700;margin-bottom:26px}
.helpHeroTop .brandSvg{width:34px;height:34px;filter:none}
.helpHero h1{font-size:28px;line-height:1.25;margin:0}
.helpCard{margin:-48px 14px 0;background:#171422;border:1px solid #33304a;border-radius:16px;padding:12px;box-shadow:0 18px 50px #0008;position:relative}
.helpSearch{display:flex;align-items:center;gap:8px;background:#221f31;border-radius:10px;padding:0 12px;height:44px;color:#9f9bb8}
.helpSearch input{flex:1;background:none;border:0;outline:0;color:var(--text);font-weight:600}
.faqItem{border-bottom:1px solid #26233a;padding:0 6px}
.faqItem:last-child{border-bottom:0}
.faqItem summary{cursor:pointer;list-style:none;padding:13px 4px;font-size:13.5px;display:flex;justify-content:space-between;gap:10px}
.faqItem summary:after{content:"›";color:#9566ff;font-size:18px;line-height:1;transition:transform .2s}
.faqItem[open] summary:after{transform:rotate(90deg)}
.faqItem p{margin:0 4px 14px;color:#b9b5cf;font-size:13px;line-height:1.6}
.helpAsk{display:flex;align-items:center;justify-content:space-between;width:calc(100% - 28px);margin:14px 14px 0;padding:16px 18px;border-radius:14px;background:#171422;border:1px solid #33304a;text-align:left}
.helpAsk:hover{border-color:#9566ff}
.helpAsk b{display:block;font-size:14px}
.helpAsk small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.helpAsk svg{color:#38cfff}
/* Support */
.supportHead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.supportHead h1{font-size:28px;margin:0 0 6px}
.grad2{background-image:linear-gradient(90deg,#38cfff,#9566ff)}
.supportHead p{margin:0;color:var(--muted)}
.supportTiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:16px;border:1px solid #2d2a3d;border-radius:14px;background:#12101b;margin-bottom:18px}
.supportTiles>div{display:flex;gap:11px;align-items:flex-start}
.supportTiles>div>span{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;color:var(--ic);background:color-mix(in srgb,var(--ic) 14%,transparent);flex-shrink:0}
.supportTiles svg{width:16px;height:16px}
.supportTiles b{display:block;font-size:12.5px}
.supportTiles small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.supportEmpty{padding:50px 20px;text-align:center}
.emptyIcon{width:56px;height:56px;border-radius:16px;display:inline-grid;place-items:center;background:#38cfff1a;color:#38cfff;margin-bottom:12px}
.emptyIcon svg{width:26px;height:26px}
.supportEmpty .primary{margin-top:16px}
.ticketTable{padding:6px}
.adminNote{margin:8px 12px}
.ticketRow{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;padding:14px;border-radius:10px}
.ticketRow:hover{background:#ffffff08}
.ticketRow b{display:block;font-size:13.5px}
.ticketRow small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.ticketState{font-size:10.5px;font-weight:700;padding:4px 9px;border-radius:999px;white-space:nowrap}
.ticketState.open{background:#38cfff1c;color:#38cfff}
.ticketState.answered{background:#5ce0a01c;color:#5ce0a0}
.ticketState.closed{background:#ffffff10;color:#9a97b0}
.ticketForm .formActions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}
.threadHead{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.threadHead h2{font-size:17px;margin:0;flex:1}
.messages{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.msg{max-width:78%;padding:12px 14px;border-radius:12px;background:#1d1a2a;border:1px solid #2f2b44}
.msg.user{align-self:flex-end;background:#9566ff1f;border-color:#9566ff55}
.msg b{font-size:11px;color:#c9b4ff}
.msg p{margin:6px 0;white-space:pre-wrap;font-size:13px;line-height:1.55}
.msg small{font-size:10px;color:var(--muted)}
.replyForm{display:flex;gap:10px;align-items:flex-end}
.replyForm textarea{flex:1}
/* Policies */
.policyTabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.policyTabs button{padding:8px 14px;border-radius:999px;border:1px solid #33304a;font-size:12.5px;color:#cfcbe4}
.policyTabs button.active{background:#9566ff22;border-color:#9566ff;color:#fff}
.policyDoc{max-width:820px}
.policyDoc h2{margin-top:0}
.policyDoc h3{font-size:14px;margin:20px 0 6px;color:#c9b4ff}
.policyDoc p{margin:0;color:#c3bfd6;line-height:1.7;font-size:13.5px}
/* History import tiles */
.historyImport{border-top:1px solid #2f2944;margin-top:8px;padding:10px 4px 2px}
.historyImport small{display:block;font-size:10.5px;color:var(--muted);margin:0 4px 8px;letter-spacing:.3px}
.importTiles{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.importTile{display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 4px;border:1px dashed #4a3f63;border-radius:10px;cursor:pointer;font-size:10.5px;color:#cfcbe4;text-align:center}
.importTile:hover{border-color:#9566ff;background:#9566ff12}
.importTile svg{width:17px;height:17px;color:#38cfff}
@media(max-width:900px){.searchBox{flex-basis:180px}.searchBox kbd{display:none}.supportTiles{grid-template-columns:1fr}.supportHead{flex-wrap:wrap}.notifMenu{right:-110px;width:300px}}
@media(max-width:600px){.searchBox{display:none}.creditPill{padding:0 9px}}
.accountName{display:flex;flex-direction:column;align-items:flex-start;line-height:1.2;text-align:left}
.accountName small{font-size:10px;color:var(--muted)}
.accountName b{font-size:13.5px;font-weight:650;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.accountName{display:none}}

/* Ticket images */
.attachBtn{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:7px 12px;border:1px dashed #4a3f63;border-radius:9px;font-size:12px;cursor:pointer;color:#cfcbe4}
.attachBtn:hover{border-color:#9566ff}
.attachNames{font-size:11px;color:var(--muted);margin-left:8px}
.replyForm{flex-wrap:wrap}.replyAttach{flex-basis:100%}
.msgImages{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.msgImages img{width:120px;height:90px;object-fit:cover;border-radius:10px;border:1px solid #2f2b44;display:block}
.theme-light .attachBtn{border-color:#cfd3dc;color:#3b4150}
.theme-light .msgImages img{border-color:#e6e8ee}
