/* Workspace home and shared workflow controls. */
#homeSection { max-width: 1380px; }
.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 238px;
    overflow: hidden;
    padding: clamp(30px, 3.5vw, 52px);
    border: 1px solid #253d4d;
    border-radius: 22px;
    background: radial-gradient(circle at 85% 20%, rgba(54, 195, 171, .19), transparent 32%),
                linear-gradient(115deg, #0b1524 0%, #102739 100%);
    color: #f5f9fb;
}
.home-hero::after {
    content: '';
    position: absolute;
    inset: 0 0 0 auto;
    width: 37%;
    background: linear-gradient(90deg, transparent, rgba(119, 218, 202, .04));
    border-left: 1px solid rgba(191, 239, 229, .08);
    pointer-events: none;
}
.home-hero-copy { position: relative; z-index: 1; max-width: 690px; }
.home-eyebrow,
.home-kicker {
    display: block;
    color: #126d66;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.home-eyebrow { margin-bottom: 16px; color: #8de1cc; }
.home-hero h1 {
    max-width: 650px;
    font: 700 clamp(30px, 3.7vw, 50px)/1.08 var(--font-heading);
    letter-spacing: -.01em;
    color: #f7fbfd;
}
.home-hero p { max-width: 590px; margin-top: 15px; color: #b5c9d6; font-size: 15px; line-height: 1.6; }
.home-hero-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 28px; }
.home-hero-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 10px;
    font: 650 13px var(--font-body);
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.home-primary-action { border: 1px solid #8ce6d1; background: #a3ead8; color: #0d2932; }
.home-primary-action:hover { background: #c4f6e9; transform: translateY(-1px); }
.home-secondary-action { border: 1px solid #486272; background: rgba(255,255,255,.05); color: #edf7f7; }
.home-secondary-action:hover { border-color: #8cbaa9; background: rgba(255,255,255,.1); }
.home-hero-mark {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 11px;
    align-self: stretch;
    align-content: center;
    min-width: 120px;
    margin-right: 5%;
    color: rgba(184, 234, 220, .35);
    font: 700 38px/.9 var(--font-heading);
    letter-spacing: -.08em;
    text-align: right;
}
.home-hero-mark span + span { border-top: 1px solid rgba(191, 239, 229, .13); padding-top: 11px; }
.home-content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(285px, .8fr); gap: 20px; margin-top: 22px; }
.home-workflows,
.home-utilities {
    min-width: 0;
    border: 1px solid #dce5eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.home-workflows { padding: 26px 28px 10px; }
.home-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 18px; }
.home-panel-heading h2 { margin-top: 7px; color: #142131; font: 700 22px/1.2 var(--font-heading); letter-spacing: -.01em; }
.home-heading-note { color: #7b8b99; font-size: 12px; white-space: nowrap; }
.home-workflow-list { border-top: 1px solid #e7edf1; }
.home-workflow {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 82px;
    gap: 20px;
    padding: 16px 4px;
    border: 0;
    border-bottom: 1px solid #e7edf1;
    background: transparent;
    color: #172638;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease;
}
.home-workflow:last-child { border-bottom: 0; }
.home-workflow:hover { background: #f8fbfa; }
.home-workflow-number { color: #12836c; font: 700 12px var(--font-body); font-variant-numeric: tabular-nums; }
.home-workflow-copy { display: grid; gap: 5px; min-width: 0; }
.home-workflow-copy strong { font-size: 14px; font-weight: 700; }
.home-workflow-copy small { color: #66798b; font-size: 12px; line-height: 1.45; }
.home-workflow-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: auto;
    border: 1px solid #dce6e9;
    border-radius: 8px;
    color: #496371;
    font-size: 11px;
    flex: none;
}
.home-workflow:hover .home-workflow-icon { background: #dff5ed; border-color: #b9dfd2; color: #146c58; }
.home-utilities { padding: 25px; }
.home-project-panel {
    min-height: 150px;
    padding: 18px 20px;
    border: 1px solid #d9e8e4;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecf8f4, #f6faf9);
}
.home-project-panel strong { display: block; margin-top: 12px; color: #16312e; font: 700 17px/1.25 var(--font-heading); overflow-wrap: anywhere; }
.home-project-panel p { margin-top: 7px; color: #5c7872; font-size: 12px; line-height: 1.5; }
.home-utility-links { display: grid; gap: 3px; margin-top: 13px; }
.home-utility-links button {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 62px;
    padding: 10px 7px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    color: #213448;
    cursor: pointer;
}
.home-utility-links button:hover { background: #f3f7f8; }
.home-utility-links button > span:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.home-utility-links strong { font-size: 12px; }
.home-utility-links small { color: #758697; font-size: 11px; }
.home-utility-links button > i { color: #718798; font-size: 11px; }
.home-utility-symbol { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #dbe6ea; border-radius: 9px; color: #126d66; flex: none; }

/* Make multi-step journeys readable and usable at narrow widths. */
.meshlist-tabs,
.meshstore-tabs,
.meshfeed-tabs,
.ac-tabs {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border: 1px solid #dce5eb;
    border-radius: 13px;
    background: #eaf0f4;
    box-shadow: none;
    overflow: visible;
}
.meshfeed-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ac-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.meshlist-tab,
.meshstore-tab,
.meshfeed-tab,
.ac-tab {
    min-width: 0;
    min-height: 43px;
    padding: 9px 10px;
    border-radius: 9px;
    line-height: 1.25;
    white-space: normal;
}
.meshlist-tab .tab-step-label,
.meshstore-tab .tab-step-label,
.meshfeed-tab .tab-step-label,
.ac-tab .tab-step-label { white-space: normal; text-align: center; }
.meshlist-tab .tab-step-number,
.meshstore-tab .tab-step-number,
.meshfeed-tab .tab-step-number {
    width: 23px;
    height: 23px;
    flex: none;
    background: #fff;
    color: #5f7487;
}
.meshlist-tab.active,
.meshstore-tab.active,
#meshfeedTabs .meshfeed-tab.active,
.ac-tab.active {
    background: #fff;
    color: #125e65;
    box-shadow: 0 1px 5px rgba(15, 32, 48, .1);
}
.meshlist-tab.active .tab-step-number,
.meshstore-tab.active .tab-step-number,
#meshfeedTabs .meshfeed-tab.active .tab-step-number { background: #dff5ed; color: #146c58; }
.meshads-inline-tabs { background: #eaf0f4; border-color: #dce5eb; border-radius: 12px; padding: 4px; }
.meshads-inline-tab.active { background: #fff; color: #125e65; border-radius: 9px; box-shadow: 0 1px 5px rgba(15,32,48,.09); }
.main-content .panel-header,
.main-content .meshlist-import-card,
.main-content .meshstore-header,
.main-content .meshfeed-products-panel,
.main-content .onboarding-panel {
    border-radius: 14px;
}
.main-content .inline-credits-panel { border-radius: 13px; box-shadow: none; }
.main-content .panel-actions { flex-wrap: wrap; }
#meshlistSection > .inline-credits-panel {
    gap: 10px;
    padding: 10px 14px;
    background: #f7fafb;
    margin-bottom: 15px;
}
#meshlistSection > .inline-credits-panel .inline-credits-info > div { margin-bottom: 0 !important; }
#meshlistSection > .inline-credits-panel h4,
#meshlistSection > .inline-credits-panel p { display: none; }
#productsSection .products-header {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 15px;
}
#productsSection .products-header > button { min-height: 40px; }
#productsSection .products-filters {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
#productsSection .products-filters .search-box { flex: 1 1 280px; }
#productsSection .products-filters .product-count { margin-left: auto; white-space: nowrap; }
#productsSection .products-list { border-radius: 13px; }
#productsSection > .feature-toggle-card,
#productsSection > .inline-credits-panel { margin-top: 16px; margin-bottom: 0 !important; }

@media (max-width: 1050px) {
    .home-content-grid { grid-template-columns: 1fr; }
    .home-utilities { display: grid; grid-template-columns: minmax(230px, .8fr) 1fr; gap: 14px; }
    .home-utility-links { margin-top: 0; }
}
@media (max-width: 768px) {
    .home-hero { min-height: 0; padding: 30px 25px; }
    .home-hero-mark { display: none; }
    .home-content-grid { gap: 14px; margin-top: 14px; }
    .home-utilities { display: block; }
    .home-workflows { padding: 22px 20px 8px; }
    .home-heading-note { display: none; }
    .home-workflow { gap: 14px; }
    .meshlist-tabs,
    .meshstore-tabs,
    .meshfeed-tabs,
    .ac-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
    .meshlist-tab,
    .meshstore-tab,
    .meshfeed-tab,
    .ac-tab { flex: none; white-space: normal; }
    .meshads-inline-tabs { width: 100%; }
    #productsSection .products-header { flex-direction: row; align-items: stretch; }
    #productsSection .products-header > button {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        margin: 0;
        justify-content: center;
    }
    #productsSection .products-filters { flex-direction: column; align-items: stretch; width: 100%; }
    #productsSection .products-filters .search-box { flex: 0 0 auto; width: 100%; min-width: 0; }
    #productsSection .products-filters .product-type-filter { flex: 0 0 auto; width: 100%; min-width: 0; }
    #productsSection .products-filters .product-count { margin-left: 0; }
    #productsSection .products-table:has(.empty-message) { min-width: 0; width: 100%; }
    #productsSection .products-table:has(.empty-message) thead { display: none; }
    #productsSection .products-table .empty-message { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 430px) {
    .home-hero h1 { font-size: 32px; }
    .home-hero-actions button { width: 100%; }
    .home-workflow-copy small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-workflow,
    .home-hero-actions button,
    .home-utility-links button { transition: none; }
}
