:root{
      /* ==== PALET WARNA ==== */
      --primary: #A8BBA3;
      --paper:   #F7F4EA;
      --muted:   #EBD9D1;
      --accent:  #B87C4C;
      --pink:    #F0CAD6;

      /* ==== WARNA TEKS & UI ==== */
      --bg: var(--paper);
      --text: #1f2937;
      --text-muted: #6b7280;
      --border: rgba(0,0,0,0.08);
      --card: #ffffff;
      --shadow: none; /* Flat design */

      /* ==== SIDEBAR ==== */
      --sidebar-bg: #ffffff;
      --sidebar-backdrop: transparent;
      --sidebar-width: 280px;
      --sidebar-width-mini: 80px;

      /* ==== NAV ==== */
      --nav-active-bg: var(--primary);
      --nav-active-text: #0f172a;
      --nav-hover-bg: #f4f7f2;

      /* ==== KOMPONEN ==== */
      --btn-bg: var(--primary);
      --btn-text: #0b1324;
      --btn-hover: #92aa8f;
      
      --radius-xl: 0px; 
    }

    /* ==== RESET ==== */
    *{ box-sizing: border-box; }
    html, body{ height:100%; margin:0; padding:0; overflow: hidden; }
    body{
      background:var(--bg); color:var(--text);
      font-family: Poppins, Roboto, system-ui, -apple-system, sans-serif;
    }
    a{ color:inherit; text-decoration:none; }

/* ==== ACCESS CODE GATE ==== */
html.twb-access-locked body .app,
body.twb-access-locked .app{
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.twb-access-overlay{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
}

.twb-access-card{
  width: min(430px, 100%);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

.twb-access-icon{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #e58b21);
}

.twb-access-icon.danger{
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.twb-access-icon .material-icons{
  font-size: 28px;
}

.twb-access-card h2{
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.twb-access-subtitle,
.twb-access-note,
.twb-access-warning,
.twb-access-status,
.twb-access-error{
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.twb-access-subtitle{
  color: #64748b;
  margin-bottom: 20px;
}

.twb-access-card form{
  display: grid;
  gap: 10px;
}

.twb-access-card label{
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.twb-access-card input{
  width: 100%;
  height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
}

.twb-access-card input:focus{
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
  background: #ffffff;
}

.twb-password-field{
  position: relative;
  width: 100%;
}

.twb-password-field input{
  padding-right: 50px;
}

.twb-password-toggle{
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.twb-password-toggle:hover{
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.twb-password-toggle:focus-visible{
  outline: 3px solid rgba(245, 158, 11, 0.22);
  outline-offset: 1px;
}

.twb-password-toggle:disabled{
  opacity: .58;
  cursor: wait;
}

.twb-password-toggle .material-icons{
  font-size: 20px;
}

.twb-access-primary{
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #e58b21);
}

.twb-access-primary:disabled,
.twb-access-card input:disabled{
  opacity: 0.72;
  cursor: wait;
}

.twb-access-error{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #991b1b;
  background: #fee2e2;
}

.twb-access-warning{
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #92400e;
  background: #fef3c7;
}

.twb-access-status{
  margin-top: 12px;
  color: #64748b;
}

.twb-access-note{
  margin-top: 18px;
  color: #94a3b8;
}
