:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1f2937; background: #f3f4f6; }
body { margin: 0; }
.card { width: min(100% - 2rem, 32rem); margin: 4rem auto; padding: 2rem; background: #fff; border-radius: .75rem; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
label { display: block; margin: 1rem 0; font-weight: 600; }
input, textarea { box-sizing: border-box; display: block; width: 100%; margin-top: .4rem; padding: .65rem; border: 1px solid #9ca3af; border-radius: .35rem; font: inherit; }
button { padding: .65rem 1rem; border: 0; border-radius: .35rem; background: #1d4ed8; color: #fff; cursor: pointer; }
.error { color: #b91c1c; }.success { color: #166534; }.muted { color: #6b7280; font-size: .9rem; }
.page-shell { width: min(100% - 2rem, 72rem); margin: 2rem auto; }
.page-header, .search-form, .empty-state, .project-card, .page-footer { background: #fff; border-radius: .75rem; padding: 1.25rem; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.search-form { display: flex; align-items: end; gap: .75rem; margin: 1rem 0 1.5rem; }.search-form label { flex: 1; margin: 0; }.search-form button { flex: none; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }.project-card h2 { margin-top: 0; font-size: 1.1rem; }.project-card dl { margin: 0; }.project-card dl div { margin-top: .75rem; }.project-card dt { color: #4b5563; font-size: .85rem; }.project-card dd { margin: .2rem 0 0; white-space: pre-wrap; }
.pagination, .page-footer { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }.page-footer { justify-content: space-between; }.page-footer form { margin: 0; }
.detail-card { background: #fff; border-radius: .75rem; padding: 1.5rem; box-shadow: 0 4px 16px rgba(0,0,0,.06); }.detail-card h1 { margin-top: 0; }.detail-section { border-top: 1px solid #e5e7eb; margin-top: 1.25rem; padding-top: 1.25rem; }.detail-section h2 { font-size: 1rem; margin-top: 0; }.detail-section dl div { margin-top: .8rem; }.detail-section dt { color: #4b5563; font-size: .85rem; }.detail-section dd { margin: .2rem 0 0; }.multiline { white-space: pre-wrap; overflow-wrap: anywhere; }
.message { border-radius: .5rem; margin: 1rem 0; padding: .8rem; background: #fff; }.info { color: #1d4ed8; }.status-row { display: flex; flex-wrap: wrap; gap: .5rem; }.status-badge { display: inline-block; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-size: .85rem; padding: .25rem .6rem; }.secondary-button { background: #4b5563; }.application-form { margin-top: 1rem; }.application-form label { margin-bottom: .5rem; }.application-form button { margin-top: .75rem; }
@media (max-width: 36rem) { .page-shell { width: min(100% - 1rem, 72rem); margin: .5rem auto; }.search-form { display: block; }.search-form button { margin-top: .75rem; }.page-footer { align-items: flex-start; flex-direction: column; } }

.app-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0 0 1rem; padding: .75rem 1rem; background: #fff; border-radius: .75rem; box-shadow: 0 4px 16px rgba(0,0,0,.06); }.app-navigation a { color: #1d4ed8; text-decoration: none; }.app-navigation form { margin: 0 0 0 auto; }.navigation-logout { background: #4b5563; }.table-scroll { overflow-x: auto; }.table-scroll table { min-width: 60rem; border-collapse: collapse; width: 100%; }.table-scroll th, .table-scroll td { padding: .6rem; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
@media (max-width: 36rem) { .app-navigation { gap: .5rem; }.app-navigation form { margin-left: 0; width: 100%; }.search-form label { display: block; }.search-form label input { margin-top: .4rem; } }

.search-form:not(.sales-search) label { flex: none; margin: 0; white-space: nowrap; }.search-form:not(.sales-search) input { flex: 1; margin-top: 0; }.sales-search label { flex: 1; }

.app-navigation { column-gap: 1rem; row-gap: .6rem; }.app-navigation a, .navigation-logout { white-space: nowrap; }.app-navigation form { margin: 0; }.table-scroll table { min-width: 78rem; }.table-scroll th, .table-scroll td { padding: .7rem .9rem; }.table-scroll th:nth-child(1), .table-scroll td:nth-child(1), .table-scroll th:nth-child(5), .table-scroll td:nth-child(5), .table-scroll th:nth-child(6), .table-scroll td:nth-child(6), .table-scroll th:nth-child(7), .table-scroll td:nth-child(7), .table-scroll th:nth-child(8), .table-scroll td:nth-child(8), .table-scroll th:nth-child(9), .table-scroll td:nth-child(9) { white-space: nowrap; }.table-scroll th:nth-child(2), .table-scroll td:nth-child(2) { min-width: 14rem; }.table-scroll th:nth-child(6), .table-scroll td:nth-child(6) { min-width: 9rem; }.table-scroll th:nth-child(7), .table-scroll td:nth-child(7), .table-scroll th:nth-child(8), .table-scroll td:nth-child(8) { min-width: 5rem; }.table-scroll th:nth-child(9), .table-scroll td:nth-child(9) { min-width: 5.5rem; }
@media (max-width: 36rem) { .app-navigation { column-gap: .7rem; row-gap: .5rem; }.table-scroll table { min-width: 78rem; } }

.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }.skill-summary-block { min-width: 0; }.skill-summary { margin: .2rem 0 0; }.skill-summary-line { margin: .2rem 0; overflow-wrap: anywhere; }.skill-summary .summary-more { color: #6b7280; font-style: italic; margin-top: .2rem; }
@media (max-width: 56rem) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .project-grid { grid-template-columns: 1fr; } }

/* TICKET-019: allow sales tables to use the desktop content width. */
.page-shell { width: min(100% - 2rem, 82rem); }
@media (max-width: 36rem) { .page-shell { width: min(100% - 1rem, 82rem); } }

/* TICKET-034: semantic column classes match colgroup, headers, and data cells. */
.table-scroll.sales-project-table-wrapper { box-sizing: border-box; max-width: 100%; overflow-x: auto; }
table.sales-project-table { width: 110rem; min-width: 110rem; max-width: none; table-layout: fixed; }
table.sales-project-table col.col-received, table.sales-project-table th.col-received { width: 11rem; }
table.sales-project-table col.col-title, table.sales-project-table th.col-title { width: 32rem; }
table.sales-project-table col.col-location, table.sales-project-table th.col-location { width: 10rem; }
table.sales-project-table col.col-work-style, table.sales-project-table th.col-work-style { width: 13rem; }
table.sales-project-table col.col-start, table.sales-project-table th.col-start { width: 9rem; }
table.sales-project-table col.col-price, table.sales-project-table th.col-price { width: 12rem; }
table.sales-project-table col.col-count, table.sales-project-table th.col-count { width: 7rem; }
table.sales-project-table col.col-applicants, table.sales-project-table th.col-applicants { width: 6rem; }
table.sales-project-table col.col-actions, table.sales-project-table th.col-actions { width: 10rem; }
table.sales-project-table th, table.sales-project-table td { box-sizing: border-box; white-space: normal; word-break: normal; overflow-wrap: normal; }
table.sales-project-table th.col-received, table.sales-project-table td.col-received { white-space: nowrap; }
table.sales-project-table th.col-title, table.sales-project-table td.col-title { overflow-wrap: anywhere; }
table.sales-project-table th.col-location, table.sales-project-table td.col-location,
table.sales-project-table th.col-work-style, table.sales-project-table td.col-work-style { word-break: keep-all; overflow-wrap: normal; }
table.sales-project-table th.col-start, table.sales-project-table td.col-start { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }