*{margin:0;padding:0;box-sizing:border-box}:root{--bg: #f5f0e8;--surface: #ffffff;--surface-hover: #faf7f2;--border: #e5ddd0;--text: #2d2a24;--text-muted: #8a8278;--accent: #c96442;--accent-light: #e8a88a;--accent-glow: rgba(201, 100, 66, .12);--green: #5a9a6b;--amber: #b8860b;--red: #c0392b;--blue: #5b7fa5}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans JP,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}#root{min-height:100vh}.login-screen{display:flex;align-items:center;justify-content:center;min-height:100vh;background:radial-gradient(ellipse at top,#ede5d8 0%,var(--bg) 60%)}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:48px 40px;width:420px;text-align:center;box-shadow:0 24px 80px #0000000f}.login-logo-img{height:36px;width:auto;margin:0 auto 24px;display:block}.login-title{font-size:24px;font-weight:700;margin-bottom:8px;letter-spacing:-.02em}.login-subtitle{color:var(--text-muted);font-size:14px;margin-bottom:36px}.google-btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;padding:14px 24px;border:1px solid var(--border);border-radius:12px;background:var(--surface-hover);color:var(--text);font-size:15px;font-weight:500;cursor:pointer;transition:all .2s}.google-btn:hover{background:#fff;border-color:var(--accent);box-shadow:0 0 20px var(--accent-glow)}.google-icon{width:20px;height:20px}.cf-badge{display:inline-flex;align-items:center;gap:6px;margin-top:28px;padding:6px 14px;border-radius:20px;background:#b8860b1a;border:1px solid rgba(184,134,11,.2);color:var(--amber);font-size:11px;font-weight:500}.dashboard{min-height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;padding:16px 32px;border-bottom:1px solid var(--border);background:var(--surface)}.topbar-left{display:flex;align-items:center;gap:12px}.topbar-logo-link{display:flex;align-items:center;text-decoration:none;transition:opacity .2s}.topbar-logo-link:hover{opacity:.7}.topbar-logo-img{height:24px;width:auto}.topbar-title{font-size:16px;font-weight:600}.topbar-right{display:flex;align-items:center;gap:16px}.user-info{display:flex;align-items:center;gap:10px;padding:6px 14px 6px 6px;border-radius:12px;background:var(--surface-hover);border:1px solid var(--border);cursor:pointer;transition:border-color .2s}.user-info:hover{border-color:var(--accent)}.user-avatar{width:32px;height:32px;border-radius:8px;background:linear-gradient(135deg,var(--accent),var(--accent-light));display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:#fff}.user-name{font-size:13px;font-weight:500}.user-dept{font-size:11px;color:var(--text-muted)}.main-content{max-width:960px;margin:0 auto;padding:20px 32px}.welcome-section{margin-bottom:16px}.welcome-text{font-size:16px;font-weight:500;color:var(--text-muted)}.section-label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);margin-bottom:16px}.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.product-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:28px;cursor:pointer;transition:all .25s ease;position:relative;overflow:hidden}.product-card:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 12px 40px #0000000f,0 0 30px var(--accent-glow)}.product-card-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}.product-icon{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:22px}.product-status{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:8px;font-size:11px;font-weight:500}.status-live{background:#5a9a6b1a;color:var(--green)}.status-dev{background:#b8860b1a;color:var(--amber)}.status-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.product-name{font-size:18px;font-weight:600;margin-bottom:6px}.product-desc{font-size:13px;color:var(--text-muted);line-height:1.5;margin-bottom:20px}.product-footer{display:flex;align-items:center;justify-content:space-between}.product-tags{display:flex;gap:6px}.product-tag{padding:3px 10px;border-radius:6px;font-size:11px;background:#c9644214;color:var(--accent)}.product-arrow{width:32px;height:32px;border-radius:8px;background:var(--surface-hover);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--text-muted);transition:all .2s}.product-card:hover .product-arrow{background:var(--accent);border-color:var(--accent);color:#fff}.product-card.disabled{opacity:.5;cursor:not-allowed}.product-card.disabled:hover{transform:none;border-color:var(--border);box-shadow:none}.user-menu-wrapper{position:relative}.user-dropdown{position:absolute;top:calc(100% + 8px);right:0;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 32px #00000014;min-width:220px;z-index:100;animation:dropdownFade .15s ease-out;overflow:hidden}@keyframes dropdownFade{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.dropdown-section{padding:10px 14px}.dropdown-divider{height:1px;background:var(--border)}.dropdown-item{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:8px;font-size:13px;color:var(--text);text-decoration:none;cursor:pointer;transition:background .15s}.dropdown-item:hover{background:#0000000a}.dropdown-item-current{font-weight:600;color:var(--accent)}.dropdown-check{font-size:12px;color:var(--accent)}.logout-btn{padding:6px 14px;border-radius:8px;border:1px solid var(--border);background:transparent;color:var(--text-muted);font-size:12px;cursor:pointer;transition:all .2s}.logout-btn:hover{border-color:var(--red);color:var(--red)}.login-notice-error{width:100%;margin-bottom:16px;padding:10px 14px;border:1px solid var(--red);background:#c0392b14;color:var(--red);border-radius:8px;font-size:13px;line-height:1.5;text-align:left}.modal-overlay{position:fixed;inset:0;background:#2d2a2473;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:20px;z-index:1000}.modal-container{background:var(--surface);border:1px solid var(--border);border-radius:16px;width:100%;max-width:640px;max-height:88vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #2d2a2440;overflow:hidden}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border)}.modal-title{font-size:17px;font-weight:700;color:var(--text)}.modal-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:8px;background:transparent;color:var(--text-muted);cursor:pointer}.modal-close:hover{background:var(--surface-hover);color:var(--text)}.modal-tabs{display:flex;gap:4px;padding:12px 24px 0;border-bottom:1px solid var(--border)}.modal-tab{padding:8px 14px;border:none;background:transparent;color:var(--text-muted);font-size:13px;font-weight:600;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}.modal-tab:hover{color:var(--text)}.modal-tab.active{color:var(--accent);border-bottom-color:var(--accent)}.modal-body{padding:24px;overflow-y:auto}.settings-section{display:flex;flex-direction:column;gap:18px}.profile-header{display:flex;align-items:center;gap:14px}.profile-avatar,.profile-avatar-placeholder{width:56px;height:56px;border-radius:50%;object-fit:cover;display:flex;align-items:center;justify-content:center;background:var(--accent-light);color:#fff;font-size:22px;font-weight:700}.profile-meta{display:flex;flex-direction:column;gap:6px}.profile-email{font-size:14px;font-weight:600;color:var(--text)}.form-group{display:flex;flex-direction:column;gap:6px}.form-label{font-size:12px;font-weight:600;color:var(--text-muted)}.form-input,.form-select{padding:9px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:14px;outline:none}.form-input:focus,.form-select:focus{border-color:var(--accent)}.form-select-small{padding:6px 8px;font-size:12px}.form-hint{font-size:12px;color:var(--text-muted)}.form-actions{display:flex;justify-content:flex-end}.role-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.role-admin{background:var(--accent-glow);color:var(--accent)}.role-member{background:var(--surface-hover);color:var(--text-muted)}.role-disabled{background:#c0392b1a;color:var(--red)}.self-badge{margin-left:6px;padding:1px 6px;border-radius:999px;background:var(--surface-hover);color:var(--text-muted);font-size:10px;font-weight:600}.btn-primary{padding:9px 18px;border:none;border-radius:8px;background:var(--accent);color:#fff;font-size:14px;font-weight:600;cursor:pointer}.btn-primary:hover{background:#b5573a}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-small{padding:5px 10px;border-radius:7px;font-size:12px;font-weight:600;cursor:pointer;border:1px solid var(--border);background:var(--surface);color:var(--text);white-space:nowrap}.btn-outline{background:var(--surface);color:var(--text)}.btn-outline:hover{background:var(--surface-hover)}.btn-danger{background:var(--red);color:#fff;border-color:var(--red)}.btn-danger:hover{background:#a93226}.btn-danger-outline{background:var(--surface);color:var(--red);border-color:var(--red)}.btn-danger-outline:hover{background:#c0392b14}.user-list{display:flex;flex-direction:column;gap:8px}.user-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.user-row-info{display:flex;align-items:center;gap:10px;min-width:0}.user-row-avatar,.user-row-avatar-placeholder{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--accent-light);color:#fff;font-size:14px;font-weight:700}.user-row-details{min-width:0}.user-row-name{font-size:13px;font-weight:600;color:var(--text);display:flex;align-items:center}.user-row-email{font-size:12px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis}.user-row-dept{font-size:11px;color:var(--accent)}.user-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.delete-confirm{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.delete-confirm-text{font-size:12px;color:var(--red);font-weight:600}.team-create-row{display:flex;gap:8px}.team-list{display:flex;flex-direction:column;gap:8px}.team-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--border);border-radius:10px}.team-edit-row{display:flex;gap:8px;width:100%;align-items:center}.team-row-info{display:flex;align-items:center;gap:8px}.team-row-name{font-size:13px;font-weight:600;color:var(--text)}.team-row-count{font-size:11px;color:var(--text-muted)}.team-row-actions{display:flex;gap:8px}.loading-text{padding:24px;text-align:center;color:var(--text-muted);font-size:13px}@media(max-width:980px){.products-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.products-grid{grid-template-columns:1fr}.login-card{width:calc(100% - 32px);padding:36px 24px}.main-content{padding:32px 16px}}
