.logo-preview-row {
    padding: 0.75rem;
}

.logo-thumb {
    height: 6rem;
    width: 6rem;
    object-fit: contain;
    padding: 0.5rem;
    flex: 0 0 auto;
}

.logo-placeholder {
    height: 6rem;
    width: 6rem;
    flex: 0 0 auto;
}

.logo-large {
    height: 8rem;
    width: 8rem;
    object-fit: contain;
    padding: 0.75rem;
    flex: 0 0 auto;
}

.logo-placeholder-large {
    height: 8rem;
    width: 8rem;
    flex: 0 0 auto;
}

.app-shell-bg {
    background: linear-gradient(180deg, #fbfefd 0%, #ffffff 18rem);
}

.text-teal-700 {
    color: #0cb02b;
}

.text-teal-800,
.hover\:text-teal-800:hover {
    color: #087d1f;
}

.border-teal-200 {
    border-color: #b9f3c4;
}

.bg-teal-50 {
    background-color: #effff2;
}

.btn-primary {
    background-color: #0cb02b;
}

.btn-primary:hover {
    background-color: #099625;
}

.field-input:focus {
    border-color: #0cb02b;
    box-shadow: 0 0 0 4px rgba(12, 176, 43, 0.16);
}

.inventory-qty-input {
    width: 5.5rem;
}

.inventory-buyer-text {
    min-height: 22rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.account-card-actions {
    justify-content: flex-end;
}

.p-4 {
    padding: 1rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-5 {
    padding: 1.25rem;
}

.pr-4 {
    padding-right: 1rem;
}

.-mx-4 {
    margin-right: -1rem;
    margin-left: -1rem;
}

.bottom-0 {
    bottom: 0;
}

.sticky {
    position: sticky;
}

.z-10 {
    z-index: 10;
}

.h-8 {
    height: 2rem;
}

.w-8 {
    width: 2rem;
}

.min-w-full {
    min-width: 100%;
}

.overflow-x-auto {
    overflow-x: auto;
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.5rem;
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.75rem;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1.5rem;
}

.divide-y > :not([hidden]) ~ :not([hidden]) {
    border-top-width: 1px;
}

.divide-slate-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: #f1f5f9;
}

.bg-white\/95 {
    background-color: rgba(255, 255, 255, 0.95);
}

.workout-set-row {
    display: grid;
    gap: 0.5rem;
}

.workout-exercise-name {
    min-width: 0;
    font-weight: 800;
}

.workout-routine-select {
    font-weight: 800;
}

.workout-progress-chart-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
    padding: 1rem;
}

.workout-progress-chart {
    display: block;
    min-width: 56rem;
    width: 100%;
    height: auto;
}

.workout-progress-axis {
    stroke: #94a3b8;
    stroke-width: 2;
}

.workout-progress-grid {
    stroke: #e2e8f0;
    stroke-width: 1;
}

.workout-progress-line {
    fill: none;
    stroke: #0cb02b;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.workout-progress-point {
    fill: #ffffff;
    stroke: #0cb02b;
    stroke-width: 4;
}

.workout-progress-label {
    fill: #020617;
    font-size: 13px;
    font-weight: 800;
}

.workout-progress-date,
.workout-progress-axis-label {
    fill: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.workout-progress-best-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.workout-progress-best-card {
    display: block;
    border: 1px solid #dbe4ef;
    border-radius: 0.75rem;
    background: #f8fafc;
    padding: 0.75rem;
    text-decoration: none;
}

.workout-progress-best-card:hover {
    border-color: #b9f3c4;
    background: #effff2;
}

.workout-progress-best-card span,
.workout-progress-best-card small {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.workout-progress-best-card strong {
    display: block;
    margin-top: 0.15rem;
    color: #020617;
    font-size: 0.9rem;
    font-weight: 800;
}

.workout-calendar-weekdays,
.workout-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.workout-calendar-pair {
    display: grid;
    gap: 0.75rem;
}

.workout-calendar-page {
    margin-top: -1.25rem;
}

.workout-calendar-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.65rem;
}

.workout-calendar-toolbar .btn-primary,
.workout-calendar-toolbar .btn-secondary {
    min-height: 2rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
}

.workout-calendar-title {
    text-align: center;
    min-width: 0;
}

.workout-calendar-title p {
    color: #0cb02b;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.workout-calendar-title h1 {
    color: #020617;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
}

.workout-calendar-title span {
    color: #475569;
    font-size: 0.76rem;
    font-weight: 600;
}

.workout-calendar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.workout-calendar-month-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.workout-calendar-month-header h2 {
    color: #020617;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.workout-calendar-month-header span {
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.workout-calendar-weekdays {
    gap: 0.35rem;
    padding-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.6rem;
    font-weight: 800;
    text-align: center;
}

.workout-calendar-grid {
    gap: 0.35rem;
}

.workout-calendar-day {
    min-height: 2.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.45rem;
    background: #ffffff;
    padding: 0.28rem;
}

.workout-calendar-day-muted {
    background: #f8fafc;
    border-color: #eef2f7;
}

.workout-calendar-today {
    border-color: #0cb02b;
    box-shadow: 0 0 0 3px rgba(12, 176, 43, 0.12);
}

.workout-calendar-date {
    margin-bottom: 0.14rem;
    color: #020617;
    font-size: 0.68rem;
    font-weight: 800;
}

.workout-calendar-event {
    display: block;
    margin-top: 0.12rem;
    border: 1px solid #b9f3c4;
    border-radius: 0.35rem;
    background: #effff2;
    padding: 0.12rem 0.22rem;
    color: #087d1f;
    text-decoration: none;
}

.workout-calendar-event:hover {
    background: #dcffe4;
}

.workout-calendar-event-name,
.workout-calendar-event-meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workout-calendar-event-name {
    color: #064f18;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.workout-calendar-event-meta {
    margin-top: 0.2rem;
    color: #087d1f;
    font-size: 0.72rem;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .workout-calendar-toolbar {
        grid-template-columns: 1fr;
    }

    .workout-calendar-actions {
        justify-content: stretch;
    }

    .workout-calendar-actions a {
        flex: 1 1 auto;
    }

    .workout-calendar {
        overflow-x: auto;
    }

    .workout-calendar-weekdays,
    .workout-calendar-grid {
        min-width: 48rem;
    }
}

@media (min-width: 1024px) {
    .workout-calendar-pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workout-calendar-compact {
        padding: 0.65rem;
    }

    .workout-calendar-nav {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

@media (min-width: 640px) {
    .workout-set-row {
        grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1fr) 7rem auto;
        align-items: start;
    }

    .sm\:border {
        border-width: 1px;
    }

    .sm\:rounded-xl {
        border-radius: 0.75rem;
    }

    .sm\:shadow-sm {
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .lg\:col-span-4 {
        grid-column: span 4 / span 4;
    }

    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.inventory-memory-fields {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-0.35rem);
    transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.inventory-memory-fields.inventory-memory-open {
    max-height: 24rem;
    opacity: 1;
    transform: translateY(0);
}

.inventory-search-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-0.35rem);
    transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.inventory-search-panel.inventory-search-open {
    max-height: 34rem;
    opacity: 1;
    transform: translateY(0);
}

.credential-icon,
.credential-icon-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.credential-icon {
    height: 3rem;
    width: 3rem;
}

.credential-icon-large {
    height: 4rem;
    width: 4rem;
}

.credential-icon-svg {
    height: 1.65rem;
    width: 1.65rem;
}

.credential-icon-large .credential-icon-svg {
    height: 2.25rem;
    width: 2.25rem;
}

.control-brand {
    font-family: Helvetica, Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    color: #020617;
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(203, 213, 225, 0.72);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.app-header-inner {
    display: flex;
    width: 100%;
    max-width: 72rem;
    flex-direction: column;
    gap: 0.9rem;
    margin: 0 auto;
    padding: 1.15rem 1rem;
}

.app-nav {
    display: flex;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #dbe4ef;
    border-radius: 1rem;
    background: #f8fafc;
    padding: 0.35rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.app-nav-link,
.app-logout-button {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 0;
    padding: 0.62rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.app-nav-link {
    color: #0cb02b;
}

.app-nav-link:hover {
    background: #effff2;
    color: #087d1f;
}

.app-nav-link-active {
    background: #0cb02b;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(12, 176, 43, 0.2);
}

.app-nav-link-active:hover {
    background: #0aa327;
    color: #ffffff;
}

.app-logout-button {
    cursor: pointer;
    background: #e11d48;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.16);
}

.app-logout-button:hover {
    background: #be123c;
    transform: translateY(-1px);
}

@media (min-width: 640px) {
    .app-header-inner {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .app-header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .app-nav {
        margin-left: auto;
    }
}
