/* AI Creative Director — Pages frontend styles */

:root {
  --bg: #fafafa;
  --fg: #111;
  --muted: #666;
  --border: #e0e0e0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --error: #dc2626;
  --warn: #d97706;
  --ok: #059669;
  --radius: 6px;
  --max-width: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.5;
}

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.app-header h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

.app-header .session {
  font-size: 14px;
  color: var(--muted);
}

.app-header .session a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 8px;
}

button, .btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}

button:hover, .btn:hover { background: var(--accent-hover); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

input[type="text"], input[type="email"], input[type="url"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  background: white;
}

input.invalid { border-color: var(--error); }

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.field { margin-bottom: 20px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field .error { font-size: 13px; color: var(--error); margin-top: 4px; }

.notice {
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}
.notice.info { background: #eff6ff; color: #1e40af; }
.notice.ok { background: #f0fdf4; color: var(--ok); }
.notice.warn { background: #fffbeb; color: var(--warn); }
.notice.error { background: #fef2f2; color: var(--error); }
