:root {
  --forest: #d9e8b0;
  --olive: #b6ca79;
  --cream: #172012;
  --copper: #dda15e;
  --wood: #e4a96e;
  --ink: #edf2d6;
  --muted: #aab69a;
  --line: #39462d;
  --white: #202c19;
  --shadow: 0 18px 45px rgba(40, 54, 24, .09);
}
.light { --forest: #283618; --olive: #606c38; --cream: #fefae0; --wood: #bc6c25; --ink: #273018; --muted: #7c8068; --line: #e7e3c8; --white: #fffdf1; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; background: rgba(23,32,18,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.light .topbar { background: rgba(254,250,224,.94); }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; letter-spacing: -.04em; font-size: 1.15rem; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--forest); color: var(--copper); font-size: 1.2rem; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { padding: 10px 13px; border-radius: 10px; color: var(--muted); font-size: .86rem; font-weight: 650; }
.nav a:hover, .nav a.active { background: rgba(96,108,56,.25); color: var(--forest); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--copper); color: var(--forest); font-weight: 800; margin-left: 12px; }
.page { max-width: 1240px; margin: auto; padding: 48px 5vw 80px; }
.eyebrow { color: var(--wood); text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 800; }
h1 { font-size: clamp(2.15rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.075em; margin: 10px 0 18px; max-width: 760px; }
h2 { font-size: 1.65rem; letter-spacing: -.05em; margin: 0 0 18px; }
h3 { margin: 0 0 8px; letter-spacing: -.03em; }
p { color: var(--muted); line-height: 1.6; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; min-height: 440px; }
.hero p { max-width: 560px; font-size: 1.05rem; }
.hero-art { min-height: 310px; background: var(--forest); border-radius: 28px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero-art:before { content: ''; position: absolute; inset: 28px; border: 1px solid rgba(221,161,94,.35); border-radius: 20px; }
.pixel-sun { position: absolute; width: 82px; height: 82px; border-radius: 50%; background: var(--copper); top: 48px; right: 58px; box-shadow: 0 0 0 14px rgba(221,161,94,.1); }
.land { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: var(--olive); clip-path: polygon(0 28%, 20% 20%, 35% 40%, 55% 18%, 72% 35%, 100% 12%, 100% 100%, 0 100%); }
.hero-note { position: absolute; left: 58px; bottom: 48px; color: var(--cream); font-weight: 800; font-size: 1.7rem; max-width: 180px; line-height: 1; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { border: 0; border-radius: 11px; padding: 12px 17px; font-weight: 750; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--forest); color: var(--cream); box-shadow: 0 8px 18px rgba(40,54,24,.15); }
.btn.secondary { background: var(--copper); color: var(--forest); }
.btn.ghost { background: transparent; color: var(--olive); border: 1px solid var(--line); }
.btn.danger { background: #f4d9c4; color: #843d18; }
.section { margin-top: 55px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.muted { color: var(--muted); font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 18px rgba(40,54,24,.035); }
.farm-visual { height: 155px; background: linear-gradient(145deg, #374d25, #9a8353); position: relative; padding: 18px; color: var(--cream); }
.farm-visual.gold { background: linear-gradient(145deg, #3c4d24, #bf8c3c); }
.farm-visual.iron { background: linear-gradient(145deg, #253d43, #8ba09a); }
.farm-visual.redstone { background: linear-gradient(145deg, #4a2925, #aa4b31); }
.farm-visual:after { content: '▦'; font-size: 5rem; opacity: .13; position: absolute; bottom: -12px; right: 14px; }
.farm-icon { font-size: 2rem; position: relative; z-index: 1; }
.card-body { padding: 18px; }
.card-body p { margin: 6px 0 14px; font-size: .88rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { background: #f1edcf; color: var(--olive); border-radius: 999px; padding: 5px 9px; font-size: .7rem; font-weight: 750; }
.badge.dark { background: var(--forest); color: var(--cream); }
.badge.copper { background: #f4dfc3; color: var(--wood); }
.icon-btn { border: 0; background: transparent; color: var(--muted); font-size: 1.15rem; padding: 5px; }
.icon-btn.fav { color: var(--wood); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 18px; background: #2b381f; border-radius: 15px; }
.light .stat { background: #f3efcf; }
.stat strong { display: block; font-size: 1.65rem; color: var(--forest); letter-spacing: -.06em; }
.stat span { font-size: .76rem; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.panel { background: var(--white); border: 1px solid var(--line); padding: 24px; border-radius: 18px; }
.project-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.project-row:last-child { border: 0; }
.project-thumb { width: 48px; height: 48px; display: grid; place-items: center; background: var(--olive); color: var(--copper); border-radius: 12px; font-size: 1.5rem; }
.project-info { flex: 1; }
.project-info strong { display: block; }
.progress { height: 8px; background: #e9e5ca; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: var(--copper); border-radius: inherit; transition: width .25s; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.input, .select, textarea { border: 1px solid var(--line); background: var(--white); border-radius: 10px; color: var(--ink); padding: 12px 13px; outline: none; }
.input:focus, .select:focus, textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(96,108,56,.1); }
.search { flex: 1; min-width: 220px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.detail { display: grid; grid-template-columns: 1fr .85fr; gap: 28px; }
.detail-hero { min-height: 390px; border-radius: 22px; background: linear-gradient(145deg, #283618, #687548 55%, #dda15e); padding: 30px; color: var(--cream); position: relative; overflow: hidden; }
.detail-hero:after { content: '▦'; position: absolute; font-size: 15rem; right: 15px; bottom: -58px; opacity: .13; }
.detail-hero h1 { position: relative; z-index: 1; font-size: clamp(2.5rem, 5vw, 4rem); max-width: 430px; }
.detail-content { padding-top: 8px; }
.detail-content p { font-size: 1rem; }
.material-list { display: grid; gap: 10px; }
.material-row { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; }
.material-symbol { width: 34px; height: 34px; display: grid; place-items: center; background: #35442a; border-radius: 9px; }
.light .material-symbol { background: #e9e5ca; }
.material-row .name { flex: 1; font-weight: 700; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 27px; height: 27px; border: 0; border-radius: 7px; background: #f1edcf; color: var(--forest); font-weight: 800; }
.wizard { display: flex; justify-content: space-between; margin: 26px 0 34px; position: relative; }
.wizard:before { content: ''; position: absolute; top: 16px; left: 8%; right: 8%; height: 2px; background: var(--line); z-index: 0; }
.step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.step b { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); border: 2px solid var(--line); }
.step.active { color: var(--forest); }.step.active b { color: var(--cream); background: var(--forest); border-color: var(--forest); }.step.done b { background: var(--copper); border-color: var(--copper); color: var(--forest); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.field { display: grid; gap: 7px; }.field.full { grid-column: 1 / -1; }.field label { font-size: .78rem; font-weight: 800; color: var(--olive); }
.field textarea { min-height: 115px; resize: vertical; }
.empty { text-align: center; padding: 70px 25px; border: 1px dashed #d9d3ac; border-radius: 18px; }
.empty .empty-icon { font-size: 2.7rem; margin-bottom: 12px; }
.activity { display: grid; gap: 0; }.activity-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }.activity-dot { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--copper); }.activity-item strong { font-size: .9rem; }.activity-item small { display: block; margin-top: 4px; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; }.table th, .table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); font-size: .88rem; }.table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; color: var(--cream); background: var(--forest); padding: 14px 18px; border-radius: 11px; box-shadow: var(--shadow); animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(15px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 850px) { .nav a:nth-child(-n+2) { display: none; }.hero, .detail, .dashboard-grid { grid-template-columns: 1fr; }.grid { grid-template-columns: repeat(2, 1fr); }.page { padding-top: 32px; }.hero-art { min-height: 250px; }.stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .topbar { padding: 0 18px; }.grid, .form-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }.section-head { align-items: start; flex-direction: column; }.wizard { overflow-x: auto; gap: 28px; justify-content: start; padding-bottom: 5px; }.step { min-width: 70px; }.wizard:before { left: 20px; right: 20px; }.detail-hero { min-height: 300px; } }
