/* 校務GASレシピ集 */
.gr-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.gr-side { display: grid; gap: 10px; position: sticky; top: 76px; max-height: calc(100vh - 96px); grid-template-rows: auto auto minmax(0, 1fr); min-width: 0; }
.gr-search { width: 100%; }
.gr-cats { gap: 5px; }
.gr-cats .chip { padding: 3px 9px; font-size: 12.5px; }
.gr-list { display: grid; gap: 4px; overflow-y: auto; align-content: start; padding: 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.gr-item { display: flex; gap: 8px; align-items: flex-start; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 9px; cursor: pointer; color: inherit; font: inherit; }
.gr-item:hover { background: var(--bg2); }
.gr-item.on { background: var(--ink); color: var(--bg); }
.gr-no { font-family: var(--mono); font-size: 11px; font-weight: 800; opacity: .6; padding-top: 2px; }
.gr-it { display: grid; gap: 1px; min-width: 0; }
.gr-it b { font-size: 13px; line-height: 1.4; }
.gr-it small { font-size: 11px; opacity: .7; }

.gr-detail { display: grid; gap: 14px; min-width: 0; scroll-margin-top: 80px; }
.gr-head h2 { margin: 6px 0 4px; font-size: 21px; line-height: 1.4; }
.gr-head p { margin: 0 0 4px; }
.gr-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.gr-when { color: var(--ink2); }
.gr-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 12px 14px; min-width: 0; }
.gr-card h3 { margin: 0 0 8px; font-size: 15px; }
.gr-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 14px; align-items: start; }
.gr-fields .gr-wide, .gr-fields .gr-secret { grid-column: 1 / -1; }
.gr-fields .gr-bool { align-self: center; font-size: 13.5px; }
.gr-fields .mono { font-family: var(--mono); font-size: 12.5px; }
.gr-idwarn { margin: 8px 0 0; color: var(--ink2); }
.gr-codehead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.gr-codehead h3 { margin: 0; }
.gr-codehead .sp { flex: 1; }
.gr-stat { flex: 1; color: var(--ink2); min-width: 140px; }
.gr-code { position: relative; padding: 8px 0; max-height: 60vh; white-space: pre; counter-reset: none; }
.gr-code .gl { display: flex; min-width: max-content; padding-right: 14px; }
.gr-code .gl i { flex: 0 0 3.2em; text-align: right; padding-right: 12px; color: #6b7686; font-style: normal; user-select: none; }
.gr-code .gl.chg { background: rgba(255, 214, 10, .2); box-shadow: inset 4px 0 0 #ffd60a; }
.gr-code .gl.chg span { color: #fff6c2; }
.gr-code .cm { color: #8b98a9; }
.gr-prep { font-size: 12.5px; }
.gr-prep th { background: color-mix(in srgb, var(--mint) 30%, var(--card)); white-space: nowrap; }
.gr-prep td { color: var(--ink2); }
.gr-notes ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 13.5px; }
.gr-guide .steps { margin: 0; font-size: 13.5px; }
.gr-pager { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gr-pager .btn { max-width: 48%; white-space: normal; text-align: left; }

@media (max-width: 860px) {
  .gr-layout { grid-template-columns: 1fr; }
  .gr-side { position: static; max-height: none; }
  .gr-list { max-height: 260px; }
  .gr-head h2 { font-size: 18px; }
  .gr-pager .btn { max-width: 100%; }
}
