.oakw-front-welcome { font-size: 1.15em; font-weight: 600; margin-bottom: 14px; }

.oakw-front-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}
.oakw-front-card {
	background: #f7f8f9;
	border: 1px solid #e3e5e8;
	border-radius: 8px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
	color: #555;
}
.oakw-front-card-num { font-size: 26px; font-weight: 700; color: #1d3557; }
.oakw-front-card-warn .oakw-front-card-num { color: #d63638; }

.oakw-front-h { margin: 22px 0 12px; }

.oakw-front-projects { display: flex; flex-direction: column; gap: 12px; }
.oakw-front-project {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	border: 1px solid #e3e5e8;
	border-radius: 8px;
	padding: 14px 18px;
	flex-wrap: wrap;
	background: #fff;
}
.oakw-front-project-title { font-weight: 600; display: block; }
.oakw-front-project-meta { color: #6b7075; font-size: 13px; }
.oakw-front-project-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.oakw-front-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 14px;
	font-size: 12px;
	font-weight: 600;
	background: #eef0f2;
	color: #444;
	white-space: nowrap;
}
.oakw-front-badge-new { background: #e5f1fa; color: #2271b1; }
.oakw-front-badge-under_review,
.oakw-front-badge-clarification,
.oakw-front-badge-quote_prepared { background: #fcf6e5; color: #8a6100; }
.oakw-front-badge-awaiting_payment { background: #fdeef0; color: #c22b2e; }
.oakw-front-badge-paid { background: #e6f4ef; color: #0a7a54; }
.oakw-front-badge-rejected,
.oakw-front-badge-cancelled { background: #f0f0f1; color: #6b7075; }

.oakw-front-btn {
	display: inline-block;
	background: #1d3557;
	color: #fff !important;
	padding: 8px 18px;
	border: 0;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	line-height: 1.4;
}
.oakw-front-btn:hover { opacity: .9; }
.oakw-front-btn-sm { padding: 5px 12px; font-size: 13px; }
.oakw-front-btn-pay { background: #e63946; }

.oakw-front-payline {
	background: #fdf3f4;
	border: 1px solid #f2c8cc;
	border-radius: 8px;
	padding: 14px 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 14px 0 20px;
}

.oakw-front-detail-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.oakw-front-detail-head h3 { margin: 0; }

.oakw-front-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px 18px;
	margin: 16px 0;
}
.oakw-front-grid-label { display: block; color: #6b7075; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.oakw-front-grid-value { font-weight: 600; }

.oakw-front-note {
	background: #f4f7fb;
	border-left: 4px solid #1d3557;
	padding: 12px 16px;
	border-radius: 0 6px 6px 0;
	margin: 14px 0;
}

.oakw-front-instructions {
	background: #f7f8f9;
	border-radius: 8px;
	padding: 14px 18px;
	line-height: 1.7;
	max-height: 340px;
	overflow: auto;
}

.oakw-front-files { width: 100%; border-collapse: collapse; font-size: 14px; }
.oakw-front-files th { text-align: left; padding: 8px; border-bottom: 2px solid #e3e5e8; }
.oakw-front-files td { padding: 8px; border-bottom: 1px solid #eef0f2; vertical-align: middle; }

.oakw-front-upload {
	border: 1px dashed #c9ccd1;
	border-radius: 8px;
	padding: 16px 18px;
	margin-top: 16px;
	background: #fbfbfc;
}
.oakw-front-upload h5 { margin: 0 0 10px; }
.oakw-front-input { width: 100%; max-width: 420px; padding: 7px 10px; border: 1px solid #c9ccd1; border-radius: 6px; }

.oakw-front-timeline { list-style: none; margin: 0; padding: 0; }
.oakw-front-timeline li { padding: 5px 0 5px 14px; border-left: 2px solid #e3e5e8; }
.oakw-front-timeline .oakw-front-muted { display: inline-block; min-width: 150px; }

.oakw-front-muted { color: #8a8f94; font-size: 13px; }

.oakw-front-notice {
	padding: 12px 16px;
	border-radius: 6px;
	background: #f0f4f8;
	border: 1px solid #d5dde5;
	margin-bottom: 14px;
}
.oakw-front-success { background: #e6f4ef; border-color: #bfe3d4; color: #0a5c40; }
.oakw-front-error { background: #fdeef0; border-color: #f2c8cc; color: #a12428; }

@media (max-width: 640px) {
	.oakw-front-project { flex-direction: column; align-items: flex-start; }
	.oakw-front-payline { flex-direction: column; align-items: flex-start; }
}

/* Phase 3: messages + revisions */
.oakw-front-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.oakw-front-msg { max-width: 82%; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.oakw-front-msg-mine { align-self: flex-end; background: #eaf1f8; border: 1px solid #d3e0ec; }
.oakw-front-msg-theirs { align-self: flex-start; background: #f7f8f9; border: 1px solid #e3e5e8; }
.oakw-front-msg-head { font-weight: 600; font-size: 12px; margin-bottom: 4px; display: flex; gap: 10px; }
.oakw-front-msg-attach { display: inline-block; margin-top: 6px; font-size: 13px; }
.oakw-front-textarea { width: 100%; padding: 8px 10px; border: 1px solid #c9ccd1; border-radius: 6px; }
.oakw-front-msgform-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.oakw-front-revisions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.oakw-front-revision { border: 1px solid #e3e5e8; border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.oakw-front-revision-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.oakw-front-revform { margin-top: 8px; }
.oakw-front-revform summary { list-style: none; cursor: pointer; width: max-content; }
.oakw-front-revform summary::-webkit-details-marker { display: none; }
.oakw-front-revform form { border: 1px dashed #c9ccd1; border-radius: 8px; padding: 14px 16px; margin-top: 10px; background: #fbfbfc; }

/* 1.3.0: dashboard extras */
.oakw-front-empty { text-align: center; border: 1px dashed #c9ccd1; border-radius: 10px; padding: 32px 20px; background: #fbfbfc; }
.oakw-front-attn { display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid #f2c8cc; background: #fdf6f6; border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; flex-wrap: wrap; }
.oakw-front-unread { display: inline-block; background: #e63946; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 1px 8px; margin-left: 8px; vertical-align: middle; }

/* 1.4.1: full submission */
.oakw-front-fullsub { margin: 16px 0; }
.oakw-front-fullsub summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.oakw-front-fullsub table { margin-top: 8px; }

/* ==========================================================================
   1.6.0 — OakWrites brand theme (deep green / gold / cream, serif headings)
   ========================================================================== */
.oakw-front-h,
.oakw-front-detail-head h3,
.oakw-front-welcome {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	color: #1e3a2a;
	letter-spacing: .01em;
}
.oakw-front-welcome { font-size: 1.5em; }
.oakw-front-h { border-bottom: 2px solid #ecdfc3; padding-bottom: 6px; }

/* Cards */
.oakw-front-card {
	background: #f9f6ef;
	border: 1px solid #e7dfcd;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(30,58,42,.05);
}
.oakw-front-card-num { color: #1e3a2a; font-family: Georgia, serif; }
.oakw-front-card-warn { background: #fdf6e7; border-color: #ecd9a8; }
.oakw-front-card-warn .oakw-front-card-num { color: #b3861f; }

/* Buttons */
.oakw-front-btn {
	background: #1e3a2a;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-size: 12.5px;
}
.oakw-front-btn:hover { background: #2b5340; opacity: 1; }
.oakw-front-btn-pay { background: #c0912f; color: #fff !important; }
.oakw-front-btn-pay:hover { background: #a87c22; }

/* Assignment rows */
.oakw-front-project {
	border: 1px solid #e7dfcd;
	border-left: 4px solid #1e3a2a;
	border-radius: 8px;
	background: #fffdf8;
	transition: box-shadow .15s ease;
}
.oakw-front-project:hover { box-shadow: 0 3px 10px rgba(30,58,42,.10); }
.oakw-front-project-title { color: #1e3a2a; font-family: Georgia, serif; font-size: 1.05em; }

/* Badges in brand hues */
.oakw-front-badge { border: 1px solid transparent; }
.oakw-front-badge-new { background: #eef4ef; color: #1e3a2a; border-color: #cfdfd3; }
.oakw-front-badge-under_review, .oakw-front-badge-clarification,
.oakw-front-badge-quote_prepared { background: #fbf3df; color: #8a6a14; border-color: #ecd9a8; }
.oakw-front-badge-awaiting_payment { background: #fdf6e7; color: #a87c22; border-color: #ecd9a8; }
.oakw-front-badge-paid, .oakw-front-badge-in_progress,
.oakw-front-badge-completed { background: #e8f1ea; color: #1e6b43; border-color: #c4dbca; }
.oakw-front-badge-draft_ready, .oakw-front-badge-final_ready { background: #eef4ef; color: #1e3a2a; border-color: #cfdfd3; }

/* Detail grid */
.oakw-front-grid { background: #f9f6ef; border: 1px solid #e7dfcd; border-radius: 10px; padding: 16px 18px; }
.oakw-front-grid-label { color: #a08a55; }
.oakw-front-grid-value { color: #1e3a2a; }

/* Payment strip */
.oakw-front-payline { background: #fdf6e7; border: 1px solid #ecd9a8; }

/* Notes & attention */
.oakw-front-note { background: #f9f6ef; border-left: 4px solid #c0912f; }
.oakw-front-attn { background: #fdf6e7; border: 1px solid #ecd9a8; border-left: 4px solid #c0912f; }
.oakw-front-unread { background: #c0912f; }

/* Tables */
.oakw-front-files th { border-bottom: 2px solid #1e3a2a; color: #1e3a2a; font-family: Georgia, serif; }
.oakw-front-files td { border-bottom: 1px solid #efe9db; }

/* Uploads */
.oakw-front-upload { border: 1px dashed #c9b98c; background: #fdfbf5; border-radius: 10px; }
.oakw-front-upload h5 { color: #1e3a2a; font-family: Georgia, serif; font-size: 1.05em; }
.oakw-front-input, .oakw-front-textarea { border: 1px solid #d8ceb6; background: #fff; }
.oakw-front-input:focus, .oakw-front-textarea:focus { border-color: #c0912f; outline: none; box-shadow: 0 0 0 2px rgba(192,145,47,.15); }

/* Timeline */
.oakw-front-timeline li { border-left: 2px solid #d8ceb6; }

/* Empty state */
.oakw-front-empty { background: #f9f6ef; border: 1px dashed #c9b98c; }

/* Notices */
.oakw-front-notice { background: #f9f6ef; border: 1px solid #e7dfcd; border-radius: 8px; }
.oakw-front-success { background: #e8f1ea; border-color: #c4dbca; color: #1e6b43; }
.oakw-front-error { background: #fbeeea; border-color: #ecc7ba; color: #9c3f22; }

/* ==========================================================================
   Messaging — refined conversation design
   ========================================================================== */
.oakw-front-thread {
	background: #f9f6ef;
	border: 1px solid #e7dfcd;
	border-radius: 12px;
	padding: 18px;
	gap: 14px;
	max-height: 480px;
	overflow-y: auto;
}
.oakw-front-msg {
	position: relative;
	max-width: 76%;
	border-radius: 12px;
	padding: 12px 16px;
	box-shadow: 0 1px 2px rgba(30,58,42,.07);
	line-height: 1.55;
}
.oakw-front-msg-mine {
	background: #1e3a2a;
	color: #f4f1e8;
	border: 0;
	border-bottom-right-radius: 4px;
}
.oakw-front-msg-mine .oakw-front-muted { color: #b9c9bd; }
.oakw-front-msg-mine a, .oakw-front-msg-mine .oakw-front-msg-attach { color: #e8cf96; }
.oakw-front-msg-theirs {
	background: #ffffff;
	border: 1px solid #e7dfcd;
	border-left: 3px solid #c0912f;
	border-bottom-left-radius: 4px;
}
.oakw-front-msg-head {
	font-family: Georgia, serif;
	font-size: 12.5px;
	letter-spacing: .03em;
	margin-bottom: 5px;
	align-items: baseline;
}
.oakw-front-msg-theirs .oakw-front-msg-head { color: #1e3a2a; }
.oakw-front-msg-head::before {
	content: "";
	display: inline-block;
	width: 8px; height: 8px;
	border-radius: 50%;
	margin-right: 2px;
	vertical-align: baseline;
}
.oakw-front-msg-mine .oakw-front-msg-head::before { background: #e8cf96; }
.oakw-front-msg-theirs .oakw-front-msg-head::before { background: #1e3a2a; }
.oakw-front-msg-attach {
	display: inline-block;
	margin-top: 8px;
	padding: 5px 12px;
	border-radius: 6px;
	background: rgba(192,145,47,.12);
	font-size: 13px;
	text-decoration: none;
}
.oakw-front-msgform {
	background: #fff;
	border: 1px solid #e7dfcd;
	border-radius: 12px;
	padding: 14px 16px;
	margin-top: 12px;
	box-shadow: 0 1px 2px rgba(30,58,42,.05);
}
.oakw-front-msgform .oakw-front-textarea { border: 0; padding: 4px 2px; resize: vertical; }
.oakw-front-msgform .oakw-front-textarea:focus { box-shadow: none; }
.oakw-front-msgform-row { border-top: 1px solid #efe9db; padding-top: 10px; margin-top: 4px; }
.oakw-front-msgform-row input[type="file"] { font-size: 12.5px; color: #a08a55; max-width: 55%; }

/* Revisions match the theme */
.oakw-front-revision { border: 1px solid #e7dfcd; border-left: 4px solid #c0912f; background: #fffdf8; border-radius: 8px; }
.oakw-front-revform form { border: 1px dashed #c9b98c; background: #fdfbf5; }

/* Full submission section */
.oakw-front-fullsub summary { color: #1e3a2a; font-family: Georgia, serif; }
