diff --git a/public/css/styles.css b/public/css/styles.css
index 8ab8499..687ad8b 100644
--- a/public/css/styles.css
+++ b/public/css/styles.css
@@ -837,3 +837,339 @@ h1, h2, h3, h4, h5, h6 {
font-size: 0.8rem;
color: var(--text-secondary);
}
+
+/* --- Threads --- */
+
+.threads-empty-state {
+ max-width: 700px;
+ margin: 40px auto;
+ padding: 20px;
+ text-align: center;
+ font-style: italic;
+ color: var(--text-muted);
+}
+
+.threads-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ max-width: 700px;
+ margin: 0 auto 16px;
+}
+
+.threads-title {
+ margin: 0;
+ font-size: 1.4rem;
+}
+
+.thread-create-btn {
+ flex-shrink: 0;
+ padding: 10px 18px;
+ background: var(--bg);
+ border: 1px solid var(--accent);
+ border-radius: 3px;
+ color: var(--accent);
+ font-family: var(--font-heading);
+ font-size: 0.78rem;
+ font-weight: 600;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ cursor: pointer;
+ transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
+}
+
+.thread-create-btn:hover {
+ background: var(--bg-hover);
+ border-color: var(--accent-hover);
+}
+
+.thread-tabs {
+ display: flex;
+ gap: 8px;
+ max-width: 700px;
+ margin: 0 auto 16px;
+}
+
+.thread-tab {
+ flex: 1;
+ padding: 10px 4px;
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ background: var(--bg);
+ color: var(--text-secondary);
+ font-family: var(--font-heading);
+ font-size: 0.75rem;
+ font-weight: 600;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ cursor: pointer;
+ transition: border-color var(--transition-speed) ease, color var(--transition-speed) ease, background var(--transition-speed) ease;
+}
+
+.thread-tab:hover {
+ color: var(--text-primary);
+ border-color: var(--accent-hover);
+}
+
+.thread-tab.active {
+ border-color: var(--accent);
+ color: var(--accent);
+ background: color-mix(in srgb, var(--accent) 10%, transparent);
+}
+
+.thread-list {
+ max-width: 700px;
+ margin: 0 auto;
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+
+.thread-empty {
+ padding: 24px;
+ text-align: center;
+ font-style: italic;
+ color: var(--text-muted);
+ border: 1px solid var(--border);
+ border-radius: 4px;
+ background: var(--bg-elevated);
+}
+
+.thread-card {
+ border: 1px solid var(--border);
+ border-radius: 4px;
+ background: var(--bg-elevated);
+ overflow: hidden;
+}
+
+.thread-card.expanded {
+ border-color: var(--accent);
+}
+
+.thread-card-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ width: 100%;
+ padding: 14px 18px;
+ border: none;
+ background: none;
+ color: var(--text-primary);
+ font-family: var(--font-body);
+ font-size: 0.95rem;
+ text-align: left;
+ cursor: pointer;
+}
+
+.thread-card-header:hover {
+ background: var(--bg-hover);
+}
+
+.thread-card-title {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.thread-status-badge {
+ flex-shrink: 0;
+ padding: 3px 10px;
+ border-radius: 12px;
+ font-family: var(--font-mono);
+ font-size: 0.68rem;
+ font-weight: 600;
+ letter-spacing: 0.06em;
+ text-transform: uppercase;
+ border: 1px solid transparent;
+}
+
+.thread-status-active {
+ color: var(--info);
+ border-color: var(--info);
+ background: color-mix(in srgb, var(--info) 12%, transparent);
+}
+
+.thread-status-resolved {
+ color: var(--success);
+ border-color: var(--success);
+ background: color-mix(in srgb, var(--success) 12%, transparent);
+}
+
+.thread-status-suspended {
+ color: var(--text-muted);
+ border-color: var(--text-muted);
+ background: color-mix(in srgb, var(--text-muted) 12%, transparent);
+}
+
+.thread-status-complicated {
+ color: var(--danger);
+ border-color: var(--danger);
+ background: color-mix(in srgb, var(--danger) 12%, transparent);
+}
+
+.thread-card-detail {
+ padding: 4px 18px 18px;
+ border-top: 1px solid var(--border);
+ max-height: 400px;
+ overflow-y: auto;
+}
+
+.thread-field {
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+ padding: 10px 0;
+ border-bottom: 1px solid var(--bg);
+}
+
+.thread-field:last-of-type {
+ border-bottom: none;
+}
+
+.thread-field-label {
+ font-family: var(--font-heading);
+ font-size: 0.68rem;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ color: var(--text-muted);
+}
+
+.thread-field-value {
+ font-size: 0.9rem;
+ color: var(--text-primary);
+ white-space: pre-wrap;
+}
+
+.thread-card-actions {
+ display: flex;
+ gap: 10px;
+ margin-top: 12px;
+}
+
+.thread-edit-btn,
+.thread-delete-btn {
+ flex: 1;
+ padding: 10px;
+ border-radius: 3px;
+ font-family: var(--font-heading);
+ font-size: 0.75rem;
+ font-weight: 600;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ cursor: pointer;
+ background: var(--bg);
+ transition: border-color var(--transition-speed) ease, color var(--transition-speed) ease;
+}
+
+.thread-edit-btn {
+ border: 1px solid var(--accent);
+ color: var(--accent);
+}
+
+.thread-edit-btn:hover {
+ background: var(--bg-hover);
+ border-color: var(--accent-hover);
+}
+
+.thread-delete-btn {
+ border: 1px solid var(--danger);
+ color: var(--danger);
+}
+
+.thread-delete-btn:hover {
+ background: color-mix(in srgb, var(--danger) 10%, var(--bg));
+}
+
+/* --- Modal (Threads) --- */
+
+.modal-overlay {
+ display: none;
+ position: fixed;
+ inset: 0;
+ align-items: center;
+ justify-content: center;
+ background: rgba(0, 0, 0, 0.6);
+ z-index: 100;
+}
+
+.modal-overlay.open {
+ display: flex;
+}
+
+.modal {
+ width: 100%;
+ max-width: 520px;
+ max-height: 85vh;
+ margin: 0 16px;
+ display: flex;
+ flex-direction: column;
+ background: var(--bg-elevated);
+ border: 1px solid var(--border);
+ border-radius: 4px;
+ padding: 20px;
+}
+
+.modal-title {
+ margin-bottom: 14px;
+ font-size: 1.2rem;
+}
+
+.modal-body {
+ overflow-y: auto;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ padding-right: 4px;
+}
+
+.modal-field {
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+}
+
+.modal-field-label {
+ font-family: var(--font-heading);
+ font-size: 0.68rem;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ color: var(--text-secondary);
+}
+
+.modal-input,
+.modal-select,
+.modal-textarea {
+ padding: 10px 12px;
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ background: var(--bg);
+ color: var(--text-primary);
+ font-family: var(--font-body);
+ font-size: 0.9rem;
+}
+
+.modal-textarea {
+ resize: vertical;
+ min-height: 60px;
+}
+
+.modal-input:focus,
+.modal-select:focus,
+.modal-textarea:focus {
+ outline: none;
+ border-color: var(--accent-hover);
+}
+
+.modal-actions {
+ display: flex;
+ gap: 10px;
+ margin-top: 16px;
+}
+
+.modal-actions .roll-btn,
+.modal-actions .clear-btn {
+ margin-top: 0;
+ flex: 1;
+}
diff --git a/public/index.html b/public/index.html
index 0a770ca..0a6100e 100644
--- a/public/index.html
+++ b/public/index.html
@@ -306,4 +306,5 @@
+