:root{
  --green:#2f8f2f;
  --green-dark:#256f25;
  --border:#d9d9d9;
  --bg:#f3f3f3;
  --text:#2b2b2b;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: #ffffff;
  color:var(--text);
}
a{color:var(--green); text-decoration:none}
a:hover{text-decoration:underline}

.app{min-height:100vh;background:#ffffff;}
.phone{max-width:420px;margin:0 auto;background:#ffffff;min-height:100vh;}
.header{text-align:center;padding:18px 16px 10px;}
.header img.logo{width:92px;height:auto;max-height:92px;display:block;margin:0 auto 8px;object-fit:contain;}
.header .dept{font-size:14px;letter-spacing:.2px;margin:0;color:#4a4a4a;}
.header .tamil{font-size:16px;margin:4px 0 0;color:var(--green);font-weight:600;line-height:1.25;}
.header .portal{font-size:34px;margin:10px 0 0;color:#333;font-weight:700;}
.header .welcome{margin:0;color:#6b6b6b;font-size:14px;}
.hr{height:1px;background:#e5e5e5;margin:14px 0 0;}
.section{padding:14px 16px 26px;}

.card{
  border:1px solid var(--border);
  background:#fff;
  border-radius:2px;
  padding:18px 16px;
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin:14px 0;
}
.card .icon{width:86px;height:86px;flex:0 0 86px;object-fit:contain;;display:block;}
.card .content h3{margin:0;color:var(--green);font-size:32px;font-weight:700;line-height:1;}
.card .content p{margin:10px 0 8px;color:#606060;line-height:1.35;font-size:14px;}
.card .links{font-size:14px;color:var(--green);margin-top:6px;}

.btn{
  display:block;width:100%;
  border:0;background:var(--green);color:#fff;
  font-weight:700;padding:14px 16px;border-radius:2px;
  font-size:16px;cursor:pointer;
}
.btn:active{transform:translateY(1px)}
.btn.secondary{background:#fff;color:var(--green);border:2px solid var(--green);}

.form{padding:0 16px 26px;}
.field{margin:16px 0;}
label{display:block;font-size:16px;color:#5c5c5c;margin-bottom:8px;}
input, select{
  width:100%;
  padding:14px 12px;
  border:1px solid var(--border);
  border-radius:2px;
  font-size:16px;
  outline:none;
  background:#fff;
}
input:focus, select:focus{
  border-color:var(--green);
  box-shadow:0 0 0 2px rgba(47,143,47,.15);
}
.page-title{padding:12px 16px 0;font-size:18px;color:#444;}
.green-bar{
  margin:10px 16px 0;
  background:var(--green);
  color:#fff;
  padding:12px 14px;
  font-weight:700;
  border-radius:2px;
}

.menu{margin:10px 16px 0;}
.menu details{border-bottom:1px solid #eaeaea;padding:10px 0;}
.menu summary{list-style:none;cursor:pointer;font-size:18px;}
.menu summary::-webkit-details-marker{display:none;}
.menu summary::before{
  content:"▶";
  display:inline-block;
  margin-right:10px;
  color:#333;
  font-size:14px;
  transform:translateY(-1px);
}
.menu details[open] summary::before{content:"▼";}

.muted-note{color:#2b63c6;font-size:14px;font-weight:700;margin-top:6px;}
.login-wrap{padding:30px 18px 40px;}
.login-title{font-size:32px;font-weight:800;color:#222;margin:26px 0 12px;}
.helper{text-align:center;color:#666;margin-top:18px;}
.toast{
  display:none;margin:12px 16px 0;padding:10px 12px;
  background:#ffe8e8;border:1px solid #ffbaba;color:#8a1f1f;border-radius:2px;font-size:14px;
}
.top-row{display:flex;align-items:center;gap:10px;padding:0 16px;}
.hamburger{
  width:42px;height:42px;
  border:1px solid #ddd;border-radius:3px;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;background:#fff;
}
.hamburger span{display:block;width:18px;height:2px;background:#8b8b8b;position:relative;}
.hamburger span::before,.hamburger span::after{
  content:"";position:absolute;left:0;width:18px;height:2px;background:#8b8b8b;
}
.hamburger span::before{top:-6px}
.hamburger span::after{top:6px}

.drawer{
  position:fixed;top:0;left:0;bottom:0;
  width:280px;background:#fff;border-right:1px solid #ddd;
  transform:translateX(-105%);
  transition:transform .2s ease;
  z-index:50;padding:14px 12px;
}
.drawer.open{transform:translateX(0)}
.drawer h4{margin:10px 8px;color:#555;}
.drawer a{display:block;padding:12px 10px;border-radius:6px;color:#222;}
.drawer a:hover{background:#f2f7f2;text-decoration:none;}
.backdrop{position:fixed;inset:0;background:rgba(0,0,0,.22);display:none;z-index:40;}
.backdrop.show{display:block;}
.small{font-size:13px;color:#777;}
