.ss-appnav {
	margin-top: var(--ss-space-3);
}
.ss-appnav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ss-appnav__link {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--ss-border);
	text-decoration: none;
	color: var(--ss-muted);
	background: rgba(22, 26, 36, 0.35);
}
.ss-appnav__link:hover {
	color: var(--ss-text);
	border-color: rgba(233, 231, 226, 0.22);
}

.ss-pageheader {
	padding-top: var(--ss-space-4);
}
.ss-appheader {
	padding-top: var(--ss-space-4);
}

/* Workshop submission typography (Phase 2/3 foundation) */
.ss-submission {
	max-width: 72ch;
	font-family: var(--ss-font-serif);
	font-size: 1.06rem;
	line-height: 1.7;
}

.ss-submission p {
	margin: 0 0 var(--ss-space-4);
}

/* Fiction layout helpers */
.ss-submission--double p {
	line-height: 2;
}

.ss-submission--indent p {
	text-indent: 1.75em;
	margin-bottom: 0;
}
.ss-submission--indent p + p {
	margin-top: 0;
}

/* Avoid indent on first paragraph after headings/scene breaks */
.ss-submission--indent p.ss-noindent {
	text-indent: 0;
}

.ss-submission .ss-scene-break {
	text-indent: 0;
	text-align: center;
	color: var(--ss-faint);
	letter-spacing: 0.12em;
	margin: var(--ss-space-6) 0;
}

/* Preserve typewriter-ish feel if needed */
.ss-submission--mono {
	font-family: var(--ss-font-mono);
	font-size: 0.98rem;
}

/* Workshop submission editor UI */
.ss-submitteditor__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

.ss-submitteditor__meta {
	margin-left: auto;
	white-space: nowrap;
}

.ss-submitteditor__meta.is-over {
	color: var(--ss-warn);
}

.ss-submitteditor__help {
	font-size: 0.95rem;
}

.ss-submitteditor__status {
	font-size: 0.92rem;
	padding: 0.4rem 0.6rem;
	border: 1px dashed var(--ss-border);
	border-radius: 10px;
	background: rgba(15, 18, 28, 0.25);
}

.ss-submitteditor__editorwrap {
	border: 1px solid var(--ss-border);
	border-radius: var(--ss-radius);
	background: rgba(15, 18, 28, 0.35);
	padding: var(--ss-space-4);
}

.ss-submitteditor__editor {
	outline: none;
	color: var(--ss-text);
}

.ss-submitteditor__editor:focus {
	box-shadow: 0 0 0 3px rgba(160, 190, 255, 0.18);
}

/* Rich-ish text inside editor */
.ss-submitteditor__editor a {
	color: var(--ss-text);
}
.ss-submitteditor__editor strong {
	font-weight: 650;
}
.ss-submitteditor__editor em,
.ss-submitteditor__editor i {
	font-style: italic;
}
.ss-submitteditor__editor u {
	text-decoration: underline;
}

.ss-submitteditor__editor ul,
.ss-submitteditor__editor ol {
	margin: 0 0 var(--ss-space-4);
	padding-left: 1.5rem;
}

.ss-submitteditor__editor li {
	margin: 0 0 var(--ss-space-2);
}

/* /try/ — quiet writing room (static-first) */
.ss-try {
	max-width: 880px;
	margin: 0 auto;
}
.ss-try__frame {
	border: 1px solid var(--ss-border);
	border-radius: calc(var(--ss-radius) + 6px);
	background: rgba(15, 18, 28, 0.35);
	box-shadow: var(--ss-shadow);
	padding: var(--ss-space-5);
}

.ss-try__intro {
	max-width: 62ch;
}

.ss-try__label {
	font-size: 0.95rem;
	color: var(--ss-muted);
}

.ss-try__textarea {
	width: 100%;
	min-height: 52vh;
	resize: vertical;
	padding: var(--ss-space-4);
	border-radius: var(--ss-radius);
	border: 1px solid rgba(233, 231, 226, 0.18);
	background: rgba(11, 12, 16, 0.45);
	color: var(--ss-text);
	font-family: var(--ss-font-serif);
	font-size: 1.06rem;
	line-height: 1.7;
	outline: none;
}

.ss-try__textarea:focus {
	box-shadow: 0 0 0 3px rgba(160, 190, 255, 0.18);
}
.ss-try__textarea::placeholder {
	color: rgba(233, 231, 226, 0.4);
}

.ss-try__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ss-space-3);
}
.ss-try__note {
	margin: 0;
}

.ss-try__drafterror {
	margin: 0;
	padding: 0.55rem 0.7rem;
	border-radius: 12px;
	border: 1px solid rgba(220, 70, 70, 0.34);
	background: rgba(220, 70, 70, 0.1);
	color: rgba(255, 210, 210, 0.95);
}

.ss-trygate {
	border: 1px solid rgba(233, 231, 226, 0.16);
	border-radius: var(--ss-radius);
	background: rgba(11, 12, 16, 0.22);
	padding: var(--ss-space-4);
}

.ss-trygate__title {
	margin: 0;
	font-family: var(--ss-font-serif);
	font-weight: 600;
	letter-spacing: -0.01em;
	font-size: 1.25rem;
}

.ss-trygate__req {
	color: var(--ss-faint);
	font-weight: 400;
}

.ss-trygate__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ss-space-4);
}

.ss-trygate__input {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border-radius: 14px;
	border: 1px solid rgba(233, 231, 226, 0.18);
	background: rgba(15, 18, 28, 0.35);
	color: var(--ss-text);
	outline: none;
}

.ss-trygate__input:focus {
	box-shadow: 0 0 0 3px rgba(160, 190, 255, 0.18);
}

.ss-trygate__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ss-space-3);
}

.ss-trysuccess {
	border: 1px solid rgba(233, 231, 226, 0.16);
	border-radius: var(--ss-radius);
	background: rgba(15, 18, 28, 0.28);
	padding: var(--ss-space-4);
}

.ss-trysuccess__title {
	margin: 0;
	font-family: var(--ss-font-serif);
	font-weight: 600;
	letter-spacing: -0.01em;
	font-size: 1.25rem;
}

.ss-trysuccess__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ss-space-3);
}

@media (max-width: 520px) {
	.ss-try__frame {
		padding: var(--ss-space-4);
	}
	.ss-try__textarea {
		min-height: 46vh;
	}
}

@media (min-width: 720px) {
	.ss-trygate__grid {
		grid-template-columns: 1.3fr 1fr;
	}
}

