/* ===== RESET ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f3f4f6;
    color: #0f172a;
}

/* ===== HEADER ===== */
header {
    background: #ffffff;
    padding: 18px 40px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 20px;
    color: #16a34a;
}

.header-actions button {
    margin-left: 10px;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

.card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

h1 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 600;
}

/* ===== BUTTONS ===== */
button {
    background: #16a34a;
    border: none;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #15803d;
}

button.secondary {
    background: #e5e7eb;
    color: #0f172a;
}

button.secondary:hover {
    background: #d1d5db;
}

button.danger {
    background: #dc2626;
}

button.danger:hover {
    background: #b91c1c;
}

/* ===== STATUS ===== */
.status {
    margin-top: 15px;
    font-size: 14px;
    color: #64748b;
}

/* ===== EDITOR ===== */
.segment {
    margin-bottom: 20px;
}

.segment small {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #64748b;
}

textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    transition: 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22,163,74,0.15);
}

.actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* ===== LINK BOX ===== */
.link-box {
    background: #f0fdf4;
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 15px;
    word-break: break-all;
}

.hidden {
    display: none;
}
