/* Calm colours, system fonts and responsive spacing keep the page lightweight. */
:root{--paper:#f5f5ef;--ink:#273930;--muted:#657168;--line:#dde1d8;--green:#345d41;--lime:#dcf39b;--white:#fff;--radius:20px;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button{border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #699341;outline-offset:4px}button:hover,a.tool-open:hover{filter:brightness(.95)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar{max-width:1200px;margin:auto;min-height:100px;display:flex;align-items:center;justify-content:space-between;padding:22px 32px;border-bottom:1px solid var(--line)}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;font-size:19px;letter-spacing:-.4px}.brand strong{font-weight:700}.brand-icon{width:40px;height:40px;display:grid;place-items:center;background:var(--ink);color:var(--lime);border-radius:12px;font-size:28px;font-weight:700}.header-note{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--muted)}.green-dot{width:7px;height:7px;background:#658643;border-radius:50%}main{max-width:1200px;margin:auto;padding:0 32px}.intro{display:flex;justify-content:space-between;align-items:center;gap:40px;padding:70px 0 64px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--green);margin:0 0 22px}h1{font-size:clamp(38px,5vw,60px);letter-spacing:-2.6px;line-height:1.07;margin:0;font-weight:650}h1 span{color:var(--green)}.intro-copy{font-size:16px;line-height:1.65;color:var(--muted);margin:24px 0 0}.illustration{width:360px;height:220px;position:relative;flex-shrink:0}.illustration-label{font-size:9px;font-weight:700;letter-spacing:1.4px;color:var(--muted);position:absolute;bottom:5px;left:20px}.tool-shape{width:125px;height:137px;border-radius:24px;display:grid;place-items:center;position:absolute;font-size:72px;line-height:1;border:1px solid #ffffff55;box-shadow:0 12px 18px #2739300a}.shape-map{background:#dde7d9;color:#345d41;transform:rotate(-15deg);left:12px;top:30px}.shape-calc{background:var(--ink);color:var(--lime);transform:rotate(8deg);left:116px;top:4px}.shape-other{background:var(--lime);color:var(--green);transform:rotate(22deg);left:222px;top:48px}.illustration-dot{position:absolute;width:15px;height:15px;border-radius:50%;border:3px solid #b1c28c;top:0;right:28px}.tools-section{padding-bottom:48px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}h2{font-size:23px;letter-spacing:-.6px;margin:0}.section-heading p{color:var(--muted);font-size:14px;margin:8px 0 0}.count{font-size:11px;vertical-align:middle;letter-spacing:0;display:inline-grid;place-items:center;min-width:25px;height:25px;border-radius:7px;background:#e5e9df;color:var(--green);margin-left:7px}.primary,.secondary,.danger{min-height:44px;padding:11px 18px;border-radius:10px;font-weight:600;font-size:13px}.primary{background:var(--ink);color:white;display:inline-flex;align-items:center;justify-content:center;gap:9px}.primary span{font-size:19px;line-height:1}.secondary{background:#edf0e7;color:var(--ink)}.danger{background:#983c32;color:#fff}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:23px;border-bottom:1px solid var(--line);margin-bottom:25px}.filters{display:flex;gap:5px;flex-wrap:wrap}.filters button{background:transparent;border-radius:9px;color:var(--muted);padding:10px 15px;font-size:13px;min-height:42px}.filters button[aria-pressed=true]{background:#e5ebdd;color:var(--ink);font-weight:700}.search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:0 12px;width:255px;height:43px}.search>span:first-child{font-size:24px;color:var(--muted)}.search input{width:100%;min-width:0;border:0;background:transparent;outline-offset:0;font-size:13px;color:var(--ink)}
/* Cards are built with DOM text nodes so project titles cannot inject HTML. */
.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.tool-card{border:1px solid var(--line);background:white;border-radius:var(--radius);padding:25px;display:flex;flex-direction:column;min-height:265px;transition:box-shadow .15s,border-color .15s}.tool-card:hover{border-color:#b7c6ad;box-shadow:0 6px 20px #27393008}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.tool-icon{width:47px;height:47px;display:grid;place-items:center;border-radius:13px;font-size:25px;font-weight:400}.icon-maps{background:#e5eddf;color:#45663d}.icon-calculators{background:#f8e9d7;color:#97682a}.icon-other{background:#e9e6f7;color:#76649b}.category-badge{font-size:10px;color:var(--muted);padding:6px 9px;border:1px solid #ecefe8;border-radius:6px}.tool-card h3{font-size:18px;letter-spacing:-.35px;margin:21px 0 10px;overflow-wrap:anywhere}.tool-description{font-size:13px;line-height:1.65;color:var(--muted);margin:0 0 20px;overflow-wrap:anywhere;flex:1}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:17px;border-top:1px solid #eef0e9}.tool-open{border:0;background:transparent;text-decoration:none;font-weight:700;font-size:12px;padding:10px 0;min-height:40px;color:var(--green);display:inline-flex;gap:10px;align-items:center}.card-controls{display:flex;gap:4px}.icon-button{width:34px;height:36px;border-radius:7px;background:transparent;color:var(--muted);font-size:17px}.icon-button:hover{background:#f2f4ed}.add-card{border:1px dashed #c4cdba;background:#edf0e5;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px;border-radius:var(--radius);min-height:265px;gap:12px;color:var(--green)}.add-card .add-symbol{width:42px;height:42px;border-radius:50%;background:#e2e8d8;display:grid;place-items:center;font-size:25px}.add-card strong{font-size:14px}.add-card .add-copy{font-size:12px;color:var(--muted)}.storage-note{font-size:12px;color:var(--muted);line-height:1.6;margin:22px 0 0}.notice{min-height:20px;font-size:13px;color:var(--green);margin:7px 0 0}.empty-state{text-align:center;padding:40px 15px;border:1px dashed var(--line);border-radius:var(--radius)}.empty-state h3{margin:0}.empty-state p{color:var(--muted);font-size:14px}footer{max-width:1136px;margin:0 auto;padding:22px 0 28px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:11px}
/* Dialogs shrink to fit phones and scroll when the keyboard is visible. */
dialog{border:1px solid var(--line);border-radius:20px;padding:28px;width:460px;max-width:calc(100% - 28px);max-height:calc(100dvh - 28px);color:var(--ink);box-shadow:0 24px 80px #17241f33}dialog::backdrop{background:#23332e66}dialog form{display:flex;flex-direction:column}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.close-button{width:36px;height:36px;background:#f0f3eb;border-radius:9px;font-size:24px;color:var(--muted)}.dialog-copy{font-size:13px;color:var(--muted);line-height:1.6;margin:14px 0 20px}dialog label{font-size:12px;font-weight:700;margin:15px 0 8px}dialog input,dialog select,dialog textarea{border:1px solid #ccd4c7;border-radius:9px;padding:11px 12px;width:100%;font-size:14px;color:var(--ink);background:#fff}dialog textarea{resize:vertical}.optional{font-weight:400;color:var(--muted)}.field-note{font-size:11px;color:var(--muted);margin:7px 0 0}.form-error{color:#a4382d;font-size:12px;line-height:1.5;margin:12px 0 0}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}#remove-description{overflow-wrap:anywhere;font-weight:600}
@media(max-width:950px){.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.illustration{width:280px;transform:scale(.8);transform-origin:right center}footer{margin:0 32px}.intro{gap:0}.illustration-label{font-size:10px}}
@media(max-width:650px){.topbar{min-height:78px;padding:16px 20px}.header-note{display:none}.brand{font-size:17px}main{padding:0 20px}.intro{padding:42px 0 40px}.illustration{display:none}.eyebrow{font-size:9px;letter-spacing:1.5px;margin-bottom:18px}h1{font-size:42px;letter-spacing:-1.8px}.intro-copy{font-size:14px;margin-top:19px}.section-heading{gap:12px}.section-heading h2{font-size:21px}.section-heading p{font-size:12px}.primary{padding:11px 13px;white-space:nowrap}.toolbar{flex-direction:column;align-items:stretch;gap:14px}.filters{gap:2px}.filters button{padding:9px 12px;font-size:12px}.search{width:100%}.tool-grid{grid-template-columns:1fr;gap:14px}.tool-card{min-height:235px;padding:22px}.add-card{min-height:120px;gap:9px}.add-card .add-symbol{width:32px;height:32px;font-size:21px}footer{margin:0 20px;gap:20px;font-size:10px}dialog{padding:23px}.tools-section{padding-bottom:24px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
