:root {
  
  --ground: #f9fafb;          
  --surface: #ffffff;         
  --raised: #f1f2f4;          
  --rule: #ebedf0;            
  --border: #e3e5e9;          
  --control: #868d97;         
  
  --text: #111827;            
  --muted: #5f6672;           
  
  --positive: #2f6b45;        
  --negative: #b3261e;        
  --warning: #8a5a00;         
  
  --accent: #0f6b6b;          
  --accent-soft: #e9f4f4;     
  --accent-ink: #0a4a4a;      
  --on-accent: #ffffff;       
  
  --row-h: 45px;              
  --control-h: 32px;
  --r-card: 8px;
  --r-control: 6px;
  --r-pill: 999px;
  --gap: 24px;                
  --pad: 24px;
  --measure: 42rem;           
  --canvas: 1100px;           
  
  
  --kr: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
        "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, sans-serif;
  
  --display: "Gothic A1", var(--kr);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --fs-title: 28px;
  --fs-section: 18px;
  --fs-kpi: 24px;
  --fs-body: 15px;            
  --fs-table: 14px;
  --fs-small: 12.5px;
  
  --lh-body: 1.7;
  --lh-table: 1.45;
  --lh-display: 1.28;
  
  --head-bg: #1b2027;
  --head-ink: #f2f4f7;      
  --head-dim: #a3acb9;      
  --head-line: #2b323c;
  --head-hover: #252c35;
  --head-accent: #5bb3b3;   
  --shade: rgba(16, 20, 26, .72);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --head-bg: #1e1e23; --head-ink: #e9e9e4; --head-dim: #9b9b93; --head-line: #32323a; --head-hover: #26262c;
    --ground: #16161a;
    --surface: #1e1e23;
    --raised: #26262c;
    --rule: #2a2a31;
    --border: #32323a;
    --control: #5f6670;       
    --text: #e9e9e4;          
    --muted: #9b9b93;         
    --positive: #7cc49b;      
    --negative: #e4857f;      
    --warning: #d9a066;       
    --accent: #5bb3b3;        
    --accent-soft: #15292b;
    --accent-ink: #9fd6d6;    
    --on-accent: #0d2222;     
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --head-bg: #1e1e23; --head-ink: #e9e9e4; --head-dim: #9b9b93; --head-line: #32323a; --head-hover: #26262c;
  --ground: #16161a;
  --surface: #1e1e23;
  --raised: #26262c;
  --rule: #2a2a31;
  --border: #32323a;
  --control: #5f6670;
  --text: #e9e9e4;
  --muted: #9b9b93;
  --positive: #7cc49b;
  --negative: #e4857f;
  --warning: #d9a066;
  --accent: #5bb3b3;
  --accent-soft: #15292b;
  --accent-ink: #9fd6d6;
  --on-accent: #0d2222;
  color-scheme: dark;
}
[data-site="gumjeungso"] { --head-accent: #5bb3b3; --accent: #0f6b6b; --accent-soft: #e9f4f4; --accent-ink: #0a4a4a; --on-accent: #ffffff; }
[data-site="mtcheck"] { --head-accent: #d9a066; --accent: #9a5b1f;  --accent-soft: #f7eee3; --accent-ink: #6b3d12;  --on-accent: #ffffff; }
[data-site="mtrecord"] { --head-accent: #8fb6dd; --accent: #2f5d8a;  --accent-soft: #e9f0f7; --accent-ink: #1f3f5e;  --on-accent: #ffffff; }
[data-site="mtsearch"] { --head-accent: #7cc49b; --accent: #2f6b45;  --accent-soft: #e8f2ec; --accent-ink: #1d4630;  --on-accent: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-site="gumjeungso"] { --accent: #5bb3b3;  --accent-soft: #15292b; --accent-ink: #9fd6d6;  --on-accent: #0d2222; }
  :root:not([data-theme="light"])[data-site="mtcheck"]  { --accent: #d9a066; --accent-soft: #2b2017; --accent-ink: #e8c39a; --on-accent: #1a1206; }
  :root:not([data-theme="light"])[data-site="mtrecord"] { --accent: #8fb6dd; --accent-soft: #19222d; --accent-ink: #b4cfe9; --on-accent: #0c1620; }
  :root:not([data-theme="light"])[data-site="mtsearch"] { --accent: #7cc49b; --accent-soft: #16241d; --accent-ink: #a6d8bd; --on-accent: #0a1a12; }
}
:root[data-theme="dark"][data-site="gumjeungso"] { --accent: #5bb3b3; --accent-soft: #15292b; --accent-ink: #9fd6d6; --on-accent: #0d2222; }
:root[data-theme="dark"][data-site="mtcheck"]  { --accent: #d9a066; --accent-soft: #2b2017; --accent-ink: #e8c39a; --on-accent: #1a1206; }
:root[data-theme="dark"][data-site="mtrecord"] { --accent: #8fb6dd; --accent-soft: #19222d; --accent-ink: #b4cfe9; --on-accent: #0c1620; }
:root[data-theme="dark"][data-site="mtsearch"] { --accent: #7cc49b; --accent-soft: #16241d; --accent-ink: #a6d8bd; --on-accent: #0a1a12; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--kr);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
img { max-width: 100%; display: block; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 14px; border: 1px solid var(--control); border-radius: var(--r-control); }
.skip:focus { left: 8px; top: 8px; }
.topbar { background: var(--head-bg); border-bottom: 1px solid var(--head-line); }
.topbar .in {
  width: 100%; max-width: var(--canvas); margin-inline: auto;
  padding-inline: max(18px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 20px; min-height: 56px; flex-wrap: wrap;
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 21px;
  letter-spacing: -0.03em; color: var(--head-ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.brand:hover { color: var(--head-ink); }
.brand::before { content: ""; width: 4px; height: 19px; border-radius: 2px; background: var(--head-accent); flex: none; }
.brand .tag { font-family: var(--kr); font-size: var(--fs-small); font-weight: 400; letter-spacing: 0; color: var(--head-dim); }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-size: var(--fs-table); color: var(--head-dim); text-decoration: none;
  padding: 6px 11px; border-radius: var(--r-control); white-space: nowrap;
  min-height: 34px; display: inline-flex; align-items: center;
}
.nav a:hover { background: var(--head-hover); color: var(--head-ink); }
.nav a[aria-current] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.wrap {
  width: 100%; max-width: var(--canvas); margin-inline: auto;
  padding-inline: max(18px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-right, 0px));
}
main { padding-block: 26px 64px; }
.head { margin-bottom: 22px; }
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: var(--fs-title); line-height: var(--lh-display);
  letter-spacing: -0.03em; margin: 0 0 8px; text-wrap: balance;
}
.lede { color: var(--muted); font-size: var(--fs-table); margin: 0; max-width: var(--measure); }
h2 {
  font-family: var(--display); font-weight: 700;
  font-size: var(--fs-section); line-height: 1.35; letter-spacing: -0.02em;
  margin: 34px 0 12px; display: flex; align-items: baseline; gap: 9px;
}
h2:first-child { margin-top: 0; }
h2 .c { font-family: var(--kr); font-size: var(--fs-small); font-weight: 400; color: var(--muted); }
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); margin-bottom: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 13px 15px; min-width: 0; }
.card .k { font-size: var(--fs-small); color: var(--muted); margin-bottom: 3px; }
.card .v { font-family: var(--display); font-size: var(--fs-kpi); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.card .u { font-family: var(--kr); font-size: var(--fs-small); color: var(--muted); font-weight: 400; margin-left: 3px; letter-spacing: 0; }
.card.hl { background: var(--accent-soft); border-color: var(--accent); }
.card.hl .k { color: var(--accent-ink); }
.card.hl .v { color: var(--accent-ink); }
.feed { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.item {
  display: flex; gap: 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 11px; min-width: 0; text-decoration: none; color: inherit;
}
.item:hover { border-color: var(--control); color: inherit; }
.thumb {
  flex: none; width: 72px; height: 72px; border-radius: var(--r-control);
  background: var(--raised); overflow: hidden; position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .n { position: absolute; right: 3px; bottom: 3px; background: var(--shade); color: #fff; font-size: 10.5px; line-height: 1.5; padding: 0 5px; border-radius: var(--r-pill); }
.thumb.none { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 10.5px; text-align: center; }
.item .b { min-width: 0; flex: 1; }
.item .t { font-weight: 700; font-size: var(--fs-table); line-height: 1.45; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .m { font-size: var(--fs-small); color: var(--muted); display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: center; }
.item .dom { font-family: var(--mono); }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-table); line-height: var(--lh-table); }
thead th { font-size: var(--fs-small); font-weight: 400; color: var(--muted); text-align: left; padding: 0 12px 7px; white-space: nowrap; background: none; }
tbody td { padding: 10px 12px; border-top: 1px solid var(--rule); vertical-align: top; }
tbody tr:first-child td { border-top: 1px solid var(--border); }
tbody tr:hover td { background: var(--raised); }
th.id, td.id { width: 40%; }
td.id .name { font-weight: 700; }
td.id .dom { font-family: var(--mono); font-size: var(--fs-small); color: var(--muted); display: block; }
th.num, td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.num .u { color: var(--muted); font-weight: 400; }
td .none { color: var(--muted); }
td.pic { width: 52px; padding-right: 0; }
td.pic .thumb { width: 44px; height: 44px; }
.badge { display: inline-block; font-size: var(--fs-small); line-height: 1.55; padding: 1px 7px; border-radius: var(--r-pill); background: var(--raised); color: var(--muted); white-space: nowrap; }
.badge.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.badge.k { background: transparent; border: 1px solid var(--border); }
.srcs { display: flex; flex-wrap: wrap; gap: 4px; }
.bar { display: block; height: 4px; border-radius: 2px; background: var(--rule); margin-top: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.spec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; margin-bottom: 20px; }
.spec dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; }
.spec dt { padding: 10px 14px; font-size: var(--fs-small); color: var(--muted); background: var(--raised); border-top: 1px solid var(--border); white-space: nowrap; }
.spec dd { padding: 10px 14px; margin: 0; border-top: 1px solid var(--border); min-width: 0; }
.spec dt:first-of-type, .spec dl > dt:first-child + dd { border-top: 0; }
.spec .big { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.spec .mono { font-family: var(--mono); }
.shots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.shot { background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-control); overflow: hidden; }
.shot img { width: 100%; height: 132px; object-fit: cover; object-position: top center; background: var(--raised); }
.shot .c { font-size: 11px; color: var(--muted); padding: 4px 7px; display: flex; justify-content: space-between; gap: 6px; }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { display: flex; gap: 11px; padding: 10px 0; border-top: 1px solid var(--rule); }
.posts li:first-child { border-top: 1px solid var(--border); }
.posts .b { min-width: 0; flex: 1; }
.posts .t { font-size: var(--fs-table); line-height: 1.5; }
.posts .m { font-size: var(--fs-small); color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 3px 8px; }
.empty { border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px 20px; text-align: center; color: var(--muted); font-size: var(--fs-table); background: var(--surface); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; align-items: center; }
.pager a, .pager span { min-width: 38px; min-height: 38px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--r-control); font-size: var(--fs-table); text-decoration: none; color: var(--text); background: var(--surface); }
.pager a:hover { border-color: var(--control); }
.pager [aria-current] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.pager .gap { border: 0; background: none; min-width: 18px; color: var(--muted); }
.toolbar { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: var(--fs-table); }
.count { color: var(--muted); margin-left: auto; }
.count b { color: var(--text); font-weight: 700; }
.note { border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-card); padding: 12px 14px; font-size: var(--fs-table); color: var(--muted); margin-top: 14px; }
.note strong { color: var(--text); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--raised); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
footer { margin-top: 52px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: var(--fs-small); line-height: 1.75; }
footer a { color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; }
@media (max-width: 640px) {
  :root { --fs-title: 23px; --canvas: 100%; }
  .topbar .in { min-height: 50px; gap: 10px; }
  .brand { font-size: 18px; }
  .brand .tag { display: none; }
  .feed { grid-template-columns: 1fr; }
  .spec dl { grid-template-columns: 1fr; }
  .spec dt { border-top: 1px solid var(--border); padding-bottom: 2px; background: none; }
  .spec dd { border-top: 0; padding-top: 2px; }
  .shots { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .shot img { height: 112px; }
  .tablewrap { overflow-x: visible; }
  table, tbody, tr, td { display: block; width: auto; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tbody tr { border-top: 1px solid var(--rule); padding: 11px 0; position: relative; }
  tbody tr:first-child { border-top: 1px solid var(--border); }
  tbody tr:hover td { background: none; }
  tbody td { border: 0; padding: 0; }
  tbody td.id { width: auto; margin-bottom: 4px; }
  tbody td.pic { position: absolute; right: 0; top: 11px; width: auto; }
  tbody td:not(.id):not(.pic) { display: inline-block; margin-right: 13px; font-size: var(--fs-small); color: var(--muted); text-align: left; }
  tbody td:not(.id):not(.pic)::before { content: attr(data-l) " "; color: var(--muted); }
  tbody td.num { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}