/* BaltGo Tools — shared look (same colours and fonts as the map app) */
:root {
  --fog: #e9eeed; --surface: #ffffff; --surface-2: #f1f5f4; --line: #dbe3e1; --ink: #0e2a33; --muted: #5d7279;
  --pine: #1d5c4d; --pine-ink: #ffffff; --pine-soft: #dcebe5; --amber: #e39b2d; --amber-soft: #fbecd2; --danger: #b4412f; --ok: #2e7d4f;
  --shadow-1: 0 1px 1px rgba(14, 42, 51, .04), 0 2px 6px rgba(14, 42, 51, .05), 0 8px 20px rgba(14, 42, 51, .06);
  --shadow-2: 0 1px 2px rgba(14, 42, 51, .05), 0 6px 16px rgba(14, 42, 51, .07), 0 24px 60px rgba(14, 42, 51, .14);
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 14px; color-scheme: light;
}
:root[data-theme="dark"] {
  --fog: #0a171c; --surface: #11232a; --surface-2: #172d35; --line: #23404a; --ink: #e6efee; --muted: #8fa6ac;
  --pine: #5cc6a2; --pine-ink: #06231a; --pine-soft: #173c33; --amber: #f2b552; --amber-soft: #3a2c14; --danger: #ef826e; --ok: #6fd39a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .3); --shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 48px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--fog); min-height: 100vh; }
a { color: var(--pine); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* header */
.t-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: color-mix(in srgb, var(--fog) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.t-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.t-brand img { width: 30px; height: 30px; border-radius: 9px; }
.t-brand b { font-family: var(--display); font-size: 1.12rem; }
.t-brand small { color: var(--muted); font-weight: 600; }
.t-title { font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sp { flex: 1; }
.t-act { display: flex; gap: 6px; align-items: center; }
.t-act a, .t-act button { height: 36px; min-width: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.t-main { max-width: 1180px; margin: 0 auto; padding: 18px 16px 60px; }
.t-main.wide { max-width: none; }

/* buttons, fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--pine); }
.btn.primary { background: var(--pine); border-color: var(--pine); color: var(--pine-ink); }
.btn.sm { height: 32px; padding: 0 11px; border-radius: 10px; font-size: .86rem; }
.btn.danger { color: var(--danger); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.on { background: var(--pine-soft); border-color: var(--pine); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field select, input.in, select.in { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; color: var(--ink); font-weight: 500; font-size: .95rem; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-1); padding: 16px; }
.drop { border: 2px dashed var(--line); border-radius: 18px; padding: 28px 16px; text-align: center; background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; }
.drop.over, .drop:hover { border-color: var(--pine); background: var(--pine-soft); }
.drop b { font-family: var(--display); font-size: 1.15rem; display: block; margin-bottom: 4px; }
.note { font-size: .82rem; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--pine); transition: width .2s; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--fog); padding: 10px 16px; border-radius: 12px; font-weight: 600; z-index: 100; box-shadow: var(--shadow-2); max-width: calc(100% - 32px); }

/* hub */
.hub-hero { text-align: center; padding: 42px 0 26px; }
.hub-hero img { width: 92px; height: 92px; border-radius: 26px; box-shadow: var(--shadow-2); }
.hub-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 16px 0 6px; }
.hub-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }
.hub-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; min-height: 170px; }
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--pine); }
.hub-card .ic { font-size: 2rem; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--pine-soft); }
.hub-card h2 { font-size: 1.2rem; margin: 6px 0 0; }
.hub-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.hub-card.soon { opacity: .7; }
.hub-card .tag { position: absolute; top: 16px; right: 16px; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--amber-soft); color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.hub-foot { text-align: center; margin-top: 30px; }

@media (max-width: 640px) {
  .t-title { display: none; }
  .t-act .lbl { display: none; }
}
