/* Mantro — Dmantra brand: navy #00263A, red #8B2B1E, blue #4DACCF, orange #D88119 */
:root{
  --navy:#00263A;--red:#8B2B1E;--blue:#4DACCF;--orange:#D88119;
  --bg:#F7F5F1;--card:#FFFFFF;--line:#EFEAE2;--muted:#4A5D68;--field:#C9D2D6;
  --blue-soft:#E6F4F9;--orange-soft:#FBEBD6;--orange-ink:#6B3F0A;--red-soft:#F6E3DF;--grey-soft:#ECEFF1;
  --r:18px;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--navy);font-family:'Alexandria','Segoe UI',Tahoma,sans-serif;font-size:15px;line-height:1.6}
a{color:var(--red)}a:hover{color:var(--navy)}
h1,h2{margin:0;line-height:1.35}
h2{font-size:16px;font-weight:600}
p{margin:0}
small{font-size:.8em}

.mt-app{min-height:100vh;max-width:560px;margin:0 auto;padding-bottom:84px}
.mt-app.mt-wide{max-width:1100px}
.mt-center{display:flex;align-items:center;justify-content:center;padding:24px 16px}

.mt-top{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 4px}
.mt-brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--navy);font-weight:700;font-size:17px}
.mt-out{font-size:13px;color:var(--muted);text-decoration:none;padding:10px 4px}

.mt-main{padding:8px 16px 16px;display:flex;flex-direction:column;gap:14px}
.mt-h1{font-size:22px;font-weight:700}
.mt-muted{color:var(--muted);font-size:13px}
.mt-red{color:var(--red)}
.mt-big{font-size:30px;font-weight:700;margin:6px 0}
.mt-big .mt-muted{font-size:14px;font-weight:400}

.mt-card{background:var(--card);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:12px;text-decoration:none;color:inherit}
.mt-card-accent{border:2px solid var(--orange)}
.mt-hero{background:var(--navy);color:#fff;border-radius:22px;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.mt-hero h1{font-size:20px;font-weight:700}
.mt-hero p{color:#D6EBF3;font-size:13px;margin-top:4px}
.mt-hero .mt-mascot path[fill="#00263A"]{fill:#0B3A52}

.mt-between{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.mt-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mt-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mt-row2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mt-row-inline{display:flex;gap:8px}
.mt-cols{display:flex;flex-direction:column;gap:14px}

.mt-stat{padding:12px;gap:2px}
.mt-stat span{font-size:12px;color:var(--muted)}
.mt-stat strong{font-size:20px;font-weight:700}
.mt-stat strong small{font-size:13px;color:var(--muted);font-weight:500}
.mt-stat-dark{background:var(--navy);color:#fff}
.mt-stat-dark span{color:#B9D9E6}
.mt-tile{gap:4px}

.mt-bar{height:10px;background:var(--blue-soft);border-radius:999px;overflow:hidden}
.mt-bar span{display:block;height:100%;background:var(--blue);border-radius:999px}

.mt-chip{display:inline-block;border-radius:999px;padding:4px 11px;font-size:12px;font-weight:500;white-space:nowrap}
.mt-chip-blue{background:var(--blue-soft);color:var(--navy)}
.mt-chip-orange{background:var(--orange-soft);color:var(--orange-ink)}
.mt-chip-grey{background:var(--grey-soft);color:var(--muted)}
.mt-chip-red{background:var(--red-soft);color:var(--red)}

.mt-li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}
.mt-li:last-child{border-bottom:0}
.mt-li>div{display:flex;flex-direction:column;min-width:0}
.mt-li strong{font-size:14px;font-weight:600}
.mt-li-link:hover{background:#FBFAF7}
.mt-req{border-bottom:1px solid var(--line);padding-bottom:12px;display:flex;flex-direction:column;gap:8px}
.mt-req:last-child{border-bottom:0;padding-bottom:0}
.mt-kv{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.mt-kv-total{border-bottom:0;font-size:16px}
.mt-reply{background:var(--bg);border-radius:10px;padding:8px 10px;font-size:13px}

label{display:flex;flex-direction:column;gap:6px;font-size:12.5px;color:var(--muted)}
input,select,textarea{font-family:inherit;font-size:15px;color:var(--navy);border:1px solid var(--field);border-radius:12px;padding:10px 12px;min-height:46px;background:#fff;width:100%}
textarea{min-height:80px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue)}
fieldset.mt-days{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
fieldset.mt-days legend{font-size:12.5px;color:var(--muted);margin-bottom:6px;width:100%}
fieldset.mt-days label{flex-direction:row;align-items:center;gap:6px;background:var(--bg);border-radius:10px;padding:8px 12px;color:var(--navy);font-size:14px}
fieldset.mt-days input{width:auto;min-height:0}

.mt-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-family:inherit;background:var(--navy);color:#fff;border:0;border-radius:12px;padding:0 18px;min-height:46px;font-size:14px;font-weight:600;cursor:pointer;text-decoration:none;width:100%}
.mt-btn:hover{color:#fff;opacity:.92}
.mt-btn-ghost{background:#fff;color:var(--navy);border:1px solid var(--field)}
.mt-btn-ghost:hover{color:var(--navy)}
.mt-btn-red{background:var(--red)}
.mt-btn-danger{background:#fff;color:var(--red);border:1px solid var(--red);width:auto;min-height:38px;font-size:13px}
.mt-between .mt-btn,.mt-row-inline .mt-btn{width:auto}
.mt-actions .mt-btn{width:auto;min-width:180px}
form{display:flex;flex-direction:column;gap:12px;margin:0}
.mt-row2 form .mt-btn{width:100%}

.mt-faces{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.mt-faces button,.mt-face{background:var(--bg);border:2px solid transparent;border-radius:14px;padding:8px 2px;display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;font-family:inherit;color:var(--navy);min-height:64px}
.mt-faces button span,.mt-face span{font-size:26px;line-height:1}
.mt-faces button small,.mt-face small{font-size:11px;color:var(--muted)}
.mt-faces button.on,.mt-face:has(input:checked){border-color:var(--blue);background:var(--blue-soft)}
.mt-face input{position:absolute;opacity:0;pointer-events:none}
.mt-face{position:relative}
.mt-face-sm{font-size:16px}

.mt-msg{border-inline-start:4px solid var(--blue)}
.mt-msg-urgent{border-inline-start-color:var(--red)}
.mt-msg-head{display:flex;align-items:center;gap:8px}
.mt-ceo{background:var(--red);color:#fff;border-radius:10px;padding:4px 8px;font-size:12px;font-weight:700}
.mt-msg-body{font-size:15px}

.mt-notice{border-radius:12px;padding:10px 12px;font-size:13.5px}
.mt-notice-ok{background:var(--blue-soft)}
.mt-notice-warn{background:var(--orange-soft);color:var(--orange-ink)}

.mt-login{max-width:380px;width:100%;align-items:stretch;text-align:center}
.mt-login .mt-mascot{align-self:center}
.mt-login h1{font-size:21px}
.mt-login label{text-align:right}

.mt-table-card{padding:6px 0}
.mt-table-wrap{overflow-x:auto}
.mt-table{width:100%;border-collapse:collapse;font-size:13.5px}
.mt-table th,.mt-table td{text-align:right;padding:11px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.mt-table th{font-size:12px;font-weight:500;color:var(--muted)}

.mt-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #EAE4DA;display:flex;justify-content:space-around;padding:6px 6px calc(8px + env(safe-area-inset-bottom));z-index:10}
.mt-nav a{flex:1;max-width:120px;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:48px;justify-content:center;text-decoration:none;color:var(--muted);font-size:11px}
.mt-nav a.on{color:var(--navy);font-weight:600}

@media (max-width:380px){
  .mt-grid3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mt-row2{grid-template-columns:1fr}
}
@media (min-width:900px){
  .mt-wide .mt-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .mt-wide .mt-main>*{grid-column:auto}
  .mt-wide .mt-main>.mt-hero,.mt-wide .mt-main>.mt-grid3,.mt-wide .mt-main>.mt-notice,.mt-wide .mt-main>.mt-h1,.mt-wide .mt-main>.mt-between,.mt-wide .mt-main>.mt-table-card,.mt-wide .mt-main>p,.mt-wide .mt-main>form,.mt-wide .mt-main>.mt-cols{grid-column:1/-1}
  .mt-wide form.mt-cols,.mt-wide div.mt-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .mt-wide .mt-cols>.mt-actions{grid-column:1/-1}
}
.mt-steps{margin:0;padding-inline-start:20px;text-align:right;display:flex;flex-direction:column;gap:6px;font-size:14px}
