[v-cloak] { display: none; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f0f7ff;
    color: #2c3e50;
    line-height: 1.5;
    padding: 12px;
}
#app {
    max-width: 1300px;
    margin: 0 auto;
}
.welcome-card {
    background: white;
    border-radius: 32px;
    padding: 30px 20px;
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.15);
    text-align: center;
    margin-top: 20px;
}
.logo {
    width: 100px;
    height: 100px;
    background: #e6f0ff;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('./img/logo.png');
    background-size: cover;
    background-position: center;
}
h1 {
    font-size: 2.4rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4a90e2, #7fb0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}
.subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: #4a90e2;
    margin-bottom: 20px;
}
.intro-text {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 24px;
    text-align: left;
    font-size: 0.95rem;
    color: #2c3e50;
    margin: 24px 0;
    border: 1px solid #b8d4f0;
}
.intro-text a {
    color: #4a90e2;
    text-decoration: none;
    border-bottom: 1px dashed #4a90e2;
}
.intro-text a:hover { border-bottom: 1px solid; }
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
}
.social-link {
    background: #e6f0ff;
    width: 52px;
    height: 52px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.social-link:hover {
    background: #4a90e2;
    transform: translateY(-3px);
}
.social-link img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.btn {
    background: linear-gradient(145deg, #4a90e2, #6aa6f0);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 1.2rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(74,144,226,0.4);
    transition: 0.2s;
}
.btn:hover { background: linear-gradient(145deg, #3a80d2, #5a96e0); transform: scale(1.02); }

.editor-container {
    background: white;
    border-radius: 36px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(74,144,226,0.15);
    margin-top: 20px;
    position: relative;
}
.maintenance-note {
    background: #fff3cd;
    border-left: 6px solid #ffc107;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    color: #856404;
    margin-bottom: 20px;
}
.tabs {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #d0e2f5;
    padding-bottom: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tab {
    padding: 8px 18px;
    background: #e6f0ff;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #2c3e50;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.tab.active {
    background: #4a90e2;
    color: white;
}
.back-to-top {
    position: sticky;
    top: 10px;
    float: right;
    background: #4a90e2;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 100;
    transition: 0.2s;
}
.back-to-top:hover {
    background: #2a70c2;
    transform: scale(1.1);
}
.form-section {
    margin-bottom: 28px;
    border-left: 4px solid #b8d4f0;
    padding-left: 16px;
    clear: both;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 16px;
}
.form-label {
    width: 200px;
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
}
.info-icon {
    color: #4a90e2;
    cursor: pointer;
    font-size: 1rem;
}
.tooltip-text {
    display: none;
}
input[readonly], input[disabled] {
    background: #f5f9ff;
    color: #5a6b7a;
    border-color: #b8d4f0;
    cursor: not-allowed;
}
.checkbox-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    margin-left: 10px;
}
.checkbox-switch input[type="checkbox"] {
    height: 0;
    width: 0;
    visibility: hidden;
    position: absolute;
}
.checkbox-switch label {
    cursor: pointer;
    text-indent: -9999px;
    width: 50px;
    height: 26px;
    background: #cbd5e0;
    display: block;
    border-radius: 26px;
    position: relative;
    transition: 0.2s;
}
.checkbox-switch label:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 20px;
    transition: 0.2s;
}
.checkbox-switch input:checked + label {
    background: #4a90e2;
}
.checkbox-switch input:checked + label:after {
    left: calc(100% - 3px);
    transform: translateX(-100%);
}
.checkbox-switch .switch-label {
    font-size: 0.9rem;
    color: #2c3e50;
    white-space: nowrap;
}

input, select, textarea {
    padding: 10px 18px;           
    border: 2px solid #d0e2f5;
    border-radius: 30px;
    font-size: 0.95rem;
    background: white;
    flex: 1 1 400px;
    min-width: 200px;
    max-width: 700px;             
    transition: 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4a90e2;
}
textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 100px;
}
.input-small {
    width: 100px;
    flex: 0 0 auto;
}

.outfit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    margin: 16px 0;
}
.outfit-card {
    background: #f5f9ff;
    border-radius: 20px;
    padding: 12px 6px 8px;
    text-align: center;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    box-shadow: 0 5px 12px rgba(74,144,226,0.1);
}
.outfit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(74,144,226,0.2);
}
.outfit-card.selected {
    border-color: #4a90e2;
    background: #e6f0ff;
    position: relative;
}
.outfit-card.selected::after {
    content: "✓";
    position: absolute;
    top: 6px;
    right: 6px;
    background: #4a90e2;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.outfit-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #e6f0ff;
    border-radius: 16px;
    margin-bottom: 6px;
    padding: 4px;
}
.outfit-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #2c3e50;
    word-break: break-word;
}
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}
.btn-small {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}
.btn-small.secondary {
    background: #e6f0ff;
    color: #2c3e50;
}
.btn-small:hover { filter: brightness(0.95); }
.action-bar {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 16px;
    border-top: 2px solid #d0e2f5;
    flex-wrap: wrap;
}

.diary-entry {
    margin-bottom: 28px;
    border-bottom: 1px dashed #b8d4f0;
    padding: 16px 0;
}

.diary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.diary-meta .form-row {
    margin-bottom: 0;
    flex: 1 1 auto;
}

.diary-meta .form-label {
    width: auto;
    margin-right: 12px;
    white-space: nowrap;
}

.diary-meta input[type="date"],
.diary-meta input[type="time"] {
    width: auto;
    flex: 0 1 140px;
}

.diary-meta input[type="number"] {
    width: 90px;
    flex: 0 0 auto;
}

.diary-meta input {
    padding: 8px 14px;
}

.diary-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
}
.items-table th {
    text-align: left;
    padding: 8px 12px;
    background: #e6f0ff;
    font-weight: 600;
    border-radius: 20px 20px 0 0;
}
.items-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #d0e2f5;
}
.items-table input {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 6px 10px;
}
.items-table .delete-btn {
    background: none;
    border: none;
    color: #4a90e2;
    font-size: 1.2rem;
    cursor: pointer;
}


.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.dialog-box {
    background: white;
    border-radius: 24px;
    padding: 24px 32px;
    max-width: 400px;
    width: 80%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}
.dialog-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}
.dialog-close:hover {
    color: #4a90e2;
}
.dialog-text {
    font-size: 1rem;
    color: #2c3e50;
    margin: 16px 0 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 600px) {
    .form-label { 
        width: 100%; 
        margin-bottom: 4px;
    }
    .diary-meta .form-row { width: 100%; }
    .tabs .tab { white-space: normal; }
    .checkbox-switch { margin-left: 0; }
    input, select, textarea {
        max-width: 100%; 
    }
    .items-table, .items-table thead, .items-table tbody, .items-table tr, .items-table td, .items-table th {
        display: block;
    }
    .items-table th {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .items-table td {
        border: none;
        padding: 8px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .items-table td input {
        width: calc(50% - 4px);
    }
    .dialog-box {
        width: 90%;
        padding: 20px;
    }
}
.persona-info-box {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #0050b3;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.persona-info-box ul {
    margin-top: 8px;
    padding-left: 20px;
}
.persona-info-box li {
    margin-bottom: 4px;
    line-height: 1.6;
}
.persona-info-box code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 6px;
    color: #2c3e50;
}
.tag-item {
    display: inline-block;
    background: #e6f0ff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.9rem;
    color: #2c3e50;
    border: 1px solid #b8d4f0;
}
.tag-remove {
    margin-left: 6px;
    cursor: pointer;
    color: #ff4d4f;
    font-weight: bold;
}
.tag-remove:hover {
    color: #d9363e;
}
@media (max-width: 600px) {
    .form-row > div[style*="flex: 1 1 400px"] {
        flex-direction: column;
        gap: 8px;
    }
    .form-row > div[style*="flex: 1 1 400px"] select {
        width: 100%;
    }
}
.info-icon {
    font-size: 1rem;        
    padding: 8px;              
    margin: -4px;             
}