.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border-radius:999px;font-weight:600;background:var(--forest);color:#fff;text-decoration:none}
.btn.block{width:100%}
.btn.ghost{background:var(--surface-2);color:var(--title)}
.btn.gold{background:linear-gradient(135deg,var(--gold-soft),var(--gold));color:var(--forest-deep)}
.btn.danger{background:var(--danger);color:#fff}
.link{color:var(--title);font-weight:600;font-size:.86rem;text-decoration:underline;padding:6px 2px}
.field{display:block;margin-bottom:14px}
.field>span{display:block;font-size:.84rem;font-weight:600;margin-bottom:6px}
.field small{display:block;color:var(--muted);font-size:.76rem;margin-top:4px}
.input{width:100%;min-height:46px;padding:11px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);font-size:16px}
textarea.input{min-height:110px;resize:vertical}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.stack>*+*{margin-top:14px}
.alert{padding:12px 14px;border-radius:var(--radius-sm);font-size:.86rem;background:var(--surface-2);margin-bottom:14px}
.alert.error{background:#F8E4DD;color:#7A2E1D}
.empty{text-align:center;color:var(--muted);font-size:.88rem;padding:22px 12px;border:1px dashed var(--line);border-radius:var(--radius-sm)}
.spinner{width:30px;height:30px;border-radius:50%;border:3px solid var(--sage-light);border-top-color:var(--gold);animation:spin .8s linear infinite;margin:18px auto}
@keyframes spin{to{transform:rotate(360deg)}}
.badge{display:inline-block;font-size:.62rem;font-weight:700;padding:2px 7px;border-radius:999px;background:var(--gold);color:var(--forest-deep)}
#toasts{position:fixed;left:0;right:0;bottom:110px;z-index:60;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;padding:0 16px}
.toast{background:var(--forest-deep);color:#fff;padding:11px 18px;border-radius:999px;font-size:.85rem;box-shadow:var(--shadow);text-align:center}
.toast.error{background:#8B3522;border-radius:14px}
dialog.sheet{width:min(100%,520px);max-width:100%;max-height:88dvh;margin:auto auto 0;border:0;border-radius:28px 28px 0 0;background:var(--bg);color:var(--text);padding:0}
dialog.sheet::backdrop{background:rgba(14,26,18,.55)}
dialog.sheet .sheet-head{position:sticky;top:0;background:var(--bg);display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line);z-index:1}
dialog.sheet .sheet-head h2{font-family:var(--serif);color:var(--title);font-size:1.45rem}
dialog.sheet .sheet-body{padding:18px 20px calc(24px + env(safe-area-inset-bottom))}
.icon-btn{width:40px;height:40px;border-radius:12px;display:inline-grid;place-items:center;flex:none}
.icon-btn svg{width:22px;height:22px}
.list{list-style:none}
.list li{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}
.list li:last-child{border-bottom:0}
.list .grow{flex:1;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
.list small{display:block;color:var(--muted);font-size:.74rem}
.check{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--line);text-align:left;margin-bottom:8px}
.check .box{width:24px;height:24px;border-radius:8px;border:2px solid var(--sage);display:grid;place-items:center;flex:none;color:transparent;font-weight:700}
.check[aria-pressed="true"]{background:var(--surface-2)}
.check[aria-pressed="true"] .box{background:var(--forest-soft);border-color:var(--forest-soft);color:#fff}
.bar{height:9px;border-radius:99px;background:rgba(255,255,255,.22);overflow:hidden}
.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--gold-soft));border-radius:99px;transition:width .3s}
