/* SecureExam - Design System (Navy / Royal Blue) */
:root{
  --navy:#0f2a4a; --navy-2:#173a63; --royal:#2554c7; --royal-2:#1d44a6; --royal-soft:#e8eefc;
  --bg:#f3f5f9; --surface:#fff; --border:#e3e7ef; --text:#1b2434; --muted:#6b7588;
  --green:#16a34a; --green-soft:#e7f6ec; --amber:#d97706; --amber-soft:#fef3e2;
  --red:#dc2626; --red-soft:#fdeaea; --gray-soft:#eef0f4;
  --radius:12px; --radius-sm:8px; --shadow:0 1px 2px rgba(16,24,40,.05),0 1px 3px rgba(16,24,40,.06);
  --font:Inter,"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:var(--font);font-size:14.5px;line-height:1.55;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}
a{color:var(--royal);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{margin:0 0 .5rem;line-height:1.25;color:var(--navy)}
h2{font-size:1.15rem} h3{font-size:1rem}
small,.muted{color:var(--muted)}
.ic{width:18px;height:18px;flex:0 0 18px}
hr{border:0;border-top:1px solid var(--border);margin:1rem 0}
code,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em}

/* ---------- Admin layout */
.admin{display:flex;min-height:100vh}
.sidebar{width:250px;background:var(--navy);color:#c9d4e5;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:40;transition:transform .2s}
.brand{display:flex;gap:.7rem;align-items:center;padding:1.15rem 1.1rem;border-bottom:1px solid rgba(255,255,255,.08)}
.brand img{width:36px;height:36px}
.brand strong{color:#fff;display:block;font-size:1.05rem}
.brand small{color:#91a3bf;font-size:.72rem;display:block;line-height:1.2}
.sidebar nav{padding:.75rem .6rem;flex:1;overflow:auto}
.sidebar nav a{display:flex;align-items:center;gap:.7rem;padding:.6rem .75rem;border-radius:var(--radius-sm);color:#c9d4e5;font-weight:500;margin-bottom:2px}
.sidebar nav a:hover{background:rgba(255,255,255,.06);text-decoration:none;color:#fff}
.sidebar nav a.active{background:var(--royal);color:#fff}
.nav-badge{margin-left:auto;background:var(--red);color:#fff;border-radius:999px;font-size:.7rem;padding:0 .45rem;line-height:1.5}
.sidebar-foot{padding:.9rem 1rem;border-top:1px solid rgba(255,255,255,.08)}
.me{display:flex;gap:.6rem;align-items:center;margin-bottom:.6rem}
.me strong{color:#fff;display:block;font-size:.85rem}
.me small{color:#91a3bf;font-size:.72rem}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--royal);color:#fff;display:grid;place-items:center;font-weight:700}
.logout{display:flex;gap:.5rem;align-items:center;color:#c9d4e5;font-size:.85rem}
.main{margin-left:250px;flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{height:62px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:1rem;padding:0 1.5rem;position:sticky;top:0;z-index:30}
.topbar h1{font-size:1.15rem;margin:0}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:.35rem}
.clock{font-variant-numeric:tabular-nums;font-weight:600;color:var(--navy)}
.content{padding:1.5rem;max-width:1500px;width:100%}
.only-mobile{display:none}
@media (max-width:960px){
  .sidebar{transform:translateX(-100%)} .sidebar.open{transform:none;box-shadow:0 0 40px rgba(0,0,0,.3)}
  .main{margin-left:0} .only-mobile{display:inline-flex} .content{padding:1rem}
}

/* ---------- Components */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.25rem;margin-bottom:1.25rem}
.card-head{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;flex-wrap:wrap}
.card-head h2,.card-head h3{margin:0}
.card-head .spacer{flex:1}
.grid{display:grid;gap:1rem}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:960px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}
.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem;margin-bottom:1.25rem}
.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem 1.1rem;box-shadow:var(--shadow);position:relative;overflow:hidden}
.stat::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--royal)}
.stat.green::before{background:var(--green)} .stat.amber::before{background:var(--amber)} .stat.red::before{background:var(--red)} .stat.gray::before{background:#9aa3b2} .stat.navy::before{background:var(--navy)}
.stat .label{color:var(--muted);font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em}
.stat .value{font-size:1.75rem;font-weight:700;color:var(--navy);font-variant-numeric:tabular-nums}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;padding:.55rem 1rem;border-radius:var(--radius-sm);border:1px solid transparent;background:var(--royal);color:#fff;font:inherit;font-weight:600;cursor:pointer;white-space:nowrap;line-height:1.2;transition:background .15s,box-shadow .15s}
.btn:hover{background:var(--royal-2);text-decoration:none;color:#fff}
.btn:focus-visible,.input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(37,84,199,.3);outline-offset:1px}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn-sm{padding:.35rem .65rem;font-size:.82rem}
.btn-lg{padding:.8rem 1.4rem;font-size:1rem}
.btn-light{background:var(--surface);color:var(--text);border-color:var(--border)}
.btn-light:hover{background:var(--gray-soft);color:var(--text)}
.btn-navy{background:var(--navy)} .btn-navy:hover{background:var(--navy-2)}
.btn-green{background:var(--green)} .btn-green:hover{background:#12813b}
.btn-amber{background:var(--amber)} .btn-amber:hover{background:#b46305}
.btn-red{background:var(--red)} .btn-red:hover{background:#b91c1c}
.btn-ghost{background:transparent;color:var(--royal)} .btn-ghost:hover{background:var(--royal-soft);color:var(--royal)}
.btn-block{width:100%}
.btn-icon{background:none;border:0;padding:.35rem;border-radius:6px;cursor:pointer;color:var(--navy)}
.btn-row{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}

.form-row{margin-bottom:1rem}
label.lbl,.lbl{display:block;font-weight:600;font-size:.85rem;margin-bottom:.35rem;color:var(--navy)}
.input,select,textarea{width:100%;padding:.6rem .75rem;border:1px solid #cfd6e3;border-radius:var(--radius-sm);font:inherit;background:#fff;color:var(--text)}
textarea{min-height:90px;resize:vertical}
.input:focus,select:focus,textarea:focus{border-color:var(--royal);outline:none;box-shadow:0 0 0 3px rgba(37,84,199,.15)}
.help{font-size:.8rem;color:var(--muted);margin-top:.25rem}
.check{display:flex;align-items:center;gap:.5rem;font-weight:500;cursor:pointer}
.check input{width:17px;height:17px;accent-color:var(--royal)}
.inline-form{display:inline}

.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
table.table{width:100%;border-collapse:collapse;font-size:.88rem}
.table th{background:#f7f9fc;text-align:left;font-weight:600;color:var(--muted);font-size:.76rem;text-transform:uppercase;letter-spacing:.03em;padding:.65rem .8rem;border-bottom:1px solid var(--border);white-space:nowrap}
.table td{padding:.6rem .8rem;border-bottom:1px solid var(--border);vertical-align:middle}
.table tr:last-child td{border-bottom:0}
.table tbody tr:hover{background:#fafbfe}
.table .num{text-align:right;font-variant-numeric:tabular-nums}
.table tr.row-high{background:#fff6f6} .table tr.row-warn{background:#fffaf0}

.badge{display:inline-flex;align-items:center;gap:.3rem;padding:.15rem .55rem;border-radius:999px;font-size:.74rem;font-weight:600;white-space:nowrap}
.badge-green{background:var(--green-soft);color:#0f7a35} .badge-amber{background:var(--amber-soft);color:#a35a04}
.badge-red{background:var(--red-soft);color:#b31b1b} .badge-gray{background:var(--gray-soft);color:#55606f}
.badge-blue{background:var(--royal-soft);color:var(--royal-2)} .badge-navy{background:#e3e9f3;color:var(--navy)} .badge-dark{background:#2b3442;color:#fff}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:#9aa3b2}
.dot.online{background:var(--green)} .dot.unstable{background:var(--amber)} .dot.offline{background:#9aa3b2} .dot.reconnected{background:var(--royal)}

.alert{padding:.8rem 1rem;border-radius:var(--radius-sm);margin-bottom:1rem;border:1px solid}
.alert-success{background:var(--green-soft);border-color:#bfe6cc;color:#0f5f2c}
.alert-error,.alert-danger{background:var(--red-soft);border-color:#f5c2c2;color:#8f1717}
.alert-warning{background:var(--amber-soft);border-color:#f8d9a8;color:#7c4503}
.alert-info{background:var(--royal-soft);border-color:#c8d5f6;color:var(--navy)}
.empty{text-align:center;padding:2.5rem 1rem;color:var(--muted)}
.empty .ic{width:40px;height:40px;opacity:.5}
.progress{height:7px;background:var(--gray-soft);border-radius:999px;overflow:hidden;min-width:70px}
.progress>span{display:block;height:100%;background:var(--royal);border-radius:999px;transition:width .3s}
.tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--border);margin-bottom:1rem;flex-wrap:wrap}
.tabs a{padding:.55rem .9rem;color:var(--muted);font-weight:600;border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs a.active{color:var(--royal);border-color:var(--royal)}
.tabs a:hover{text-decoration:none;color:var(--navy)}
.toolbar{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin-bottom:1rem}
.toolbar .input,.toolbar select{width:auto;min-width:160px}
.kv{display:grid;grid-template-columns:160px 1fr;gap:.35rem .75rem;font-size:.9rem}
.kv dt{color:var(--muted)} .kv dd{margin:0;font-weight:500}

/* ---------- Toast & alerts feed */
.toast-stack{position:fixed;right:1rem;bottom:1rem;display:flex;flex-direction:column;gap:.5rem;z-index:100;max-width:360px}
.toast{background:var(--navy);color:#fff;border-radius:var(--radius-sm);padding:.7rem .9rem;box-shadow:0 10px 30px rgba(0,0,0,.2);font-size:.86rem;animation:slidein .25s ease-out;border-left:4px solid var(--royal)}
.toast.high{border-left-color:var(--red)} .toast.medium{border-left-color:var(--amber)} .toast.technical{border-left-color:#9aa3b2}
.toast strong{display:block}
@keyframes slidein{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
.feed{list-style:none;margin:0;padding:0;max-height:560px;overflow:auto}
.feed li{display:flex;gap:.6rem;padding:.55rem .25rem;border-bottom:1px dashed var(--border);font-size:.85rem;align-items:flex-start}
.feed li:last-child{border-bottom:0}
.feed time{font-variant-numeric:tabular-nums;color:var(--muted);font-size:.78rem;min-width:58px;padding-top:2px}
.feed li.fresh{animation:flash 1.5s}
@keyframes flash{from{background:#fff4d6}to{background:transparent}}

/* ---------- Modal */
.modal-back{position:fixed;inset:0;background:rgba(15,42,74,.45);display:none;align-items:center;justify-content:center;z-index:90;padding:1rem}
.modal-back.show{display:flex}
.modal{background:#fff;border-radius:var(--radius);width:100%;max-width:560px;max-height:90vh;overflow:auto;box-shadow:0 25px 60px rgba(0,0,0,.25)}
.modal header{padding:1rem 1.25rem;border-bottom:1px solid var(--border);display:flex;align-items:center}
.modal header h3{margin:0;flex:1}
.modal .body{padding:1.25rem}
.modal footer{padding:1rem 1.25rem;border-top:1px solid var(--border);display:flex;gap:.5rem;justify-content:flex-end}

/* ---------- Auth pages */
.auth-page{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:var(--surface)}
.auth-hero{background:linear-gradient(160deg,var(--navy),#1a3f72 60%,var(--royal));color:#dbe5f5;padding:3rem;display:flex;flex-direction:column;justify-content:space-between}
.auth-hero h1{color:#fff;font-size:2rem;margin-top:2rem}
.auth-hero ul{padding-left:1.1rem;line-height:2}
.auth-form{display:flex;align-items:center;justify-content:center;padding:2rem}
.auth-box{width:100%;max-width:400px}
.auth-box h2{font-size:1.5rem}
.seg{display:grid;grid-template-columns:1fr 1fr;background:var(--gray-soft);padding:4px;border-radius:10px;margin:1.25rem 0}
.seg a{text-align:center;padding:.55rem;border-radius:8px;color:var(--muted);font-weight:600}
.seg a.active{background:#fff;color:var(--navy);box-shadow:var(--shadow)}
.seg a:hover{text-decoration:none}
@media (max-width:860px){.auth-page{grid-template-columns:1fr}.auth-hero{display:none}}

/* ---------- Student portal */
.student-shell{max-width:880px;margin:0 auto;padding:1.5rem}
.student-top{background:var(--navy);color:#fff}
.student-top .inner{max-width:880px;margin:0 auto;padding:.85rem 1.5rem;display:flex;align-items:center;gap:1rem}
.student-top .inner img{width:30px}
.student-top a{color:#cdd8ea}
.checklist{list-style:none;padding:0;margin:0}
.checklist li{display:flex;gap:.6rem;align-items:center;padding:.55rem 0;border-bottom:1px solid var(--border)}
.checklist .st{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:700;background:var(--gray-soft);color:var(--muted)}
.checklist .ok .st{background:var(--green-soft);color:var(--green)}
.checklist .bad .st{background:var(--red-soft);color:var(--red)}
.notice{white-space:pre-line;background:#f7f9fc;border:1px solid var(--border);border-radius:var(--radius-sm);padding:1rem;font-size:.9rem}

/* ---------- Exam room */
body.exam{background:#eef1f6;user-select:none;-webkit-user-select:none}
body.exam textarea{user-select:text;-webkit-user-select:text}
.exam-top{position:sticky;top:0;z-index:20;background:var(--navy);color:#fff;display:flex;align-items:center;gap:1.25rem;padding:.6rem 1.25rem;flex-wrap:wrap}
.exam-top .who strong{display:block;font-size:.95rem}
.exam-top .who small{color:#a9b8cf}
.exam-top .title{font-weight:600;color:#dbe4f3}
.exam-top .right{margin-left:auto;display:flex;align-items:center;gap:1rem}
.timer{font-size:1.4rem;font-weight:700;font-variant-numeric:tabular-nums;background:rgba(255,255,255,.1);padding:.25rem .8rem;border-radius:8px;letter-spacing:.03em}
.timer.low{background:var(--red);animation:pulse 1s infinite}
@keyframes pulse{50%{opacity:.75}}
.pill{display:inline-flex;align-items:center;gap:.4rem;font-size:.78rem;background:rgba(255,255,255,.1);padding:.25rem .6rem;border-radius:999px;white-space:nowrap}
.pill .dot{background:#4ade80} .pill.offline .dot{background:#f87171} .pill.unstable .dot{background:#fbbf24}
.pill.saving .dot{background:#fbbf24} .pill.error .dot{background:#f87171}
.exam-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:1.25rem;max-width:1280px;margin:1.25rem auto;padding:0 1.25rem}
@media (max-width:980px){.exam-body{grid-template-columns:1fr}}
.qcard{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem 1.75rem;box-shadow:var(--shadow);min-height:420px;display:flex;flex-direction:column}
.qhead{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid var(--border)}
.qnum{background:var(--royal);color:#fff;font-weight:700;border-radius:8px;padding:.2rem .7rem}
.qtext{font-size:1.06rem;line-height:1.7;white-space:pre-wrap;margin-bottom:1.25rem;color:#152035}
.qimg{max-width:100%;max-height:360px;border-radius:8px;border:1px solid var(--border);margin-bottom:1rem;pointer-events:none}
.opts{display:flex;flex-direction:column;gap:.6rem}
.opt{display:flex;gap:.85rem;align-items:flex-start;border:1.5px solid var(--border);border-radius:10px;padding:.8rem 1rem;cursor:pointer;transition:border-color .12s,background .12s;background:#fff}
.opt:hover{border-color:#a9bbe8;background:#f8faff}
.opt.selected{border-color:var(--royal);background:var(--royal-soft)}
.opt .letter{width:30px;height:30px;flex:0 0 30px;border-radius:50%;border:1.5px solid #b9c3d4;display:grid;place-items:center;font-weight:700;color:var(--muted)}
.opt.selected .letter{background:var(--royal);border-color:var(--royal);color:#fff}
.opt .otext{padding-top:3px;white-space:pre-wrap}
.essay{min-height:240px;font-size:1rem;line-height:1.6}
.qfoot{margin-top:auto;padding-top:1.25rem;display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.qfoot .spacer{flex:1}
.doubt-toggle.on{background:var(--amber);color:#fff;border-color:var(--amber)}
.side{display:flex;flex-direction:column;gap:1rem}
.side .card{margin:0;padding:1rem}
.navgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:.45rem}
.navgrid button{aspect-ratio:1;border-radius:8px;border:1.5px solid #d4dae5;background:#e9ecf2;font-weight:700;cursor:pointer;color:#4a5568;font-size:.9rem}
.navgrid button.answered{background:var(--green);border-color:var(--green);color:#fff}
.navgrid button.doubt{background:#f59e0b;border-color:#f59e0b;color:#fff}
.navgrid button.current{outline:3px solid var(--royal);outline-offset:1px;border-color:var(--royal)}
.legend{display:grid;grid-template-columns:1fr 1fr;gap:.3rem;font-size:.75rem;color:var(--muted);margin-top:.75rem}
.legend span::before{content:"";display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:.35rem;vertical-align:-1px;background:#e9ecf2;border:1px solid #d4dae5}
.legend .l-ans::before{background:var(--green);border-color:var(--green)} .legend .l-doubt::before{background:#f59e0b;border-color:#f59e0b} .legend .l-cur::before{background:#fff;border:2px solid var(--royal)}
.overlay{position:fixed;inset:0;background:rgba(15,42,74,.92);z-index:80;display:none;align-items:center;justify-content:center;padding:1.5rem;color:#fff;text-align:center}
.overlay.show{display:flex}
.overlay .box{max-width:520px;background:#fff;color:var(--text);border-radius:14px;padding:2rem}
.overlay .box h2{color:var(--navy)}
.watermark{position:fixed;inset:0;pointer-events:none;z-index:15;opacity:.06;background-repeat:repeat}
.warn-banner{background:var(--amber-soft);color:#7c4503;border:1px solid #f8d9a8;padding:.6rem 1rem;border-radius:8px;margin-bottom:1rem;display:none}
.warn-banner.show{display:block}
@media print{
  body.exam *{display:none!important}
  body.exam::after{content:"Konten ujian tidak dapat dicetak.";display:block!important;font-size:20px;padding:40px}
  .no-print{display:none!important}
}
.print-only{display:none}
@media print{.admin .sidebar,.admin .topbar,.no-print{display:none!important}.admin .main{margin:0}.print-only{display:block}}

/* ---------- Token cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.token-card{border:1px dashed #8994a7;border-radius:8px;padding:10px 12px;font-size:12px;break-inside:avoid}
.token-card strong{font-size:13px;display:block}
.token-card .tk{font-family:ui-monospace,Menlo,monospace;font-size:16px;font-weight:700;letter-spacing:2px;color:var(--navy)}

/* ---------- Refinements */
[hidden]{display:none!important}
.stats.compact{grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:.75rem}
.stats.compact .stat{padding:.7rem .9rem}
.stats.compact .value{font-size:1.45rem}
.table-compact{font-size:.84rem}
.table-compact td{padding:.5rem .6rem}
.table-compact th{padding:.55rem .6rem}
.table-compact .who{white-space:nowrap;min-width:180px}
.table-compact .who small{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.table-compact .act{max-width:180px}
@media (max-width:1280px){#monGrid{grid-template-columns:1fr!important}#monGrid>.card:last-child{position:static!important}}

/* ---------- Mobile (HP) */
body.exam.away .exam-body{filter:blur(16px)}            /* soal disamarkan saat layar ujian tidak aktif */
body.exam{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
@media (max-width:700px){
  .student-shell{padding:1rem .75rem}
  .student-top .inner{padding:.7rem .9rem;gap:.6rem}
  .student-top .inner strong{font-size:.92rem}
  .card{padding:1rem}
  .card-head{flex-wrap:wrap;gap:.5rem}
  .stats.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats.compact .value{font-size:1.4rem}
  .btn-lg{width:100%;justify-content:center}
  .kv{grid-template-columns:105px 1fr!important}
  .auth-form{padding:1.25rem}
  .exam-top{gap:.5rem;padding:.5rem .75rem}
  .exam-top .title{display:none}
  .exam-top .who strong{font-size:.85rem;max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .exam-top .right{gap:.4rem}
  .exam-top .pill{font-size:.68rem;padding:.2rem .45rem}
  .exam-top .pill #netText,.exam-top .pill #saveText{max-width:70px;overflow:hidden;text-overflow:ellipsis}
  .timer{font-size:1.15rem;padding:.2rem .55rem}
  .exam-body{margin:.75rem auto;padding:0 .6rem;gap:.75rem}
  .qcard{padding:1rem;min-height:0}
  .qtext{font-size:1rem;line-height:1.6}
  .opt{padding:.75rem .8rem;gap:.65rem}
  .opt .letter{width:28px;height:28px;flex-basis:28px}
  .essay{min-height:200px;font-size:16px}                 /* 16px mencegah zoom otomatis iOS */
  .qfoot{gap:.5rem}
  .qfoot .btn{flex:1 1 30%;justify-content:center;padding:.65rem .5rem;font-size:.88rem}
  .qfoot .spacer{display:none}
  .navgrid{grid-template-columns:repeat(6,1fr);gap:.4rem}
  .overlay{padding:.75rem}
  .overlay .box{padding:1.25rem;width:100%}
  .overlay .box .btn-row{flex-direction:column-reverse}
  .overlay .box .btn-row .btn{width:100%;justify-content:center}
  input.input,select,textarea{font-size:16px}
}
