* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #1c1917;
    background: #f4efe8;
    line-height: 1.5;
}

a { color: inherit; }

.logo {
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
    font-size: 1.15rem;
}

.dash-header,
.share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 28px;
    border-bottom: 1px solid #e7e0d6;
}

.dash-header nav,
.share-header nav {
    display: flex;
    gap: 18px;
}

.dash-header nav a,
.share-header nav a {
    text-decoration: none;
    color: #78716c;
}

.dash-main,
.share-main {
    width: min(1180px, calc(100% - 40px));
    margin: 32px auto 64px;
}

.home-hero {
    width: min(720px, calc(100% - 40px));
    margin: 80px auto;
}

.home-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: #c2410c;
    font-weight: 700;
}

.help, .home-hero p { color: #78716c; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #1c1917;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

.btn.outline {
    background: transparent;
    color: #1c1917;
    border: 1px solid #e7e0d6;
}

.auth-card,
.panel,
.empty-card,
.step-card {
    background: #fffcf8;
    border: 1px solid #e7e0d6;
    border-radius: 14px;
    padding: 22px;
}

.auth-card {
    width: min(420px, 100%);
    margin: 48px auto;
}

form label {
    display: block;
    margin: 0 0 14px;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #e7e0d6;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

textarea { min-height: 72px; resize: vertical; }

.error { color: #c2410c; }

.page-head,
.editor-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.recording-list,
.token-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.recording-list a,
.token-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: #fffcf8;
    border: 1px solid #e7e0d6;
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
}

.recording-list span,
.token-list span { color: #78716c; }

.token-box {
    margin-top: 16px;
    padding: 12px;
    background: #fff;
    border: 1px dashed #c2410c;
    word-break: break-all;
}

.hidden { display: none !important; }

.editor-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
}

.title-form {
    display: flex;
    gap: 10px;
    flex: 1;
}

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.step-card img {
    width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.step-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #78716c;
    font-size: 0.8rem;
}

.handle { cursor: grab; }

.step-card.is-deleted { opacity: 0.5; }

.step-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0;
}

.check { font-size: 0.85rem; color: #78716c; }

.tabs { display: flex; gap: 8px; margin-bottom: 12px; }

.tab {
    border: 1px solid #e7e0d6;
    background: transparent;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
}

.tab.is-active {
    background: #1c1917;
    color: #fff;
    border-color: #1c1917;
}

.share-header h1 {
    margin: 0;
    font-size: 1.1rem;
}

.share-article,
#article {
    margin-top: 36px;
    display: grid;
    gap: 28px;
}

.tutorial-step h2 {
    font-family: Georgia, serif;
    font-size: 1.35rem;
    margin: 0 0 12px;
}

.tutorial-step img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e7e0d6;
}

@media (max-width: 900px) {
    .editor-grid { grid-template-columns: 1fr; }
}
