body{margin:0;padding:0;font-family:Arial,sans-serif;background-color:#f5f5f5}header{padding:1rem 2rem;background-color:#2b6cb0;color:#fff}main{padding:2rem;min-height:calc(100vh - 160px)}.header{padding:1rem 2rem;background-color:#2b6cb0;color:#fff;display:flex;justify-content:space-between;align-items:center}.logo{font-size:1.5rem;font-weight:700}.login-btn{background-color:#4a5568;color:#fff;padding:8px 16px;border:none;border-radius:5px;cursor:pointer}.logout-btn:hover{opacity:.9}.user-dropdown{position:relative;display:inline-block;cursor:pointer}.user-icon{appearance:none;border:0;background:transparent;padding:4px 8px;cursor:pointer;display:flex;align-items:center;gap:8px;-webkit-tap-highlight-color:transparent}.user-icon:focus,.user-icon:active{outline:none;background:transparent;box-shadow:none}.username{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px;display:inline-block;color:#fff}.dropdown-arrow{font-size:12px;color:#fff}.dropdown-menu{position:absolute;top:100%;right:0;background-color:#fff;border:1px solid #ccc;padding:6px 10px;min-width:120px;box-shadow:0 2px 6px #0000001a;z-index:9999}.dropdown-menu button{background:none;border:0;padding:8px 12px;width:100%;cursor:pointer;font-size:14px;color:#333}.dropdown-menu button:hover{background-color:#f5f5f5}.avatar-image{width:40px;height:40px;border-radius:50%;object-fit:cover}.header-user-area{display:flex;align-items:center;gap:12px;margin-left:auto}.word-share-btn{background:#fff;color:#2b6cb0;font-size:.9rem;font-weight:500;padding:6px 14px;border:none;border-radius:8px;cursor:pointer;transition:background .15s}.word-share-btn:hover{background:#ebf2fa}.word-share-btn:disabled{opacity:.5;cursor:default}.logo-img{height:70px;object-fit:contain}.logo-text{font-size:1.5rem;font-weight:700}@media(max-width:640px){.header{padding:.75rem 1rem}.logo-img{height:44px}.logo-text{font-size:1.1rem}.username{max-width:80px}}.modal.wide{max-width:800px;width:100%}.modal-overlay{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-overlay.nested{z-index:1100}.modal{background:#fff;border-radius:10px;padding:24px;min-width:480px;max-width:760px;box-shadow:0 10px 30px #0003;position:relative;flex-direction:column}.modal h2{margin:0 0 1rem;color:#2b6cb0;text-align:center}.modal .close-btn{position:absolute;top:12px;right:12px;background:none;border:none;font-size:1.2rem;cursor:pointer;color:#666;line-height:1}.modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:auto}.close-btn{position:absolute;right:16px;top:16px;cursor:pointer;border:none;background:transparent;font-size:20px;font-weight:700;line-height:1;color:#333;opacity:1;visibility:visible}.close-btn:hover{color:#000}.section{padding:8px 0;border-bottom:1px solid #f1f3f5}.section:last-of-type{border-bottom:0}.section.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.section.vertical{display:flex;flex-direction:column;align-items:center}.left{display:flex;align-items:center;gap:10px;min-width:0}.title-value{display:flex;align-items:center;gap:6px}.label{font-weight:600;white-space:nowrap;flex:0 0 88px;text-align:left;margin-top:10px;margin-bottom:10px}.value-ellipsis{color:#374151;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;margin-left:20px}.avatar-inline.large{display:flex;align-items:center;justify-content:center}.avatar.large{width:64px;height:64px;border-radius:50%;object-fit:cover;background:#f2f2f2}.avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#f2f2f2;flex-shrink:0}.avatar.placeholder{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font-size:10px;color:#666;flex-shrink:0}.text-btn{background:none;border:none;padding:0;font-size:14px;color:#2563eb;cursor:pointer}.text-btn:hover{text-decoration:underline}.text-btn.danger{color:#e53e3e}.text-btn.danger:hover{text-decoration:underline}button.ghost{background:#f3f4f6;color:#111}button:disabled{opacity:.6;cursor:not-allowed!important}.danger-btn{background:#e53e3e;color:#fff}.danger-text{color:#b91c1c}.error-message{background:#fee2e2;color:#b91c1c;padding:8px 10px;border-radius:6px;margin-top:8px}.success-message{background:#e6ffed;color:#137333;padding:8px 10px;border-radius:6px;margin-top:8px}.account-modal input[type=text],.account-modal input[type=password]{width:100%;padding:8px 10px;border:1px solid #ddd;border-radius:6px}.small{font-size:12px;color:#666}.app-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.pw-form{display:flex;flex-direction:column;gap:20px;width:100%}.pw-form .fg{display:flex;flex-direction:column;align-items:center;width:100%}.field-label{display:block;margin-bottom:6px;font-weight:600;text-align:center}.underline-input{width:50%;border:none;border-bottom:2px solid #ccc;padding:8px 0;outline:none;box-sizing:border-box;text-align:center}.underline-input:focus{border-bottom-color:#2563eb}.pw-rules-inline{font-size:13px;margin-top:6px;line-height:1.4}.small.danger-text{color:#b91c1c;font-size:12px;text-align:center;width:100%}.ok{color:green;font-weight:700}.bad{color:red;font-weight:700}.modal button:not(.close-btn):not(.text-btn):not(.ghost):not(.danger-btn):not(.usage-modal__close-btn):not(.usage-modal__subscribe-btn){background:#2563eb;color:#fff;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;font-size:14px}.modal button:not(.close-btn):not(.text-btn):not(.ghost):not(.danger-btn):not(.usage-modal__close-btn) :hover{background:#1d4ed8}@media(max-width:420px){.modal{min-width:unset;width:calc(100% - 32px);max-width:none}.section.row{align-items:flex-start}.text-btn{margin-top:2px}}.modal-content{background:#fff;padding:2rem;border-radius:12px;max-width:420px;width:90%;text-align:center;box-shadow:0 6px 20px #00000040;animation:fadeIn .3s ease-out}.modal-content h2{margin-bottom:1rem;font-size:1.5rem;color:#d9534f}.modal-content p{margin-bottom:1.5rem;font-size:1rem;color:#333;line-height:1.4}.modal-actions{display:flex;justify-content:space-between;gap:1rem}.modal-actions button{flex:1;padding:.6rem 1.2rem;border-radius:6px;cursor:pointer;font-size:1rem;transition:background .2s ease-in-out;border:none}.modal-actions .btn-cancel{background:#6c757d;color:#fff}.modal-actions .btn-cancel:hover{background:#5a6268}.modal-actions .btn-renew{background:#d9534f;color:#fff}.modal-actions .btn-renew:hover{background:#c9302c}@keyframes fadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}
