
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f6f7f4; color: #17211a; line-height: 1.5; }
.wrap { max-width: 900px; margin: 0 auto; padding: 24px 16px 48px; }
nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 20px; }
nav a { color: #14532d; font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #ffffff; border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,0.05); padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: #111827; text-decoration: none; }
.logo-icon { width: 42px; height: 42px; border-radius: 9px; background: #14532d; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 19px; font-weight: 900; letter-spacing: 0.5px; }
.logo-sub { font-size: 10px; letter-spacing: 2px; color: #64748b; }
.header-private { font-size: 13px; font-weight: 700; color: #14532d; border: 1px solid #14532d; border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
.topnav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 0; }
.topnav a { color: #111827; font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; text-decoration: none; }
.topnav a:hover { color: #14532d; text-decoration: none; }
.dropdown { position: relative; display: inline-flex; align-items: center; align-self: center; line-height: 1; }
.dropdown > a { display: inline-flex; align-items: center; gap: 4px; line-height: 1; transform: translateY(-2px); }
.dropdown-content { display: none; position: absolute; right: 0; top: 100%; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); padding: 8px 0; min-width: 220px; z-index: 60; }
.dropdown-content a { display: block; padding: 8px 16px; text-transform: none; letter-spacing: 0; font-size: 14px; }
.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content { display: block; }
.site-footer { background: #0f2a1d; color: #d1fae5; margin-top: 48px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 36px 20px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } .topbar { justify-content: flex-start; } }
.footer-logo { font-size: 20px; font-weight: 800; color: #ffffff; text-decoration: none; }
.footer-col h3 { color: #ffffff; margin: 0 0 10px; font-size: 15px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 6px 0; }
.footer-col a { color: #d1fae5; text-decoration: none; }
.footer-col a:hover { color: #ffffff; text-decoration: underline; }
.footer-badge { font-weight: 700; color: #ffffff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); max-width: 1100px; margin: 0 auto; padding: 16px 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #a7f3d0; }
h1 { font-size: 28px; margin: 8px 0 4px; }
.hero { text-align: center; padding: 28px 8px 8px; }
.hero-main { font-size: 38px; line-height: 1.2; font-weight: 800; color: #111827; }
.hero-typed { font-size: 38px; line-height: 1.2; font-weight: 800; color: #14532d; min-height: 46px; }
.hero-cursor { display: inline-block; width: 3px; height: 34px; background: #dc2626; vertical-align: -4px; margin-left: 2px; animation: heroblink 1s step-end infinite; }
@keyframes heroblink { 50% { opacity: 0; } }
.hero-sub { color: #475569; margin-top: 12px; }
.hero-private { font-weight: 700; color: #14532d; margin: 8px 0 0; }
@media (max-width: 640px) { .hero-main, .hero-typed { font-size: 28px; } .hero-typed { min-height: 34px; } .hero-cursor { height: 26px; } }
h2 { font-size: 20px; margin-top: 24px; }
p { margin: 6px 0; }
.badge { display: inline-block; background: #14532d; color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.sub { color: #475569; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; margin-top: 16px; }
.cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.toolcard { display: block; background: #fff; border: 1px solid #e8e8e8; border-radius: 16px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; text-decoration: none; color: #17211a; }
.toolcard:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 30px rgba(20,83,45,0.22); border-color: #86efac; }
.toolcard-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.icon-green { background: #dcfce7; color: #14532d; }
.icon-amber { background: #fef3c7; color: #92400e; }
.icon-teal { background: #ccfbf1; color: #0f766e; }
.icon-pink { background: #fce7f3; color: #9d174d; }
.icon-rose { background: #ffe4e6; color: #9f1239; }
.icon-lime { background: #ecfccb; color: #365314; }
.icon-blue { background: #dbeafe; color: #1e40af; }
.icon-purple { background: #ede9fe; color: #5b21b6; }
.icon-orange { background: #ffedd5; color: #9a3412; }
.icon-slate { background: #e2e8f0; color: #334155; }
.toolcard h3 { margin: 0 0 6px; font-size: 18px; color: #111827; }
.toolcard p { margin: 0 0 12px; color: #475569; }
.toolcard a { font-weight: 700; color: #14532d; text-decoration: none; }
.toolcard a:hover { text-decoration: underline; }
.shield-line { text-align: center; color: #475569; margin: 36px 0 16px; }
.bottom-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
@media (max-width: 700px) { .bottom-cards { grid-template-columns: 1fr; } }
.bottom-card { background: #ffffff; border: 1px solid #e8e8e8; border-radius: 16px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.bottom-card h2 { margin: 0 0 4px; }
.bottom-card .sub { color: #475569; margin-bottom: 16px; }
.acc { border: 1px solid #e8e8e8; border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.acc summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.acc summary::-webkit-details-marker { display: none; }
.acc-plus { color: #dc2626; font-weight: 800; }
.toolrow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e8e8e8; font-weight: 700; color: #111827; text-decoration: none; }
.toolrow:last-child { border-bottom: 0; }
.toolrow:hover { color: #14532d; }
#drop { border: 2px dashed #94a3b8; border-radius: 12px; padding: 28px 16px; text-align: center; background: #f8fafc; cursor: pointer; }
#drop.drag { border-color: #14532d; background: #dcfce7; }
label { font-weight: 600; display: block; margin: 12px 0 4px; }
select, input[type="range"], input[type="number"], input[type="color"] { width: 100%; }
select, input[type="number"] { padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
input:disabled, select:disabled { opacity: 0.5; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
button { border: 0; border-radius: 8px; padding: 12px 16px; font-weight: 700; cursor: pointer; margin-right: 8px; margin-top: 8px; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.primary { background: #14532d; color: #fff; }
.secondary { background: #e2e8f0; color: #17211a; }
.totals { font-weight: 700; font-size: 18px; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.file-name { word-break: break-all; }
.muted { color: #64748b; font-size: 13px; }
.error { color: #b91c1c; }
.ok { color: #14532d; font-weight: 700; }
pre { background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 8px; overflow: auto; font-size: 13px; }
#cropWrap { position: relative; display: inline-block; max-width: 100%; }
#cropImg { max-width: 100%; display: block; }
#cropSel { position: absolute; border: 2px solid #14532d; background: rgba(20,83,45,0.15); display: none; }
