/* ===== My Page (devpost portfolio style) ===== */

/* Portfolio Header */
#portfolio-header {
    position: relative;
    background: #fff;
}

#portfolio-cover {
    height: 120px;
    background: #2b3137;
}

.portfolio-row {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

#portfolio-user {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: -40px;
    padding-bottom: 24px;
}

#portfolio-user-photo {
    flex-shrink: 0;
    text-align: center;
}

#portfolio-user-photo .user-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    background: #f0f0f0;
    display: block;
}

.portfolio-user-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.btn-portfolio {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    background: #3a8bbb;
    color: #fff;
    border: 1px solid #3a8bbb;
}

.btn-portfolio:hover {
    background: #2d7aa3;
    color: #fff;
}

.btn-portfolio-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.btn-portfolio-secondary:hover {
    background: #f5f5f5;
    color: #333;
}

/* User Info */
#portfolio-user-info {
    flex: 1;
    padding-top: 48px;
}

#portfolio-user-name {
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
    line-height: 1.3;
}

#portfolio-user-name small {
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

.portfolio-user-bio {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
}

.portfolio-user-links {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    gap: 16px;
}

.portfolio-user-links li {
    font-size: 13px;
    color: #666;
}

.portfolio-user-links li i {
    margin-right: 4px;
    color: #999;
}

/* Tag lists */
.tag-list {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.cp-tag-heading {
    font-size: 12px;
    color: #333;
    flex-shrink: 0;
    padding-top: 2px;
}

.cp-tag-heading a {
    color: #999;
    text-decoration: none;
    margin-left: 4px;
}

.cp-tag-heading a:hover {
    color: #333;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cp-tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 400;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    line-height: 1.6;
}

/* Portfolio Navigation */
.portfolio-nav-row {
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

#portfolio-navigation {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

#portfolio-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0;
}

#portfolio-navigation ul li {
    position: relative;
}

#portfolio-navigation ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    font-family: 'Noto Serif KR', 'KoPub Batang', 'Nanum Myeongjo', serif;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.15s ease;
}

#portfolio-navigation ul li a:hover {
    color: #333;
}

#portfolio-navigation ul li.active a {
    color: #333;
    font-weight: 600;
    border-bottom-color: #3a8bbb;
}

.totals {
    display: block;
    text-align: center;
    margin-bottom: 2px;
}

.totals span {
    font-family: 'Noto Serif KR', 'KoPub Batang', 'Nanum Myeongjo', serif;
    font-weight: 600;
    font-size: 54px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    display: inline-block;
    color: #111;
    -webkit-font-smoothing: antialiased;
    line-height: 1;
}

/* Portfolio Content - Project List */
.portfolio-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 24px 80px;
}

.project-entries {
    list-style: none;
    margin: 0;
    padding: 0;
}

.project-entry {
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
}

.project-entry:first-child {
    padding-top: 0;
}

.project-entry-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.project-thumbnail {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-title {
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
}

.project-tagline {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.4;
}

.project-meta {
    margin-bottom: 8px;
}

.project-built-with {
    font-size: 11px;
    color: #999;
}

.project-built-with i {
    margin-right: 4px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.project-tags .cp-tag {
    font-size: 11px;
    padding: 1px 8px;
}

/* Stage 셀렉터 */
.project-stage-select {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.project-stage-select label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.project-stage-select label i {
    margin-right: 3px;
    font-size: 11px;
}

.stage-select {
    padding: 4px 28px 4px 10px;
    font-size: 12px;
    font-family: inherit;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.stage-select:hover {
    border-color: #cbd5e1;
}

.stage-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.project-actions {
    flex-shrink: 0;
    align-self: flex-start;
}

.btn-portfolio-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-portfolio-sm:hover {
    color: #333;
    border-color: #bbb;
    background: #f5f5f5;
}

.btn-portfolio-sm i {
    font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    #portfolio-user {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #portfolio-user-info {
        padding-top: 0;
    }

    .tag-list {
        justify-content: center;
    }

    #portfolio-navigation ul {
        overflow-x: auto;
    }

    .project-entry-inner {
        flex-direction: column;
    }

    .project-thumbnail {
        width: 100%;
        height: 160px;
    }
}

/* ===== Luxury Project Card ===== */
.serif-font { font-family: 'Cormorant Garamond', serif; }

.luxury-project-card {
    list-style: none;
    border-bottom: 1px solid #ebebeb;
    padding: 32px 0;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #000;
}

.card-main-info {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.p-thumb {
    width: 160px;
    flex-shrink: 0;
}
.p-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
    border: 1px solid #eee;
}

.p-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.p-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #000;
}
.p-desc {
    font-size: 13px;
    color: #555;
    margin: 0 0 16px 0;
}

.p-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.p-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #000;
    border: 1px solid #ddd;
    padding: 3px 8px;
    text-transform: uppercase;
}

.p-meta-row {
    display: flex;
    align-items: center;
    gap: 24px;
}
.p-stage-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.meta-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
}
.luxury-select {
    font-size: 12px;
    font-weight: 500;
    color: #000;
    border: none;
    border-bottom: 1px solid #000;
    padding: 2px 20px 2px 0;
    background: transparent;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="8" height="4" viewBox="0 0 8 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0L4 4L8 0" stroke="%23000" stroke-width="1"/></svg>');
    background-repeat: no-repeat;
    background-position: right center;
    cursor: pointer;
}

.p-actions {
    display: flex;
    align-items: flex-start;
}
.btn-edit-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #000;
    text-decoration: none;
    border: 1px solid #000;
    padding: 8px 16px;
    transition: all 0.2s;
}
.btn-edit-link:hover {
    background: #000;
    color: #fff;
}

.btn-log-toggle {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    background: #000;
    border: 1px solid #000;
    padding: 6px 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-log-toggle:hover { opacity: 0.8; }

/* Micro Logging Accordion */
.card-log-dropdown {
    margin-top: 24px;
    padding: 24px;
    background: #fafafa;
    border: 1px solid #eee;
}

.log-divider {
    height: 1px;
    background: #000;
    margin-bottom: 24px;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.log-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}
.log-stats {
    font-size: 12px;
    color: #555;
    display: flex;
    gap: 16px;
}
.log-stats strong { color: #000; font-weight: 600; }
.log-stats small { font-size: 9px; color: #aaa; letter-spacing: 0.5px; }
.btn-timeline-open {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #000;
    background: transparent;
    border: 1px solid #000;
    padding: 3px 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 4px;
}
.btn-timeline-open:hover {
    background: #000;
    color: #fff;
}

/* Timeline Modal */
.timeline-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.timeline-modal {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    border: 1px solid #000;
}
.timeline-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #000;
}
.timeline-modal-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0;
}
.timeline-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    line-height: 1;
    padding: 0;
}
.timeline-modal-close:hover {
    opacity: 0.5;
}
.timeline-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.log-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.btn-log-action {
    background: #fff;
    border: 1px solid #ccc;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 16px 0;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-log-action:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

.log-input-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.luxury-textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-size: 13px;
    padding: 8px 0;
    resize: none;
    color: #000;
    font-family: inherit;
}
.luxury-textarea:focus {
    outline: none;
    border-bottom-color: #000;
}

.timeline-title {
    font-size: 11px;
    color: #888;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.timeline-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #eee;
}
.timeline-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}
.t-time { color: #888; width: 40px; }
.t-type { font-weight: 600; color: #000; width: 60px; }
.t-date { color: #555; }

/* Log Input Fields */
.log-input-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-end;
}
.log-input-row .log-field {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}
.log-field {
    margin-bottom: 16px;
}
.log-field-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.luxury-date {
    font-size: 12px;
    font-weight: 500;
    color: #000;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 4px 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}
.luxury-date:focus {
    outline: none;
    border-bottom-color: #000;
}
.luxury-tag-input {
    width: 100%;
    font-size: 12px;
    color: #000;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 4px 0;
    background: transparent;
    font-family: inherit;
}
.luxury-tag-input:focus {
    outline: none;
    border-bottom-color: #000;
}
.recent-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.recent-tags .p-tag {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.recent-tags .p-tag:hover {
    opacity: 1;
}

/* Timeline Enhanced */
.timeline-item .t-msg {
    flex: 1;
    color: #555;
    font-size: 12px;
}
.t-type.type-DONE { color: #000; font-weight: 700; }
.t-type.type-IN_PROGRESS { color: #2563eb; font-weight: 700; }
.t-type.type-MISSED { color: #dc2626; font-weight: 600; }
.timeline-empty {
    justify-content: center;
    color: #aaa;
}
.timeline-empty .t-msg {
    color: #aaa;
    text-align: center;
}
.timeline-date-header {
    padding: 16px 0 4px;
    border-bottom: none;
}
.timeline-date-header span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
}
.t-tags {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
}
.t-tag {
    font-size: 10px;
    color: #888;
    font-weight: 500;
}

/* Undo Toast */
.undo-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    z-index: 10000;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.undo-toast-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.undo-toast-btn:hover {
    background: #fff;
    color: #000;
}

/* Timeline Delete Button */
.t-delete {
    background: none;
    border: none;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}
.t-delete:hover {
    color: #dc2626;
}

/* Timeline cycle / milestone badges */
.t-cycle {
    font-size: 10px;
    color: #2563eb;
    font-weight: 600;
    margin-left: 8px;
    letter-spacing: 0.3px;
}
.t-milestone {
    font-size: 10px;
    color: #9333ea;
    font-weight: 600;
    margin-left: 8px;
    letter-spacing: 0.3px;
}

/* Cycle banner inside DAILY LOG */
.cycle-banner {
    margin: 12px 0 8px;
}
.cycle-banner-inner {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    border-radius: 6px;
}
.cycle-banner-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.3px;
}
.cycle-banner-name {
    flex: 1;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
}
.cycle-banner-days {
    color: #666;
}
.cycle-banner-pct {
    font-weight: 700;
    color: #2563eb;
}
.cycle-banner-empty {
    padding: 8px 12px;
    border: 1px dashed #d1d5db;
    background: #fafafa;
    border-radius: 6px;
    font-size: 11px;
    color: #888;
    letter-spacing: 0.3px;
}
.cycle-banner-empty a {
    color: #2563eb;
    text-decoration: underline;
}
.cycle-progress-track {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}
.cycle-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #9333ea);
    transition: width 0.3s ease;
}

/* Cycle / Milestone management modal */
.cm-form {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fafafa;
    margin-bottom: 16px;
}
.cm-form-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #111;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.cm-form-row {
    margin-bottom: 10px;
}
.cm-form-row-inline {
    display: flex;
    gap: 10px;
}
.cm-inline-field {
    flex: 1;
    min-width: 0;
}
.cm-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.cm-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cm-item {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}
.cm-item-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.cm-item-title {
    flex: 1;
    font-weight: 700;
    color: #111;
    font-size: 13px;
}
.cm-item-status {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 3px;
}
.cm-status-ACTIVE    { background: rgba(34,197,94,0.12);  color: #16a34a; }
.cm-status-PLANNED   { background: rgba(156,163,175,0.15); color: #4b5563; }
.cm-status-COMPLETED { background: rgba(59,130,246,0.12); color: #2563eb; }
.cm-status-CANCELED  { background: rgba(239,68,68,0.10);  color: #dc2626; }
.cm-item-goal {
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.4;
}
.cm-item-dates {
    font-size: 10px;
    color: #888;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.cm-item-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.cm-btn {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111;
    cursor: pointer;
    border-radius: 3px;
    text-transform: uppercase;
}
.cm-btn:hover {
    background: #f5f5f5;
}
.cm-btn-primary {
    background: #111;
    color: #fff;
    border-color: #111;
}
.cm-btn-primary:hover {
    background: #000;
}
.cm-btn-danger {
    color: #dc2626;
    border-color: #fecaca;
}
.cm-btn-danger:hover {
    background: #fef2f2;
}
.cm-empty {
    padding: 20px;
    text-align: center;
    color: #aaa;
    font-size: 12px;
}

/* Members list */
.mm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mm-item {
    display: grid;
    grid-template-columns: 36px 1fr auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}
.mm-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
}
.mm-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #6b7280;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.mm-info { min-width: 0; }
.mm-name {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mm-sub {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mm-role {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 3px;
}
.mm-role-OWNER  { background: #111; color: #fff; }
.mm-role-ADMIN  { background: rgba(59,130,246,0.12); color: #2563eb; }
.mm-role-MEMBER { background: rgba(34,197,94,0.12); color: #16a34a; }
.mm-role-VIEWER { background: rgba(156,163,175,0.15); color: #4b5563; }
.mm-status {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 3px;
}
.mm-status-ACTIVE  { background: rgba(34,197,94,0.08); color: #16a34a; }
.mm-status-PENDING { background: rgba(251,191,36,0.15); color: #b45309; }
.mm-status-LEFT    { background: rgba(156,163,175,0.12); color: #6b7280; }
.mm-status-REMOVED { background: rgba(239,68,68,0.10); color: #dc2626; }
.mm-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}
.mm-role-select {
    font-size: 10px;
    padding: 2px 4px;
}

/* Timeline tabs */
.timeline-tabs {
    display: flex;
    gap: 4px;
    margin-left: auto;
    margin-right: 12px;
}
.timeline-tab {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111;
    cursor: pointer;
    border-radius: 3px;
    text-transform: uppercase;
}
.timeline-tab.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Timeline author avatar + assignee badge */
.t-author {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    margin-right: 4px;
}
.t-author img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.t-author-initials {
    background: #6b7280;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}
.t-assignee {
    font-size: 10px;
    color: #16a34a;
    font-weight: 600;
    margin-left: 8px;
    letter-spacing: 0.3px;
}

/* Luxury Card Responsive */
@media (max-width: 768px) {
    .card-main-info {
        flex-direction: column;
    }
    .p-thumb {
        width: 100%;
    }
    .log-action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 다크모드 ===== */
html.dark-mode #portfolio-header {
    background: #000 !important;
}
html.dark-mode #portfolio-cover {
    background: #000 !important;
}
html.dark-mode .portfolio-row {
    background: #000 !important;
}
html.dark-mode #portfolio-user-info {
    color: #f5f5f7 !important;
}
html.dark-mode #portfolio-user-name,
html.dark-mode #portfolio-user-name small {
    color: #f5f5f7 !important;
}
html.dark-mode .portfolio-user-bio {
    color: #ccc !important;
}
html.dark-mode .portfolio-user-links li {
    color: #ccc !important;
}
html.dark-mode .portfolio-user-links li i {
    color: #ccc !important;
}
html.dark-mode .cp-tag-heading strong {
    color: #f5f5f7 !important;
}
html.dark-mode .cp-tag-heading a {
    color: #999 !important;
}
html.dark-mode #portfolio-header .cp-tag {
    background: #1d1d1f !important;
    color: #ccc !important;
    border-color: #333 !important;
}
html.dark-mode .btn-portfolio {
    background: #f5f5f7 !important;
    color: #000 !important;
    border-color: #f5f5f7 !important;
}
html.dark-mode .btn-portfolio:hover {
    background: #ccc !important;
}
html.dark-mode .btn-portfolio-secondary {
    background: #1d1d1f !important;
    color: #f5f5f7 !important;
    border-color: #333 !important;
}
html.dark-mode .btn-portfolio-secondary:hover {
    background: #252527 !important;
}
html.dark-mode .project-entry {
    background: #1d1d1f !important;
    border-color: #2a2a2a !important;
    border-radius: 8px;
    padding: 16px !important;
    margin-bottom: 12px;
}
html.dark-mode .project-title {
    color: #f5f5f7 !important;
}
html.dark-mode .project-tagline {
    color: #999 !important;
}
html.dark-mode .project-built-with {
    color: #888 !important;
}
html.dark-mode .project-built-with i {
    color: #666 !important;
}
html.dark-mode .project-tags .cp-tag {
    background: #252527 !important;
    color: #ccc !important;
    border-color: #444 !important;
}
html.dark-mode .project-stage-select label {
    color: #94a3b8 !important;
}
html.dark-mode .stage-select {
    background: #252527 !important;
    color: #ccc !important;
    border-color: #444 !important;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
}
html.dark-mode .stage-select:focus {
    border-color: #4f46e5 !important;
}
html.dark-mode .btn-portfolio-sm {
    background: #252527 !important;
    color: #ccc !important;
    border-color: #444 !important;
}
html.dark-mode .btn-portfolio-sm:hover {
    background: #333 !important;
    color: #fff !important;
}
html.dark-mode .project-thumbnail img {
    opacity: 0.85;
}
