/* Nami operator workspace: readable on a laptop, usable on mobile, no hidden data placeholders. */
[hidden]{display:none!important}
:root{--bg:#f5f6fb;--ink:#202338;--muted:#697188;--line:#e3e6f0;--brand:#6955d8;--brand-soft:#eeeafb;--brand-softer:#f7f5ff}
body{font-family:'Be Vietnam Pro','Segoe UI',sans-serif;font-size:14px}
.nami-money{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;vertical-align:baseline;font-variant-numeric:tabular-nums}
.nami-money-eye{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;padding:4px;margin:0;border:1px solid transparent;border-radius:7px;background:transparent;color:#7b7890;cursor:pointer;vertical-align:middle;flex-shrink:0}
.nami-money-eye:hover{background:#eeeafb;border-color:#ddd5f1;color:#5845a0}
.nami-money-eye:focus-visible{outline:2px solid #6955d8;outline-offset:2px}
.nami-money-eye svg{display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nami-money-eye .nami-eye-slash{display:none}
.is-money-hidden .nami-eye-slash{display:block}
#aiCostBody .ai-metrics>div{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:16px 18px;border:1px solid var(--line);background:#fff;min-width:0}
#aiCostBody .ai-metrics>div>small{display:block;line-height:1.5;color:var(--muted)}
#aiCostBody .ai-metrics>div>strong{display:block;font-size:24px;line-height:1.35}
header{box-shadow:0 2px 12px #28355d08}
.sidebar{border-right:1px solid var(--line);background:#fff}
.sidebar .tab{border-radius:9px;margin:3px 8px;width:calc(100% - 16px);padding:11px 13px;line-height:1.5;text-align:left}
.sidebar .tab.active{background:var(--brand-soft);color:#4939a8;font-weight:700;box-shadow:inset 3px 0 var(--brand)}
.sidebar .nav-group{padding:18px 20px 5px;font-size:10px;letter-spacing:.09em;color:#9297a9}
.brand{font-weight:800;letter-spacing:-.025em}
.brand .tag{background:#eeeafb;color:#5b45bd}
.card{border-radius:15px;border:1px solid var(--line);box-shadow:0 3px 16px #20305c04}
.btn{border-radius:9px;min-height:36px;font-weight:600;cursor:pointer}
.btn:disabled{cursor:not-allowed;opacity:.5}
.btn.primary{background:var(--brand);border-color:var(--brand)}
.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}
.btn.ghost:hover{background:var(--brand-softer);border-color:#c5bcf0}
.nami-mgmt-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.nami-mgmt-heading h2{font-size:25px;letter-spacing:-.04em;margin:0 0 5px}
.nami-mgmt-heading p{margin:0;color:var(--muted)}
.nami-mgmt-toolbar,.nami-mgmt-filters,.ugc-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:16px 0}
.nami-mgmt-toolbar label,.nami-mgmt-field,.ugc-toolbar label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:#515972;min-width:130px}
.nami-mgmt-toolbar input,.nami-mgmt-filters input,.nami-mgmt-filters select,.nami-mgmt-field input,.nami-mgmt-field select,.ugc-toolbar input,.ugc-toolbar select{height:40px;background:#fff;border:1px solid #dce0ed;border-radius:9px;padding:8px 11px;color:var(--ink);font:inherit;font-size:13px;min-width:0}
.nami-mgmt-search{flex:1;min-width:220px!important}
.nami-mgmt-filters>label:first-child{flex:1;min-width:220px}
.nami-mgmt-meta,.nami-mgmt-filter-note{font-size:12px;color:var(--muted);margin:10px 0 18px;line-height:1.7}
.nami-mgmt-kpis,.nami-mgmt-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px;margin:16px 0 22px}
.nami-mgmt-kpi,.nami-mgmt-stat{display:flex;flex-direction:column;justify-content:flex-start;gap:8px;border:1px solid var(--line);border-radius:12px;padding:17px 18px;background:linear-gradient(145deg,#fff,#fcfcff);min-width:0}
.nami-mgmt-kpi>span,.nami-mgmt-stat>span{font-size:12px;font-weight:600;color:var(--muted)}
.nami-mgmt-kpi>strong,.nami-mgmt-stat>strong,.nami-mgmt-stat>b{font-size:25px;line-height:1.35;letter-spacing:-.035em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:var(--ink)}
.nami-mgmt-kpi small,.nami-mgmt-stat small{font-size:11px;color:var(--muted);line-height:1.65;margin-top:auto}
.nami-mgmt-kpi.is-positive{background:#f2fbf6;border-color:#cdebd9}
.nami-mgmt-kpi.is-positive strong{color:#137a49}
.nami-mgmt-section{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;margin:20px 0}
.nami-mgmt-section>h3{font-size:16px;margin:0 0 14px;letter-spacing:-.02em}
.nami-mgmt-section summary{font-weight:700;cursor:pointer;padding:2px 0}
.nami-mgmt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.nami-mgmt-grid>.nami-mgmt-section{margin:0 0 20px;min-width:0}
.nami-mgmt-loading,.nami-mgmt-empty{padding:30px 20px;text-align:center;background:#fafbff;border:1px dashed var(--line);border-radius:12px;color:var(--muted);line-height:1.8}
.nami-mgmt-loading::before{content:'';display:inline-block;width:15px;height:15px;border:2px solid #ddd7f7;border-top-color:var(--brand);border-radius:50%;margin-right:10px;vertical-align:-3px;animation:namiAdminSpin .9s linear infinite}
@keyframes namiAdminSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.nami-mgmt-loading::before{animation:none}}
.nami-mgmt-error{background:#fff4f3;border:1px solid #f1c5c0;border-radius:11px;padding:18px;color:#a33329;line-height:1.8}
.nami-mgmt-note,.nami-mgmt-warning,.nami-mgmt-notice{background:#f7f8fc;border-left:3px solid #c3b6ed;border-radius:6px;padding:12px 14px;font-size:12px;color:#5f6680;line-height:1.9;white-space:normal}
.nami-mgmt-warning,.nami-mgmt-notice{background:#fff9ed;border-left-color:#d9a33d;color:#805d1d}
.nami-mgmt-critical{background:#fff1f0;border-left:3px solid #c83838;border-radius:6px;padding:12px 14px;font-size:12px;color:#922727;line-height:1.9}
.nami-mgmt-link{font:inherit;display:inline;padding:0;border:0;background:none;color:#5c48bf;text-align:left;cursor:pointer;text-decoration:underline;text-decoration-color:#cfc4ef;text-underline-offset:3px;overflow-wrap:anywhere}
.nami-mgmt-link:hover{color:#382477;text-decoration-color:currentColor}
.nami-mgmt-table-scroll{overflow:auto;border:1px solid var(--line);border-radius:11px;margin:14px 0}
.nami-mgmt-table{border-collapse:collapse;width:100%;font-size:12px;line-height:1.65}
.nami-mgmt-table th,.nami-mgmt-table td{padding:13px 15px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.nami-mgmt-table th{background:#f7f6fc;color:#505974;font-size:11px;font-weight:700;white-space:nowrap;position:sticky;top:0;z-index:1}
.nami-mgmt-table tbody tr:hover,.shotiva-table tbody tr:hover{background:#faf9ff}
.nami-mgmt-table td small{display:block;color:var(--muted);margin-top:4px;font-size:10px;overflow-wrap:anywhere}
.nami-mgmt-table tr:last-child td{border-bottom:0}
.nami-mgmt-identity{display:flex;gap:10px;align-items:center;min-width:145px}
.nami-mgmt-avatar{width:40px;height:40px;border-radius:11px;object-fit:cover;flex-shrink:0;border:1px solid var(--line)}
.nami-mgmt-avatar-placeholder{display:inline-flex;align-items:center;justify-content:center;background:#eeeafb;color:#6955b0;font-weight:700;font-size:18px}
.nami-mgmt-badge{display:inline-block;border:1px solid #e1e4ed;border-radius:6px;background:#f6f7fa;padding:3px 7px;font-size:10px;font-weight:600;margin:2px 4px 2px 0;white-space:nowrap;line-height:1.6}
.nami-mgmt-live,.nami-mgmt-active{background:#eaf8ef;border-color:#c8e5d1;color:#206b3d}
.nami-mgmt-test{background:#e8f4fb;border-color:#b9dce9;color:#166383}
.nami-mgmt-suspended,.nami-mgmt-deleted{background:#fff0ee;border-color:#f0c6c0;color:#9f3b31}
.nami-mgmt-unknown{background:#fff8e8;border-color:#ead9ac;color:#8c691b}
.nami-mgmt-pagination,.nami-mgmt-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin:17px 0 4px;font-size:12px;color:var(--muted)}
.modal:has(.nami-mgmt-detail){width:min(1140px,96vw);max-width:1140px;max-height:94vh;overflow:auto}
.nami-mgmt-detail-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.nami-mgmt-detail-header .nami-mgmt-avatar{width:66px;height:66px;border-radius:17px}
.nami-mgmt-detail-header h3{font-size:22px;margin:0 0 6px}
.nami-mgmt-detail-header .nami-mgmt-identity>span{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}
.nami-mgmt-detail-header .nami-mgmt-identity small{font-size:11px;color:var(--muted)}
.nami-mgmt-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--line);padding-bottom:12px;margin:15px 0 20px;position:sticky;top:-1px;background:#fff;z-index:3}
.nami-mgmt-tab{background:#f4f5fa;color:#667089;border:1px solid transparent;border-radius:8px;font:inherit;font-size:12px;padding:9px 12px;cursor:pointer}
.nami-mgmt-tab.nami-mgmt-selected{background:#ede8fb;color:#5139aa;border-color:#cfc1ed;font-weight:700}
.nami-mgmt-detail-content{min-height:230px}
.nami-mgmt-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.nami-mgmt-fact{padding:13px 15px;background:#fff;min-width:0}
.nami-mgmt-fact dt{font-size:11px;color:var(--muted);margin-bottom:5px}
.nami-mgmt-fact dd{margin:0;font-size:13px;color:var(--ink);overflow-wrap:anywhere;white-space:pre-wrap}
.nami-mgmt-user-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
.nami-mgmt-messages{display:flex;flex-direction:column;gap:13px;margin-top:18px}
.nami-mgmt-message{border:1px solid var(--line);padding:15px 18px;border-radius:12px;background:#fafbfe;margin-right:9%;max-width:94%}
.nami-mgmt-message header{position:static;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;background:none;border:0;box-shadow:none;padding:0;font-size:11px;color:var(--muted)}
.nami-mgmt-message p{margin:10px 0 0}
.nami-mgmt-from-user{margin-right:0;margin-left:9%;background:#f0ecfb;border-color:#ddd4f2}
.nami-mgmt-message-preview{max-width:330px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nami-mgmt-detail form{border:1px solid var(--line);border-radius:12px;padding:18px;margin:18px 0;background:#fafbfe}
.nami-mgmt-detail form label{display:block;font-size:12px;font-weight:600;color:#5b637b;margin:12px 0 6px}
.nami-mgmt-detail form textarea,.nami-mgmt-detail form input{width:100%;border:1px solid #dce0ec;border-radius:8px;font:inherit;font-size:13px;padding:10px 12px;background:#fff}
.nami-mgmt-detail form textarea{min-height:82px;resize:vertical}
.nami-mgmt-credit-recipient{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;background:#f4f1fc;border:1px solid #ded5f2;border-radius:12px}
.nami-mgmt-credit-recipient>.nami-mgmt-identity>span{display:flex;flex-direction:column;gap:4px}
.nami-mgmt-credit-recipient small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.nami-mgmt-credit-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}
.nami-mgmt-credit-fields select{background:#fff;border:1px solid #dce0ec;border-radius:8px;min-height:42px;font:inherit}
.nami-mgmt-credit-balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.nami-mgmt-credit-balances>div{display:flex;flex-direction:column;gap:9px;min-width:0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px}
.nami-mgmt-credit-balances>div>span{font-size:11px;color:var(--muted)}
.nami-mgmt-credit-balances strong{font-size:23px;line-height:1.4;overflow-wrap:anywhere}
.nami-mgmt-credit-balances>div:nth-child(2){background:#f4f0fc;border-color:#d6c9ec;color:#6046ab}
.nami-mgmt-credit-balances>div:nth-child(3){background:#effaf4;border-color:#bde1ca;color:#24704a}
.nami-mgmt-notification-preview{display:flex;flex-direction:column;gap:9px;background:#fff;border:1px dashed #c7b9e2;border-left:4px solid #8062c6;border-radius:10px;padding:17px;margin:18px 0;overflow-wrap:anywhere}
.nami-mgmt-notification-preview small{font-size:11px;color:var(--muted)}
.nami-mgmt-notification-preview strong{font-size:15px}
.nami-mgmt-notification-preview p{margin:0;white-space:pre-wrap;line-height:1.75}
.nami-mgmt-credit-receipt{background:#effaf4;border:1px solid #bde1ca;border-radius:12px;padding:18px;margin:18px 0;line-height:1.8}
@media(max-width:650px){.nami-mgmt-credit-recipient{align-items:flex-start;flex-direction:column}.nami-mgmt-credit-fields,.nami-mgmt-credit-balances{grid-template-columns:1fr}.nami-mgmt-credit-balances strong{font-size:21px}}
.ugc-detail-fields dt{font-weight:700;margin-top:12px}.ugc-detail-fields dd{margin:6px 0 14px;white-space:pre-wrap;overflow-wrap:anywhere}
.ugc-gallery{padding:12px;border:1px solid var(--line);background:#f8f9fc}
.shotiva-read-panel:has(#shotiva-read-users)>input{display:none}
#shotiva-read-users>.shotiva-read-search,#shotiva-read-users>input,#shotiva-read-characters_ugc>.shotiva-read-search,#shotiva-read-characters_ugc>input{display:none}
@media(max-width:1000px){.nami-mgmt-grid{grid-template-columns:1fr}.nami-mgmt-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.who .tag{display:none}}
@media(max-width:650px){.nami-mgmt-heading{align-items:flex-start;flex-direction:column}.nami-mgmt-kpis,.nami-mgmt-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.nami-mgmt-kpi,.nami-mgmt-stat{padding:13px 12px}.nami-mgmt-kpi>strong{font-size:20px}.nami-mgmt-facts{grid-template-columns:1fr}.nami-mgmt-filters>*{min-width:130px;flex:1}.nami-mgmt-table td,.nami-mgmt-table th{padding:11px 10px}.nami-mgmt-section{padding:15px}.nami-mgmt-message{margin-left:0;margin-right:0;max-width:100%}}
@media(max-width:820px){
 main{width:100%;max-width:100%;padding:18px 14px}
 #panel>header{flex-wrap:wrap;gap:10px;padding:12px 14px}
 #panel>header .brand{white-space:nowrap;font-size:15px}
 #panel>header .who{margin-left:auto;flex-wrap:wrap;gap:6px}
 #panel>header .who .btn{padding:8px;font-size:11px}
 .sidebar{position:relative;top:0}
 .sidebar .tab{flex:0 0 auto;width:auto}
 .nami-mgmt-heading p,.nami-mgmt-meta{white-space:normal;overflow-wrap:anywhere}
 .nami-mgmt-toolbar label{min-width:0;flex:1 1 130px}
 .nami-mgmt-detail-header{align-items:flex-start;flex-wrap:wrap}
 .nami-mgmt-detail-header .nami-mgmt-identity{min-width:0;max-width:100%}
}

.nami-notice-translations{margin:16px 0 22px;padding:18px;border:1px solid #ddd9ee;border-radius:12px;background:#faf9ff;min-width:0}.nami-notice-translations legend{font-weight:600;padding:0 8px}.nami-notice-translations textarea{width:100%;box-sizing:border-box;font-family:monospace;font-size:12px}.nami-notice-translations select{max-width:100%;width:100%;min-height:40px}.nami-notice-translations .actions{display:flex;flex-wrap:wrap;gap:8px}

.nami-checkin-days{display:grid;grid-template-columns:repeat(7,minmax(70px,1fr));gap:10px;margin:20px 0;overflow-x:auto}.nami-checkin-days label{display:flex;flex-direction:column;gap:7px;padding:12px;background:#f6f4ff;border:1px solid #ded9ee;border-radius:10px}.nami-checkin-days input{width:100%;box-sizing:border-box;min-width:0}.nami-checkin-days span{font-size:12px;color:#777}
