/*
  Prompt Library
  Text styles follow 7minute.ai (checked November 25, 2026):
  Inter throughout; headings 700 in #1A1A1A with tight letter spacing;
  body text 400 in #4B4B4B; labels 13px, 700, uppercase, with an amber bar;
  buttons 700 in a pill shape.
*/

:root {
  --ink: #1A1A1A;
  --body: #4B4B4B;
  --muted: #6B6B6B;
  --card: #F5F5F5;
  --card-hover: #EEEEEE;
  --line: #E5E4DF;
  --white: #FFFFFF;
  --amber: #FFC000;
  --blue: #153DFD;
  --font: Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Page */

.wrap { max-width: 1360px; margin: 0 auto; padding: 56px 40px 72px; }

.page-head { margin-bottom: 28px; text-align: center; }

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.034em;
}

.page-note {
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.55;
}
.page-note a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; white-space: nowrap; }

/* Tabs */

/* One row that fills the width. When there are more tabs than fit, the row scrolls sideways. */
.tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 1 0 auto;
  min-height: 48px;
  padding: 12px 14px;
  white-space: nowrap;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.tab:hover { background: #FAFAFA; color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 700; }

/* Count and search */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 20px;
}

.count { margin: 0; font-size: 15px; line-height: 1.55; }
.count strong { color: var(--ink); font-weight: 700; }

.search { position: relative; flex: 0 1 320px; }
.search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 46px;
  padding: 0 18px 0 44px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--muted); opacity: 1; }

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 16px;
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  transition: background-color .15s;
}
.card:hover { background: var(--card-hover); }

.card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.card .category {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.card .description { margin: 14px 0 0; font-size: 15px; line-height: 1.55; }

.card .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 108px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.15px;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

.btn-primary {
  padding: 13px 24px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
}
.btn-primary:hover { border-color: #000; background: #000; }

.btn-icon { display: inline-flex; }

.view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s;
}
.view:hover { color: var(--ink); }

/* Nothing found */

.empty { padding: 56px 0; text-align: center; }
.empty p { margin: 0 0 16px; font-size: 16px; }

/* The note at the bottom of the page about AI policy and compliance */

.disclaimer {
  max-width: 820px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.disclaimer h2 {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--amber);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.disclaimer p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.disclaimer p:last-child { margin-bottom: 0; }

/* Full prompt */

.prompt-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--white);
  color: var(--body);
  overflow: hidden;
}
.prompt-dialog[open] { display: flex; flex-direction: column; }
.prompt-dialog::backdrop { background: rgba(26, 26, 26, .55); }

.dialog-head { position: relative; flex: 0 0 auto; padding: 28px 28px 0; }

.eyebrow {
  margin: 0 56px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--amber);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.dialog-head h2 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.6px;
}

.dialog-desc { margin: 10px 0 0; font-size: 16px; line-height: 1.6; }

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.close:hover { background: var(--card); color: var(--ink); }

.prompt-text {
  flex: 1 1 auto;
  min-height: 120px;
  margin: 20px 28px 0;
  padding: 20px;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: 400 15px/1.6 var(--font);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: auto;
}

.dialog-foot { flex: 0 0 auto; padding: 20px 28px 24px; }

/* Smaller screens */

@media (max-width: 700px) {
  .wrap { padding: 36px 16px 56px; }
  .page-head { margin-bottom: 22px; }
  .tabs { gap: 8px; margin-right: -16px; padding-right: 16px; border-bottom: 0; }
  .tab {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
  }
  .tab[aria-pressed="true"] { border-color: var(--ink); }
  .toolbar { margin: 20px 0 16px; }
  .search { flex: 1 1 100%; }
  .search input { font-size: 16px; }
  .dialog-head { padding: 22px 20px 0; }
  .dialog-head h2 { font-size: 24px; letter-spacing: -0.5px; }
  .prompt-text { margin: 16px 20px 0; padding: 16px; }
  .dialog-foot { padding: 16px 20px 20px; }
  .dialog-foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
