:root,[data-theme=light]{--background:0 0% 100%;--foreground:222.2 84% 4.9%;--card:0 0% 100%;--card-foreground:222.2 84% 4.9%;--popover:0 0% 100%;--popover-foreground:222.2 84% 4.9%;--primary:222.2 47.4% 11.2%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:210 40% 96.1%;--accent-foreground:222.2 47.4% 11.2%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 40% 98%;--success:142 71% 45%;--warning:38 92% 50%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:222.2 84% 4.9%;--radius:.5rem;--app-bg:210 20% 98%;--sidebar-bg:0 0% 100%;--brand:240 5.9% 10%;--brand-foreground:0 0% 100%}[data-theme=dark]{--background:0 0% 0%;--foreground:0 0% 98%;--card:0 0% 4%;--card-foreground:0 0% 98%;--popover:0 0% 0%;--popover-foreground:0 0% 98%;--primary:0 0% 98%;--primary-foreground:0 0% 9%;--secondary:0 0% 9%;--secondary-foreground:0 0% 98%;--muted:0 0% 9%;--muted-foreground:0 0% 63.9%;--accent:0 0% 9%;--accent-foreground:0 0% 98%;--destructive:0 70% 55%;--destructive-foreground:0 0% 98%;--success:142 71% 50%;--warning:38 92% 55%;--border:0 0% 14.9%;--input:0 0% 14.9%;--ring:0 0% 83.1%;--app-bg:0 0% 0%;--sidebar-bg:0 0% 0%;--brand:0 0% 98%;--brand-foreground:0 0% 9%}*{box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;padding:0}html,body,#root{height:100%}body{color:hsl(var(--foreground));background:hsl(var(--app-bg));font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;line-height:1.5}button{font:inherit;cursor:pointer;color:inherit;background:0 0;border:0}input,textarea,select{font:inherit;outline:none}a{color:inherit;text-decoration:none}.login-screen{background:radial-gradient(circle at top left, #f3f4f6 0%, transparent 50%), radial-gradient(circle at bottom right, #f3f4f6 0%, transparent 50%), hsl(var(--app-bg));justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.login-card{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);width:100%;max-width:380px;padding:32px;box-shadow:0 4px 12px #0000000a,0 1px 3px #0000000f}.login-brand{margin-bottom:24px}.login-brand .logo{background:hsl(var(--brand));width:40px;height:40px;color:hsl(var(--brand-foreground));border-radius:8px;justify-content:center;align-items:center;margin-bottom:16px;display:flex}.login-brand h1{letter-spacing:-.025em;font-size:20px;font-weight:600}.login-brand .tag{color:hsl(var(--muted-foreground));margin-top:4px;font-size:13px}.tabs-pill{background:hsl(var(--muted));border-radius:6px;margin-bottom:20px;padding:3px;display:flex}.pill{color:hsl(var(--muted-foreground));border-radius:4px;flex:1;padding:7px 12px;font-size:13px;font-weight:500;transition:background .15s,color .15s}.pill.active{background:hsl(var(--background));color:hsl(var(--foreground));box-shadow:0 1px 2px #0000000d}.form{flex-direction:column;gap:14px;display:flex}.form .row{flex-direction:column;gap:6px;display:flex}.form label{color:hsl(var(--foreground));font-size:13px;font-weight:500}.form input{background:hsl(var(--background));border:1px solid hsl(var(--input));width:100%;color:hsl(var(--foreground));border-radius:6px;padding:9px 12px;font-size:14px;transition:border-color .15s,box-shadow .15s}.form input:focus{border-color:hsl(var(--ring));box-shadow:0 0 0 3px hsl(var(--ring) / .1)}.password-field{position:relative}.password-field input{padding-right:38px}.password-toggle{width:28px;height:28px;color:hsl(var(--muted-foreground));cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;transition:color .15s,background .15s;display:inline-flex;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.password-toggle:hover{color:hsl(var(--foreground));background:hsl(var(--muted) / .5)}.password-toggle:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:1px}.btn-primary{background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-radius:6px;width:100%;padding:10px 16px;font-size:14px;font-weight:500;transition:opacity .15s,background .15s}.btn-primary:hover:not(:disabled){background:hsl(var(--primary) / .9)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:hsl(var(--secondary));color:hsl(var(--secondary-foreground));border:1px solid hsl(var(--border));border-radius:6px;padding:9px 14px;font-size:13px;font-weight:500}.btn-secondary:hover:not(:disabled){background:hsl(var(--accent))}.btn-outline{color:hsl(var(--foreground));border:1px solid hsl(var(--border));background:0 0;border-radius:6px;padding:9px 14px;font-size:13px;font-weight:500}.btn-outline:hover:not(:disabled){background:hsl(var(--secondary))}.btn-destructive{background:hsl(var(--destructive));color:hsl(var(--destructive-foreground));border-radius:6px;padding:9px 14px;font-size:13px;font-weight:500}.btn-destructive:hover:not(:disabled){background:hsl(var(--destructive) / .9)}.err{color:hsl(var(--destructive));min-height:16px;margin-top:2px;font-size:12px}.shell{background:hsl(var(--app-bg));min-height:100vh;display:flex}.sidebar{background:hsl(var(--sidebar-bg));border-right:1px solid hsl(var(--border));flex-direction:column;flex-shrink:0;width:240px;padding:16px 12px;display:flex}.sidebar-brand{border-bottom:1px solid hsl(var(--border));align-items:center;gap:10px;margin-bottom:14px;padding:6px 8px 18px;display:flex}.sidebar-brand .logo{background:hsl(var(--brand));width:32px;height:32px;color:hsl(var(--brand-foreground));border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.sidebar-brand h1{letter-spacing:-.01em;font-size:14px;font-weight:600}.sidebar-brand .sub{color:hsl(var(--muted-foreground));margin-top:1px;font-size:11px}.nav-section{flex-direction:column;gap:2px;display:flex}.nav-label{color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.04em;padding:8px 8px 4px;font-size:11px;font-weight:500}.nav-item{color:hsl(var(--muted-foreground));text-align:left;border-radius:6px;align-items:center;gap:10px;padding:7px 9px;font-size:13px;font-weight:500;transition:background .1s,color .1s;display:flex}.nav-item:hover:not(:disabled),.nav-item.active{background:hsl(var(--secondary));color:hsl(var(--foreground))}.nav-item:disabled{opacity:.4;cursor:not-allowed}.nav-item .ico{flex-shrink:0;width:16px;height:16px}.sidebar-bottom{border-top:1px solid hsl(var(--border));margin-top:auto;padding-top:14px}.user-card{border-radius:6px;align-items:center;gap:10px;padding:8px;display:flex}.user-card .avatar{background:hsl(var(--secondary));width:32px;height:32px;color:hsl(var(--foreground));border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;font-weight:600;display:flex}.user-card .info{flex:1;min-width:0}.user-card .name{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;overflow:hidden}.user-card .email{color:hsl(var(--muted-foreground));text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.user-card .logout-btn{color:hsl(var(--muted-foreground));border-radius:4px;padding:6px;display:flex}.user-card .logout-btn:hover{color:hsl(var(--destructive));background:hsl(var(--secondary))}.main{flex-direction:column;flex:1;min-width:0;display:flex}.topbar{border-bottom:1px solid hsl(var(--border));background:hsl(var(--background));justify-content:space-between;align-items:center;padding:20px 32px;display:flex}.topbar h1{letter-spacing:-.02em;font-size:22px;font-weight:600}.topbar .sub{color:hsl(var(--muted-foreground));margin-top:2px;font-size:13px}.content{flex:1;padding:28px 32px;overflow-y:auto}.filter-bar{background:hsl(var(--muted));border-radius:6px;gap:6px;width:fit-content;margin-bottom:24px;padding:3px;display:flex}.filter-btn{color:hsl(var(--muted-foreground));border-radius:4px;padding:6px 14px;font-size:13px;font-weight:500;transition:background .15s,color .15s}.filter-btn:hover{color:hsl(var(--foreground))}.filter-btn.active{background:hsl(var(--background));color:hsl(var(--foreground));box-shadow:0 1px 2px #0000000d}.grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;display:grid}.image-card{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);cursor:pointer;transition:box-shadow .15s,border-color .15s;position:relative;overflow:hidden}.image-card:hover{box-shadow:0 4px 12px #0000000f,0 1px 3px #0000000d}.image-card .thumb-wrap{aspect-ratio:1;background:hsl(var(--muted));position:relative;overflow:hidden}.image-card img{object-fit:cover;width:100%;height:100%;display:block}.image-card .placeholder{color:hsl(var(--muted-foreground));justify-content:center;align-items:center;font-size:12px;display:flex;position:absolute;inset:0}.image-card .meta{border-top:1px solid hsl(var(--border));padding:10px 12px}.image-card .meta .id{color:hsl(var(--muted-foreground));font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}.image-card .meta .date{color:hsl(var(--foreground));margin-top:2px;font-size:12px}.status-badge{z-index:1;background:hsl(var(--background));color:hsl(var(--foreground));border:1px solid hsl(var(--border));border-radius:4px;align-items:center;gap:4px;padding:3px 8px;font-size:11px;font-weight:500;display:inline-flex;position:absolute;top:8px;left:8px}.status-badge:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.status-badge.pending_approval{color:hsl(var(--warning))}.status-badge.approved{color:hsl(var(--success))}.status-badge.rejected{color:hsl(var(--destructive))}.status-badge.posted{color:#3c83f6}.empty-state{background:hsl(var(--card));border:1px dashed hsl(var(--border));border-radius:var(--radius);text-align:center;color:hsl(var(--muted-foreground));grid-column:1/-1;padding:56px 32px;font-size:14px}.modal-overlay{z-index:100;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0006;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);grid-template-columns:1fr 360px;width:100%;max-width:960px;max-height:90vh;display:grid;position:relative;overflow:hidden;box-shadow:0 25px 50px #00000026}.modal-image{background:hsl(var(--muted));justify-content:center;align-items:center;max-height:90vh;display:flex;overflow:hidden}.modal-image img{object-fit:contain;max-width:100%;max-height:90vh}.modal-side{border-left:1px solid hsl(var(--border));flex-direction:column;gap:20px;padding:24px;display:flex;overflow-y:auto}.modal-side h2{letter-spacing:-.01em;font-size:16px;font-weight:600}.modal-side .section-label{color:hsl(var(--muted-foreground));margin-bottom:8px;font-size:12px;font-weight:500;display:block}.modal-side .info-grid{grid-template-columns:auto 1fr;gap:8px 16px;font-size:13px;display:grid}.modal-side .info-grid .label{color:hsl(var(--muted-foreground))}.modal-side textarea{background:hsl(var(--background));border:1px solid hsl(var(--input));width:100%;color:hsl(var(--foreground));resize:vertical;border-radius:6px;min-height:90px;padding:9px 12px;font-family:inherit;font-size:13px}.modal-side textarea:focus{border-color:hsl(var(--ring));box-shadow:0 0 0 3px hsl(var(--ring) / .1)}.modal-actions{gap:8px;margin-top:auto;display:flex}.modal-actions button{border-radius:6px;flex:1;padding:10px;font-size:13px;font-weight:500}.btn-approve{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}.btn-approve:hover:not(:disabled){background:hsl(var(--primary) / .9)}.btn-reject{background:hsl(var(--background));color:hsl(var(--destructive));border:1px solid hsl(var(--border))}.btn-reject:hover:not(:disabled){background:hsl(var(--destructive) / .05);border-color:hsl(var(--destructive) / .4)}.modal-close{background:hsl(var(--background));border:1px solid hsl(var(--border));color:hsl(var(--foreground));z-index:1;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;font-size:16px;display:flex;position:absolute;top:12px;right:12px}.modal-close:hover{background:hsl(var(--secondary))}.target-list{flex-direction:column;gap:6px;display:flex}.target-chip{background:hsl(var(--background));border:1px solid hsl(var(--border));cursor:pointer;border-radius:6px;align-items:center;gap:10px;padding:10px 12px;font-size:13px;transition:border-color .15s,background .15s;display:flex}.target-chip:hover{background:hsl(var(--secondary))}.target-chip.active{border-color:hsl(var(--ring));background:hsl(var(--accent))}.target-chip input{accent-color:hsl(var(--primary));margin:0}.target-chip .chip-platform{color:hsl(var(--muted-foreground));background:hsl(var(--muted));border-radius:4px;padding:2px 8px;font-size:11px;font-weight:500}.target-chip .chip-handle{color:hsl(var(--foreground));font-weight:500}.platform-grid{flex-direction:column;gap:12px;max-width:720px;display:flex}.platform-card{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);padding:20px}.platform-head{align-items:center;gap:14px;display:flex}.platform-icon{color:#fff;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.platform-info{flex:1;min-width:0}.platform-info h3{letter-spacing:-.01em;font-size:14px;font-weight:600}.platform-info .muted{color:hsl(var(--muted-foreground));margin-top:2px;font-size:13px}.platform-btn{width:auto!important;padding:8px 16px!important;font-size:13px!important}.connection-list{border-top:1px solid hsl(var(--border));flex-direction:column;gap:2px;margin-top:16px;padding-top:16px;list-style:none;display:flex}.connection-list li{border-radius:6px;justify-content:space-between;align-items:center;padding:8px 10px;font-size:13px;transition:background .15s;display:flex}.connection-list li:hover{background:hsl(var(--secondary))}.connection-list .handle{align-items:center;gap:8px;font-weight:500;display:flex}.connection-list .page-tag{background:hsl(var(--muted));color:hsl(var(--muted-foreground));text-transform:uppercase;border-radius:4px;padding:2px 6px;font-size:10px;font-weight:600;display:inline-block}.btn-link{color:hsl(var(--muted-foreground));background:0 0;border-radius:4px;padding:6px 10px;font-size:12px;font-weight:500}.btn-link.danger:hover{color:hsl(var(--destructive))}.toast{border-radius:6px;align-items:center;gap:10px;margin-bottom:20px;padding:12px 16px;font-size:13px;display:flex}.toast.ok{background:hsl(var(--success) / .1);color:hsl(var(--success));border:1px solid hsl(var(--success) / .3)}.toast.err{background:hsl(var(--destructive) / .1);color:hsl(var(--destructive));border:1px solid hsl(var(--destructive) / .3)}.settings-stack{flex-direction:column;gap:20px;max-width:680px;display:flex}.settings-card{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);padding:24px}.settings-card h3{letter-spacing:-.01em;margin-bottom:4px;font-size:15px;font-weight:600}.settings-card .description{color:hsl(var(--muted-foreground));margin-bottom:18px;font-size:13px}.settings-form{flex-direction:column;gap:14px;display:flex}.settings-form .row{flex-direction:column;gap:6px;display:flex}.settings-form label{color:hsl(var(--foreground));font-size:13px;font-weight:500}.settings-form input{background:hsl(var(--background));border:1px solid hsl(var(--input));border-radius:6px;padding:9px 12px;font-size:14px}.settings-form input:focus{border-color:hsl(var(--ring));box-shadow:0 0 0 3px hsl(var(--ring) / .1)}.settings-form .form-actions{justify-content:flex-end;gap:8px;margin-top:6px;display:flex}.settings-form .form-actions button{width:auto;padding:8px 16px;font-size:13px}.settings-card.danger{border-color:hsl(var(--destructive) / .5);background:hsl(var(--destructive) / .02)}.success-text{color:hsl(var(--success));margin-top:2px;font-size:12px}.theme-toggle{background:hsl(var(--muted));border-radius:6px;align-items:center;gap:2px;margin-bottom:12px;padding:3px;display:flex}.theme-toggle button{color:hsl(var(--muted-foreground));border-radius:4px;flex:1;justify-content:center;align-items:center;gap:6px;padding:6px 8px;font-size:11px;font-weight:500;transition:background .15s,color .15s;display:flex}.theme-toggle button.active{background:hsl(var(--background));color:hsl(var(--foreground));box-shadow:0 1px 2px #0000000d}.muted{color:hsl(var(--muted-foreground))}
