:root {
  --brand-color: #2c3e50;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --danger-color: #ef4444;
  --print-color: #2563eb;
  --font-base: system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.branding strong {
  color: var(--brand-color);
  font-size: 1.2rem;
}

.branding span {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 5px;
}

.site-header nav a {
  margin-left: 15px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
}

/* Main Layout */
.hero-section {
  padding: 40px 0 20px;
}

.hero-section h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.workspace-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

input, select {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
}

button {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-family: inherit;
}

.btn-primary { background-color: var(--print-color); color: white; }
.btn-secondary { background-color: var(--brand-color); color: white; }
.btn-danger { background-color: white; color: var(--danger-color); border: 1px solid var(--danger-color); }

.data-list {
  list-style-type: none;
}

.data-list li {
  background: var(--bg-color);
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.remove-btn {
  background: none;
  color: var(--danger-color);
  font-weight: normal;
  padding: 0;
}

.content-section {
  padding: 20px 0 40px;
}

.content-section h2, .content-section h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.content-section p, .content-section ul {
  margin-bottom: 15px;
}

.content-section ul {
  padding-left: 20px;
}

.site-footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer nav a {
  color: var(--text-muted);
  margin: 0 10px;
}

@media (max-width: 600px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  .controls-bar {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

@media print {
  .site-header, .hero-section, .btn-danger, .btn-secondary, form, .content-section, .site-footer {
    display: none !important;
  }
  .workspace-section {
    border: none;
    box-shadow: none;
  }
  body {
    background: white;
  }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
