:root {
  --green: #2f6b3a;
  --green-dark: #224f2a;
  --green-soft: #e6efe3;
  --bg: #f6f4ee;
  --card: #ffffff;
  --ink: #1f2420;
  --muted: #4e5550;   /* 日差しの下でも読めるよう濃いめ */
  --line: #d6d1c4;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 17px; line-height: 1.6;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}
a { color: var(--green); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--green); color: #fff;
}
.brand { color: #fff; text-decoration: none; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { color: #fff; text-decoration: none; display: inline-flex; padding: 6px; }
.icon-btn svg, .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill-btn {
  background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; font-family: inherit; font-weight: 700;
}
.pill-btn.help { background: #ffd54f; border-color: #ffd54f; color: #3d2f00; }
.pill-btn.on { background: #fff; color: var(--green); }

/* tab bar */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 8px;
  font-size: 12px; color: var(--muted); text-decoration: none;
}
.tabbar a.active { color: var(--green); font-weight: 700; }
.tabbar a.active svg { stroke-width: 2.6; }

main { max-width: 760px; margin: 0 auto; padding: 16px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.3rem; margin: 0; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.pre { white-space: pre-wrap; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 12px; padding: 10px 14px; font-size: 16px; cursor: pointer; text-decoration: none;
  font-family: inherit; min-height: 48px; /* 軍手でも押せる大きさ */ font-weight: 600;
}
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { color: var(--danger); border-color: #e9c3c0; }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 18px; font-size: 18px; font-weight: 700; min-height: 56px; }
.btn.sm { padding: 6px 12px; font-size: 15px; min-height: 42px; }
.btn:disabled { opacity: .5; }

/* forms */
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; }
.check { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.check input { width: 24px; height: 24px; }

/* status */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap;
}
.badge.none { background: #e7e4dc; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

.status-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.status-picker input { position: absolute; opacity: 0; pointer-events: none; }
.status-picker label {
  display: block; text-align: center; padding: 14px 4px; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--line); font-weight: 700; background: #fff;
}
.status-picker input:checked + label { color: var(--ink, #fff); border-color: transparent; background: var(--c); }

/* public tree page */
.hero {
  position: relative; margin: -16px -16px 0; height: 240px; background: var(--green-soft) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.hero .ph { font-size: 96px; font-weight: 800; color: rgba(0,0,0,.18); }
.tree-title { background: var(--card); margin: -28px 0 14px; position: relative; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.tree-title h1 { font-size: 1.6rem; margin: 4px 0; }
.code-chip { display: inline-block; background: var(--ink); color: #fff; font-family: ui-monospace, monospace; font-size: 13px; padding: 2px 8px; border-radius: 6px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.fact { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.fact b { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.section-title { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin: 0 0 6px; font-weight: 700; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline .yr { width: 56px; flex: none; font-weight: 700; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list a.item, .list .item {
  display: flex; align-items: center; gap: 10px; padding: 11px 4px; text-decoration: none; color: inherit;
}
.item .main { flex: 1; min-width: 0; }
.item .title { font-weight: 700; }
.item .sub { font-size: 13px; color: var(--muted); }
.chev { color: var(--muted); }
.thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--green-soft) center/cover; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; color: rgba(0,0,0,.3); }

/* dashboard */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.stat .v { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.stat .k { font-size: 12px; color: var(--muted); }
.progress { height: 12px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--green); }
.stack { display: flex; height: 18px; border-radius: 6px; overflow: hidden; background: var(--bg); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 15px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.barrow { display: grid; grid-template-columns: 110px 1fr 40px; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0; }
.barrow .bar { height: 10px; background: var(--green); border-radius: 4px; }

/* filters */
.filters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.searchbox { margin-bottom: 8px; }

/* labels (Tepra preview) */
/* 36mmテープ（高さ36mm × 長さ約90mm のイメージ） */
.tape {
  width: 100%; max-width: 380px; height: 140px; background: #fff; border: 1px solid #bbb;
  border-radius: 6px; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px;
  font-family: "Yu Gothic", "Hiragino Sans", sans-serif; color: #000; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.tape .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.tape .yr { font-size: 20px; font-weight: 700; white-space: nowrap; line-height: 1.1; }
.tape .nm { font-size: 34px; font-weight: 900; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; }
.tape .qr-col { flex: none; width: 100px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tape .qr { width: 100px; height: 100px; }
.tape .qr svg { width: 100%; height: 100%; display: block; }
.tape .id { font-size: 12px; line-height: 1; font-family: ui-monospace, monospace; letter-spacing: .08em; }
@media (max-width: 400px) {
  .tape { height: 118px; gap: 10px; padding: 10px 10px 10px 14px; }
  .tape .yr { font-size: 17px; }
  .tape .nm { font-size: 28px; }
  .tape .qr-col { width: 84px; }
  .tape .qr { width: 84px; height: 84px; }
}

/* tree form */
.form-step { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.step-no { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.inline-field { display: flex; align-items: center; gap: 8px; }
.inline-field span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.slot-strip { overflow-x: auto; background: linear-gradient(#f3f7ec, #eef3e4); border-radius: 12px; padding: 8px 6px 2px; margin-bottom: 6px; }
.slot-strip .maprow { margin-bottom: 4px; align-items: center; }
.slot-strip .mini { width: 40px; height: 48px; flex: none; }
.slot-strip .mini svg { width: 100%; height: 100%; display: block; }
.slot {
  width: 44px; height: 52px; flex: none; border: 2px dashed #9fb38a; border-radius: 10px; background: #fff;
  color: var(--green); font-weight: 800; font-size: 22px; cursor: pointer; padding: 0; font-family: inherit;
}
.slot.on { width: 60px; border: 2px solid var(--green); background: var(--green); color: #fff; font-size: 15px; }
.save-bar {
  position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 5;
  display: grid; grid-template-columns: 2fr 1fr; gap: 8px; padding: 10px 0; background: var(--bg);
}
details.card > summary, details.lastyear > summary { cursor: pointer; list-style: revert; }
details.lastyear { margin-top: 12px; background: var(--bg); border-radius: 10px; padding: 8px 12px; }
details.lastyear > summary { font-size: 14px; color: var(--muted); font-weight: 700; }
details.lastyear[open] > summary { margin-bottom: 8px; }

/* voice / handwriting */
.tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.btn.rec { background: #fdecea; border-color: #f2b8b5; color: var(--danger); font-weight: 700; }
.sketches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sketches:empty { display: none; }
.sk { position: relative; width: 120px; height: 60px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.sk img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sk button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 22px; padding: 0; }
.pad-overlay { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pad-box { background: #fff; border-radius: 16px; padding: 14px; width: 100%; max-width: 640px; }
.pad-box canvas { width: 100%; aspect-ratio: 2 / 1; border: 2px dashed var(--line); border-radius: 10px; touch-action: none; margin-top: 8px; background: #fff; display: block; }

/* position */
.pos-chip { display: inline-block; background: var(--green); color: #fff; font-weight: 800; font-size: 15px; padding: 1px 10px; border-radius: 6px; }
.pos-box {
  min-width: 48px; height: 44px; padding: 0 6px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; font-size: 15px;
}
.pos-box.off { background: #ebe8e1; color: var(--muted); font-size: 12px; }

/* map */
.seg { margin-bottom: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.seg input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.map-wrap { overflow-x: auto; padding-bottom: 4px; }
.map-wrap { background: linear-gradient(#f3f7ec, #eef3e4); border-radius: 12px; padding: 10px 6px 4px; }
.maprow {
  display: flex; align-items: flex-end; gap: 2px; margin-bottom: 8px; width: max-content;
  border-bottom: 3px solid #d8cdb4; padding-bottom: 2px; /* うね（列）の地面 */
}
.maprow .rl {
  width: 30px; flex: none; font-weight: 800; text-align: center; position: sticky; left: 0; z-index: 1;
  background: #eef3e4; align-self: center; border-radius: 6px;
}
.maprow .rl.tap { background: var(--green); color: #fff; cursor: pointer; }
.cell {
  width: 46px; height: 54px; flex: none; border: 0; background: none; cursor: pointer; padding: 0;
  border-radius: 8px; position: relative;
}
.cell svg { width: 100%; height: 100%; display: block; }
.cell.picked { background: rgba(31,36,32,.12); }
.cell.picked::after {
  content: "✓"; position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 11px; line-height: 16px; font-weight: 800;
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 9;
  max-width: 760px; margin: 0 auto; background: #fff; border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.15); padding: 14px 16px; max-height: 46vh; overflow: auto;
}
.sheet-space { height: 48vh; }
.qrbox { width: 160px; height: 160px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qrbox svg { width: 100%; height: 100%; display: block; }

/* settings editor rows */
.edit-row { display: grid; grid-template-columns: 1fr 110px auto auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.edit-row.status { grid-template-columns: 1fr 52px auto; }
.edit-row input[type=color] { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: #fff; }
.edit-row .opts { grid-column: 1 / -1; }

.notice { background: #fff7e0; border: 1px solid #f0dca0; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 20;
  box-shadow: var(--shadow);
}

@media (max-width: 520px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .barrow { grid-template-columns: 90px 1fr 34px; }
  .edit-row { grid-template-columns: 1fr 96px auto; }
  .edit-row .pub { grid-column: 1 / 2; }
}

@media print {
  .topbar, .tabbar, .no-print { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* map: 全体表示（小さい木） */
.map-wrap.compact .maprow { gap: 0; margin-bottom: 2px; }
.map-wrap.compact .cell { width: 24px; height: 30px; }
.map-wrap.compact .maprow .rl { width: 26px; font-size: 14px; }

/* 写真が無い木のイラスト（QRページ） */
.hero .hero-tree { width: 150px; height: 175px; }

/* 使い方ガイド */
.guide-card {
  position: fixed; left: 8px; right: 8px; top: 64px; z-index: 25; max-width: 744px; margin: 0 auto;
  background: #fff8e1; border: 2px solid #ffb300; border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.guide-card .g-step { font-size: 13px; font-weight: 700; color: #8a6200; }
.guide-card .g-text { font-size: 17px; font-weight: 700; margin: 2px 0 10px; line-height: 1.5; }
.guide-card .g-btns { display: flex; gap: 8px; }
.guide-card .g-btns .btn { flex: 1; }
.guide-hl {
  outline: 4px solid #ffb300 !important; outline-offset: 3px; border-radius: 12px;
  animation: guide-pulse 1.2s ease-in-out infinite; position: relative; z-index: 4;
}
@keyframes guide-pulse { 50% { outline-color: #ff6f00; outline-offset: 6px; } }
.guide-space { height: 150px; }
.guide-menu { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.guide-menu .box { background: #fff; width: 100%; max-width: 760px; border-radius: 18px 18px 0 0; padding: 16px; max-height: 85vh; overflow: auto; }
.guide-menu .task { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 12px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; font-family: inherit; font-size: 17px; font-weight: 700; color: var(--ink); cursor: pointer; }
.guide-menu .task .ic { font-size: 26px; width: 36px; text-align: center; }
.guide-menu .task .sub { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.hero .hero-tree svg { width: 100%; height: 100%; display: block; }
.brand { min-width: 0; white-space: nowrap; overflow: hidden; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; }
.topbar { gap: 8px; padding: 10px 12px; }
.topbar-actions { flex: none; gap: 6px; }
.pill-btn { white-space: nowrap; }

/* toast with action */
.toast { display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); }
.toast-act { background: #ffd54f; color: #3d2f00; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 15px; font-family: inherit; cursor: pointer; white-space: nowrap; }

/* in-app dialog */
.dlg-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dlg { background: #fff; border-radius: 18px; padding: 20px 18px 16px; width: 100%; max-width: 420px; }
.dlg-text { font-size: 18px; font-weight: 700; line-height: 1.6; margin-bottom: 14px; }
.dlg-in { margin-bottom: 14px; font-size: 18px !important; }
.btn.danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; }

/* survey: いまここ */
.here-strip { display: flex; align-items: flex-end; justify-content: center; gap: 4px; background: linear-gradient(#f3f7ec, #eef3e4); border-radius: 12px; padding: 8px 4px 4px; border-bottom: 3px solid #d8cdb4; }
.here-tree { width: 46px; text-align: center; opacity: .75; }
.here-tree svg { width: 46px; height: 54px; display: block; }
.here-tree.now { width: 64px; opacity: 1; }
.here-tree.now svg { width: 64px; height: 75px; }
.here-tree b { display: block; font-size: 12px; color: var(--green-dark); }
.here-more { color: var(--muted); font-weight: 800; align-self: center; }
.quick-toggle { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 14px; background: var(--green-soft); border-radius: 12px; cursor: pointer; }
.quick-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.quick-toggle .sw { width: 52px; height: 30px; border-radius: 999px; background: #c9c4b6; position: relative; flex: none; transition: background .15s; }
.quick-toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.quick-toggle input:checked + .sw { background: var(--green); }
.quick-toggle input:checked + .sw::after { left: 25px; }
.date-edit { margin-top: 4px; }
.date-edit summary { cursor: pointer; }
#sv-form .save-bar { margin: 12px -16px -16px; padding: 10px 16px; border-radius: 0 0 var(--radius) var(--radius); }

/* labels: 下に固定の操作バー */
.label-bar { grid-template-columns: auto 1fr 1fr; align-items: center; }
.lb-count { display: flex; flex-direction: column; align-items: center; line-height: 1.2; min-width: 56px; }
.lb-count b { font-size: 20px; }

/* survey header: compact */
.here-card { padding: 10px 12px; }
.here-row { display: flex; align-items: stretch; gap: 6px; }
.here-row .here-strip { flex: 1; min-width: 0; padding: 4px 2px 2px; }
.here-tree, .here-tree svg { width: 34px; }
.here-tree svg { height: 40px; }
.here-tree.now, .here-tree.now svg { width: 50px; }
.here-tree.now svg { height: 58px; }
.nav-arrow {
  width: 52px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 26px; font-weight: 800; line-height: 1;
}
.nav-arrow small { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.nav-arrow.off { border: 0; }
.here-card .lastyear { margin-top: 8px; padding: 6px 10px; }
.quick-toggle { margin: 0; padding: 4px 10px 4px 6px; gap: 8px; }
.quick-toggle .sw { width: 44px; height: 26px; }
.quick-toggle .sw::after { width: 20px; height: 20px; }
.quick-toggle input:checked + .sw::after { left: 21px; }
.status-picker label { padding: 12px 4px; }

/* ---------- 本番 ---------- */
#user-btn { text-decoration: none; max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.sync-badge { background: #ffb74d; color: #3d2400; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sample-note { background: #fff7e0; border-color: #f0dca0; }
button.item { width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.dlg .field { display: block; margin: 0 0 10px; }
.dlg .check { margin-bottom: 10px; }
