/* DPR.A Studio — portail */

body {
  min-height: 100vh;
  background: var(--bg);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-logo { height: 44px; width: auto; }

.topbar-right { display: flex; align-items: center; gap: 16px; }
.avatar-menu-wrap { position: relative; }
.topbar-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #F2EDE4;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  border: none; cursor: pointer; transition: opacity 0.15s;
}
.topbar-avatar:hover { opacity: 0.85; }
.avatar-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  min-width: 180px; padding: 6px 0; z-index: 100;
}
.avatar-menu.visible { display: block; }
.avatar-menu-name {
  padding: 10px 16px 8px; font-size: 13px; font-weight: 600;
  color: var(--text); border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.avatar-menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 13px; color: var(--text-2);
  text-decoration: none; transition: background 0.1s, color 0.1s;
}
.avatar-menu-item:hover { background: var(--bg); color: var(--text); }

.portal-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.portal-greeting {
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--text);
}

.portal-date {
  font-size: 12px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 56px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.portal-tile {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 32px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.portal-tile:hover {
  background: var(--card);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.portal-tile-icon {
  width: 28px; height: 28px;
  color: var(--text);
  margin-bottom: 16px;
}
.portal-tile-icon svg { width: 100%; height: 100%; }

.portal-tile-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
  margin-bottom: 8px;
  color: var(--text);
}

.portal-tile-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 240px;
}

@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .topbar-logo { height: 32px; }
  .portal-content { padding: 32px 16px 64px; }
  .portal-greeting { font-size: 30px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-tile { min-height: 180px; padding: 24px; }
  .portal-tile-title { font-size: 28px; }
}
