/* ============================================================
   metagrid1.com 소개 — '모눈 판' (2026-11-11)
   이름 그대로 모눈종이 위에 서비스 패를 칸에 맞춰 붙입니다.
   분류마다 색이 하나씩입니다: 게임 · 학습·데이터 · 생활 도구.
   (예전 어두운 디자인 style.css 는 대시보드·읽을거리·법적 고지가 아직 씁니다.)
   ============================================================ */

:root{
  --cell: 28px;

  --paper:   #f4f7fa;
  --rule:    #dbe5ef;
  --ink:     #10233f;
  --ink-2:   #1d3a63;
  --white:   #ffffff;

  /* 분류 색 — 판·묶음 제목·카드 그림자가 같은 값을 씁니다 */
  --c-game:  #d6336c;
  --c-learn: #1c7ed6;
  --c-tools: #2b8a3e;
  --on-cat:  #ffffff;   /* 분류 색 칸 위의 글자 */
  --shade:   var(--ink); /* 먹 그림자(분류 색이 아닌 판·단추 밑) */
  --band:    var(--ink); /* 바닥글 띠 */

  /* style.css 와 같은 이름(인라인 스타일·공용 스크립트가 이 이름을 씁니다) */
  --bg:          var(--paper);
  --surface:     var(--white);
  --surface-2:   #eaf0f6;
  --line:        #c9d6e4;
  --line-strong: var(--ink);
  --text:        var(--ink);
  --text-soft:   #3d5170;
  --text-dim:    #5f7290;
  --brand:       var(--ink);
  /* 옛 이름 — 대시보드(home.css)·법적 고지·읽을거리의 자체 스타일이 씁니다 */
  --brand-2:     var(--c-learn);
  --brand-3:     var(--c-tools);
  --bg-alt:      var(--white);
  --accent:      var(--c-learn);
  --radius:      0px;
  --radius-s:    0px;
  --ease:        cubic-bezier(.22,.85,.3,1);

  --wrap: 1176px;  /* 42칸 */
  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  --display-gap: -.3em;
  --display: "Orbit", "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", system-ui, sans-serif;
  color-scheme: light;
}

/* ---------- 어두운 화면 — 밤의 모눈종이(2026-11-11) ----------
   theme.js 가 <html data-theme> 에 고른 값을 적습니다. 고른 적이 없으면 브라우저 설정을 따릅니다.
   스크립트가 없을 때를 위해 같은 값을 미디어 질의에도 둡니다(둘을 함께 고칠 것).
   --white 는 '종이 위 흰 판'이라는 뜻이라 어두운 화면에선 어두운 판이 되고,
   먹(--ink)은 밝은 선·글자가 됩니다. 먹 칸 위 글자(var(--white))도 그래서 저절로 뒤집힙니다. */
@media screen and (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#0e1a2b; --rule:#16263c; --ink:#dfe8f3; --ink-2:#c3d2e4; --white:#142338;
    --c-game:#f06595; --c-learn:#4dabf7; --c-tools:#51cf66; --on-cat:#0e1a2b;
    --shade:#34507a; --band:#08111d;
    --surface-2:#1a2c45; --line:#2c4263; --text-soft:#aebdd1; --text-dim:#8798b0;
    color-scheme: dark;
  }
}
@media screen{
  :root[data-theme="dark"]{
    --paper:#0e1a2b; --rule:#16263c; --ink:#dfe8f3; --ink-2:#c3d2e4; --white:#142338;
    --c-game:#f06595; --c-learn:#4dabf7; --c-tools:#51cf66; --on-cat:#0e1a2b;
    --shade:#34507a; --band:#08111d;
    --surface-2:#1a2c45; --line:#2c4263; --text-soft:#aebdd1; --text-dim:#8798b0;
    color-scheme: dark;
  }
}

.cat-game { --cat: var(--c-game); }
.cat-learn{ --cat: var(--c-learn); }
.cat-tools{ --cat: var(--c-tools); }

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  line-height:1.7;
  background-color:var(--paper);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size:var(--cell) var(--cell);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  overflow-wrap:break-word;
}
/* 한국어만 낱말 안에서 줄을 바꾸지 않습니다(일본어·중국어는 띄어쓰기가 없어 넘칩니다) */
html:lang(ko) body{ word-break:keep-all; }

h1,h2,h3,h4{ margin:0; line-height:1.3; font-weight:700; text-wrap:balance; }
.hero-title,.sec-title,.card-group,.board-label{ word-spacing:var(--display-gap); }
p{ margin:0; }
ul,dl,dd,dt{ margin:0; padding:0; list-style:none; }
a{ color:inherit; text-decoration:none; }
img,svg{ max-width:100%; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:24px; }

.skip{
  position:absolute; left:0; top:0; z-index:200;
  background:var(--ink); color:var(--white); padding:10px 18px; font-weight:700;
}
/* 화면 밖으로 밀어 두면(left:-9999px) 아랍어 판에서 가로 스크롤이 생깁니다(2026-10-25). 잘라서 숨깁니다. */
.skip:not(:focus){ width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
[dir="rtl"] .skip{ left:auto; right:0; }

:focus-visible{ outline:3px solid var(--c-learn); outline-offset:3px; }

/* 옛 장식 배경(모눈·빛 번짐) — 아직 마크업이 남은 페이지에서도 그리지 않습니다 */
.grid-bg,.glow{ display:none; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- 언어 안내 띠 ---------- */
.lang-offer{
  position:relative; z-index:2;
  background:var(--white); border-bottom:2px solid var(--ink);
  font-size:.92rem; color:var(--text-soft);
}
.lang-offer-inner{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; padding-block:10px; }
.lang-offer p{ margin:0; flex:1 1 auto; }
.lang-offer-go{ color:var(--ink); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.lang-offer-close{
  margin-inline-start:auto; width:30px; height:30px; cursor:pointer;
  background:var(--white); border:2px solid var(--ink); color:var(--ink); font:inherit; line-height:1;
}

/* ---------- 머리글 ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--paper); border-bottom:2px solid var(--ink);
}
.header-inner{ display:flex; align-items:center; gap:24px; height:64px; }

.brand{ display:inline-flex; align-items:center; gap:10px; flex-shrink:0; }
.brand-mark{ width:26px; height:26px; }
/* 로고의 네 칸 = 세 분류 + 먹 */
.brand-mark rect{ fill:var(--c-game); }
.brand-mark .m2{ fill:var(--c-learn); }
.brand-mark .m3{ fill:var(--c-tools); }
.brand-mark .m4{ fill:var(--ink); }
.brand-name{ font-family:var(--display); font-size:1.25rem; font-weight:400; }

.nav{ display:flex; gap:4px; margin-left:auto; }
.nav a{ padding:6px 12px; font-size:.93rem; font-weight:500; color:var(--text-soft); }
.nav a:hover{ color:var(--ink); text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:2px; }

.header-actions{ display:flex; align-items:center; gap:10px; }

/* 언어 선택기 — select 가 상자 전체를 채워 어디를 눌러도 열립니다. */
.langpick{
  position:relative; display:inline-flex; align-items:center;
  border:2px solid var(--ink); background:var(--white);
}
.langpick .globe{
  position:absolute; left:9px; top:50%; transform:translateY(-50%);
  width:14px; height:14px; fill:none; stroke:var(--ink); stroke-width:1.6; pointer-events:none;
}
.langpick::after{
  content:""; position:absolute; right:9px; top:50%; margin-top:-1.5px;
  border-left:4px solid transparent; border-right:4px solid transparent; border-top:4.5px solid var(--ink);
  pointer-events:none;
}
.lang-select{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background:transparent; border:0; margin:0; cursor:pointer;
  padding:5px 24px 5px 29px; width:100%;
  color:var(--ink); font-family:inherit; font-size:.8rem; font-weight:600;
  line-height:1.2; max-width:10.5rem; text-overflow:ellipsis;
}
.lang-select:focus{ outline:none; }
.langpick:focus-within{ outline:3px solid var(--c-learn); outline-offset:2px; }
.lang-select option{ background:var(--white); color:var(--ink); }
@media (max-width:400px){ .lang-select{ max-width:7rem; } }

[dir="rtl"] .header-inner{ flex-direction:row-reverse; }
[dir="rtl"] .hero-cta, [dir="rtl"] .nav{ flex-direction:row-reverse; }
[dir="rtl"] .sec-head, [dir="rtl"] .hero, [dir="rtl"] .card-body, [dir="rtl"] .footer-inner{ text-align:right; }
[dir="rtl"] .langpick .globe{ left:auto; right:9px; }
[dir="rtl"] .lang-select{ padding:5px 29px 5px 24px; }
[dir="rtl"] .langpick::after{ right:auto; left:9px; }

/* 밝은·어두운 화면 전환(theme.js 가 머리글에 넣음) — 언어 선택기와 같은 상자 */
.theme-btn{
  display:inline-grid; place-items:center; width:32px; height:32px; padding:0; flex:none;
  border:2px solid var(--ink); background:var(--white); color:var(--ink); cursor:pointer;
}
.theme-btn svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.theme-btn .moon{ fill:currentColor; stroke:none; }
.theme-btn:hover{ background:var(--paper); }
/* 지금 화면이 아니라 누르면 바뀔 화면을 그립니다 */
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon{ display:none; }
:root[data-theme="dark"] .theme-btn .sun{ display:block; }
/* 단추가 들어가 머리글이 넘치면(좁은 화면 + 긴 말: 독일어·프랑스어 등) theme.js 가 .tight 를 붙입니다.
   이름 글자는 숨기고 네 칸 로고만 남깁니다(화면 읽기 프로그램에는 그대로 읽힙니다). */
.site-header.tight .brand-name{
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}

/* ---------- 단추 ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 20px; border:2px solid var(--ink);
  font-size:.95rem; font-weight:700; white-space:nowrap; cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn-sm{ padding:5px 13px; font-size:.86rem; }
.btn .ico{ width:15px; height:15px; }
.btn-primary{ background:var(--ink); color:var(--white); box-shadow:3px 3px 0 var(--c-game); }
.btn-ghost{ background:var(--white); color:var(--ink); box-shadow:3px 3px 0 var(--shade); }
.btn-sm.btn-primary, .btn-sm.btn-ghost{ box-shadow:none; }
/* 누르면 패가 판에 눌리듯 그림자만큼 내려앉습니다 */
.btn:active{ transform:translate(3px,3px); box-shadow:none; }
.btn-primary:hover{ background:var(--ink-2); }

/* ---------- 히어로 ---------- */
.hero{ padding:calc(var(--cell)*3) 0 var(--cell); }
.hero-grid{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:calc(var(--cell)*2); align-items:start; }

.eyebrow{ font-size:.95rem; font-weight:600; color:var(--text-soft); margin-bottom:var(--cell); }
.hero-title{
  font-family:var(--display); font-weight:400;
  font-size:clamp(2.1rem, 5vw, 3.5rem); line-height:1.2;
  margin-bottom:var(--cell);
}
.hero-sub{
  max-width:34em; font-size:clamp(1rem,1.5vw,1.1rem); color:var(--text-soft);
  margin-bottom:calc(var(--cell)*1.5);
  background:var(--paper); box-shadow:0 0 0 6px var(--paper);
}
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:calc(var(--cell)*2); }

/* 숫자 세 칸 — 판 밑에 깔린 작은 표 */
.stats{ display:grid; grid-template-columns:auto 1fr 1fr; border:2px solid var(--ink); background:var(--white); }
.stat{ padding:12px 16px; border-inline-start:2px solid var(--ink); }
.stat:first-child{ border-inline-start:0; }
.stat dt{ font-size:.8rem; color:var(--text-dim); margin-bottom:4px; }
.stat dd{ font-size:.93rem; font-weight:600; line-height:1.45; }
.stat .num{ font-family:var(--display); font-size:2rem; line-height:1; }

/* 서비스 판 — 열일곱 칸, 분류마다 한 줄 */
.board{
  background:var(--white); border:2px solid var(--ink); box-shadow:6px 6px 0 var(--shade);
  padding:calc(var(--cell)*.75);
  display:grid; gap:calc(var(--cell)*.75);
}
.board-group{ display:grid; gap:10px; }
.board-group + .board-group{ padding-top:calc(var(--cell)*.75); border-top:2px dashed var(--line); }
.board-label{
  justify-self:start;
  font-family:var(--display); font-size:.95rem; line-height:1;
  color:var(--on-cat); background:var(--cat); padding:6px 10px 5px;
}
/* 여덟 칸 고정 — 분류마다 같은 칸에 줄을 맞춥니다 */
.board ul{ display:grid; grid-template-columns:repeat(8, minmax(0,1fr)); gap:10px; }
.board a{ display:block; border-radius:22%; outline-offset:3px; }
.board img{
  display:block; width:100%; max-width:56px; height:auto; aspect-ratio:1; border-radius:22%;
  box-shadow:0 0 0 2px var(--white), 0 0 0 4px var(--cat);
  transition:transform .12s ease;
}
.board a:hover img{ transform:translateY(-3px); }

/* ---------- 구역 ---------- */
.section{ padding:calc(var(--cell)*3) 0; }
.section-alt{ background:var(--white); border-block:2px solid var(--ink); }

.sec-head{ max-width:640px; margin-bottom:calc(var(--cell)*2); }
.sec-tag{ display:none; }  /* 제목 위 작은 이름표 — 제목이 같은 말을 하므로 숨깁니다 */
.sec-title{ font-family:var(--display); font-weight:400; font-size:clamp(1.7rem,3.4vw,2.4rem); margin-bottom:14px; }
.sec-desc{ color:var(--text-soft); font-size:clamp(.98rem,1.3vw,1.06rem); background:var(--paper); box-shadow:0 0 0 6px var(--paper); }
.section-alt .sec-desc{ background:none; box-shadow:none; }

/* ---------- 분류 제목 ---------- */
/* [색 칸] 게임 [개수 칸] ── 분류 색 줄. 개수는 data-n(카드 수, 변환 때 셈). */
.card-group{
  display:flex; align-items:center; min-height:40px;
  margin:calc(var(--cell)*3) 0 var(--cell);
  font-family:var(--display); font-weight:400; font-size:1.3rem; line-height:1;
  background:linear-gradient(var(--cat),var(--cat)) left bottom / 100% 2px no-repeat;
}
.sec-head + .card-group{ margin-top:0; }
.card-group::before{ content:""; align-self:stretch; width:14px; margin-inline-end:12px; background:var(--cat); }
.card-group::after{
  content:attr(data-n);
  display:grid; place-items:center; align-self:stretch; min-width:40px; padding:0 8px;
  margin-inline-start:12px; background:var(--cat); color:var(--on-cat); font-size:1rem;
}

/* ---------- 서비스 카드 ---------- */
.cards{ display:grid; gap:calc(var(--cell)*1); grid-template-columns:repeat(auto-fill, minmax(min(100%, 340px),1fr)); }
.card{
  display:flex; flex-direction:column; gap:14px;
  background:var(--white); border:2px solid var(--ink); box-shadow:5px 5px 0 var(--cat);
  padding:20px 22px 22px;
  scroll-margin-top:96px;
}
.card:target{ outline:3px solid var(--cat); outline-offset:4px; }
.card-icon{ display:flex; }
.card-icon img{ width:56px; height:56px; border-radius:13px; box-shadow:0 0 0 1px var(--line); }
.card-body{ display:flex; flex-direction:column; flex:1; }
.card-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.chip{ font-size:.82rem; font-weight:700; color:var(--cat); }
.live{ display:inline-flex; align-items:center; gap:6px; font-size:.8rem; color:var(--text-dim); }
.live i{ width:7px; height:7px; background:var(--c-tools); }
.live.soon i{ background:var(--text-dim); }

.card-name{ font-family:var(--display); font-weight:400; font-size:1.45rem; margin-bottom:2px; }
.card-domain{ font-size:.86rem; color:var(--text-dim); font-weight:600; margin-bottom:12px; }
.card-desc{ font-size:.95rem; color:var(--text-soft); margin-bottom:16px; }

.tags{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.tags li{ padding:2px 9px; font-size:.79rem; color:var(--ink); border:1.5px solid var(--line); background:var(--paper); }

.card-note{
  display:flex; align-items:flex-start; gap:8px;
  margin:0 0 10px; font-size:.83rem; line-height:1.55; color:var(--text-dim);
}
.card-note .ico{ width:14px; height:14px; flex:none; margin-top:3px; }
.card-note a{ color:var(--ink); text-decoration:underline; text-underline-offset:2px; }
.card-note a:hover{ color:var(--cat); }

.card-link{
  margin-top:auto; padding-top:8px; align-self:flex-start;
  display:inline-flex; align-items:center; gap:7px;
  font-size:.93rem; font-weight:700; color:var(--ink);
  text-decoration:underline; text-decoration-color:var(--cat); text-decoration-thickness:2px; text-underline-offset:5px;
}
.card-link .ico{ width:14px; height:14px; }
.card-link:hover{ color:var(--cat); }

/* ---------- 회사 소개 ---------- */
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:calc(var(--cell)*2); align-items:start; }
.values{ display:flex; flex-direction:column; gap:var(--cell); }
.value{ display:flex; gap:16px; align-items:flex-start; padding:18px 20px; background:var(--paper); border:2px solid var(--ink); }
.v-ico{ flex-shrink:0; width:40px; height:40px; display:grid; place-items:center; color:var(--on-cat); background:var(--ink); }
.value:nth-child(1) .v-ico{ background:var(--c-game); }
.value:nth-child(2) .v-ico{ background:var(--c-learn); }
.value:nth-child(3) .v-ico{ background:var(--c-tools); }
.v-ico svg{ width:20px; height:20px; }
.value h3{ font-size:1.02rem; margin-bottom:4px; }
.value p{ font-size:.92rem; color:var(--text-soft); line-height:1.62; }

/* ---------- 문의 ---------- */
.contact-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:var(--cell); }
.contact-card{
  position:relative; display:flex; gap:18px; align-items:flex-start;
  padding:24px; background:var(--white); border:2px solid var(--ink); box-shadow:5px 5px 0 var(--shade);
}
a.contact-card:hover .c-value{ text-decoration:underline; text-underline-offset:4px; }
.c-ico{ flex-shrink:0; width:44px; height:44px; display:grid; place-items:center; color:var(--ink); border:2px solid var(--ink); }
.c-ico svg{ width:22px; height:22px; }
.c-body{ min-width:0; flex:1 1 0; }
.c-label{ font-size:.82rem; color:var(--text-dim); font-weight:600; margin-bottom:4px; }
.c-value{ font-size:1.06rem; font-weight:700; overflow-wrap:anywhere; }
.c-value.addr{ font-size:.99rem; line-height:1.55; font-weight:600; }
.c-note{ font-size:.85rem; color:var(--text-dim); margin-top:6px; }
.c-note.link{ display:inline-block; color:var(--ink); font-weight:600; text-decoration:underline; text-underline-offset:3px; }

.copy-btn{
  position:absolute; top:14px; right:14px;
  padding:4px 12px; background:var(--white); border:2px solid var(--ink);
  color:var(--ink); font-family:inherit; font-size:.78rem; font-weight:700; cursor:pointer;
}
.copy-btn:hover{ background:var(--paper); }
.copy-btn.done{ background:var(--c-tools); border-color:var(--c-tools); color:var(--on-cat); }

/* ---------- 바닥글 — 남색 띠. 안에서 쓰는 색 이름을 다시 정합니다 ---------- */
.site-footer{
  --text: #ffffff; --text-soft:#c6d3e6; --text-dim:#93a6c2; --brand:#ffffff; --line:#2f4a72;
  background:var(--band); color:var(--text); padding-top:calc(var(--cell)*2);
}
.site-footer .brand-mark .m4{ fill:#ffffff; }
.footer-inner{ display:grid; grid-template-columns:1.2fr 2fr .9fr 1.1fr; gap:38px; padding-bottom:40px; }
.f-services{ columns:2; column-gap:28px; }
.f-services h4{ column-span:all; }
.f-services a{ break-inside:avoid; }
.f-tag{ margin-top:14px; font-size:.9rem; color:var(--text-dim); max-width:280px; }
.f-col h4{ font-size:.85rem; color:var(--text-dim); margin-bottom:14px; font-weight:600; }
.f-col a{ display:block; font-size:.92rem; color:var(--text-soft); margin-bottom:8px; }
.f-col a:hover{ color:#ffffff; text-decoration:underline; text-underline-offset:3px; }
.f-addr{ font-size:.88rem; color:var(--text-dim); margin-top:12px; line-height:1.6; }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding-block:18px 24px; border-top:1px solid var(--line);
  font-size:.85rem; color:var(--text-dim);
}
.to-top:hover{ color:#ffffff; }

/* ---------- 좁은 화면 ---------- */
@media (max-width:960px){
  .hero-grid{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .footer-inner{ grid-template-columns:1fr 1fr; }
  .f-brand{ grid-column:1 / -1; }
}
/* 쪽 안 메뉴는 독일어·프랑스어·힌디어에서 721~860px 사이 머리글을 넘칩니다(2026-10-25). 그 구간도 접습니다. */
@media (max-width:900px){
  .nav:has(a[href="#services"]){ display:none; }
  .nav:has(a[href="#services"]) ~ .header-actions{ margin-left:auto; }
}
@media (max-width:720px){
  .nav{ display:none; }
  .header-inner{ height:58px; }
  .header-actions{ margin-left:auto; }
  .hero{ padding-top:calc(var(--cell)*2); }
  .stats{ grid-template-columns:1fr; }
  .stat{ border-inline-start:0; border-top:2px solid var(--ink); }
  .stat:first-child{ border-top:0; }
  .hero-cta .btn{ flex:1 1 100%; }
  .footer-inner{ grid-template-columns:1fr; gap:30px; }
  .f-services{ columns:1; }
  .contact-card{ padding:22px 20px; flex-wrap:wrap; }
  .copy-btn{ position:static; flex:0 0 100%; margin-top:14px; padding:10px 13px; text-align:center; }
}
@media (max-width:400px){
  .wrap{ padding-inline:16px; }
  .card{ padding:18px 18px 20px; }
  .hide-narrow{ display:none; }
}

/* '내 대시보드'(로그인한 사람만 — main.js 가 만듦) */
#dashBtn{ display:inline-flex; align-items:center; gap:6px; }
#dashBtn svg{ width:16px; height:16px; flex:none; }
@media (max-width:600px){
  #dashBtn{ padding-inline:9px; }
  #dashBtn .dash-txt{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .header-actions:has(#dashBtn) .hide-narrow{ display:none; }
}
@media (max-width:400px){
  .header-actions:has(#dashBtn){ gap:4px; }
  .header-actions:has(#dashBtn) .btn-sm{ padding-inline:10px; }
  #dashBtn{ padding-inline:8px; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation:none !important; transition-duration:.01ms !important; }
}

@media print{
  .site-header,.copy-btn,.to-top,.board{ display:none !important; }
  body{ background:#fff; }
  .card,.contact-card,.value{ box-shadow:none; break-inside:avoid; }
}
