/* Extracted inline styles from index.html */

.inl-001 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.inl-002 {
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--ink-2);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inl-003 {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

.inl-004 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.inl-005 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inl-006 {
    width: 20px;
    height: 20px;
    display: block;
}

.inl-007 {
    display: none;
}

.inl-008 {
    text-align: center;
    margin-top: 8px;
}

.inl-009 {
    font-size: 11px;
    color: var(--ink-2);
    text-decoration: underline;
    opacity: 0.7;
}

.inl-010 {
    color: var(--ink-2);
    opacity: 0.5;
    margin: 0 4px;
    font-size: 11px;
}

.inl-011 {
    color: var(--ink-2);
    opacity: 0.5;
    margin: 0 4px;
    font-size: 11px;
    display: none;
}

.inl-012 {
    font-size: 11px;
    color: var(--ink-2);
    text-decoration: underline;
    opacity: 0.7;
    display: none;
}

.inl-013 {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    margin-left: 4px;
    vertical-align: text-bottom;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inl-014 {
    margin-bottom: 24px;
}

.inl-015 {
    padding: 20px;
}

.inl-016 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.inl-017 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-1);
}

.inl-018 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inl-019 {
    text-align: center;
    margin-bottom: 28px;
    padding: 12px 0;
}

.inl-020 {
    font-size: 32px;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
    letter-spacing: -0.3px;
}

.inl-021 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.inl-022 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(37, 99, 235, 0.04);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.inl-023 {
    font-size: 13px;
    color: #1e40af;
    font-weight: 600;
}

.inl-024 {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
}

.inl-025 {
    background: rgba(234, 88, 12, 0.04);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(234, 88, 12, 0.1);
    border-left: 4px solid rgba(234, 88, 12, 0.4);
}

.inl-026 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.inl-027 {
    font-size: 13px;
    color: #9a3412;
    font-weight: 600;
}

.inl-028 {
    font-size: 16px;
    font-weight: 700;
    color: #ea580c;
}

.inl-029 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inl-030 {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.inl-031 {
    font-size: 12px;
    padding: 8px;
    height: auto;
}

.inl-032 {
    margin-top: 16px;
}

.inl-033 {
    color: var(--ink-1);
}

.inl-034 {
    cursor: pointer;
    font-size: 11px;
    background: var(--accent-1);
    color: white;
}

.inl-035 {
    display: none;
    background: rgba(0, 0, 0, 0.03);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--ink-2);
    line-height: 1.6;
}

.inl-036 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.inl-037 {
    margin-bottom: 8px;
}

.inl-038 {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.inl-039 {
    font-size: 13px;
    font-weight: 500;
}

.inl-040 {
    width: 80px;
    text-align: right;
}

.inl-041 {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    border: 1px solid var(--stroke);
}

.inl-042 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.inl-043 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-1);
}

.inl-044 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.inl-045 {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px dashed var(--stroke);
    padding-top: 8px;
}

.inl-046 {
    margin-top: 16px;
    border-top: 1px dashed rgba(31, 26, 22, 0.1);
    padding-top: 12px;
}

.inl-047 {
    font-size: 13px;
    justify-content: center;
    padding: 8px;
}

.inl-048 {
    display: none;
    background: white;
    padding: 12px;
    border-radius: 12px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-2);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.inl-049 {
    margin: 0 0 8px 0;
    font-weight: 700;
    color: var(--ink-1);
}

.inl-050 {
    margin: 0;
    padding-left: 18px;
    list-style-type: disc;
    margin-bottom: 8px;
}

.inl-051 {
    margin: 0;
}

.inl-052 {
    display: none;
    background: #fffaf5;
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed var(--accent-2);
    margin-top: 16px;
}

.inl-053 {
    color: var(--accent-2);
}

.inl-054 {
    font-size: 13px;
    color: var(--ink-1);
    line-height: 1.5;
}

.inl-055 {
    font-size: 13px;
    color: var(--ink-2);
    margin-top: 0;
    line-height: 1.5;
}

.inl-056 {
    font-size: 12px;
    color: var(--ink-2);
    opacity: 0.8;
}

.inl-057 {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--ink-1);
    font-weight: 600;
}

.inl-058 {
    text-align: right;
    padding-right: 24px;
}

.inl-059 {
    text-align: right;
}

.inl-060 {
    margin-top: 16px;
    padding: 12px;
    background: rgba(240, 126, 85, 0.1);
    border-radius: 8px;
    font-size: 13px;
    color: var(--ink-1);
    line-height: 1.5;
    display: none;
}

.inl-061 {
    text-align: right;
    margin-top: 12px;
}

.inl-062 {
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.inl-063 {
    flex-shrink: 0;
}

.inl-064 {
    background: transparent;
    padding: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    flex: 0 1 auto !important;
    justify-content: flex-start !important;
}

.inl-065 {
    flex: 0 1 auto;
    overflow-x: auto;
    max-width: 100%;
    display: flex;
    gap: 4px;
}

.inl-066 {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 4px;
}

.inl-067 {
    margin-bottom: 4px;
}

.inl-068 {
    margin-top: 12px;
    padding: 0 6px;
}

.inl-069 {
    margin-top: 24px;
    display: none;
}

.inl-070 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.inl-071 {
    display: flex;
    gap: 8px;
}

.inl-072 {
    padding: 6px 12px;
    height: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.inl-073 {
    padding: 6px 12px;
    height: 32px;
}

.inl-074 {
    color: #636366;
    font-size: 13px;
    margin-top: 4px;
}

.inl-075 {
    display: flex;
    gap: 12px;
    align-items: center;
}

.inl-076 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    white-space: nowrap;
}

.inl-077 {
    min-width: 140px;
    border-color: rgba(240, 126, 85, 0.2);
}

.inl-078 {
    height: 44px;
    padding: 0 24px;
    font-size: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f07e55, #d9480f);
    border: none;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(240, 126, 85, 0.3);
}

.inl-079 {
    height: 44px;
    padding: 0 24px;
    font-size: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5c7cfa, #3b5bdb);
    border: none;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(92, 124, 250, 0.3);
}

.inl-080 {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--stroke);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.inl-081 {
    padding: 20px 20px 10px 20px;
}

.inl-082 {
    margin-top: 0;
    font-size: 14px;
    color: #4b5563;
}

.inl-083 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inl-084 {
    display: block;
}

.inl-085 {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding-left: 12px;
    border-left: 2px solid var(--stroke);
}

.inl-086 {
    font-size: 11px;
    color: var(--ink-2);
    line-height: 1.4;
}

.inl-087 {
    padding: 20px;
    background: rgba(240, 126, 85, 0.04);
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.inl-088 {
    height: 50px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    box-shadow: 0 8px 16px rgba(240, 126, 85, 0.12);
    border-radius: 14px;
}

.inl-089 {
    height: 50px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    border: none;
    box-shadow: 0 8px 16px rgba(230, 126, 34, 0.12);
    border-radius: 14px;
}

.inl-090 {
    height: 50px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
    border-radius: 14px;
}

.inl-091 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.inl-092 {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 8px;
}

.inl-093 {
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
}

.inl-094 {
    display: flex;
    gap: 4px;
}

.inl-095 {
    font-size: 12px;
}

.inl-096 {
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.inl-097 {
    max-width: 500px;
}

.inl-098 {
    font-size: 13px;
    color: var(--ink-2);
    margin-bottom: 16px;
}

.inl-099 {
    margin-bottom: 12px;
    display: block;
}

.inl-100 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.inl-101 {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-1);
}

.inl-102 {
    font-size: 12px;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.inl-103 {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

.inl-104 {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-1);
    margin-bottom: 4px;
    display: block;
}

.inl-105 {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    resize: vertical;
    border: 1px solid var(--stroke);
    border-radius: 6px;
}

.inl-106 {
    max-width: 600px;
}

.inl-107 {
    overflow-y: auto;
    max-height: 70vh;
}

.inl-108 {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.6;
}

.inl-109 {
    max-width: 1000px;
    width: 95%;
}

.inl-110 {
    border-right: 1px solid var(--stroke);
}

.inl-111 {
    border-left: none;
}

.inl-112 {
    color: var(--primary);
}

.inl-113 {
    margin-top: 20px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    text-align: center;
    display: none;
}

.inl-114 {
    margin-top: 16px;
    padding: 12px;
    background: rgba(240, 126, 85, 0.1);
    border: 1px solid rgba(240, 126, 85, 0.3);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #d9480f;
    text-align: center;
    line-height: 1.5;
}

.inl-115 {
    font-weight: 500;
    font-size: 12px;
    opacity: 0.9;
}

.inl-116 {
    max-width: 950px;
    width: 95vw;
    height: auto;
    max-height: 95vh;
    background: #08080a;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
}

.inl-117 {
    padding: 20px 32px;
    min-height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0c0c0e;
}

.inl-118 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inl-119 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inl-120 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.inl-121 {
    font-size: 13px;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    display: none;
}

.inl-122 {
    font-size: 28px;
    opacity: 0.4;
    color: #fff;
    background: transparent;
}

.inl-123 {
    flex: 1;
    padding: 0px;
    overflow: auto;
    background: #08080a;
    display: flex;
    min-height: auto;
}

.inl-124 {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 5px;
    transform: none;
    display: flex;
    justify-content: center;
}

.inl-125 {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    text-align: center;
    padding: 40px;
}

.inl-126 {
    width: 100%;
}

.inl-127 {
    max-width: 1200px;
    width: 95vw;
    background: #fafafa;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
}

.inl-128 {
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.inl-129 {
    font-size: 20px;
    font-weight: 900;
}

.inl-130 {
    font-size: 13px;
    color: var(--ink-2);
    opacity: 0.7;
}

.inl-131 {
    padding: 24px 32px;
    overflow-y: auto;
    max-height: 70vh;
    margin-bottom: 0;
    background: #f8fafc;
}

.inl-132 {
    padding: 20px 32px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    justify-content: flex-end;
}

.inl-133 {
    padding: 10px 24px;
    border-radius: 12px;
}

.inl-134 {
    width: 95vw;
    background: #fafafa;
    padding: 0;
    border-radius: 24px;
}

.inl-135 {
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.inl-136 {
    padding: 12px;
    background: #f8fafc;
    overflow: visible;
}

.inl-137 {
    font-size: 11px;
    color: var(--ink-2);
    margin-bottom: 12px;
    line-height: 1.4;
    padding: 0 8px;
}

.inl-138 {
    color: #2563eb;
    font-weight: 700;
}

.inl-139 {
    flex-wrap: nowrap;
}

.inl-140 {
    white-space: nowrap;
}

.inl-141 {
    font-size: 15px;
    white-space: nowrap;
}

.inl-142 {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.inl-143 {
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid var(--stroke);
    white-space: nowrap;
}

.inl-144 {
    margin: 0;
    height: 38px;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}

.inl-145 {
    max-width: 850px;
    width: 95vw;
    background: #fff;
    border-radius: 24px;
}

.inl-146 {
    font-size: 18px;
    font-weight: 900;
    margin: 0;
}

.inl-147 {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-2);
    background: rgba(240, 126, 85, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}

.inl-148 {
    max-height: 60vh;
    overflow-y: auto;
    padding: 12px 24px;
}

.inl-149 {
    padding: 16px 24px;
}

.inl-150 {
    max-width: 1100px;
    width: 95vw;
    background: #fafafa;
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 96vh;
}

.inl-151 {
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    position: relative;
}

.inl-152 {
    display: flex;
    align-items: center;
    gap: 16px;
}

.inl-153 {
    font-size: 20px;
    font-weight: 900;
    margin: 0;
}

.inl-154 {
    padding: 0;
    background: #fff;
    flex: 1;
    overflow-y: auto;
}

.inl-155 {
    text-align: center;
    padding: 40px;
    color: var(--ink-2);
}

.inl-156 {
    font-size: 48px;
    margin-bottom: 16px;
}

.inl-157 {
    font-size: 16px;
    font-weight: 700;
}

.inl-158 {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.7;
}

.inl-159 {
    max-width: 1800px;
    width: 95vw;
    background: #fafafa;
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.inl-160 {
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.inl-161 {
    padding: 20px 32px;
    background: #f8fafc;
    flex: 1;
    overflow-y: auto;
}

.inl-162 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.inl-163 {
    text-align: center;
    width: 60px;
}

.inl-164 {
    text-align: center;
    width: 120px;
}

.inl-165 {
    text-align: center;
    width: 140px;
}

.inl-166 {
    text-align: center;
}

.inl-167 {
    text-align: center;
    width: 35%;
}

.inl-168 {
    text-align: center;
    width: 50px;
}

.inl-169 {
    text-align: center;
    width: 100px;
}

.inl-170 {
    text-align: left;
    padding-left: 12px;
}

.inl-171 {
    text-align: right;
    width: 100px;
}

.inl-172 {
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: auto;
    max-width: 90vw;
}

.inl-173 {
    position: relative;
}

.inl-174 {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.inl-175 {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Farming Analysis UI Enhancement
   ========================================================================== */

/* Panel & Card Base */
.farming-analysis-panel {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.farming-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.farming-header-copy h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--ink-1);
    margin: 4px 0 8px;
    letter-spacing: -0.5px;
}

.farming-kicker {
    font-size: 13px;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: 0.5px;
    margin: 0;
}

.farming-desc {
    font-size: 14px;
    color: var(--ink-2);
    margin: 0;
}

.farming-summary-card {
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.farming-summary-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.farming-summary-value {
    font-size: 32px;
    font-weight: 900;
    color: #10b981;
    line-height: 1.2;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Category Tabs */
.farming-toolbar {
    margin-bottom: 10px;
}

.farming-category-tabs {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.farming-category-tab {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-2);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.farming-category-tab:hover {
    color: var(--ink-1);
    background: rgba(0, 0, 0, 0.02);
}

.farming-category-tab.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.farming-material-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
    margin: 0 0 16px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(248, 250, 252, 0.74);
}

.farming-material-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.farming-material-legend-icon {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(255, 255, 255, 0.86);
}

.farming-material-legend-name {
    line-height: 1.2;
}

/* Matrix -> Card Layout Transition */
.farming-matrix-wrap {
    background: transparent;
    border: none;
}

.farming-matrix-head {
    display: none;
    /* Hide traditional table header */
}

.farming-matrix-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Set Item Card */
.farming-set-item {
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.farming-set-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.farming-set-row {
    --farming-col-icon: 128px;
    --farming-col-name: 260px;
    --farming-col-dungeon: 128px;
    display: grid;
    grid-template-columns: var(--farming-col-icon) var(--farming-col-name) 1fr var(--farming-col-dungeon);
    align-items: stretch;
    min-height: 80px;
}

/* Override existing table behaviors */
.farming-matrix-body .farming-set-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.farming-matrix-body .farming-set-item .farming-set-row:last-child {
    border-bottom: none;
}

.farming-set-prefixes {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.farming-prefix-group {
    display: grid;
    grid-template-columns: 86px 300px 260px minmax(156px, 1fr);
    align-items: stretch;
}

.farming-prefix-divider {
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    /* visual divider */
}

.farming-set-icon-col,
.farming-set-meta,
.farming-set-dungeon-col,
.farming-prefix-name-col,
.farming-prefix-slot-col,
.farming-prefix-exceed-col,
.farming-prefix-material-col,
.farming-prefix-option-col {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.farming-set-meta {
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    align-items: flex-start;
    gap: 6px;
}

.farming-set-meta-main {
    width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.farming-set-dungeon-col {
    border-left: 1px solid rgba(0, 0, 0, 0.04);
    padding: 10px 8px;
    gap: 6px;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(248, 250, 252, 0.64);
}

.farming-set-icon-col {
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    background: #e2e8f0;
}

.farming-set-icon-fill-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.farming-set-icon-col.has-image .farming-set-icon-fallback {
    display: none;
}

.farming-set-icon-fallback {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #334155;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.32);
}

.farming-set-meta-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex: 0 0 auto;
}

.farming-set-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink-1);
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.farming-set-count {
    font-size: 12px;
    color: var(--ink-2);
    background: rgba(0, 0, 0, 0.04);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    align-self: flex-start;
}

.farming-set-dungeon-name {
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.32);
}

.farming-prefix-exceed-col {
    padding-left: 8px;
    padding-right: 8px;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
}

.farming-prefix-name-col {
    padding-right: 8px;
    align-items: flex-end;
    text-align: right;
    justify-content: center;
}

.farming-prefix-slot-col {
    padding-left: 8px;
}

.farming-prefix-material-col {
    padding-left: 14px;
    padding-right: 2px;
    border-left: 1px solid rgba(0, 0, 0, 0.04);
    align-items: flex-start;
    text-align: left;
}

.farming-prefix-material {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    max-width: 100%;
    width: 100%;
}

.farming-prefix-material-icon {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    flex: 0 0 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.86);
}

.farming-prefix-material-trigger {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: default;
    color: inherit;
    flex: 0 0 auto;
}

.farming-prefix-material-name {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.farming-prefix-material-empty {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.2;
}

/* Prefix Name */
.farming-prefix-name-col .farming-prefix-name-empty {
    display: inline-block;
    min-height: 18px;
}

.farming-prefix-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #334155;
    background: transparent;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
}

.farming-prefix-name::before {
    content: none !important;
    display: none !important;
}

.farming-prefix-symbol {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    flex: 0 0 auto;
}

.farming-prefix-name-text {
    line-height: 1.2;
}

/* Slots */
/* (Padding forms part of parent col instead now) */

.farming-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.farming-slot-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.farming-slot-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.farming-slot-btn.is-owned {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2), inset 0 0 0 1px #3b82f6;
}

.farming-slot-btn.is-owned:hover {
    background: #dbeafe;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3), inset 0 0 0 1px #3b82f6;
    transform: translateY(-1px);
}

/* Exceed Buttons */
.farming-exceed-btn-group {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px;
    border-radius: 10px;
    width: fit-content;
    margin-left: 0;
}

.farming-exceed-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.farming-exceed-btn:hover {
    color: var(--ink-1);
    background: rgba(0, 0, 0, 0.04);
}

.farming-exceed-btn.is-active {
    background: white;
    color: #eab308;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.farming-exceed-btn.farming-exceed-vanguard {
    color: #dc2626;
}

.farming-exceed-btn.farming-exceed-vanguard:hover {
    background: rgba(248, 113, 113, 0.14);
    color: #dc2626;
}

.farming-exceed-btn.farming-exceed-vanguard.is-active {
    background: rgba(248, 113, 113, 0.18);
    color: #dc2626;
    border: 1px solid rgba(248, 113, 113, 0.55);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.22);
}

.farming-exceed-btn.farming-exceed-will {
    color: #2563eb;
}

.farming-exceed-btn.farming-exceed-will:hover {
    background: rgba(96, 165, 250, 0.14);
    color: #2563eb;
}

.farming-exceed-btn.farming-exceed-will.is-active {
    background: rgba(96, 165, 250, 0.18);
    color: #2563eb;
    border: 1px solid rgba(96, 165, 250, 0.55);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22);
}

.farming-exceed-btn.farming-exceed-anomaly {
    color: #16a34a;
}

.farming-exceed-btn.farming-exceed-anomaly:hover {
    background: rgba(74, 222, 128, 0.14);
    color: #16a34a;
}

.farming-exceed-btn.farming-exceed-anomaly.is-active {
    background: rgba(74, 222, 128, 0.18);
    color: #16a34a;
    border: 1px solid rgba(74, 222, 128, 0.55);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.22);
}

/* Options */
.farming-prefix-desc-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.farming-prefix-desc {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-1);
}

.farming-prefix-desc-label {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
    margin-top: 2px;
}

.farming-prefix-desc-dmg .farming-prefix-desc-label {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.farming-prefix-desc-util .farming-prefix-desc-label {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

/* Options Toggle Switch */
.farming-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    cursor: pointer;
    user-select: none;
    padding: 6px 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.farming-toggle-label:hover {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--ink-1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.farming-toggle-text {
    position: relative;
    top: 1px;
}

/* Custom CSS Switch */
.farming-toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.farming-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.farming-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.farming-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.farming-toggle-switch input:checked+.farming-toggle-slider {
    background-color: #3b82f6;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.farming-toggle-switch input:focus+.farming-toggle-slider {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.farming-toggle-switch input:checked+.farming-toggle-slider:before {
    transform: translateX(16px);
}

/* Hide Options State */
.farming-matrix-body.hide-options .farming-prefix-option-col {
    display: none;
}

.farming-matrix-body.hide-options .farming-prefix-group {
    grid-template-columns: 86px 300px 260px minmax(156px, 1fr);
}
