*{margin:0;padding:0;box-sizing:border-box}

:root{
  --primary:#0867d9;
  --primary-dark:#064f9e;
  --primary-light:#4aa3ff;
  --success:#00a86b;
  --success-dark:#007f55;
  --warning:#f59e0b;
  --danger:#ef4444;
  --bg-light:#eaf6ff;
  --bg-white:#ffffff;
  --surface:#f7fbff;
  --surface-blue:#edf7ff;
  --surface-green:#ecfff6;
  --line-blue:#b9ddff;
  --line-green:#a9efd2;
  --focus-ring:rgba(8,103,217,.16);
  --text-dark:#1e293b;
  --text-muted:#64748b;
  --border-color:#e2e8f0;
  --shadow-sm:0 2px 8px rgba(0,0,0,.08);
  --shadow-md:0 10px 30px rgba(0,0,0,.12);
  --shadow-lg:0 20px 60px rgba(0,0,0,.15);
  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:20px;
}

html,body{
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  overflow-x:hidden;
}

body{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Roboto','Helvetica','Arial',sans-serif;
  background:
    linear-gradient(135deg,rgba(8,103,217,.14) 0%,rgba(255,255,255,.96) 42%,rgba(0,168,107,.16) 100%),
    var(--surface);
  color:var(--text-dark);
  display:flex;
  flex-direction:column;
  min-height:100vh;
  padding:24px;
}

a{color:inherit;text-decoration:none}

.container{
  max-width:900px;
  margin:0 auto;
  width:100%;
  flex:1;
  display:flex;
  flex-direction:column;
}

body.kiosk-fullscreen{
  padding:12px;
}

body.kiosk-fullscreen .container{
  max-width:1600px;
  width:100%;
}

body.kiosk-fullscreen .app-header{
  display:none;
}

body.kiosk-fullscreen .screen{
  min-height:calc(100vh - 24px);
}

body.kiosk-fullscreen .screen-content{
  padding:22px;
}

.app-header{
  background:linear-gradient(135deg,#ffffff 0%,#eaf6ff 46%,#e8fff4 100%);
  padding:24px 30px;
  margin-bottom:32px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  color:var(--text-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  text-align:left;
  border:2px solid rgba(8,103,217,.18);
}

.app-logo{
  width:128px;
  height:128px;
  object-fit:contain;
  flex:0 0 auto;
  filter:drop-shadow(0 10px 18px rgba(15,23,42,.16));
}

.app-brand-copy{
  min-width:0;
}

.app-header h1{
  font-size:32px;
  margin-bottom:8px;
  font-weight:800;
  letter-spacing:-.5px;
  color:#0b3670;
}

.subtitle{
  font-size:14px;
  color:#007f55;
  font-weight:700;
  margin:4px 0;
}

.screen{
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  flex:1;
  display:flex;
  flex-direction:column;
}

.screen-title{
  background:linear-gradient(135deg,var(--primary) 0%,#087f5b 100%);
  color:white;
  font-size:18px;
  padding:20px 24px;
  font-weight:800;
  letter-spacing:-.3px;
}

.screen-content{
  padding:24px;
  flex:1;
  overflow-y:auto;
  min-width:0;
}

.rfid-global-message{
  position:fixed;
  top:16px;
  left:50%;
  z-index:10000;
  width:min(420px,calc(100vw - 24px));
  transform:translateX(-50%);
  padding:12px 14px;
  border:2px solid #bfdbfe;
  border-radius:12px;
  background:#eff6ff;
  color:#1d4ed8;
  box-shadow:0 14px 34px rgba(15,23,42,.18);
  font-weight:900;
  text-align:center;
}

.rfid-global-message.error{
  border-color:#fecaca;
  background:#fef2f2;
  color:#b91c1c;
}

.rfid-global-message.success{
  border-color:#bbf7d0;
  background:#ecfdf5;
  color:#047857;
}

.mockup-section{
  background:linear-gradient(180deg,#ffffff 0%,var(--surface) 100%);
  border-radius:var(--radius-md);
  padding:20px;
  margin-bottom:18px;
  border:2px solid var(--border-color);
}

.mockup-section.primary{
  background:linear-gradient(135deg,var(--surface-blue) 0%,#ffffff 55%,var(--surface-green) 100%);
  border-color:var(--line-blue);
}

.mockup-section.success{
  background:linear-gradient(135deg,var(--surface-green) 0%,#ffffff 100%);
  border-color:var(--line-green);
}

.mockup-section.warning{
  background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%);
  border-color:#fbbf24;
}

.mockup-header{
  font-size:11px;
  font-weight:900;
  color:var(--text-muted);
  text-transform:uppercase;
  letter-spacing:1.2px;
  margin-bottom:10px;
}

.mockup-robot{
  width:200px;
  height:200px;
  background:linear-gradient(135deg,#dbeafe 0%,var(--line-blue) 100%);
  border-radius:50%;
  margin:0 auto 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 30px rgba(8,103,217,.25);
}

.robot-eyes{display:flex;gap:30px}
.robot-eye{width:35px;height:35px;background:var(--primary);border-radius:50%;box-shadow:0 0 15px rgba(8,103,217,.6)}

.robot-stage{
  position:relative;
  width:260px;
  height:250px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}

.robot-shadow{
  position:absolute;
  bottom:12px;
  width:170px;
  height:26px;
  border-radius:50%;
  background:radial-gradient(circle,#94a3b8 0%,rgba(148,163,184,.15) 70%,rgba(148,163,184,0) 100%);
  filter:blur(2px);
  animation:robotShadow 4s ease-in-out infinite;
}

.robot-head{
  position:relative;
  width:220px;
  height:205px;
  border-radius:44% 44% 40% 40%;
  background:linear-gradient(160deg,#d7e8ff 0%,#c1dafd 50%,#a8caf8 100%);
  border:4px solid #7da8df;
  box-shadow:inset 0 10px 20px rgba(255,255,255,.55),0 22px 28px rgba(59,130,246,.2);
  transform-origin:center bottom;
  animation:robotFloat 4s ease-in-out infinite;
}

.robot-head::before{
  content:"";
  position:absolute;
  left:50%;
  top:44px;
  width:150px;
  height:114px;
  border-radius:44% 44% 42% 42%;
  transform:translateX(-50%);
  background:radial-gradient(circle at 50% 0%,rgba(255,255,255,.58) 0%,rgba(255,255,255,.22) 45%,rgba(255,255,255,0) 100%);
  pointer-events:none;
}

.robot-head::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:18px;
  width:84px;
  height:14px;
  transform:translateX(-50%);
  border-radius:999px;
  background:linear-gradient(180deg,rgba(54,93,141,.18) 0%,rgba(54,93,141,0) 100%);
}

.robot-panel{
  position:absolute;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  width:112px;
  height:18px;
  border-radius:20px;
  background:linear-gradient(90deg,#5f7da8 0%,#7a97c0 100%);
  opacity:.8;
}

.robot-antenna{
  position:absolute;
  top:-34px;
  left:50%;
  width:8px;
  height:34px;
  border-radius:999px;
  transform:translateX(-50%);
  background:#7698c8;
}

.robot-antenna::before{
  content:"";
  position:absolute;
  top:-10px;
  left:50%;
  transform:translateX(-50%);
  width:22px;
  height:22px;
  border-radius:50%;
  background:#8fb6ef;
  box-shadow:0 0 0 6px rgba(143,182,239,.25),0 0 16px rgba(96,165,250,.55);
  animation:antennaPulse 2.4s ease-in-out infinite;
}

.robot-eye-row{
  position:absolute;
  top:72px;
  left:50%;
  transform:translateX(-50%);
  width:150px;
  display:flex;
  justify-content:space-between;
}

.robot-eye-row::before,
.robot-eye-row::after{
  content:"";
  position:absolute;
  top:-14px;
  width:40px;
  height:8px;
  border-radius:999px;
  background:#5c7da8;
  box-shadow:0 1px 0 rgba(255,255,255,.35);
  opacity:.7;
}

.robot-eye-row::before{
  left:4px;
  transform:rotate(-8deg);
}

.robot-eye-row::after{
  right:4px;
  transform:rotate(8deg);
}

.robot-eye{
  width:48px;
  height:48px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%,var(--surface-blue) 0%,#c7ddff 46%,#7ea8e2 100%);
  border:3px solid #6f95ca;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:inset 0 5px 8px rgba(255,255,255,.35),0 0 14px rgba(59,130,246,.35);
  overflow:hidden;
}

.robot-eye::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(193,218,253,.95) 0%,rgba(193,218,253,.8) 45%,rgba(193,218,253,0) 70%);
  transform:translateY(-105%);
  animation:eyeBlink 5.5s ease-in-out infinite;
  z-index:2;
}

.robot-pupil{
  width:20px;
  height:20px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#2f6faf 0%,#1f5692 58%,#153e6f 100%);
  box-shadow:inset -3px -3px 0 rgba(0,0,0,.2),0 0 10px rgba(59,130,246,.45);
  animation:lookAround 5s ease-in-out infinite;
}

.robot-eye::after{
  content:"";
  position:absolute;
  width:13px;
  height:13px;
  border-radius:50%;
  background:rgba(255,255,255,.85);
  margin:-12px 0 0 9px;
}

.robot-mouth-wrap{
  position:absolute;
  top:138px;
  left:50%;
  transform:translateX(-50%);
  width:118px;
  height:34px;
  border-radius:18px;
  background:#54749f;
  border:3px solid #46658f;
  overflow:hidden;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.25);
}

.robot-mouth-wrap::before{
  content:"";
  position:absolute;
  left:50%;
  top:3px;
  width:74px;
  height:8px;
  transform:translateX(-50%);
  border-radius:999px;
  background:rgba(255,255,255,.22);
}

.robot-mouth{
  width:100%;
  height:100%;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:6px;
  padding:6px 8px;
}

.robot-mouth span{
  display:block;
  width:11px;
  border-radius:8px;
  background:linear-gradient(180deg,#bef264 0%,#84cc16 100%);
  animation:mouthBars 1.1s ease-in-out infinite;
}

.robot-mouth span:nth-child(1){height:8px;animation-delay:-.2s}
.robot-mouth span:nth-child(2){height:16px;animation-delay:.1s}
.robot-mouth span:nth-child(3){height:22px;animation-delay:.35s}
.robot-mouth span:nth-child(4){height:14px;animation-delay:.05s}
.robot-mouth span:nth-child(5){height:9px;animation-delay:-.1s}

.robot-cheek{
  position:absolute;
  top:126px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:rgba(248,113,113,.3);
}

.robot-cheek.left{left:22px}
.robot-cheek.right{right:22px}

.robot-stage.sleep .robot-head{
  animation-duration:5.2s;
}

.robot-stage.sleep .robot-pupil{
  animation:slowBlink 4.8s ease-in-out infinite;
}

.robot-stage.sleep .robot-mouth span{
  animation-duration:1.8s;
  opacity:.7;
}

.robot-stage.talking .robot-head{
  animation:robotTalk .9s ease-in-out infinite;
}

.robot-stage.talking .robot-mouth-wrap{
  transform:translateX(-50%) scaleY(1.12);
}

.robot-stage.talking .robot-mouth span{
  animation-duration:.28s;
  filter:drop-shadow(0 0 6px rgba(132,204,22,.65));
}

.robot-stage.talking .robot-pupil{
  animation:talkFocus 1.2s ease-in-out infinite;
}

.robot-stage.talking .robot-cheek{
  background:rgba(248,113,113,.45);
}

.robot-stage.talking .robot-eye-row::before,
.robot-stage.talking .robot-eye-row::after{
  animation:browTalk .48s ease-in-out infinite;
}

.robot-stage.talking .robot-antenna::before{
  animation-duration:.8s;
}

@keyframes robotFloat{
  0%,100%{transform:translateY(0) rotate(0deg)}
  25%{transform:translateY(-6px) rotate(-1.1deg)}
  50%{transform:translateY(-10px) rotate(0deg)}
  75%{transform:translateY(-6px) rotate(1.1deg)}
}

@keyframes robotShadow{
  0%,100%{transform:scale(1);opacity:.5}
  50%{transform:scale(.87);opacity:.28}
}

@keyframes antennaPulse{
  0%,100%{box-shadow:0 0 0 6px rgba(143,182,239,.25),0 0 16px rgba(96,165,250,.55)}
  50%{box-shadow:0 0 0 10px rgba(143,182,239,.14),0 0 24px rgba(96,165,250,.68)}
}

@keyframes lookAround{
  0%,100%{transform:translate(0,0)}
  20%{transform:translate(-3px,1px)}
  40%{transform:translate(3px,-1px)}
  60%{transform:translate(-2px,0)}
  80%{transform:translate(2px,1px)}
}

@keyframes slowBlink{
  0%,88%,100%{transform:scaleY(1)}
  90%,94%{transform:scaleY(.15)}
}

@keyframes eyeBlink{
  0%,92%,100%{transform:translateY(-105%)}
  94%,96%{transform:translateY(-4%)}
}

@keyframes mouthBars{
  0%,100%{transform:scaleY(.55)}
  50%{transform:scaleY(1)}
}

@keyframes robotTalk{
  0%,100%{transform:translateY(0) rotate(0deg)}
  25%{transform:translateY(-2px) rotate(-.55deg)}
  50%{transform:translateY(-4px) rotate(0deg)}
  75%{transform:translateY(-2px) rotate(.55deg)}
}

@keyframes browTalk{
  0%,100%{transform:translateY(0) rotate(0deg)}
  50%{transform:translateY(-1px) rotate(-4deg)}
}

.robot-eye-row::after{
  animation:browIdle 4s ease-in-out infinite;
}

.robot-eye-row::before{
  animation:browIdle 4s ease-in-out infinite reverse;
}

@keyframes browIdle{
  0%,100%{opacity:.68}
  50%{opacity:.9}
}

@keyframes talkFocus{
  0%,100%{transform:translate(0,0) scale(1)}
  50%{transform:translate(0,1px) scale(1.06)}
}

.status-badge{
  display:inline-block;
  padding:8px 18px;
  border-radius:20px;
  font-size:12px;
  font-weight:700;
  margin:4px 4px;
}

.status-badge.online{background:var(--success);color:#fff}
.status-badge.live{background:var(--danger);color:#fff}
.status-badge.info{background:var(--primary);color:#fff}
.status-badge.warning{background:var(--warning);color:#fff}
.status-badge.success{background:var(--success);color:#fff}

.mockup-button{
  background:linear-gradient(135deg,var(--primary) 0%,#087f5b 100%);
  color:white;
  padding:12px 24px;
  border-radius:var(--radius-sm);
  font-size:14px;
  font-weight:700;
  display:inline-block;
  margin:6px 4px;
  box-shadow:0 4px 12px rgba(8,103,217,.3);
  transition:all .2s ease;
  cursor:pointer;
  border:none;
}

.mockup-button:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(8,103,217,.4);
}

.mockup-button.secondary{
  background:#fff;
  color:var(--primary);
  border:2px solid var(--primary);
  box-shadow:0 2px 8px rgba(8,103,217,.1);
}

.mockup-button.secondary:hover{
  background:var(--surface-blue);
  border-color:var(--primary-dark);
}

.mockup-button.danger{
  background:linear-gradient(135deg,var(--danger) 0%,#dc2626 100%);
  box-shadow:0 4px 12px rgba(239,68,68,.3);
}

.mockup-button.success{
  background:linear-gradient(135deg,var(--success) 0%,var(--success-dark) 100%);
  box-shadow:0 4px 12px rgba(0,168,107,.3);
}

.mockup-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:16px 0}
.mockup-grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:16px 0}

.home-shell{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(240px,.9fr);
  gap:26px;
  align-items:center;
  background:linear-gradient(135deg,var(--surface-blue) 0%,#ffffff 100%);
  border:2px solid var(--line-blue);
  border-radius:var(--radius-md);
  padding:28px;
  margin-bottom:20px;
}

.home-copy h2{
  font-size:34px;
  line-height:1.12;
  color:var(--text-dark);
  margin:8px 0 12px;
}

.home-copy p{
  color:var(--text-muted);
  font-size:16px;
  line-height:1.6;
  max-width:520px;
}

.home-robot{
  display:flex;
  justify-content:center;
}

.interaction-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.interaction-option{
  display:flex;
  min-height:245px;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
  padding:24px;
  border-radius:var(--radius-md);
  border:2px solid var(--border-color);
  background:#fff;
  box-shadow:var(--shadow-sm);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.interaction-option:hover,
.interaction-option:focus{
  transform:translateY(-4px);
  border-color:var(--primary-light);
  box-shadow:0 14px 28px rgba(8,103,217,.16);
  outline:none;
}

.interaction-option.voice{
  border-color:#93c5fd;
}

.interaction-option.touch{
  border-color:var(--line-green);
}

.interaction-option.logs{
  border-color:#c4b5fd;
}

.interaction-option.recent{
  border-color:#bfdbfe;
  background:linear-gradient(180deg,#ffffff 0%,#eff6ff 100%);
}

.interaction-mark{
  width:max-content;
  min-width:72px;
  padding:8px 12px;
  border-radius:999px;
  background:#e0f2fe;
  color:#075985;
  font-size:12px;
  font-weight:900;
  text-align:center;
  letter-spacing:.8px;
}

.interaction-option.touch .interaction-mark{
  background:var(--surface-green);
  color:#065f46;
}

.interaction-option.logs .interaction-mark{
  background:#f3e8ff;
  color:#6b21a8;
}

.interaction-option.recent .interaction-mark{
  background:#dbeafe;
  color:#1d4ed8;
}

.interaction-title{
  display:block;
  color:var(--text-dark);
  font-size:24px;
  font-weight:900;
  line-height:1.2;
}

.interaction-text{
  display:block;
  color:var(--text-muted);
  font-size:15px;
  line-height:1.55;
}

.interaction-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  margin-top:10px;
  padding:12px 16px;
  border-radius:var(--radius-sm);
  background:linear-gradient(135deg,var(--primary) 0%,#087f5b 100%);
  color:#fff;
  font-size:15px;
  font-weight:800;
  box-shadow:0 4px 12px rgba(8,103,217,.24);
}

.interaction-option.touch .interaction-action{
  background:linear-gradient(135deg,var(--success) 0%,var(--success-dark) 100%);
  box-shadow:0 4px 12px rgba(0,168,107,.22);
}

.interaction-option.logs .interaction-action{
  background:linear-gradient(135deg,#7c3aed 0%,#0f766e 100%);
  box-shadow:0 4px 12px rgba(124,58,237,.22);
}

.interaction-option.recent .interaction-action{
  background:linear-gradient(135deg,#2563eb 0%,#059669 100%);
}

.mockup-card{
  background:#fff;
  border-radius:var(--radius-md);
  padding:20px;
  text-align:center;
  box-shadow:var(--shadow-sm);
  border:2px solid var(--border-color);
  transition:all .3s ease;
}

.mockup-card:hover{
  border-color:var(--primary-light);
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(8,103,217,.18);
}

.icon-circle{
  width:60px;
  height:60px;
  border-radius:50%;
  background:linear-gradient(135deg,#dbeafe 0%,var(--line-blue) 100%);
  margin:0 auto 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
}

.mockup-text{font-size:14px;color:var(--text-muted);margin:8px 0;line-height:1.6}
.mockup-title{font-size:18px;font-weight:800;color:var(--text-dark);margin:10px 0}

.progress-bar{
  background:var(--border-color);
  height:12px;
  border-radius:20px;
  overflow:hidden;
  margin:12px 0;
}

.progress-fill{
  background:linear-gradient(90deg,var(--primary) 0%,var(--primary-light) 100%);
  height:100%;
  border-radius:20px;
  box-shadow:0 0 12px rgba(8,103,217,.4);
  transition:width .3s ease;
}

.progress-fill.high{
  background:linear-gradient(90deg,var(--success) 0%,var(--line-green) 100%);
  box-shadow:0 0 12px rgba(0,168,107,.4);
}

.chat-bubble{
  background:#fff;
  border-radius:var(--radius-md);
  padding:16px;
  margin:12px 0;
  box-shadow:var(--shadow-sm);
  border-left:4px solid var(--primary);
}

.chat-bubble.user{
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%);
  color:#fff;
  border-left:none;
  border-right:4px solid var(--primary-dark);
}

.table-mockup{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:16px 0;
  border-radius:var(--radius-md);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}

.table-mockup thead{
  background:linear-gradient(135deg,var(--primary) 0%,#087f5b 100%);
  color:#fff;
}

.table-mockup th,
.table-mockup td{
  padding:14px;
  text-align:left;
  border-bottom:1px solid var(--border-color);
}

.table-mockup tbody tr{
  background:white;
  transition:background .2s;
}

.table-mockup tbody tr:hover{
  background:linear-gradient(180deg,#ffffff 0%,var(--surface) 100%);
}

.photo-frame{
  width:180px;
  height:180px;
  background:linear-gradient(135deg,#dbeafe 0%,var(--line-blue) 100%);
  border-radius:var(--radius-md);
  border:4px solid var(--primary);
  margin:0 auto 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:64px;
  box-shadow:0 10px 30px rgba(8,103,217,.25);
  overflow:hidden;
}

.photo-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:14px 0}
.info-item{
  background:linear-gradient(180deg,#ffffff 0%,var(--surface) 100%);
  padding:12px;
  border-radius:8px;
  border-left:3px solid var(--primary);
  transition:all .2s;
}

.info-item:hover{
  background:var(--surface-blue);
  border-left-color:var(--primary-light);
}

.info-label{
  font-size:11px;
  color:var(--text-muted);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.6px;
}

.info-value{
  font-size:16px;
  color:var(--text-dark);
  font-weight:800;
  margin-top:4px;
}

.accuracy-display{
  text-align:center;
  padding:28px;
  background:linear-gradient(135deg,#dbeafe 0%,var(--line-blue) 100%);
  border-radius:var(--radius-md);
  margin:18px 0;
  border:2px solid var(--line-blue);
}

.accuracy-number{
  font-size:72px;
  font-weight:900;
  color:var(--primary);
  line-height:1;
  margin:0;
}

.pill-icon{font-size:36px;margin-bottom:10px}

.input-mockup{
  background:#fff;
  border:2px solid var(--border-color);
  border-radius:var(--radius-sm);
  padding:12px 16px;
  font-size:14px;
  margin:10px 0;
  transition:border-color .2s,box-shadow .2s;
  width:100%;
  color:var(--text-dark);
}

.input-mockup:focus{
  border-color:var(--primary);
  outline:none;
  box-shadow:0 0 0 3px var(--focus-ring);
}

.video-container{
  background:#000;
  border-radius:var(--radius-md);
  height:320px;
  position:relative;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
}

.video-overlay{
  position:absolute;
  bottom:16px;
  left:16px;
  right:16px;
  background:rgba(0,0,0,.8);
  backdrop-filter:blur(10px);
  border-radius:var(--radius-md);
  padding:14px;
  color:#fff;
}

.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.between{justify-content:space-between}
.center{text-align:center}
.spacer{height:10px}

label{
  display:block;
  font-size:13px;
  color:var(--text-muted);
  font-weight:800;
  margin-bottom:6px;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

input,textarea{
  background:#fff;
  border:2px solid var(--border-color);
  border-radius:var(--radius-sm);
  padding:12px 16px;
  font-size:14px;
  transition:border-color .2s,box-shadow .2s;
  color:var(--text-dark);
  font-family:inherit;
}

input::placeholder,textarea::placeholder{
  color:var(--text-muted);
}

input:focus,textarea:focus{
  border-color:var(--primary);
  outline:none;
  box-shadow:0 0 0 3px var(--focus-ring);
}

.error{
  background:#fee2e2;
  border:2px solid #fecaca;
  padding:12px;
  border-radius:var(--radius-sm);
  color:#991b1b;
  font-weight:600;
  margin:12px 0;
}

.statusBox{
  padding:16px;
  border-radius:var(--radius-md);
  border:2px solid var(--border-color);
  background:#fff;
  min-width:280px;
  font-weight:700;
  color:var(--primary);
}

.touch-form .touch-input{
  width:100%;
  max-width:100%;
  cursor:pointer;
  min-height:54px;
  font-size:18px;
  font-weight:800;
  scroll-margin-bottom:390px;
}

.touch-form .touch-input.active{
  border-color:var(--primary);
  box-shadow:0 0 0 4px var(--focus-ring);
}

.touch-step{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.touch-step[hidden]{
  display:none;
}

.touch-step-title{
  font-size:20px;
  font-weight:900;
  color:var(--text-dark);
}

.id-first-panel{
  background:linear-gradient(180deg,#ffffff 0%,var(--surface) 100%);
  border:2px solid var(--border-color);
  border-radius:var(--radius-md);
  padding:16px;
}

.touch-form .id-input{
  font-size:24px;
  letter-spacing:1px;
  color:var(--primary-dark);
}

.touch-status{
  margin-top:10px;
  padding:10px 12px;
  border-radius:var(--radius-sm);
  background:#fff;
  border:1px solid var(--border-color);
  color:var(--text-muted);
  font-size:13px;
  font-weight:800;
}

.touch-status.checking{color:var(--primary);border-color:var(--line-blue);background:var(--surface-blue)}
.touch-status.found{color:#047857;border-color:var(--line-green);background:var(--surface-green)}
.touch-status.new{color:#92400e;border-color:#fde68a;background:#fffbeb}
.touch-status.error{color:#991b1b;border-color:#fecaca;background:#fee2e2}

.choice-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}

.choice-grid.compact{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.choice-grid button,
.touch-stepper button,
.keyboard-keys button,
.keyboard-actions button{
  min-height:50px;
  border:2px solid var(--border-color);
  border-radius:var(--radius-sm);
  background:#fff;
  color:var(--text-dark);
  font:inherit;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease,transform .2s ease;
}

.choice-grid button:hover,
.touch-stepper button:hover,
.keyboard-keys button:hover,
.keyboard-actions button:hover{
  border-color:var(--primary-light);
  background:var(--surface-blue);
  transform:translateY(-1px);
}

.choice-grid button.selected{
  border-color:var(--primary);
  background:linear-gradient(135deg,var(--primary) 0%,#087f5b 100%);
  color:#fff;
}

.touch-stepper{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-top:10px;
}

.touch-stepper button,
.birthday-controls button{
  font-size:26px;
}

.birthday-controls{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}

.birthday-controls button{
  min-height:50px;
  border:2px solid var(--border-color);
  border-radius:var(--radius-sm);
  background:#fff;
  color:var(--text-dark);
  font:inherit;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
}

.touch-keyboard{
  background:linear-gradient(180deg,#ffffff 0%,var(--surface) 100%);
  border:2px solid var(--border-color);
  border-radius:18px 18px 0 0;
  padding:14px;
  position:fixed;
  left:50%;
  right:auto;
  bottom:0;
  width:min(920px,calc(100vw - 20px));
  max-height:42vh;
  overflow:auto;
  transform:translate(-50%,110%);
  opacity:0;
  pointer-events:none;
  z-index:1000;
  box-shadow:0 -16px 34px rgba(15,23,42,.22);
  transition:transform .22s ease,opacity .18s ease;
}

.touch-keyboard-open .touch-keyboard{
  transform:translate(-50%,0);
  opacity:1;
  pointer-events:auto;
}

.touch-keyboard-open{
  padding-bottom:330px;
}

.keyboard-target{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:12px;
  border-radius:var(--radius-sm);
  background:#fff;
  color:var(--primary);
  font-weight:900;
}

.keyboard-keys{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.keyboard-row{
  display:flex;
  justify-content:center;
  gap:7px;
}

.keyboard-row button{
  flex:1 1 0;
  max-width:82px;
}

.keyboard-actions{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
  margin-top:8px;
}

.touch-submit{
  min-height:58px;
  font-size:18px;
}

.recent-search-grid{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(180px,1fr) auto;
  gap:12px;
  align-items:end;
}

.recent-search-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

.recent-list{
  display:grid;
  gap:12px;
}

.recent-consult-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:14px;
  border:2px solid var(--border-color);
  border-radius:var(--radius-sm);
  background:#fff;
}

.recent-consult-name{
  color:var(--text-dark);
  font-size:18px;
  font-weight:900;
}

.touch-nav{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:10px;
  align-items:center;
}

.touch-nav .touch-submit{
  width:100%;
}

.touch-choice-step[hidden]{
  display:none;
}

.touch-symptom-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}

.touch-followup-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}

.touch-symptom-card,
.touch-followup-card,
.touch-duration-card{
  min-height:112px;
  border:2px solid var(--border-color);
  border-radius:var(--radius-md);
  background:#fff;
  color:var(--text-dark);
  font:inherit;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.touch-symptom-card{
  padding:14px;
  line-height:1.18;
  white-space:normal;
  overflow-wrap:anywhere;
}

.touch-symptom-card:hover,
.touch-followup-card:hover,
.touch-duration-card:hover{
  transform:translateY(-2px);
  border-color:var(--primary);
  background:var(--surface-blue);
  box-shadow:0 10px 24px rgba(8,103,217,.16);
}

.touch-duration-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}

.touch-duration-card{
  min-height:150px;
  background:linear-gradient(135deg,var(--primary) 0%,#087f5b 100%);
  color:#fff;
  border-color:transparent;
}

.touch-duration-card span,
.touch-duration-card small{
  display:block;
}

.touch-duration-card span{
  font-size:32px;
  line-height:1;
}

.touch-duration-card small{
  margin-top:8px;
  font-size:15px;
  font-weight:800;
  opacity:.9;
}

@media (max-width:768px){
  body{padding:16px}
  .home-shell{grid-template-columns:1fr;padding:22px}
  .home-copy h2{font-size:28px}
  .interaction-grid{grid-template-columns:1fr}
  .interaction-option{min-height:210px}
  .choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .keyboard-row{gap:5px}
  .keyboard-row button{min-width:0;max-width:none;padding-left:6px;padding-right:6px}
  .keyboard-actions{grid-template-columns:repeat(5,minmax(0,1fr))}
  .touch-keyboard{max-height:48vh}
  .touch-keyboard-open{padding-bottom:300px}
  .recent-search-grid,
  .recent-consult-card{grid-template-columns:1fr}
  .recent-search-actions{flex-direction:column;align-items:stretch}
  .recent-search-actions .mockup-button,
  .recent-consult-card .mockup-button{width:100%}
  .touch-symptom-grid,
  .touch-followup-grid,
  .touch-duration-grid{grid-template-columns:1fr}
  .app-header{padding:20px;gap:14px;text-align:center;flex-direction:column}
  .app-logo{width:104px;height:104px}
  .app-header h1{font-size:24px}
  .mockup-grid-3{grid-template-columns:1fr}
  .mockup-grid-2{grid-template-columns:1fr}
  .screen-content{padding:16px}
  .robot-stage{width:220px;height:220px}
  .robot-head{width:190px;height:180px}
  .robot-eye-row{top:64px;width:132px}
  .robot-eye{width:42px;height:42px}
  .robot-mouth-wrap{top:122px;width:108px}
  .robot-eye-row::before,
  .robot-eye-row::after{width:34px;top:-12px}
}

@media (prefers-reduced-motion: reduce){
  .robot-head,
  .robot-shadow,
  .robot-antenna::before,
  .robot-pupil,
  .robot-mouth span{
    animation:none !important;
  }
}
