*{box-sizing:border-box}
:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#18212b;background:#f4f6f8}
html{min-height:100%;background:#f4f6f8}
body{margin:0;min-height:100%;background:linear-gradient(180deg,#eef2f7 0,#f8fafc 45%,#eef2f7 100%);-webkit-text-size-adjust:100%}
button,input,select,textarea{font:inherit}
button{touch-action:manipulation}
.app-shell{width:min(100%,960px);margin:auto;padding:env(safe-area-inset-top) 18px calc(24px + env(safe-area-inset-bottom))}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 0 18px}
.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:44px;height:44px;border-radius:13px;background:#111827;color:#fff;display:grid;place-items:center;font-size:24px;font-weight:900}
.brand h1{font-size:24px;margin:0;letter-spacing:-.5px}.brand span{font-size:12px;color:#667085}
.user-badge{font-size:12px;font-weight:700;color:#475467;background:#fff;border:1px solid #e4e7ec;padding:9px 12px;border-radius:999px;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
main{padding-bottom:20px}.card{background:rgba(255,255,255,.96);padding:24px;border-radius:20px;border:1px solid #e7eaf0;box-shadow:0 8px 30px #1018280d;margin:16px 0}
.auth-card{max-width:520px;margin:36px auto}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.2px;color:#667085;margin-bottom:8px}
h2{font-size:30px;letter-spacing:-.7px;margin:0 0 8px}h3{font-size:19px;margin:0 0 7px}.muted{color:#667085;font-size:14px;line-height:1.5;margin:0 0 18px}
form{display:grid;gap:13px}label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#344054}
input,select,textarea{width:100%;padding:14px;border-radius:12px;border:1px solid #d0d5dd;background:#fff;color:#101828;outline:none;min-height:48px}
input:focus,select:focus,textarea:focus{border-color:#111827;box-shadow:0 0 0 3px #11182712}
textarea{min-height:120px;resize:vertical}
button{min-height:48px;padding:12px 16px;border:0;border-radius:12px;background:#111827;color:#fff;font-weight:800;cursor:pointer}
button:active{transform:translateY(1px)}button:disabled{opacity:.6;cursor:not-allowed}
.link{background:transparent;color:#344054;text-decoration:underline;width:100%;margin-top:4px}.outline{background:#fff;color:#111827;border:1px solid #d0d5dd}.small{min-height:40px;padding:8px 12px;font-size:12px}
.danger{background:#b42318}.hidden{display:none!important}.message{font-size:13px;font-weight:700;line-height:1.45;margin:14px 0 0;overflow-wrap:anywhere}
.welcome-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0 4px}.welcome-row h2{margin:0}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
article{border:1px solid #e4e7ec;padding:16px;border-radius:14px;margin:10px 0;background:#fff}
article b{font-size:15px}article p{font-size:13px;color:#667085;line-height:1.45;margin:7px 0}article strong{display:inline-block;margin-top:5px;padding:6px 9px;border-radius:999px;background:#f2f4f7;font-size:12px}
.empty{padding:24px 8px;text-align:center;color:#667085;font-size:14px}
@media(max-width:600px){
  .app-shell{padding-left:14px;padding-right:14px}
  .topbar{padding-top:14px}.brand h1{font-size:22px}.brand span{display:none}.brand-mark{width:40px;height:40px}
  .user-badge{max-width:50%;font-size:11px;padding:8px 10px}
  .card{padding:18px;border-radius:17px;margin:12px 0}.auth-card{margin:20px auto}
  h2{font-size:26px}.welcome-row{margin-top:12px}.welcome-row h2{font-size:24px}
  .welcome-row .outline{min-height:42px;padding:9px 12px}
  input,select,textarea{font-size:16px}
  button{width:100%}.section-title .small{width:auto;min-height:40px}
}
@media(min-width:601px){main{padding:8px 0 40px}}

.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}.stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px;text-align:center}.stat-card b{display:block;font-size:24px}.stat-card span{display:block;color:#6b7280;font-size:13px;margin-top:4px}.service-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;margin:12px 0;box-shadow:0 4px 14px rgba(0,0,0,.05)}.service-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.status{padding:6px 10px;border-radius:999px;font-size:13px;font-weight:700}.status.waiting{background:#fff7ed;color:#9a3412}.status.doing{background:#eff6ff;color:#1d4ed8}.status.done{background:#f0fdf4;color:#166534}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.actions button{flex:1 1 120px}.actions .danger{background:#dc2626;color:#fff}.message[data-ok="true"]{color:#166534}.message[data-ok="false"]{color:#b91c1c}@media(max-width:600px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.actions button{flex:1 1 45%;min-height:44px}.service-card{padding:14px}}
