*{
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}

:root{
  --vc:#137f77;
  --vc-dark:#0f6862;
  --vc-darker:#0a4a45;
  --vc-soft:#d9efec;
  --vc-soft-2:#eef8f6;
  --ink:#17302f;
  --muted:#647774;
  --line:#dbe6e3;
  --page:#f5faf9;
  --white:#ffffff;
  --header-h:58px;
}

html,body{
  touch-action:manipulation;
  overscroll-behavior:none;
  -webkit-text-size-adjust:100%;
}
html{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--page);
  color:var(--ink);
}
body{margin:0;background:var(--page)}
button,input,textarea,a{font:inherit}
button,.no-page-zoom{touch-action:manipulation;-webkit-user-select:none;user-select:none}
.hidden{display:none!important}

/* ===== App bar ===== */
.appbar{
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 20px;
  background:var(--vc-darker);
  border-bottom:3px solid var(--vc);
}
.appbar-brand{display:flex;align-items:center;gap:10px}
.appbar-logo{width:28px;height:28px;border-radius:7px}
.appbar-title{color:#fff;font-size:15px;font-weight:800;letter-spacing:-.01em}
.appbar-brand-copy{display:flex;flex-direction:column;line-height:1.25}
.appbar-subtitle{color:rgba(255,255,255,.65);font-size:10px;font-weight:600}
.appbar-actions{display:flex;align-items:center;gap:8px}
.appbar-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 13px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:10px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
}
.appbar-btn:hover{background:rgba(255,255,255,.14)}

/* Tools dropdown */
.tools-menu{position:relative}
.tools-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:250px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 14px 32px rgba(10,40,37,.22);
  padding:5px;
  display:none;
  opacity:0;
  transform:translateY(-4px);
  transition:opacity .15s ease,transform .15s ease;
  z-index:60;
}
.tools-dropdown.open{display:block;opacity:1;transform:translateY(0)}
.tools-item{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:9px 12px;
  border-left:2px solid transparent;
  text-decoration:none;
  cursor:pointer;
}
.tools-item:not(.disabled):hover{border-left-color:var(--vc)}
.tools-item.disabled{cursor:default}
.tools-item strong{font-size:13px;font-weight:800;color:var(--ink)}
.tools-item small{font-size:11.5px;color:var(--muted)}
.tools-item.disabled strong,.tools-item.disabled small{color:var(--muted)}
.tools-item.active strong{color:var(--vc-dark)}
.soon-badge{
  display:inline-block;
  margin-left:6px;
  padding:1px 6px;
  font-size:9px;
  font-weight:900;
  color:var(--vc-dark);
  background:var(--vc-soft);
  border-radius:999px;
  vertical-align:middle;
}

/* ===== App shell: sidebar + main ===== */
.shell{
  display:flex;
  align-items:stretch;
  min-height:calc(100vh - var(--header-h) - 40px);
}
.sidebar{
  width:320px;
  flex:none;
  padding:30px 26px;
  background:var(--white);
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:36px;
}
.sidebar-block{display:flex;flex-direction:column}
.sidebar-title{
  margin:0 0 18px;
  font-size:14px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
}
.sidebar-hint{margin:14px 0 0;font-size:13.5px;color:var(--muted);line-height:1.55}

.settings-tabs{
  display:flex;
  gap:4px;
  margin-bottom:14px;
  padding:3px;
  background:var(--page);
  border-radius:10px;
}
.settings-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex:1;
  padding:7px 8px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.settings-tab.active{background:var(--white);color:var(--vc-dark);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.settings-panel.hidden{display:none}
.settings-panel label{
  display:block;
  margin:0 0 5px;
  font-size:11px;
  font-weight:800;
  color:var(--ink);
}
.settings-panel input{
  width:100%;
  padding:9px 11px;
  margin-bottom:12px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--page);
  color:var(--ink);
  font-size:12.5px;
}
.settings-panel input:focus{outline:2px solid var(--vc);outline-offset:1px}

.sidebar-primary-btn{
  display:block;
  width:100%;
  padding:16px 18px;
  border:0;
  border-radius:12px;
  background:var(--vc);
  color:#fff;
  font-size:15.5px;
  font-weight:800;
  cursor:pointer;
  text-align:center;
}
.sidebar-primary-btn:hover{background:var(--vc-dark)}

.token-balance-box{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:20px 20px;
  margin-bottom:20px;
  border-radius:12px;
  background:var(--vc-soft-2);
}
.token-balance-box span{font-size:12.5px;color:var(--muted)}
.token-balance-box strong{font-size:17px;color:var(--vc-dark);line-height:1.3}
.token-balance-box strong.zero{color:#c1392f}

.upload-box{
  padding:48px 18px;
  border:1.5px dashed var(--line);
  border-radius:14px;
  text-align:center;
  cursor:pointer;
}
.upload-box.drag-active{border-color:var(--vc);background:var(--vc-soft-2)}
.upload-symbol{font-size:20px;color:var(--vc);margin-bottom:8px}
.upload-box p{margin:0 0 18px;font-size:15px;color:var(--muted)}
.format-badges{display:flex;gap:7px;margin-top:16px;flex-wrap:wrap}
.format-badge{
  padding:5px 12px;
  border-radius:8px;
  background:var(--vc-soft);
  color:var(--vc-dark);
  font-size:12px;
  font-weight:800;
}

/* ===== Main workspace ===== */
.workspace-main{flex:1;min-width:0;padding:22px 26px}
.workspace-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
  flex-wrap:wrap;
}
.file-count{font-size:14px;font-weight:800;color:var(--ink)}
.toolbar-actions{display:flex;gap:10px}
.toolbar-primary-btn{
  padding:10px 18px;
  border:0;
  border-radius:11px;
  background:var(--vc);
  color:#fff;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.toolbar-primary-btn:hover{background:var(--vc-dark)}
.toolbar-secondary-btn{
  padding:10px 18px;
  border:1px solid var(--vc);
  border-radius:11px;
  background:var(--white);
  color:var(--vc-dark);
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.toolbar-secondary-btn:hover{background:var(--vc-soft-2)}

.workspace{
  display:grid;
  grid-template-columns:1fr 300px;
  gap:20px;
  align-items:start;
}
.queue-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
  gap:12px;
}
.queue-grid .queue-empty{grid-column:1/-1}
.queue-empty{
  padding:40px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
  border:1.5px dashed var(--line);
  border-radius:14px;
}

.queue-grid-item{
  position:relative;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--white);
  overflow:hidden;
  cursor:default;
}
.queue-grid-item.done{cursor:pointer}
.queue-grid-item.selected{border-color:var(--vc);box-shadow:0 0 0 2px var(--vc-soft)}
.queue-grid-thumb{
  width:100%;
  aspect-ratio:1;
  background:var(--vc-soft-2);
  display:grid;
  place-items:center;
  font-size:11px;
  font-weight:800;
  color:var(--vc-dark);
  overflow:hidden;
}
.queue-grid-thumb img{width:100%;height:100%;object-fit:cover}
.queue-grid-name{
  padding:7px 8px;
  font-size:11px;
  font-weight:700;
  color:var(--ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.queue-grid-dot{
  position:absolute;
  top:6px;
  right:6px;
  width:9px;
  height:9px;
  border-radius:50%;
  border:2px solid var(--white);
}
.queue-grid-dot.waiting{background:var(--muted)}
.queue-grid-dot.processing{background:#c98a00}
.queue-grid-dot.done{background:var(--vc)}
.queue-grid-dot.failed{background:#c1392f}

/* Detail panel */
.detail-panel{
  position:sticky;
  top:16px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--white);
  min-height:200px;
}
.detail-empty{margin:0;color:var(--muted);font-size:12.5px;line-height:1.5}
.detail-content.hidden{display:none}
.detail-filename{
  margin-bottom:14px;
  font-size:12.5px;
  font-weight:800;
  color:var(--ink);
  word-break:break-word;
}
.detail-content label{
  display:block;
  margin:0 0 5px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:var(--muted);
}
.detail-content input[type="text"],
.detail-content textarea{
  width:100%;
  padding:9px 11px;
  margin-bottom:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--page);
  color:var(--ink);
  font-size:12.5px;
  font-family:inherit;
  resize:vertical;
}
.detail-content input:focus,
.detail-content textarea:focus{outline:2px solid var(--vc);outline-offset:1px}
.detail-keywords{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}
.detail-keyword-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:3px 4px 3px 9px;
  border-radius:999px;
  background:var(--vc-soft-2);
  color:var(--vc-dark);
  font-size:11px;
  font-weight:700;
}
.detail-keyword-chip button{
  border:0;
  background:none;
  color:var(--vc-dark);
  cursor:pointer;
  font-size:12px;
  line-height:1;
  padding:2px 4px;
}
.detail-keyword-add{display:flex;gap:6px;margin-bottom:16px}
.detail-keyword-add input{
  flex:1;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--page);
  font-size:11.5px;
}
.link-back{
  background:none;
  border:0;
  color:var(--vc-dark);
  font-size:11.5px;
  font-weight:700;
  cursor:pointer;
  padding:4px;
  flex:none;
  white-space:nowrap;
}
.detail-actions{display:flex;gap:8px}
.detail-actions .sidebar-primary-btn{flex:1}
.detail-actions .toolbar-secondary-btn{flex:1;padding:10px 14px;font-size:12.5px}

/* ===== Footer ===== */
.app-footer{
  position:relative;
  padding:16px 20px 24px;
  text-align:center;
  font-size:11px;
  color:var(--muted);
}
.app-footer a{color:var(--vc-dark);font-weight:700;text-decoration:none}
.app-footer-credit{display:inline-block}

.footer-login-group{
  position:absolute;
  left:20px;
  top:16px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.footer-login{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--white);
  color:var(--ink);
  font-size:11.5px;
  font-weight:700;
  cursor:pointer;
}
.footer-login:hover{border-color:var(--vc)}
.footer-login .icon-user{
  width:13px;
  height:13px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137f77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.4'/%3E%3Cpath d='M5 20c0-4 3-6.6 7-6.6s7 2.6 7 6.6'/%3E%3C/svg%3E");
}
.footer-login-status{
  min-width:70px;
  height:16px;
  padding:0 8px;
  display:inline-flex;
  align-items:center;
  border-radius:5px;
  background:var(--page);
  font-size:11px;
  font-weight:700;
  color:var(--vc-dark);
}
@media(max-width:640px){
  .footer-login-group{position:static;margin-bottom:10px}
}

/* ===== Responsive ===== */
@media(max-width:980px){
  .workspace{grid-template-columns:1fr}
  .detail-panel{position:static}
}
@media(max-width:820px){
  .shell{flex-direction:column;min-height:0}
  .sidebar{
    width:auto;
    padding:18px 16px;
    gap:22px;
    flex-direction:row;
    flex-wrap:wrap;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .sidebar-block{flex:1;min-width:220px}
  .sidebar-title{font-size:11px;margin-bottom:10px}
  .sidebar-hint{font-size:11.5px;margin-top:8px}
  .token-balance-box{padding:14px 16px;margin-bottom:12px}
  .token-balance-box span{font-size:11px}
  .token-balance-box strong{font-size:16px}
  .sidebar-primary-btn{padding:11px 14px;font-size:13px}
  .sidebar-btn-thin{padding:8px 14px;font-size:12px}
  .upload-box{padding:24px 14px}
  .icon-upload{width:22px;height:22px}
  .upload-box p{font-size:12.5px;margin-bottom:10px}
  .format-badges{margin-top:10px}
  .format-badge{padding:3px 8px;font-size:10.5px}
  .workspace-main{padding:16px}
}
@media(max-width:520px){
  .appbar{padding:0 12px}
  .appbar-btn .btn-label{display:none}
  .queue-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
  .sidebar{flex-direction:column;gap:18px}
  .sidebar-block{min-width:0}
  .list-row{flex-direction:column}
  .list-row-left{width:100%;flex-direction:row;align-items:center;gap:10px}
  .list-row-thumb{width:56px;height:56px;flex:none}
  .list-row-name,.list-row-meta,.queue-status-pill{flex:none}

  .format-badges{justify-content:center}
  .sidebar-hint{text-align:center}
}

/* ===== Activity log ===== */
.log-count{
  float:right;
  font-size:10px;
  font-weight:700;
  color:var(--muted);
  text-transform:none;
  letter-spacing:0;
}
.activity-log{
  max-height:220px;
  overflow-y:auto;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--page);
  padding:8px 10px;
}
.log-empty{margin:4px 0;font-size:11px;color:var(--muted)}
.log-entry{
  display:flex;
  gap:6px;
  padding:4px 0;
  font-size:11px;
  line-height:1.4;
  border-bottom:1px solid var(--line);
}
.log-entry:last-child{border-bottom:0}
.log-time{flex:none;color:var(--muted);font-variant-numeric:tabular-nums}
.log-msg{color:var(--ink)}
.log-entry.error .log-msg{color:#c1392f}
.log-entry.success .log-msg{color:var(--vc-dark)}

/* ===== Export row (platform checkboxes) ===== */
.export-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  padding:10px 14px;
  margin-bottom:16px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--white);
}
.export-label{font-size:11.5px;font-weight:800;color:var(--muted)}
.export-checkbox{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:12px;
  font-weight:600;
  color:var(--ink);
  cursor:pointer;
}
.export-checkbox input{accent-color:var(--vc)}

/* ===== Icon set (SVG, gaya sama kayak vectracer.com) ===== */
.icon{
  display:inline-block;
  width:16px;
  height:16px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  vertical-align:middle;
}
.icon-grid{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E")}
.icon-user{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.4'/%3E%3Cpath d='M5 20c0-4 3-6.6 7-6.6s7 2.6 7 6.6'/%3E%3C/svg%3E")}
.icon-wallet{width:15px;height:15px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137f77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2.2'/%3E%3Cpath d='M3 10h18'/%3E%3Ccircle cx='17' cy='14.6' r='1' fill='%23137f77' stroke='none'/%3E%3C/svg%3E")}
.settings-tab.active .icon-wallet,
.settings-tab.active .icon-key{filter:none}
.settings-tab:not(.active) .icon-wallet,
.settings-tab:not(.active) .icon-key{opacity:.55}
.icon-key{width:15px;height:15px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137f77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='7.5' r='3.5'/%3E%3Cpath d='M10 10l10 10m-6.5-6.5l2.2-2.2m0 4.4l2.2-2.2'/%3E%3C/svg%3E")}
.icon-upload{width:30px;height:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137f77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3m0 0L7 8m5-5l5 5'/%3E%3Cpath d='M4 19h16'/%3E%3C/svg%3E")}
.icon-log{width:15px;height:15px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137f77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cline x1='4' y1='18' x2='13' y2='18'/%3E%3C/svg%3E")}

/* ===== Activity log strip (full-width, paling bawah) ===== */
.log-strip{
  background:var(--white);
  border-top:1px solid var(--line);
}
.log-strip-inner{
  max-width:980px;
  margin:0 auto;
  padding:18px 26px;
}
.log-strip-title{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 10px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
}
.log-count{
  margin-left:auto;
  font-size:10.5px;
  font-weight:700;
  color:var(--muted);
  text-transform:none;
  letter-spacing:0;
}
.log-strip .activity-log{
  max-height:150px;
  overflow-y:auto;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--page);
  padding:8px 12px;
}

/* ===== Icon button kecil (misal: buka Custom API Key) ===== */
.sidebar-title{position:relative}
.icon-btn{
  position:absolute;
  top:-2px;
  right:0;
  width:26px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--white);
  cursor:pointer;
}
.icon-btn:hover{border-color:var(--vc);background:var(--vc-soft-2)}

.icon-btn-labeled{
  position:absolute;
  top:-4px;
  right:0;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--white);
  cursor:pointer;
}
.icon-btn-labeled:hover{border-color:var(--vc);background:var(--vc-soft-2)}
.icon-btn-labeled span:last-child{font-size:10px;font-weight:700;color:var(--muted);white-space:nowrap}
.icon-btn-labeled .icon-key{width:13px;height:13px}

/* ===== Modal: Custom API Key ===== */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(10,40,37,.45);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:100;
}
.modal-overlay.hidden{display:none}
.modal-box{
  width:100%;
  max-width:400px;
  padding:22px;
  border-radius:16px;
  background:var(--white);
  box-shadow:0 20px 50px rgba(10,40,37,.3);
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}
.modal-head h2{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
  font-size:15px;
  color:var(--ink);
}
.modal-close{
  width:26px;
  height:26px;
  border:0;
  border-radius:8px;
  background:var(--page);
  color:var(--muted);
  cursor:pointer;
  font-size:13px;
}
.modal-close:hover{background:var(--vc-soft-2);color:var(--vc-dark)}
.modal-box label{
  display:block;
  margin:0 0 5px;
  font-size:11px;
  font-weight:800;
  color:var(--ink);
}
.modal-box input{
  width:100%;
  padding:10px 12px;
  margin-bottom:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--page);
  color:var(--ink);
  font-size:13px;
}
.modal-box input:focus{outline:2px solid var(--vc);outline-offset:1px}

/* ===== Empty state (gabungan, bukan 2 kotak kosong terpisah) ===== */
.empty-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:340px;
  padding:40px 20px;
  border:1.5px dashed var(--line);
  border-radius:16px;
  text-align:center;
}
.icon-upload-lg{
  width:36px;
  height:36px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137f77' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3m0 0L7 8m5-5l5 5'/%3E%3Cpath d='M4 19h16'/%3E%3C/svg%3E");
  opacity:.7;
}
.empty-state h2{margin:6px 0 0;font-size:16px;color:var(--ink)}
.empty-state p{margin:0;font-size:13px;color:var(--muted)}

/* ===== Konsistensi radius & spacing ===== */
.sidebar-block,
.upload-box,
.detail-panel,
.export-row,
.queue-grid-item,
.empty-state{border-radius:14px}
.token-balance-box,
.format-badge,
.queue-status{border-radius:10px}

/* ===== Grid empty message (selalu kelihatan, seimbang sama panel edit) ===== */
.queue-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:230px;
  padding:30px 20px;
  border:1.5px dashed var(--line);
  border-radius:14px;
  grid-column:1/-1;
}
.queue-empty p{margin:0;font-size:13px;font-weight:700;color:var(--muted)}
.toolbar-primary-btn:disabled{
  background:var(--line);
  color:var(--muted);
  cursor:default;
}

/* ===== File status bar (Files/Done/Failed/Pending) ===== */
.file-status-bar{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  font-size:12.5px;
  font-weight:700;
  color:var(--muted);
}
.file-status-bar strong{color:var(--ink);font-weight:900}
.file-status-bar .stat-done strong{color:var(--vc-dark)}
.file-status-bar .stat-failed strong{color:#c1392f}

/* ===== Platform cards (ganti checkbox biasa) ===== */
.platform-cards{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  flex:1;
}
.platform-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:150px;
  flex:1;
  padding:9px 11px 9px 30px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--page);
  cursor:pointer;
}
.platform-card:has(input:checked){border-color:var(--vc);background:var(--vc-soft-2)}
.platform-card input{position:absolute;left:10px;top:11px;accent-color:var(--vc)}
.platform-card strong{font-size:12px;color:var(--ink)}
.platform-card span{font-size:10.5px;color:var(--muted);line-height:1.35}

/* ===== Copy button di field metadata ===== */
.detail-field-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:5px;
}
.detail-field-head label{margin:0}
.copy-btn{
  padding:2px 9px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--white);
  color:var(--vc-dark);
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.copy-btn:hover{background:var(--vc-soft-2);border-color:var(--vc)}
.copy-btn.copied{background:var(--vc);color:#fff;border-color:var(--vc)}

/* ===== Error badge di thumbnail ===== */
.thumb-error{
  display:inline-flex;
  align-items:center;
  padding:3px 9px;
  border-radius:999px;
  background:#c1392f;
  color:#fff;
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.03em;
  text-transform:uppercase;
}

/* ===== Contoh 3 kotak pudar sebelum ada file (simulasi tampilan) ===== */
.queue-empty-wrap{
  grid-column:1/-1;
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,140px));
  justify-content:start;
  gap:12px;
  padding:24px;
  border:1.5px dashed var(--line);
  border-radius:14px;
}
.queue-grid-item.example{
  pointer-events:none;
  background:var(--white);
}
.skeleton-thumb{
  width:100%;
  aspect-ratio:1;
  background:var(--vc-soft-2);
}
.skeleton-bar{
  height:11px;
  margin:8px;
  border-radius:5px;
  background:var(--line);
}
.toolbar-primary-btn:disabled,
.toolbar-secondary-btn:disabled{
  background:var(--line);
  border-color:var(--line);
  color:var(--muted);
  cursor:default;
}

/* ===== Toggle List/Grid ===== */
.view-toggle{display:flex;justify-content:flex-start;gap:4px;margin-bottom:12px}
.view-toggle-btn{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--white);
  cursor:pointer;
}
.view-toggle-btn.active{background:var(--vc-soft-2);border-color:var(--vc)}
.icon-list-view,.icon-grid-view{width:16px;height:16px}
.icon-list-view{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337514d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cline x1='4' y1='18' x2='20' y2='18'/%3E%3C/svg%3E")}
.icon-grid-view{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337514d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E")}
.view-toggle-btn.active .icon-list-view{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137f77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cline x1='4' y1='18' x2='20' y2='18'/%3E%3C/svg%3E")}
.view-toggle-btn.active .icon-grid-view{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137f77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E")}
.queue-empty-caption{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:14px 0 0;
  font-size:12.5px;
  font-weight:700;
  color:var(--muted);
  text-align:center;
}
@media(max-width:640px){
  .queue-empty-wrap{grid-template-columns:repeat(4,minmax(0,1fr));justify-content:stretch;gap:8px;padding:16px}
  .queue-grid-item.example .queue-grid-name{font-size:9px}
}

/* ===== Mode List (alternatif Grid) ===== */
.queue-grid.list-mode{grid-template-columns:1fr}
.queue-grid.list-mode .queue-grid-item.done .queue-grid-item-main{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  cursor:pointer;
}
.queue-grid.list-mode .queue-grid-thumb{width:40px;height:40px;flex:none;aspect-ratio:auto}
.queue-grid.list-mode .queue-grid-name{padding:0;white-space:normal}
.queue-grid-item.expanded{border-color:var(--vc)}
.queue-grid-item.expanded .queue-grid-item-main{border-bottom:1px solid var(--line)}
.inline-editor{padding:16px}

.queue-grid.list-mode .queue-empty-wrap{
  grid-template-columns:1fr;
  justify-content:stretch;
}
.queue-grid.list-mode .queue-grid-item.example{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
}
.queue-grid.list-mode .skeleton-thumb{width:40px;height:40px;flex:none;aspect-ratio:auto}
.queue-grid.list-mode .skeleton-bar{flex:1;margin:0;height:12px}

/* ===== Workspace: mode List sembunyikan panel kanan, grid full-width ===== */
.workspace.list-active{grid-template-columns:1fr}
.workspace.list-active .detail-panel{display:none}

/* ===== Mode List v2: thumbnail kiri, field kanan, selalu kelihatan ===== */
.list-row{
  display:flex;
  gap:16px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--white);
}
.list-row-left{
  flex:none;
  width:130px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.list-row-thumb{
  position:relative;
  width:100%;
  aspect-ratio:1;
  border-radius:10px;
  background:var(--vc-soft-2);
  display:grid;
  place-items:center;
  font-size:11px;
  font-weight:800;
  color:var(--vc-dark);
  overflow:hidden;
}
.list-row-thumb img{width:100%;height:100%;object-fit:cover}
.list-row-delete{
  position:absolute;
  top:5px;
  right:5px;
  width:24px;
  height:24px;
  border:0;
  border-radius:7px;
  background:rgba(193,57,47,.9);
  color:#fff;
  font-size:12px;
  cursor:pointer;
}
.list-row-name{
  font-size:11.5px;
  font-weight:700;
  color:var(--ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.list-row-meta{font-size:10.5px;color:var(--muted)}
.queue-status-pill{
  display:inline-block;
  padding:4px 9px;
  border-radius:999px;
  font-size:10.5px;
  font-weight:800;
  text-align:center;
}
.queue-status-pill.waiting{background:var(--page);color:var(--muted)}
.queue-status-pill.processing{background:#fff4d6;color:#8a6300}
.queue-status-pill.done{background:var(--vc-soft);color:var(--vc-dark)}
.queue-status-pill.failed{background:#fde3e1;color:#a13327}

.list-row-right{flex:1;min-width:0}
.list-row-right .inline-editor{padding:0}
.inline-placeholder{font-size:12px;color:var(--muted)}

/* ===== Field styling untuk inline-editor (List mode) ===== */
.inline-editor .detail-field-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:6px;
}
.inline-editor label{
  font-size:11px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:var(--muted);
}
.inline-title,
.inline-description,
.inline-keyword-input{
  width:100%;
  padding:10px 12px;
  margin-bottom:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--page);
  color:var(--ink);
  font-size:13px;
  font-family:inherit;
  resize:vertical;
}
.inline-title:focus,
.inline-description:focus,
.inline-keyword-input:focus{outline:2px solid var(--vc);outline-offset:1px}
.inline-title:disabled,
.inline-description:disabled{background:var(--page);color:var(--muted);cursor:not-allowed}
.inline-keywords{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-bottom:8px;
  min-height:20px;
}
.inline-keyword-add{display:flex;gap:6px;margin-bottom:14px}
.inline-keyword-add .inline-keyword-input{flex:1;margin-bottom:0}
.list-row-right .detail-actions{display:flex;justify-content:flex-end;gap:8px}
.list-row-right .detail-actions .sidebar-primary-btn,
.list-row-right .detail-actions .toolbar-secondary-btn{width:auto;padding:9px 18px;font-size:12.5px}

/* ===== Language switcher icon ===== */
.icon-globe{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.8 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.8-3.8-9S9.5 5.6 12 3Z'/%3E%3C/svg%3E")}

/* ===== Tools promo strip (sama kayak EPS Viewer) ===== */
.tools-promo{
  background:var(--vc-soft-2);
  border-bottom:1px solid var(--line);
}
.tools-promo-inner{
  width:min(1120px,calc(100% - 32px));
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.tools-promo-inner::-webkit-scrollbar{display:none}
.tools-promo-label{
  font-size:12px;
  font-weight:800;
  color:var(--muted);
  white-space:nowrap;
  flex:none;
}
.tools-promo-items{
  display:flex;
  align-items:center;
  gap:10px;
  flex:none;
}
.tools-promo-item{
  position:relative;
  display:inline-flex;
  align-items:center;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--white);
  color:var(--ink);
  font-size:12.5px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  flex:none;
}
a.tools-promo-item:hover{border-color:var(--vc);color:var(--vc-dark)}
.tools-promo-item.current{background:var(--vc);border-color:var(--vc);color:#fff}
.tools-promo-item.soon{background:var(--white);color:var(--muted);cursor:default}
@media(max-width:640px){
  .tools-promo-inner{
    flex-direction:column;
    gap:8px;
    padding:10px 0;
  }
  .tools-promo-items{
    flex-wrap:wrap;
    justify-content:center;
    row-gap:8px;
  }
}

/* ===== Avatar mini (simulasi login) ===== */
.account-avatar-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--vc);
  color:#fff;
  font-size:10px;
  font-weight:900;
  vertical-align:middle;
}
.footer-login .account-avatar-mini{background:var(--vc-dark)}

/* ===== Tombol tipis (Top Up Tokens) — beda dari Choose Files yang tebal ===== */
.sidebar-btn-thin{padding:9px 16px;font-size:13px}




/* ===== Balance + Top Up dalam 1 baris ===== */
.balance-topup-row{
  display:flex;
  align-items:stretch;
  gap:10px;
  margin-bottom:14px;
}
.balance-topup-row .token-balance-box{flex:1;margin-bottom:0}
.balance-topup-row .sidebar-btn-thin{
  flex:none;
  width:auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}
.icon-wallet-plus{width:16px;height:16px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2.2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M12 13.5v4M10 15.5h4'/%3E%3C/svg%3E")}

/* ===== Keterangan kecil di bawah tombol Pilih File ===== */
.sidebar-note{
  margin:8px 0 0;
  font-size:11px;
  color:var(--muted);
  line-height:1.5;
  text-align:center;
}

/* ===== Tombol "Login dengan Google" — latar putih, logo Google asli ===== */
.google-login-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  padding:11px 16px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  color:#3c4043;
  font-size:13.5px;
  font-weight:700;
  cursor:pointer;
  margin-bottom:14px;
}
.google-login-btn:hover{box-shadow:0 1px 6px rgba(0,0,0,.15)}
.google-g-icon{
  width:18px;
  height:18px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%234285F4' d='M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844c-.209 1.125-.843 2.078-1.796 2.717v2.258h2.908c1.702-1.567 2.684-3.874 2.684-6.615z'/%3E%3Cpath fill='%2334A853' d='M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332C2.438 15.983 5.482 18 9 18z'/%3E%3Cpath fill='%23FBBC05' d='M3.964 10.71c-.18-.54-.282-1.117-.282-1.71s.102-1.17.282-1.71V4.958H.957C.347 6.173 0 7.548 0 9s.348 2.827.957 4.042l3.007-2.332z'/%3E%3Cpath fill='%23EA4335' d='M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0 5.482 0 2.438 2.017.957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-size:contain;
}
