
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #eeedff;
  color: #202541;
  min-height: 100vh;
}

.app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: auto;
  background: #fff;
  box-shadow: 0 0 35px #5444a322;
  overflow: hidden;
}

.hero {
  background: linear-gradient(130deg,#667eea,#6940bd);
  color: white;
  padding: 28px 22px 25px;
  border-radius: 0 0 25px 25px;
  min-height: 205px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero small {
  opacity: .75;
  font-size: 10px;
  letter-spacing: 1px;
}

.hero h2 {
  font-size: 25px;
  margin-top: 12px;
  line-height: 1.2;
}

.hero p {
  margin-top: 8px;
  font-size: 12px;
  opacity: .8;
}

.hero-icon {
  font-size: 48px;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 20px;
}

.hero-bottom h1 {
  font-size: 30px;
  margin-top: 5px;
}

.hero-date {
  font-size: 12px;
  opacity: .8;
}

main {
  padding: 23px 17px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading h3 {
  font-size: 17px;
}

.section-heading p {
  font-size: 12px;
  color: #9096aa;
  margin-top: 5px;
}

.status-dot {
  color: #269c70;
  font-size: 11px;
  background: #e6f8ef;
  border-radius: 20px;
  padding: 7px 12px;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.menu-card {
  min-height: 137px;
  border: 1px solid #edf0f5;
  border-radius: 16px;
  padding: 15px 12px;
  text-decoration: none;
  color: #202541;
  background: white;
  box-shadow: 0 4px 14px #26365c0a;
  transition: .2s;
  position: relative;
}

.menu-card:active {
  transform: scale(.97);
}

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 12px;
}

.purple { background: #eee9ff; }
.blue { background: #e6f1ff; }
.orange { background: #fff0df; }
.green { background: #e5f8ed; }
.gray { background: #eff0f5; }

.menu-info b {
  font-size: 12px;
  display: block;
  line-height: 1.4;
}

.menu-info small {
  color: #999fb0;
  font-size: 9px;
  display: block;
  margin-top: 5px;
}

.arrow {
  position: absolute;
  right: 12px;
  top: 15px;
  color: #a2a8b8;
  font-size: 22px;
}

.locked {
  background: #f8f8fb;
  opacity: .75;
}

.info-panel {
  display: flex;
  gap: 13px;
  padding: 17px;
  margin-top: 22px;
  background: #f2f3ff;
  border-radius: 15px;
}

.info-icon {
  font-size: 26px;
}

.info-panel b {
  font-size: 12px;
}

.info-panel p {
  color: #838ba3;
  font-size: 11px;
  line-height: 1.6;
  margin-top: 5px;
}

footer {
  text-align: center;
  font-size: 9px;
  color: #a6aabd;
  padding: 18px;
}

.page-header {
  background: linear-gradient(130deg,#667eea,#6940bd);
  color: white;
  padding: 24px 20px;
  border-radius: 0 0 22px 22px;
}

.back-link {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 20px;
}

.page-header h2 {
  font-size: 22px;
}

.page-header p {
  opacity: .8;
  font-size: 12px;
  margin-top: 7px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.toolbar h3 {
  font-size: 15px;
}

.btn {
  border: 0;
  background: #6278dc;
  color: white;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.file-list {
  display: grid;
  gap: 10px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eceef4;
  border-radius: 13px;
  background: white;
}

.file-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: #f0efff;
}

.file-info {
  min-width: 0;
  flex: 1;
}

.file-info b {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}

.file-info small {
  color: #969bad;
  font-size: 10px;
  display: block;
  margin-top: 5px;
}

.file-download {
  color: #6478d9;
  text-decoration: none;
  font-size: 11px;
}

.empty {
  text-align: center;
  padding: 35px 15px;
  background: #f8f8fc;
  border-radius: 14px;
  color: #9299ab;
  font-size: 12px;
  line-height: 1.8;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #10132d99;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 18px;
  width: 100%;
  max-width: 380px;
  padding: 23px;
}

.modal-content h3 {
  margin-bottom: 15px;
  font-size: 17px;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  border: 1px solid #dddfea;
  border-radius: 9px;
  margin-bottom: 12px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.modal-actions button {
  flex: 1;
}

.error {
  color: #d44b4b;
  font-size: 11px;
  margin-bottom: 10px;
}

@media (min-width: 600px) {
  body {
    padding: 25px 0;
  }
  .app {
    border-radius: 25px;
    min-height: 90vh;
  }
}
