/* 窥屏记录 · Pixel Hollow（色板与像素阶梯圆角同上网 / 厨房页） */
:root {
  --bg: #EBE6DE;
  --surface: #F7F4EF;
  --surface-2: #E6E0D7;
  --surface-3: #E3DBCF;
  --highlight: #E8DDCC;
  --text: #3B3732;
  --text-muted: #6E675E;
  --text-faint: #8A8278;
  --primary: #5A534B;
  --acorn: #8C7B67;
  --sage: #9AA889;
  --sky: #8FA0A6;
  --gold: #D9A441;
  --fail: #C8553D;

  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-pixel: "VT323", ui-monospace, monospace;
  --font-pixel-label: "Silkscreen", ui-monospace, monospace;
  --dots: radial-gradient(rgba(80, 70, 58, 0.07) 1px, transparent 1.2px);

  --clip-px: polygon(0 10px,2px 10px,2px 6px,4px 6px,4px 4px,6px 4px,6px 2px,10px 2px,10px 0,calc(100% - 10px) 0,calc(100% - 10px) 2px,calc(100% - 6px) 2px,calc(100% - 6px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 6px,calc(100% - 2px) 6px,calc(100% - 2px) 10px,100% 10px,100% calc(100% - 10px),calc(100% - 2px) calc(100% - 10px),calc(100% - 2px) calc(100% - 6px),calc(100% - 4px) calc(100% - 6px),calc(100% - 4px) calc(100% - 4px),calc(100% - 6px) calc(100% - 4px),calc(100% - 6px) calc(100% - 2px),calc(100% - 10px) calc(100% - 2px),calc(100% - 10px) 100%,10px 100%,10px calc(100% - 2px),6px calc(100% - 2px),6px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 6px),2px calc(100% - 6px),2px calc(100% - 10px),0 calc(100% - 10px));
  --clip-px-s: polygon(0 4px,2px 4px,2px 2px,4px 2px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 2px,calc(100% - 2px) 2px,calc(100% - 2px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 2px) calc(100% - 4px),calc(100% - 2px) calc(100% - 2px),calc(100% - 4px) calc(100% - 2px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 2px),2px calc(100% - 2px),2px calc(100% - 4px),0 calc(100% - 4px));
}

* { box-sizing: border-box; }
.px { clip-path: var(--clip-px); }
.px-s { clip-path: var(--clip-px-s); }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image: var(--dots);
  background-size: 4px 4px;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.gl {
  max-width: 640px;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.g-header { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.g-back {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--primary);
  font: 28px/1 var(--font-pixel); text-decoration: none;
}
.g-title { text-align: center; }
.g-title h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.g-title p { margin: 2px 0 0; font: 11px/1 var(--font-pixel-label); color: var(--text-faint); }

.g-notice { margin: 0; padding: 12px 14px; background: var(--highlight); font-size: 14px; }
.g-notice a { color: var(--primary); }
.g-error { color: var(--fail); }

.g-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-3); padding: 12px 6px; }
.g-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.g-num { font: 34px/1 var(--font-pixel); color: var(--primary); }
.g-lab { font-size: 12px; color: var(--text-muted); }

.g-days { display: flex; flex-direction: column; gap: 18px; }
.g-day { display: flex; flex-direction: column; gap: 8px; }
.g-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 2px 0; }
.g-day-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.g-day-count { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.g-list { display: flex; flex-direction: column; gap: 6px; }

.g-entry { padding: 10px 14px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.g-entry[data-kind="missed"] { background: var(--surface-2); }
.g-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.g-time { font: 20px/1 var(--font-pixel); color: var(--acorn); flex: none; }
.g-app {
  padding: 2px 6px; font-size: 12px; line-height: 1.3;
  background: var(--surface-3); color: var(--text-muted);
  clip-path: var(--clip-px-s);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.g-seen { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); word-break: break-word; }
.g-act { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-faint); }
.g-act i { width: 6px; height: 6px; flex: none; background: var(--text-faint); display: inline-block; }
.g-entry[data-kind="note"] .g-act i { background: var(--gold); }
.g-entry[data-kind="look-quiet"] .g-act i { background: var(--sky); }
.g-entry[data-kind="look-note"] .g-act i { background: var(--sage); }
.g-entry[data-kind="missed"] .g-act i { background: var(--fail); }

.g-note { padding: 8px 10px; background: var(--highlight); display: flex; flex-direction: column; gap: 6px; }
.g-note p { margin: 0; font-size: 14px; line-height: 1.6; word-break: break-word; }
.g-note p::before { content: "栎："; font-weight: 600; color: var(--primary); }
.g-bark { align-self: flex-start; padding: 1px 6px; font-size: 11px; color: var(--surface); background: var(--sage); clip-path: var(--clip-px-s); }
.g-bark[data-v="fail"] { background: var(--fail); }

.g-empty { margin: 0; padding: 18px 14px; background: var(--surface-2); text-align: center; font-size: 13px; line-height: 1.6; color: var(--text-faint); }
.g-foot { margin: 0; text-align: center; font-size: 11px; color: var(--text-faint); }
