
*{box-sizing:border-box}body{margin:0;background:#f6f0fa;color:#2c1740;font:16px/1.5 system-ui}main{max-width:650px;margin:auto;padding:20px 12px 40px}header,section,details{border-radius:18px;padding:18px;margin-bottom:12px}header{background:#351659;color:#fff}header small{color:#ffc490;letter-spacing:.1em}h1,h2,p{margin:0 0 8px}h2{font-size:18px}header p{margin:0;color:#ebdaf8}section,details{background:white;border:1px solid #e4d5ed}.grid{display:grid;gap:8px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}button,input,select{font:inherit;color:inherit;width:100%;min-height:44px;border:1px solid #a588bb;border-radius:9px;background:#fff;padding:6px 8px}button{font-weight:650;font-size:14px}button[aria-pressed=true]{background:#64358b;color:#fff}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #9b4800;outline-offset:2px}label{display:grid;gap:4px;font-size:14px;font-weight:600}.result{background:#fff0e1;border-inline-start:5px solid #dd741f}.result[data-alert=true]{background:#ffe7e1;border-inline-start-color:#a33120}.result output{display:block;font-size:clamp(30px,8vw,48px);font-weight:750;line-height:1.2}.muted{font-size:14px;color:#654f75}dl{margin:0}dl div{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #ede2f3}dd{margin:0;font-weight:650;text-align:right}summary{font-weight:700;min-height:44px;align-content:center}details p{margin-top:8px}a{color:#64358b}
input,select{font-size:16px;min-height:48px}button{min-height:48px}main{padding-bottom:max(32px,env(safe-area-inset-bottom))}@media(max-width:360px){section,details{padding:12px}}
#dive-log textarea{font:inherit;border:1px solid #a588bb;border-radius:9px;padding:8px;width:100%}#dive-log form>label{margin:10px 0}#log-history details{margin:8px 0;padding:8px}#log-history p{white-space:pre-wrap;overflow-wrap:anywhere}#log-form button{background:#64358b;color:white}.depth-label{white-space:nowrap}footer{text-align:center;padding:12px 0}#share-app{display:inline-flex;align-items:center;gap:7px;width:auto;margin-top:10px;padding-inline:12px;color:#351659;background:#ffcf9e;border-color:transparent}#share-status{font-size:14px}#share-status:not(:empty),#share-url:not([hidden]){margin-top:8px}#share-url{color:#351659}
.log-link{display:inline-flex;align-items:center;min-height:48px;padding:0 12px;font-weight:650}header .log-link{color:white}
