:root {
    --c-bg: #FAFAF9;
    --c-surface: #FFFFFF;
    --c-text: #1C1917;
    --c-text-light: #57534E;
    --c-border: #E7E5E4;
    --c-primary: #0284C7;
    --c-primary-hover: #0369A1;
    --c-success: #16A34A;
    --c-success-light: #DCFCE7;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --radius: 8px;
    --nav-height: 64px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: var(--c-primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}
.inner-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.branding a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--c-text);
    text-decoration: none;
}
nav[aria-label="Primary"] a {
    margin-left: 1.5rem;
    color: var(--c-text-light);
    font-size: 0.95rem;
}
nav[aria-label="Primary"] a:hover {
    color: var(--c-text);
}

/* Hero */
.hero {
    padding: 3rem 0;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.hero .lead {
    font-size: 1.125rem;
    color: var(--c-text-light);
    max-width: 700px;
    margin-bottom: 2rem;
}
.hero-ad {
    background: var(--c-surface);
    border: 1px dashed var(--c-border);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-light);
    border-radius: var(--radius);
}

/* Workspace */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}
@media (max-width: 800px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    height: 700px;
    max-height: 80vh;
}
.panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F5F5F4;
    border-radius: var(--radius) var(--radius) 0 0;
}
.panel-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}
.btn {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.btn-outline {
    border-color: var(--c-border);
    background: var(--c-surface);
    color: var(--c-text-light);
}
.btn-outline:hover {
    background: #F5F5F4;
    color: var(--c-text);
}
.btn-sm {
    padding: 0.25rem 0.75rem;
}

/* Checklist */
.progress-bar-container {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--c-border);
}
.progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--c-text-light);
}
.progress-track {
    background: var(--c-border);
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--c-success);
    width: 0%;
    transition: width 0.3s ease;
}
.checklist-groups {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
}
.chk-group {
    border-bottom: 1px solid var(--c-border);
}
.chk-group:last-child {
    border-bottom: none;
}
.chk-group-title {
    padding: 1rem 1.25rem 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-light);
    font-weight: 700;
    background: #FAFAF9;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--c-border);
}
.chk-items {
    list-style: none;
}
.chk-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: background 0.2s;
}
.chk-item:last-child {
    border-bottom: none;
}
.chk-item:hover {
    background: #FAFAF9;
}
.chk-item.is-checked {
    background: var(--c-success-light);
}
.chk-item input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}
.chk-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.chk-content p {
    font-size: 0.875rem;
    color: var(--c-text-light);
}
.chk-item.is-checked .chk-content h4,
.chk-item.is-checked .chk-content p {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Editor */
.editor-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
#draft-editor {
    width: 100%;
    height: 100%;
    resize: none;
    border: none;
    padding: 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    outline: none;
}
#draft-editor:focus {
    box-shadow: inset 0 0 0 2px var(--c-primary);
}

/* Guide */
.guide {
    margin-bottom: 4rem;
}
.content-block {
    max-width: 800px;
}
.content-block h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}
.content-block h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--c-text);
}
.content-block p {
    margin-bottom: 1rem;
    color: var(--c-text-light);
}
.guide-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--c-text-light);
}
.guide-list li {
    margin-bottom: 0.75rem;
}
.guide-list strong {
    color: var(--c-text);
}

/* Footer */
.site-footer {
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    padding: 3rem 0;
    margin-top: auto;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--c-text-light);
}
.footer-col.text-right {
    text-align: right;
    max-width: 300px;
}
.footer-col nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.brand {
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 0.25rem;
}

@media print {
    .site-header, .hero, .guide, .site-footer, .panel-actions {
        display: none !important;
    }
    .workspace-grid {
        display: block;
    }
    .panel {
        border: none;
        height: auto;
        max-height: none;
    }
    .progress-bar-container {
        display: none;
    }
}



/* 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;
}
